From db32e632a10c1c54f813435cb5611a409dbc28ff Mon Sep 17 00:00:00 2001 From: thor Date: Sun, 29 Sep 2013 15:07:52 +0000 Subject: [PATCH] Sync inline scripts for current module list; prevent win32_wasapi from occuring in configure output unconditionally. The test script just tries to build all supported modules into a static output each; providing some testing for the more rare configuration. git-svn-id: svn://scm.orgis.org/mpg123/trunk@3423 35dc7657-300d-0410-a2e5-dc2837fedb53 --- configure.ac | 23 ++++++++++++++++++----- scripts/test-static-modules.sh | 12 ++++++++++++ src/output/Makefile.am | 10 +++++----- 3 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 scripts/test-static-modules.sh diff --git a/configure.ac b/configure.ac index ca5be127..682d855a 100644 --- a/configure.ac +++ b/configure.ac @@ -1631,10 +1631,14 @@ int main(){ return 0; } ])], [HAVE_WIN32_WASAPI=yes], [HAVE_WIN32_WASAPI=no]) - LIBS=$OLD_LIBS + LIBS=$OLD_LIBS WIN32_WASAPI_LIBS="-lole32 -lavrt" - output_modules="$output_modules win32_wasapi" - AC_MSG_RESULT([$HAVE_WIN32_WASAPI]) + AC_MSG_RESULT([$HAVE_WIN32_WASAPI]) + if test "x$HAVE_WIN32_WASAPI" = xyes; then + output_modules="$output_modules win32_wasapi" + else + check_failed=yes + fi ;; sndio) SNDIO_LIBS=-lsndio @@ -1793,7 +1797,8 @@ if test "x$check_forced" = xyes -a "x$check_failed" = "xyes"; then fi # When you extend check_modules, you should extend this: -#for i in alsa oss coreaudio sndio sun win32 esd jack portaudio pulse sdl nas aix alib arts hp os2 sgi mint openal dummy; do echo $i; done | +#for i in alsa qsa oss coreaudio sndio sun win32 win32_wasapi esd jack portaudio pulse sdl nas aix alib arts hp os2 sgi mint openal dummy +#do echo $i; done | #perl -ne 'chomp; $big = uc($_); print <