]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix PKI test.
authorSimon Josefsson <simon@josefsson.org>
Tue, 13 Feb 2007 10:11:48 +0000 (10:11 +0000)
committerSimon Josefsson <simon@josefsson.org>
Tue, 13 Feb 2007 10:11:48 +0000 (10:11 +0000)
configure.in

index 39907ec9b8799190289cfe669dd1e0e1a8392420..454b685f4d721fd8fe836bf9f00c01fc4b0a1c00 100644 (file)
@@ -343,15 +343,15 @@ AC_MSG_CHECKING([whether to disable extra PKI stuff])
 AC_ARG_ENABLE(extra-pki,
        AS_HELP_STRING([--disable-extra-pki],
                [only enable the basic PKI stuff]),
-       ac_enable_pki=no)
-if test x$ac_enable_pki != xno; then
- AC_MSG_RESULT(no)
- AC_DEFINE(ENABLE_PKI, 1, [whether to include all the PKCS #x stuff and other PKI stuff])
-else
+       disable_pki=$enableval, disable_pki=no)
+if test "$disable_pki" != "no"; then
  ac_full=0
  AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+ AC_DEFINE(ENABLE_PKI, 1, [whether to include all the PKCS/PKI stuff])
 fi
-AM_CONDITIONAL(ENABLE_PKI, test "$ac_enable_pki" = "yes")
+AM_CONDITIONAL(ENABLE_PKI, test "$disable_pki" = "no")
 
 dnl Check whether to disable OpenPGP authentication completely
 dnl from libgnutls-extra.