1 |
|
#! /bin/sh |
2 |
< |
# From configure.ac Id: configure.ac 1834 2013-04-19 19:50:27Z michael . |
2 |
> |
# From configure.ac Id: configure.ac 1837 2013-04-21 09:27:27Z michael . |
3 |
|
# Guess values for system-dependent variables and create Makefiles. |
4 |
|
# Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK. |
5 |
|
# |
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 |
13722 |
|
|
13723 |
|
fi |
13724 |
|
|
13725 |
+ |
fi |
13726 |
+ |
|
13727 |
+ |
|
13728 |
+ |
fi |
13729 |
+ |
|
13730 |
+ |
|
13731 |
+ |
# Check whether --enable-libGeoIP was given. |
13732 |
+ |
if test "${enable_libGeoIP+set}" = set; then : |
13733 |
+ |
enableval=$enable_libGeoIP; |
13734 |
+ |
else |
13735 |
+ |
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" |
13736 |
+ |
if test "x$ac_cv_header_GeoIP_h" = xyes; then : |
13737 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5 |
13738 |
+ |
$as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; } |
13739 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
13740 |
+ |
$as_echo_n "(cached) " >&6 |
13741 |
+ |
else |
13742 |
+ |
ac_func_search_save_LIBS=$LIBS |
13743 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13744 |
+ |
/* end confdefs.h. */ |
13745 |
+ |
|
13746 |
+ |
/* Override any GCC internal prototype to avoid an error. |
13747 |
+ |
Use char because int might match the return type of a GCC |
13748 |
+ |
builtin and then its argument prototype would still apply. */ |
13749 |
+ |
#ifdef __cplusplus |
13750 |
+ |
extern "C" |
13751 |
+ |
#endif |
13752 |
+ |
char GeoIP_id_by_ipnum_v6_gl (); |
13753 |
+ |
int |
13754 |
+ |
main () |
13755 |
+ |
{ |
13756 |
+ |
return GeoIP_id_by_ipnum_v6_gl (); |
13757 |
+ |
; |
13758 |
+ |
return 0; |
13759 |
+ |
} |
13760 |
+ |
_ACEOF |
13761 |
+ |
for ac_lib in '' GeoIP; do |
13762 |
+ |
if test -z "$ac_lib"; then |
13763 |
+ |
ac_res="none required" |
13764 |
+ |
else |
13765 |
+ |
ac_res=-l$ac_lib |
13766 |
+ |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13767 |
+ |
fi |
13768 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
13769 |
+ |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res |
13770 |
+ |
fi |
13771 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
13772 |
+ |
conftest$ac_exeext |
13773 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
13774 |
+ |
break |
13775 |
+ |
fi |
13776 |
+ |
done |
13777 |
+ |
if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then : |
13778 |
+ |
|
13779 |
+ |
else |
13780 |
+ |
ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no |
13781 |
+ |
fi |
13782 |
+ |
rm conftest.$ac_ext |
13783 |
+ |
LIBS=$ac_func_search_save_LIBS |
13784 |
+ |
fi |
13785 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5 |
13786 |
+ |
$as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; } |
13787 |
+ |
ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl |
13788 |
+ |
if test "$ac_res" != no; then : |
13789 |
+ |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13790 |
+ |
|
13791 |
+ |
$as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h |
13792 |
+ |
|
13793 |
+ |
fi |
13794 |
+ |
|
13795 |
|
fi |
13796 |
|
|
13797 |
|
|