From 387f700c5759edd0cd8f16db9c19299f10067bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 12 Jul 2005 13:23:08 +0000 Subject: [PATCH] Use a configure switch to turn on PK-INIT, not by detecting existence of the new ASN.1 library. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15621 ec53bebd-3082-4978-b11e-865c3cabbd6b --- configure.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 22b504482..758cc26ae 100644 --- a/configure.in +++ b/configure.in @@ -31,10 +31,6 @@ dnl AC_DEFINE([_GNU_SOURCE], 1, [Define to enable extensions on glibc-based systems such as Linux.]) -if test -f $srcdir/lib/asn1/pkcs12.asn1 ; then - AC_DEFINE([PKINIT], 1, [Define to enable PKINIT.]) -fi - AC_OBJEXT AC_EXEEXT @@ -69,6 +65,13 @@ if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then fi AM_CONDITIONAL(OPENLDAP_MODULE, test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes) +AC_ARG_ENABLE(pk-init, + AS_HELP_STRING([--enable-pk-init], + [if you want support to pk-init])) +if test "$enable_pk_init" = yes ;then + AC_DEFINE([PKINIT], 1, [Define to enable PKINIT.]) +fi + rk_TEST_PACKAGE(krb4,[#include ],-lkrb,-ldes,/usr/athena, KRB4, krb4-config) LIB_kdb=