summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormandyke@gmail.com <mandyke@gmail.com@01de4be4-8c4a-0410-9132-4925637da917>2014-07-29 05:42:52 +0000
committermandyke@gmail.com <mandyke@gmail.com@01de4be4-8c4a-0410-9132-4925637da917>2014-07-29 05:42:52 +0000
commitbb64d69e4aee39cd29bc50fe9d6c701578e62ce6 (patch)
treea0041e53ee1d823f64032f03b33f9b7f23128e5e
parent09641d0032b54aa21e3648f3c0d718b0c6ef80d5 (diff)
downloaddistcc-master.tar.gz
Check that the system popt is linkableHEADmaster
Fixes issue 31 git-svn-id: http://distcc.googlecode.com/svn/trunk@796 01de4be4-8c4a-0410-9132-4925637da917
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
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,