configure
changeset 12130 24142c5073a4
parent 12088 399cc39583cc
child 12131 9601849b3079
     1.1 --- a/configure	Tue Aug 21 11:59:13 2018 -0700
     1.2 +++ b/configure	Tue Aug 21 12:11:34 2018 -0700
     1.3 @@ -785,6 +785,7 @@
     1.4  enable_events
     1.5  enable_joystick
     1.6  enable_haptic
     1.7 +enable_sensor
     1.8  enable_power
     1.9  enable_filesystem
    1.10  enable_threads
    1.11 @@ -1523,6 +1524,7 @@
    1.12    --enable-joystick       Enable the joystick subsystem [[default=yes]]
    1.13    --enable-haptic         Enable the haptic (force feedback) subsystem
    1.14                            [[default=yes]]
    1.15 +  --enable-sensor         Enable the sensor subsystem [[default=yes]]
    1.16    --enable-power          Enable the power subsystem [[default=yes]]
    1.17    --enable-filesystem     Enable the filesystem subsystem [[default=yes]]
    1.18    --enable-threads        Enable the threading subsystem [[default=yes]]
    1.19 @@ -16884,6 +16886,7 @@
    1.20  #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
    1.21  SOURCES="$SOURCES $srcdir/src/render/*.c"
    1.22  SOURCES="$SOURCES $srcdir/src/render/*/*.c"
    1.23 +SOURCES="$SOURCES $srcdir/src/sensor/*.c"
    1.24  SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
    1.25  SOURCES="$SOURCES $srcdir/src/thread/*.c"
    1.26  SOURCES="$SOURCES $srcdir/src/timer/*.c"
    1.27 @@ -16989,6 +16992,20 @@
    1.28  else
    1.29      SUMMARY_modules="${SUMMARY_modules} haptic"
    1.30  fi
    1.31 +# Check whether --enable-sensor was given.
    1.32 +if test "${enable_sensor+set}" = set; then :
    1.33 +  enableval=$enable_sensor;
    1.34 +else
    1.35 +  enable_sensor=yes
    1.36 +fi
    1.37 +
    1.38 +if test x$enable_sensor != xyes; then
    1.39 +
    1.40 +$as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
    1.41 +
    1.42 +else
    1.43 +    SUMMARY_modules="${SUMMARY_modules} sensor"
    1.44 +fi
    1.45  # Check whether --enable-power was given.
    1.46  if test "${enable_power+set}" = set; then :
    1.47    enableval=$enable_power;