File: link-warning

package info (click to toggle)
gnulib 20230209%2Bstable-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 81,252 kB
  • sloc: ansic: 316,871; sh: 27,090; python: 7,774; cpp: 2,663; yacc: 1,855; perl: 897; makefile: 400; lisp: 328; java: 5
file content (45 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Description:
A C macro for emitting link time warnings.

Applicability:
all

Files:
build-aux/snippet/link-warning.h

Depends-on:
gen-header

configure.ac:
AC_REQUIRE([gl_FEATURES_H])
AC_PROG_MKDIR_P

Makefile.am:
# The BUILT_SOURCES created by this Makefile snippet are not used via #include
# statements but through direct file reference. Therefore this snippet must be
# present in all Makefiles that need it. This is ensured by the applicability
# 'all' defined above.

# FIXME: The link-warning.h rule probably does not work if
# gnulib-tool's --gnu-make option is used, when the build is an
# out-of-source build that relies on VPATH.

BUILT_SOURCES += link-warning.h
link-warning.h: $(top_srcdir)/build-aux/snippet/link-warning.h
@NMD@	$(AM_V_GEN)$(MKDIR_P) '%reldir%'
	$(gl_V_at)sed -n -e '/HAVE_FEATURES_H/,$$p' \
	  < $(top_srcdir)/build-aux/snippet/link-warning.h \
	| sed -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
	  > $@-t
	$(AM_V_at)mv $@-t $@
MOSTLYCLEANFILES += link-warning.h link-warning.h-t

LINK_WARNING_H=link-warning.h

Include:

License:
LGPLv2+

Maintainer:
all