summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-11-23 09:13:40 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-11-23 09:13:40 (GMT)
commit39f59b089dde8c4badaa510dd47d6d93d5eaed3d (patch)
tree4b5aaeb5f2b479a161873c060cbfd16a2d591fb3 /configure
parent19cf4ee69d414b3bf849cb2a4f00bfed70f1c76b (diff)
downloadcpython-39f59b089dde8c4badaa510dd47d6d93d5eaed3d.zip
cpython-39f59b089dde8c4badaa510dd47d6d93d5eaed3d.tar.gz
cpython-39f59b089dde8c4badaa510dd47d6d93d5eaed3d.tar.bz2
Remove MALLOC_ZERO_RETURNS_NULL.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure65
1 files changed, 1 insertions, 64 deletions
diff --git a/configure b/configure
index c07fae9..2a8fa9a 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 1.370 .
+# From configure.in Revision: 1.371 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53 for python 2.3.
#
@@ -15306,69 +15306,6 @@ done
LIBS=$LIBS_SAVE
-# check whether malloc(0) returns NULL or not
-echo "$as_me:$LINENO: checking what malloc(0) returns" >&5
-echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6
-if test "${ac_cv_malloc_zero+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test "$cross_compiling" = yes; then
- ac_cv_malloc_zero=nonnull
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-#include "confdefs.h"
-#include <stdio.h>
-#ifdef HAVE_STDLIB
-#include <stdlib.h>
-#else
-char *malloc(), *realloc();
-int *free();
-#endif
-main() {
- char *p;
- p = malloc(0);
- if (p == NULL) exit(1);
- p = realloc(p, 0);
- if (p == NULL) exit(1);
- free(p);
- exit(0);
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_malloc_zero=nonnull
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-cat conftest.$ac_ext >&5
-( exit $ac_status )
-ac_cv_malloc_zero=null
-fi
-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-fi
- # XXX arm cross-compile?
-echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5
-echo "${ECHO_T}$ac_cv_malloc_zero" >&6
-if test "$ac_cv_malloc_zero" = null
-then
-
-cat >>confdefs.h <<\_ACEOF
-#define MALLOC_ZERO_RETURNS_NULL 1
-_ACEOF
-
-fi
-
# check for wchar.h
if test "${ac_cv_header_wchar_h+set}" = set; then
echo "$as_me:$LINENO: checking for wchar.h" >&5