| 806 |
|
with_ltdl_lib |
| 807 |
|
enable_ltdl_install |
| 808 |
|
enable_libpcre |
| 809 |
+ |
enable_libGeoIP |
| 810 |
|
enable_openssl |
| 811 |
|
enable_assert |
| 812 |
|
enable_kqueue |
| 1463 |
|
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1464 |
|
--enable-ltdl-install install libltdl |
| 1465 |
|
--disable-libpcre Disable PCRE support |
| 1466 |
+ |
--disable-libgeoip Disable GeoIP support |
| 1467 |
|
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
| 1468 |
|
--disable-openssl Disable OpenSSL support. |
| 1469 |
|
--enable-assert Enable assert() statements |
| 13725 |
|
|
| 13726 |
|
fi |
| 13727 |
|
|
| 13728 |
+ |
fi |
| 13729 |
+ |
|
| 13730 |
+ |
|
| 13731 |
+ |
fi |
| 13732 |
+ |
|
| 13733 |
+ |
|
| 13734 |
+ |
# Check whether --enable-libGeoIP was given. |
| 13735 |
+ |
if test "${enable_libGeoIP+set}" = set; then : |
| 13736 |
+ |
enableval=$enable_libGeoIP; |
| 13737 |
+ |
else |
| 13738 |
+ |
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" |
| 13739 |
+ |
if test "x$ac_cv_header_GeoIP_h" = xyes; then : |
| 13740 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_lib_version" >&5 |
| 13741 |
+ |
$as_echo_n "checking for library containing GeoIP_lib_version... " >&6; } |
| 13742 |
+ |
if ${ac_cv_search_GeoIP_lib_version+:} false; then : |
| 13743 |
+ |
$as_echo_n "(cached) " >&6 |
| 13744 |
+ |
else |
| 13745 |
+ |
ac_func_search_save_LIBS=$LIBS |
| 13746 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13747 |
+ |
/* end confdefs.h. */ |
| 13748 |
+ |
|
| 13749 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 13750 |
+ |
Use char because int might match the return type of a GCC |
| 13751 |
+ |
builtin and then its argument prototype would still apply. */ |
| 13752 |
+ |
#ifdef __cplusplus |
| 13753 |
+ |
extern "C" |
| 13754 |
+ |
#endif |
| 13755 |
+ |
char GeoIP_lib_version (); |
| 13756 |
+ |
int |
| 13757 |
+ |
main () |
| 13758 |
+ |
{ |
| 13759 |
+ |
return GeoIP_lib_version (); |
| 13760 |
+ |
; |
| 13761 |
+ |
return 0; |
| 13762 |
+ |
} |
| 13763 |
+ |
_ACEOF |
| 13764 |
+ |
for ac_lib in '' GeoIP; do |
| 13765 |
+ |
if test -z "$ac_lib"; then |
| 13766 |
+ |
ac_res="none required" |
| 13767 |
+ |
else |
| 13768 |
+ |
ac_res=-l$ac_lib |
| 13769 |
+ |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13770 |
+ |
fi |
| 13771 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 13772 |
+ |
ac_cv_search_GeoIP_lib_version=$ac_res |
| 13773 |
+ |
fi |
| 13774 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 13775 |
+ |
conftest$ac_exeext |
| 13776 |
+ |
if ${ac_cv_search_GeoIP_lib_version+:} false; then : |
| 13777 |
+ |
break |
| 13778 |
+ |
fi |
| 13779 |
+ |
done |
| 13780 |
+ |
if ${ac_cv_search_GeoIP_lib_version+:} false; then : |
| 13781 |
+ |
|
| 13782 |
+ |
else |
| 13783 |
+ |
ac_cv_search_GeoIP_lib_version=no |
| 13784 |
+ |
fi |
| 13785 |
+ |
rm conftest.$ac_ext |
| 13786 |
+ |
LIBS=$ac_func_search_save_LIBS |
| 13787 |
+ |
fi |
| 13788 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_lib_version" >&5 |
| 13789 |
+ |
$as_echo "$ac_cv_search_GeoIP_lib_version" >&6; } |
| 13790 |
+ |
ac_res=$ac_cv_search_GeoIP_lib_version |
| 13791 |
+ |
if test "$ac_res" != no; then : |
| 13792 |
+ |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13793 |
+ |
|
| 13794 |
+ |
$as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h |
| 13795 |
+ |
|
| 13796 |
+ |
fi |
| 13797 |
+ |
|
| 13798 |
|
fi |
| 13799 |
|
|
| 13800 |
|
|