Search
lxdream.org :: lxdream/acinclude.m4 :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename acinclude.m4
changeset 977:8514fb4bc101
prev964:f2f3c7612d06
next985:52e64faac752
author nkeynes
date Mon Feb 02 01:40:13 2009 +0000 (11 years ago)
permissions -rw-r--r--
last change Fix Objective-C checking to be a little more circumspec (to whit, not aborting if no
OBJC compiler is found) - slightly tricky becuase AC_CHECK_HEADER was requiring
preprocessor checks, which ran before we checked if there was in fact an OBJC compiler
in the first place... Fix there was to change the AC_CHECK_HEADER invocation to use the
new (compiler-only) style.
file annotate diff log raw
1.1 --- a/acinclude.m4 Thu Jan 15 04:15:11 2009 +0000
1.2 +++ b/acinclude.m4 Mon Feb 02 01:40:13 2009 +0000
1.3 @@ -89,3 +89,17 @@
1.4 [ $3 ]
1.5 fi
1.6 ]);
1.7 +
1.8 +# AC_HAVE_OBJC([if-present],[if-not-present])
1.9 +# Check if we have a working Objective-C compiler
1.10 +AC_DEFUN([AC_HAVE_OBJC], [
1.11 +AC_PROG_OBJC
1.12 +AC_MSG_CHECKING([for a working Objective-C compiler])
1.13 +AC_LANG_PUSH([Objective C])dnl
1.14 +_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@interface Foo @end]], [])],
1.15 + [AC_MSG_RESULT([yes])
1.16 + $1 ],
1.17 + [AC_MSG_RESULT([No])
1.18 + $2 ]);
1.19 +AC_LANG_POP([Objective C])
1.20 +]);
.