diff options
author | Bruno Haible <bruno@clisp.org> | 2004-09-29 22:10:44 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2004-09-29 22:10:44 +0000 |
commit | f2782f0a68bf9883160a96300cca9edeb5bb0687 (patch) | |
tree | 9179d95ae6de49180a413fa4baae4284e7788e97 /modules | |
parent | 6abae3924eb57e5eea340d55c10c7eab507b556c (diff) | |
download | gnulib-f2782f0a68bf9883160a96300cca9edeb5bb0687.tar.gz |
New modules 'alloca-opt'.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/alloca-opt | 34 | ||||
-rw-r--r-- | modules/allocsa | 2 | ||||
-rw-r--r-- | modules/setenv | 2 | ||||
-rw-r--r-- | modules/vasnprintf | 2 |
4 files changed, 37 insertions, 3 deletions
diff --git a/modules/alloca-opt b/modules/alloca-opt new file mode 100644 index 0000000000..efef0a6f0a --- /dev/null +++ b/modules/alloca-opt @@ -0,0 +1,34 @@ +Description: +Memory allocation on the stack, as an optional optimization. +It allows using the alloca() macro if and only if the autoconf tests define +HAVE_ALLOCA. + +Files: +lib/alloca_.h +m4/alloca.m4 + +Depends-on: + +configure.ac: +gl_FUNC_ALLOCA + +Makefile.am: +BUILT_SOURCES += $(ALLOCA_H) +EXTRA_DIST += alloca_.h + +# We need the following in order to create an <alloca.h> when the system +# doesn't have one that works with the given compiler. +all-local $(lib_OBJECTS): $(ALLOCA_H) +alloca.h: alloca_.h + cp $(srcdir)/alloca_.h $@-t + mv $@-t $@ +MOSTLYCLEANFILES += alloca.h alloca.h-t + +Include: +#include <alloca.h> + +License: +LGPL + +Maintainer: +bug-gnulib@gnu.org diff --git a/modules/allocsa b/modules/allocsa index db4920dc1f..55fdbb7ed7 100644 --- a/modules/allocsa +++ b/modules/allocsa @@ -10,7 +10,7 @@ m4/longlong.m4 m4/longdouble.m4 Depends-on: -alloca +alloca-opt configure.ac: gl_ALLOCSA diff --git a/modules/setenv b/modules/setenv index bcb2edf869..22db8d4efb 100644 --- a/modules/setenv +++ b/modules/setenv @@ -10,7 +10,7 @@ m4/setenv.m4 Depends-on: allocsa -alloca +alloca-opt configure.ac: gt_FUNC_SETENV diff --git a/modules/vasnprintf b/modules/vasnprintf index 003626407f..6d21bed39f 100644 --- a/modules/vasnprintf +++ b/modules/vasnprintf @@ -21,7 +21,7 @@ m4/eoverflow.m4 m4/vasnprintf.m4 Depends-on: -alloca +alloca-opt xsize configure.ac: |