--- nono/configure 2026/04/29 17:05:39 1.1.1.17 +++ nono/configure 2026/04/29 17:05:47 1.1.1.18 @@ -7914,7 +7914,13 @@ printf "%s\n" "$wxversion" >&6; } ;; esac - if test "$cross_compiling" = yes + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wx-config requires -Wl,-R" >&5 +printf %s "checking whether wx-config requires -Wl,-R... " >&6; } + old_CPPFLAGS="${CPPFLAGS}" + old_LIBS="${LIBS}" + CPPFLAGS="${CPPFLAGS} ${wxcppflags}" + LIBS="${LIBS} ${wxlibs}" + if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} @@ -7925,20 +7931,22 @@ else case e in #( /* end confdefs.h. */ #include - class MyApp : public wxApp - { - public: - bool OnInit() override { return true; } - }; - wxIMPLEMENT_APP(MyApp); + int main() { + wxInitializer init; + return !init; + } _ACEOF if ac_fn_cxx_try_run "$LINENO" then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } else case e in #( e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } wxlibs=`echo $wxlibs | sed -e 's/-L\([^ ]*\) /-L\1 -Wl,-R,\1 /'` ;; esac @@ -7948,6 +7956,8 @@ rm -f core *.core core.conftest.* gmon.o esac fi + CPPFLAGS="${old_CPPFLAGS}" + LIBS="${old_LIBS}" WITH_GUI=yes