]> sjero.net Git - linphone/commitdiff
fix mac os build (AM_GNU_GETTEXT was adding flags to CPPFLAGS)
authorSimon Morlat <simon.morlat@linphone.org>
Thu, 29 Mar 2012 08:43:46 +0000 (10:43 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Thu, 29 Mar 2012 08:43:46 +0000 (10:43 +0200)
configure.ac

index ce360445100e6653a255d51eb880cf4b7e368728..7a523eecb1b6eaf66cebb9c65c1b3f2e04e325a1 100644 (file)
@@ -102,9 +102,13 @@ AC_SUBST(ALL_LINGUAS)
 AC_DEFINE_UNQUOTED(LINPHONE_ALL_LANGS, "$ALL_LINGUAS", [All supported languages])
 
 if test "$mingw_found" != "yes" ; then
-dnl gettext macro does not work properly under mingw. And we want to use the one provided by GTK.
-AM_GNU_GETTEXT([external])
-LIBS="$LIBS $LIBINTL"
+       dnl gettext macro does not work properly under mingw. And we want to use the one provided by GTK.
+       
+       dnl AM_GNU_GETTEXT pollutes CPPFLAGS: workaround this.
+       CPPFLAGS_save=$CPPFLAGS
+       AM_GNU_GETTEXT([external])
+       CPPFLAGS=$CPPFLAGS_save
+       LIBS="$LIBS $LIBINTL"
 else
        AC_DEFINE(ENABLE_NLS,1,[Tells whether localisation is possible])
        AC_DEFINE(HAVE_GETTEXT,1,[Tells wheter localisation is possible])