From 2685b53b30c165c31377277161f56b4c02dc0aa6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Dec 2011 20:12:49 +0100 Subject: configure.ac: suppress warnings in the GLib headers Replace -I with -isystem in GLIB_CFLAGS. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 4d274bfa2..8d3f3c1e4 100644 --- a/configure.ac +++ b/configure.ac @@ -432,6 +432,11 @@ dnl --------------------------------------------------------------------------- PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.12 gthread-2.0],, [AC_MSG_ERROR([GLib 2.12 is required])]) +if test x$GCC = xyes; then + # suppress warnings in the GLib headers + GLIB_CFLAGS=`echo $GLIB_CFLAGS |sed -e 's,-I/,-isystem /,g'` +fi + dnl --------------------------------------------------------------------------- dnl Protocol Options dnl --------------------------------------------------------------------------- -- cgit v1.2.3