diff --git a/configure.ac b/configure.ac index 2f050254d..7d8700c65 100644 --- a/configure.ac +++ b/configure.ac @@ -313,17 +313,20 @@ AC_ARG_ENABLE([reproducible-build], [ ENABLED_REPRODUCIBLE_BUILD=$REPRODUCIBLE_BUILD_DEFAULT ] ) -# Test ar for the "U" or "D" options. Should be checked before the libtool macros. -xxx_ar_flags=$(ar --help 2>&1) -xxx_ranlib_flags=$(ranlib --help 2>&1) if test "$ENABLED_REPRODUCIBLE_BUILD" = "yes" then + # Test ar for the "D" option. Should be checked before the libtool macros. + if test -z "$AR"; then + AR=ar + fi + xxx_ar_flags=$(${AR} --help 2>&1) + if test -z "$RANLIB"; then + RANLIB=ranlib + fi + xxx_ranlib_flags=$(${RANLIB} --help 2>&1) AM_CFLAGS="$AM_CFLAGS -DHAVE_REPRODUCIBLE_BUILD" AS_CASE([$xxx_ar_flags],[*'use zero for timestamps and uids/gids'*],[AR_FLAGS="Dcr"]) - AS_CASE([$xxx_ranlib_flags],[*'Use zero for symbol map timestamp'*],[RANLIB="ranlib -D"]) -else - AS_CASE([$xxx_ar_flags],[*'use actual timestamps and uids/gids'*],[AR_FLAGS="Ucru"]) - AS_CASE([$xxx_ranlib_flags],[*'Use actual symbol map timestamp'*],[RANLIB="ranlib -U"]) + AS_CASE([$xxx_ranlib_flags],[*'Use zero for symbol map timestamp'*],[RANLIB="${RANLIB} -D"]) fi @@ -435,11 +438,6 @@ AC_ARG_ENABLE([sp-math], ) -if test "$ENABLED_SP_MATH" != "no" && test "$ENABLED_SP_MATH_ALL" != "no" -then - AC_MSG_ERROR([cannot enable sp-math and sp-math-all simultaneously.]) -fi - AC_ARG_ENABLE([sp-asm], [AS_HELP_STRING([--enable-sp-asm],[Enable Single Precision assembly implementation (default: disabled)])], [ ENABLED_SP_ASM=$enableval ], @@ -608,7 +606,7 @@ then # Enable AES Decrypt, AES ECB AM_CFLAGS="$AM_CFLAGS -DHAVE_AES_DECRYPT -DHAVE_AES_ECB" - + # Enable Alt Names, DER Load, Keep Certs, CRL IO with Timeout AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALT_NAMES -DWOLFSSL_DER_LOAD -DKEEP_OUR_CERT -DKEEP_PEER_CERT" @@ -2179,7 +2177,7 @@ AC_ARG_ENABLE([keygen], if test "$ENABLED_BIND" = "yes" || test "$ENABLED_NTP" = "yes" || test "$ENABLED_LIBSSH2" = "yes" || test "$ENABLED_OPENRESTY" = "yes" then ENABLED_KEYGEN=yes -fi +fi # CERT GENERATION @@ -3332,7 +3330,7 @@ AC_ARG_ENABLE([xts], AS_IF([test "x$ENABLED_XTS" = "xyes"], [AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AES_XTS -DWOLFSSL_AES_DIRECT"]) - + # Web Server Build AC_ARG_ENABLE([webserver], [AS_HELP_STRING([--enable-webserver],[Enable Web Server (default: disabled)])],