Convert ext/B/t/debug.t to Test::More. (Diagnostics are good, m'kay)
[p5sagit/p5-mst-13.2.git] / config_h.SH
index ee4c292..84eb8ae 100644 (file)
@@ -92,16 +92,11 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_chsize     HAS_CHSIZE              /**/
 
-/* HASCONST:
- *     This symbol, if defined, indicates that this C compiler knows about
- *     the const type. There is no need to actually test for that symbol
- *     within your programs. The mere use of the "const" keyword will
- *     trigger the necessary tests.
+/* HAS_CTERMID:
+ *     This symbol, if defined, indicates that the ctermid routine is
+ *     available to generate filename for terminal.
  */
-#$d_const HASCONST     /**/
-#ifndef HASCONST
-#define const
-#endif
+#$d_ctermid HAS_CTERMID                /**/
 
 /* HAS_CUSERID:
  *     This symbol, if defined, indicates that the cuserid routine is
@@ -373,13 +368,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_pipe HAS_PIPE              /**/
 
-/* HAS_POLL:
- *     This symbol, if defined, indicates that the poll routine is
- *     available to poll active file descriptors. You may safely
- *     include <poll.h> when this symbol is defined.
- */
-#$d_poll HAS_POLL              /**/
-
 /* HAS_READDIR:
  *     This symbol, if defined, indicates that the readdir routine is
  *     available to read directory entries. You may have to include
@@ -709,6 +697,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$i_float I_FLOAT              /**/
 
+/* I_GDBM:
+ *     This symbol, if defined, indicates that <gdbm.h> exists and should
+ *     be included.
+ */
+#$i_gdbm I_GDBM        /**/
+
 /* I_LIMITS:
  *     This symbol, if defined, indicates to the C program that it should
  *     include <limits.h> to get definition of symbols like WORD_BIT or
@@ -1162,6 +1156,9 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 /* HASATTRIBUTE_FORMAT:
  *     Can we handle GCC attribute for checking printf-style formats
  */
+/* PRINTF_FORMAT_NULL_OK:
+ *     Allows __printf__ format to be null when checking printf-style
+ */
 /* HASATTRIBUTE_MALLOC:
  *     Can we handle GCC attribute for malloc-style functions.
  */
@@ -1181,6 +1178,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  *     Can we handle GCC attribute for warning on unused results
  */
 #$d_attribute_format HASATTRIBUTE_FORMAT       /**/
+#$d_printf_format_null PRINTF_FORMAT_NULL_OK   /**/
 #$d_attribute_noreturn HASATTRIBUTE_NORETURN   /**/
 #$d_attribute_malloc HASATTRIBUTE_MALLOC       /**/
 #$d_attribute_nonnull HASATTRIBUTE_NONNULL     /**/
@@ -1198,6 +1196,11 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 #$d_builtin_expect HAS_BUILTIN_EXPECT  /**/
 #$d_builtin_choose_expr HAS_BUILTIN_CHOOSE_EXPR        /**/
 
+/* HAS_C99_VARIADIC_MACROS:
+ *     If defined, the compiler supports C99 variadic macros.
+ */
+#$d_c99_variadic_macros        HAS_C99_VARIADIC_MACROS /**/
+
 /* CASTI32:
  *     This symbol is defined if the C compiler can cast negative
  *     or large floating point numbers to 32-bit ints.
@@ -1255,12 +1258,29 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_cmsghdr_s HAS_STRUCT_CMSGHDR       /**/
 
+/* HASCONST:
+ *     This symbol, if defined, indicates that this C compiler knows about
+ *     the const type. There is no need to actually test for that symbol
+ *     within your programs. The mere use of the "const" keyword will
+ *     trigger the necessary tests.
+ */
+#$d_const HASCONST     /**/
+#ifndef HASCONST
+#define const
+#endif
+
 /* HAS_COPYSIGNL:
  *     This symbol, if defined, indicates that the copysignl routine is
  *     available.  If aintl is also present we can emulate modfl.
  */
 #$d_copysignl HAS_COPYSIGNL            /**/
 
+/* USE_CPLUSPLUS:
+ *     This symbol, if defined, indicates that a C++ compiler was
+ *     used to compiled Perl and will be used to compile extensions.
+ */
+#$d_cplusplus USE_CPLUSPLUS            /**/
+
 /* HAS_CRYPT:
  *     This symbol, if defined, indicates that the crypt routine is available
  *     to encrypt passwords and the like.
@@ -1325,6 +1345,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_dbminitproto       HAS_DBMINIT_PROTO       /**/
 
+/* HAS_DIR_DD_FD:
+ *     This symbol, if defined, indicates that the the DIR* dirstream
+ *     structure contains a member variable named dd_fd.
+ */
+#$d_dir_dd_fd HAS_DIR_DD_FD            /**/
+
 /* HAS_DIRFD:
  *     This manifest constant lets the C program know that dirfd
  *     is available.
@@ -2271,6 +2297,19 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  *     This symbol, if defined, indicates that the localtime_r routine
  *     is available to localtime re-entrantly.
  */
+/* LOCALTIME_R_NEEDS_TZSET:
+ *     Many libc's localtime_r implementations do not call tzset,
+ *     making them differ from localtime(), and making timezone
+ *     changes using $ENV{TZ} without explicitly calling tzset
+ *     impossible. This symbol makes us call tzset before localtime_r
+ */
+#$d_localtime_r_needs_tzset LOCALTIME_R_NEEDS_TZSET /**/
+#ifdef LOCALTIME_R_NEEDS_TZSET
+#define L_R_TZSET tzset(),
+#else
+#define L_R_TZSET
+#endif
+
 /* LOCALTIME_R_PROTO:
  *     This symbol encodes the prototype of localtime_r.
  *     It is zero if d_localtime_r is undef, and one of the
@@ -2366,7 +2405,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 /* Mmap_t:
  *     This symbol holds the return type of the mmap() system call
  *     (and simultaneously the type of the first argument).
- *     Usually set to 'void *' or 'cadd_t'.
+ *     Usually set to 'void *' or 'caddr_t'.
  */
 #$d_mmap HAS_MMAP              /**/
 #define Mmap_t $mmaptype       /**/
@@ -2428,6 +2467,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_open3 HAS_OPEN3            /**/
 
+/* HAS_POLL:
+ *     This symbol, if defined, indicates that the poll routine is
+ *     available to poll active file descriptors. You may safely
+ *     include <poll.h> when both this symbol *and* I_POLL are defined.
+ */
+#$d_poll HAS_POLL              /**/
+
 /* HAS_PROCSELFEXE:
  *     This symbol is defined if PROCSELFEXE_PATH is a symlink
  *     to the absolute pathname of the executing program.
@@ -3279,6 +3325,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_vfork HAS_VFORK    /**/
 
+/* HAS_PSEUDOFORK:
+ *     This symbol, if defined, indicates that an emulation of the
+ *     fork routine is available.
+ */
+#$d_pseudofork HAS_PSEUDOFORK  /**/
+
 /* Signal_t:
  *     This symbol's value is either "void" or "int", corresponding to the
  *     appropriate return type of a signal handler.  Thus, you can declare
@@ -3499,7 +3551,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 
 /* I_POLL:
  *     This symbol, if defined, indicates that <poll.h> exists and
- *     should be included.
+ *     should be included. (see also HAS_POLL)
  */
 #$i_poll       I_POLL          /**/
 
@@ -4008,6 +4060,18 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #define Pid_t $pidtype         /* PID type */
 
+/* INSTALL_PREFIX:
+ *     This symbol contains the "root" of installation tree for this package.
+ *     The program should be prepared to do ~ expansion.
+ */
+/* INSTALL_PREFIX_EXP:
+ *     This symbol contains the "root" of installation tree for this package
+ *     to be used
+ *     in programs that are not prepared to deal with ~ expansion at run-time.
+ */
+#define INSTALL_PREFIX "$installprefix"                /**/
+#define INSTALL_PREFIX_EXP "$installprefixexp" /**/
+
 /* PRIVLIB:
  *     This symbol contains the name of the private library for this package.
  *     The library is private in the sense that it needn't be in anyone's
@@ -4347,6 +4411,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 /* USE_5005THREADS:
  *     This symbol, if defined, indicates that Perl should be built to
  *     use the 5.005-based threading implementation.
+ *     Only valid up to 5.8.x.
  */
 /* OLD_PTHREADS_API:
  *     This symbol, if defined, indicates that Perl should
@@ -4421,10 +4486,4 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 #endif
 
 #endif
-
-/* HAS_C99_VARIADIC_MACROS:
- *     If defined, the compiler supports C99 variadic macros.
- */
-#$d_c99_variadic_macros        HAS_C99_VARIADIC_MACROS /**/
-
 !GROK!THIS!