annotate modules/alloca-opt @ 40229:6abc91ece034

alloca-opt: Fix conflict mingw's new <alloca.h> file. Reported by Eli Zaretskii <eliz@gnu.org>. * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that. * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H. * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
author Bruno Haible <bruno@clisp.org>
date Sun, 10 Mar 2019 20:39:34 +0100
parents 662ae53d8d37
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5273
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Description:
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Memory allocation on the stack, as an optional optimization.
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 It allows using the alloca() macro if and only if the autoconf tests define
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 HAVE_ALLOCA.
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 Files:
9243
a7e785cafb33 Rename alloca_.h to alloca.in.h.
Bruno Haible <bruno@clisp.org>
parents: 9091
diff changeset
7 lib/alloca.in.h
5273
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 m4/alloca.m4
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 Depends-on:
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 configure.ac:
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 gl_FUNC_ALLOCA
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 Makefile.am:
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 BUILT_SOURCES += $(ALLOCA_H)
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
6001
322a0918d54a * modules/alloca-opt (Makefile.am): Remove explicit dependency on
Paul Eggert <eggert@cs.ucla.edu>
parents: 5273
diff changeset
18 # We need the following in order to create <alloca.h> when the system
5273
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 # doesn't have one that works with the given compiler.
14528
662ae53d8d37 Remove leftover generated .h files after config.status changed.
Bruno Haible <bruno@clisp.org>
parents: 14273
diff changeset
20 if GL_GENERATE_ALLOCA_H
662ae53d8d37 Remove leftover generated .h files after config.status changed.
Bruno Haible <bruno@clisp.org>
parents: 14273
diff changeset
21 alloca.h: alloca.in.h $(top_builddir)/config.status
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11858
diff changeset
22 $(AM_V_GEN)rm -f $@-t $@ && \
7421
8bace4b08db5 Mark generated files as "DO NOT EDIT".
Bruno Haible <bruno@clisp.org>
parents: 7274
diff changeset
23 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
40229
6abc91ece034 alloca-opt: Fix conflict mingw's new <alloca.h> file.
Bruno Haible <bruno@clisp.org>
parents: 14528
diff changeset
24 sed -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' < $(srcdir)/alloca.in.h; \
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11858
diff changeset
25 } > $@-t && \
7274
9ff9e0f3d681 Don't make generated files read-only. That would bother too many
Jim Meyering <jim@meyering.net>
parents: 7268
diff changeset
26 mv -f $@-t $@
14528
662ae53d8d37 Remove leftover generated .h files after config.status changed.
Bruno Haible <bruno@clisp.org>
parents: 14273
diff changeset
27 else
662ae53d8d37 Remove leftover generated .h files after config.status changed.
Bruno Haible <bruno@clisp.org>
parents: 14273
diff changeset
28 alloca.h: $(top_builddir)/config.status
662ae53d8d37 Remove leftover generated .h files after config.status changed.
Bruno Haible <bruno@clisp.org>
parents: 14273
diff changeset
29 rm -f $@
662ae53d8d37 Remove leftover generated .h files after config.status changed.
Bruno Haible <bruno@clisp.org>
parents: 14273
diff changeset
30 endif
5273
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 MOSTLYCLEANFILES += alloca.h alloca.h-t
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 Include:
12008
18ea6ab4e81d maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents: 11868
diff changeset
34 <alloca.h>
5273
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 License:
9091
d19ce23d01b0 Use the synonymous term "LGPLv2+".
Bruno Haible <bruno@clisp.org>
parents: 7497
diff changeset
37 LGPLv2+
5273
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 Maintainer:
0e6f016e3192 New modules 'alloca-opt'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 bug-gnulib@gnu.org