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
#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;
}
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
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])]