diff options
| author | Josh Triplett <[email protected]> | 2013-11-27 18:16:16 -0800 |
|---|---|---|
| committer | Josh Triplett <[email protected]> | 2013-11-27 18:16:16 -0800 |
| commit | a26a3676295689d15cb952cbec822021092e2901 (patch) | |
| tree | e075e407def6fc5dc5f1180cc2ecabb74ef43a36 | |
| parent | autogen.sh: Stop passing --verbose to autoreconf (diff) | |
| download | discoin-a26a3676295689d15cb952cbec822021092e2901.tar.xz discoin-a26a3676295689d15cb952cbec822021092e2901.zip | |
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.
| -rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f6d870f33..43a622fea 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 |