From f62d6bf6fd456056028921699e5589f8bec04698 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 13 Mar 2016 16:03:28 +0100 Subject: [PATCH] Don't check MSW-specific configure options unless targeting MSW This doesn't really change much as these options are not used anyhow, but seems tidier. --- configure | 2 ++ configure.in | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configure b/configure index dbe140008e..3be0ac29e5 100755 --- a/configure +++ b/configure @@ -7745,6 +7745,7 @@ fi eval "$wx_cv_use_threads" +if test "$wxUSE_MSW" = 1 ; then enablestring= defaultval= @@ -7803,6 +7804,7 @@ fi eval "$wx_cv_use_regkey" +fi if test "$wxUSE_GUI" = "yes"; then diff --git a/configure.in b/configure.in index 41d34cdcc2..d9021f9e5d 100644 --- a/configure.in +++ b/configure.in @@ -743,8 +743,10 @@ WX_ARG_FEATURE(protocol_file, [ --enable-protocol-file FILE support in wxProto WX_ARG_FEATURE(threads, [ --enable-threads use threads], wxUSE_THREADS) +if test "$wxUSE_MSW" = 1 ; then WX_ARG_ENABLE(iniconf, [ --enable-iniconf use wxIniConfig (Win32 only)], wxUSE_INICONF) WX_ARG_FEATURE(regkey, [ --enable-regkey use wxRegKey class (Win32 only)], wxUSE_REGKEY) +fi if test "$wxUSE_GUI" = "yes"; then