chiark / gitweb /
Use -isystem for extra system includes on FreeBSD.
authorrjk@greenend.org.uk <>
Sat, 5 Jan 2008 14:07:40 +0000 (14:07 +0000)
committerrjk@greenend.org.uk <>
Sat, 5 Jan 2008 14:07:40 +0000 (14:07 +0000)
configure.ac

index 4bae211aec895a11bbf246ae62e5f23314943f7d..369a6f0eef1af829b3c88b011ebd1e51d186413b 100644 (file)
@@ -88,10 +88,10 @@ case "$host" in
   # Ports install to /usr/local but the compiler stupidly doesn't look
   # there by default
   LDFLAGS="${LDFLAGS} -L/usr/local/lib"
-  CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
+  CPPFLAGS="${CPPFLAGS} -isystem /usr/local/include"
   # libdb installs elsewhere again
   LDFLAGS="${LDFLAGS} -L/usr/local/lib/db44"
-  CPPFLAGS="${CPPFLAGS} -I/usr/local/include/db44"
+  CPPFLAGS="${CPPFLAGS} -isystem /usr/local/include/db44"
   ;;
 * )
   AC_MSG_RESULT([unknown, winging it])