From c8cd042bdda8ad6711773df617d5296fc10056eb Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 4 Sep 2020 23:52:17 -0500 Subject: [PATCH] configure.ac: for linuxkm, make --enable-sp-math the default, and add additional exclusions --enable-fastrsa and --with-libz. --- configure.ac | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6c58cb9a7..dea00633e 100644 --- a/configure.ac +++ b/configure.ac @@ -4633,10 +4633,16 @@ if test "$ENABLED_SP_ASM" = "yes"; then esac fi +if test "$ENABLED_LINUXKM" = "yes" && test "$ENABLED_SP" != "no" +then + ENABLED_SP_MATH_DEFAULT=yes +else + ENABLED_SP_MATH_DEFAULT=no +fi AC_ARG_ENABLE([sp-math], [AS_HELP_STRING([--enable-sp-math],[Enable Single Precision math implementation only (default: disabled)])], [ ENABLED_SP_MATH=$enableval ], - [ ENABLED_SP_MATH=no ], + [ ENABLED_SP_MATH=$ENABLED_SP_MATH_DEFAULT ], ) if test "$ENABLED_SP_MATH" = "yes"; then if test "$ENABLED_SP" = "no"; then @@ -5376,6 +5382,12 @@ if test "x$ENABLED_LINUXKM" = "xyes"; then if test "$ENABLED_FASTMATH" = "yes"; then AC_MSG_ERROR([--enable-fastmath is incompatible with --enable-linuxkm (exceeds stack limit).]) fi + if test "$ENABLED_FAST_RSA" = "yes"; then + AC_MSG_ERROR([--enable-fastrsa is incompatible with --enable-linuxkm.]) + fi + if test "$ENABLED_LIBZ_RSA" = "yes"; then + AC_MSG_ERROR([--with-libz is incompatible with --enable-linuxkm.]) + fi if test "$ENABLED_IOPOOL" = "yes"; then AC_MSG_ERROR([--enable-iopool is incompatible with --enable-linuxkm.]) fi