1 # serial 2 -*- Autoconf -*-
2 # Copyright (C) 2006, 2007, 2009 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.
8 # Provide <selinux/selinux.h>, if necessary.
10 AC_DEFUN([gl_HEADERS_SELINUX_SELINUX_H],
12 # Check for <selinux/selinux.h>,
13 AC_CHECK_HEADERS([selinux/selinux.h],
15 [SELINUX_SELINUX_H=selinux/selinux.h])
16 AC_SUBST([SELINUX_SELINUX_H])
20 AC_SEARCH_LIBS([setfilecon], [selinux],
21 [test "$ac_cv_search_setfilecon" = "none required" ||
22 LIB_SELINUX=$ac_cv_search_setfilecon])
23 AC_SUBST([LIB_SELINUX])