From 0d711036d936076f05e2c93a9076cc441f3eb9f9 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 8 Jul 2017 18:36:03 +0200 Subject: [PATCH] build: Fix check for lopsub. If the lopsub library is not installed, HAVE_LOPSUB should be set to "no". The current code in configure.ac gets this wrong, causing the configure script to succeed even if the library is not installed. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a589613b..ee1c3d82 100644 --- a/configure.ac +++ b/configure.ac @@ -76,7 +76,7 @@ STASH_FLAGS LIB_ARG_WITH([lopsub], [-llopsub]) HAVE_LOPSUB=yes AC_CHECK_HEADER(lopsub.h, [], [HAVE_LOPSUB=no]) -AC_CHECK_LIB([lopsub], [lls_merge], [], [HAVE_LOPSUB=yes]) +AC_CHECK_LIB([lopsub], [lls_merge], [], [HAVE_LOPSUB=no]) if test $HAVE_LOPSUB = no; then AC_MSG_ERROR([ The lopsub library is required to build this software, but the above checks indicate it is not installed on your system. -- 2.39.2