summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-02 22:50:36 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-02 22:50:36 +0200
commit3dd7d925c2feb7868a49e7a1a0b953a5aab233f0 (patch)
tree61db7408f6e5e5f9c0e9d8d7ee4621b034ffd619
parentb8fde980ebf7252dbe042c45cf02dd52159d7833 (diff)
downloadxine-lib-3dd7d925c2feb7868a49e7a1a0b953a5aab233f0.tar.gz
xine-lib-3dd7d925c2feb7868a49e7a1a0b953a5aab233f0.tar.bz2
Don't rely on AC_PROG_OBJC presence.
When the macro is not present (so we're using autoconf 2.59), use a different path, by checking for the proper gcc command as OBJC, and substitute it in Makefiles together with OBJCFLAGS. This completes support for autoconf 2.59 by itself.
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 38470b9d8..37232b54b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -112,7 +112,12 @@ AM_PROG_AS
case "$host_os" in
*darwin*)
- AC_PROG_OBJC
+ m4_ifdef([AC_PROG_OBJC],
+ [AC_PROG_OBJC],
+ [AC_CHECK_TOOL([OBJC], [gcc])
+ AC_SUBST([OBJC])
+ AC_SUBST([OBJCFLAGS])
+ ])
CPPFLAGS="$CPPFLAGS -DCONFIG_DARWIN"
;;
esac