From 2ff39fc7e752a6084f31ab946a7516775463cb57 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sun, 9 Nov 2008 08:46:34 -0500 Subject: [PATCH] Use $enableval in configure.ac. Fixes --disable-feature. --- configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index f64ad2fd..89e7a0e4 100644 --- a/configure.ac +++ b/configure.ac @@ -122,8 +122,9 @@ AC_DEFINE([DEFAULT_RECURSION_DEPTH], 20, \ AC_DEFINE([DEFAULT_ZLIB_BUFSIZE], 65536, \ [Default input and output buffer chunk sizes. Affects status messages.]) +# Pinentry support. AC_ARG_ENABLE(pinentry, AC_HELP_STRING([--disable-pinentry], - [Disable pinentry(1) support.]), USE_PINENTRY=no, + [Disable pinentry(1) support.]), USE_PINENTRY=$enableval, USE_PINENTRY=yes) if test "x$USE_PINENTRY" = "xyes"; then AC_DEFINE(WITH_PINENTRY, 1, [Define if you want pinentry(1) support.]) @@ -137,9 +138,10 @@ AC_ARG_WITH(pinentry, AC_HELP_STRING([--with-pinentry=PATH], AC_SUBST(pinentry) AC_DEFINE_UNQUOTED(PINENTRY_PATH, ["$pinentry"], [Default location of the pinentry binary.]) +# Password quality checking. AC_ARG_ENABLE(quality, AC_HELP_STRING([--enable-quality], - [Enable password quality checking with cracklib.]), CRACKLIB=yes, - CRACKLIB=no) + [Enable password quality checking with cracklib.]), + CRACKLIB=$enableval, CRACKLIB=no) if test "x$CRACKLIB" = "xyes"; then if test "x$USE_PINENTRY" != "xyes"; then AC_MSG_ERROR([--enable-quality needs --enable-pinentry]) -- 2.11.4.GIT