configure.in
branchgsoc2008_force_feedback
changeset 2545 0e63e7e4a986
parent 2509 3b54b3a97046
child 2567 d551e29f086b
--- a/configure.in	Tue Jul 22 10:51:24 2008 +0000
+++ b/configure.in	Tue Jul 22 10:58:27 2008 +0000
@@ -2472,6 +2472,13 @@
             SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
             have_joystick=yes
         fi
+        # Set up files for the haptic library
+        if test x$enable_haptic = xyes; then
+            AC_DEFINE(SDL_HAPTIC_IOKIT)
+            SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
+            have_haptic=yes
+            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
+        fi
         # Set up files for the cdrom library
         if test x$enable_cdrom = xyes; then
             AC_DEFINE(SDL_CDROM_MACOSX)