view modules/selinux-h @ 12841:6ff1b1c23f57

Perform the same test for many <math.h> functions.
author Bruno Haible <bruno@clisp.org>
date Sun, 31 Jan 2010 19:40:17 +0100
parents 94cbe360f46e
children a19ace3ba849
line wrap: on
line source

Description:
SELinux-related headers for systems that lack them.

Files:
lib/getfilecon.c
lib/se-context.in.h
lib/se-selinux.in.h
m4/selinux-context-h.m4
m4/selinux-selinux-h.m4

Depends-on:
errno
unused-parameter

configure.ac:
gl_HEADERS_SELINUX_SELINUX_H
gl_HEADERS_SELINUX_CONTEXT_H
AC_REQUIRE([AC_C_INLINE])

Makefile.am:
lib_SOURCES += se-context.in.h se-selinux.in.h

BUILT_SOURCES += selinux/selinux.h
selinux/selinux.h: se-selinux.in.h $(UNUSED_PARAMETER_H)
	$(AM_V_at)$(MKDIR_P) selinux
	$(AM_V_GEN)rm -f $@-t $@ && \
	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
	  sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
	      -e 's|@''NEXT_SELINUX_SELINUX_H''@|$(NEXT_SELINUX_SELINUX_H)|g' \
	      -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \
	      < $(srcdir)/se-selinux.in.h; \
	} > $@-t && \
	chmod a-x $@-t && \
	mv $@-t $@
MOSTLYCLEANFILES += selinux/selinux.h selinux/selinux.h-t

BUILT_SOURCES += $(SELINUX_CONTEXT_H)
selinux/context.h: se-context.in.h $(UNUSED_PARAMETER_H)
	$(AM_V_at)$(MKDIR_P) selinux
	$(AM_V_GEN)rm -f $@-t $@ && \
	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
	  sed -e '/definition of _GL_UNUSED_PARAMETER/r $(UNUSED_PARAMETER_H)' \
	      < $(srcdir)/se-context.in.h; \
	} > $@-t && \
	chmod a-x $@-t && \
	mv $@-t $@
MOSTLYCLEANFILES += selinux/context.h selinux/context.h-t
MOSTLYCLEANDIRS += selinux

Include:
<selinux/selinux.h>
<selinux/context.h>

Link:
$(LIB_SELINUX)

License:
LGPLv2+

Maintainer:
Jim Meyering