In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/0cc74f396bf31e3aa3a9f4c11d54cad18e3a2ebc?hp=be93048a43d87d317acca5b37619111b6a5f8c44>

- Log -----------------------------------------------------------------
commit 0cc74f396bf31e3aa3a9f4c11d54cad18e3a2ebc
Author: H.Merijn Brand <[email protected]>
Date:   Thu Aug 11 18:35:47 2016 +0200

    Add probe for gai_strerror
-----------------------------------------------------------------------

Summary of changes:
 Configure                 | 30 ++++++++++++++++++++++++++++++
 Cross/config.sh-arm-linux |  1 +
 NetWare/config.wc         |  1 +
 Porting/Glossary          |  6 ++++++
 Porting/config.sh         |  1 +
 config_h.SH               |  7 +++++++
 configure.com             |  1 +
 metaconfig.h              |  1 +
 plan9/config_sh.sample    |  1 +
 symbian/config.sh         |  1 +
 uconfig.h                 | 11 +++++++++--
 uconfig.sh                |  1 +
 uconfig64.sh              |  1 +
 win32/config.ce           |  1 +
 win32/config.gc           |  1 +
 win32/config.vc           |  1 +
 16 files changed, 64 insertions(+), 2 deletions(-)

diff --git a/Configure b/Configure
index c1d291b..818ab8e 100755
--- a/Configure
+++ b/Configure
@@ -506,6 +506,7 @@ d_ftello=''
 d_ftime=''
 d_gettimeod=''
 d_futimes=''
+d_gai_strerror=''
 d_Gconvert=''
 d_getaddrinfo=''
 d_getcwd=''
@@ -14293,6 +14294,34 @@ else
 fi
 $rm_try
 
+: look for gai_strerror
+echo " "
+$cat >try.c <<'EOCP'
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+int main ()
+{
+    return (gai_strerror (0) ? 0 : 1);
+    }
+EOCP
+set try
+val="$undef"
+if eval $compile; then
+    `$run ./try`
+    case "$?" in
+       0)  echo "A working gai_strerror() found." >&4
+           val="$define" ;;
+       *)  echo "gai_strerror() found, but it doesn't work" >&4
+           ;;
+       esac
+else
+    echo "gai_strerror() NOT found." >&4
+    fi
+set d_gai_strerror
+eval $setvar
+$rm_try
+
 : see if ndbm.h is available
 set ndbm.h i_ndbm
 eval $inhdr
@@ -24375,6 +24404,7 @@ d_fsync='$d_fsync'
 d_ftello='$d_ftello'
 d_ftime='$d_ftime'
 d_futimes='$d_futimes'
+d_gai_strerror='$d_gai_strerror'
 d_gdbm_ndbm_h_uses_prototypes='$d_gdbm_ndbm_h_uses_prototypes'
 d_gdbmndbm_h_uses_prototypes='$d_gdbmndbm_h_uses_prototypes'
 d_getaddrinfo='$d_getaddrinfo'
diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux
index 1201a76..8b3f5c0 100644
--- a/Cross/config.sh-arm-linux
+++ b/Cross/config.sh-arm-linux
@@ -233,6 +233,7 @@ d_fsync='define'
 d_ftello='define'
 d_ftime='undef'
 d_futimes='undef'
+d_gai_strerror='undef'
 d_gdbm_ndbm_h_uses_prototypes='undef'
 d_gdbmndbm_h_uses_prototypes='undef'
 d_getaddrinfo='undef'
diff --git a/NetWare/config.wc b/NetWare/config.wc
index db32f36..d61924e 100644
--- a/NetWare/config.wc
+++ b/NetWare/config.wc
@@ -221,6 +221,7 @@ d_fsync='undef'
 d_ftello='undef'
 d_ftime='define'
 d_futimes='undef'
+d_gai_strerror='undef'
 d_gdbm_ndbm_h_uses_prototypes='undef'
 d_gdbmndbm_h_uses_prototypes='undef'
 d_getaddrinfo='undef'
