From: Nikos Mavrogiannopoulos Date: Wed, 2 Dec 2009 18:36:44 +0000 (+0200) Subject: Corrected check for cryptodev. Only enable it if --enable-cryptodev is specified. X-Git-Tag: gnutls_2_9_10~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e1d605d30cda30004d9821260b9afd7ca547579;p=thirdparty%2Fgnutls.git Corrected check for cryptodev. Only enable it if --enable-cryptodev is specified. --- diff --git a/lib/m4/hooks.m4 b/lib/m4/hooks.m4 index e51d2dba13..edc3a3e5bf 100644 --- a/lib/m4/hooks.m4 +++ b/lib/m4/hooks.m4 @@ -229,16 +229,13 @@ AC_DEFUN([LIBGNUTLS_HOOKS], AM_CONDITIONAL(ENABLE_SESSION_TICKET, test "$ac_enable_session_ticket" != "no") # For cryptodev - enable_cryptodev=no AC_MSG_CHECKING([whether to add cryptodev support]) AC_ARG_ENABLE(cryptodev, AS_HELP_STRING([--enable-cryptodev], [enable cryptodev support]), - enable_cryptodev=yes) + enable_cryptodev=yes,enable_cryptodev=no) AC_MSG_RESULT($enable_cryptodev) if test "$enable_cryptodev" = "yes"; then - AC_CHECK_MEMBER(struct crypt_opv.iovec, - [AC_DEFINE([ENABLE_CRYPTODEV_IOVEC], 1, [Enable cryptodev iovec support])],,[[#include ]]) AC_DEFINE([ENABLE_CRYPTODEV], 1, [Enable cryptodev support]) fi