Branch: Tag:

2004-02-26

2004-02-26 21:26:32 by Martin Nilsson <mani@lysator.liu.se>

Don't try to build IDEA when you can't. Complain more when Nettle isn't installed.

Rev: src/post_modules/Nettle/Makefile.in:1.10
Rev: src/post_modules/Nettle/configure.in:1.14

1: - # $Id: configure.in,v 1.13 2004/02/26 17:43:47 grubba Exp $ + # $Id: configure.in,v 1.14 2004/02/26 21:26:32 nilsson Exp $   AC_INIT(nettle.cmod)   AC_CONFIG_HEADER(nettle_config.h)   
12:   AC_CHECK_LIB(nettle, nettle_md5_init)   AC_CHECK_LIB(nettle, md5_init)    + AC_SUBST(IDEA_OBJ) +    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)
24:    if test -f "$srcdir/idea.c" ; then    AC_MSG_RESULT([found])    AC_DEFINE([WITH_IDEA], 1, [idea.c available]) +  IDEA_OBJ=idea.o    else    AC_MSG_RESULT([no]) -  +  IDEA_OBJ=""    fi   else    if test "$ac_cv_lib_gmp_mpz_init:$ac_cv_lib_gmp___mpz_init:$ac_cv_lib_gmp___gmpz_init" = "no:no:no"; then
38:    PIKE_ENABLE_BUNDLE(nettle, [    ac_cv_lib_nettle_nettle_md5_init    ac_cv_lib_nettle_md5_init +  ], [Cannot compile --with--nettle without the Nettle library. + 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 may re-ru configure + with the option --without-nettle instead.    ]) -  AC_MSG_WARN([The nettle library not found. - No crypto functions will be available.]) +     PIKE_FEATURE_NODEP(Nettle)   fi      AC_OUTPUT(Makefile,echo FOO >stamp-h )