Merge branch 'upstream' into stable
[gnulib.git] / modules / stdarg
1 Description:
2 An <stdarg.h> that conforms to C99.
3
4 Files:
5 lib/stdarg.in.h
6 m4/stdarg.m4
7
8 Depends-on:
9 include_next
10
11 configure.ac-early:
12 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
13 dnl for the builtin va_copy to work.  With Autoconf 2.60 or later,
14 dnl AC_PROG_CC_STDC arranges for this.  With older Autoconf AC_PROG_CC_STDC
15 dnl shouldn't hurt, though installers are on their own to set c99 mode.
16 AC_REQUIRE([AC_PROG_CC_STDC])
17
18 configure.ac:
19 gl_STDARG_H
20
21 Makefile.am:
22 BUILT_SOURCES += $(STDARG_H)
23
24 # We need the following in order to create <stdarg.h> when the system
25 # doesn't have one that works with the given compiler.
26 if GL_GENERATE_STDARG_H
27 stdarg.h: stdarg.in.h $(top_builddir)/config.status
28         $(AM_V_GEN)rm -f $@-t $@ && \
29         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
30           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
31               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
32               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
33               -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
34               < $(srcdir)/stdarg.in.h; \
35         } > $@-t && \
36         mv $@-t $@
37 else
38 stdarg.h: $(top_builddir)/config.status
39         rm -f $@
40 endif
41 MOSTLYCLEANFILES += stdarg.h stdarg.h-t
42
43 Include:
44 <stdarg.h>
45
46 License:
47 LGPLv2+
48
49 Maintainer:
50 Bruno Haible