Merge pull request #5964 from orbea/miniupnpc

qb: Disable all miniupnpc support with --disable-miniupnpc.
This commit is contained in:
Twinaphex 2017-12-27 05:55:50 +01:00 committed by GitHub
commit 3f5aa82853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,10 +195,12 @@ if [ "$HAVE_NETWORKING" = 'yes' ]; then
HAVE_NETWORK_CMD=yes
HAVE_NETWORKGAMEPAD=yes
if [ "$HAVE_BUILTINMINIUPNPC" = "yes" ]; then
if [ "$HAVE_MINIUPNPC" = 'no' ]; then
HAVE_BUILTINMINIUPNPC=no
elif [ "$HAVE_BUILTINMINIUPNPC" = 'yes' ]; then
HAVE_MINIUPNPC=yes
else
check_lib '' MINIUPNPC "-lminiupnpc"
check_lib '' MINIUPNPC '-lminiupnpc'
fi
else
die : 'Warning: All networking features have been disabled.'