diff options
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
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 <fetch.h>]) + ]) ], AC_MSG_RESULT(no)) AM_CONDITIONAL([HAVE_LIBFETCH], [test "x$ac_cv_lib_fetch_fetchParseURL" = "xyes"]) |