summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2013-11-16 18:56:30 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2013-11-16 18:56:30 +0100
commitbf328a08e5f09ac0ddcd2e728b585301c45de1d3 (patch)
treed198f5229ecbe9cf476aa60ccda8e351882a792e /configure.ac
parent4ecc32726c701f4b4bf9bfd00fa398baa956f9e4 (diff)
downloadlibrcc-bf328a08e5f09ac0ddcd2e728b585301c45de1d3.tar.gz
librcc-bf328a08e5f09ac0ddcd2e728b585301c45de1d3.tar.bz2
librcc-bf328a08e5f09ac0ddcd2e728b585301c45de1d3.tar.xz
librcc-bf328a08e5f09ac0ddcd2e728b585301c45de1d3.zip
Set CPPFLAGS for GTK1 check to prevent preprocessor complains (gtk/gtk.h: accepted by the compiler, rejected by the preprocessor!)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 86ef382..bff29bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,7 +108,11 @@ else
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS `gtk-config --cflags`"
+dnl *** Preprocessor using CPPFLAGS
+ saved_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS `gtk-config --cflags`"
AC_CHECK_HEADER([gtk/gtk.h], [HAVE_GTK=yes], [HAVE_GTK=no])
+ CPPFLAGS=$saved_CPPFLAGS
CFLAGS=$saved_CFLAGS
fi