diff -Naur SDL2-2.0.9/configure.in SDL2-2.0.9-patched/configure.in --- SDL2-2.0.9/configure.in 2018-11-03 15:06:14.850371202 +0100 +++ SDL2-2.0.9-patched/configure.in 2018-11-03 16:59:08.199290985 +0100 @@ -3819,6 +3819,12 @@ SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" have_timers=yes 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 other core UNIX files SOURCES="$SOURCES $srcdir/src/core/unix/*.c" # The iOS platform requires special setup.