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],