|
|
if test x"$ENABLE_IP2COUNTRY" = x"yes" ; then | if test x"$ENABLE_IP2COUNTRY" = x"yes" ; then |
GEOIP_LIB="-lGeoIP" | GEOIP_LIB="-lGeoIP" |
CXXFLAGS="$CXXFLAGS $GEOIP_INCLUDE" | CXXFLAGS="$CXXFLAGS $GEOIP_INCLUDE" |
LDFLAGS="$LDFLAGS $GEOIP_LIB" |
LIBS="$LIBS $GEOIP_LIB" |
AC_CHECK_HEADER(GeoIP.h,, | AC_CHECK_HEADER(GeoIP.h,, |
[AC_MSG_ERROR([--enable-geoip passed to configure, but the GeoIP header files were not found])]) | [AC_MSG_ERROR([--enable-geoip passed to configure, but the GeoIP header files were not found])]) |
AC_CHECK_LIB(GeoIP, GeoIP_open, | AC_CHECK_LIB(GeoIP, GeoIP_open, |