diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-10-22 10:45:00 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-10-22 10:45:00 +0200 |
commit | 9b80e162e33a7f87b6cf1064935544e22352ba98 (patch) | |
tree | 35374559aa9ad8ce5aa93f3a48138cc64902913c /gl/gnulib.mk | |
parent | ddef7f47dc1ba571345c83c794639d2bf7c0f09c (diff) | |
download | gnutls-9b80e162e33a7f87b6cf1064935544e22352ba98.tar.gz |
Update gnulib files.
Diffstat (limited to 'gl/gnulib.mk')
-rw-r--r-- | gl/gnulib.mk | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/gl/gnulib.mk b/gl/gnulib.mk index 7c19a3ff18..046543dd67 100644 --- a/gl/gnulib.mk +++ b/gl/gnulib.mk @@ -76,7 +76,7 @@ EXTRA_DIST += $(top_srcdir)/build-aux/gendocs.sh ## begin gnulib module getaddrinfo -EXTRA_DIST += gai_strerror.c getaddrinfo.c getaddrinfo.h +EXTRA_DIST += gai_strerror.c getaddrinfo.c EXTRA_libgnu_la_SOURCES += gai_strerror.c getaddrinfo.c @@ -172,6 +172,29 @@ EXTRA_DIST += $(top_srcdir)/maint.mk ## end gnulib module maintainer-makefile +## begin gnulib module netdb + +BUILT_SOURCES += $(NETDB_H) + +# We need the following in order to create <netdb.h> when the system +# doesn't have one that works with the given compiler. +netdb.h: netdb.in.h + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_NETDB_H''@|$(NEXT_NETDB_H)|g' \ + -e 's|@''HAVE_NETDB_H''@|$(HAVE_NETDB_H)|g' \ + -e 's|@''GNULIB_GETADDRINFO''@|$(GNULIB_GETADDRINFO)|g' \ + < $(srcdir)/netdb.in.h; \ + } > $@-t + mv $@-t $@ +MOSTLYCLEANFILES += netdb.h netdb.h-t + +EXTRA_DIST += netdb.in.h + +## end gnulib module netdb + ## begin gnulib module netinet_in BUILT_SOURCES += $(NETINET_IN_H) |