diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-29 12:48:49 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-08 00:17:41 -0400 |
commit | 172a7ff54b235e3e30e52976c953f6da8134625d (patch) | |
tree | b6e5ee736514c704acf4f825e33d006a3bdea2fb /gnulib/import/Makefile.am | |
parent | c469a502522d5f09fdbf5e6416e9ddd8ebec196b (diff) | |
download | fsf-binutils-gdb-172a7ff54b235e3e30e52976c953f6da8134625d.zip fsf-binutils-gdb-172a7ff54b235e3e30e52976c953f6da8134625d.tar.gz fsf-binutils-gdb-172a7ff54b235e3e30e52976c953f6da8134625d.tar.bz2 |
gnulib: import netdb
A few sims use this to provide network functionality.
Diffstat (limited to 'gnulib/import/Makefile.am')
-rw-r--r-- | gnulib/import/Makefile.am | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gnulib/import/Makefile.am b/gnulib/import/Makefile.am index 30b8afd..2a11acc 100644 --- a/gnulib/import/Makefile.am +++ b/gnulib/import/Makefile.am @@ -58,6 +58,7 @@ # mkdir \ # mkdtemp \ # mkostemp \ +# netdb \ # pathmax \ # rawmemchr \ # readlink \ @@ -1492,6 +1493,41 @@ EXTRA_libgnu_a_SOURCES += msvc-nothrow.c ## end gnulib module msvc-nothrow +## 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 $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''GUARD_PREFIX''@|GL|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|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' \ + -e 's|@''HAVE_STRUCT_ADDRINFO''@|$(HAVE_STRUCT_ADDRINFO)|g' \ + -e 's|@''HAVE_DECL_FREEADDRINFO''@|$(HAVE_DECL_FREEADDRINFO)|g' \ + -e 's|@''HAVE_DECL_GAI_STRERROR''@|$(HAVE_DECL_GAI_STRERROR)|g' \ + -e 's|@''HAVE_DECL_GETADDRINFO''@|$(HAVE_DECL_GETADDRINFO)|g' \ + -e 's|@''HAVE_DECL_GETNAMEINFO''@|$(HAVE_DECL_GETNAMEINFO)|g' \ + -e 's|@''REPLACE_GAI_STRERROR''@|$(REPLACE_GAI_STRERROR)|g' \ + -e 's|@''REPLACE_GETADDRINFO''@|$(REPLACE_GETADDRINFO)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(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) |