From 2998d3dcc4aba10ffc46160d5ba52feb22fb89a3 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 5 Oct 2017 11:41:25 +0900 Subject: [PATCH] Bug 1407468 - Only enable necko-wifi by default when toolkit is built. r=mshal --HG-- extra : rebase_source : 08694286f5f55242ae2581b7e69439d6ebc78ecb --- old-configure.in | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/old-configure.in b/old-configure.in index a5b69514a1c6..0b5ee5ae5c5c 100644 --- a/old-configure.in +++ b/old-configure.in @@ -4418,20 +4418,24 @@ dnl dnl option to disable necko's wifi scanner dnl -case "$OS_TARGET" in - Darwin) - if test -z "$MOZ_IOS"; then +if test "$MOZ_WIDGET_TOOLKIT"; then + + case "$OS_TARGET" in + Darwin) + if test -z "$MOZ_IOS"; then + NECKO_WIFI=1 + fi + ;; + DragonFly|FreeBSD|WINNT) NECKO_WIFI=1 - fi - ;; - DragonFly|FreeBSD|WINNT) - NECKO_WIFI=1 - ;; - Linux) - NECKO_WIFI=1 - NECKO_WIFI_DBUS=1 - ;; -esac + ;; + Linux) + NECKO_WIFI=1 + NECKO_WIFI_DBUS=1 + ;; + esac + +fi MOZ_ARG_DISABLE_BOOL(necko-wifi, [ --disable-necko-wifi Disable necko wifi scanner],