summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-12-31 06:44:45 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-12-31 06:44:45 -0800
commit5e4c74dfd5927b3829b4f5e04a7964dbac6a4f34 (patch)
treeb3cdd6a5b6327ca3c51e7135b5b5d1652a57a84f /configure
parent01cba3d1044ab5199ab6108c9c7cc2a8f276819b (diff)
downloadtxr-5e4c74dfd5927b3829b4f5e04a7964dbac6a4f34.tar.gz
txr-5e4c74dfd5927b3829b4f5e04a7964dbac6a4f34.tar.bz2
txr-5e4c74dfd5927b3829b4f5e04a7964dbac6a4f34.zip
Eliminate ALLOCA_H.
* configure: Instead of generating a definition of ALLOCA_H, generate the variable HAVE_ALLOCA_<name> with a value of 1, where <name> is one of stdlib, alloca or malloc. * alloca.h: New header. * args.c, eval.c, ffi.c ffi.c, ftw.c, hash.c, lib.c, match.c, parser.c, parser.y, regex.c, socket.c, stream.c, struct.c, sysif.c, syslog.c, termios.c, unwind.c, vm.c: Include "alloca.h" instead of ALLOCA_H.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 7e99d64d..ba70c550 100755
--- a/configure
+++ b/configure
@@ -2577,9 +2577,9 @@ done
printf "Checking for alloca ... "
-for try_header in stdlib.h alloca.h malloc.h ; do
+for try_header in stdlib alloca malloc ; do
cat > conftest.c <<!
-#include <$try_header>
+#include <$try_header.h>
int main(int argc, char **argv)
{
@@ -2590,7 +2590,7 @@ int main(int argc, char **argv)
if conftest ; then
printf "yes\n"
- printf "#define ALLOCA_H <%s>\n" $try_header >> config.h
+ printf "#define HAVE_ALLOCA_%s 1\n" $try_header >> config.h
have_alloca=y
break;
fi