@@ -48,17 +48,12 @@ case $host_os in
48
48
# in expected paths because they may conflict with system files. Ask
49
49
# Homebrew where each one is located, then adjust paths accordingly.
50
50
openssl_prefix=`$BREW --prefix openssl 2>/dev/null`
51
- gmp_prefix=`$BREW --prefix gmp 2>/dev/null`
52
51
valgrind_prefix=`$BREW --prefix valgrind 2>/dev/null`
53
52
if test x$openssl_prefix != x; then
54
53
PKG_CONFIG_PATH="$openssl_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
55
54
export PKG_CONFIG_PATH
56
55
CRYPTO_CPPFLAGS="-I$openssl_prefix/include"
57
56
fi
58
- if test x$gmp_prefix != x; then
59
- GMP_CPPFLAGS="-I$gmp_prefix/include"
60
- GMP_LIBS="-L$gmp_prefix/lib"
61
- fi
62
57
if test x$valgrind_prefix != x; then
63
58
VALGRIND_CPPFLAGS="-I$valgrind_prefix/include"
64
59
fi
@@ -164,9 +159,6 @@ AC_ARG_ENABLE(external_default_callbacks,
164
159
# Legal values are int64 (for [u]int64_t), int128 (for [unsigned] __int128), and auto (the default).
165
160
AC_ARG_WITH ( [ test-override-wide-multiply] , [ ] ,[ set_widemul=$withval] , [ set_widemul=auto] )
166
161
167
- AC_ARG_WITH ( [ bignum] , [ AS_HELP_STRING ( [ --with-bignum=gmp|no|auto] ,
168
- [ bignum implementation to use [ default=auto] ] ) ] ,[ req_bignum=$withval] , [ req_bignum=auto] )
169
-
170
162
AC_ARG_WITH ( [ asm] , [ AS_HELP_STRING ( [ --with-asm=x86_64|arm|no|auto] ,
171
163
[ assembly optimizations to use (experimental: arm) [ default=auto] ] ) ] ,[ req_asm=$withval] , [ req_asm=auto] )
172
164
@@ -245,32 +237,6 @@ else
245
237
esac
246
238
fi
247
239
248
- if test x"$req_bignum" = x"auto"; then
249
- SECP_GMP_CHECK
250
- if test x"$has_gmp" = x"yes"; then
251
- set_bignum=gmp
252
- fi
253
-
254
- if test x"$set_bignum" = x; then
255
- set_bignum=no
256
- fi
257
- else
258
- set_bignum=$req_bignum
259
- case $set_bignum in
260
- gmp)
261
- SECP_GMP_CHECK
262
- if test x"$has_gmp" != x"yes"; then
263
- AC_MSG_ERROR ( [ gmp bignum explicitly requested but libgmp not available] )
264
- fi
265
- ;;
266
- no)
267
- ;;
268
- *)
269
- AC_MSG_ERROR ( [ invalid bignum implementation selection] )
270
- ;;
271
- esac
272
- fi
273
-
274
240
# Select assembly optimization
275
241
use_external_asm=no
276
242
@@ -308,24 +274,6 @@ auto)
308
274
;;
309
275
esac
310
276
311
- # Select bignum implementation
312
- case $set_bignum in
313
- gmp)
314
- AC_DEFINE ( HAVE_LIBGMP , 1 , [ Define this symbol if libgmp is installed] )
315
- AC_DEFINE ( USE_NUM_GMP , 1 , [ Define this symbol to use the gmp implementation for num] )
316
- AC_DEFINE ( USE_FIELD_INV_NUM , 1 , [ Define this symbol to use the num-based field inverse implementation] )
317
- AC_DEFINE ( USE_SCALAR_INV_NUM , 1 , [ Define this symbol to use the num-based scalar inverse implementation] )
318
- ;;
319
- no)
320
- AC_DEFINE ( USE_NUM_NONE , 1 , [ Define this symbol to use no num implementation] )
321
- AC_DEFINE ( USE_FIELD_INV_BUILTIN , 1 , [ Define this symbol to use the native field inverse implementation] )
322
- AC_DEFINE ( USE_SCALAR_INV_BUILTIN , 1 , [ Define this symbol to use the native scalar inverse implementation] )
323
- ;;
324
- *)
325
- AC_MSG_ERROR ( [ invalid bignum implementation] )
326
- ;;
327
- esac
328
-
329
277
# Set ecmult window size
330
278
if test x"$req_ecmult_window" = x"auto"; then
331
279
set_ecmult_window=15
@@ -390,11 +338,6 @@ else
390
338
enable_openssl_tests=no
391
339
fi
392
340
393
- if test x"$set_bignum" = x"gmp"; then
394
- SECP_LIBS="$SECP_LIBS $GMP_LIBS"
395
- SECP_INCLUDES="$SECP_INCLUDES $GMP_CPPFLAGS"
396
- fi
397
-
398
341
if test x"$enable_valgrind" = x"yes"; then
399
342
SECP_INCLUDES="$SECP_INCLUDES $VALGRIND_CPPFLAGS"
400
343
fi
@@ -571,7 +514,6 @@ echo " module extrakeys = $enable_module_extrakeys"
571
514
echo " module schnorrsig = $enable_module_schnorrsig"
572
515
echo
573
516
echo " asm = $set_asm"
574
- echo " bignum = $set_bignum"
575
517
echo " ecmult window size = $set_ecmult_window"
576
518
echo " ecmult gen prec. bits = $set_ecmult_gen_precision"
577
519
# Hide test-only options unless they're used.
0 commit comments