Branch: Tag:

2004-02-06

2004-02-06 15:55:01 by Niels Möller <nisse@lysator.liu.se>

Let the default args to AC_CHECK_LIB handle LIBS for us.

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

1: - # $Id: configure.in,v 1.9 2004/02/06 15:07:53 nisse Exp $ + # $Id: configure.in,v 1.10 2004/02/06 15:55:01 nisse Exp $   AC_INIT(nettle.cmod)   AC_CONFIG_HEADER(nettle_config.h)   
6:      AC_MODULE_INIT()    - AC_CHECK_LIB(nettle, nettle_md5_init, -  have_nettle=yes, -  have_nettle=no, -  -lgmp) + AC_CHECK_LIB(nettle, nettle_md5_init,,, -lgmp)    - if test x$have_nettle=xno ; then -  AC_CHECK_LIB(nettle, md5_init, -  have_nettle=yes,, -  -lgmp) + if text x$ac_cv_lib_nettle_nettle_md5_init = xno ; then +  AC_CHECK_LIB(nettle, md5_init,,, -lgmp)   fi    - if test x$have_nettle=xyes ; then -  AC_DEFINE([HAVE_LIBNETTLE], 1, [Nettle library available]) + if test x$ac_cv_lib_nettle_nettle_md5_init = xyes ; then    PIKE_FEATURE_OK(Nettle) -  + elif x$ac_cv_lib_nettle_md5_init = xyes ; then +  PIKE_FEATURE_OK(Nettle)   else    AC_MSG_WARN([The nettle library not found.   No crypto functions will be available.])