* configure.in: Check if AUDIT_ADD_USER, AUDIT_DEL_USER,

AUDIT_ADD_GROUP, and AUDIT_DEL_GROUP are defined in <libaudit.h>.
This commit is contained in:
nekral-guest 2008-09-04 22:34:20 +00:00
parent e3ebd2c736
commit 7034a913fd
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-09-05 Nicolas François <nicolas.francois@centraliens.net>
* configure.in: Check if AUDIT_ADD_USER, AUDIT_DEL_USER,
AUDIT_ADD_GROUP, and AUDIT_DEL_GROUP are defined in <libaudit.h>.
2008-09-04 Nicolas François <nicolas.francois@centraliens.net> 2008-09-04 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Fix comment of lflg: it is also used for faillog. * src/useradd.c: Fix comment of lflg: it is also used for faillog.

View File

@ -292,6 +292,15 @@ if test "$with_audit" != "no"; then
if test "$audit_header$with_audit" = "noyes" ; then if test "$audit_header$with_audit" = "noyes" ; then
AC_MSG_ERROR([libaudit.h is missing]) AC_MSG_ERROR([libaudit.h is missing])
elif test "$audit_header" = "yes"; then elif test "$audit_header" = "yes"; then
AC_CHECK_DECL(AUDIT_ADD_USER,,[audit_header="no"],[#include <libaudit.h>])
AC_CHECK_DECL(AUDIT_DEL_USER,,[audit_header="no"],[#include <libaudit.h>])
AC_CHECK_DECL(AUDIT_ADD_GROUP,,[audit_header="no"],[#include <libaudit.h>])
AC_CHECK_DECL(AUDIT_DEL_GROUP,,[audit_header="no"],[#include <libaudit.h>])
if test "$audit_header$with_audit" = "noyes" ; then
AC_MSG_ERROR([AUDIT_ADD_USER AUDIT_DEL_USER AUDIT_ADD_GROUP or AUDIT_DEL_GROUP missing from libaudit.h])
fi
fi
if test "$audit_header" = "yes"; then
AC_CHECK_LIB(audit, audit_log_acct_message, AC_CHECK_LIB(audit, audit_log_acct_message,
[audit_lib="yes"], [audit_lib="no"]) [audit_lib="yes"], [audit_lib="no"])
if test "$audit_lib$with_audit" = "noyes" ; then if test "$audit_lib$with_audit" = "noyes" ; then