From a26a3676295689d15cb952cbec822021092e2901 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Wed, 27 Nov 2013 18:16:16 -0800 Subject: [PATCH] configure.ac: Check for miniupnpc headers, not just -lminiupnpc This protects against broken systems which have libminiupnpc.a or libminiupnpc.so installed but don't have the miniupnpc headers. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f6d870f332..43a622feab 100644 --- a/configure.ac +++ b/configure.ac @@ -342,7 +342,11 @@ BITCOIN_FIND_BDB48 dnl Check for libminiupnpc (optional) if test x$use_upnp != xno; then - AC_CHECK_LIB([miniupnpc], [main],, [have_miniupnpc=no]) + AC_CHECK_HEADERS( + [miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h], + [AC_CHECK_LIB([miniupnpc], [main],, [have_miniupnpc=no])], + [have_miniupnpc=no] + ) fi dnl Check for boost libs