diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-02-26 23:07:10 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-02-26 23:07:10 +0000 |
commit | aca2e2bbd8738437a20473202b09757a1fc7c409 (patch) | |
tree | 3277b93562b2a3bd41fadfeec9b7b701f0490982 /configure.ac | |
parent | b44261d40fcb82f274394400bea1203bd3da25c2 (diff) |
For FreeBSD add -I/usr/local/include to CPPFLAGS by default (if GeoIP is present it's probably from ports)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 05d1a2a..a31ef65 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,13 @@ AC_PROG_CC AC_CHECK_HEADERS([stdlib.h string.h]) AC_TYPE_SIZE_T +OSNAME=`uname -s` +case "$OSNAME" in + FreeBSD*) + CPPFLAGS="$CPPFLAGS -I/usr/local/include" + ;; +esac + AM_GCONF_SOURCE_2 PKG_CHECK_MODULES([jsonglib], [json-glib-1.0 >= 0.8]) |