configure.in
branchSDL-1.3
changeset 1661 281d3f4870e5
parent 1659 14717b52abc0
child 1692 75f2ace8511a
     1.1 --- a/configure.in	Sat May 20 04:35:58 2006 +0000
     1.2 +++ b/configure.in	Sun May 21 17:27:13 2006 +0000
     1.3 @@ -2287,8 +2287,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