summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-22 17:51:03 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-22 17:51:03 +0000
commit2a0de2c52ab4e8b4f51332a0e1eaae4b8cff3f48 (patch)
tree97b354c83761a18c7a844271b6a102afd1d4abf9
parentbfd025d94e67a140ec0eeee79dfcef213d537327 (diff)
downloadperl-2a0de2c52ab4e8b4f51332a0e1eaae4b8cff3f48.tar.gz
Add a Configure probe for <assert.h>
p4raw-id: //depot/perl@32705
-rwxr-xr-xConfigure6
-rw-r--r--Cross/config.sh-arm-linux1
-rw-r--r--NetWare/config.wc1
-rw-r--r--NetWare/config_H.wc6
-rw-r--r--Porting/Glossary5
-rw-r--r--Porting/config.sh1
-rw-r--r--Porting/config_H6
-rw-r--r--config_h.SH6
-rw-r--r--configure.com1
-rw-r--r--epoc/config.sh1
-rw-r--r--plan9/config_h.sample6
-rw-r--r--plan9/config_sh.sample1
-rw-r--r--symbian/config.sh1
-rw-r--r--uconfig.h8
-rwxr-xr-xuconfig.sh1
-rw-r--r--win32/config.bc1
-rw-r--r--win32/config.ce1
-rw-r--r--win32/config.gc1
-rw-r--r--win32/config.vc1
-rw-r--r--win32/config.vc641
-rw-r--r--win32/config_H.bc6
-rw-r--r--win32/config_H.ce6
-rw-r--r--win32/config_H.gc6
-rw-r--r--win32/config_H.vc6
-rw-r--r--win32/config_H.vc646
25 files changed, 85 insertions, 1 deletions
diff --git a/Configure b/Configure
index e8059b0a35..d907e04d97 100755
--- a/Configure
+++ b/Configure
@@ -839,6 +839,7 @@ installhtml1dir=''
html3dir=''
html3direxp=''
installhtml3dir=''
+i_assert=''
i_arpainet=''
i_crypt=''
db_hashtype=''
@@ -20923,6 +20924,10 @@ val=$val3; set i_termios; eval $setvar
set stddef.h i_stddef
eval $inhdr
+: see if assert.h is available
+set assert.h i_assert
+eval $inhdr
+
: see if sys/access.h is available
set sys/access.h i_sysaccess
eval $inhdr
@@ -22104,6 +22109,7 @@ i64type='$i64type'
i8size='$i8size'
i8type='$i8type'
i_arpainet='$i_arpainet'
+i_assert='$i_assert'
i_bsdioctl='$i_bsdioctl'
i_crypt='$i_crypt'
i_db='$i_db'
diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux
index fa6358d275..5e571161dc 100644
--- a/Cross/config.sh-arm-linux
+++ b/Cross/config.sh-arm-linux
@@ -611,6 +611,7 @@ i64type='long long'
i8size='1'
i8type='char'
i_arpainet='define'
+i_assert='define'
i_bsdioctl=''
i_crypt='define'
i_db='undef'
diff --git a/NetWare/config.wc b/NetWare/config.wc
index c2cd1f301c..2afe65e6c2 100644
--- a/NetWare/config.wc
+++ b/NetWare/config.wc
@@ -594,6 +594,7 @@ i64type='__int64'
i8size='1'
i8type='char'
i_arpainet='define'
+i_assert='define'
i_bsdioctl=''
i_crypt='undef'
i_db='undef'
diff --git a/NetWare/config_H.wc b/NetWare/config_H.wc
index 99a4eb5f31..f21a6e1db0 100644
--- a/NetWare/config_H.wc
+++ b/NetWare/config_H.wc
@@ -686,6 +686,12 @@
*/
#define I_ARPA_INET /**/
+/* I_ASSERT:
+ * This symbol, if defined, indicates to the C program that it could
+ * include <assert.h> to get the assert() macro.
+ */
+#define I_ASSERT /**/
+
/* I_DBM:
* This symbol, if defined, indicates that <dbm.h> exists and should
* be included.
diff --git a/Porting/Glossary b/Porting/Glossary
index f267d40fb1..5c35d2482e 100644
--- a/Porting/Glossary
+++ b/Porting/Glossary
@@ -2824,6 +2824,11 @@ i_arpainet (i_arpainet.U):
This variable conditionally defines the I_ARPA_INET symbol,
and indicates whether a C program should include <arpa/inet.h>.
+i_assert (i_assert.U):
+ This variable conditionally defines the I_ASSERT symbol, which
+ indicates to the C program that <assert.h> exists and could
+ be included.
+
i_bsdioctl (i_sysioctl.U):
This variable conditionally defines the I_SYS_BSDIOCTL symbol, which
indicates to the C program that <sys/bsdioctl.h> exists and should
diff --git a/Porting/config.sh b/Porting/config.sh
index 4dc7712fc3..654adf63d7 100644
--- a/Porting/config.sh
+++ b/Porting/config.sh
@@ -611,6 +611,7 @@ i64type='long long'
i8size='1'
i8type='char'
i_arpainet='define'
+i_assert='define'
i_bsdioctl=''
i_crypt='define'
i_db='define'
diff --git a/Porting/config_H b/Porting/config_H
index b49e4d1776..165f596f85 100644
--- a/Porting/config_H
+++ b/Porting/config_H
@@ -640,6 +640,12 @@
*/
#define I_ARPA_INET /**/
+/* I_ASSERT:
+ * This symbol, if defined, indicates to the C program that it could
+ * include <assert.h> to get the assert() macro.
+ */
+#define I_ASSERT /**/
+
/* I_DBM:
* This symbol, if defined, indicates that <dbm.h> exists and should
* be included.
diff --git a/config_h.SH b/config_h.SH
index 1f923442bf..2f955d8d0d 100644
--- a/config_h.SH
+++ b/config_h.SH
@@ -640,6 +640,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$i_arpainet I_ARPA_INET /**/
+/* I_ASSERT:
+ * This symbol, if defined, indicates to the C program that it could
+ * include <assert.h> to get the assert() macro.
+ */
+#$i_assert I_ASSERT /**/
+
/* I_DBM:
* This symbol, if defined, indicates that <dbm.h> exists and should
* be included.
diff --git a/configure.com b/configure.com
index 199c174761..800f054c21 100644
--- a/configure.com
+++ b/configure.com
@@ -6168,6 +6168,7 @@ $ WC "i64type='" + i64type + "'"
$ WC "i8size='" + i8size + "'"
$ WC "i8type='" + i8type + "'"
$ WC "i_arpainet='undef'"
+$ WC "i_assert='define'"
$ WC "i_crypt='undef'"
$ WC "i_db='undef'"
$ WC "i_dbm='undef'"
diff --git a/epoc/config.sh b/epoc/config.sh
index abc81e7b48..e54f56836e 100644
--- a/epoc/config.sh
+++ b/epoc/config.sh
@@ -557,6 +557,7 @@ h_sysfile=''
hint=''
hostcat=''
i_arpainet='define'
+i_assert='define'
i_bsdioctl='undef'
i_crypt='undef'
i_db='undef'
diff --git a/plan9/config_h.sample b/plan9/config_h.sample
index 02816711c4..0714eb880e 100644
--- a/plan9/config_h.sample
+++ b/plan9/config_h.sample
@@ -654,6 +654,12 @@
*/
#define I_ARPA_INET /**/
+/* I_ASSERT:
+ * This symbol, if defined, indicates to the C program that it could
+ * include <assert.h> to get the assert() macro.
+ */
+#define I_ASSERT /**/
+
/* I_DBM:
* This symbol, if defined, indicates that <dbm.h> exists and should
* be included.
diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample
index e31ed49f60..9d116652cc 100644
--- a/plan9/config_sh.sample
+++ b/plan9/config_sh.sample
@@ -605,6 +605,7 @@ i64type='long long'
i8size='1'
i8type='char'
i_arpainet='define'
+i_assert='define'
i_bsdioctl=''
i_crypt='undef'
i_db='undef'
diff --git a/symbian/config.sh b/symbian/config.sh
index 247427ef7d..c31d4bea54 100644
--- a/symbian/config.sh
+++ b/symbian/config.sh
@@ -532,6 +532,7 @@ i64type='int64_t'
i8size='1'
i8type='char'
i_arpainet='undef'
+i_assert='define'
i_bsdioctl=''
i_crypt='undef'
i_db='undef'
diff --git a/uconfig.h b/uconfig.h
index 197b390db0..78bef6f4fe 100644
--- a/uconfig.h
+++ b/uconfig.h
@@ -627,7 +627,13 @@
* This symbol, if defined, indicates to the C program that it should
* include <arpa/inet.h> to get inet_addr and friends declarations.
*/
-/*#define I_ARPA_INET / **/
+#define I_ARPA_INET /**/
+
+/* I_ASSERT:
+ * This symbol, if defined, indicates to the C program that it could
+ * include <assert.h> to get the assert() macro.
+ */
+#define I_ASSERT /**/
/* I_DBM:
* This symbol, if defined, indicates that <dbm.h> exists and should
diff --git a/uconfig.sh b/uconfig.sh
index fe8a404cba..2503c1b3c6 100755
--- a/uconfig.sh
+++ b/uconfig.sh
@@ -518,6 +518,7 @@ i64type='int64_t'
i8size='1'
i8type='char'
i_arpainet='undef'
+i_assert='define'
i_bsdioctl=''
i_crypt='undef'
i_db='undef'
diff --git a/win32/config.bc b/win32/config.bc
index 2c1ffd745b..7f7cc38729 100644
--- a/win32/config.bc
+++ b/win32/config.bc
@@ -599,6 +599,7 @@ i64type='__int64'
i8size='1'
i8type='char'
i_arpainet='define'
+i_assert='define'
i_bsdioctl=''
i_crypt='undef'
i_db='undef'
diff --git a/win32/config.ce b/win32/config.ce
index 6edabb715c..2be951961c 100644
--- a/win32/config.ce
+++ b/win32/config.ce
@@ -592,6 +592,7 @@ i64type='__int64'
i8size='1'
i8type='char'
i_arpainet='define'
+i_assert='define'
i_bsdioctl=''
i_crypt='undef'
i_db='undef'
diff --git a/win32/config.gc b/win32/config.gc
index 121c6ba7cf..e1e1bc37c1 100644
--- a/win32/config.gc
+++ b/win32/config.gc
@@ -599,6 +599,7 @@ i64type='long long'
i8size='1'
i8type='char'
i_arpainet='define'
+i_assert='define'
i_bsdioctl=''
i_crypt='undef'
i_db='undef'
diff --git a/win32/config.vc b/win32/config.vc
index d6635ed975..6e167269af 100644
--- a/win32/config.vc
+++ b/win32/config.vc
@@ -599,6 +599,7 @@ i64type='__int64'
i8size='1'
i8type='char'
i_arpainet='define'
+i_assert='define'
i_bsdioctl=''
i_crypt='undef'
i_db='undef'
diff --git a/win32/config.vc64 b/win32/config.vc64
index f74dff6c2a..b5bea414da 100644
--- a/win32/config.vc64
+++ b/win32/config.vc64
@@ -599,6 +599,7 @@ i64type='__int64'
i8size='1'
i8type='char'
i_arpainet='define'
+i_assert='define'
i_bsdioctl=''
i_crypt='undef'
i_db='undef'
diff --git a/win32/config_H.bc b/win32/config_H.bc
index 67a2bbf320..c07d573869 100644
--- a/win32/config_H.bc
+++ b/win32/config_H.bc
@@ -635,6 +635,12 @@
*/
#define I_ARPA_INET /**/
+/* I_ASSERT:
+ * This symbol, if defined, indicates to the C program that it could
+ * include <assert.h> to get the assert() macro.
+ */
+#define I_ASSERT /**/
+
/* I_DBM:
* This symbol, if defined, indicates that <dbm.h> exists and should
* be included.
diff --git a/win32/config_H.ce b/win32/config_H.ce
index 370400971a..7f9200c421 100644
--- a/win32/config_H.ce
+++ b/win32/config_H.ce
@@ -636,6 +636,12 @@
*/
#define I_ARPA_INET /**/
+/* I_ASSERT:
+ * This symbol, if defined, indicates to the C program that it could
+ * include <assert.h> to get the assert() macro.
+ */
+#define I_ASSERT /**/
+
/* I_DBM:
* This symbol, if defined, indicates that <dbm.h> exists and should
* be included.
diff --git a/win32/config_H.gc b/win32/config_H.gc
index af73208ca8..01fdc3a400 100644
--- a/win32/config_H.gc
+++ b/win32/config_H.gc
@@ -635,6 +635,12 @@
*/
#define I_ARPA_INET /**/
+/* I_ASSERT:
+ * This symbol, if defined, indicates to the C program that it could
+ * include <assert.h> to get the assert() macro.
+ */
+#define I_ASSERT /**/
+
/* I_DBM:
* This symbol, if defined, indicates that <dbm.h> exists and should
* be included.
diff --git a/win32/config_H.vc b/win32/config_H.vc
index 2f03c87767..0373bf928e 100644
--- a/win32/config_H.vc
+++ b/win32/config_H.vc
@@ -635,6 +635,12 @@
*/
#define I_ARPA_INET /**/
+/* I_ASSERT:
+ * This symbol, if defined, indicates to the C program that it could
+ * include <assert.h> to get the assert() macro.
+ */
+#define I_ASSERT /**/
+
/* I_DBM:
* This symbol, if defined, indicates that <dbm.h> exists and should
* be included.
diff --git a/win32/config_H.vc64 b/win32/config_H.vc64
index 28931d4130..fbd234292d 100644
--- a/win32/config_H.vc64
+++ b/win32/config_H.vc64
@@ -635,6 +635,12 @@
*/
#define I_ARPA_INET /**/
+/* I_ASSERT:
+ * This symbol, if defined, indicates to the C program that it could
+ * include <assert.h> to get the assert() macro.
+ */
+#define I_ASSERT /**/
+
/* I_DBM:
* This symbol, if defined, indicates that <dbm.h> exists and should
* be included.