Skip to content

Commit 2b24879

Browse files
committed
build: remove --enable-upnp-default from configure
1 parent 02f5a5e commit 2b24879

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

configure.ac

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,6 @@ AC_ARG_WITH([miniupnpc],
163163
[use_upnp=$withval],
164164
[use_upnp=auto])
165165

166-
AC_ARG_ENABLE([upnp-default],
167-
[AS_HELP_STRING([--enable-upnp-default],
168-
[if UPNP is enabled, turn it on at startup (default is no)])],
169-
[use_upnp_default=$enableval],
170-
[use_upnp_default=no])
171-
172166
AC_ARG_WITH([natpmp],
173167
[AS_HELP_STRING([--with-natpmp],
174168
[enable NAT-PMP (default is yes if libnatpmp is found)])],
@@ -1759,15 +1753,8 @@ if test "$have_miniupnpc" = "no"; then
17591753
else
17601754
if test "$use_upnp" != "no"; then
17611755
AC_MSG_RESULT([yes])
1762-
AC_MSG_CHECKING([whether to build with UPnP enabled by default])
17631756
use_upnp=yes
1764-
upnp_setting=0
1765-
if test "$use_upnp_default" != "no"; then
1766-
use_upnp_default=yes
1767-
upnp_setting=1
1768-
fi
1769-
AC_MSG_RESULT([$use_upnp_default])
1770-
AC_DEFINE_UNQUOTED([USE_UPNP],[$upnp_setting],[UPnP support not compiled if undefined, otherwise value (0 or 1) determines default state])
1757+
AC_DEFINE([USE_UPNP], [1], [Define to 1 if UPnP support should be compiled in.])
17711758
if test "$TARGET_OS" = "windows"; then
17721759
MINIUPNPC_CPPFLAGS="$MINIUPNPC_CPPFLAGS -DSTATICLIB -DMINIUPNP_STATICLIB"
17731760
fi

doc/build-unix.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ executables, which are based on BerkeleyDB 4.8. If you do not care about wallet
7272

7373
To build Bitcoin Core without wallet, see [*Disable-wallet mode*](#disable-wallet-mode)
7474

75-
Optional port mapping libraries (see: `--with-miniupnpc`, `--enable-upnp-default`, and `--with-natpmp`):
75+
Optional port mapping libraries (see: `--with-miniupnpc` and `--with-natpmp`):
7676

7777
sudo apt install libminiupnpc-dev libnatpmp-dev
7878

@@ -133,7 +133,7 @@ pass `--with-incompatible-bdb` to configure. Otherwise, you can build Berkeley D
133133

134134
To build Bitcoin Core without wallet, see [*Disable-wallet mode*](#disable-wallet-mode)
135135

136-
Optional port mapping libraries (see: `--with-miniupnpc`, `--enable-upnp-default`, and `--with-natpmp`):
136+
Optional port mapping libraries (see: `--with-miniupnpc` and `--with-natpmp`):
137137

138138
sudo dnf install miniupnpc-devel libnatpmp-devel
139139

@@ -176,11 +176,7 @@ miniupnpc
176176

177177
[miniupnpc](https://miniupnp.tuxfamily.org) may be used for UPnP port mapping. It can be downloaded from [here](
178178
https://miniupnp.tuxfamily.org/files/). UPnP support is compiled in and
179-
turned off by default. See the configure options for UPnP behavior desired:
180-
181-
--without-miniupnpc No UPnP support, miniupnp not required
182-
--disable-upnp-default (the default) UPnP support turned off by default at runtime
183-
--enable-upnp-default UPnP support turned on by default at runtime
179+
turned off by default.
184180

185181
libnatpmp
186182
---------

0 commit comments

Comments
 (0)