Skip to content

Commit 6492bf8

Browse files
committed
Merge #518: Summarize build options after running configure
3965027 Summarize build options in configure script (Evan Klitzke) Pull request description: This is a trivial build system change to summarize the build options after running configure. Example output: ``` $ ./configure .... <many lines omitted> ... config.status: src/libsecp256k1-config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands Build Options: with endomorphism = no with ecmult precomp = yes with jni = no module ecdh = no module recovery = no asm = x86_64 bignum = gmp field = 64bit scalar = 64bit CC = gcc CFLAGS = -g -O2 -W -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings -fvisibility=hidden -O3 CPPFLAGS = LDFLAGS = ``` I tried to just include the configure options that looked interesting; let me know if there are any I didn't include that I should have. Tree-SHA512: 428381654d772f76bc81210d39ba5c3f07a94dc6a6378a02ccc6f23ebce7f501896268bcd2e94e2b0d8aea54c9c70c44a9238a0f0960600f463b1e2847c7ed1f
2 parents 0e9ada1 + 3965027 commit 6492bf8

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

configure.ac

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -435,18 +435,6 @@ if test x"$use_external_asm" = x"yes"; then
435435
AC_DEFINE(USE_EXTERNAL_ASM, 1, [Define this symbol if an external (non-inline) assembly implementation is used])
436436
fi
437437

438-
AC_MSG_NOTICE([Using static precomputation: $set_precomp])
439-
AC_MSG_NOTICE([Using assembly optimizations: $set_asm])
440-
AC_MSG_NOTICE([Using field implementation: $set_field])
441-
AC_MSG_NOTICE([Using bignum implementation: $set_bignum])
442-
AC_MSG_NOTICE([Using scalar implementation: $set_scalar])
443-
AC_MSG_NOTICE([Using endomorphism optimizations: $use_endomorphism])
444-
AC_MSG_NOTICE([Building benchmarks: $use_benchmark])
445-
AC_MSG_NOTICE([Building for coverage analysis: $enable_coverage])
446-
AC_MSG_NOTICE([Building ECDH module: $enable_module_ecdh])
447-
AC_MSG_NOTICE([Building ECDSA pubkey recovery module: $enable_module_recovery])
448-
AC_MSG_NOTICE([Using jni: $use_jni])
449-
450438
if test x"$enable_experimental" = x"yes"; then
451439
AC_MSG_NOTICE([******])
452440
AC_MSG_NOTICE([WARNING: experimental build])
@@ -486,3 +474,24 @@ unset PKG_CONFIG_PATH
486474
PKG_CONFIG_PATH="$PKGCONFIG_PATH_TEMP"
487475

488476
AC_OUTPUT
477+
478+
echo
479+
echo "Build Options:"
480+
echo " with endomorphism = $use_endomorphism"
481+
echo " with ecmult precomp = $set_precomp"
482+
echo " with jni = $use_jni"
483+
echo " with benchmarks = $use_benchmark"
484+
echo " with coverage = $enable_coverage"
485+
echo " module ecdh = $enable_module_ecdh"
486+
echo " module recovery = $enable_module_recovery"
487+
echo
488+
echo " asm = $set_asm"
489+
echo " bignum = $set_bignum"
490+
echo " field = $set_field"
491+
echo " scalar = $set_scalar"
492+
echo
493+
echo " CC = $CC"
494+
echo " CFLAGS = $CFLAGS"
495+
echo " CPPFLAGS = $CPPFLAGS"
496+
echo " LDFLAGS = $LDFLAGS"
497+
echo

0 commit comments

Comments
 (0)