1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Check library containing socket() with AC_SEARCH_LIBS (#13642)

Solaris/illumos systems have socket() in the socket library, Haiku has
it in network, Windows in ws2_32, and other systems in libc. This also
removes redundant and unused HAVE_SOCKET symbol.
This commit is contained in:
Peter Kokot
2024-03-10 06:53:39 +01:00
committed by GitHub
parent bb1ef4fe21
commit a0b821b543

View File

@@ -357,7 +357,7 @@ dnl Some systems (OpenServer 5) dislike -lsocket -lnsl, so we try to avoid -lnsl
dnl checks, if we already have the functions which are usually in libnsl. Also,
dnl uClibc will bark at linking with glibc's libnsl.
PHP_CHECK_FUNC(socket, socket, network)
AC_SEARCH_LIBS([socket], [socket network])
PHP_CHECK_FUNC(socketpair, socket, network)
PHP_CHECK_FUNC(gethostname, nsl, network)
PHP_CHECK_FUNC(gethostbyaddr, nsl, network)