New module 'stdlib'.
[gnulib.git] / modules / stdlib
1 Description:
2 A GNU-like <stdlib.h>.
3
4 Files:
5 lib/stdlib_.h
6 m4/stdlib_h.m4
7
8 Depends-on:
9 absolute-header
10 link-warning
11
12 configure.ac:
13 gl_STDLIB_H
14
15 Makefile.am:
16 BUILT_SOURCES += stdlib.h
17
18 # We need the following in order to create <stdlib.h> when the system
19 # doesn't have one that works with the given compiler.
20 stdlib.h: stdlib_.h
21         rm -f $@-t $@
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
23           sed -e 's|@''ABSOLUTE_STDLIB_H''@|$(ABSOLUTE_STDLIB_H)|g' \
24               -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
25               -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
26               -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
27               -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
28               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
29               < $(srcdir)/stdlib_.h; \
30         } > $@-t
31         mv $@-t $@
32 MOSTLYCLEANFILES += stdlib.h stdlib.h-t
33
34 Include:
35 #include <stdlib.h>
36
37 License:
38 LGPL
39
40 Maintainer:
41 all