mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
configure.ac: refactor setup for --enable-reproducible-build; remove mutex between --enable-sp-math and --enable-sp-math-all (they can now coexist); whitespace cleanup.
This commit is contained in:
28
configure.ac
28
configure.ac
@ -313,17 +313,20 @@ AC_ARG_ENABLE([reproducible-build],
|
|||||||
[ ENABLED_REPRODUCIBLE_BUILD=$REPRODUCIBLE_BUILD_DEFAULT ]
|
[ 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"
|
if test "$ENABLED_REPRODUCIBLE_BUILD" = "yes"
|
||||||
then
|
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"
|
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_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"])
|
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"])
|
|
||||||
fi
|
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],
|
AC_ARG_ENABLE([sp-asm],
|
||||||
[AS_HELP_STRING([--enable-sp-asm],[Enable Single Precision assembly implementation (default: disabled)])],
|
[AS_HELP_STRING([--enable-sp-asm],[Enable Single Precision assembly implementation (default: disabled)])],
|
||||||
[ ENABLED_SP_ASM=$enableval ],
|
[ ENABLED_SP_ASM=$enableval ],
|
||||||
@ -608,7 +606,7 @@ then
|
|||||||
|
|
||||||
# Enable AES Decrypt, AES ECB
|
# Enable AES Decrypt, AES ECB
|
||||||
AM_CFLAGS="$AM_CFLAGS -DHAVE_AES_DECRYPT -DHAVE_AES_ECB"
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_AES_DECRYPT -DHAVE_AES_ECB"
|
||||||
|
|
||||||
# Enable Alt Names, DER Load, Keep Certs, CRL IO with Timeout
|
# 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"
|
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"
|
if test "$ENABLED_BIND" = "yes" || test "$ENABLED_NTP" = "yes" || test "$ENABLED_LIBSSH2" = "yes" || test "$ENABLED_OPENRESTY" = "yes"
|
||||||
then
|
then
|
||||||
ENABLED_KEYGEN=yes
|
ENABLED_KEYGEN=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# CERT GENERATION
|
# CERT GENERATION
|
||||||
@ -3332,7 +3330,7 @@ AC_ARG_ENABLE([xts],
|
|||||||
|
|
||||||
AS_IF([test "x$ENABLED_XTS" = "xyes"],
|
AS_IF([test "x$ENABLED_XTS" = "xyes"],
|
||||||
[AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AES_XTS -DWOLFSSL_AES_DIRECT"])
|
[AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AES_XTS -DWOLFSSL_AES_DIRECT"])
|
||||||
|
|
||||||
# Web Server Build
|
# Web Server Build
|
||||||
AC_ARG_ENABLE([webserver],
|
AC_ARG_ENABLE([webserver],
|
||||||
[AS_HELP_STRING([--enable-webserver],[Enable Web Server (default: disabled)])],
|
[AS_HELP_STRING([--enable-webserver],[Enable Web Server (default: disabled)])],
|
||||||
|
Reference in New Issue
Block a user