summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-12-09 12:41:19 +0100
committerBruno Haible <bruno@clisp.org>2009-12-09 12:41:44 +0100
commit237d7dcd6b8b57f44731b28ab2e6e9a797a551a6 (patch)
tree2aafe312432ba773b6c67fc727c7349fb1bbba89 /modules
parenta226e8ae00484017b342f9299f9d3c88e413b827 (diff)
downloadgnulib-237d7dcd6b8b57f44731b28ab2e6e9a797a551a6.tar.gz
link-warning: Add copyright notice.
Diffstat (limited to 'modules')
-rw-r--r--modules/arpa_inet2
-rw-r--r--modules/dirent2
-rw-r--r--modules/fcntl-h2
-rw-r--r--modules/getopt-posix2
-rw-r--r--modules/inttypes2
-rw-r--r--modules/link-warning9
-rw-r--r--modules/math2
-rw-r--r--modules/search2
-rw-r--r--modules/signal2
-rw-r--r--modules/spawn2
-rw-r--r--modules/stdio2
-rw-r--r--modules/stdlib2
-rw-r--r--modules/string2
-rw-r--r--modules/strings2
-rw-r--r--modules/sys_ioctl2
-rw-r--r--modules/sys_select2
-rw-r--r--modules/sys_socket2
-rw-r--r--modules/sys_stat2
-rw-r--r--modules/sys_times2
-rw-r--r--modules/sys_utsname2
-rw-r--r--modules/sys_wait2
-rw-r--r--modules/unistd2
-rw-r--r--modules/wchar2
23 files changed, 30 insertions, 23 deletions
diff --git a/modules/arpa_inet b/modules/arpa_inet
index 2105217b04..7eb9cc0567 100644
--- a/modules/arpa_inet
+++ b/modules/arpa_inet
@@ -19,7 +19,7 @@ BUILT_SOURCES += $(ARPA_INET_H)
# We need the following in order to create <arpa/inet.h> when the system
# doesn't have one.
-arpa/inet.h: arpa_inet.in.h
+arpa/inet.h: arpa_inet.in.h $(LINK_WARNING_H)
$(AM_V_at)$(MKDIR_P) arpa
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
diff --git a/modules/dirent b/modules/dirent
index d21cfafbda..110ec4520a 100644
--- a/modules/dirent
+++ b/modules/dirent
@@ -18,7 +18,7 @@ BUILT_SOURCES += $(DIRENT_H)
# We need the following in order to create <dirent.h> when the system
# doesn't have one that works with the given compiler.
-dirent.h: dirent.in.h
+dirent.h: dirent.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
diff --git a/modules/fcntl-h b/modules/fcntl-h
index ea76181b43..eb5cce11dd 100644
--- a/modules/fcntl-h
+++ b/modules/fcntl-h
@@ -19,7 +19,7 @@ BUILT_SOURCES += $(FCNTL_H)
# We need the following in order to create <fcntl.h> when the system
# doesn't have one that works with the given compiler.
-fcntl.h: fcntl.in.h
+fcntl.h: fcntl.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
diff --git a/modules/getopt-posix b/modules/getopt-posix
index 94932fcc00..0a6ee88b0c 100644
--- a/modules/getopt-posix
+++ b/modules/getopt-posix
@@ -22,7 +22,7 @@ BUILT_SOURCES += $(GETOPT_H)
# We need the following in order to create <getopt.h> when the system
# doesn't have one that works with the given compiler.
-getopt.h: getopt.in.h
+getopt.h: getopt.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
diff --git a/modules/inttypes b/modules/inttypes
index fc97cd613a..8c341f46d0 100644
--- a/modules/inttypes
+++ b/modules/inttypes
@@ -20,7 +20,7 @@ BUILT_SOURCES += $(INTTYPES_H)
# We need the following in order to create <inttypes.h> when the system
# doesn't have one that works with the given compiler.
-inttypes.h: inttypes.in.h
+inttypes.h: inttypes.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
diff --git a/modules/link-warning b/modules/link-warning
index 5d702a7e82..33085b768f 100644
--- a/modules/link-warning
+++ b/modules/link-warning
@@ -9,7 +9,14 @@ Depends-on:
configure.ac:
Makefile.am:
-LINK_WARNING_H=$(top_srcdir)/build-aux/link-warning.h
+BUILT_SOURCES += link-warning.h
+link-warning.h: $(top_srcdir)/build-aux/link-warning.h
+ $(AM_V_GEN)rm -f $@-t $@ && \
+ sed 1,17d < $(top_srcdir)/build-aux/link-warning.h > $@-t && \
+ mv $@-t $@
+MOSTLYCLEANFILES += link-warning.h link-warning.h-t
+
+LINK_WARNING_H=link-warning.h
Include:
diff --git a/modules/math b/modules/math
index cdbe810513..37a544e546 100644
--- a/modules/math
+++ b/modules/math
@@ -17,7 +17,7 @@ BUILT_SOURCES += math.h
# We need the following in order to create <math.h> when the system
# doesn't have one that works with the given compiler.
-math.h: math.in.h
+math.h: math.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
diff --git a/modules/search b/modules/search
index ff1d9b541a..f7a58ebf65 100644
--- a/modules/search
+++ b/modules/search
@@ -17,7 +17,7 @@ BUILT_SOURCES += search.h
# We need the following in order to create <search.h> when the system
# doesn't have one that works with the given compiler.
-search.h: search.in.h
+search.h: search.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''HAVE_SEARCH_H''@|$(HAVE_SEARCH_H)|g' \
diff --git a/modules/signal b/modules/signal
index 6e37b150b8..42b543e332 100644
--- a/modules/signal
+++ b/modules/signal
@@ -17,7 +17,7 @@ BUILT_SOURCES += signal.h
# We need the following in order to create <signal.h> when the system
# doesn't have a complete one.
-signal.h: signal.in.h
+signal.h: signal.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
diff --git a/modules/spawn b/modules/spawn
index 55c17f6e10..0fe7f83662 100644
--- a/modules/spawn
+++ b/modules/spawn
@@ -18,7 +18,7 @@ BUILT_SOURCES += $(SPAWN_H)
# We need the following in order to create a replacement for <spawn.h> when
# the system doesn't have one.
-spawn.h: spawn.in.h
+spawn.h: spawn.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''HAVE_SPAWN_H''@|$(HAVE_SPAWN_H)|g' \
diff --git a/modules/stdio b/modules/stdio
index 8b6e050e37..06e7865ca5 100644
--- a/modules/stdio
+++ b/modules/stdio
@@ -20,7 +20,7 @@ BUILT_SOURCES += stdio.h
# We need the following in order to create <stdio.h> when the system
# doesn't have one that works with the given compiler.
-stdio.h: stdio.in.h
+stdio.h: stdio.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
diff --git a/modules/stdlib b/modules/stdlib
index ddf2b7ac30..c272737706 100644
--- a/modules/stdlib
+++ b/modules/stdlib
@@ -20,7 +20,7 @@ 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.in.h
+stdlib.h: stdlib.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
diff --git a/modules/string b/modules/string
index 652a88e741..bd9505ec34 100644
--- a/modules/string
+++ b/modules/string
@@ -19,7 +19,7 @@ BUILT_SOURCES += string.h
# We need the following in order to create <string.h> when the system
# doesn't have one that works with the given compiler.
-string.h: string.in.h
+string.h: string.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
diff --git a/modules/strings b/modules/strings
index f0375aeacf..673d75d34f 100644
--- a/modules/strings
+++ b/modules/strings
@@ -17,7 +17,7 @@ BUILT_SOURCES += strings.h
# We need the following in order to create <strings.h> when the system
# doesn't have one that works with the given compiler.
-strings.h: strings.in.h
+strings.h: strings.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
diff --git a/modules/sys_ioctl b/modules/sys_ioctl
index 170c67452e..5ae8c84369 100644
--- a/modules/sys_ioctl
+++ b/modules/sys_ioctl
@@ -19,7 +19,7 @@ BUILT_SOURCES += $(SYS_IOCTL_H)
# We need the following in order to create <sys/ioctl.h> when the system
# does not have a complete one.
-sys/ioctl.h: sys_ioctl.in.h
+sys/ioctl.h: sys_ioctl.in.h $(LINK_WARNING_H)
$(AM_V_at)$(MKDIR_P) sys
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
diff --git a/modules/sys_select b/modules/sys_select
index 698de84847..093e5e5e77 100644
--- a/modules/sys_select
+++ b/modules/sys_select
@@ -20,7 +20,7 @@ BUILT_SOURCES += $(SYS_SELECT_H)
# We need the following in order to create <sys/select.h> when the system
# doesn't have one that works with the given compiler.
-sys/select.h: sys_select.in.h
+sys/select.h: sys_select.in.h $(LINK_WARNING_H)
$(AM_V_at)$(MKDIR_P) sys
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
diff --git a/modules/sys_socket b/modules/sys_socket
index 573ace7246..72d39596f3 100644
--- a/modules/sys_socket
+++ b/modules/sys_socket
@@ -21,7 +21,7 @@ BUILT_SOURCES += $(SYS_SOCKET_H)
# We need the following in order to create <sys/socket.h> when the system
# doesn't have one that works with the given compiler.
-sys/socket.h: sys_socket.in.h
+sys/socket.h: sys_socket.in.h $(LINK_WARNING_H)
$(AM_V_at)$(MKDIR_P) sys
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
diff --git a/modules/sys_stat b/modules/sys_stat
index 20a8c83bf9..33ffe4a9a2 100644
--- a/modules/sys_stat
+++ b/modules/sys_stat
@@ -20,7 +20,7 @@ BUILT_SOURCES += sys/stat.h
# We need the following in order to create <sys/stat.h> when the system
# has one that is incomplete.
-sys/stat.h: sys_stat.in.h
+sys/stat.h: sys_stat.in.h $(LINK_WARNING_H)
$(AM_V_at)$(MKDIR_P) sys
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
diff --git a/modules/sys_times b/modules/sys_times
index f91f6fcaac..b8b141d6f1 100644
--- a/modules/sys_times
+++ b/modules/sys_times
@@ -17,7 +17,7 @@ BUILT_SOURCES += $(SYS_TIMES_H)
# We need the following in order to create <sys/times.h> when the system
# doesn't have one that works with the given compiler.
-sys/times.h: sys_times.in.h
+sys/times.h: sys_times.in.h $(LINK_WARNING_H)
$(AM_V_at)$(MKDIR_P) sys
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
diff --git a/modules/sys_utsname b/modules/sys_utsname
index e5c4e8a108..2bbeb7e0bd 100644
--- a/modules/sys_utsname
+++ b/modules/sys_utsname
@@ -17,7 +17,7 @@ BUILT_SOURCES += $(SYS_UTSNAME_H)
# We need the following in order to create <sys/utsname.h> when the system
# does not have one.
-sys/utsname.h: sys_utsname.in.h
+sys/utsname.h: sys_utsname.in.h $(LINK_WARNING_H)
$(AM_V_at)$(MKDIR_P) sys
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
diff --git a/modules/sys_wait b/modules/sys_wait
index 9b74ea8a7e..210b21638b 100644
--- a/modules/sys_wait
+++ b/modules/sys_wait
@@ -18,7 +18,7 @@ BUILT_SOURCES += $(SYS_WAIT_H)
# We need the following in order to create <sys/wait.h> when the system
# has one that is incomplete.
-sys/wait.h: sys_wait.in.h
+sys/wait.h: sys_wait.in.h $(LINK_WARNING_H)
$(AM_V_at)$(MKDIR_P) sys
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
diff --git a/modules/unistd b/modules/unistd
index 7a5500101e..8e7382d2b4 100644
--- a/modules/unistd
+++ b/modules/unistd
@@ -18,7 +18,7 @@ BUILT_SOURCES += unistd.h
# We need the following in order to create an empty placeholder for
# <unistd.h> when the system doesn't have one.
-unistd.h: unistd.in.h
+unistd.h: unistd.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
diff --git a/modules/wchar b/modules/wchar
index f6d02ec765..d6dbfd5ef7 100644
--- a/modules/wchar
+++ b/modules/wchar
@@ -19,7 +19,7 @@ BUILT_SOURCES += $(WCHAR_H)
# We need the following in order to create <wchar.h> when the system
# version does not work standalone.
-wchar.h: wchar.in.h
+wchar.h: wchar.in.h $(LINK_WARNING_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \