mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Ticket #185 (Check for gethostbyname with nsl)
socket.m4: add nsl in search for gethostbyname
This commit is contained in:
parent
05b590d225
commit
b9d2d3fc7f
@ -1,8 +1,8 @@
|
|||||||
AC_DEFUN([AC_REQUIRE_SOCKET],
|
AC_DEFUN([AC_REQUIRE_SOCKET],
|
||||||
[
|
[
|
||||||
AC_SEARCH_LIBS(socket, [xnet bsd socket inet], [have_socket=yes])
|
AC_SEARCH_LIBS(socket, [xnet bsd socket inet], [have_socket=yes])
|
||||||
if test x"$have_socket" = xyes; then
|
if test x"$have_socket" = x"yes"; then
|
||||||
AC_SEARCH_LIBS(gethostbyname, [bsd socket inet netinet])
|
AC_SEARCH_LIBS(gethostbyname, [bsd socket inet netinet nsl])
|
||||||
AC_CHECK_MEMBERS([struct linger.l_linger], , , [
|
AC_CHECK_MEMBERS([struct linger.l_linger], , , [
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user