]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] correct libgeoip check in configure
authorEvan Hunt <each@isc.org>
Thu, 4 Sep 2014 04:37:30 +0000 (21:37 -0700)
committerEvan Hunt <each@isc.org>
Thu, 4 Sep 2014 04:37:30 +0000 (21:37 -0700)
configure
configure.in

index 926962c506b225ee441eb6aba8a6e18a9e4f8c78..53e070aa969a3a3533b2f12e27c3c1b5c7da65bb 100755 (executable)
--- a/configure
+++ b/configure
@@ -13707,9 +13707,9 @@ else
 fi
 
 
-               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_open" >&5
-$as_echo_n "checking for library containing GeoIP_open... " >&6; }
-if ${ac_cv_search_GeoIP_open+:} false; then :
+               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5
+$as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; }
+if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_func_search_save_LIBS=$LIBS
@@ -13722,11 +13722,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 #ifdef __cplusplus
 extern "C"
 #endif
-char GeoIP_open ();
+char GeoIP_id_by_addr_gl ();
 int
 main ()
 {
-return GeoIP_open ();
+return GeoIP_id_by_addr_gl ();
   ;
   return 0;
 }
@@ -13739,30 +13739,30 @@ for ac_lib in '' GeoIP; do
     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   fi
   if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_search_GeoIP_open=$ac_res
+  ac_cv_search_GeoIP_id_by_addr_gl=$ac_res
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext
-  if ${ac_cv_search_GeoIP_open+:} false; then :
+  if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
   break
 fi
 done
-if ${ac_cv_search_GeoIP_open+:} false; then :
+if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
 
 else
-  ac_cv_search_GeoIP_open=no
+  ac_cv_search_GeoIP_id_by_addr_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_open" >&5
-$as_echo "$ac_cv_search_GeoIP_open" >&6; }
-ac_res=$ac_cv_search_GeoIP_open
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5
+$as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; }
+ac_res=$ac_cv_search_GeoIP_id_by_addr_gl
 if test "$ac_res" != no; then :
   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
 else
-  as_fn_error $? "GeoIP library not found" "$LINENO" 5
+  as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5
 
 fi
 
index 6c2580a89b350b33f0ae86451149c5950f1e2339..4e0c9ae33aacffb4d36ecccc32c5fae0a8d981aa 100644 (file)
@@ -723,8 +723,8 @@ case "$use_geoip" in
                AC_CHECK_HEADER(GeoIP.h, [],
                        [AC_MSG_ERROR([GeoIP header file not found])]
                )
-               AC_SEARCH_LIBS(GeoIP_open, GeoIP, [],
-                       [AC_MSG_ERROR([GeoIP library not found])]
+               AC_SEARCH_LIBS(GeoIP_id_by_addr_gl, GeoIP, [],
+                       [AC_MSG_ERROR([suitable GeoIP library not found])]
                )
                AC_SEARCH_LIBS(fabsf, m, [],
                        [AC_MSG_ERROR([Math library not found])]