mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 13:30:26 +02:00
Strip any CPPFLAGS other than -I' from
guile-2.0.pc'.
* configure.ac: Strip anything beyond `-I' from $GUILE_CFLAGS so that `guile-2.0.pc' does not export them to the user. Reported and fixed by Bruno Haible <bruno@clisp.org>.
This commit is contained in:
parent
dcb7c7ddf5
commit
62cdb4e478
1 changed files with 20 additions and 2 deletions
22
configure.ac
22
configure.ac
|
@ -1566,9 +1566,27 @@ 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_CFLAGS=""
|
||||
next_is_includedir=false
|
||||
for flag in $CPPFLAGS
|
||||
do
|
||||
if $next_is_includedir; then
|
||||
GUILE_CFLAGS="$GUILE_CFLAGS -I $flag"
|
||||
next_is_includedir=false
|
||||
else
|
||||
case "$flag" in
|
||||
-I) next_is_includedir=true;;
|
||||
-I*) GUILE_CFLAGS="$GUILE_CFLAGS $flag";;
|
||||
*) ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
||||
GUILE_CFLAGS="$GUILE_CFLAGS $PTHREAD_CFLAGS"
|
||||
GUILE_LIBS="$LDFLAGS $LIBS"
|
||||
GUILE_CFLAGS="$CPPFLAGS $PTHREAD_CFLAGS"
|
||||
|
||||
AC_SUBST(GUILE_LIBS)
|
||||
AC_SUBST(GUILE_CFLAGS)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue