X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fselinux-h;h=12dd20d889c7f45fbd257a3b970683a482542305;hb=fa8d786628cd8a1dbd2194e7776bea07f97cca99;hp=c0b097f20e88283454b6ce361c6a83af9470d759;hpb=47a8dd64accd4e522331866a73bb79adc2d6ca78;p=gnulib.git diff --git a/modules/selinux-h b/modules/selinux-h index c0b097f20..12dd20d88 100644 --- a/modules/selinux-h +++ b/modules/selinux-h @@ -2,6 +2,7 @@ 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 @@ -9,6 +10,7 @@ m4/selinux-selinux-h.m4 Depends-on: errno +unused-parameter configure.ac: gl_HEADERS_SELINUX_SELINUX_H @@ -18,28 +20,37 @@ 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 +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 $@ && \ - cp $(srcdir)/se-selinux.in.h $@-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 +selinux/context.h: se-context.in.h $(UNUSED_PARAMETER_H) $(AM_V_at)$(MKDIR_P) selinux $(AM_V_GEN)rm -f $@-t $@ && \ - cp $(srcdir)/se-context.in.h $@-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: -#include -#include + + Link: $(LIB_SELINUX)