From e85184dfba703d2543ecf1c673aca951e4686d85 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Tue, 10 Nov 2015 10:20:12 -0700 Subject: [PATCH] fix link-time error from default autoconf settings with enable bump and disable ecc --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6c5e5e93e9c..a9ea2eeaa54 100644 --- a/configure.ac +++ b/configure.ac @@ -2111,7 +2111,16 @@ AC_ARG_ENABLE([pwdbased], if test "$ENABLED_PWDBASED" = "no" then - if test "$ENABLED_OPENSSLEXTRA" = "yes" || test "$ENABLED_WEBSERVER" = "yes" + + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ + #if defined(OPENSSL_EXTRA) || defined(HAVE_WEBSERVER) + #pwdbased should be enabled + #endif + ]])], [ pwdbased_enable="yes" ], [ pwdbased_enable="no" ]) + + if test "$ENABLED_OPENSSLEXTRA" = "yes" \ + || test "$ENABLED_WEBSERVER" = "yes" \ + || test "$pwdbased_enable" = "yes" then # opensslextra and webserver needs pwdbased ENABLED_PWDBASED=yes