Made LINUXEV required for haptic. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Tue, 12 Aug 2008 20:46:39 +0000
branchgsoc2008_force_feedback
changeset 2643 91fd5d3cb90e
parent 2642 b04679da6627
child 2644 ef0ba67154c1
Made LINUXEV required for haptic.
configure.in
--- a/configure.in	Mon Aug 11 15:29:28 2008 +0000
+++ b/configure.in	Tue Aug 12 20:46:39 2008 +0000
@@ -2186,13 +2186,15 @@
         fi
         # Set up files for the haptic library
         if test x$enable_haptic = xyes; then
-          case $ARCH in
-            linux)
-                AC_DEFINE(SDL_HAPTIC_LINUX)
-                SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
-                have_haptic=yes
-            ;;
-          esac
+           if test x$use_input_events = xyes; then
+             case $ARCH in
+               linux)
+                   AC_DEFINE(SDL_HAPTIC_LINUX)
+                   SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
+                   have_haptic=yes
+               ;;
+             esac
+           fi
         fi
         # Set up files for the cdrom library
         if test x$enable_cdrom = xyes; then