summaryrefslogtreecommitdiffstats
path: root/gl/m4/inet_ntop.m4
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-08 01:11:46 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-13 01:26:35 (GMT)
commit74da141e618ef99959d509cb2e7be35a348a39db (patch)
tree88ebc38b381a1021fc2d74864a71e230ae591c3d /gl/m4/inet_ntop.m4
parentc63a4f726a0b6ad8cf6040f947754a81fd4683bb (diff)
downloadmonitoring-plugins-74da141e618ef99959d509cb2e7be35a348a39db.tar.gz
Sync with the latest Gnulib code (177f525)
Signed-off-by: Thomas Guyot-Sionnest <dermoth@aei.ca>
Diffstat (limited to 'gl/m4/inet_ntop.m4')
-rw-r--r--gl/m4/inet_ntop.m421
1 files changed, 11 insertions, 10 deletions
diff --git a/gl/m4/inet_ntop.m4 b/gl/m4/inet_ntop.m4
index 2bbdca1..a6d219c 100644
--- a/gl/m4/inet_ntop.m4
+++ b/gl/m4/inet_ntop.m4
@@ -1,27 +1,28 @@
1# inet_ntop.m4 serial 9 1# inet_ntop.m4 serial 12
2dnl Copyright (C) 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 2dnl Copyright (C) 2005, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
6 6
7AC_DEFUN([gl_INET_NTOP], 7AC_DEFUN([gl_FUNC_INET_NTOP],
8[ 8[
9 dnl Persuade Solaris <arpa/inet.h> to declare inet_ntop. 9 dnl Persuade Solaris <arpa/inet.h> to declare inet_ntop.
10 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 10 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
11 11
12 gl_REPLACE_ARPA_INET_H 12 gl_REPLACE_ARPA_INET_H
13 13
14 dnl The AC_SEARCH_LIBS call is a hack to persuade the Solaris 8 linker to 14 dnl Most platforms that provide inet_ntop define it in libc.
15 dnl find inet_ntop. 15 dnl Solaris 8..10 provide inet_ntop in libnsl instead.
16 dnl
17 dnl It is the responsibility of gl_INET_NTOP's caller to arrange for
18 dnl -lnsl if it is needed. Normally -lnsl is not needed on Solaris 8,
19 dnl since inet_ntop is needed only by getaddrinfo, and getaddrinfo
20 dnl isn't built on Solaris 8.
21 gl_save_LIBS=$LIBS 16 gl_save_LIBS=$LIBS
22 AC_SEARCH_LIBS([inet_ntop], [nsl], [], 17 AC_SEARCH_LIBS([inet_ntop], [nsl], [],
23 [AC_REPLACE_FUNCS([inet_ntop])]) 18 [AC_REPLACE_FUNCS([inet_ntop])])
24 LIBS=$gl_save_LIBS 19 LIBS=$gl_save_LIBS
20 INET_NTOP_LIB=
21 if test "$ac_cv_search_inet_ntop" != "no" &&
22 test "$ac_cv_search_inet_ntop" != "none required"; then
23 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
24 fi
25 AC_SUBST([INET_NTOP_LIB])
25 26
26 gl_PREREQ_INET_NTOP 27 gl_PREREQ_INET_NTOP
27]) 28])