gethrxtime: Move AC_LIBOBJ invocations to module description.
[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 lib_SOURCES += se-context.in.h se-selinux.in.h
22
23 BUILT_SOURCES += selinux/selinux.h
24 selinux/selinux.h: se-selinux.in.h $(top_builddir)/config.status $(UNUSED_PARAMETER_H)
25         $(AM_V_at)$(MKDIR_P) selinux
26         $(AM_V_GEN)rm -f $@-t $@ && \
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
28           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
29               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
30               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
31               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
32               -e 's|@''NEXT_SELINUX_SELINUX_H''@|$(NEXT_SELINUX_SELINUX_H)|g' \
33               -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \
34               < $(srcdir)/se-selinux.in.h; \
35         } > $@-t && \
36         chmod a-x $@-t && \
37         mv $@-t $@
38 MOSTLYCLEANFILES += selinux/selinux.h selinux/selinux.h-t
39
40 BUILT_SOURCES += $(SELINUX_CONTEXT_H)
41 if GL_GENERATE_SELINUX_CONTEXT_H
42 selinux/context.h: se-context.in.h $(top_builddir)/config.status $(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 else
52 selinux/context.h: $(top_builddir)/config.status
53         rm -f $@
54 endif
55 MOSTLYCLEANFILES += selinux/context.h selinux/context.h-t
56 MOSTLYCLEANDIRS += selinux
57
58 Include:
59 <selinux/selinux.h>
60 <selinux/context.h>
61
62 Link:
63 $(LIB_SELINUX)
64
65 License:
66 LGPLv2+
67
68 Maintainer:
69 Jim Meyering