This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Improve performance of grok_bin_oct_hex()
[perl5.git] / config_h.SH
index a24daa6..d890bca 100755 (executable)
@@ -5,6 +5,13 @@
 #
 # See Porting/config_h.pl
 
+#!/bin/sh
+#
+# THIS IS A GENERATED FILE
+# DO NOT HAND-EDIT
+#
+# See Porting/config_h.pl
+
 : Set up for generating config_h.SH
 case "$CONFIG_SH" in
 '') CONFIG_SH=config.sh;;
@@ -31,6 +38,9 @@ esac
 case "$CONFIG_H" in
 already-done) echo "Not re-extracting config.h" ;;
 *)
+case "$CONFIG_H" in
+already-done) echo "Not re-extracting config.h" ;;
+*)
 echo "Extracting $CONFIG_H (with variable substitutions)"
 sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
 /* This file was produced by running the config_h.SH script, which
@@ -381,7 +391,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 
 /* HAS_REGCOMP:
  *     This symbol, if defined, indicates that the regcomp() routine is
- *     available to do some regular patern matching (usually on POSIX.2
+ *     available to do some regular pattern matching (usually on POSIX.2
  *     conforming systems).
  */
 #$d_regcomp HAS_REGCOMP                /* POSIX.2 */
@@ -1500,6 +1510,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 #$d_attribute_pure HASATTRIBUTE_PURE   /**/
 #$d_attribute_unused HASATTRIBUTE_UNUSED       /**/
 #$d_attribute_warn_unused_result HASATTRIBUTE_WARN_UNUSED_RESULT       /**/
+#$d_attribute_always_inline HASATTRIBUTE_ALWAYS_INLINE /**/
 
 /* HAS_BACKTRACE:
  *     This symbol, if defined, indicates that the backtrace() routine is
@@ -3011,6 +3022,9 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  *     This symbol, if defined, indicates that the memmem routine is
  *     available to return a pointer to the start of the first occurance
  *     of a substring in a memory area (or NULL if not found).
+ *     In glibc, memmem is a GNU extension.  The function is visible in
+ *     libc, but the prototype is only visible if _GNU_SOURCE is #defined.
+ *     Thus we only define this if both the prototype and symbol are found.
  */
 #$d_memmem HAS_MEMMEM          /**/
 
@@ -4228,11 +4242,11 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 #$use64bitall  USE_64_BIT_ALL          /**/
 #endif
 
-/* USE_CBACKTRACE:
+/* USE_C_BACKTRACE:
  *     This symbol, if defined, indicates that Perl should
  *     be built with support for backtrace.
  */
-#$usecbacktrace USE_CBACKTRACE         /**/
+#$usecbacktrace USE_C_BACKTRACE                /**/
 
 /* USE_DTRACE:
  *     This symbol, if defined, indicates that Perl should
@@ -5119,6 +5133,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 #$d_ttyname_r HAS_TTYNAME_R    /**/
 #define TTYNAME_R_PROTO $ttyname_r_proto       /**/
 
+/* HAS_WCRTOMB:
+ *     This symbol, if defined, indicates that the wcrtomb routine is
+ *     available to convert a wide character into a multi-byte character.
+ */
+#$d_wcrtomb HAS_WCRTOMB        /**/
+
 /* I_MACH_CTHREADS:
  *     This symbol, if defined, indicates to the C program that it should
  *     include <mach/cthreads.h>.
@@ -5277,3 +5297,5 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 !GROK!THIS!
 ;;
 esac
+;;
+esac