]> granicus.if.org Git - php/commitdiff
Check for inet_aton only if libbind is not found (or inet_aton is not in
authorfoobar <sniper@php.net>
Sun, 11 Mar 2001 03:46:24 +0000 (03:46 +0000)
committerfoobar <sniper@php.net>
Sun, 11 Mar 2001 03:46:24 +0000 (03:46 +0000)
libbind). Fixes bug: #8814

configure.in

index 9e150efcd48c5f71f9628ec44c51f1b55b4fdfbc..c1a96f8c695635a9f14195a83ec06c4384309e04 100644 (file)
@@ -251,9 +251,9 @@ AC_CHECK_LIB(m, sin)
 
 AC_CHECK_LIB(bind, inet_aton, [
   AC_ADD_LIBRARY(bind)
-  AC_DEFINE(HAVE_LIBBIND,1,[Whether you have bind]) ], []) 
-
-AC_CHECK_LIB(resolv, inet_aton)
+  AC_DEFINE(HAVE_LIBBIND,1,[Whether you have bind]) ], [
+    AC_CHECK_LIB(resolv, inet_aton)
+  ]) 
 
 dnl The res_search may be in libsocket as well, and if it is
 dnl make sure to check for dn_skipname in libresolv, or if res_search