From e5a46b4fd5353956e1534669a133b66310ca137b Mon Sep 17 00:00:00 2001 From: Edgar Simo Date: Tue, 22 Jul 2008 10:58:27 +0000 Subject: [PATCH] Allow haptic subsystem to build on mac. --- configure.in | 7 +++++++ include/SDL_config.h.in | 1 + 2 files changed, 8 insertions(+) diff --git a/configure.in b/configure.in index 02e214180..f36d9157c 100644 --- a/configure.in +++ b/configure.in @@ -2472,6 +2472,13 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau 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) diff --git a/include/SDL_config.h.in b/include/SDL_config.h.in index 017f0bfac..ce05143e2 100644 --- a/include/SDL_config.h.in +++ b/include/SDL_config.h.in @@ -218,6 +218,7 @@ #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H #undef SDL_HAPTIC_DUMMY #undef SDL_HAPTIC_LINUX +#undef SDL_HAPTIC_IOKIT /* Enable various shared object loading systems */ #undef SDL_LOADSO_BEOS