configure
changeset 12631 779b63fc4acb
parent 12469 99d8b18acf8a
child 12639 1e4dd5933351
     1.1 --- a/configure	Fri Mar 15 14:08:30 2019 -0400
     1.2 +++ b/configure	Fri Mar 15 15:51:05 2019 -0400
     1.3 @@ -870,6 +870,8 @@
     1.4  enable_hidapi
     1.5  enable_clock_gettime
     1.6  enable_rpath
     1.7 +enable_backgrounding_signal
     1.8 +enable_foregrounding_signal
     1.9  enable_render_d3d
    1.10  '
    1.11        ac_precious_vars='build_alias
    1.12 @@ -1627,6 +1629,12 @@
    1.13    --enable-clock_gettime  use clock_gettime() instead of gettimeofday() on
    1.14                            UNIX [[default=yes]]
    1.15    --enable-rpath          use an rpath when linking SDL [[default=yes]]
    1.16 +  --enable-backgrounding-signal
    1.17 +                          number to use for magic backgrounding signal or 'no'
    1.18 +                          [[default=no]]
    1.19 +  --enable-foregrounding-signal
    1.20 +                          number to use for magic foregrounding signal or 'no'
    1.21 +                          [[default=no]]
    1.22    --enable-render-d3d     enable the Direct3D render driver [[default=yes]]
    1.23  
    1.24  Optional Packages:
    1.25 @@ -23947,8 +23955,37 @@
    1.26  
    1.27  }
    1.28  
    1.29 +CheckEventSignals()
    1.30 +{
    1.31 +    # Check whether --enable-backgrounding-signal was given.
    1.32 +if test "${enable_backgrounding_signal+set}" = set; then :
    1.33 +  enableval=$enable_backgrounding_signal;
    1.34 +else
    1.35 +  enable_backgrounding_signal=no
    1.36 +fi
    1.37 +
    1.38 +    if test x$enable_backgrounding_signal != xno; then
    1.39 +        EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
    1.40 +    fi
    1.41 +
    1.42 +    # Check whether --enable-foregrounding-signal was given.
    1.43 +if test "${enable_foregrounding_signal+set}" = set; then :
    1.44 +  enableval=$enable_foregrounding_signal;
    1.45 +else
    1.46 +  enable_foregrounding_signal=no
    1.47 +fi
    1.48 +
    1.49 +    if test x$enable_foregrounding_signal != xno; then
    1.50 +        EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
    1.51 +    fi
    1.52 +}
    1.53 +
    1.54 +
    1.55 +
    1.56  CheckWarnAll
    1.57  
    1.58 +CheckEventSignals
    1.59 +
    1.60  case "$host" in
    1.61      *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
    1.62          case "$host" in