]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Moved cryptodev check to lib/m4/hooks.m4 and now --enable-cryptodev actually works.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 30 Nov 2009 20:20:46 +0000 (22:20 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 30 Nov 2009 20:20:46 +0000 (22:20 +0200)
configure.ac
lib/m4/hooks.m4

index 60668e955c5edb4ac8f867c1420c9d18ec536ff1..c0a4453f289238f279ce3032e229436259160169 100644 (file)
@@ -187,21 +187,6 @@ LIBS=$SAVED_LIBS
 AC_MSG_CHECKING([whether to use the included libcfg])
 AC_MSG_RESULT($libcfg_enabled)
 
-# 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)
-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 <crypto/cryptodev.h>]])
-AC_DEFINE([ENABLE_CRYPTODEV], 1, [Enable cryptodev support])
-fi
-
-
 AC_LIBTOOL_WIN32_DLL
 AC_PROG_LIBTOOL
 
index 624bd924c2de979a6afaac766e14553f63b8db0a..e51d2dba13172a8e56d561d0fbc631346d5235e0 100644 (file)
@@ -228,6 +228,20 @@ AC_DEFUN([LIBGNUTLS_HOOKS],
   fi
   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)
+  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 <crypto/cryptodev.h>]])
+    AC_DEFINE([ENABLE_CRYPTODEV], 1, [Enable cryptodev support])
+  fi
+
   # For storing integers in pointers without warnings
   # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
   AC_CHECK_SIZEOF(void *)