From 7622a167fd8a8a0bd979cb242e7d2c68a9020daf Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Nov 2013 00:07:41 +0000 Subject: [PATCH] Don't perform any tests for joystick in configure under OS X. The test for setEventCallout() was added in r34541 to work around some problem with OS X 10.1 SDK. As we don't support this version of OS X since a very long time, it shouldn't be needed any longer. See #15692. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 40 +--------------------------------------- configure.in | 20 ++------------------ 2 files changed, 3 insertions(+), 57 deletions(-) diff --git a/configure b/configure index cb7aac94e2..7f36f67bb3 100755 --- a/configure +++ b/configure @@ -35509,47 +35509,9 @@ fi if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then wxUSE_JOYSTICK=no - if test "$TOOLKIT" = "MSW"; then + if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "OSX_COCOA" -o "$TOOLKIT" = "COCOA"; then wxUSE_JOYSTICK=yes - elif test "$TOOLKIT" = "OSX_COCOA" -o "$TOOLKIT" = "COCOA"; then - if test "$USE_DARWIN" = 1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking headers have declarations needed for joystick support" >&5 -$as_echo_n "checking headers have declarations needed for joystick support... " >&6; } - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - #include -int -main () -{ - IOHIDQueueInterface *qi = NULL; - IOHIDCallbackFunction cb = NULL; - qi->setEventCallout(NULL, cb, NULL, NULL); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - wxUSE_JOYSTICK=yes - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_JOYSTICK" >&5 -$as_echo "$wxUSE_JOYSTICK" >&6; } - fi - else for ac_header in linux/joystick.h do : diff --git a/configure.in b/configure.in index 1edc1388a5..4bef37677c 100644 --- a/configure.in +++ b/configure.in @@ -6326,26 +6326,10 @@ dnl --------------------------------------------------------------------------- if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then wxUSE_JOYSTICK=no - dnl under MSW we always have joystick support - if test "$TOOLKIT" = "MSW"; then + dnl under MSW and OS X we always have joystick support + if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "OSX_COCOA" -o "$TOOLKIT" = "COCOA"; then wxUSE_JOYSTICK=yes - dnl mac only available on darwin - elif test "$TOOLKIT" = "OSX_COCOA" -o "$TOOLKIT" = "COCOA"; then - if test "$USE_DARWIN" = 1; then - dnl check for a bug in the headers, some have bad setEventCallout - AC_MSG_CHECKING([headers have declarations needed for joystick support]) - AC_LANG_PUSH(C++) - AC_TRY_COMPILE( [ #include ], - [ IOHIDQueueInterface *qi = NULL; - IOHIDCallbackFunction cb = NULL; - qi->setEventCallout(NULL, cb, NULL, NULL); ], - [ wxUSE_JOYSTICK=yes ] - ) - AC_LANG_POP() - AC_MSG_RESULT($wxUSE_JOYSTICK) - fi - dnl joystick support is only for Linux 2.1.x or greater else dnl notice the dummy includes argument: without it, AC_CHECK_HEADER