aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-12-13 20:12:49 +0100
committerMax Kellermann <max@duempel.org>2011-12-13 20:12:49 +0100
commit2685b53b30c165c31377277161f56b4c02dc0aa6 (patch)
treef4daab5027d6edf5506d57483b637fc711bd3552 /configure.ac
parent533e4fcdadf70cc2899f8e93a1aadfb219693a9c (diff)
downloadmpd-2685b53b30c165c31377277161f56b4c02dc0aa6.tar.gz
mpd-2685b53b30c165c31377277161f56b4c02dc0aa6.tar.xz
mpd-2685b53b30c165c31377277161f56b4c02dc0aa6.zip
configure.ac: suppress warnings in the GLib headers
Replace -I with -isystem in GLIB_CFLAGS.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
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 ---------------------------------------------------------------------------