new tester for testing PICTURE specification parsing
[platform/upstream/flac.git] / configure.in
index ffe07ac..30ac4d6 100644 (file)
@@ -19,8 +19,7 @@
 # instead of FLAC__ since autoconf triggers off 'AC_' in strings
 
 AC_INIT(src/flac/main.c)
-#@@@@@@AM_INIT_AUTOMAKE(flac, 1.1.2)
-AM_INIT_AUTOMAKE(flac, CVS)
+AM_INIT_AUTOMAKE(flac, 1.1.3)
 
 # Don't automagically regenerate autoconf/automake generated files unless
 # explicitly requested.  Eases autobuilding -mdz
@@ -105,7 +104,7 @@ AH_TEMPLATE(FLAC__NO_ASM, [define to disable use of assembly code])
 fi
 
 AC_ARG_ENABLE(debug,
-[  --enable-debug                 Turn on debugging],
+AC_HELP_STRING([--enable-debug], [Turn on debugging]),
 [case "${enableval}" in
        yes) debug=true ;;
        no)  debug=false ;;
@@ -114,7 +113,7 @@ esac],[debug=false])
 AM_CONDITIONAL(DEBUG, test "x$debug" = xtrue)
 
 AC_ARG_ENABLE(sse,
-[  --enable-sse                   Enable SSE support by asserting that the OS supports SSE instructions],
+AC_HELP_STRING([--enable-sse], [Enable SSE support by asserting that the OS supports SSE instructions]),
 [case "${enableval}" in
        yes) sse_os=true ;;
        no)  sse_os=false ;;
@@ -127,7 +126,7 @@ AH_TEMPLATE(FLAC__SSE_OS, [define if your operating system supports SSE instruct
 fi
 
 AC_ARG_ENABLE(3dnow,
-[  --disable-3dnow                Disable 3DNOW! optimizations],
+AC_HELP_STRING([--disable-3dnow], [Disable 3DNOW! optimizations]),
 [case "${enableval}" in
        yes) use_3dnow=true ;;
        no)  use_3dnow=false ;;
@@ -140,7 +139,7 @@ AH_TEMPLATE(FLAC__USE_3DNOW, [define to enable use of 3Dnow! instructions])
 fi
 
 AC_ARG_ENABLE(altivec,
-[  --disable-altivec              Disable Altivec optimizations],
+AC_HELP_STRING([--disable-altivec], [Disable Altivec optimizations]),
 [case "${enableval}" in
        yes) use_altivec=true ;;
        no)  use_altivec=false ;;
@@ -152,40 +151,37 @@ AC_DEFINE(FLAC__USE_ALTIVEC)
 AH_TEMPLATE(FLAC__USE_ALTIVEC, [define to enable use of Altivec instructions])
 fi
 
-AC_ARG_ENABLE(local-xmms-plugin,
-[  --enable-local-xmms-plugin     Install XMMS plugin to ~/.xmms/Plugins instead of system location],
+AC_ARG_ENABLE(thorough-tests,
+AC_HELP_STRING([--disable-thorough-tests], [Disable thorough (long) testing, do only basic tests]),
 [case "${enableval}" in
-       yes) install_xmms_plugin_locally=true ;;
-       no)  install_xmms_plugin_locally=false ;;
-       *) AC_MSG_ERROR(bad value ${enableval} for --enable-local-xmms-plugin) ;;
-esac],[install_xmms_plugin_locally=false])
-AM_CONDITIONAL(FLaC__INSTALL_XMMS_PLUGIN_LOCALLY, test "x$install_xmms_plugin_locally" = xtrue)
-
+       yes) thorough_tests=true ;;
+       no)  thorough_tests=false ;;
+       *) AC_MSG_ERROR(bad value ${enableval} for --enable-thorough-tests) ;;
+esac],[thorough_tests=true])
 AC_ARG_ENABLE(exhaustive-tests,
-[  --enable-exhaustive-tests      Enable exhaustive testing],
+AC_HELP_STRING([--enable-exhaustive-tests], [Enable exhaustive testing (VERY long)]),
 [case "${enableval}" in
        yes) exhaustive_tests=true ;;
        no)  exhaustive_tests=false ;;
        *) AC_MSG_ERROR(bad value ${enableval} for --enable-exhaustive-tests) ;;
 esac],[exhaustive_tests=false])
-AM_CONDITIONAL(FLaC__EXHAUSTIVE_TESTS, test "x$exhaustive_tests" = xtrue)
-if test "x$exhaustive_tests" = xtrue ; then
-AC_DEFINE(FLAC__EXHAUSTIVE_TESTS)
-AH_TEMPLATE(FLAC__EXHAUSTIVE_TESTS, [define to run even more tests])
+if test "x$thorough_tests" = xfalse ; then
+FLAC__TEST_LEVEL=0
+elif test "x$exhaustive_tests" = xfalse ; then
+FLAC__TEST_LEVEL=1
+else
+FLAC__TEST_LEVEL=2
 fi
