+2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
+
+ * configure.in: Fix the dependency of ACCT_TOOLS_SETUID on
+ USE_PAM. Build failed with --without-libpam.
+
2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c, configure.in: Check for the presence of
*) AC_MSG_ERROR(bad value ${enableval} for --enable-account-tools-setuid)
;;
esac],
- [enable_acct_tools_setuid="yes"]
+ [enable_acct_tools_setuid="maybe"]
)
AC_ARG_WITH(audit,
AC_MSG_RESULT(yes)
fi
-if test "$enable_acct_tools_setuid" = "yes"; then
+if test "$enable_acct_tools_setuid" != "no"; then
if test "$with_libpam" != "yes"; then
- AC_MSG_ERROR(PAM support is required for --enable-account-tools-setuid)
+ if test "$enable_acct_tools_setuid" = "yes"; then
+ AC_MSG_ERROR(PAM support is required for --enable-account-tools-setuid)
+ else
+ enable_acct_tools_setuid="no"
+ fi
+ fi
+ if "$enable_acct_tools_setuid" = "yes"; then
+ AC_DEFINE(ACCT_TOOLS_SETUID,
+ 1,
+ [Define if account management tools should be installed setuid and authenticate the callers])
fi
- AC_DEFINE(ACCT_TOOLS_SETUID,
- 1,
- [Define if account management tools should be installed setuid and authenticate the callers])
fi
AM_CONDITIONAL(ACCT_TOOLS_SETUID, test "x$enable_acct_tools_setuid" = "xyes")