|
Packit |
25eed5 |
dnl
|
|
Packit |
25eed5 |
dnl LSPP code for the Common UNIX Printing System (CUPS).
|
|
Packit |
25eed5 |
dnl
|
|
Packit |
25eed5 |
dnl Copyright 2005-2006 by Hewlett-Packard Development Company, L.P.
|
|
Packit |
25eed5 |
dnl
|
|
Packit |
25eed5 |
dnl This program is free software; you can redistribute it and/or modify
|
|
Packit |
25eed5 |
dnl it under the terms of the GNU General Public License as published by
|
|
Packit |
25eed5 |
dnl the Free Software Foundation; version 2.
|
|
Packit |
25eed5 |
dnl
|
|
Packit |
25eed5 |
dnl This program is distributed in the hope that it will be useful, but
|
|
Packit |
25eed5 |
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
25eed5 |
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
25eed5 |
dnl General Public License for more details.
|
|
Packit |
25eed5 |
dnl
|
|
Packit |
25eed5 |
dnl You should have received a copy of the GNU General Public License
|
|
Packit |
25eed5 |
dnl along with this program; if not, write to the Free Software Foundation,
|
|
Packit |
25eed5 |
dnl Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301 USA
|
|
Packit |
25eed5 |
dnl
|
|
Packit |
25eed5 |
|
|
Packit |
25eed5 |
dnl Are we trying to meet LSPP requirements
|
|
Packit |
25eed5 |
AC_ARG_ENABLE(lspp, [ --enable-lspp turn on auditing and label support, default=no])
|
|
Packit |
25eed5 |
|
|
Packit |
25eed5 |
if test x"$enable_lspp" != xno; then
|
|
Packit |
25eed5 |
case "$uname" in
|
|
Packit |
25eed5 |
Linux)
|
|
Packit |
25eed5 |
AC_CHECK_LIB(audit,audit_log_user_message, [LIBAUDIT="-laudit" AC_SUBST(LIBAUDIT)])
|
|
Packit |
25eed5 |
AC_CHECK_HEADER(libaudit.h)
|
|
Packit |
25eed5 |
AC_CHECK_LIB(selinux,getpeercon, [LIBSELINUX="-lselinux" AC_SUBST(LIBSELINUX)])
|
|
Packit |
25eed5 |
AC_CHECK_HEADER(selinux/selinux.h)
|
|
Packit |
25eed5 |
AC_DEFINE(WITH_LSPP)
|
|
Packit |
25eed5 |
;;
|
|
Packit |
25eed5 |
*)
|
|
Packit |
25eed5 |
# All others
|
|
Packit |
25eed5 |
;;
|
|
Packit |
25eed5 |
esac
|
|
Packit |
25eed5 |
fi
|