libposix: Add _HEADERS primaries to posix modules.
[gnulib.git] / modules / selinux-h
1 Description:
2 SELinux-related headers for systems that lack them.
3
4 Files:
5 lib/getfilecon.c
6 lib/se-context.in.h
7 lib/se-selinux.in.h
8 m4/selinux-context-h.m4
9 m4/selinux-selinux-h.m4
10
11 Depends-on:
12 errno
13 unused-parameter
14
15 configure.ac:
16 gl_HEADERS_SELINUX_SELINUX_H
17 gl_HEADERS_SELINUX_CONTEXT_H
18 AC_REQUIRE([AC_C_INLINE])
19
20 Makefile.am:
21 nobase_nodist_pkginclude_HEADERS += selinux/selinux.h
22
23 lib_SOURCES += se-context.in.h se-selinux.in.h
24
25 BUILT_SOURCES += selinux/selinux.h
26 selinux/selinux.h: se-selinux.in.h $(UNUSED_PARAMETER_H)
27         $(AM_V_at)$(MKDIR_P) selinux
28         $(AM_V_GEN)rm -f $@-t $@ && \
29         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
30           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
31               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
32               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
33               -e 's|@''NEXT_SELINUX_SELINUX_H''@|$(NEXT_SELINUX_SELINUX_H)|g' \
34               -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \
35               < $(srcdir)/se-selinux.in.h; \
36         } > $@-t && \
37         chmod a-x $@-t && \
38         mv $@-t $@
39 MOSTLYCLEANFILES += selinux/selinux.h selinux/selinux.h-t
40
41 BUILT_SOURCES += $(SELINUX_CONTEXT_H)
42 selinux/context.h: se-context.in.h $(UNUSED_PARAMETER_H)
43         $(AM_V_at)$(MKDIR_P) selinux
44         $(AM_V_GEN)rm -f $@-t $@ && \
45         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
46           sed -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \
47               < $(srcdir)/se-context.in.h; \
48         } > $@-t && \
49         chmod a-x $@-t && \
50         mv $@-t $@
51 MOSTLYCLEANFILES += selinux/context.h selinux/context.h-t
52 MOSTLYCLEANDIRS += selinux
53
54 Include:
55 <selinux/selinux.h>
56 <selinux/context.h>
57
58 Link:
59 $(LIB_SELINUX)
60
61 License:
62 LGPLv2+
63
64 Maintainer:
65 Jim Meyering