Fixed automake warnings about Objective C support
authorSam Lantinga <slouken@libsdl.org>
Sat, 09 Aug 2003 18:19:42 +0000
changeset 67573506d26a1f4
parent 674 be597a247e20
child 676 8b58eeef4576
Fixed automake warnings about Objective C support
configure.in
     1.1 --- a/configure.in	Sat Aug 09 18:12:11 2003 +0000
     1.2 +++ b/configure.in	Sat Aug 09 18:19:42 2003 +0000
     1.3 @@ -60,7 +60,6 @@
     1.4  AC_SUBST(CCAS)
     1.5  CCASFLAGS=""
     1.6  AC_SUBST(CCASFLAGS)
     1.7 -AM_CONDITIONAL([am__fastdepOBJC], false)
     1.8  
     1.9  dnl The alpha architecture needs special flags for binary portability
    1.10  case "$target" in
    1.11 @@ -2596,12 +2595,17 @@
    1.12  # We do this here so that we get the full CFLAGS into OBJCFLAGS
    1.13  case "$target" in
    1.14      *-*-darwin*)
    1.15 -        OBJC="cc"
    1.16 +        dnl AC_PROG_OBJC doesn't seem to exist, this is the SDL workaround
    1.17 +        AC_MSG_CHECKING(for an Objective-C compiler)
    1.18 +        OBJC="$CC"
    1.19 +        AC_SUBST(OBJC)
    1.20          OBJCFLAGS="$CFLAGS"
    1.21 -        OBJCDEPMODE="$CCDEPMODE"
    1.22 -        AC_SUBST(OBJC)
    1.23          AC_SUBST(OBJCFLAGS)
    1.24 +        dnl _AM_DEPENDENCIES(OBJC) doesn't work, so hard code OBJCDEPMODE here
    1.25 +        dnl _AM_DEPENDENCIES(OBJC)
    1.26 +        OBJCDEPMODE="depmode=gcc3"
    1.27          AC_SUBST(OBJCDEPMODE)
    1.28 +        AC_MSG_RESULT(not implemented yet)
    1.29          ;;
    1.30  esac
    1.31