aboutsummaryrefslogtreecommitdiff
path: root/mmalloc/configure.in
diff options
context:
space:
mode:
authorJason Molenda <crash@cygnus>1995-11-05 03:12:15 +0000
committerJason Molenda <crash@cygnus>1995-11-05 03:12:15 +0000
commitc93a17b7aba525ca857d7955d2a22dfafaf1c8b1 (patch)
treed3f0bcca7957e0ae0f02178994d4dc590b709297 /mmalloc/configure.in
parent1738bcd31b7027c1eab8cfc680c3dcac478cd3ce (diff)
downloadgdb-c93a17b7aba525ca857d7955d2a22dfafaf1c8b1.zip
gdb-c93a17b7aba525ca857d7955d2a22dfafaf1c8b1.tar.gz
gdb-c93a17b7aba525ca857d7955d2a22dfafaf1c8b1.tar.bz2
* configure.in: add AC_HEADER_STDC check.
* mmalloc.h: check if STDC_HEADERS instead of __STDC__. * mmprivate.h: check if STDC_HEADERS instead of __STDC__. This change is necessary to build under AIX 3.2.5 w/ cc after Stan's Oct 24 change. I'm not convinced that changing mmalloc.h in this way is such a good thing--if a directory that doesn't use autoconf (or one that DOES use autoconf but doesn't put all the defines on the command line), and it includes mmalloc.h, the right thing won't happen. I believe gdb is the only directory which uses mmalloc, though, so it should be OK.
Diffstat (limited to 'mmalloc/configure.in')
-rw-r--r--mmalloc/configure.in40
1 files changed, 10 insertions, 30 deletions
diff --git a/mmalloc/configure.in b/mmalloc/configure.in
index ebf6088..e7b9a4b 100644
--- a/mmalloc/configure.in
+++ b/mmalloc/configure.in
@@ -1,33 +1,13 @@
-# This file is a shell script that supplies the information necessary
-# to tailor a template configure script into the configure script
-# appropriate for this directory. For more information, check any
-# existing configure script.
+dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ(2.3)dnl
+AC_INIT(mmalloc.c)
-srctrigger=mmalloc.c
-srcname="mmalloc library"
-configdirs=""
+CC=${CC-cc}
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_RANLIB
-# per-host:
+AC_FUNC_MMAP
+AC_HEADER_STDC
-case "${host}" in
- mips-sgi-irix4)
- host_makefile_frag=config/mh-irix4
- ;;
- *-sun-sunos4*)
- host_makefile_frag=config/mh-sunos4
- ;;
- i[34]86-ncr-sysv4*)
- host_makefile_frag=config/mh-ncr3000
- ;;
- *-*-sysv4*)
- host_makefile_frag=config/mh-sysv4
- ;;
-esac
-
-# per-target:
-
-#
-# Local Variables:
-# fill-column: 131
-# End:
-#
+AC_OUTPUT(Makefile)