From 0966f84b7634ec87834d3b0201e6108ac606a6c5 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 3 Nov 2006 21:48:35 +0000 Subject: [PATCH] Use dummy joystick backend if subsystem is enabled but no better driver was found. Fixes Bugzilla #356 (and possibly Bugzilla #350). --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402219 --- configure.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index fd9952b67..17b80a245 100644 --- a/configure.in +++ b/configure.in @@ -2441,11 +2441,12 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau esac # Verify that we have all the platform specific files we need -if test x$have_joystick != xyes; then - if test x$enable_joystick = xyes; then - AC_DEFINE(SDL_JOYSTICK_DISABLED) - fi + +if test x$enable_joystick = xyes; then + if test x$have_joystick != xyes; then + # Wants joystick subsystem, but doesn't have a platform-specific backend... SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" + fi fi if test x$have_cdrom != xyes; then if test x$enable_cdrom = xyes; then