summaryrefslogtreecommitdiffstats
path: root/gl/m4/inet_ntop.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/inet_ntop.m4')
-rw-r--r--gl/m4/inet_ntop.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/gl/m4/inet_ntop.m4 b/gl/m4/inet_ntop.m4
index 693bd51b..62e7a575 100644
--- a/gl/m4/inet_ntop.m4
+++ b/gl/m4/inet_ntop.m4
@@ -1,6 +1,6 @@
1# inet_ntop.m4 1# inet_ntop.m4
2# serial 22 2# serial 23
3dnl Copyright (C) 2005-2006, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005-2006, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -19,6 +19,7 @@ AC_DEFUN([gl_FUNC_INET_NTOP],
19 dnl Solaris 8..10 provide inet_ntop in libnsl instead. 19 dnl Solaris 8..10 provide inet_ntop in libnsl instead.
20 dnl Solaris 2.6..7 provide inet_ntop in libresolv instead. 20 dnl Solaris 2.6..7 provide inet_ntop in libresolv instead.
21 dnl Haiku provides it in -lnetwork. 21 dnl Haiku provides it in -lnetwork.
22 dnl QNX provides it in -lsocket.
22 dnl Native Windows provides it in -lws2_32 instead, with a declaration in 23 dnl Native Windows provides it in -lws2_32 instead, with a declaration in
23 dnl <ws2tcpip.h>, and it uses stdcall calling convention, not cdecl 24 dnl <ws2tcpip.h>, and it uses stdcall calling convention, not cdecl
24 dnl (hence we cannot use AC_CHECK_FUNCS, AC_SEARCH_LIBS to find it). 25 dnl (hence we cannot use AC_CHECK_FUNCS, AC_SEARCH_LIBS to find it).
@@ -39,7 +40,7 @@ AC_DEFUN([gl_FUNC_INET_NTOP],
39 fi 40 fi
40 else 41 else
41 gl_saved_LIBS=$LIBS 42 gl_saved_LIBS=$LIBS
42 AC_SEARCH_LIBS([inet_ntop], [nsl resolv network], [], 43 AC_SEARCH_LIBS([inet_ntop], [nsl resolv network socket], [],
43 [AC_CHECK_FUNCS([inet_ntop]) 44 [AC_CHECK_FUNCS([inet_ntop])
44 if test $ac_cv_func_inet_ntop = no; then 45 if test $ac_cv_func_inet_ntop = no; then
45 HAVE_INET_NTOP=0 46 HAVE_INET_NTOP=0