From dcc77ba5ffdf158641cd396ed3f3afdf4cdd101d Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Wed, 26 Jul 2017 11:15:35 -0400 Subject: [PATCH] [5337] Improved syntax and error message in test for enable-static test --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 2469a09be9..6b4c21cf89 100644 --- a/configure.ac +++ b/configure.ac @@ -441,15 +441,15 @@ if test $enable_shared != "no" -a "X$GXX" = "Xyes"; then fi # Look for glib static libs if they're trying to do static builds -if test $enable_static = yes; then +if test $enable_static != "no"; then CXX_SAVED=$CXX CXX="$CXX -static" AC_LINK_IFELSE( - [AC_LANG_PROGRAM([#include ],[sqrt(-1.0);])], + [AC_LANG_PROGRAM([#include ],[(void)sqrt(-1.0);])], [AC_MSG_RESULT([checking for static glib libraries... yes])], [AC_MSG_RESULT([checking for static glib libraries... no]) - AC_MSG_ERROR([Static building will not work. You appear to be missing glib static libraries. Check config.log for details.])]) + AC_MSG_ERROR([Building with --enable-static does not work. You appear to be missing glib static libraries. Check config.log for details.])]) CXX=$CXX_SAVED fi -- 2.47.2