Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/configure.ac
Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | |||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[void myfunc() {__builtin_expect(0,0);}]])], | AC_COMPILE_IFELSE([AC_LANG_SOURCE([[void myfunc() {__builtin_expect(0,0);}]])], | ||||
[ AC_MSG_RESULT([yes]);AC_DEFINE(HAVE_BUILTIN_EXPECT,1,[Define this symbol if __builtin_expect is available]) ], | [ AC_MSG_RESULT([yes]);AC_DEFINE(HAVE_BUILTIN_EXPECT,1,[Define this symbol if __builtin_expect is available]) ], | ||||
[ AC_MSG_RESULT([no]) | [ AC_MSG_RESULT([no]) | ||||
]) | ]) | ||||
if test x"$enable_coverage" = x"yes"; then | if test x"$enable_coverage" = x"yes"; then | ||||
AC_DEFINE(COVERAGE, 1, [Define this symbol to compile out all VERIFY code]) | AC_DEFINE(COVERAGE, 1, [Define this symbol to compile out all VERIFY code]) | ||||
CFLAGS="$CFLAGS -O0 --coverage" | CFLAGS="$CFLAGS -O0 --coverage" | ||||
LDFLAGS="--coverage" | LDFLAGS="$LDFLAGS --coverage" | ||||
else | else | ||||
CFLAGS="$CFLAGS -O3" | CFLAGS="$CFLAGS -O3" | ||||
fi | fi | ||||
if test x"$use_ecmult_static_precomputation" != x"no"; then | if test x"$use_ecmult_static_precomputation" != x"no"; then | ||||
save_cross_compiling=$cross_compiling | save_cross_compiling=$cross_compiling | ||||
cross_compiling=no | cross_compiling=no | ||||
TEMP_CC="$CC" | TEMP_CC="$CC" | ||||
▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines |