01e115 | 2003-03-12 | Niels Möller | | AC_INIT(nettle.cmod)
|
bfd43f | 2003-03-13 | Niels Möller | | AC_CONFIG_HEADER(nettle_config.h)
|
01e115 | 2003-03-12 | Niels Möller | |
AC_SET_MAKE
AC_MODULE_INIT()
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | if test "$with_nettle" = "no"; then
|
602cda | 2013-12-02 | Martin Nilsson | | PIKE_FEATURE_WITHOUT(Nettle)
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | else
AC_CHECK_LIB(gmp, mpz_init)
AC_CHECK_LIB(gmp, __mpz_init)
AC_CHECK_LIB(gmp, __gmpz_init)
|
c31745 | 2007-03-20 | Henrik Grubbström (Grubba) | | AC_MSG_CHECKING(CryptAcquireContext in -ladvapi32)
AC_CACHE_VAL(pike_cv_nettle_advapi32_CryptAcquireContext,
[
OLDLIBS="$LIBS"
LIBS="-ladvapi32 $LIBS"
AC_TRY_LINK([#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif
#include <windows.h>
#include <wincrypt.h>
],[CryptAcquireContext(0,0,0,0,0);],
[pike_cv_nettle_advapi32_CryptAcquireContext=yes],
[pike_cv_nettle_advapi32_CryptAcquireContext=no])
LIBS="$OLDLIBS"
])
AC_MSG_RESULT($pike_cv_nettle_advapi32_CryptAcquireContext)
if test x"$pike_cv_nettle_advapi32_CryptAcquireContext" = xyes; then
LIBS="-ladvapi32 $LIBS"
fi
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | AC_CHECK_LIB(nettle, nettle_md5_init)
AC_CHECK_LIB(nettle, md5_init)
|
7df93c | 2014-01-13 | Per Hedbor | | AC_CHECK_LIB(hogweed, nettle_rsa_generate_keypair)
if test "x$ac_cv_lib_hogweed_nettle_rsa_generate_keypair" = "xyes" ; then
AC_MSG_CHECKING([if nettle_*_generate_keypair takes qbits])
AC_CACHE_VAL(pike_cv_nettle_hogweed_keypair_args, [
pike_cv_nettle_hogweed_keypair_args=no
AC_TRY_COMPILE([
#include <nettle/dsa.h>
#include <nettle/rsa.h>
], [
struct dsa_public_key pub;
struct dsa_private_key key;
nettle_dsa_generate_keypair(&pub, &key, 0, 0, 0, 0, 2048, 384);
], [
pike_cv_nettle_hogweed_keypair_args=yes
])
])
AC_MSG_RESULT($pike_cv_nettle_hogweed_keypair_args);
if test "x$pike_cv_nettle_hogweed_keypair_args" = "xyes"; then
AC_DEFINE(HAVE_DSA_QBITS_KEYPAIR_ARG, [], [Define if generate_dsa_keypair takes the qbits argument])
fi
fi
|
01e115 | 2003-03-12 | Niels Möller | |
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | AC_SUBST(IDEA_OBJ)
|
c4fce4 | 2004-02-26 | Martin Nilsson | |
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | if test "x$ac_cv_lib_nettle_nettle_md5_init" = "xyes" -o \
"x$ac_cv_lib_nettle_md5_init" = "xyes"; then
PIKE_FEATURE_OK(Nettle)
|
fe0ca6 | 2004-02-26 | Henrik Grubbström (Grubba) | |
|
9ec1f7 | 2014-04-06 | Martin Nilsson | | # md4 is available in Nettle 1.8 and later.
# arctwo is available in Nettle 1.11 and later.
# ctr is available in Nettle 1.13 and later.
|
650f10 | 2011-12-23 | Henrik Grubbström (Grubba) | | # camellia is available in Nettle 2.1 and later.
|
9ec1f7 | 2014-04-06 | Martin Nilsson | | # gcm is available in Nettle 2.2 and later.
# ripemd160 is available in Nettle 2.3 and later.
# sha3 and gosthash94 is available in Nettle 2.6 and later.
|
9770d3 | 2014-04-17 | Henrik Grubbström (Grubba) | | # dsa-compat.h is to detect the new DSA API in Nettle 3.0 and later.
|
ae4500 | 2013-11-30 | Martin Nilsson | | AC_CHECK_HEADERS(nettle/camellia.h nettle/md4.h nettle/sha3.h \
|
a73f58 | 2014-01-05 | Henrik Grubbström (Grubba) | | nettle/arctwo.h nettle/ripemd160.h nettle/gosthash94.h \
|
9770d3 | 2014-04-17 | Henrik Grubbström (Grubba) | | nettle/ctr.h nettle/gcm.h nettle/ecdsa.h \
nettle/dsa-compat.h)
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | AC_CHECK_FUNCS(nettle_md4_init)
|
fe0ca6 | 2004-02-26 | Henrik Grubbström (Grubba) | |
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | AC_MSG_CHECKING([for idea.c])
# Have the patent-encumbered idea files been purged?
if test -f "$srcdir/idea.c" ; then
|
fe0ca6 | 2004-02-26 | Henrik Grubbström (Grubba) | | AC_MSG_RESULT([found])
AC_DEFINE([WITH_IDEA], 1, [idea.c available])
|
c4fce4 | 2004-02-26 | Martin Nilsson | | IDEA_OBJ=idea.o
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | else
|
c4fce4 | 2004-02-26 | Martin Nilsson | | AC_MSG_RESULT([no])
IDEA_OBJ=""
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | fi
|
776b50 | 2009-07-02 | Henrik Grubbström (Grubba) | |
|
9770d3 | 2014-04-17 | Henrik Grubbström (Grubba) | | # These may have been purged from the Nettle lib to avoid GPL
|
776b50 | 2009-07-02 | Henrik Grubbström (Grubba) | | # contamination.
AC_CHECK_FUNCS(nettle_blowfish_decrypt nettle_serpent_decrypt)
# This is the recomended interface in Nettle 2.0.
AC_CHECK_FUNCS(nettle_yarrow256_slow_reseed)
|
9770d3 | 2014-04-17 | Henrik Grubbström (Grubba) | | # These weren't present in old Nettles.
|
c157ac | 2013-11-27 | Arne Goedeke | | AC_CHECK_FUNCS(nettle_salsa20_crypt nettle_sha224_init)
|
df498c | 2013-11-01 | Henrik Grubbström (Grubba) | |
|
776b50 | 2009-07-02 | Henrik Grubbström (Grubba) | | AC_MSG_CHECKING([for struct yarrow256_ctx.seed_file])
AC_CACHE_VAL(pike_cv_nettle_struct_yarrow256_ctx_seed_file, [
pike_cv_nettle_struct_yarrow256_ctx_seed_file=no
AC_TRY_COMPILE([
#include <nettle/yarrow.h>
], [
struct yarrow256_ctx ctx;
return !sizeof(ctx.seed_file);
], [
pike_cv_nettle_struct_yarrow256_ctx_seed_file=yes
])
])
AC_MSG_RESULT($pike_cv_nettle_struct_yarrow256_ctx_seed_file);
if test "x$pike_cv_nettle_struct_yarrow256_ctx_seed_file" = "xyes"; then
AC_DEFINE(HAVE_STRUCT_YARROW256_CTX_SEED_FILE)
fi
|
4df9fb | 2009-07-02 | Henrik Grubbström (Grubba) | |
AC_MSG_CHECKING([whether nettle_crypt_func is a pointer type])
AC_CACHE_VAL(pike_cv_nettle_crypt_func_is_pointer, [
pike_cv_nettle_crypt_func_is_pointer=no
AC_TRY_COMPILE([
|
61d424 | 2009-07-02 | Henrik Grubbström (Grubba) | | /* Note: Old Nettles had the nettle_crypt_func typedef directly
* in <nettle/nettle-meta.h> while more modern have it in
* <nettle/nettle-types.h>. Since <nettle/nettle-meta.h>
* pulls in <nettle/nettle-types.h> it should be sufficient.
*/
#include <nettle/nettle-meta.h>
|
4df9fb | 2009-07-02 | Henrik Grubbström (Grubba) | | ], [
nettle_crypt_func foo = (nettle_crypt_func)(void *)0;
return (int)foo;
], [
pike_cv_nettle_crypt_func_is_pointer=yes
])
])
AC_MSG_RESULT($pike_cv_nettle_crypt_func_is_pointer);
if test "x$pike_cv_nettle_crypt_func_is_pointer" = "xyes"; then
AC_DEFINE(HAVE_NETTLE_CRYPT_FUNC_IS_POINTER)
fi
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | else
|
c05a1e | 2013-06-11 | Martin Nilsson | | AC_ERROR([Cannot compile --with-nettle without the Nettle library.
|
ce2365 | 2004-10-05 | Martin Stjernholm | | It is highly recommended that you install a working Nettle library on
your system as that will add features to Pike required by many
applications. These features include ciphers, hash algorithms and
random generators. If you know that you do not need cryptographic
functions, you can re-run configure with the option --without-nettle
instead. Nettle is available at http://www.lysator.liu.se/~nisse/nettle/.
|
3b7368 | 2004-02-27 | Henrik Grubbström (Grubba) | | ])
PIKE_FEATURE_NODEP(Nettle)
fi
|
c20d15 | 2004-02-06 | Niels Möller | | fi
|
01e115 | 2003-03-12 | Niels Möller | | AC_OUTPUT(Makefile,echo FOO >stamp-h )
|