bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUILE_CFLAGS contains warning options


From: Ludovic Courtès
Subject: Re: GUILE_CFLAGS contains warning options
Date: Sun, 27 Feb 2011 17:54:40 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Hello!

I’ll commit the patch below:

diff --git a/configure.ac b/configure.ac
index 423ae99..9b8553f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1566,9 +1566,18 @@ AC_SUBST(LIBGUILE_I18N_INTERFACE)
 
 #######################################################################
 
-dnl Tell guile-config what flags guile users should compile and link with.
+dnl Tell guile-config what flags guile users should compile and link
+dnl with, keeping only `-I' flags from $CPPFLAGS.
 GUILE_LIBS="$LDFLAGS $LIBS"
-GUILE_CFLAGS="$CPPFLAGS $PTHREAD_CFLAGS"
+GUILE_CFLAGS=""
+for flag in "$CPPFLAGS"
+do
+  case "$flag" in
+    -I*) GUILE_CFLAGS="$GUILE_CFLAGS $flag";;
+    *)   ;;
+  esac
+done
+GUILE_CFLAGS="$GUILE_CFLAGS $PTHREAD_CFLAGS"
 AC_SUBST(GUILE_LIBS)
 AC_SUBST(GUILE_CFLAGS)
 
Thanks,
Ludo’.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]