diff --git a/Porting/Glossary b/Porting/Glossary
index 5e7560a..39a17b8 100644
--- a/Porting/Glossary
+++ b/Porting/Glossary
@@ -983,6 +983,12 @@ d_futimes (d_futimes.U):
        This variable conditionally defines the HAS_FUTIMES symbol, which
        indicates to the C program that the futimes() routine is available.
 
+d_gai_strerror (d_gai_strerror.U):
+       This variable conditionally defines the HAS_GAI_STRERROR symbol
+       if the gai_strerror() routine is available and can be used to
+       translate error codes returned by getaddrinfo() into human
+       readable strings.
+
 d_Gconvert (d_gconvert.U):
        This variable holds what Gconvert is defined as to convert
        floating point numbers into strings.  By default, Configure
diff --git a/Porting/config.sh b/Porting/config.sh
index 68e0434..4f6e643 100644
--- a/Porting/config.sh
+++ b/Porting/config.sh
@@ -242,6 +242,7 @@ d_fsync='define'
 d_ftello='define'
 d_ftime='undef'
 d_futimes='define'
+d_gai_strerror='undef'
 d_gdbm_ndbm_h_uses_prototypes='undef'
 d_gdbmndbm_h_uses_prototypes='undef'
 d_getaddrinfo='define'
diff --git a/config_h.SH b/config_h.SH
index 5722333..099f92a 100755
--- a/config_h.SH
+++ b/config_h.SH
@@ -2882,6 +2882,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 
's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_futimes HAS_FUTIMES                /**/
 
+/* HAS_GAI_STRERROR:
+ *     This symbol, if defined, indicates that the gai_strerror routine
+ *     is available to translate error codes returned by getaddrinfo()
+ *     into human readable strings.
+ */
+#$d_gai_strerror HAS_GAI_STRERROR      /**/
+
 /* HAS_GETADDRINFO:
  *     This symbol, if defined, indicates that the getaddrinfo() function
  *     is available for use.
diff --git a/configure.com b/configure.com
index 8a97902..1d11fe1 100644
--- a/configure.com
+++ b/configure.com
@@ -6869,6 +6869,7 @@ $ WC "d_endprotoent_r='undef'"
 $ WC "d_endpwent_r='undef'"
 $ WC "d_endservent_r='undef'"
 $ WC "d_freelocale='undef'"
+$ WC "d_gai_strerror='undef'"
 $ WC "d_getgrent_r='undef'"
 $ WC "d_getgrgid_r='" + d_getgrgid_r + "'"
 $ WC "d_getgrnam_r='" + d_getgrnam_r + "'"
diff --git a/metaconfig.h b/metaconfig.h
index 98d91c2..a5538d8 100644
--- a/metaconfig.h
+++ b/metaconfig.h
@@ -20,6 +20,7 @@
  * HAS_FEGETROUND
  * HAS_FPCLASSIFY
  * HAS_FREELOCALE
+ * HAS_GAI_STRERROR
  * HAS_GMTIME64
  * HAS_ISFINITEL
  * HAS_ISINFL
diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample
index ef93b21..a89c918 100644
--- a/plan9/config_sh.sample
+++ b/plan9/config_sh.sample
@@ -233,6 +233,7 @@ d_fsync='define'
 d_ftello='undef'
 d_ftime='undef'
 d_futimes='undef'
+d_gai_strerror='undef'
 d_gdbm_ndbm_h_uses_prototypes='undef'
 d_gdbmndbm_h_uses_prototypes='undef'
 d_getaddrinfo='undef'
diff --git a/symbian/config.sh b/symbian/config.sh
index ee11554..b311521 100644
--- a/symbian/config.sh
+++ b/symbian/config.sh
@@ -178,6 +178,7 @@ d_ftello='undef'
 d_ftime='undef'
 d_futimes='undef'
 d_futimesat='undef'
+d_gai_strerror='undef'
 d_gdbm_ndbm_h_uses_prototypes='undef'
 d_gdbmndbm_h_uses_prototypes='undef'
 d_getaddrinfo='undef'
diff --git a/uconfig.h b/uconfig.h
index cdd7886..a02560f 100644
--- a/uconfig.h
+++ b/uconfig.h
@@ -2847,6 +2847,13 @@
  */
 /*#define HAS_FUTIMES          / **/
 
