diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 237 |
1 files changed, 226 insertions, 11 deletions
@@ -631,6 +631,8 @@ ITCTEST_FALSE ITCTEST_TRUE TESTS_FALSE TESTS_TRUE +EXAMPLES_FALSE +EXAMPLES_TRUE has_valgrind LIBOBJS EGREP @@ -727,10 +729,11 @@ ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking -enable_valgrind +enable_examples enable_tests enable_itc_test enable_tuberia_test +enable_valgrind ' ac_precious_vars='build_alias host_alias @@ -1361,10 +1364,11 @@ Optional Features: do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build - --disable-valgrind Disable the use of valgrind in tests + --disable-examples Disable all examples --disable-tests Disable all tests --disable-itc-test Disable ITC test --disable-tuberia-test Disable Tuberia test + --disable-valgrind Disable the use of valgrind in tests Some influential environment variables: CC C compiler command @@ -4167,6 +4171,175 @@ _ACEOF fi +has_ffmpeg=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_version in -lavcodec" >&5 +$as_echo_n "checking for avcodec_version in -lavcodec... " >&6; } +if ${ac_cv_lib_avcodec_avcodec_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lavcodec $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char avcodec_version (); +int +main () +{ +return avcodec_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_avcodec_avcodec_version=yes +else + ac_cv_lib_avcodec_avcodec_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_version" >&5 +$as_echo "$ac_cv_lib_avcodec_avcodec_version" >&6; } +if test "x$ac_cv_lib_avcodec_avcodec_version" = xyes; then : + has_avcodec=yes +else + has_avcodec=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avformat_version in -lavformat" >&5 +$as_echo_n "checking for avformat_version in -lavformat... " >&6; } +if ${ac_cv_lib_avformat_avformat_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lavformat $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char avformat_version (); +int +main () +{ +return avformat_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_avformat_avformat_version=yes +else + ac_cv_lib_avformat_avformat_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_avformat_version" >&5 +$as_echo "$ac_cv_lib_avformat_avformat_version" >&6; } +if test "x$ac_cv_lib_avformat_avformat_version" = xyes; then : + has_avformat=yes +else + has_avformat=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avutil_version in -lavutil" >&5 +$as_echo_n "checking for avutil_version in -lavutil... " >&6; } +if ${ac_cv_lib_avutil_avutil_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lavutil $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char avutil_version (); +int +main () +{ +return avutil_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_avutil_avutil_version=yes +else + ac_cv_lib_avutil_avutil_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_avutil_version" >&5 +$as_echo "$ac_cv_lib_avutil_avutil_version" >&6; } +if test "x$ac_cv_lib_avutil_avutil_version" = xyes; then : + has_avutil=yes +else + has_avutil=no +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for swscale_version in -lswscale" >&5 +$as_echo_n "checking for swscale_version in -lswscale... " >&6; } +if ${ac_cv_lib_swscale_swscale_version+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lswscale $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char swscale_version (); +int +main () +{ +return swscale_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_swscale_swscale_version=yes +else + ac_cv_lib_swscale_swscale_version=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_swscale_version" >&5 +$as_echo "$ac_cv_lib_swscale_swscale_version" >&6; } +if test "x$ac_cv_lib_swscale_swscale_version" = xyes; then : + has_swscale=yes +else + has_swscale=no +fi + # Checks for header files. ac_ext=c @@ -4701,11 +4874,11 @@ fi -# Check whether --enable-valgrind was given. -if test "${enable_valgrind+set}" = set; then : - enableval=$enable_valgrind; +# Check whether --enable-examples was given. +if test "${enable_examples+set}" = set; then : + enableval=$enable_examples; else - enable_valgrind="yes" + enable_examples="yes" fi # Check whether --enable-tests was given. @@ -4729,12 +4902,39 @@ else enable_tuberia_test="yes" fi +# Check whether --enable-valgrind was given. +if test "${enable_valgrind+set}" = set; then : + enableval=$enable_valgrind; +else + enable_valgrind="yes" +fi + if test "x$has_valgrind" = xyes; then : else enable_valgrind=no fi +if test "x$has_avcodec" = xno; then : + enable_examples=no +fi +if test "x$has_avformat" = xno; then : + enable_examples=no +fi +if test "x$has_avutil" = xno; then : + enable_examples=no +fi +if test "x$has_swscale" = xno; then : + enable_examples=no +fi + + if test x$enable_examples = xyes; then + EXAMPLES_TRUE= + EXAMPLES_FALSE='#' +else + EXAMPLES_TRUE='#' + EXAMPLES_FALSE= +fi if test x$enable_tests = xyes; then TESTS_TRUE= @@ -4769,7 +4969,7 @@ else fi -ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile tuberia.pc" +ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile example/Makefile tuberia.pc" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -4904,6 +5104,10 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then + as_fn_error $? "conditional \"EXAMPLES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${TESTS_TRUE}" && test -z "${TESTS_FALSE}"; then as_fn_error $? "conditional \"TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -5517,6 +5721,7 @@ do "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; + "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;; "tuberia.pc") CONFIG_FILES="$CONFIG_FILES tuberia.pc" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; @@ -6250,18 +6455,28 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: has valgrind: $has_valgrind" >&5 $as_echo "$as_me: has valgrind: $has_valgrind" >&6;} -{ $as_echo "$as_me:${as_lineno-$LINENO}: enable valgrind: $enable_valgrind" >&5 -$as_echo "$as_me: enable valgrind: $enable_valgrind" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: has avcodec: $has_avcodec" >&5 +$as_echo "$as_me: has avcodec: $has_avcodec" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: has avformat: $has_avformat" >&5 +$as_echo "$as_me: has avformat: $has_avformat" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: has avutil: $has_avutil" >&5 +$as_echo "$as_me: has avutil: $has_avutil" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: has swscale: $has_swscale" >&5 +$as_echo "$as_me: has swscale: $has_swscale" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: enable examples: $enable_examples" >&5 +$as_echo "$as_me: enable examples: $enable_examples" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: enable tests: $enable_tests" >&5 $as_echo "$as_me: enable tests: $enable_tests" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: enable itc tests: $enable_itc_test" >&5 $as_echo "$as_me: enable itc tests: $enable_itc_test" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: enable tuberia tests: $enable_tuberia_test" >&5 $as_echo "$as_me: enable tuberia tests: $enable_tuberia_test" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: enable valgrind: $enable_valgrind" >&5 +$as_echo "$as_me: enable valgrind: $enable_valgrind" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: prefix: $prefix" >&5 $as_echo "$as_me: prefix: $prefix" >&6;} -{ $as_echo "$as_me:${as_lineno-$LINENO}: exec_prefix: $execprefix" >&5 -$as_echo "$as_me: exec_prefix: $execprefix" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: exec_prefix: $exec_prefix" >&5 +$as_echo "$as_me: exec_prefix: $exec_prefix" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: libdir: $libdir" >&5 $as_echo "$as_me: libdir: $libdir" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: includedir: $includedir" >&5 |