]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 6 Jun 2001 09:06:09 +0000 (09:06 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 6 Jun 2001 09:06:09 +0000 (09:06 +0000)
acconfig.h
acinclude.m4
configure.in

index ec08fbdeb2b8fd9c1ffffa5565f63c3610de0534..e2119908c7484090012d3bc7044db7599e145177 100644 (file)
@@ -20,4 +20,7 @@
 
 #undef USE_GCRYPT
 #undef GNUTLS_VERSION
+
+#undef LIBMCRYPT22
+#undef LIBMCRYPT24
  
\ No newline at end of file
index b606a635488d674b48b832e42a266e98b97101e6..ec0a29d8dba36a078d1654199d79eec2e6799862 100644 (file)
@@ -1 +1,2 @@
 include(libgcrypt.m4)
+include(libmcrypt.m4)
index 18001f8a4fb43ba22f7fb260ffb1d50400bfd3f1..b773b2c3e20fb2448b44804e473c9b55de7a8aa5 100644 (file)
@@ -85,24 +85,17 @@ AC_PROG_INSTALL
 dnl AC_PROG_MAKE_SET
 
 
-AC_ARG_WITH( mcrypt, [  --with-mcrypt           enable mcrypt support],
- [  AC_CHECK_LIB(dl, dlopen)
-  AC_CHECK_LIB(mcrypt, mcrypt_module_open,
-  LIBS="${LIBS} -lmcrypt"
-  AC_DEFINE(USE_MCRYPT),
-  [
-    AC_CHECK_LIB(dld, dld_init)
-    AC_CHECK_LIB(ltdl, lt_dlinit)
-    AC_CHECK_LIB(mcrypt, mcrypt_enc_get_key_size,
-    LIBS="${LIBS} -lmcrypt"
-    AC_DEFINE(USE_MCRYPT),
-    AC_MSG_ERROR("You need libmcrypt 2.4.x to compile this program. http://mcrypt.hellug.gr"))
-  ])
+AC_ARG_WITH( mcrypt, [  --with-mcrypt           enable libmcrypt support],
+ [AM_PATH_LIBMCRYPT( 2.4.0,, 
+       AC_MSG_ERROR([[*** libmcrypt was not found]])
+    AC_MSG_ERROR([[*** You need libmcrypt 2.4.x to compile this program. http://mcrypt.hellug.gr]])
+ )
  ]
-
 )
 
-AC_ARG_WITH( mhash, [  --with-mhash            enable mhash support],
+LIBS="${LIBS} ${LIBMCRYPT_LIBS}"
+
+AC_ARG_WITH( mhash, [  --with-mhash            enable libmhash support],
  [AC_CHECK_LIB(mhash, mhash_init, AC_DEFINE(USE_MHASH) 
 LIBS="${LIBS} -lmhash")])