summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@hutch-2.local>2009-03-01 12:46:50 -0800
committerDavid Schleef <ds@hutch-2.local>2009-03-01 12:46:50 -0800
commit127cf0e9b13977726d809a5afd5f2affc14d3934 (patch)
treed36bbc89c93f93de622f7819a53ec91a87e8c3cf
parent57c83f2ced9890f1f8c4c64cd6c0b70f952e6a59 (diff)
Add Objective C support to shave
-rw-r--r--m4/shave.m43
-rw-r--r--shave.in3
2 files changed, 6 insertions, 0 deletions
diff --git a/m4/shave.m4 b/m4/shave.m4
index 0c2c9f5..01cb5c7 100644
--- a/m4/shave.m4
+++ b/m4/shave.m4
@@ -53,14 +53,17 @@ AC_DEFUN([SHAVE_INIT],
SHAVE_SAVED_CXX=$CXX
SHAVE_SAVED_FC=$FC
SHAVE_SAVED_F77=$F77
+ SHAVE_SAVED_OBJC=$OBJC
CC="${SHELL} ${shavedir}/shave cc ${SHAVE_SAVED_CC}"
CXX="${SHELL} ${shavedir}/shave cxx ${SHAVE_SAVED_CXX}"
FC="${SHELL} ${shavedir}/shave fc ${SHAVE_SAVED_FC}"
F77="${SHELL} ${shavedir}/shave f77 ${SHAVE_SAVED_F77}"
+ OBJC="${SHELL} ${shavedir}/shave objc ${SHAVE_SAVED_OBJC}"
AC_SUBST(CC)
AC_SUBST(CXX)
AC_SUBST(FC)
AC_SUBST(F77)
+ AC_SUBST(OBJC)
V=@
else
diff --git a/shave.in b/shave.in
index 174641e..5c16f27 100644
--- a/shave.in
+++ b/shave.in
@@ -56,6 +56,9 @@ link,*)
*,f77)
Q=" F77 "
;;
+*,objc)
+ Q=" OBJC "
+ ;;
*,*)
# should not happen
Q=" CC "