+/* HAS_GAI_STRERROR:
+ *     This symbol, if defined, indicates that the gai_strerror routine
+ *     is available to translate error codes returned by getaddrinfo()
+ *     into human readable strings.
+ */
+/*#define HAS_GAI_STRERROR     / **/
+
 /* HAS_GETADDRINFO:
  *     This symbol, if defined, indicates that the getaddrinfo() function
  *     is available for use.
@@ -5266,6 +5273,6 @@
 #endif
 
 /* Generated from:
- * cfa085ebfb9eb05bf5e1ba22c5b95092f6706990ceaf36a22d1d69af4e9cc060 config_h.SH
- * d9b976f8d350063d614cfaf6dc334c3ca7361603add9f38c49e2fed7c85ca388 uconfig.sh
+ * 42be1deadbcceadd92a1463d6c11c441bad7c83fe2a4cd1c2ebec7742bb5e8a3 config_h.SH
+ * 0fca2bf99ac976bba919b593a18bacd059c581dbe6c8638dc0861b1e613b8406 uconfig.sh
  * ex: set ro: */
diff --git a/uconfig.sh b/uconfig.sh
index 63614f8..edc36db 100644
--- a/uconfig.sh
+++ b/uconfig.sh
@@ -171,6 +171,7 @@ d_fsync='undef'
 d_ftello='undef'
 d_ftime='undef'
 d_futimes='undef'
+d_gai_strerror='undef'
 d_gdbm_ndbm_h_uses_prototypes='undef'
 d_gdbmndbm_h_uses_prototypes='undef'
 d_getaddrinfo='undef'
diff --git a/uconfig64.sh b/uconfig64.sh
index 3295998..df18372 100644
--- a/uconfig64.sh
+++ b/uconfig64.sh
@@ -172,6 +172,7 @@ d_fsync='undef'
 d_ftello='undef'
 d_ftime='undef'
 d_futimes='undef'
+d_gai_strerror='undef'
 d_gdbm_ndbm_h_uses_prototypes='undef'
 d_gdbmndbm_h_uses_prototypes='undef'
 d_getaddrinfo='undef'
diff --git a/win32/config.ce b/win32/config.ce
index c9a9834..8f68ddd 100644
--- a/win32/config.ce
+++ b/win32/config.ce
@@ -219,6 +219,7 @@ d_fsync='undef'
 d_ftello='undef'
 d_ftime='define'
 d_futimes='undef'
+d_gai_strerror='undef'
 d_gdbm_ndbm_h_uses_prototypes='undef'
 d_gdbmndbm_h_uses_prototypes='undef'
 d_getaddrinfo='undef'
diff --git a/win32/config.gc b/win32/config.gc
index 0b2a40b..69a21a2 100644
--- a/win32/config.gc
+++ b/win32/config.gc
@@ -220,6 +220,7 @@ d_fsync='undef'
 d_ftello='undef'
 d_ftime='define'
 d_futimes='undef'
+d_gai_strerror='undef'
 d_gdbm_ndbm_h_uses_prototypes='undef'
 d_gdbmndbm_h_uses_prototypes='undef'
 d_getaddrinfo='undef'
diff --git a/win32/config.vc b/win32/config.vc
index f8c8e08..50d2a92 100644
--- a/win32/config.vc
+++ b/win32/config.vc
@@ -220,6 +220,7 @@ d_fsync='undef'
 d_ftello='undef'
 d_ftime='define'
 d_futimes='undef'
+d_gai_strerror='undef'
 d_gdbm_ndbm_h_uses_prototypes='undef'
 d_gdbmndbm_h_uses_prototypes='undef'
 d_getaddrinfo='undef'

--
Perl5 Master Repository

Reply via email to