diff --git a/configure b/configure index 93cd3aab3..9ef0404fd 100755 --- a/configure +++ b/configure @@ -25106,6 +25106,14 @@ $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h # have_haptic=yes # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback" #fi + # Set up files for the sensor library + if test x$enable_sensor = xyes; then + +$as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h + + SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m" + have_sensor=yes + fi # Set up files for the power library if test x$enable_power = xyes; then diff --git a/configure.ac b/configure.ac index e906d0d25..470e67545 100644 --- a/configure.ac +++ b/configure.ac @@ -3856,6 +3856,12 @@ AS_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau # have_haptic=yes # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback" #fi + # Set up files for the sensor library + if test x$enable_sensor = xyes; then + AC_DEFINE(SDL_SENSOR_COREMOTION, 1, [ ]) + SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m" + have_sensor=yes + fi # Set up files for the power library if test x$enable_power = xyes; then AC_DEFINE(SDL_POWER_UIKIT, 1, [ ])