diff options
author | Jim Meyering <jim@meyering.net> | 2005-10-01 06:54:11 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-10-01 06:54:11 +0000 |
commit | b364a72c6ba6e0d36f8ad2f77c6e1719b7aeef76 (patch) | |
tree | a558f0eacf75b962f4142d8272be652c5793dc4b /m4 | |
parent | f9c10dab98a85a8bb0f4bf230783862ae5bdd155 (diff) | |
download | coreutils-b364a72c6ba6e0d36f8ad2f77c6e1719b7aeef76.tar.xz |
(gl_GETADDRINFO): Look for getservbyname in these
libraries [inet nsl socket xnet]. Nelson Beebe reported that with
native cc on Solaris 7, getaddrinfo.c requires -lsocket.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/getaddrinfo.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/getaddrinfo.m4 b/m4/getaddrinfo.m4 index e03504fa2..07f7896ee 100644 --- a/m4/getaddrinfo.m4 +++ b/m4/getaddrinfo.m4 @@ -1,4 +1,4 @@ -# getaddrinfo.m4 serial 5 +# getaddrinfo.m4 serial 6 dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -6,8 +6,9 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GETADDRINFO], [ - AC_SEARCH_LIBS(getaddrinfo, nsl socket) + AC_SEARCH_LIBS(getaddrinfo, [nsl socket]) AC_SEARCH_LIBS(gethostbyname, [inet nsl]) + AC_SEARCH_LIBS(getservbyname, [inet nsl socket xnet]) AC_REPLACE_FUNCS(getaddrinfo gai_strerror) gl_PREREQ_GETADDRINFO ]) |