pike.git / src / post_modules / Nettle / configure.in

version» Context lines:

pike.git/src/post_modules/Nettle/configure.in:25:    [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    AC_CHECK_LIB(nettle, nettle_md5_init)    AC_CHECK_LIB(nettle, md5_init) -  AC_CHECK_LIB(hogweed, nettle_dsa_generate_keypair) +  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       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)       # md4 is available in later versions of nettle    # camellia is available in Nettle 2.1 and later.    AC_CHECK_HEADERS(nettle/camellia.h nettle/md4.h nettle/sha3.h \