Skip to content

Commit e79c581

Browse files
authored
Merge pull request #10712 from kareem-wolfssl/gh10679
Configure.ac updates
2 parents b560973 + 85bb451 commit e79c581

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

configure.ac

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5284,6 +5284,11 @@ then
52845284
ENABLED_CURVE25519="yes"
52855285
fi
52865286

5287+
if test "$ENABLED_CURVE25519" = "no" && test "$ENABLED_LIGHTY" = "yes" && test "x$ENABLED_FIPS" = "xno"
5288+
then
5289+
ENABLED_CURVE25519="yes"
5290+
fi
5291+
52875292

52885293
# ED25519
52895294
AC_ARG_ENABLE([ed25519],
@@ -10649,6 +10654,23 @@ if test "$ENABLED_SP_MATH_ALL" = "yes" && test "$ENABLED_ASM" != "no"; then
1064910654
fi
1065010655
1065110656
10657+
if test "$ENABLED_SP_ASM" = "yes" && test "$ENABLED_SP" = "yes"; then
10658+
case $host_cpu in
10659+
*x86_64* | *amd64*)
10660+
case $host_os in
10661+
*mingw* | *cygwin* | *msys*)
10662+
if test "$enable_sp_asm" = "yes"; then
10663+
AC_MSG_ERROR([--enable-sp-asm is not supported for x86_64 Windows hosts (MinGW/Cygwin). Reconfigure without --enable-sp-asm to use the C SP implementation.])
10664+
else
10665+
AC_MSG_WARN([x86_64 SP assembly is not supported for Windows hosts (MinGW/Cygwin); disabling SP assembly and using the C implementation.])
10666+
ENABLED_SP_ASM=no
10667+
fi
10668+
;;
10669+
esac
10670+
;;
10671+
esac
10672+
fi
10673+
1065210674
if test "$ENABLED_SP_ASM" = "yes" && test "$ENABLED_SP" = "yes"; then
1065310675
if test "$ENABLED_SP_NONBLOCK" = "yes"; then
1065410676
AC_MSG_ERROR([SP non-blocking not supported with sp-asm])
@@ -12684,6 +12706,16 @@ if test "x$WOLFSSL_EXEC_PREFIX_ABS" = "xNONE"; then
1268412706
fi
1268512707
prefix=$WOLFSSL_PREFIX_ABS
1268612708
exec_prefix=$WOLFSSL_EXEC_PREFIX_ABS
12709+
# The eval calls below expand ${prefix}/${exec_prefix} references embedded in
12710+
# the libdir/includedir values. eval would, however, also execute or be
12711+
# subverted by shell metacharacters in a --libdir/--includedir value (command
12712+
# substitution, quote breakout, command separators, etc.), running arbitrary
12713+
# commands during configure. Reject such values before the eval.
12714+
case "$libdir $includedir" in
12715+
*'`'* | *'$('* | *'"'* | *"'"* | *';'* | *'&'* | *'|'* | *'<'* | *'>'* | *'\'* )
12716+
AC_MSG_ERROR([--libdir and --includedir must not contain shell metacharacters])
12717+
;;
12718+
esac
1268712719
eval WOLFSSL_LIBDIR_ABS=\"$libdir\"
1268812720
eval WOLFSSL_INCLUDEDIR_ABS=\"$includedir\"
1268912721
AC_SUBST([WOLFSSL_PREFIX_ABS])

0 commit comments

Comments
 (0)