summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index b7cdcdb..fabd1f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,7 +63,7 @@ dnl ==============================================================
AC_ARG_ENABLE(discovery,
AS_HELP_STRING([--enable-discovery],[compile with miniupnp to enable auto-discovery]),
[have_upnp=$enableval],
- [have_upnp=no])
+ [have_upnp=upnp])
AC_MSG_CHECKING([if compiling using external miniupnpc library])
UPNP_LIBS="\$(top_builddir)/src/upnp/libupnpc.a"
UPNP_CPPFLAGS="-I\$(top_srcdir)/src/upnp"
@@ -75,10 +75,10 @@ if test x$have_upnp = xyes; then
UPNP_CPPFLAGS="-I /usr/include/miniupnpc"
elif test x$have_upnp != xno; then
# compile from indicated dir
- AC_MSG_RESULT([yes, from $enableval])
+ AC_MSG_RESULT([yes, from $have_upnp])
AC_DEFINE(USE_UPNP,1,[Define if building auto-detect for UPNP devices via miniupnp])
- UPNP_LIBS="$enableval/libminiupnpc.a"
- UPNP_CPPFLAGS="-I$enableval"
+ UPNP_LIBS="$have_upnp/libminiupnpc.a"
+ UPNP_CPPFLAGS="-I$have_upnp"
else
AC_MSG_RESULT(no)
fi