If you don't want OpenSSL, use --without-openssl" "$LINENO" 5
;;
*)
+ if test "$want_native_pkcs11" = "yes"
+ then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
+$as_echo "" >&6; }
+ as_fn_error $? "OpenSSL and native PKCS11 cannot be used together." "$LINENO" 5
+ fi
if test "$use_openssl" = "yes"
then
# User did not specify a path - guess it
PKCS11LINKOBJS='${PKCS11LINKOBJS}'
PKCS11LINKSRCS='${PKCS11LINKSRCS}'
PKCS11_TEST=pkcs11
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 ECDSA" >&5
+$as_echo_n "checking for PKCS11 ECDSA... " >&6; }
case "$with_ecdsa" in
no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled PKCS11 ECDSA" >&5
-$as_echo "disabled PKCS11 ECDSA" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
+$as_echo "disabled" >&6; }
;;
*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
+$as_echo "enabled" >&6; }
PKCS11_ECDSA="yes"
$as_echo "#define HAVE_PKCS11_ECDSA 1" >>confdefs.h
;;
esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 GOST" >&5
+$as_echo_n "checking for PKCS11 GOST... " >&6; }
case "$with_gost" in
yes)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
+$as_echo "enabled" >&6; }
PKCS11_GOST="yes"
$as_echo "#define HAVE_PKCS11_GOST 1" >>confdefs.h
;;
*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled PKCS11 GOST" >&5
-$as_echo "disabled PKCS11 GOST" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
+$as_echo "disabled" >&6; }
;;
esac
;;
# for PKCS11 benchmarks
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking clock_gettime" >&5
-$as_echo_n "checking clock_gettime... " >&6; }
have_clock_gt=no
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
if test "x$ac_cv_func_clock_gettime" = xyes; then :
If you don't want OpenSSL, use --without-openssl])
;;
*)
+ if test "$want_native_pkcs11" = "yes"
+ then
+ AC_MSG_RESULT()
+ AC_MSG_ERROR([OpenSSL and native PKCS11 cannot be used together.])
+ fi
if test "$use_openssl" = "yes"
then
# User did not specify a path - guess it
PKCS11LINKOBJS='${PKCS11LINKOBJS}'
PKCS11LINKSRCS='${PKCS11LINKSRCS}'
PKCS11_TEST=pkcs11
+ AC_MSG_CHECKING(for PKCS11 ECDSA)
case "$with_ecdsa" in
no)
- AC_MSG_RESULT([disabled PKCS11 ECDSA])
+ AC_MSG_RESULT(disabled)
;;
*)
+ AC_MSG_RESULT(enabled)
PKCS11_ECDSA="yes"
AC_DEFINE(HAVE_PKCS11_ECDSA, 1,
[Define if your PKCS11 provider supports ECDSA.])
;;
esac
+ AC_MSG_CHECKING(for PKCS11 GOST)
case "$with_gost" in
yes)
+ AC_MSG_RESULT(enabled)
PKCS11_GOST="yes"
AC_DEFINE(HAVE_PKCS11_GOST, 1,
[Define if your PKCS11 provider supports GOST.])
;;
*)
- AC_MSG_RESULT([disabled PKCS11 GOST])
+ AC_MSG_RESULT(disabled)
;;
esac
;;
# for PKCS11 benchmarks
-AC_MSG_CHECKING(clock_gettime)
have_clock_gt=no
AC_CHECK_FUNC(clock_gettime,have_clock_gt=yes,)
if test "$have_clock_gt" = "no"; then