diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2020-10-12 18:47:27 +0200 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-10-12 18:47:27 +0200 |
commit | e11f2bd6a0bdc9cc9656e186be00917c0bf03f1a (patch) | |
tree | bba2b1cd59ed4f4648b085958cece2e4a50b8934 | |
parent | 02e67288e532e1caf2326efe0bebb6dd4e80dafd (diff) | |
download | libpwquality-git-e11f2bd6a0bdc9cc9656e186be00917c0bf03f1a.tar.gz |
Fix regression with enabling cracklib check
The cracklib check was sometimes incorrectly treated as disabled.
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 51f92ff..8f35526 100644 --- a/configure.ac +++ b/configure.ac @@ -154,9 +154,10 @@ AC_DEFINE_UNQUOTED(CONF_PATH_RANDOMDEV, "$opt_randomdev", [Random device path.]) dnl Check for cracklib AC_ARG_ENABLE([cracklib-check], - AS_HELP_STRING([--disable-cracklib-check], [disable cracklib dictionary check])) + AS_HELP_STRING([--disable-cracklib-check], [disable cracklib dictionary check]), + [enable_cracklib_check=$enableval]) -AS_IF([test "x$enableval" != "xno"], [ +AS_IF([test "x$enable_cracklib_check" != "xno"], [ AC_CHECK_HEADERS([crack.h], AC_SEARCH_LIBS([FascistCheck], [crack], LIBCRACK="-lz -lcrack" LIBS="$LIBS -lz", LIBCRACK="", [-lz])) if test "x$LIBCRACK" = "x" ; then |