Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/configure.ac
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | AC_ARG_ENABLE(ecmult_static_precomputation, | ||||
[use_ecmult_static_precomputation=$enableval], | [use_ecmult_static_precomputation=$enableval], | ||||
[use_ecmult_static_precomputation=auto]) | [use_ecmult_static_precomputation=auto]) | ||||
AC_ARG_ENABLE(module_ecdh, | AC_ARG_ENABLE(module_ecdh, | ||||
AS_HELP_STRING([--enable-module-ecdh],[enable ECDH shared secret computation (experimental)]), | AS_HELP_STRING([--enable-module-ecdh],[enable ECDH shared secret computation (experimental)]), | ||||
[enable_module_ecdh=$enableval], | [enable_module_ecdh=$enableval], | ||||
[enable_module_ecdh=no]) | [enable_module_ecdh=no]) | ||||
AC_ARG_ENABLE(module_multiset, | |||||
AS_HELP_STRING([--enable-module-multiset],[enable multiset operations (experimental)]), | |||||
[enable_module_multiset=$enableval], | |||||
[enable_module_multiset=no]) | |||||
AC_ARG_ENABLE(module_recovery, | AC_ARG_ENABLE(module_recovery, | ||||
AS_HELP_STRING([--enable-module-recovery],[enable ECDSA pubkey recovery module (default is no)]), | AS_HELP_STRING([--enable-module-recovery],[enable ECDSA pubkey recovery module (default is no)]), | ||||
[enable_module_recovery=$enableval], | [enable_module_recovery=$enableval], | ||||
[enable_module_recovery=no]) | [enable_module_recovery=no]) | ||||
AC_ARG_ENABLE(jni, | AC_ARG_ENABLE(jni, | ||||
AS_HELP_STRING([--enable-jni],[enable libsecp256k1_jni (default is auto)]), | AS_HELP_STRING([--enable-jni],[enable libsecp256k1_jni (default is auto)]), | ||||
[use_jni=$enableval], | [use_jni=$enableval], | ||||
▲ Show 20 Lines • Show All 286 Lines • ▼ Show 20 Lines | |||||
if test x"$set_precomp" = x"yes"; then | if test x"$set_precomp" = x"yes"; then | ||||
AC_DEFINE(USE_ECMULT_STATIC_PRECOMPUTATION, 1, [Define this symbol to use a statically generated ecmult table]) | AC_DEFINE(USE_ECMULT_STATIC_PRECOMPUTATION, 1, [Define this symbol to use a statically generated ecmult table]) | ||||
fi | fi | ||||
if test x"$enable_module_ecdh" = x"yes"; then | if test x"$enable_module_ecdh" = x"yes"; then | ||||
AC_DEFINE(ENABLE_MODULE_ECDH, 1, [Define this symbol to enable the ECDH module]) | AC_DEFINE(ENABLE_MODULE_ECDH, 1, [Define this symbol to enable the ECDH module]) | ||||
fi | fi | ||||
if test x"$enable_module_multiset" = x"yes"; then | |||||
AC_DEFINE(ENABLE_MODULE_MULTISET, 1, [Define this symbol to enable the multiset module]) | |||||
fi | |||||
if test x"$enable_module_recovery" = x"yes"; then | if test x"$enable_module_recovery" = x"yes"; then | ||||
AC_DEFINE(ENABLE_MODULE_RECOVERY, 1, [Define this symbol to enable the ECDSA pubkey recovery module]) | AC_DEFINE(ENABLE_MODULE_RECOVERY, 1, [Define this symbol to enable the ECDSA pubkey recovery module]) | ||||
fi | fi | ||||
AC_C_BIGENDIAN() | AC_C_BIGENDIAN() | ||||
if test x"$use_external_asm" = x"yes"; then | if test x"$use_external_asm" = x"yes"; then | ||||
AC_DEFINE(USE_EXTERNAL_ASM, 1, [Define this symbol if an external (non-inline) assembly implementation is used]) | AC_DEFINE(USE_EXTERNAL_ASM, 1, [Define this symbol if an external (non-inline) assembly implementation is used]) | ||||
Show All 33 Lines | |||||
AC_SUBST(SECP_TEST_LIBS) | AC_SUBST(SECP_TEST_LIBS) | ||||
AC_SUBST(SECP_TEST_INCLUDES) | AC_SUBST(SECP_TEST_INCLUDES) | ||||
AM_CONDITIONAL([ENABLE_COVERAGE], [test x"$enable_coverage" = x"yes"]) | AM_CONDITIONAL([ENABLE_COVERAGE], [test x"$enable_coverage" = x"yes"]) | ||||
AM_CONDITIONAL([USE_TESTS], [test x"$use_tests" != x"no"]) | AM_CONDITIONAL([USE_TESTS], [test x"$use_tests" != x"no"]) | ||||
AM_CONDITIONAL([USE_EXHAUSTIVE_TESTS], [test x"$use_exhaustive_tests" != x"no"]) | AM_CONDITIONAL([USE_EXHAUSTIVE_TESTS], [test x"$use_exhaustive_tests" != x"no"]) | ||||
AM_CONDITIONAL([USE_BENCHMARK], [test x"$use_benchmark" = x"yes"]) | AM_CONDITIONAL([USE_BENCHMARK], [test x"$use_benchmark" = x"yes"]) | ||||
AM_CONDITIONAL([USE_ECMULT_STATIC_PRECOMPUTATION], [test x"$set_precomp" = x"yes"]) | AM_CONDITIONAL([USE_ECMULT_STATIC_PRECOMPUTATION], [test x"$set_precomp" = x"yes"]) | ||||
AM_CONDITIONAL([ENABLE_MODULE_ECDH], [test x"$enable_module_ecdh" = x"yes"]) | AM_CONDITIONAL([ENABLE_MODULE_ECDH], [test x"$enable_module_ecdh" = x"yes"]) | ||||
AM_CONDITIONAL([ENABLE_MODULE_MULTISET], [test x"$enable_module_multiset" = x"yes"]) | |||||
AM_CONDITIONAL([ENABLE_MODULE_RECOVERY], [test x"$enable_module_recovery" = x"yes"]) | AM_CONDITIONAL([ENABLE_MODULE_RECOVERY], [test x"$enable_module_recovery" = x"yes"]) | ||||
AM_CONDITIONAL([USE_JNI], [test x"$use_jni" == x"yes"]) | AM_CONDITIONAL([USE_JNI], [test x"$use_jni" == x"yes"]) | ||||
AM_CONDITIONAL([USE_EXTERNAL_ASM], [test x"$use_external_asm" = x"yes"]) | AM_CONDITIONAL([USE_EXTERNAL_ASM], [test x"$use_external_asm" = x"yes"]) | ||||
AM_CONDITIONAL([USE_ASM_ARM], [test x"$set_asm" = x"arm"]) | AM_CONDITIONAL([USE_ASM_ARM], [test x"$set_asm" = x"arm"]) | ||||
dnl make sure nothing new is exported so that we don't break the cache | dnl make sure nothing new is exported so that we don't break the cache | ||||
PKGCONFIG_PATH_TEMP="$PKG_CONFIG_PATH" | PKGCONFIG_PATH_TEMP="$PKG_CONFIG_PATH" | ||||
unset PKG_CONFIG_PATH | unset PKG_CONFIG_PATH | ||||
PKG_CONFIG_PATH="$PKGCONFIG_PATH_TEMP" | PKG_CONFIG_PATH="$PKGCONFIG_PATH_TEMP" | ||||
AC_OUTPUT | AC_OUTPUT |