aboutsummaryrefslogtreecommitdiff
path: root/mmalloc/configure
diff options
context:
space:
mode:
authorJason Molenda <crash@cygnus>1995-11-05 08:15:15 +0000
committerJason Molenda <crash@cygnus>1995-11-05 08:15:15 +0000
commit89097c5bc502d2dcdc9eec606f54600ee0abca93 (patch)
tree1722e9efef8e2dbaf6e4be27fb3d84de45ab7036 /mmalloc/configure
parent96457d7f4d452f9c47e84eafaec8aadadf5eb608 (diff)
downloadgdb-89097c5bc502d2dcdc9eec606f54600ee0abca93.zip
gdb-89097c5bc502d2dcdc9eec606f54600ee0abca93.tar.gz
gdb-89097c5bc502d2dcdc9eec606f54600ee0abca93.tar.bz2
* configure.in: add check for stddef.h
* mmalloc.h: include stddef.h if HAVE_STDDEF_H is defined.
Diffstat (limited to 'mmalloc/configure')
-rwxr-xr-xmmalloc/configure29
1 files changed, 29 insertions, 0 deletions
diff --git a/mmalloc/configure b/mmalloc/configure
index 8e02020..bca7aed 100755
--- a/mmalloc/configure
+++ b/mmalloc/configure
@@ -847,6 +847,35 @@ EOF
fi
+ac_safe=`echo "stddef.h" | tr './\055' '___'`
+echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <<EOF
+#line 857 "configure"
+#include "confdefs.h"
+#include <stddef.h>
+EOF
+eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_err=`grep -v '^ *+' conftest.out`
+if test -z "$ac_err"; then
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=yes"
+else
+ echo "$ac_err" >&5
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=no"
+fi
+rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ :
+else
+ echo "$ac_t""no" 1>&6
+fi
+
trap '' 1 2 15
cat > confcache <<\EOF