sniper          Wed Mar 28 14:30:22 2001 EDT

  Modified files:              
    /php4       configure.in 
  Log:
  Make file() work again. 
  # For some reason if libbind is linked with PHP the file() function 
  # won't work with URLs. Do we even need libbind?
  
  
Index: php4/configure.in
diff -u php4/configure.in:1.226 php4/configure.in:1.227
--- php4/configure.in:1.226     Tue Mar 27 12:34:22 2001
+++ php4/configure.in   Wed Mar 28 14:30:21 2001
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.226 2001/03/27 20:34:22 sniper Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.227 2001/03/28 22:30:21 sniper Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -250,14 +250,13 @@
 dnl as well as res_search resides in libsocket
 AC_CHECK_LIB(m, sin)
 
-AC_CHECK_LIB(bind, inet_aton, [
-  PHP_ADD_LIBRARY(bind)
-  AC_DEFINE(HAVE_LIBBIND,1,[Whether you have bind]) ], [
-    AC_CHECK_LIB(bind, __inet_aton, [], [
-      AC_CHECK_LIB(resolv, inet_aton)
-    ])
+dnl Only include libbind if inet_aton is not found in 
+dnl libresolv.
+AC_CHECK_LIB(resolv, inet_aton. [], [
+  AC_CHECK_LIB(bind, inet_aton, [], [
+    AC_CHECK_LIB(bind, __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



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to