configure.in
changeset 1854 2280e314a978
parent 1836 703f7268b5b1
child 1855 5ff2c01e475e
     1.1 --- a/configure.in	Sun May 21 02:50:05 2006 +0000
     1.2 +++ b/configure.in	Sun May 21 16:47:41 2006 +0000
     1.3 @@ -2270,8 +2270,13 @@
     1.4          fi
     1.5          # Set up files for the joystick library
     1.6          if test x$enable_joystick = xyes; then
     1.7 -            AC_DEFINE(SDL_JOYSTICK_WINMM)
     1.8 -            SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
     1.9 +            if test x$have_directx = xyes; then
    1.10 +                AC_DEFINE(SDL_JOYSTICK_DINPUT)
    1.11 +                SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_dxjoystick.c"
    1.12 +            else
    1.13 +                AC_DEFINE(SDL_JOYSTICK_WINMM)
    1.14 +                SOURCES="$SOURCES $srcdir/src/joystick/win32/SDL_mmjoystick.c"
    1.15 +            fi
    1.16              have_joystick=yes
    1.17          fi
    1.18          # Set up files for the cdrom library