Correct the va_copy definition for AIX 5.
[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 stdarg.h: stdarg.in.h
27         rm -f $@-t $@
28         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
29           sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
30               -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
31               < $(srcdir)/stdarg.in.h; \
32         } > $@-t
33         mv $@-t $@
34 MOSTLYCLEANFILES += stdarg.h stdarg.h-t
35
36 Include:
37 #include <stdarg.h>
38
39 License:
40 LGPL
41
42 Maintainer:
43 Bruno Haible