From 6c55672dfdeaef0d3765069237d72323de2e66e9 Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 28 Mar 2001 22:30:21 +0000 Subject: [PATCH] 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? --- configure.in | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure.in b/configure.in index 43fa4c43bfe..9cb80257f07 100644 --- a/configure.in +++ b/configure.in @@ -250,14 +250,13 @@ dnl The sin may be in a library which need not be specifed 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