Fixed automake warnings about Objective C support
authorSam Lantinga <slouken@libsdl.org>
Sat, 09 Aug 2003 18:19:42 +0000
changeset 675 73506d26a1f4
parent 674 be597a247e20
child 676 8b58eeef4576
Fixed automake warnings about Objective C support
configure.in
--- a/configure.in	Sat Aug 09 18:12:11 2003 +0000
+++ b/configure.in	Sat Aug 09 18:19:42 2003 +0000
@@ -60,7 +60,6 @@
 AC_SUBST(CCAS)
 CCASFLAGS=""
 AC_SUBST(CCASFLAGS)
-AM_CONDITIONAL([am__fastdepOBJC], false)
 
 dnl The alpha architecture needs special flags for binary portability
 case "$target" in
@@ -2596,12 +2595,17 @@
 # We do this here so that we get the full CFLAGS into OBJCFLAGS
 case "$target" in
     *-*-darwin*)
-        OBJC="cc"
+        dnl AC_PROG_OBJC doesn't seem to exist, this is the SDL workaround
+        AC_MSG_CHECKING(for an Objective-C compiler)
+        OBJC="$CC"
+        AC_SUBST(OBJC)
         OBJCFLAGS="$CFLAGS"
-        OBJCDEPMODE="$CCDEPMODE"
-        AC_SUBST(OBJC)
         AC_SUBST(OBJCFLAGS)
+        dnl _AM_DEPENDENCIES(OBJC) doesn't work, so hard code OBJCDEPMODE here
+        dnl _AM_DEPENDENCIES(OBJC)
+        OBJCDEPMODE="depmode=gcc3"
         AC_SUBST(OBJCDEPMODE)
+        AC_MSG_RESULT(not implemented yet)
         ;;
 esac