summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4e2599d..00f7d6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,19 @@ AS_CASE([$host],
[]
)
+AC_ARG_WITH([miniupnpc],
+ [AS_HELP_STRING([--without-miniupnpc],
+ [disable support for miniupnpc])],
+ [],
+ [with_miniupnpc=yes])
+
+AS_IF([test "x$with_miniupnpc" != xno],
+ [AC_CHECK_LIB([miniupnpc], [main],
+ [],
+ [AC_MSG_FAILURE(
+ [miniupnpc test failed (--without-miniupnpc to disable)])],
+ [])])
+
# Checks for common libraries, required by both pica-node and pica-client
AC_SEARCH_LIBS([dlopen], [dl])
AC_CHECK_LIB([crypto], [RAND_add],[],[AC_MSG_ERROR(["libcrypto from OpenSSL package not found"])],[ -lz ])