+AC_SUBST(FLAC__TEST_LEVEL)
 
 AC_ARG_ENABLE(valgrind-testing,
 AC_HELP_STRING([--enable-valgrind-testing], [Run all tests inside Valgrind]),
 [case "${enableval}" in
-       yes) valgrind_testing=true ;;
-       no)  valgrind_testing=false ;;
+       yes) FLAC__TEST_WITH_VALGRIND=yes ;;
+       no)  FLAC__TEST_WITH_VALGRIND=no ;;
        *) AC_MSG_ERROR(bad value ${enableval} for --enable-valgrind-testing) ;;
-esac],[valgrind_testing=false])
-AM_CONDITIONAL(FLaC__VALGRIND_TESTING, test "x$valgrind_testing" = xtrue)
-if test "x$valgrind_testing" = xtrue ; then
-AC_DEFINE(FLAC__VALGRIND_TESTING)
-AH_TEMPLATE(FLAC__VALGRIND_TESTING, [define to enable use of Valgrind in testers])
-fi
+esac],[FLAC__TEST_WITH_VALGRIND=no])
+AC_SUBST(FLAC__TEST_WITH_VALGRIND)
 
 AC_ARG_ENABLE(doxygen-docs,
 AC_HELP_STRING([--disable-doxygen-docs], [Disable API documentation building via Doxygen]),
@@ -194,11 +190,32 @@ AC_HELP_STRING([--disable-doxygen-docs], [Disable API documentation building via
        no)  enable_doxygen_docs=false ;;
        *) AC_MSG_ERROR(bad value ${enableval} for --enable-doxygen-docs) ;;
 esac],[enable_doxygen_docs=true])
-if test "x$enable_doxygen_docs" != xno ; then
+if test "x$enable_doxygen_docs" != xfalse ; then
        AC_CHECK_PROGS(DOXYGEN, doxygen)
 fi
 AM_CONDITIONAL(FLaC__HAS_DOXYGEN, test -n "$DOXYGEN")
 
+AC_ARG_ENABLE(local-xmms-plugin,
+AC_HELP_STRING([--enable-local-xmms-plugin], [Install XMMS plugin to ~/.xmms/Plugins instead of system location]),
+[case "${enableval}" in
+       yes) install_xmms_plugin_locally=true ;;
+       no)  install_xmms_plugin_locally=false ;;
+       *) AC_MSG_ERROR(bad value ${enableval} for --enable-local-xmms-plugin) ;;
+esac],[install_xmms_plugin_locally=false])
+AM_CONDITIONAL(FLaC__INSTALL_XMMS_PLUGIN_LOCALLY, test "x$install_xmms_plugin_locally" = xtrue)
+
+AC_ARG_ENABLE(xmms-plugin,
+AC_HELP_STRING([--disable-xmms-plugin], [Do not build XMMS plugin]),
+[case "${enableval}" in
+       yes) enable_xmms_plugin=true ;;
+       no)  enable_xmms_plugin=false ;;
+       *) AC_MSG_ERROR(bad value ${enableval} for --enable-xmms-plugin) ;;
+esac],[enable_xmms_plugin=true])
+if test "x$enable_xmms_plugin" != xfalse ; then
+       AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - XMMS support will not be built]))
+fi
+AM_CONDITIONAL(FLaC__HAS_XMMS, test -n "$XMMS_INPUT_PLUGIN_DIR")
+
 dnl check for ogg library
 XIPH_PATH_OGG(have_ogg=yes, AC_MSG_WARN([*** Ogg development enviroment not installed - Ogg support will not be built]))
 AM_CONDITIONAL(FLaC__HAS_OGG, [test "x$have_ogg" = xyes])
@@ -207,9 +224,6 @@ AC_DEFINE(FLAC__HAS_OGG)
 AH_TEMPLATE(FLAC__HAS_OGG, [define if you have the ogg library])
 fi
 
-AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - xmms support will not be built]))
-AM_CONDITIONAL(FLaC__HAS_XMMS, test -n "$XMMS_INPUT_PLUGIN_DIR")
-
 dnl check for i18n(internationalization); these are from libiconv/gettext
 AM_ICONV
 AM_LANGINFO_CODESET
@@ -300,6 +314,7 @@ AC_CONFIG_FILES([ \
        src/share/utf8/Makefile \
        src/test_grabbag/Makefile \
        src/test_grabbag/cuesheet/Makefile \
+       src/test_libs_common/Makefile \
        src/test_libFLAC/Makefile \
        src/test_libFLAC++/Makefile \
        src/test_libOggFLAC/Makefile \
@@ -313,6 +328,7 @@ AC_CONFIG_FILES([ \
        include/OggFLAC++/Makefile \
        include/share/Makefile \
        include/share/grabbag/Makefile \
+       include/test_libs_common/Makefile \
        doc/Makefile \
        doc/html/Makefile \
        doc/html/images/Makefile \
@@ -320,6 +336,8 @@ AC_CONFIG_FILES([ \
        man/Makefile \
        test/Makefile \
        test/cuesheets/Makefile \
+       test/flac-to-flac-metadata-test-files/Makefile \
+       test/metaflac-test-files/Makefile \
        build/Makefile \
        obj/Makefile \
        obj/debug/Makefile \