diff configure.in @ 675:73506d26a1f4

Fixed automake warnings about Objective C support
author Sam Lantinga <slouken@libsdl.org>
date Sat, 09 Aug 2003 18:19:42 +0000
parents fbec2501cf9f
children 7f691fa4c1c7
line wrap: on
line diff
--- 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