Mercurial > gnulib
annotate modules/arpa_inet @ 30189:20a9c8c912b3
Provide the definition of GL_LINK-WARNING.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 27 Sep 2008 17:55:04 +0200 |
parents | 7902c57e7155 |
children | bbc8b00b08b5 |
rev | line source |
---|---|
26628 | 1 Description: |
29701
fcca4002747c
Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents:
29698
diff
changeset
|
2 A GNU-like <arpa/inet.h>. |
26628 | 3 |
4 Files: | |
29655
e862f4e907ff
Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents:
28793
diff
changeset
|
5 lib/arpa_inet.in.h |
26628 | 6 m4/arpa_inet_h.m4 |
7 | |
8 Depends-on: | |
29701
fcca4002747c
Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents:
29698
diff
changeset
|
9 include_next |
30189
20a9c8c912b3
Provide the definition of GL_LINK-WARNING.
Bruno Haible <bruno@clisp.org>
parents:
30066
diff
changeset
|
10 link-warning |
26628 | 11 sys_socket |
12 | |
13 configure.ac: | |
14 gl_HEADER_ARPA_INET | |
27763
a04256739683
* modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
Jim Meyering <jim@meyering.net>
parents:
27758
diff
changeset
|
15 AC_PROG_MKDIR_P |
26628 | 16 |
17 Makefile.am: | |
18 BUILT_SOURCES += $(ARPA_INET_H) | |
19 | |
20 # We need the following in order to create <arpa/inet.h> when the system | |
21 # doesn't have one. | |
22 arpa/inet.h: | |
27758
4ef077585a45
* modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
Eric Blake <ebb9@byu.net>
parents:
27112
diff
changeset
|
23 @MKDIR_P@ arpa |
26958
65161e2cb714
Make generated files be read-only.
Jim Meyering <jim@meyering.net>
parents:
26628
diff
changeset
|
24 rm -f $@-t $@ |
27112
499aa823eee7
Mark generated files as "DO NOT EDIT".
Bruno Haible <bruno@clisp.org>
parents:
26965
diff
changeset
|
25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
30066
7902c57e7155
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
29701
diff
changeset
|
26 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
7902c57e7155
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
29701
diff
changeset
|
27 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
29701
fcca4002747c
Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents:
29698
diff
changeset
|
28 -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \ |
fcca4002747c
Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents:
29698
diff
changeset
|
29 -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \ |
29655
e862f4e907ff
Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents:
28793
diff
changeset
|
30 -e 's|@''GNULIB_INET_NTOP''@|$(GNULIB_INET_NTOP)|g' \ |
e862f4e907ff
Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents:
28793
diff
changeset
|
31 -e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \ |
29698
6987b4978e9f
Make arpa/inet module build under MinGW.
Simon Josefsson <simon@josefsson.org>
parents:
29655
diff
changeset
|
32 -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \ |
6987b4978e9f
Make arpa/inet module build under MinGW.
Simon Josefsson <simon@josefsson.org>
parents:
29655
diff
changeset
|
33 -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \ |
30189
20a9c8c912b3
Provide the definition of GL_LINK-WARNING.
Bruno Haible <bruno@clisp.org>
parents:
30066
diff
changeset
|
34 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ |
29655
e862f4e907ff
Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents:
28793
diff
changeset
|
35 < $(srcdir)/arpa_inet.in.h; \ |
27112
499aa823eee7
Mark generated files as "DO NOT EDIT".
Bruno Haible <bruno@clisp.org>
parents:
26965
diff
changeset
|
36 } > $@-t |
26628 | 37 mv $@-t $@ |
38 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t | |
39 MOSTLYCLEANDIRS += arpa | |
40 | |
41 Include: | |
42 #include <arpa/inet.h> | |
43 | |
44 License: | |
28793
e5aee0a89d7f
Use the synonymous term LGPLv2.
Bruno Haible <bruno@clisp.org>
parents:
27763
diff
changeset
|
45 LGPLv2+ |
26628 | 46 |
47 Maintainer: | |
48 Simon Josefsson |