From bb64d69e4aee39cd29bc50fe9d6c701578e62ce6 Mon Sep 17 00:00:00 2001 From: "mandyke@gmail.com" Date: Tue, 29 Jul 2014 05:42:52 +0000 Subject: Check that the system popt is linkable Fixes issue 31 git-svn-id: http://distcc.googlecode.com/svn/trunk@796 01de4be4-8c4a-0410-9132-4925637da917 --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d795edc..16a593f 100644 --- a/configure.ac +++ b/configure.ac @@ -345,6 +345,7 @@ then # If not explicitly requested, guess. # People might have the library but not the header, in which case we # still need to use the included copy. + AC_CHECK_LIB(popt, poptGetContext, , [with_included_popt=yes]) AC_CHECK_HEADER(popt.h, , [with_included_popt=yes]) fi AC_CACHE_SAVE @@ -357,9 +358,10 @@ then BUILD_POPT='$(popt_OBJS)' POPT_INCLUDES='-I"$(srcdir)/popt"' else - LIBS="$LIBS -lpopt" AC_MSG_RESULT(no) POPT_INCLUDES='' + AC_CHECK_LIB(popt, poptGetContext, , + AC_MSG_ERROR([Cannot find system libpopt])) fi AC_ARG_WITH(libiberty, -- cgit v1.2.1