autoconf script tweaks
authorEdward Rudd <urkle@outoforder.cc>
Sat, 25 Jan 2014 15:05:44 -0500
changeset 81245226058345bf
parent 8123 d7b7ec662687
child 8125 5e84699eb623
autoconf script tweaks

- fix up chmodding sdl2-config
- remove duplicate enable_atomic section
- add pretty summary of what was found/enabled
configure
configure.in
     1.1 --- a/configure	Fri Jan 24 09:54:04 2014 -0300
     1.2 +++ b/configure	Sat Jan 25 15:05:44 2014 -0500
     1.3 @@ -1507,7 +1507,6 @@
     1.4    --enable-loadso         Enable the shared object loading subsystem
     1.5                            [[default=yes]]
     1.6    --enable-cpuinfo        Enable the cpuinfo subsystem [[default=yes]]
     1.7 -  --enable-atomic         Enable the atomic operations [[default=yes]]
     1.8    --enable-assembly       Enable assembly routines [[default=yes]]
     1.9    --enable-ssemath        Allow GCC to use SSE floating point math
    1.10                            [[default=no]]
    1.11 @@ -16821,6 +16820,8 @@
    1.12  
    1.13  $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
    1.14  
    1.15 +else
    1.16 +    SUMMARY_modules="${SUMMARY_modules} atomic"
    1.17  fi
    1.18  # Check whether --enable-audio was given.
    1.19  if test "${enable_audio+set}" = set; then :
    1.20 @@ -16833,6 +16834,8 @@
    1.21  
    1.22  $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
    1.23  
    1.24 +else
    1.25 +    SUMMARY_modules="${SUMMARY_modules} audio"
    1.26  fi
    1.27  # Check whether --enable-video was given.
    1.28  if test "${enable_video+set}" = set; then :
    1.29 @@ -16845,6 +16848,8 @@
    1.30  
    1.31  $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
    1.32  
    1.33 +else
    1.34 +    SUMMARY_modules="${SUMMARY_modules} video"
    1.35  fi
    1.36  # Check whether --enable-render was given.
    1.37  if test "${enable_render+set}" = set; then :
    1.38 @@ -16857,6 +16862,8 @@
    1.39  
    1.40  $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
    1.41  
    1.42 +else
    1.43 +    SUMMARY_modules="${SUMMARY_modules} render"
    1.44  fi
    1.45  # Check whether --enable-events was given.
    1.46  if test "${enable_events+set}" = set; then :
    1.47 @@ -16869,6 +16876,8 @@
    1.48  
    1.49  $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
    1.50  
    1.51 +else
    1.52 +    SUMMARY_modules="${SUMMARY_modules} events"
    1.53  fi
    1.54  # Check whether --enable-joystick was given.
    1.55  if test "${enable_joystick+set}" = set; then :
    1.56 @@ -16881,6 +16890,8 @@
    1.57  
    1.58  $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
    1.59  
    1.60 +else
    1.61 +    SUMMARY_modules="${SUMMARY_modules} joystick"
    1.62  fi
    1.63  # Check whether --enable-haptic was given.
    1.64  if test "${enable_haptic+set}" = set; then :
    1.65 @@ -16893,6 +16904,8 @@
    1.66  
    1.67  $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
    1.68  
    1.69 +else
    1.70 +    SUMMARY_modules="${SUMMARY_modules} haptic"
    1.71  fi
    1.72  # Check whether --enable-power was given.
    1.73  if test "${enable_power+set}" = set; then :
    1.74 @@ -16905,6 +16918,8 @@
    1.75  
    1.76  $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
    1.77  
    1.78 +else
    1.79 +    SUMMARY_modules="${SUMMARY_modules} power"
    1.80  fi
    1.81  # Check whether --enable-filesystem was given.
    1.82  if test "${enable_filesystem+set}" = set; then :
    1.83 @@ -16917,6 +16932,8 @@
    1.84  
    1.85  $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
    1.86  
    1.87 +else
    1.88 +    SUMMARY_modules="${SUMMARY_modules} filesystem"
    1.89  fi
    1.90  # Check whether --enable-threads was given.
    1.91  if test "${enable_threads+set}" = set; then :
    1.92 @@ -16929,6 +16946,8 @@
    1.93  
    1.94  $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
    1.95  
    1.96 +else
    1.97 +    SUMMARY_modules="${SUMMARY_modules} threads"
    1.98  fi
    1.99  # Check whether --enable-timers was given.
   1.100  if test "${enable_timers+set}" = set; then :
   1.101 @@ -16941,6 +16960,8 @@
   1.102  
   1.103  $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
   1.104  
   1.105 +else
   1.106 +    SUMMARY_modules="${SUMMARY_modules} timers"
   1.107  fi
   1.108  # Check whether --enable-file was given.
   1.109  if test "${enable_file+set}" = set; then :
   1.110 @@ -16953,6 +16974,8 @@
   1.111  
   1.112  $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
   1.113  
   1.114 +else
   1.115 +    SUMMARY_modules="${SUMMARY_modules} file"
   1.116  fi
   1.117  # Check whether --enable-loadso was given.
   1.118  if test "${enable_loadso+set}" = set; then :
   1.119 @@ -16965,6 +16988,8 @@
   1.120  
   1.121  $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
   1.122  
   1.123 +else
   1.124 +    SUMMARY_modules="${SUMMARY_modules} loadso"
   1.125  fi
   1.126  # Check whether --enable-cpuinfo was given.
   1.127  if test "${enable_cpuinfo+set}" = set; then :
   1.128 @@ -16977,18 +17002,8 @@
   1.129  
   1.130  $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
   1.131  
   1.132 -fi
   1.133 -# Check whether --enable-atomic was given.
   1.134 -if test "${enable_atomic+set}" = set; then :
   1.135 -  enableval=$enable_atomic;
   1.136 -else
   1.137 -  enable_atomic=yes
   1.138 -fi
   1.139 -
   1.140 -if test x$enable_atomic != xyes; then
   1.141 -
   1.142 -$as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
   1.143 -
   1.144 +else
   1.145 +    SUMMARY_modules="${SUMMARY_modules} cpuinfo"
   1.146  fi
   1.147  # Check whether --enable-assembly was given.
   1.148  if test "${enable_assembly+set}" = set; then :
   1.149 @@ -16998,6 +17013,8 @@
   1.150  fi
   1.151  
   1.152  if test x$enable_assembly = xyes; then
   1.153 +    SUMMARY_modules="${SUMMARY_modules} assembly"
   1.154 +
   1.155  
   1.156  $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
   1.157  
   1.158 @@ -17083,6 +17100,7 @@
   1.159  
   1.160          if test x$have_gcc_mmx = xyes; then
   1.161              EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
   1.162 +            SUMMARY_math="${SUMMARY_math} mmx"
   1.163          fi
   1.164      fi
   1.165  
   1.166 @@ -17133,6 +17151,7 @@
   1.167  
   1.168          if test x$have_gcc_3dnow = xyes; then
   1.169              EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
   1.170 +            SUMMARY_math="${SUMMARY_math} 3dnow"
   1.171          fi
   1.172      fi
   1.173  
   1.174 @@ -17189,6 +17208,7 @@
   1.175  
   1.176          if test x$have_gcc_sse = xyes; then
   1.177              EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
   1.178 +            SUMMARY_math="${SUMMARY_math} sse"
   1.179          fi
   1.180      fi
   1.181  
   1.182 @@ -17245,6 +17265,7 @@
   1.183  
   1.184          if test x$have_gcc_sse2 = xyes; then
   1.185              EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
   1.186 +            SUMMARY_math="${SUMMARY_math} sse2"
   1.187          fi
   1.188      fi
   1.189  
   1.190 @@ -17393,6 +17414,7 @@
   1.191  
   1.192              fi
   1.193              EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
   1.194 +            SUMMARY_math="${SUMMARY_math} altivec"
   1.195          fi
   1.196      fi
   1.197  fi
   1.198 @@ -17474,6 +17496,7 @@
   1.199          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
   1.200  $as_echo "$have_oss" >&6; }
   1.201          if test x$have_oss = xyes; then
   1.202 +            SUMMARY_audio="${SUMMARY_audio} oss"
   1.203  
   1.204  $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
   1.205  
   1.206 @@ -17738,8 +17761,10 @@
   1.207  #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
   1.208  _ACEOF
   1.209  
   1.210 +                SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
   1.211              else
   1.212                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
   1.213 +                SUMMARY_audio="${SUMMARY_audio} alsa"
   1.214              fi
   1.215              have_audio=yes
   1.216          fi
   1.217 @@ -18021,8 +18046,10 @@
   1.218  #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
   1.219  _ACEOF
   1.220  
   1.221 +                SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
   1.222              else
   1.223                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
   1.224 +                SUMMARY_audio="${SUMMARY_audio} esd"
   1.225              fi
   1.226              have_audio=yes
   1.227          fi
   1.228 @@ -18124,6 +18151,7 @@
   1.229  #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
   1.230  _ACEOF
   1.231  
   1.232 +                SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
   1.233  
   1.234                  case "$host" in
   1.235                      # On Solaris, pulseaudio must be linked deferred explicitly
   1.236 @@ -18134,6 +18162,7 @@
   1.237                  esac
   1.238              else
   1.239                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
   1.240 +                SUMMARY_audio="${SUMMARY_audio} pulse"
   1.241              fi
   1.242              have_audio=yes
   1.243          fi
   1.244 @@ -18252,8 +18281,10 @@
   1.245  #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
   1.246  _ACEOF
   1.247  
   1.248 +                    SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
   1.249                  else
   1.250                      EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
   1.251 +                    SUMMARY_audio="${SUMMARY_audio} arts"
   1.252                  fi
   1.253                  have_audio=yes
   1.254              fi
   1.255 @@ -18359,8 +18390,10 @@
   1.256  #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
   1.257  _ACEOF
   1.258  
   1.259 +                SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
   1.260              else
   1.261                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
   1.262 +                SUMMARY_audio="${SUMMARY_audio} nas"
   1.263              fi
   1.264  
   1.265  
   1.266 @@ -18465,8 +18498,10 @@
   1.267  #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
   1.268  _ACEOF
   1.269  
   1.270 +                SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
   1.271              else
   1.272                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
   1.273 +                SUMMARY_audio="${SUMMARY_audio} sndio"
   1.274              fi
   1.275  
   1.276  
   1.277 @@ -18493,6 +18528,7 @@
   1.278  $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
   1.279  
   1.280          SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
   1.281 +        SUMMARY_audio="${SUMMARY_audio} disk"
   1.282      fi
   1.283  }
   1.284  
   1.285 @@ -18510,6 +18546,7 @@
   1.286  $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
   1.287  
   1.288          SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
   1.289 +        SUMMARY_audio="${SUMMARY_audio} dummy"
   1.290      fi
   1.291  }
   1.292  
   1.293 @@ -18785,9 +18822,11 @@
   1.294  #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
   1.295  _ACEOF
   1.296  
   1.297 +                SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
   1.298              else
   1.299                  enable_wayland_shared=no
   1.300                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
   1.301 +                SUMMARY_video="${SUMMARY_video} wayland"
   1.302              fi
   1.303              have_video=yes
   1.304          fi
   1.305 @@ -19601,9 +19640,11 @@
   1.306  #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
   1.307  _ACEOF
   1.308  
   1.309 +                SUMMARY_video="${SUMMARY_video} x11(dynamic)"
   1.310              else
   1.311                  enable_x11_shared=no
   1.312                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
   1.313 +                SUMMARY_video="${SUMMARY_video} x11"
   1.314              fi
   1.315              have_video=yes
   1.316  
   1.317 @@ -19825,6 +19866,7 @@
   1.318  
   1.319  $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
   1.320  
   1.321 +                SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
   1.322              fi
   1.323              # Check whether --enable-video-x11-xinerama was given.
   1.324  if test "${enable_video_x11_xinerama+set}" = set; then :
   1.325 @@ -19906,6 +19948,7 @@
   1.326  
   1.327  $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
   1.328  
   1.329 +                SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
   1.330              fi
   1.331              # Check whether --enable-video-x11-xinput was given.
   1.332  if test "${enable_video_x11_xinput+set}" = set; then :
   1.333 @@ -19984,6 +20027,7 @@
   1.334                  fi
   1.335              fi
   1.336              if test x$definitely_enable_video_x11_xinput = xyes; then
   1.337 +                SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
   1.338  
   1.339  $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
   1.340  
   1.341 @@ -20018,6 +20062,7 @@
   1.342              	have_xinput2_multitouch=yes
   1.343              	$as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
   1.344  
   1.345 +                SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
   1.346  
   1.347  fi
   1.348  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1.349 @@ -20104,6 +20149,7 @@
   1.350  
   1.351  $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
   1.352  
   1.353 +                SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
   1.354              fi
   1.355              # Check whether --enable-video-x11-scrnsaver was given.
   1.356  if test "${enable_video_x11_scrnsaver+set}" = set; then :
   1.357 @@ -20184,6 +20230,7 @@
   1.358  
   1.359  $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
   1.360  
   1.361 +                SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
   1.362              fi
   1.363              # Check whether --enable-video-x11-xshape was given.
   1.364  if test "${enable_video_x11_xshape+set}" = set; then :
   1.365 @@ -20207,6 +20254,7 @@
   1.366  
   1.367  $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
   1.368  
   1.369 +                    SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
   1.370                  fi
   1.371              fi
   1.372              # Check whether --enable-video-x11-vm was given.
   1.373 @@ -20289,6 +20337,7 @@
   1.374  
   1.375  $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
   1.376  
   1.377 +                SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
   1.378              fi
   1.379          fi
   1.380      fi
   1.381 @@ -20302,6 +20351,7 @@
   1.382  
   1.383          SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
   1.384          have_video=yes
   1.385 +        SUMMARY_video="${SUMMARY_video} haiku"
   1.386      fi
   1.387  }
   1.388  
   1.389 @@ -20348,6 +20398,7 @@
   1.390  $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
   1.391  
   1.392              SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
   1.393 +            SUMMARY_video="${SUMMARY_video} cocoa"
   1.394              have_video=yes
   1.395          fi
   1.396      fi
   1.397 @@ -20534,8 +20585,10 @@
   1.398  #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
   1.399  _ACEOF
   1.400  
   1.401 +                SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
   1.402              else
   1.403                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
   1.404 +                SUMMARY_video="${SUMMARY_video} directfb"
   1.405              fi
   1.406              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
   1.407  $as_echo "$directfb_shared" >&6; }
   1.408 @@ -20641,8 +20694,10 @@
   1.409  _ACEOF
   1.410  
   1.411                  fusionsound_shared=yes
   1.412 +                SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
   1.413              else
   1.414                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
   1.415 +                SUMMARY_audio="${SUMMARY_audio} fusionsound"
   1.416              fi
   1.417              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
   1.418  $as_echo "$fusionsound_shared" >&6; }
   1.419 @@ -20667,6 +20722,7 @@
   1.420  
   1.421          SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
   1.422          have_video=yes
   1.423 +        SUMMARY_video="${SUMMARY_video} dummy"
   1.424      fi
   1.425  }
   1.426  
   1.427 @@ -20717,6 +20773,7 @@
   1.428  
   1.429  $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
   1.430  
   1.431 +            SUMMARY_video="${SUMMARY_video} opengl"
   1.432          fi
   1.433      fi
   1.434  }
   1.435 @@ -20796,6 +20853,7 @@
   1.436  
   1.437  $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
   1.438  
   1.439 +            SUMMARY_video="${SUMMARY_video} opengl_es1"
   1.440          fi
   1.441  
   1.442          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
   1.443 @@ -20831,6 +20889,7 @@
   1.444  
   1.445  $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
   1.446  
   1.447 +            SUMMARY_video="${SUMMARY_video} opengl_es2"
   1.448          fi
   1.449      fi
   1.450  }
   1.451 @@ -20847,6 +20906,7 @@
   1.452  
   1.453  $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
   1.454  
   1.455 +        SUMMARY_video="${SUMMARY_video} opengl"
   1.456      fi
   1.457  }
   1.458  
   1.459 @@ -20886,6 +20946,7 @@
   1.460  
   1.461  $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
   1.462  
   1.463 +            SUMMARY_video="${SUMMARY_video} opengl_es1"
   1.464          fi
   1.465  
   1.466          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
   1.467 @@ -20924,6 +20985,7 @@
   1.468  
   1.469  $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
   1.470  
   1.471 +            SUMMARY_video="${SUMMARY_video} opengl_es2"
   1.472          fi
   1.473      fi
   1.474  }
   1.475 @@ -20941,6 +21003,7 @@
   1.476  $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
   1.477  
   1.478          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
   1.479 +        SUMMARY_video="${SUMMARY_video} opengl"
   1.480      fi
   1.481  }
   1.482  
   1.483 @@ -20956,6 +21019,7 @@
   1.484  
   1.485  $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
   1.486  
   1.487 +        SUMMARY_video="${SUMMARY_video} opengl"
   1.488          case "$host" in
   1.489              *-*-darwin*)
   1.490                  if test x$enable_video_cocoa = xyes; then
   1.491 @@ -20999,6 +21063,7 @@
   1.492  
   1.493  $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
   1.494  
   1.495 +            SUMMARY_input="${SUMMARY_input} linuxev"
   1.496          fi
   1.497  }
   1.498  
   1.499 @@ -21038,6 +21103,7 @@
   1.500  
   1.501  $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
   1.502  
   1.503 +        SUMMARY_input="${SUMMARY_input} linuxkd"
   1.504      fi
   1.505  }
   1.506  
   1.507 @@ -21181,6 +21247,7 @@
   1.508  $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
   1.509  
   1.510              EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
   1.511 +            SUMMARY_input="${SUMMARY_input} ts"
   1.512          fi
   1.513      fi
   1.514  }
   1.515 @@ -21704,6 +21771,9 @@
   1.516  
   1.517  
   1.518  
   1.519 +        SUMMARY_video="${SUMMARY_video} directx"
   1.520 +        SUMMARY_audio="${SUMMARY_audio} directx"
   1.521 +
   1.522          # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
   1.523          # FIXME:  ...so force it off for now.
   1.524          case "$host" in
   1.525 @@ -23024,6 +23094,37 @@
   1.526  
   1.527  ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
   1.528  
   1.529 +ac_config_commands="$ac_config_commands sdl2_config"
   1.530 +
   1.531 +
   1.532 +SUMMARY="SDL2 Configure Summary:\n"
   1.533 +if test x$enable_shared = xyes; then
   1.534 +    SUMMARY="${SUMMARY}Building Shared Libraries\n"
   1.535 +fi
   1.536 +if test x$enable_static = xyes; then
   1.537 +    SUMMARY="${SUMMARY}Building Static Libraries\n"
   1.538 +fi
   1.539 +SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
   1.540 +SUMMARY="${SUMMARY}Assembly Math   :${SUMMARY_math}\n"
   1.541 +SUMMARY="${SUMMARY}Audio drivers   :${SUMMARY_audio}\n"
   1.542 +SUMMARY="${SUMMARY}Video drivers   :${SUMMARY_video}\n"
   1.543 +if test x$have_x = xyes; then
   1.544 +    SUMMARY="${SUMMARY}X11 libraries   :${SUMMARY_video_x11}\n"
   1.545 +fi
   1.546 +SUMMARY="${SUMMARY}Input drivers   :${SUMMARY_input}\n"
   1.547 +if test x$enable_libudev = xyes; then
   1.548 +    SUMMARY="${SUMMARY}Using libudev   : YES\n"
   1.549 +else
   1.550 +    SUMMARY="${SUMMARY}Using libudev   : NO\n"
   1.551 +fi
   1.552 +if test x$have_dbus_dbus_h_hdr = xyes; then
   1.553 +    SUMMARY="${SUMMARY}Using dbus      : YES\n"
   1.554 +else
   1.555 +    SUMMARY="${SUMMARY}Using dbus      : NO\n"
   1.556 +fi
   1.557 +ac_config_commands="$ac_config_commands summary"
   1.558 +
   1.559 +
   1.560  cat >confcache <<\_ACEOF
   1.561  # This file is a shell script that caches the results of configure
   1.562  # tests run on this system so they can be shared between configure
   1.563 @@ -24091,6 +24192,7 @@
   1.564  
   1.565  
   1.566  
   1.567 +SUMMARY="$SUMMARY"
   1.568  
   1.569  _ACEOF
   1.570  
   1.571 @@ -24106,6 +24208,8 @@
   1.572      "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
   1.573      "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
   1.574      "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
   1.575 +    "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
   1.576 +    "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
   1.577  
   1.578    *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   1.579    esac
   1.580 @@ -25461,6 +25565,8 @@
   1.581  _LT_EOF
   1.582  
   1.583   ;;
   1.584 +    "sdl2_config":C) chmod a+x sdl2-config ;;
   1.585 +    "summary":C) echo -en "$SUMMARY" ;;
   1.586  
   1.587    esac
   1.588  done # for ac_tag
   1.589 @@ -25499,4 +25605,3 @@
   1.590  $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   1.591  fi
   1.592  
   1.593 -chmod a+x sdl2-config
     2.1 --- a/configure.in	Fri Jan 24 09:54:04 2014 -0300
     2.2 +++ b/configure.in	Sat Jan 25 15:05:44 2014 -0500
     2.3 @@ -348,95 +348,119 @@
     2.4                , enable_atomic=yes)
     2.5  if test x$enable_atomic != xyes; then
     2.6      AC_DEFINE(SDL_ATOMIC_DISABLED, 1, [ ])
     2.7 +else
     2.8 +    SUMMARY_modules="${SUMMARY_modules} atomic"
     2.9  fi
    2.10  AC_ARG_ENABLE(audio,
    2.11  AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [[default=yes]]]),
    2.12                , enable_audio=yes)
    2.13  if test x$enable_audio != xyes; then
    2.14      AC_DEFINE(SDL_AUDIO_DISABLED, 1, [ ])
    2.15 +else
    2.16 +    SUMMARY_modules="${SUMMARY_modules} audio"
    2.17  fi
    2.18  AC_ARG_ENABLE(video,
    2.19  AC_HELP_STRING([--enable-video], [Enable the video subsystem [[default=yes]]]),
    2.20                , enable_video=yes)
    2.21  if test x$enable_video != xyes; then
    2.22      AC_DEFINE(SDL_VIDEO_DISABLED, 1, [ ])
    2.23 +else
    2.24 +    SUMMARY_modules="${SUMMARY_modules} video"
    2.25  fi
    2.26  AC_ARG_ENABLE(render,
    2.27  AC_HELP_STRING([--enable-render], [Enable the render subsystem [[default=yes]]]),
    2.28                , enable_render=yes)
    2.29  if test x$enable_render != xyes; then
    2.30      AC_DEFINE(SDL_RENDER_DISABLED, 1, [ ])
    2.31 +else
    2.32 +    SUMMARY_modules="${SUMMARY_modules} render"
    2.33  fi
    2.34  AC_ARG_ENABLE(events,
    2.35  AC_HELP_STRING([--enable-events], [Enable the events subsystem [[default=yes]]]),
    2.36                , enable_events=yes)
    2.37  if test x$enable_events != xyes; then
    2.38      AC_DEFINE(SDL_EVENTS_DISABLED, 1, [ ])
    2.39 +else
    2.40 +    SUMMARY_modules="${SUMMARY_modules} events"
    2.41  fi
    2.42  AC_ARG_ENABLE(joystick,
    2.43  AC_HELP_STRING([--enable-joystick], [Enable the joystick subsystem [[default=yes]]]),
    2.44                , enable_joystick=yes)
    2.45  if test x$enable_joystick != xyes; then
    2.46      AC_DEFINE(SDL_JOYSTICK_DISABLED, 1, [ ])
    2.47 +else
    2.48 +    SUMMARY_modules="${SUMMARY_modules} joystick"
    2.49  fi
    2.50  AC_ARG_ENABLE(haptic,
    2.51  AC_HELP_STRING([--enable-haptic], [Enable the haptic (force feedback) subsystem [[default=yes]]]),
    2.52                , enable_haptic=yes)
    2.53  if test x$enable_haptic != xyes; then
    2.54      AC_DEFINE(SDL_HAPTIC_DISABLED, 1, [ ])
    2.55 +else
    2.56 +    SUMMARY_modules="${SUMMARY_modules} haptic"
    2.57  fi
    2.58  AC_ARG_ENABLE(power,
    2.59  AC_HELP_STRING([--enable-power], [Enable the power subsystem [[default=yes]]]),
    2.60                , enable_power=yes)
    2.61  if test x$enable_power != xyes; then
    2.62      AC_DEFINE(SDL_POWER_DISABLED, 1, [ ])
    2.63 +else
    2.64 +    SUMMARY_modules="${SUMMARY_modules} power"
    2.65  fi
    2.66  AC_ARG_ENABLE(filesystem,
    2.67  AC_HELP_STRING([--enable-filesystem], [Enable the filesystem subsystem [[default=yes]]]),
    2.68                , enable_filesystem=yes)
    2.69  if test x$enable_filesystem != xyes; then
    2.70      AC_DEFINE(SDL_FILESYSTEM_DISABLED, 1, [ ])
    2.71 +else
    2.72 +    SUMMARY_modules="${SUMMARY_modules} filesystem"
    2.73  fi
    2.74  AC_ARG_ENABLE(threads,
    2.75  AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [[default=yes]]]),
    2.76                , enable_threads=yes)
    2.77  if test x$enable_threads != xyes; then
    2.78      AC_DEFINE(SDL_THREADS_DISABLED, 1, [ ])
    2.79 +else
    2.80 +    SUMMARY_modules="${SUMMARY_modules} threads"
    2.81  fi
    2.82  AC_ARG_ENABLE(timers,
    2.83  AC_HELP_STRING([--enable-timers], [Enable the timer subsystem [[default=yes]]]),
    2.84                , enable_timers=yes)
    2.85  if test x$enable_timers != xyes; then
    2.86      AC_DEFINE(SDL_TIMERS_DISABLED, 1, [ ])
    2.87 +else
    2.88 +    SUMMARY_modules="${SUMMARY_modules} timers"
    2.89  fi
    2.90  AC_ARG_ENABLE(file,
    2.91  AC_HELP_STRING([--enable-file], [Enable the file subsystem [[default=yes]]]),
    2.92                , enable_file=yes)
    2.93  if test x$enable_file != xyes; then
    2.94      AC_DEFINE(SDL_FILE_DISABLED, 1, [ ])
    2.95 +else
    2.96 +    SUMMARY_modules="${SUMMARY_modules} file"
    2.97  fi
    2.98  AC_ARG_ENABLE(loadso,
    2.99  AC_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [[default=yes]]]),
   2.100                , enable_loadso=yes)
   2.101  if test x$enable_loadso != xyes; then
   2.102      AC_DEFINE(SDL_LOADSO_DISABLED, 1, [ ])
   2.103 +else
   2.104 +    SUMMARY_modules="${SUMMARY_modules} loadso"
   2.105  fi
   2.106  AC_ARG_ENABLE(cpuinfo,
   2.107  AC_HELP_STRING([--enable-cpuinfo], [Enable the cpuinfo subsystem [[default=yes]]]),
   2.108                , enable_cpuinfo=yes)
   2.109  if test x$enable_cpuinfo != xyes; then
   2.110      AC_DEFINE(SDL_CPUINFO_DISABLED, 1, [ ])
   2.111 -fi
   2.112 -AC_ARG_ENABLE(atomic,
   2.113 -AC_HELP_STRING([--enable-atomic], [Enable the atomic operations [[default=yes]]]),
   2.114 -              , enable_atomic=yes)
   2.115 -if test x$enable_atomic != xyes; then
   2.116 -    AC_DEFINE(SDL_ATOMIC_DISABLED, 1, [ ])
   2.117 +else
   2.118 +    SUMMARY_modules="${SUMMARY_modules} cpuinfo"
   2.119  fi
   2.120  AC_ARG_ENABLE(assembly,
   2.121  AC_HELP_STRING([--enable-assembly], [Enable assembly routines [[default=yes]]]),
   2.122                , enable_assembly=yes)
   2.123  if test x$enable_assembly = xyes; then
   2.124 +    SUMMARY_modules="${SUMMARY_modules} assembly"
   2.125 +
   2.126      AC_DEFINE(SDL_ASSEMBLY_ROUTINES, 1, [ ])
   2.127  
   2.128      # Make sure that we don't generate floating point code that would
   2.129 @@ -497,6 +521,7 @@
   2.130  
   2.131          if test x$have_gcc_mmx = xyes; then
   2.132              EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
   2.133 +            SUMMARY_math="${SUMMARY_math} mmx"
   2.134          fi
   2.135      fi
   2.136  
   2.137 @@ -526,6 +551,7 @@
   2.138  
   2.139          if test x$have_gcc_3dnow = xyes; then
   2.140              EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
   2.141 +            SUMMARY_math="${SUMMARY_math} 3dnow"
   2.142          fi
   2.143      fi
   2.144  
   2.145 @@ -562,6 +588,7 @@
   2.146  
   2.147          if test x$have_gcc_sse = xyes; then
   2.148              EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
   2.149 +            SUMMARY_math="${SUMMARY_math} sse"
   2.150          fi
   2.151      fi
   2.152  
   2.153 @@ -598,6 +625,7 @@
   2.154  
   2.155          if test x$have_gcc_sse2 = xyes; then
   2.156              EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
   2.157 +            SUMMARY_math="${SUMMARY_math} sse2"
   2.158          fi
   2.159      fi
   2.160  
   2.161 @@ -674,6 +702,7 @@
   2.162                AC_DEFINE(HAVE_ALTIVEC_H, 1, [ ])
   2.163              fi
   2.164              EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
   2.165 +            SUMMARY_math="${SUMMARY_math} altivec"
   2.166          fi
   2.167      fi
   2.168  fi
   2.169 @@ -720,6 +749,7 @@
   2.170          fi
   2.171          AC_MSG_RESULT($have_oss)
   2.172          if test x$have_oss = xyes; then
   2.173 +            SUMMARY_audio="${SUMMARY_audio} oss"
   2.174              AC_DEFINE(SDL_AUDIO_DRIVER_OSS, 1, [ ])
   2.175              SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
   2.176              have_audio=yes
   2.177 @@ -762,8 +792,10 @@
   2.178                 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
   2.179                  echo "-- dynamic libasound -> $alsa_lib"
   2.180                  AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ALSA_DYNAMIC, "$alsa_lib", [ ])
   2.181 +                SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
   2.182              else
   2.183                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
   2.184 +                SUMMARY_audio="${SUMMARY_audio} alsa"
   2.185              fi
   2.186              have_audio=yes
   2.187          fi
   2.188 @@ -795,8 +827,10 @@
   2.189                 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
   2.190                  echo "-- dynamic libesd -> $esd_lib"
   2.191                  AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib", [ ])
   2.192 +                SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
   2.193              else
   2.194                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
   2.195 +                SUMMARY_audio="${SUMMARY_audio} esd"
   2.196              fi
   2.197              have_audio=yes
   2.198          fi
   2.199 @@ -842,6 +876,7 @@
   2.200                 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
   2.201                  echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
   2.202                  AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC, "$pulseaudio_lib", [ ])
   2.203 +                SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
   2.204  
   2.205                  case "$host" in
   2.206                      # On Solaris, pulseaudio must be linked deferred explicitly
   2.207 @@ -852,6 +887,7 @@
   2.208                  esac
   2.209              else
   2.210                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
   2.211 +                SUMMARY_audio="${SUMMARY_audio} pulse"
   2.212              fi
   2.213              have_audio=yes
   2.214          fi
   2.215 @@ -900,8 +936,10 @@
   2.216                     test x$enable_arts_shared = xyes && test x$arts_lib != x; then
   2.217                      echo "-- dynamic libartsc -> $arts_lib"
   2.218                      AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib", [ ])
   2.219 +                    SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
   2.220                  else
   2.221                      EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
   2.222 +                    SUMMARY_audio="${SUMMARY_audio} arts"
   2.223                  fi
   2.224                  have_audio=yes
   2.225              fi
   2.226 @@ -949,8 +987,10 @@
   2.227                 test x$enable_nas_shared = xyes && test x$nas_lib != x; then
   2.228                  echo "-- dynamic libaudio -> $nas_lib"
   2.229                  AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_NAS_DYNAMIC, "$nas_lib", [ ])
   2.230 +                SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
   2.231              else
   2.232                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
   2.233 +                SUMMARY_audio="${SUMMARY_audio} nas"
   2.234              fi
   2.235  
   2.236              AC_DEFINE(SDL_AUDIO_DRIVER_NAS, 1, [ ])
   2.237 @@ -995,8 +1035,10 @@
   2.238                 test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
   2.239                  echo "-- dynamic libsndio -> $sndio_lib"
   2.240                  AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_SNDIO_DYNAMIC, "$sndio_lib", [ ])
   2.241 +                SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
   2.242              else
   2.243                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
   2.244 +                SUMMARY_audio="${SUMMARY_audio} sndio"
   2.245              fi
   2.246  
   2.247              AC_DEFINE(SDL_AUDIO_DRIVER_SNDIO, 1, [ ])
   2.248 @@ -1016,6 +1058,7 @@
   2.249      if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
   2.250          AC_DEFINE(SDL_AUDIO_DRIVER_DISK, 1, [ ])
   2.251          SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
   2.252 +        SUMMARY_audio="${SUMMARY_audio} disk"
   2.253      fi
   2.254  }
   2.255  
   2.256 @@ -1028,6 +1071,7 @@
   2.257      if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
   2.258          AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY, 1, [ ])
   2.259          SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
   2.260 +        SUMMARY_audio="${SUMMARY_audio} dummy"
   2.261      fi
   2.262  }
   2.263  
   2.264 @@ -1187,9 +1231,11 @@
   2.265                  AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL, "$wayland_egl_lib", [ ])
   2.266                  AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR, "$wayland_cursor_lib", [ ])
   2.267                  AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON, "$xkbcommon_lib", [ ])
   2.268 +                SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
   2.269              else
   2.270                  enable_wayland_shared=no
   2.271                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
   2.272 +                SUMMARY_video="${SUMMARY_video} wayland"
   2.273              fi
   2.274              have_video=yes
   2.275          fi
   2.276 @@ -1299,9 +1345,11 @@
   2.277                  echo "-- dynamic libX11ext -> $x11ext_lib"
   2.278                  AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib", [ ])
   2.279                  AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib", [ ])
   2.280 +                SUMMARY_video="${SUMMARY_video} x11(dynamic)"
   2.281              else
   2.282                  enable_x11_shared=no
   2.283                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
   2.284 +                SUMMARY_video="${SUMMARY_video} x11"
   2.285              fi
   2.286              have_video=yes
   2.287  
   2.288 @@ -1378,6 +1426,7 @@
   2.289              fi
   2.290              if test x$definitely_enable_video_x11_xcursor = xyes; then
   2.291                  AC_DEFINE(SDL_VIDEO_DRIVER_X11_XCURSOR, 1, [ ])
   2.292 +                SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
   2.293              fi
   2.294              AC_ARG_ENABLE(video-x11-xinerama,
   2.295  AC_HELP_STRING([--enable-video-x11-xinerama], [enable X11 Xinerama support [[default=yes]]]),
   2.296 @@ -1405,6 +1454,7 @@
   2.297              fi
   2.298              if test x$definitely_enable_video_x11_xinerama = xyes; then
   2.299                  AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA, 1, [ ])
   2.300 +                SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
   2.301              fi
   2.302              AC_ARG_ENABLE(video-x11-xinput,
   2.303  AC_HELP_STRING([--enable-video-x11-xinput], [enable X11 XInput extension for manymouse, tablets, etc [[default=yes]]]),
   2.304 @@ -1431,6 +1481,7 @@
   2.305                  fi
   2.306              fi
   2.307              if test x$definitely_enable_video_x11_xinput = xyes; then
   2.308 +                SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
   2.309                  AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT2, 1, [ ])
   2.310                  AC_MSG_CHECKING(for xinput2 multitouch)
   2.311              	have_xinput2_multitouch=no
   2.312 @@ -1449,6 +1500,7 @@
   2.313              	],[
   2.314              	have_xinput2_multitouch=yes
   2.315              	AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH)
   2.316 +                SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
   2.317              	])
   2.318              	AC_MSG_RESULT($have_xinput2_multitouch)
   2.319              fi
   2.320 @@ -1478,6 +1530,7 @@
   2.321              fi
   2.322              if test x$definitely_enable_video_x11_xrandr = xyes; then
   2.323                  AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR, 1, [ ])
   2.324 +                SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
   2.325              fi
   2.326              AC_ARG_ENABLE(video-x11-scrnsaver,
   2.327  AC_HELP_STRING([--enable-video-x11-scrnsaver], [enable X11 screensaver extension [[default=yes]]]),
   2.328 @@ -1504,6 +1557,7 @@
   2.329              fi
   2.330              if test x$definitely_enable_video_x11_scrnsaver = xyes; then
   2.331                  AC_DEFINE(SDL_VIDEO_DRIVER_X11_XSCRNSAVER, 1, [ ])
   2.332 +                SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
   2.333              fi
   2.334              AC_ARG_ENABLE(video-x11-xshape,
   2.335  AC_HELP_STRING([--enable-video-x11-xshape], [enable X11 XShape support [[default=yes]]]),
   2.336 @@ -1516,6 +1570,7 @@
   2.337                                  ])
   2.338                  if test x$have_shape_h_hdr = xyes; then
   2.339                      AC_DEFINE(SDL_VIDEO_DRIVER_X11_XSHAPE, 1, [ ])
   2.340 +                    SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
   2.341                  fi
   2.342              fi
   2.343              AC_ARG_ENABLE(video-x11-vm,
   2.344 @@ -1544,6 +1599,7 @@
   2.345              fi
   2.346              if test x$definitely_enable_video_x11_vm = xyes; then
   2.347                  AC_DEFINE(SDL_VIDEO_DRIVER_X11_XVIDMODE, 1, [ ])
   2.348 +                SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
   2.349              fi
   2.350          fi
   2.351      fi
   2.352 @@ -1556,6 +1612,7 @@
   2.353          AC_DEFINE(SDL_VIDEO_DRIVER_HAIKU, 1, [ ])
   2.354          SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
   2.355          have_video=yes
   2.356 +        SUMMARY_video="${SUMMARY_video} haiku"
   2.357      fi
   2.358  }
   2.359  
   2.360 @@ -1582,6 +1639,7 @@
   2.361          if test x$have_cocoa = xyes; then
   2.362              AC_DEFINE(SDL_VIDEO_DRIVER_COCOA, 1, [ ])
   2.363              SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
   2.364 +            SUMMARY_video="${SUMMARY_video} cocoa"
   2.365              have_video=yes
   2.366          fi
   2.367      fi
   2.368 @@ -1655,8 +1713,10 @@
   2.369                  directfb_shared=yes
   2.370                  echo "-- $directfb_lib_spec -> $directfb_lib"
   2.371                  AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC, "$directfb_lib", [ ])
   2.372 +                SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
   2.373              else
   2.374                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
   2.375 +                SUMMARY_video="${SUMMARY_video} directfb"
   2.376              fi
   2.377              AC_MSG_RESULT($directfb_shared)
   2.378              have_video=yes
   2.379 @@ -1704,8 +1764,10 @@
   2.380                 test x$enable_fusionsound_shared = xyes; then
   2.381                  AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC, "libfusionsound.so", [ ])
   2.382                  fusionsound_shared=yes
   2.383 +                SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
   2.384              else
   2.385                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
   2.386 +                SUMMARY_audio="${SUMMARY_audio} fusionsound"
   2.387              fi
   2.388              AC_MSG_RESULT($fusionsound_shared)
   2.389              
   2.390 @@ -1724,6 +1786,7 @@
   2.391          AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY, 1, [ ])
   2.392          SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
   2.393          have_video=yes
   2.394 +        SUMMARY_video="${SUMMARY_video} dummy"
   2.395      fi
   2.396  }
   2.397  
   2.398 @@ -1750,6 +1813,7 @@
   2.399              AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
   2.400              AC_DEFINE(SDL_VIDEO_OPENGL_GLX, 1, [ ])
   2.401              AC_DEFINE(SDL_VIDEO_RENDER_OGL, 1, [ ])
   2.402 +            SUMMARY_video="${SUMMARY_video} opengl"
   2.403          fi
   2.404      fi
   2.405  }
   2.406 @@ -1789,6 +1853,7 @@
   2.407          if test x$video_opengles_v1 = xyes; then
   2.408              AC_DEFINE(SDL_VIDEO_OPENGL_ES, 1, [ ])
   2.409              AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES, 1, [ ])
   2.410 +            SUMMARY_video="${SUMMARY_video} opengl_es1"
   2.411          fi
   2.412          
   2.413          AC_MSG_CHECKING(for OpenGL ES v2 headers)
   2.414 @@ -1804,6 +1869,7 @@
   2.415          if test x$video_opengles_v2 = xyes; then
   2.416              AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
   2.417              AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
   2.418 +            SUMMARY_video="${SUMMARY_video} opengl_es2"
   2.419          fi
   2.420      fi
   2.421  }
   2.422 @@ -1815,6 +1881,7 @@
   2.423          AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
   2.424          AC_DEFINE(SDL_VIDEO_OPENGL_WGL, 1, [ ])
   2.425          AC_DEFINE(SDL_VIDEO_RENDER_OGL, 1, [ ])
   2.426 +        SUMMARY_video="${SUMMARY_video} opengl"
   2.427      fi
   2.428  }
   2.429  
   2.430 @@ -1835,6 +1902,7 @@
   2.431          if test x$video_opengl_egl = xyes; then
   2.432              AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
   2.433              AC_DEFINE(SDL_VIDEO_OPENGL_EGL, 1, [ ])
   2.434 +            SUMMARY_video="${SUMMARY_video} opengl_es1"
   2.435          fi
   2.436         
   2.437          AC_MSG_CHECKING(for OpenGL ES v2 headers)
   2.438 @@ -1851,6 +1919,7 @@
   2.439              AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
   2.440              AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
   2.441              AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
   2.442 +            SUMMARY_video="${SUMMARY_video} opengl_es2"
   2.443          fi
   2.444      fi
   2.445  }
   2.446 @@ -1863,6 +1932,7 @@
   2.447          AC_DEFINE(SDL_VIDEO_OPENGL_HAIKU, 1, [ ])
   2.448          AC_DEFINE(SDL_VIDEO_RENDER_OGL, 1, [ ])
   2.449          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
   2.450 +        SUMMARY_video="${SUMMARY_video} opengl"
   2.451      fi
   2.452  }
   2.453  
   2.454 @@ -1873,6 +1943,7 @@
   2.455          AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
   2.456          AC_DEFINE(SDL_VIDEO_OPENGL_CGL, 1, [ ])
   2.457          AC_DEFINE(SDL_VIDEO_RENDER_OGL, 1, [ ])
   2.458 +        SUMMARY_video="${SUMMARY_video} opengl"
   2.459          case "$host" in
   2.460              *-*-darwin*)
   2.461                  if test x$enable_video_cocoa = xyes; then
   2.462 @@ -1900,6 +1971,7 @@
   2.463          AC_MSG_RESULT($use_input_events)
   2.464          if test x$use_input_events = xyes; then
   2.465              AC_DEFINE(SDL_INPUT_LINUXEV, 1, [ ])
   2.466 +            SUMMARY_input="${SUMMARY_input} linuxev"
   2.467          fi
   2.468  }
   2.469  
   2.470 @@ -1922,6 +1994,7 @@
   2.471      AC_MSG_RESULT($use_input_kd)
   2.472      if test x$use_input_kd = xyes; then
   2.473          AC_DEFINE(SDL_INPUT_LINUXKD, 1, [ ])
   2.474 +        SUMMARY_input="${SUMMARY_input} linuxkd"
   2.475      fi
   2.476  }
   2.477  
   2.478 @@ -1984,6 +2057,7 @@
   2.479          if test x$enable_input_tslib = xyes; then
   2.480              AC_DEFINE(SDL_INPUT_TSLIB, 1, [ ])
   2.481              EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
   2.482 +            SUMMARY_input="${SUMMARY_input} ts"
   2.483          fi
   2.484      fi
   2.485  }
   2.486 @@ -2262,6 +2336,9 @@
   2.487          AC_CHECK_HEADER(dinput.h, have_dinput=yes)
   2.488          AC_CHECK_HEADER(xaudio2.h, have_xaudio2=yes)
   2.489  
   2.490 +        SUMMARY_video="${SUMMARY_video} directx"
   2.491 +        SUMMARY_audio="${SUMMARY_audio} directx"
   2.492 +
   2.493          # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
   2.494          # FIXME:  ...so force it off for now.
   2.495          case "$host" in
   2.496 @@ -3076,5 +3153,33 @@
   2.497  AC_CONFIG_FILES([
   2.498      Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc
   2.499  ])
   2.500 +AC_CONFIG_COMMANDS([sdl2_config],[chmod a+x sdl2-config])
   2.501 +
   2.502 +SUMMARY="SDL2 Configure Summary:\n"
   2.503 +if test x$enable_shared = xyes; then
   2.504 +    SUMMARY="${SUMMARY}Building Shared Libraries\n"
   2.505 +fi
   2.506 +if test x$enable_static = xyes; then
   2.507 +    SUMMARY="${SUMMARY}Building Static Libraries\n"
   2.508 +fi
   2.509 +SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
   2.510 +SUMMARY="${SUMMARY}Assembly Math   :${SUMMARY_math}\n" 
   2.511 +SUMMARY="${SUMMARY}Audio drivers   :${SUMMARY_audio}\n"
   2.512 +SUMMARY="${SUMMARY}Video drivers   :${SUMMARY_video}\n"
   2.513 +if test x$have_x = xyes; then
   2.514 +    SUMMARY="${SUMMARY}X11 libraries   :${SUMMARY_video_x11}\n"
   2.515 +fi
   2.516 +SUMMARY="${SUMMARY}Input drivers   :${SUMMARY_input}\n"
   2.517 +if test x$enable_libudev = xyes; then
   2.518 +    SUMMARY="${SUMMARY}Using libudev   : YES\n"
   2.519 +else
   2.520 +    SUMMARY="${SUMMARY}Using libudev   : NO\n"
   2.521 +fi
   2.522 +if test x$have_dbus_dbus_h_hdr = xyes; then
   2.523 +    SUMMARY="${SUMMARY}Using dbus      : YES\n"
   2.524 +else
   2.525 +    SUMMARY="${SUMMARY}Using dbus      : NO\n"
   2.526 +fi
   2.527 +AC_CONFIG_COMMANDS([summary], [echo -en "$SUMMARY"], [SUMMARY="$SUMMARY"])
   2.528 +
   2.529  AC_OUTPUT
   2.530 -chmod a+x sdl2-config