diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-12-31 06:44:45 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-12-31 06:44:45 -0800 |
commit | 5e4c74dfd5927b3829b4f5e04a7964dbac6a4f34 (patch) | |
tree | b3cdd6a5b6327ca3c51e7135b5b5d1652a57a84f /configure | |
parent | 01cba3d1044ab5199ab6108c9c7cc2a8f276819b (diff) | |
download | txr-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-x | configure | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |