* configure.in: add check for stddef.h
authorJason Molenda <crash@cygnus>
Sun, 5 Nov 1995 08:15:15 +0000 (08:15 +0000)
committerJason Molenda <crash@cygnus>
Sun, 5 Nov 1995 08:15:15 +0000 (08:15 +0000)
        * mmalloc.h: include stddef.h if HAVE_STDDEF_H is defined.

mmalloc/ChangeLog
mmalloc/configure
mmalloc/configure.in
mmalloc/mmalloc.h

index 06c9c5565b703861a3a3ad9df1ee9b6350e57c44..e1f0c20198493aaa5cbd0127ba5f59f92773f429 100644 (file)
@@ -1,3 +1,8 @@
+Sun Nov  5 00:14:13 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
+
+       * configure.in: add check for stddef.h
+       * mmalloc.h: include stddef.h if HAVE_STDDEF_H is defined.
+
 Sat Nov  4 19:10:13 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
 
        * configure.in: add AC_HEADER_STDC check.
index 8e0202023643a90ffe7ca523ca95a6e26a24813d..bca7aedc56f2f19be2e4481039396f9c7a8eee33 100755 (executable)
@@ -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
index e7b9a4b85ae581942291d2f6c9a0345e6f0ab51e..0c07e6783d6293b97a5d784ada3251f1f9dfcd74 100644 (file)
@@ -9,5 +9,6 @@ AC_PROG_RANLIB
 
 AC_FUNC_MMAP
 AC_HEADER_STDC
+AC_CHECK_HEADER(stddef.h)
 
 AC_OUTPUT(Makefile)
index a4a6dd8be6d5dd702724dbdd1957695336800b90..83998761c62da9b0d39554d0e9a72e86ad48f85d 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef MMALLOC_H
 #define MMALLOC_H 1
 
-#ifdef STDC_HEADERS
+#ifdef HAVE_STDDEF_H
 #include <stddef.h>
 #endif
 
This page took 0.028701 seconds and 4 git commands to generate.