summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-24 19:43:22 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-24 19:43:22 +0000
commitb552f5f5b2d35b7a1b331c4a890f7f754193a92c (patch)
tree6a300cfd5df91941738c916654ded8a41575de28 /configure
parent2024c475d81bd08593b25694a5b9edaf056d856f (diff)
- Added configure test for libGeoIP for later usage
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1856 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure74
1 files changed, 73 insertions, 1 deletions
diff --git a/configure b/configure
index d6098c3..8ce52ee 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Id: configure.ac 1834 2013-04-19 19:50:27Z michael .
+# From configure.ac Id: configure.ac 1837 2013-04-21 09:27:27Z michael .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
#
@@ -806,6 +806,7 @@ with_ltdl_include
with_ltdl_lib
enable_ltdl_install
enable_libpcre
+enable_libGeoIP
enable_openssl
enable_assert
enable_kqueue
@@ -1462,6 +1463,7 @@ Optional Features:
--disable-libtool-lock avoid locking (might break parallel builds)
--enable-ltdl-install install libltdl
--disable-libpcre Disable PCRE support
+ --disable-libgeoip Disable GeoIP support
--enable-openssl=DIR Enable OpenSSL support (DIR optional).
--disable-openssl Disable OpenSSL support.
--enable-assert Enable assert() statements
@@ -13726,6 +13728,76 @@ fi
fi
+# Check whether --enable-libGeoIP was given.
+if test "${enable_libGeoIP+set}" = set; then :
+ enableval=$enable_libGeoIP;
+else
+ ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
+if test "x$ac_cv_header_GeoIP_h" = xyes; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
+$as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
+if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char GeoIP_id_by_ipnum_v6_gl ();
+int
+main ()
+{
+return GeoIP_id_by_ipnum_v6_gl ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' GeoIP; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
+
+else
+ ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
+$as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
+ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+$as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
+
+fi
+
+fi
+
+
+fi
+
+
# Check whether --enable-openssl was given.
if test "${enable_openssl+set}" = set; then :
enableval=$enable_openssl; cf_enable_openssl=$enableval