From: Vadim Zeitlin Date: Mon, 6 Nov 2006 23:57:43 +0000 (+0000) Subject: disable joystick for wxMGL, it's not implemented there X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b6814e24ef69758fc8a6ad61423ae9fc9395e7f1?ds=inline disable joystick for wxMGL, it's not implemented there git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure b/configure index 8e5b3fde2d..36630e0b3a 100755 --- a/configure +++ b/configure @@ -45477,6 +45477,7 @@ echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 fi else + if test "$wxUSE_MGL" != "1"; then for ac_header in linux/joystick.h do @@ -45626,6 +45627,7 @@ fi done + fi fi if test "$wxUSE_JOYSTICK" = "yes"; then diff --git a/configure.in b/configure.in index 0616e8e9d8..94cc9304a5 100644 --- a/configure.in +++ b/configure.in @@ -6313,7 +6313,10 @@ if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then dnl joystick support is only for Linux 2.1.x or greater else - AC_CHECK_HEADERS(linux/joystick.h, wxUSE_JOYSTICK=yes) + dnl wxJoystick not supported by wxMGL at all + if test "$wxUSE_MGL" != "1"; then + AC_CHECK_HEADERS(linux/joystick.h, wxUSE_JOYSTICK=yes) + fi fi if test "$wxUSE_JOYSTICK" = "yes"; then