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

version» Context lines:

pike.git/src/post_modules/Nettle/configure.in:1: - # $Id: configure.in,v 1.22 2009/07/02 09:18:14 grubba Exp $ + # $Id: configure.in,v 1.23 2009/07/02 16:35:38 grubba Exp $   AC_INIT(nettle.cmod)   AC_CONFIG_HEADER(nettle_config.h)      AC_SET_MAKE      AC_MODULE_INIT()      if test "$with_nettle" = "no"; then    PIKE_FEATURE_WITHOUT(nettle)   else
pike.git/src/post_modules/Nettle/configure.in:71:    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 +  +  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([ + #include <nettle/nettle-types.h> +  ], [ +  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    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    # No gmp found; enable it if possible.    PIKE_ENABLE_BUNDLE(gmp, [    ac_cv_lib_gmp_mpz_init    ac_cv_lib_gmp___mpz_init    ac_cv_lib_gmp___gmpz_init    ])    fi    PIKE_ENABLE_BUNDLE(nettle, [