X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Farpa_inet;h=e98a53161fd19312a6f4af8e6677570af15cf2a3;hb=c2318e88599d84748f3537b54646913f0af0eb20;hp=cbbae09fe679f567eb291be36aebb425878ed3e8;hpb=0f55f1467a309da866fb443de970845827853569;p=gnulib.git diff --git a/modules/arpa_inet b/modules/arpa_inet index cbbae09fe..e98a53161 100644 --- a/modules/arpa_inet +++ b/modules/arpa_inet @@ -1,14 +1,17 @@ Description: -A for systems lacking it (e.g., Mingw). +A GNU-like . Files: +lib/arpa_inet.in.h m4/arpa_inet_h.m4 Depends-on: +include_next sys_socket configure.ac: gl_HEADER_ARPA_INET +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += $(ARPA_INET_H) @@ -16,9 +19,19 @@ BUILT_SOURCES += $(ARPA_INET_H) # We need the following in order to create when the system # doesn't have one. arpa/inet.h: - test -d arpa || mkdir arpa + @MKDIR_P@ arpa rm -f $@-t $@ - echo '#include ' >$@-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_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \ + -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \ + -e 's|@''GNULIB_INET_NTOP''@|$(GNULIB_INET_NTOP)|g' \ + -e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \ + -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \ + -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \ + < $(srcdir)/arpa_inet.in.h; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t MOSTLYCLEANDIRS += arpa @@ -27,7 +40,7 @@ Include: #include License: -LGPL +LGPLv2+ Maintainer: Simon Josefsson