Filter out -ansi -pedantic from CFLAGS while compiling test programs for Guile.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matthias Köppe 2007-10-22 22:00:29 +00:00
commit a27c7372a6

View file

@ -972,7 +972,9 @@ fi
guilesafe_CFLAGS=$CFLAGS
guilesafe_LDFLAGS=$LDFLAGS
CFLAGS="$CFLAGS $GUILEINCLUDE"
# Filter out "-ansi -pedantic" because Guile header files will not compile with these flags.
# (The flags -ansi -pedantic are automatically added by ac_compile_warnings.m4)
CFLAGS="`echo $CFLAGS | sed 's/-ansi//g;s/-pedantic//g;'` $GUILEINCLUDE"
LDFLAGS="$LDFLAGS $GUILELINK"
AC_MSG_CHECKING(whether Guile's gh_ API works)