]> granicus.if.org Git - shadow/commitdiff
* configure.in: Check if AUDIT_ADD_USER, AUDIT_DEL_USER,
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 4 Sep 2008 22:34:20 +0000 (22:34 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 4 Sep 2008 22:34:20 +0000 (22:34 +0000)
AUDIT_ADD_GROUP, and AUDIT_DEL_GROUP are defined in <libaudit.h>.

ChangeLog
configure.in

index f810e20ed3e25e388c744d57268477ade873fabc..d72f60bc748954322c7f07db3214dbcb615b753b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * src/useradd.c: Fix comment of lflg: it is also used for faillog.
index 5e6151be6386b1385d682a82320aa4da26bbc273..fd2bba706028ab5f9af516a5977d34401ce3f387 100644 (file)
@@ -292,6 +292,15 @@ if test "$with_audit" != "no"; then
        if test "$audit_header$with_audit" = "noyes" ; then
                AC_MSG_ERROR([libaudit.h is missing])
        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,
                             [audit_lib="yes"], [audit_lib="no"])
                if test "$audit_lib$with_audit" = "noyes" ; then