selinux-h: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 20:38:03 +0000 (22:38 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:45 +0000 (00:06 +0200)
* m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
AC_LIBOBJ invocation from here...
* modules/selinux-h (configure.ac): ... to here.

ChangeLog
m4/selinux-selinux-h.m4
modules/selinux-h

index 7654589f78c66094219ee46bcccbd3a71670f417..8820ea4810da8b4ab5595a5b654a67e766070a55 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       selinux-h: Move AC_LIBOBJ invocations to module description.
+       * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
+       AC_LIBOBJ invocation from here...
+       * modules/selinux-h (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        select: Respect rules for use of AC_LIBOBJ.
index 7afd416cdd8288102950d5e31a925d65c028d183..ee32370963470bb317b29f73b85a9638d3edf453 100644 (file)
@@ -1,4 +1,4 @@
-# serial 4   -*- Autoconf -*-
+# serial 5   -*- Autoconf -*-
 # Copyright (C) 2006-2007, 2009-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -18,7 +18,6 @@ AC_DEFUN([gl_HEADERS_SELINUX_SELINUX_H],
     if test "$ac_cv_header_selinux_selinux_h" = yes; then
       # We do have <selinux/selinux.h>, so do compile getfilecon.c
       # and arrange to use its wrappers.
-      AC_LIBOBJ([getfilecon])
       gl_CHECK_NEXT_HEADERS([selinux/selinux.h])
       AC_DEFINE([getfilecon], [rpl_getfilecon],
                 [Always use our getfilecon wrapper.])
index 5cdc91a6a4aed8337bc8ef4e62792999e75d3f72..840106c107bf8d80b79a3be4f73df454b61d041f 100644 (file)
@@ -16,6 +16,9 @@ configure.ac:
 gl_HEADERS_SELINUX_SELINUX_H
 gl_HEADERS_SELINUX_CONTEXT_H
 AC_REQUIRE([AC_C_INLINE])
+if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
+  AC_LIBOBJ([getfilecon])
+fi
 
 Makefile.am:
 lib_SOURCES += se-context.in.h se-selinux.in.h