From 73442a7e035a7b7f8ed80261226989ae87edd3a9 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 7 Oct 2010 17:53:11 -0500 Subject: Only check for function if we are using libfetch We did this check unconditionally, rather than only doing it if we were actually going to build and run with libfetch. This is safe because we would have already bailed if libfetch was explicitly requested but not found. Signed-off-by: Dan McGee --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e709fc4c..37b26f25 100644 --- a/configure.ac +++ b/configure.ac @@ -158,9 +158,11 @@ AS_IF([test "x$with_fetch" != "xno"], fi], [-lcrypto -ldl]) # Check if libfetch supports connnection caching which we use - AC_CHECK_DECL(fetchConnectionCacheInit, , + AS_IF([test "x$ac_cv_lib_fetch_fetchParseURL" = "xyes"], + [AC_CHECK_DECL(fetchConnectionCacheInit, , AC_MSG_ERROR([libfetch must be version 2.28 or greater]), [#include ]) + ]) ], AC_MSG_RESULT(no)) AM_CONDITIONAL([HAVE_LIBFETCH], [test "x$ac_cv_lib_fetch_fetchParseURL" = "xyes"]) -- cgit v1.2.3-24-g4f1b