immutable: Add tests.
[gnulib.git] / m4 / selinux-context-h.m4
blobbfe91d16d8110a50f0e98f1096e1f5604f49e632
1 # serial 3   -*- Autoconf -*-
2 # Copyright (C) 2006-2007, 2009-2021 Free Software Foundation, Inc.
3 # This file is free software; the Free Software Foundation
4 # gives unlimited permission to copy and/or distribute it,
5 # with or without modifications, as long as this notice is preserved.
7 # From Jim Meyering
8 # Provide <selinux/context.h>, if necessary.
10 AC_DEFUN([gl_HEADERS_SELINUX_CONTEXT_H],
12   AC_REQUIRE([gl_LIBSELINUX])
13   if test "$with_selinux" != no; then
14     AC_CHECK_HEADERS([selinux/context.h],
15                      [SELINUX_CONTEXT_H=],
16                      [SELINUX_CONTEXT_H=selinux/context.h])
17   else
18     SELINUX_CONTEXT_H=selinux/context.h
19   fi
20   AC_SUBST([SELINUX_CONTEXT_H])
21   AM_CONDITIONAL([GL_GENERATE_SELINUX_CONTEXT_H], [test -n "$SELINUX_CONTEXT_H"])