Remove MALLOC_ZERO_RETURNS_NULL.

This commit is contained in:
Martin v. Löwis 2002-11-23 09:13:40 +00:00
parent 19cf4ee69d
commit 39f59b089d
6 changed files with 5 additions and 110 deletions

65
configure vendored
View file

@ -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