]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
guile: Propagate Guile's CPPFLAGS to `guile-snarf'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 7 Mar 2008 10:30:06 +0000 (11:30 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 7 Mar 2008 10:30:06 +0000 (11:30 +0100)
guile/src/Makefile.am

index 03945929d66d5d78d1fd8df120f326d93a09765b..c3b6d8a806ba18c70bba7ddc1ea1f93e40363d39 100644 (file)
@@ -1,5 +1,5 @@
 #  GNUTLS -- Guile bindings for GnuTLS.
-#  Copyright (C) 2007  Free Software Foundation
+#  Copyright (C) 2007, 2008  Free Software Foundation
 #
 #  GNUTLS is free software; you can redistribute it and/or
 #  modify it under the terms of the GNU Lesser General Public
@@ -103,8 +103,10 @@ extra-smob-types.i.c: $(srcdir)/make-smob-types.scm
 
 # C file snarfing.
 
+# `$(GUILE_CFLAGS)' may contain a series of `-I' switches so it must be
+# included here, even though we'd really want `$(GUILE_CPPFLAGS)'.
 snarfcppopts = $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
-              $(CFLAGS) $(AM_CFLAGS)
+              $(CFLAGS) $(AM_CFLAGS) $(GUILE_CFLAGS)
 
 .c.x:
        $(guile_snarf) -o $@ $< $(snarfcppopts)