fixed broken test for wxUSE_JOYSTICK in configure.

added joytest sample to samples_dist and samples/configure.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2000-03-19 23:04:18 +00:00
parent 281b0186b8
commit ceded8b925
5 changed files with 18 additions and 8 deletions

View File

@@ -3057,11 +3057,11 @@ dnl ---------------------------------------------------------------------------
dnl under MSW we always have joystick support
if test "$TOOLKIT" != "MSW"; then
if test "$wxUSE_JOYSTICK" = 1; then
if test "$wxUSE_JOYSTICK" = "yes"; then
dnl joystick support is only for Linux 2.1.x or greater
AC_CHECK_HEADERS(linux/joystick.h)
if test "$ac_cv_header_linux_joystick_h" != "yes"; then
wxUSE_JOYSTICK=0
wxUSE_JOYSTICK=no
AC_MSG_WARN(Joystick not supported yb this system, disabled)
fi
fi
@@ -3069,7 +3069,7 @@ fi
fi
dnl if !MSW
if test "$wxUSE_JOYSTICK" = 1; then
if test "$wxUSE_JOYSTICK" = "yes"; then
AC_DEFINE(wxUSE_JOYSTICK)
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
fi