1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 01:23:53 +02:00

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?
This commit is contained in:
foobar
2001-03-28 22:30:21 +00:00
parent 7d50e21a4b
commit 6c55672dfd

View File

@@ -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