Re-use the old OBJC workaround and distribute autoconf260.m4
authorChristophe Mutricy <xtophe@videolan.org>
Fri, 15 Sep 2006 16:20:57 +0000 (16:20 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Fri, 15 Sep 2006 16:20:57 +0000 (16:20 +0000)
Makefile.am
extras/m4/autoconf260.m4

index ec40e8c..368c1a0 100644 (file)
@@ -180,6 +180,7 @@ EXTRA_DIST += \
        extras/vlc.vim \
        extras/make.pl \
        extras/valgrind.suppressions \
+       extras/m4/autoconf260.m4 \
        $(NULL)
 
 ###############################################################################
index 5c5c140..e239a89 100644 (file)
@@ -9,7 +9,14 @@ AC_DEFUN([AC_PROG_CC_C99],
   CC="$CC -std=c99"
 ])
 
-AC_DEFUN([AC_PROG_OBJC], [ ])
+AC_DEFUN([AC_PROG_OBJC], [ 
+ AC_MSG_CHECKING(for an Objective-C compiler)           
+ OBJC="${CXX}"                  
+ AC_SUBST(OBJC)                 
+ OBJCFLAGS="${CXXFLAGS} -fgnu-runtime -fconstant-string-class=NSConstantString"                 
+ AC_SUBST(OBJCFLAGS)
+
+])
 
 AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS],
 [ AC_DEFINE([_GNU_SOURCE], [ ], [Enable lots of stuff with glibc.])