diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-09-10 23:46:44 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-09-10 23:46:44 +0200 |
commit | f74ae99965b4b010dee7150b9ae78aace9f32b83 (patch) | |
tree | 4fb73f6b1e1413faaacd955af4b0aab491631d04 /gl/gnulib.mk | |
parent | aae21bdca093cb1755594eaa88da0c7bb1c216a3 (diff) | |
download | gnutls-f74ae99965b4b010dee7150b9ae78aace9f32b83.tar.gz |
Update gnulib files.
Diffstat (limited to 'gl/gnulib.mk')
-rw-r--r-- | gl/gnulib.mk | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/gl/gnulib.mk b/gl/gnulib.mk index 640d7a10bf..ac14a2de26 100644 --- a/gl/gnulib.mk +++ b/gl/gnulib.mk @@ -22,6 +22,15 @@ libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS) EXTRA_libgnu_la_SOURCES = libgnu_la_LDFLAGS = $(AM_LDFLAGS) +## begin gnulib module absolute-header + +# Use this preprocessor expression to decide whether #include_next works. +# Do not rely on a 'configure'-time test for this, since the expression +# might appear in an installed header, which is used by some other compiler. +HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER) + +## end gnulib module absolute-header + ## begin gnulib module arpa_inet BUILT_SOURCES += $(ARPA_INET_H) @@ -155,6 +164,15 @@ EXTRA_DIST += $(top_srcdir)/build-aux/GNUmakefile $(top_srcdir)/build-aux/maint. ## end gnulib module maintainer-makefile +## begin gnulib module malloc-posix + + +EXTRA_DIST += malloc.c + +EXTRA_libgnu_la_SOURCES += malloc.c + +## end gnulib module malloc-posix + ## begin gnulib module netinet_in BUILT_SOURCES += $(NETINET_IN_H) @@ -193,6 +211,15 @@ EXTRA_libgnu_la_SOURCES += readline.c ## end gnulib module readline +## begin gnulib module realloc-posix + + +EXTRA_DIST += realloc.c + +EXTRA_libgnu_la_SOURCES += realloc.c + +## end gnulib module realloc-posix + ## begin gnulib module stdbool BUILT_SOURCES += $(STDBOOL_H) @@ -268,6 +295,39 @@ EXTRA_DIST += stdio_.h ## end gnulib module stdio +## begin gnulib module stdlib + +BUILT_SOURCES += stdlib.h + +# We need the following in order to create <stdlib.h> when the system +# doesn't have one that works with the given compiler. +stdlib.h: stdlib_.h + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ + -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ + -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ + -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ + -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ + -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ + -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \ + -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ + -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ + -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ + -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ + -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ + -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + < $(srcdir)/stdlib_.h; \ + } > $@-t + mv $@-t $@ +MOSTLYCLEANFILES += stdlib.h stdlib.h-t + +EXTRA_DIST += stdlib_.h + +## end gnulib module stdlib + ## begin gnulib module strdup |