2 # serial 4 -*- Autoconf -*-
3 dnl Copyright (C) 2006-2007, 2009-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
9 # Provide <selinux/context.h>, if necessary.
11 AC_DEFUN([gl_HEADERS_SELINUX_CONTEXT_H],
13 AC_REQUIRE([gl_LIBSELINUX])
14 if test "$with_selinux" != no; then
15 AC_CHECK_HEADERS([selinux/context.h],
16 [GL_GENERATE_SELINUX_CONTEXT_H=false],
17 [GL_GENERATE_SELINUX_CONTEXT_H=true])
19 GL_GENERATE_SELINUX_CONTEXT_H=true