configure
资源名称:vlc-1.0.5.zip [点击查看]
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:1341k
源码类别:
midi
开发平台:
Unix_Linux
- if test $_pkg_short_errors_supported = yes; then
- LIBCDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcddb >= 0.9.5"`
- else
- LIBCDDB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcddb >= 0.9.5"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBCDDB_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: new enough libcddb not found. CDDB access disabled" >&5
- $as_echo "$as_me: WARNING: new enough libcddb not found. CDDB access disabled" >&2;}
- HAVE_LIBCDDB=no
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: new enough libcddb not found. CDDB access disabled" >&5
- $as_echo "$as_me: WARNING: new enough libcddb not found. CDDB access disabled" >&2;}
- HAVE_LIBCDDB=no
- else
- LIBCDDB_CFLAGS=$pkg_cv_LIBCDDB_CFLAGS
- LIBCDDB_LIBS=$pkg_cv_LIBCDDB_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- HAVE_LIBCDDB=yes
- $as_echo "#define HAVE_LIBCDDB 1" >>confdefs.h
- for element in cddax; do
- eval "LIBS_${element}="'"'"$LIBCDDB_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in cddax; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $LIBCDDB_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- fi
- # Check whether --enable-vcdx was given.
- if test "${enable_vcdx+set}" = set; then :
- enableval=$enable_vcdx;
- fi
- if test "${enable_vcdx}" = "yes"
- then
- if test "${have_libvcdinfo}" = "yes"
- then
- for element in vcdx; do
- eval "LIBS_${element}="'"'"$VCDINFO_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in vcdx; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $VCDINFO_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: vcdx plugin disabled because ok libvcdinfo library not found or disabled" >&5
- $as_echo "$as_me: WARNING: vcdx plugin disabled because ok libvcdinfo library not found or disabled" >&2;}
- HAVE_VCDX=no
- fi
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCDIO" >&5
- $as_echo_n "checking for LIBCDIO... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBCDIO_CFLAGS"; then
- pkg_cv_LIBCDIO_CFLAGS="$LIBCDIO_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libiso9660 >= 0.72""; } >&5
- ($PKG_CONFIG --exists --print-errors "libiso9660 >= 0.72") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBCDIO_CFLAGS=`$PKG_CONFIG --cflags "libiso9660 >= 0.72" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBCDIO_LIBS"; then
- pkg_cv_LIBCDIO_LIBS="$LIBCDIO_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libiso9660 >= 0.72""; } >&5
- ($PKG_CONFIG --exists --print-errors "libiso9660 >= 0.72") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBCDIO_LIBS=`$PKG_CONFIG --libs "libiso9660 >= 0.72" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libiso9660 >= 0.72"`
- else
- LIBCDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libiso9660 >= 0.72"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBCDIO_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: vcdx plugin disabled because ok libiso9660 library not found" >&5
- $as_echo "$as_me: WARNING: vcdx plugin disabled because ok libiso9660 library not found" >&2;}
- HAVE_VCDX=no
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: vcdx plugin disabled because ok libiso9660 library not found" >&5
- $as_echo "$as_me: WARNING: vcdx plugin disabled because ok libiso9660 library not found" >&2;}
- HAVE_VCDX=no
- else
- LIBCDIO_CFLAGS=$pkg_cv_LIBCDIO_CFLAGS
- LIBCDIO_LIBS=$pkg_cv_LIBCDIO_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in vcdx; do
- eval "LIBS_${element}="'"'"$LIBISO9660_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in vcdx; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $LIBISO9660_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- if test "$have_libvcdinfo" = "yes"
- then
- $as_echo "#define HAVE_VCDX 1" >>confdefs.h
- for element in vcdx; do
- eval "LIBS_${element}="'"'"$VCDINFO_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in vcdx; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $VCDINFO_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- PLUGINS="${PLUGINS} vcdx"
- LTLIBvcdx="libvcdx_plugin.la"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: vcdx plugin disabled because ok libvcdinfo library not found" >&5
- $as_echo "$as_me: WARNING: vcdx plugin disabled because ok libvcdinfo library not found" >&2;}
- HAVE_VCDX=no
- fi
- fi
- # Check whether --enable-cdda was given.
- if test "${enable_cdda+set}" = set; then :
- enableval=$enable_cdda;
- fi
- # Check whether --enable-vcd was given.
- if test "${enable_vcd+set}" = set; then :
- enableval=$enable_vcd;
- fi
- if test "${enable_vcd}" != "no"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdrom_msf0 in linux/cdrom.h" >&5
- $as_echo_n "checking for cdrom_msf0 in linux/cdrom.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <linux/cdrom.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "cdrom_msf0" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} vcd"
- LTLIBvcd="libvcd_plugin.la"
- PLUGINS="${PLUGINS} cdda"
- LTLIBcdda="libcdda_plugin.la"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f conftest*
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scsireq in sys/scsiio.h" >&5
- $as_echo_n "checking for scsireq in sys/scsiio.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/scsiio.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "scsireq" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} vcd"
- LTLIBvcd="libvcd_plugin.la"
- PLUGINS="${PLUGINS} cdda"
- LTLIBcdda="libcdda_plugin.la"
- $as_echo "#define HAVE_SCSIREQ_IN_SYS_SCSIIO_H 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f conftest*
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioc_toc_header in sys/cdio.h" >&5
- $as_echo_n "checking for ioc_toc_header in sys/cdio.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/cdio.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "ioc_toc_header " >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} vcd"
- LTLIBvcd="libvcd_plugin.la"
- PLUGINS="${PLUGINS} cdda"
- LTLIBcdda="libcdda_plugin.la"
- $as_echo "#define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f conftest*
- if test "${SYS}" = "bsdi" -o "${SYS}" = "mingw32"
- then
- PLUGINS="${PLUGINS} vcd"
- LTLIBvcd="libvcd_plugin.la"
- PLUGINS="${PLUGINS} cdda"
- LTLIBcdda="libcdda_plugin.la"
- fi
- if test "${SYS}" = "darwin"
- then
- PLUGINS="${PLUGINS} vcd"
- LTLIBvcd="libvcd_plugin.la"
- PLUGINS="${PLUGINS} cdda"
- LTLIBcdda="libcdda_plugin.la"
- for element in vcd vcdx cdda cddax; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,IOKit,-framework,CoreFoundation "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in vcdx cddax cdda; do
- eval "LIBS_${element}="'"'"-liconv "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- if test "$enable_libcddb" != "no"; then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCDDB" >&5
- $as_echo_n "checking for LIBCDDB... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBCDDB_CFLAGS"; then
- pkg_cv_LIBCDDB_CFLAGS="$LIBCDDB_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libcddb >= 0.9.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libcddb >= 0.9.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBCDDB_CFLAGS=`$PKG_CONFIG --cflags "libcddb >= 0.9.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBCDDB_LIBS"; then
- pkg_cv_LIBCDDB_LIBS="$LIBCDDB_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libcddb >= 0.9.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libcddb >= 0.9.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBCDDB_LIBS=`$PKG_CONFIG --libs "libcddb >= 0.9.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LIBCDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcddb >= 0.9.5"`
- else
- LIBCDDB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcddb >= 0.9.5"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBCDDB_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- :
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: new enough libcddb not found. CDDB access disabled" >&5
- $as_echo "$as_me: WARNING: new enough libcddb not found. CDDB access disabled" >&2;}
- HAVE_LIBCDDB=no
- elif test $pkg_failed = untried; then
- :
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: new enough libcddb not found. CDDB access disabled" >&5
- $as_echo "$as_me: WARNING: new enough libcddb not found. CDDB access disabled" >&2;}
- HAVE_LIBCDDB=no
- else
- LIBCDDB_CFLAGS=$pkg_cv_LIBCDDB_CFLAGS
- LIBCDDB_LIBS=$pkg_cv_LIBCDDB_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- HAVE_LIBCDDB=yes
- $as_echo "#define HAVE_LIBCDDB 1" >>confdefs.h
- for element in cdda; do
- eval "LIBS_${element}="'"'"$LIBCDDB_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in cdda; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $LIBCDDB_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- fi
- # Check whether --enable-dvb was given.
- if test "${enable_dvb+set}" = set; then :
- enableval=$enable_dvb;
- fi
- if test "${enable_dvb}" != "no"
- then
- if test "${have_dvbpsi}" = "yes" ; then :
- # Check whether --with-dvb was given.
- if test "${with_dvb+set}" = set; then :
- withval=$with_dvb;
- fi
- if test "${with_dvb}" != "no" -a -n "${with_dvb}"
- then
- for element in dvb; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -I${with_dvb}/include"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- CPPFLAGS="${CPPFLAGS_save} -I${with_dvb}/include"
- for ac_header in linux/dvb/version.h linux/dvb/frontend.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- PLUGINS="${PLUGINS} dvb"
- LTLIBdvb="libdvb_plugin.la"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux-dvb headers not found" >&5
- $as_echo "$as_me: WARNING: linux-dvb headers not found" >&2;}
- fi
- done
- CPPFLAGS="${CPPFLAGS_save}"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the dvb access module requires libdvbpsi" >&5
- $as_echo "$as_me: WARNING: the dvb access module requires libdvbpsi" >&2;}
- fi
- fi
- # Check whether --enable-screen was given.
- if test "${enable_screen+set}" = set; then :
- enableval=$enable_screen;
- fi
- if test "${enable_screen}" != "no"; then
- if test "${SYS}" = "darwin"; then
- for ac_header in OpenGL/gl.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "OpenGL/gl.h" "ac_cv_header_OpenGL_gl_h" "$ac_includes_default"
- if test "x$ac_cv_header_OpenGL_gl_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OPENGL_GL_H 1
- _ACEOF
- for ac_header in ApplicationServices/ApplicationServices.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
- if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_APPLICATIONSERVICES_APPLICATIONSERVICES_H 1
- _ACEOF
- PLUGINS="${PLUGINS} screen"
- LTLIBscreen="libscreen_plugin.la"
- for element in screen; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,OpenGL,-framework,ApplicationServices "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- fi
- done
- fi
- done
- elif test "${SYS}" = "mingw32"; then
- PLUGINS="${PLUGINS} screen"
- LTLIBscreen="libscreen_plugin.la"
- for element in screen; do
- eval "LIBS_${element}="'"'"-lgdi32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- elif test "${SYS}" = "mingwce"; then
- CPPFLAGS="${CPPFLAGS_save}"
- elif test "${SYS}" = "beos"; then
- PLUGINS="${PLUGINS} screen"
- LTLIBscreen="libscreen_plugin.la"
- for element in screen; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} "'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in screen; do
- eval "LIBS_${element}="'"'"-lbe "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- have_ipv6=no
- for ac_func in inet_pton
- do :
- ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
- if test "x$ac_cv_func_inet_pton" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INET_PTON 1
- _ACEOF
- have_ipv6=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lnsl" >&5
- $as_echo_n "checking for inet_pton in -lnsl... " >&6; }
- if test "${ac_cv_lib_nsl_inet_pton+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnsl $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 inet_pton ();
- int
- main ()
- {
- return inet_pton ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_nsl_inet_pton=yes
- else
- ac_cv_lib_nsl_inet_pton=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_nsl_inet_pton" >&5
- $as_echo "$ac_cv_lib_nsl_inet_pton" >&6; }
- if test "x$ac_cv_lib_nsl_inet_pton" = x""yes; then :
- have_ipv6=yes
- fi
- fi
- done
- if test "${have_ipv6}" = "yes"; then :
- $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
- fi
- for ac_func in inet_ntop
- do :
- ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
- if test "x$ac_cv_func_inet_ntop" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INET_NTOP 1
- _ACEOF
- $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
- fi
- done
- # Check whether --enable-ogg was given.
- if test "${enable_ogg+set}" = set; then :
- enableval=$enable_ogg;
- fi
- if test "${enable_ogg}" != "no"
- then
- # Check whether --with-ogg-tree was given.
- if test "${with_ogg_tree+set}" = set; then :
- withval=$with_ogg_tree;
- fi
- if test -n "${with_ogg_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libogg.a in ${with_ogg_tree}" >&5
- $as_echo_n "checking for libogg.a in ${with_ogg_tree}... " >&6; }
- real_ogg_tree="`cd ${with_ogg_tree} 2>/dev/null && pwd`"
- if test -z "${real_ogg_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_ogg_tree}" "$LINENO" 5
- fi
- if test -f "${real_ogg_tree}/src/.libs/libogg.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_ogg_tree}/src/.libs/libogg.a" >&5
- $as_echo "${real_ogg_tree}/src/.libs/libogg.a" >&6; }
- PLUGINS="${PLUGINS} ogg"
- LTLIBogg="libogg_plugin.la"
- if test "${enable_sout}" != "no"; then
- PLUGINS="${PLUGINS} mux_ogg"
- LTLIBmux_ogg="libmux_ogg_plugin.la"
- fi
- for element in ogg mux_ogg speex vorbis; do
- eval "LIBS_${element}="'"'"${real_ogg_tree}/src/.libs/libogg.a "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in ogg mux_ogg speex vorbis; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -I${real_ogg_tree}/include"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_ogg_tree}/src/.libs/libogg.a, make sure you compiled ogg in ${with_ogg_tree}" "$LINENO" 5
- fi
- else
- for ac_header in ogg/ogg.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "ogg/ogg.h" "ac_cv_header_ogg_ogg_h" "$ac_includes_default"
- if test "x$ac_cv_header_ogg_ogg_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OGG_OGG_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oggpack_read in -logg" >&5
- $as_echo_n "checking for oggpack_read in -logg... " >&6; }
- if test "${ac_cv_lib_ogg_oggpack_read+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-logg $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 oggpack_read ();
- int
- main ()
- {
- return oggpack_read ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ogg_oggpack_read=yes
- else
- ac_cv_lib_ogg_oggpack_read=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_ogg_oggpack_read" >&5
- $as_echo "$ac_cv_lib_ogg_oggpack_read" >&6; }
- if test "x$ac_cv_lib_ogg_oggpack_read" = x""yes; then :
- PLUGINS="${PLUGINS} ogg"
- LTLIBogg="libogg_plugin.la"
- if test "${enable_sout}" != "no"; then
- PLUGINS="${PLUGINS} mux_ogg"
- LTLIBmux_ogg="libmux_ogg_plugin.la"
- fi
- for element in ogg mux_ogg; do
- eval "LIBS_${element}="'"'"-logg "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- done
- fi
- fi
- # Check whether --enable-mkv was given.
- if test "${enable_mkv+set}" = set; then :
- enableval=$enable_mkv;
- fi
- if test "${enable_mkv}" != "no" -a "${CXX}" != ""; then
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- for ac_header in ebml/EbmlVersion.h
- do :
- ac_fn_cxx_check_header_mongrel "$LINENO" "ebml/EbmlVersion.h" "ac_cv_header_ebml_EbmlVersion_h" "$ac_includes_default"
- if test "x$ac_cv_header_ebml_EbmlVersion_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_EBML_EBMLVERSION_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libebml version >= 0.7.7" >&5
- $as_echo_n "checking for libebml version >= 0.7.7... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ebml/EbmlVersion.h>
- #ifdef LIBEBML_VERSION
- #if LIBEBML_VERSION >= 0x000706
- yes
- #endif
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for ac_header in matroska/KaxVersion.h
- do :
- ac_fn_cxx_check_header_mongrel "$LINENO" "matroska/KaxVersion.h" "ac_cv_header_matroska_KaxVersion_h" "$ac_includes_default"
- if test "x$ac_cv_header_matroska_KaxVersion_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_MATROSKA_KAXVERSION_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmatroska version >= 0.8.0" >&5
- $as_echo_n "checking for libmatroska version >= 0.8.0... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <matroska/KaxVersion.h>
- #ifdef LIBMATROSKA_VERSION
- #if LIBMATROSKA_VERSION >= 0x000705
- yes
- #endif
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for ac_header in matroska/KaxAttachments.h
- do :
- ac_fn_cxx_check_header_mongrel "$LINENO" "matroska/KaxAttachments.h" "ac_cv_header_matroska_KaxAttachments_h" "$ac_includes_default"
- if test "x$ac_cv_header_matroska_KaxAttachments_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_MATROSKA_KAXATTACHMENTS_H 1
- _ACEOF
- fi
- done
- for element in mkv; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} "'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- if test "${SYS}" = "darwin"; then
- for element in mkv; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -O1"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lebml_pic" >&5
- $as_echo_n "checking for main in -lebml_pic... " >&6; }
- if test "${ac_cv_lib_ebml_pic_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lebml_pic $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return main ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_ebml_pic_main=yes
- else
- ac_cv_lib_ebml_pic_main=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_ebml_pic_main" >&5
- $as_echo "$ac_cv_lib_ebml_pic_main" >&6; }
- if test "x$ac_cv_lib_ebml_pic_main" = x""yes; then :
- PLUGINS="${PLUGINS} mkv"
- LTLIBmkv="libmkv_plugin.la"
- for element in mkv; do
- eval "LIBS_${element}="'"'"-lmatroska -lebml_pic "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lebml" >&5
- $as_echo_n "checking for main in -lebml... " >&6; }
- if test "${ac_cv_lib_ebml_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lebml $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return main ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_ebml_main=yes
- else
- ac_cv_lib_ebml_main=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_ebml_main" >&5
- $as_echo "$ac_cv_lib_ebml_main" >&6; }
- if test "x$ac_cv_lib_ebml_main" = x""yes; then :
- PLUGINS="${PLUGINS} mkv"
- LTLIBmkv="libmkv_plugin.la"
- for element in mkv; do
- eval "LIBS_${element}="'"'"-lmatroska -lebml "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "Your libmatroska is too old: you may get a more recent one from http://dl.matroska.org/downloads/libmatroska/. Alternatively you can use --disable-mkv to disable the matroska plugin." "$LINENO" 5
- fi
- rm -f conftest*
- fi
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "Your libebml is too old: you may get a more recent one from http://dl.matroska.org/downloads/libebml/. Alternatively you can use --disable-mkv to disable the matroska plugin." "$LINENO" 5
- fi
- rm -f conftest*
- fi
- done
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- # Check whether --enable-mod was given.
- if test "${enable_mod+set}" = set; then :
- enableval=$enable_mod;
- fi
- if test "${enable_mod}" != "no"
- then
- # Check whether --with-mod-tree was given.
- if test "${with_mod_tree+set}" = set; then :
- withval=$with_mod_tree;
- fi
- if test -n "${with_mod_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmodplug.a in ${with_mod_tree}" >&5
- $as_echo_n "checking for libmodplug.a in ${with_mod_tree}... " >&6; }
- real_mod_tree="`cd ${with_mod_tree} 2>/dev/null && pwd`"
- if test -z "${real_mod_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_mod_tree}" "$LINENO" 5
- fi
- if test -f "${real_mod_tree}/src/.libs/libmodplug.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_mod_tree}/src/.libs/libmodplug.a" >&5
- $as_echo "${real_mod_tree}/src/.libs/libmodplug.a" >&6; }
- PLUGINS="${PLUGINS} mod"
- LTLIBmod="libmod_plugin.la"
- for element in mod; do
- eval "LIBS_${element}="'"'"${real_mod_tree}/src/.libs/libmodplug.a -lstdc++ "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in mod; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -I${real_mod_tree}/include"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_mod_tree}/src/.libs/libmodplug.a, make sure you compiled mod in ${with_mod_tree}" "$LINENO" 5
- fi
- else
- for ac_header in libmodplug/modplug.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "libmodplug/modplug.h" "ac_cv_header_libmodplug_modplug_h" "$ac_includes_default"
- if test "x$ac_cv_header_libmodplug_modplug_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBMODPLUG_MODPLUG_H 1
- _ACEOF
- PLUGINS="${PLUGINS} mod"
- LTLIBmod="libmod_plugin.la"
- for element in mod; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} "'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in mod; do
- eval "LIBS_${element}="'"'"-lmodplug -lstdc++ "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- fi
- fi
- # Check whether --enable-mpc was given.
- if test "${enable_mpc+set}" = set; then :
- enableval=$enable_mpc;
- fi
- if test "${enable_mpc}" != "no"
- then
- for ac_header in mpc/mpcdec.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "mpc/mpcdec.h" "ac_cv_header_mpc_mpcdec_h" "$ac_includes_default"
- if test "x$ac_cv_header_mpc_mpcdec_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_MPC_MPCDEC_H 1
- _ACEOF
- PLUGINS="${PLUGINS} mpc"
- LTLIBmpc="libmpc_plugin.la"
- for element in mpc; do
- eval "LIBS_${element}="'"'"-lmpcdec "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- for ac_header in mpcdec/mpcdec.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "mpcdec/mpcdec.h" "ac_cv_header_mpcdec_mpcdec_h" "$ac_includes_default"
- if test "x$ac_cv_header_mpcdec_mpcdec_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_MPCDEC_MPCDEC_H 1
- _ACEOF
- PLUGINS="${PLUGINS} mpc"
- LTLIBmpc="libmpc_plugin.la"
- for element in mpc; do
- eval "LIBS_${element}="'"'"-lmpcdec "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- fi
- done
- fi
- # Check whether --enable-gme was given.
- if test "${enable_gme+set}" = set; then :
- enableval=$enable_gme;
- fi
- if test "${enable_gme}" != "no" -a "${CXX}" != "";
- then
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- # Check whether --with-gme-tree was given.
- if test "${with_gme_tree+set}" = set; then :
- withval=$with_gme_tree;
- fi
- if test -n "${with_gme_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgme.a in ${with_mod_tree}" >&5
- $as_echo_n "checking for libgme.a in ${with_mod_tree}... " >&6; }
- real_gme_tree="`cd ${with_gme_tree} 2>/dev/null && pwd`"
- if test -z "${real_gme_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_gme_tree}" "$LINENO" 5
- fi
- if test -f "${real_gme_tree}/gme/libgme.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_gme_tree}/gme/libgme.a" >&5
- $as_echo "${real_gme_tree}/gme/libgme.a" >&6; }
- PLUGINS="${PLUGINS} gme"
- LTLIBgme="libgme_plugin.la"
- for element in gme; do
- eval "LIBS_${element}="'"'"${real_gme_tree}/gme/libgme.a "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in gme; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -I${real_gme_tree}/gme"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_mod_tree}/gme/libgme.a, make sure you compiled gme in ${with_gme_tree}" "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: only static linking is available, you must provide a gme-tree" >&5
- $as_echo "$as_me: WARNING: only static linking is available, you must provide a gme-tree" >&2;}
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- # Check whether --with- was given.
- if test "${with_+set}" = set; then :
- withval=$with_;
- fi
- # Check whether --enable-wma-fixed was given.
- if test "${enable_wma_fixed+set}" = set; then :
- enableval=$enable_wma_fixed;
- fi
- if test "${enable_wma_fixed}" = "yes"
- then
- PLUGINS="${PLUGINS} wma_fixed"
- LTLIBwma_fixed="libwma_fixed_plugin.la"
- fi
- # Check whether --enable-shine was given.
- if test "${enable_shine+set}" = set; then :
- enableval=$enable_shine;
- fi
- if test "${enable_shine}" = "yes"
- then
- PLUGINS="${PLUGINS} shine"
- LTLIBshine="libshine_plugin.la"
- fi
- # Check whether --enable-mad was given.
- if test "${enable_mad+set}" = set; then :
- enableval=$enable_mad;
- fi
- if test "${enable_mad}" != "no"
- then
- # Check whether --with-mad was given.
- if test "${with_mad+set}" = set; then :
- withval=$with_mad;
- fi
- if test "${with_mad}" != "no" -a -n "${with_mad}"
- then
- for element in mpgatofixed32; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${with_mad}/include"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in mpgatofixed32; do
- eval "LIBS_${element}="'"'"-L${with_mad}/lib "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- # Check whether --with-mad-tree was given.
- if test "${with_mad_tree+set}" = set; then :
- withval=$with_mad_tree;
- fi
- if test "${with_mad_tree}" != "no" -a -n "${with_mad_tree}"
- then
- real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
- if test -z "${real_mad_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "${with_mad_tree} directory doesn't exist" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad.h in ${real_mad_tree}" >&5
- $as_echo_n "checking for mad.h in ${real_mad_tree}... " >&6; }
- if test -f ${real_mad_tree}/mad.h
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in mpgatofixed32; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_mad_tree}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in mpgatofixed32; do
- eval "LIBS_${element}="'"'"-L${real_mad_tree}/.libs "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- LDFLAGS="${LDFLAGS_save} ${LIBS_mpgatofixed32}"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad_bit_init in -lmad" >&5
- $as_echo_n "checking for mad_bit_init in -lmad... " >&6; }
- if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lmad $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 mad_bit_init ();
- int
- main ()
- {
- return mad_bit_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_mad_mad_bit_init=yes
- else
- ac_cv_lib_mad_mad_bit_init=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_mad_mad_bit_init" >&5
- $as_echo "$ac_cv_lib_mad_mad_bit_init" >&6; }
- if test "x$ac_cv_lib_mad_mad_bit_init" = x""yes; then :
- PLUGINS="${PLUGINS} mpgatofixed32"
- LTLIBmpgatofixed32="libmpgatofixed32_plugin.la"
- for element in mpgatofixed32; do
- eval "LIBS_${element}="'"'"-lmad "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- as_fn_error "the specified tree hasn't been compiled " "$LINENO" 5
- fi
- LDFLAGS="${LDFLAGS_save}"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "the specified tree doesn't have mad.h" "$LINENO" 5
- fi
- else
- CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_mpgatofixed32}"
- LDFLAGS="${LDFLAGS_save} ${LIBS_mpgatofixed32}"
- for ac_header in mad.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "mad.h" "ac_cv_header_mad_h" "$ac_includes_default"
- if test "x$ac_cv_header_mad_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_MAD_H 1
- _ACEOF
- else
- as_fn_error "Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin." "$LINENO" 5
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad_bit_init in -lmad" >&5
- $as_echo_n "checking for mad_bit_init in -lmad... " >&6; }
- if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lmad $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 mad_bit_init ();
- int
- main ()
- {
- return mad_bit_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_mad_mad_bit_init=yes
- else
- ac_cv_lib_mad_mad_bit_init=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_mad_mad_bit_init" >&5
- $as_echo "$ac_cv_lib_mad_mad_bit_init" >&6; }
- if test "x$ac_cv_lib_mad_mad_bit_init" = x""yes; then :
- PLUGINS="${PLUGINS} mpgatofixed32"
- LTLIBmpgatofixed32="libmpgatofixed32_plugin.la"
- for element in mpgatofixed32; do
- eval "LIBS_${element}="'"'"-lmad "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- as_fn_error "Cannot find libmad library..." "$LINENO" 5
- fi
- CPPFLAGS="${CPPFLAGS_save}"
- LDFLAGS="${LDFLAGS_save}"
- fi
- fi
- # Check whether --enable-id3tag was given.
- if test "${enable_id3tag+set}" = set; then :
- enableval=$enable_id3tag;
- fi
- if test "${enable_id3tag}" = "yes"; then :
- for ac_header in id3tag.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "id3tag.h" "ac_cv_header_id3tag_h" "$ac_includes_default"
- if test "x$ac_cv_header_id3tag_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ID3TAG_H 1
- _ACEOF
- if test "${have_zlib}" = "yes"; then :
- for element in id3tag; do
- eval "LIBS_${element}="'"'"-lid3tag -lz "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- PLUGINS="${PLUGINS} id3tag"
- LTLIBid3tag="libid3tag_plugin.la"
- fi
- fi
- done
- fi
- if test "${with_ffmpeg_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ffmpeg-tree is deprecated. Use PKG_CONFIG_PATH instead." >&5
- $as_echo "$as_me: WARNING: --with-ffmpeg-tree is deprecated. Use PKG_CONFIG_PATH instead." >&2;}
- fi
- # Check whether --enable-avcodec was given.
- if test "${enable_avcodec+set}" = set; then :
- enableval=$enable_avcodec;
- fi
- if test "${enable_avcodec}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVCODEC" >&5
- $as_echo_n "checking for AVCODEC... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$AVCODEC_CFLAGS"; then
- pkg_cv_AVCODEC_CFLAGS="$AVCODEC_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libavcodec libavutil""; } >&5
- ($PKG_CONFIG --exists --print-errors "libavcodec libavutil") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_AVCODEC_CFLAGS=`$PKG_CONFIG --cflags "libavcodec libavutil" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$AVCODEC_LIBS"; then
- pkg_cv_AVCODEC_LIBS="$AVCODEC_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libavcodec libavutil""; } >&5
- ($PKG_CONFIG --exists --print-errors "libavcodec libavutil") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_AVCODEC_LIBS=`$PKG_CONFIG --libs "libavcodec libavutil" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- AVCODEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavcodec libavutil"`
- else
- AVCODEC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavcodec libavutil"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$AVCODEC_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error." "$LINENO" 5
- elif test $pkg_failed = untried; then
- as_fn_error "Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error." "$LINENO" 5
- else
- AVCODEC_CFLAGS=$pkg_cv_AVCODEC_CFLAGS
- AVCODEC_LIBS=$pkg_cv_AVCODEC_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- CPPFLAGS_save="${CPPFLAGS}"
- CFLAGS_save="${CFLAGS}"
- CXXFLAGS_save="${CXXFLAGS}"
- OBJCFLAGS_save="${OBJCFLAGS}"
- LDFLAGS_save="${LDFLAGS}"
- LIBS_save="${LIBS}"
- CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}"
- CFLAGS="${CFLAGS} ${AVCODEC_CFLAGS}"
- for ac_header in libavcodec/avcodec.h ffmpeg/avcodec.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in libavutil/avutil.h ffmpeg/avutil.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- PLUGINS="${PLUGINS} avcodec"
- LTLIBavcodec="libavcodec_plugin.la"
- for element in avcodec; do
- eval "LIBS_${element}="'"'"$AVCODEC_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in avcodec; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $AVCODEC_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- CPPFLAGS="${CPPFLAGS_save}"
- CFLAGS="${CFLAGS_save}"
- CXXFLAGS="${CXXFLAGS_save}"
- OBJCFLAGS="${OBJCFLAGS_save}"
- LDFLAGS="${LDFLAGS_save}"
- LIBS="${LIBS_save}"
- fi
- fi
- # Check whether --enable-avformat was given.
- if test "${enable_avformat+set}" = set; then :
- enableval=$enable_avformat;
- fi
- if test "${enable_avformat}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVFORMAT" >&5
- $as_echo_n "checking for AVFORMAT... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$AVFORMAT_CFLAGS"; then
- pkg_cv_AVFORMAT_CFLAGS="$AVFORMAT_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libavformat libavutil""; } >&5
- ($PKG_CONFIG --exists --print-errors "libavformat libavutil") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_AVFORMAT_CFLAGS=`$PKG_CONFIG --cflags "libavformat libavutil" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$AVFORMAT_LIBS"; then
- pkg_cv_AVFORMAT_LIBS="$AVFORMAT_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libavformat libavutil""; } >&5
- ($PKG_CONFIG --exists --print-errors "libavformat libavutil") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_AVFORMAT_LIBS=`$PKG_CONFIG --libs "libavformat libavutil" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- AVFORMAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavformat libavutil"`
- else
- AVFORMAT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavformat libavutil"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$AVFORMAT_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "Could not find libavformat or libavutil. Use --disable-avformat to ignore this error." "$LINENO" 5
- elif test $pkg_failed = untried; then
- as_fn_error "Could not find libavformat or libavutil. Use --disable-avformat to ignore this error." "$LINENO" 5
- else
- AVFORMAT_CFLAGS=$pkg_cv_AVFORMAT_CFLAGS
- AVFORMAT_LIBS=$pkg_cv_AVFORMAT_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- CPPFLAGS_save="${CPPFLAGS}"
- CFLAGS_save="${CFLAGS}"
- CXXFLAGS_save="${CXXFLAGS}"
- OBJCFLAGS_save="${OBJCFLAGS}"
- LDFLAGS_save="${LDFLAGS}"
- LIBS_save="${LIBS}"
- CPPFLAGS="${CPPFLAGS} ${AVFORMAT_CFLAGS}"
- CFLAGS="${CFLAGS} ${AVFORMAT_CFLAGS}"
- for ac_header in libavformat/avformat.h ffmpeg/avformat.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in libavutil/avutil.h ffmpeg/avutil.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- PLUGINS="${PLUGINS} avformat"
- LTLIBavformat="libavformat_plugin.la"
- for element in avformat; do
- eval "LIBS_${element}="'"'"$AVFORMAT_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in avformat; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $AVFORMAT_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- CPPFLAGS="${CPPFLAGS_save}"
- CFLAGS="${CFLAGS_save}"
- CXXFLAGS="${CXXFLAGS_save}"
- OBJCFLAGS="${OBJCFLAGS_save}"
- LDFLAGS="${LDFLAGS_save}"
- LIBS="${LIBS_save}"
- fi
- fi
- # Check whether --enable-swscale was given.
- if test "${enable_swscale+set}" = set; then :
- enableval=$enable_swscale;
- fi
- if test "${enable_swscale}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWSCALE" >&5
- $as_echo_n "checking for SWSCALE... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$SWSCALE_CFLAGS"; then
- pkg_cv_SWSCALE_CFLAGS="$SWSCALE_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libswscale""; } >&5
- ($PKG_CONFIG --exists --print-errors "libswscale") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_SWSCALE_CFLAGS=`$PKG_CONFIG --cflags "libswscale" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$SWSCALE_LIBS"; then
- pkg_cv_SWSCALE_LIBS="$SWSCALE_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libswscale""; } >&5
- ($PKG_CONFIG --exists --print-errors "libswscale") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_SWSCALE_LIBS=`$PKG_CONFIG --libs "libswscale" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- SWSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libswscale"`
- else
- SWSCALE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libswscale"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$SWSCALE_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "Could not find libswscale. Use --disable-swscale to ignore this error. Proper software scaling and some video chroma conversion will be missing." "$LINENO" 5
- elif test $pkg_failed = untried; then
- as_fn_error "Could not find libswscale. Use --disable-swscale to ignore this error. Proper software scaling and some video chroma conversion will be missing." "$LINENO" 5
- else
- SWSCALE_CFLAGS=$pkg_cv_SWSCALE_CFLAGS
- SWSCALE_LIBS=$pkg_cv_SWSCALE_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- CPPFLAGS_save="${CPPFLAGS}"
- CFLAGS_save="${CFLAGS}"
- CXXFLAGS_save="${CXXFLAGS}"
- OBJCFLAGS_save="${OBJCFLAGS}"
- LDFLAGS_save="${LDFLAGS}"
- LIBS_save="${LIBS}"
- CPPFLAGS="${CPPFLAGS} ${SWSCALE_CFLAGS}"
- CFLAGS="${CFLAGS} ${SWSCALE_CFLAGS}"
- for ac_header in libswscale/swscale.h ffmpeg/swscale.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- PLUGINS="${PLUGINS} swscale"
- LTLIBswscale="libswscale_plugin.la"
- for element in swscale; do
- eval "LIBS_${element}="'"'"$SWSCALE_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in swscale; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $SWSCALE_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- CPPFLAGS="${CPPFLAGS_save}"
- CFLAGS="${CFLAGS_save}"
- CXXFLAGS="${CXXFLAGS_save}"
- OBJCFLAGS="${OBJCFLAGS_save}"
- LDFLAGS="${LDFLAGS_save}"
- LIBS="${LIBS_save}"
- fi
- fi
- # Check whether --enable-postproc was given.
- if test "${enable_postproc+set}" = set; then :
- enableval=$enable_postproc;
- fi
- if test "${enable_postproc}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSTPROC" >&5
- $as_echo_n "checking for POSTPROC... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$POSTPROC_CFLAGS"; then
- pkg_cv_POSTPROC_CFLAGS="$POSTPROC_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libpostproc libavutil""; } >&5
- ($PKG_CONFIG --exists --print-errors "libpostproc libavutil") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_POSTPROC_CFLAGS=`$PKG_CONFIG --cflags "libpostproc libavutil" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$POSTPROC_LIBS"; then
- pkg_cv_POSTPROC_LIBS="$POSTPROC_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libpostproc libavutil""; } >&5
- ($PKG_CONFIG --exists --print-errors "libpostproc libavutil") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_POSTPROC_LIBS=`$PKG_CONFIG --libs "libpostproc libavutil" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- POSTPROC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpostproc libavutil"`
- else
- POSTPROC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpostproc libavutil"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$POSTPROC_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "Could not find libpostproc. Use --disable-postproc to ignore this error." "$LINENO" 5
- elif test $pkg_failed = untried; then
- as_fn_error "Could not find libpostproc. Use --disable-postproc to ignore this error." "$LINENO" 5
- else
- POSTPROC_CFLAGS=$pkg_cv_POSTPROC_CFLAGS
- POSTPROC_LIBS=$pkg_cv_POSTPROC_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- CPPFLAGS_save="${CPPFLAGS}"
- CFLAGS_save="${CFLAGS}"
- CXXFLAGS_save="${CXXFLAGS}"
- OBJCFLAGS_save="${OBJCFLAGS}"
- LDFLAGS_save="${LDFLAGS}"
- LIBS_save="${LIBS}"
- CPPFLAGS="${CPPFLAGS} ${POSTPROC_CFLAGS}"
- CFLAGS="${CFLAGS} ${POSTPROC_CFLAGS}"
- for ac_header in libpostproc/postproc.h postproc/postprocess.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- PLUGINS="${PLUGINS} postproc"
- LTLIBpostproc="libpostproc_plugin.la"
- for element in postproc; do
- eval "LIBS_${element}="'"'"$POSTPROC_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in postproc; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $POSTPROC_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- CPPFLAGS="${CPPFLAGS_save}"
- CFLAGS="${CFLAGS_save}"
- CXXFLAGS="${CXXFLAGS_save}"
- OBJCFLAGS="${OBJCFLAGS_save}"
- LDFLAGS="${LDFLAGS_save}"
- LIBS="${LIBS_save}"
- fi
- fi
- # Check whether --enable-faad was given.
- if test "${enable_faad+set}" = set; then :
- enableval=$enable_faad;
- fi
- if test "${enable_faad}" = "yes"
- then
- # Check whether --with-faad-tree was given.
- if test "${with_faad_tree+set}" = set; then :
- withval=$with_faad_tree;
- fi
- if test -n "${with_faad_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfaad.a in ${with_faad_tree}" >&5
- $as_echo_n "checking for libfaad.a in ${with_faad_tree}... " >&6; }
- real_faad_tree="`cd ${with_faad_tree} 2>/dev/null && pwd`"
- if test -z "${real_faad_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_faad_tree}" "$LINENO" 5
- fi
- if test -f "${real_faad_tree}/libfaad/.libs/libfaad.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_faad_tree}/libfaad/.libs/libfaad.a" >&5
- $as_echo "${real_faad_tree}/libfaad/.libs/libfaad.a" >&6; }
- PLUGINS="${PLUGINS} faad"
- LTLIBfaad="libfaad_plugin.la"
- for element in faad; do
- eval "LIBS_${element}="'"'"${real_faad_tree}/libfaad/.libs/libfaad.a "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in faad; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_faad_tree}/include"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_faad_tree}/libfaad/.libs/libfaad.a, make sure you compiled libfaad in ${with_faad_tree}" "$LINENO" 5
- fi
- else
- CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_faad}"
- LDFLAGS="${LDFLAGS_save} ${LIBS_faad}"
- for ac_header in faad.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "faad.h" "ac_cv_header_faad_h" "$ac_includes_default"
- if test "x$ac_cv_header_faad_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FAAD_H 1
- _ACEOF
- else
- as_fn_error "Cannot find development headers for libfaad..." "$LINENO" 5
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for faacDecOpen in -lfaad" >&5
- $as_echo_n "checking for faacDecOpen in -lfaad... " >&6; }
- if test "${ac_cv_lib_faad_faacDecOpen+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lfaad $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 faacDecOpen ();
- int
- main ()
- {
- return faacDecOpen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_faad_faacDecOpen=yes
- else
- ac_cv_lib_faad_faacDecOpen=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_faad_faacDecOpen" >&5
- $as_echo "$ac_cv_lib_faad_faacDecOpen" >&6; }
- if test "x$ac_cv_lib_faad_faacDecOpen" = x""yes; then :
- PLUGINS="${PLUGINS} faad"
- LTLIBfaad="libfaad_plugin.la"
- for element in faad; do
- eval "LIBS_${element}="'"'"-lfaad "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeAACDecOpen in -lfaad" >&5
- $as_echo_n "checking for NeAACDecOpen in -lfaad... " >&6; }
- if test "${ac_cv_lib_faad_NeAACDecOpen+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lfaad $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 NeAACDecOpen ();
- int
- main ()
- {
- return NeAACDecOpen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_faad_NeAACDecOpen=yes
- else
- ac_cv_lib_faad_NeAACDecOpen=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_faad_NeAACDecOpen" >&5
- $as_echo "$ac_cv_lib_faad_NeAACDecOpen" >&6; }
- if test "x$ac_cv_lib_faad_NeAACDecOpen" = x""yes; then :
- PLUGINS="${PLUGINS} faad"
- LTLIBfaad="libfaad_plugin.la"
- for element in faad; do
- eval "LIBS_${element}="'"'"-lfaad "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- as_fn_error "Cannot find libfaad library..." "$LINENO" 5
- fi
- fi
- LDFLAGS="${LDFLAGS_save}"
- CPPFLAGS="${CPPFLAGS_save}"
- fi
- fi
- # Check whether --enable-twolame was given.
- if test "${enable_twolame+set}" = set; then :
- enableval=$enable_twolame;
- fi
- if test "${enable_twolame}" = "yes"
- then
- # Check whether --with-twolame-tree was given.
- if test "${with_twolame_tree+set}" = set; then :
- withval=$with_twolame_tree;
- fi
- if test -n "${with_twolame_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtwolame.a in ${with_twolame_tree}" >&5
- $as_echo_n "checking for libtwolame.a in ${with_twolame_tree}... " >&6; }
- real_twolame_tree="`cd ${with_twolame_tree} 2>/dev/null && pwd`"
- if test -z "${real_twolame_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_twolame_tree}" "$LINENO" 5
- fi
- if test -f "${real_twolame_tree}/libtwolame/.libs/libtwolame.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_twolame_tree}/libtwolame/.libs/libtwolame.a" >&5
- $as_echo "${real_twolame_tree}/libtwolame/.libs/libtwolame.a" >&6; }
- PLUGINS="${PLUGINS} twolame"
- LTLIBtwolame="libtwolame_plugin.la"
- for element in twolame; do
- eval "LIBS_${element}="'"'"${real_twolame_tree}/libtwolame/.libs/libtwolame.a "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in twolame; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_twolame_tree}/libtwolame -DLIBTWOLAME_STATIC"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_twolame_tree}/libtwolame/.libs/libtwolame.a, make sure you compiled libtwolame in ${with_twolame_tree}" "$LINENO" 5
- fi
- else
- CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_twolame} -DLIBTWOLAME_STATIC"
- LDFLAGS="${LDFLAGS_save} ${LIBS_twolame}"
- for ac_header in twolame.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "twolame.h" "ac_cv_header_twolame_h" "$ac_includes_default"
- if test "x$ac_cv_header_twolame_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_TWOLAME_H 1
- _ACEOF
- else
- as_fn_error "Cannot find development header for libtwolame..." "$LINENO" 5
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for twolame_init in -ltwolame" >&5
- $as_echo_n "checking for twolame_init in -ltwolame... " >&6; }
- if test "${ac_cv_lib_twolame_twolame_init+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltwolame $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 twolame_init ();
- int
- main ()
- {
- return twolame_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_twolame_twolame_init=yes
- else
- ac_cv_lib_twolame_twolame_init=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_twolame_twolame_init" >&5
- $as_echo "$ac_cv_lib_twolame_twolame_init" >&6; }
- if test "x$ac_cv_lib_twolame_twolame_init" = x""yes; then :
- PLUGINS="${PLUGINS} twolame"
- LTLIBtwolame="libtwolame_plugin.la"
- for element in twolame; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -DLIBTWOLAME_STATIC"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in twolame; do
- eval "LIBS_${element}="'"'"-ltwolame "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- as_fn_error "Cannot find libtwolame library..." "$LINENO" 5
- fi
- LDFLAGS="${LDFLAGS_save}"
- CPPFLAGS="${CPPFLAGS_save}"
- fi
- fi
- # Check whether --enable-quicktime was given.
- if test "${enable_quicktime+set}" = set; then :
- enableval=$enable_quicktime;
- fi
- if test "${enable_quicktime}" = "yes"; then
- if test "${SYS}" = "mingw32"; then
- PLUGINS="${PLUGINS} quicktime"
- LTLIBquicktime="libquicktime_plugin.la"
- else
- for ac_header in QuickTime/QuickTime.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "QuickTime/QuickTime.h" "ac_cv_header_QuickTime_QuickTime_h" "$ac_includes_default"
- if test "x$ac_cv_header_QuickTime_QuickTime_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_QUICKTIME_QUICKTIME_H 1
- _ACEOF
- PLUGINS="${PLUGINS} quicktime"
- LTLIBquicktime="libquicktime_plugin.la"
- for element in quicktime; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,QuickTime,-framework,Carbon "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- else
- as_fn_error "cannot find QuickTime headers" "$LINENO" 5
- fi
- done
- fi
- fi
- # Check whether --enable-real was given.
- if test "${enable_real+set}" = set; then :
- enableval=$enable_real;
- fi
- if test "${enable_real}" = "yes"; then
- PLUGINS="${PLUGINS} realaudio"
- LTLIBrealaudio="librealaudio_plugin.la"
- PLUGINS="${PLUGINS} realvideo"
- LTLIBrealvideo="librealvideo_plugin.la"
- fi
- # Check whether --enable-realrtsp was given.
- if test "${enable_realrtsp+set}" = set; then :
- enableval=$enable_realrtsp;
- fi
- if test "${enable_realrtsp}" = "yes"; then
- PLUGINS="${PLUGINS} access_realrtsp"
- LTLIBaccess_realrtsp="libaccess_realrtsp_plugin.la"
- fi
- # Check whether --enable-libsysfs was given.
- if test "${enable_libsysfs+set}" = set; then :
- enableval=$enable_libsysfs;
- fi
- if test "${enable_libsysfs}" != "no"; then :
- for ac_header in sysfs/libsysfs.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "sysfs/libsysfs.h" "ac_cv_header_sysfs_libsysfs_h" "$ac_includes_default"
- if test "x$ac_cv_header_sysfs_libsysfs_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SYSFS_LIBSYSFS_H 1
- _ACEOF
- for element in mp4 mkv; do
- eval "LIBS_${element}="'"'"-lsysfs "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- fi
- # Check whether --enable-libtar was given.
- if test "${enable_libtar+set}" = set; then :
- enableval=$enable_libtar;
- fi
- if test "${enable_libtar}" != "no"; then :
- for ac_header in libtar.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "libtar.h" "ac_cv_header_libtar_h" "$ac_includes_default"
- if test "x$ac_cv_header_libtar_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBTAR_H 1
- _ACEOF
- for element in skins2; do
- eval "LIBS_${element}="'"'"-ltar "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- fi
- # Check whether --enable-a52 was given.
- if test "${enable_a52+set}" = set; then :
- enableval=$enable_a52;
- fi
- if test "${enable_a52}" != "no"
- then
- # Check whether --with-a52 was given.
- if test "${with_a52+set}" = set; then :
- withval=$with_a52;
- fi
- # Check whether --with-a52-tree was given.
- if test "${with_a52_tree+set}" = set; then :
- withval=$with_a52_tree;
- fi
- if test "${with_a52_tree}" != "no" -a -n "${with_a52_tree}"
- then
- real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
- if test -z "${real_a52_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "${with_a52_tree} directory doesn't exist" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a52.h in ${real_a52_tree}/include" >&5
- $as_echo_n "checking for a52.h in ${real_a52_tree}/include... " >&6; }
- if test -f ${real_a52_tree}/include/a52.h
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in a52tofloat32; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_a52_tree}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in a52tofloat32; do
- eval "LIBS_${element}="'"'"-L${real_a52_tree}/liba52/.libs "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- LDFLAGS="${LDFLAGS_save} ${LIBS_a52tofloat32}"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a52_free in -la52" >&5
- $as_echo_n "checking for a52_free in -la52... " >&6; }
- if test "${ac_cv_lib_a52_a52_free+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-la52 $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 a52_free ();
- int
- main ()
- {
- return a52_free ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_a52_a52_free=yes
- else
- ac_cv_lib_a52_a52_free=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_a52_a52_free" >&5
- $as_echo "$ac_cv_lib_a52_a52_free" >&6; }
- if test "x$ac_cv_lib_a52_a52_free" = x""yes; then :
- PLUGINS="${PLUGINS} a52tofloat32"
- LTLIBa52tofloat32="liba52tofloat32_plugin.la"
- for element in a52tofloat32; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -DUSE_A52DEC_TREE"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in a52tofloat32; do
- eval "LIBS_${element}="'"'"-la52 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- if test -f ${real_a52_tree}/liba52/.libs/liba52.a
- then
- as_fn_error "make sure you have at least a52dec-0.7.3 ($real_a52_tree)" "$LINENO" 5
- else
- as_fn_error "the specified tree hasn't been compiled" "$LINENO" 5
- fi
- fi
- LDFLAGS="${LDFLAGS_save}"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "the specified tree doesn't have a52.h" "$LINENO" 5
- fi
- else
- if test -z "${with_a52}"
- then
- LDFLAGS_test=""
- CPPFLAGS_test=""
- else
- LDFLAGS_test="-L${with_a52}/lib"
- CPPFLAGS_test="-I${with_a52}/include"
- fi
- CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_test} ${CPPFLAGS_a52tofloat32}"
- LDFLAGS="${LDFLAGS_save} ${LDFLAGS_test} ${LIBS_a52tofloat32}"
- for ac_header in a52dec/a52.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "a52dec/a52.h" "ac_cv_header_a52dec_a52_h" "$ac_includes_default"
- if test "x$ac_cv_header_a52dec_a52_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_A52DEC_A52_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a52_free in -la52" >&5
- $as_echo_n "checking for a52_free in -la52... " >&6; }
- if test "${ac_cv_lib_a52_a52_free+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-la52 $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 a52_free ();
- int
- main ()
- {
- return a52_free ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_a52_a52_free=yes
- else
- ac_cv_lib_a52_a52_free=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_a52_a52_free" >&5
- $as_echo "$ac_cv_lib_a52_a52_free" >&6; }
- if test "x$ac_cv_lib_a52_a52_free" = x""yes; then :
- PLUGINS="${PLUGINS} a52tofloat32"
- LTLIBa52tofloat32="liba52tofloat32_plugin.la"
- for element in a52tofloat32; do
- eval "LIBS_${element}="'"'"${LDFLAGS_test} -la52 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in a52tofloat32; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${CPPFLAGS_test}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- as_fn_error "Could not find liba52 on your system: you may get it from http://liba52.sf.net/. Alternatively you can use --disable-a52 to disable the a52 plugin." "$LINENO" 5
- fi
- else
- as_fn_error "Could not find liba52 on your system: you may get it from http://liba52.sf.net/. Alternatively you can use --disable-a52 to disable the a52 plugin." "$LINENO" 5
- fi
- done
- CPPFLAGS="${CPPFLAGS_save}"
- LDFLAGS="${LDFLAGS_save}"
- fi
- fi
- # Check whether --with-a52-fixed was given.
- if test "${with_a52_fixed+set}" = set; then :
- withval=$with_a52_fixed;
- for element in a52tofloat32; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -DLIBA52_FIXED"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- fi
- if test "x${enable_dts}" != "x"; then :
- as_fn_error "--enable-dts is obsolete. Please use libdca and --enable-dca." "$LINENO" 5
- fi
- if test "x${with_dts_tree}" != "x"; then :
- as_fn_error "--with-dts-tree is obsolete. Please use libdca and --with-dca-tree." "$LINENO" 5
- fi
- # Check whether --enable-dca was given.
- if test "${enable_dca+set}" = set; then :
- enableval=$enable_dca;
- fi
- if test "${enable_dca}" != "no"; then :
- # Check whether --with-dca-tree was given.
- if test "${with_dca_tree+set}" = set; then :
- withval=$with_dca_tree;
- else
- with_dca_tree="no"
- fi
- if test "${with_dca_tree}" != "no"; then :
- real_dca_tree="`cd ${with_dca_tree} 2>/dev/null && pwd`"
- if test -z "${real_dca_tree}"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "${with_dca_tree} directory doesn't exist" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdca in ${real_dca_tree}" >&5
- $as_echo_n "checking for libdca in ${real_dca_tree}... " >&6; }
- if test -f "${real_dca_tree}/libdca/.libs/libdca.a"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in dtstofloat32; do
- eval "LIBS_${element}="'"'"${real_dca_tree}/libdca/.libs/libdca.a "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- if test -f "${real_dca_tree}/include/dca.h"; then :
- for element in dtstofloat32; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_dca_tree}/include"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- for element in dtstofloat32; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_dca_tree}/../include"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "the specified tree doesn't have libdca/.libs/libdca.a" "$LINENO" 5
- fi
- else
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DCA" >&5
- $as_echo_n "checking for DCA... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$DCA_CFLAGS"; then
- pkg_cv_DCA_CFLAGS="$DCA_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libdca >= 0.0.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libdca >= 0.0.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_DCA_CFLAGS=`$PKG_CONFIG --cflags "libdca >= 0.0.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$DCA_LIBS"; then
- pkg_cv_DCA_LIBS="$DCA_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libdca >= 0.0.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libdca >= 0.0.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_DCA_LIBS=`$PKG_CONFIG --libs "libdca >= 0.0.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- DCA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdca >= 0.0.5"`
- else
- DCA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdca >= 0.0.5"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$DCA_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "x${enable_dca}" != "x"; then :
- as_fn_error "${DCA_PKG_ERRORS}" "$LINENO" 5
- fi
- elif test $pkg_failed = untried; then
- if test "x${enable_dca}" != "x"; then :
- as_fn_error "${DCA_PKG_ERRORS}" "$LINENO" 5
- fi
- else
- DCA_CFLAGS=$pkg_cv_DCA_CFLAGS
- DCA_LIBS=$pkg_cv_DCA_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} dtstofloat32"
- LTLIBdtstofloat32="libdtstofloat32_plugin.la"
- for element in dtstofloat32; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${DCA_CFLAGS}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in dtstofloat32; do
- eval "LIBS_${element}="'"'"${DCA_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- fi
- # Check whether --enable-flac was given.
- if test "${enable_flac+set}" = set; then :
- enableval=$enable_flac;
- fi
- if test "${enable_flac}" = "yes"
- then
- # Check whether --with-flac-tree was given.
- if test "${with_flac_tree+set}" = set; then :
- withval=$with_flac_tree;
- fi
- if test -n "${with_flac_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libFLAC.a in ${with_flac_tree}" >&5
- $as_echo_n "checking for libFLAC.a in ${with_flac_tree}... " >&6; }
- real_flac_tree="`cd ${with_flac_tree} 2>/dev/null && pwd`"
- if test -z "${real_flac_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_flac_tree}" "$LINENO" 5
- fi
- if test -f "${real_flac_tree}/src/libFLAC/.libs/libFLAC.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_flac_tree}/src/libFLAC/.libs/libFLAC.a" >&5
- $as_echo "${real_flac_tree}/src/libFLAC/.libs/libFLAC.a" >&6; }
- for element in flac; do
- eval "LIBS_${element}="'"'"${real_flac_tree}/src/libFLAC/.libs/libFLAC.a "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in flac; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -I${real_flac_tree}/include"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- $as_echo "#define HAVE_FLAC_STREAM_DECODER_H 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_flac_tree}/src/libFLAC/.libs/libFLAC.a, make sure you compiled flac in ${with_flac_tree}" "$LINENO" 5
- fi
- else
- for ac_header in FLAC/stream_decoder.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "FLAC/stream_decoder.h" "ac_cv_header_FLAC_stream_decoder_h" "$ac_includes_default"
- if test "x$ac_cv_header_FLAC_stream_decoder_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FLAC_STREAM_DECODER_H 1
- _ACEOF
- for element in flac; do
- eval "LIBS_${element}="'"'"-lFLAC -logg "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- fi
- fi
- # Check whether --enable-libmpeg2 was given.
- if test "${enable_libmpeg2+set}" = set; then :
- enableval=$enable_libmpeg2;
- fi
- if test "${enable_libmpeg2}" != "no"
- then
- # Check whether --with-libmpeg2-tree was given.
- if test "${with_libmpeg2_tree+set}" = set; then :
- withval=$with_libmpeg2_tree;
- fi
- if test -n "${with_libmpeg2_tree}"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpeg2.a in ${with_libmpeg2_tree}" >&5
- $as_echo_n "checking for libmpeg2.a in ${with_libmpeg2_tree}... " >&6; }
- real_libmpeg2_tree="`cd ${with_libmpeg2_tree} 2>/dev/null && pwd`"
- if test -z "${real_libmpeg2_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_libmpeg2_tree}" "$LINENO" 5
- fi
- if test -f "${real_libmpeg2_tree}/libmpeg2/.libs/libmpeg2.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_libmpeg2_tree}/libmpeg2/.libs/libmpeg2.a" >&5
- $as_echo "${real_libmpeg2_tree}/libmpeg2/.libs/libmpeg2.a" >&6; }
- PLUGINS="${PLUGINS} libmpeg2"
- LTLIBlibmpeg2="liblibmpeg2_plugin.la"
- for element in libmpeg2; do
- eval "LIBS_${element}="'"'"-L${real_libmpeg2_tree}/libmpeg2/.libs -lmpeg2 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in libmpeg2; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -I${real_libmpeg2_tree}/include"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_libmpeg2_tree}/libmpeg2/.libs/libmpeg2.a, make sure you compiled libmpeg2 in ${with_libmpeg2_tree}" "$LINENO" 5
- fi
- else
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMPEG2" >&5
- $as_echo_n "checking for LIBMPEG2... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBMPEG2_CFLAGS"; then
- pkg_cv_LIBMPEG2_CFLAGS="$LIBMPEG2_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libmpeg2 > 0.3.2""; } >&5
- ($PKG_CONFIG --exists --print-errors "libmpeg2 > 0.3.2") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBMPEG2_CFLAGS=`$PKG_CONFIG --cflags "libmpeg2 > 0.3.2" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBMPEG2_LIBS"; then
- pkg_cv_LIBMPEG2_LIBS="$LIBMPEG2_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libmpeg2 > 0.3.2""; } >&5
- ($PKG_CONFIG --exists --print-errors "libmpeg2 > 0.3.2") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBMPEG2_LIBS=`$PKG_CONFIG --libs "libmpeg2 > 0.3.2" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LIBMPEG2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmpeg2 > 0.3.2"`
- else
- LIBMPEG2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmpeg2 > 0.3.2"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBMPEG2_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libmpeg2 on your system: you may get it from http://libmpeg2.sf.net/ . Alternatively you can use --disable-libmpeg2 to disable the libmpeg2 plugin." >&5
- $as_echo "$as_me: WARNING: Could not find libmpeg2 on your system: you may get it from http://libmpeg2.sf.net/ . Alternatively you can use --disable-libmpeg2 to disable the libmpeg2 plugin." >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libmpeg2 on your system: you may get it from http://libmpeg2.sf.net/ . Alternatively you can use --disable-libmpeg2 to disable the libmpeg2 plugin." >&5
- $as_echo "$as_me: WARNING: Could not find libmpeg2 on your system: you may get it from http://libmpeg2.sf.net/ . Alternatively you can use --disable-libmpeg2 to disable the libmpeg2 plugin." >&2;}
- else
- LIBMPEG2_CFLAGS=$pkg_cv_LIBMPEG2_CFLAGS
- LIBMPEG2_LIBS=$pkg_cv_LIBMPEG2_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} libmpeg2"
- LTLIBlibmpeg2="liblibmpeg2_plugin.la"
- for element in libmpeg2; do
- eval "LIBS_${element}="'"'"$LIBMPEG2_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in libmpeg2; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $LIBMPEG2_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- fi
- # Check whether --enable-vorbis was given.
- if test "${enable_vorbis+set}" = set; then :
- enableval=$enable_vorbis;
- fi
- if test "${enable_vorbis}" != "no"
- then
- # Check whether --with-vorbis-tree was given.
- if test "${with_vorbis_tree+set}" = set; then :
- withval=$with_vorbis_tree;
- fi
- if test -n "${with_vorbis_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvorbis.a in ${with_vorbis_tree}" >&5
- $as_echo_n "checking for libvorbis.a in ${with_vorbis_tree}... " >&6; }
- real_vorbis_tree="`cd ${with_vorbis_tree} 2>/dev/null && pwd`"
- if test -z "${real_vorbis_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_vorbis_tree}" "$LINENO" 5
- fi
- if test -f "${real_vorbis_tree}/lib/.libs/libvorbis.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_vorbis_tree}/lib/.libs/libvorbis.a" >&5
- $as_echo "${real_vorbis_tree}/lib/.libs/libvorbis.a" >&6; }
- PLUGINS="${PLUGINS} vorbis"
- LTLIBvorbis="libvorbis_plugin.la"
- for element in vorbis; do
- eval "LIBS_${element}="'"'"${real_vorbis_tree}/lib/.libs/libvorbis.a ${real_vorbis_tree}/lib/.libs/libvorbisenc.a "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in vorbis; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -I${real_vorbis_tree}/include"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_vorbis_tree}/lib/.libs/libvorbis.a, make sure you compiled vorbis in ${with_vorbis_tree}" "$LINENO" 5
- fi
- else
- for ac_header in vorbis/codec.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
- if test "x$ac_cv_header_vorbis_codec_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_VORBIS_CODEC_H 1
- _ACEOF
- PLUGINS="${PLUGINS} vorbis"
- LTLIBvorbis="libvorbis_plugin.la"
- for element in vorbis; do
- eval "LIBS_${element}="'"'"-lvorbis -logg -lm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- for ac_header in vorbis/vorbisenc.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "vorbis/vorbisenc.h" "ac_cv_header_vorbis_vorbisenc_h" "$ac_includes_default"
- if test "x$ac_cv_header_vorbis_vorbisenc_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_VORBIS_VORBISENC_H 1
- _ACEOF
- for element in vorbis; do
- eval "LIBS_${element}="'"'"-lvorbisenc -lm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- fi
- fi
- # Check whether --enable-tremor was given.
- if test "${enable_tremor+set}" = set; then :
- enableval=$enable_tremor;
- fi
- if test "${enable_tremor}" = "yes"
- then
- for ac_header in tremor/ivorbiscodec.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "tremor/ivorbiscodec.h" "ac_cv_header_tremor_ivorbiscodec_h" "$ac_includes_default"
- if test "x$ac_cv_header_tremor_ivorbiscodec_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_TREMOR_IVORBISCODEC_H 1
- _ACEOF
- PLUGINS="${PLUGINS} tremor"
- LTLIBtremor="libtremor_plugin.la"
- for element in tremor; do
- eval "LIBS_${element}="'"'"-lvorbisidec -logg "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- fi
- # Check whether --enable-speex was given.
- if test "${enable_speex+set}" = set; then :
- enableval=$enable_speex;
- fi
- if test "${enable_speex}" != "no"
- then
- # Check whether --with-speex-tree was given.
- if test "${with_speex_tree+set}" = set; then :
- withval=$with_speex_tree;
- fi
- if test -n "${with_speex_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeex.a in ${with_speex_tree}" >&5
- $as_echo_n "checking for libspeex.a in ${with_speex_tree}... " >&6; }
- real_speex_tree="`cd ${with_speex_tree} 2>/dev/null && pwd`"
- if test -z "${real_speex_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_speex_tree}" "$LINENO" 5
- fi
- if test -f "${real_speex_tree}/libspeex/.libs/libspeex.a"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_speex_tree}/libspeex/.libs/libspeex.a" >&5
- $as_echo "${real_speex_tree}/libspeex/.libs/libspeex.a" >&6; }
- PLUGINS="${PLUGINS} speex"
- LTLIBspeex="libspeex_plugin.la"
- for element in speex; do
- eval "LIBS_${element}="'"'"${real_speex_tree}/libspeex/.libs/libspeex.a "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in speex; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -I${real_speex_tree}/include"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_speex_tree}/libspeex/.libs/libspeex.a, make sure you compiled speex in ${with_speex_tree}" "$LINENO" 5
- fi
- else
- for ac_header in speex/speex.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
- if test "x$ac_cv_header_speex_speex_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SPEEX_SPEEX_H 1
- _ACEOF
- LDFLAGS="${LDFLAGS_save} ${LIBS_speex}"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_decode_int in -lspeex" >&5
- $as_echo_n "checking for speex_decode_int in -lspeex... " >&6; }
- if test "${ac_cv_lib_speex_speex_decode_int+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lspeex $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 speex_decode_int ();
- int
- main ()
- {
- return speex_decode_int ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_speex_speex_decode_int=yes
- else
- ac_cv_lib_speex_speex_decode_int=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_speex_speex_decode_int" >&5
- $as_echo "$ac_cv_lib_speex_speex_decode_int" >&6; }
- if test "x$ac_cv_lib_speex_speex_decode_int" = x""yes; then :
- PLUGINS="${PLUGINS} speex"
- LTLIBspeex="libspeex_plugin.la"
- for element in speex; do
- eval "LIBS_${element}="'"'"-lspeex "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your libspeex is too old, please get the development
- version." >&5
- $as_echo "$as_me: WARNING: Your libspeex is too old, please get the development
- version." >&2;}
- fi
- LDFLAGS="${LDFLAGS_save}"
- fi
- done
- fi
- fi
- # Check whether --enable-tarkin was given.
- if test "${enable_tarkin+set}" = set; then :
- enableval=$enable_tarkin;
- fi
- if test "${enable_tarkin}" = "yes"
- then
- # Check whether --with-tarkin-tree was given.
- if test "${with_tarkin_tree+set}" = set; then :
- withval=$with_tarkin_tree;
- fi
- if test -n "${with_tarkin_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tarkin.o in ${with_tarkin_tree}" >&5
- $as_echo_n "checking for tarkin.o in ${with_tarkin_tree}... " >&6; }
- real_tarkin_tree="`cd ${with_tarkin_tree} 2>/dev/null && pwd`"
- if test -f "${real_tarkin_tree}/tarkin.o"
- then
- PLUGINS="${PLUGINS} tarkin"
- LTLIBtarkin="libtarkin_plugin.la"
- for element in tarkin; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_tarkin_tree}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in tarkin; do
- eval "LIBS_${element}="'"'"${real_tarkin_tree}/mem.o ${real_tarkin_tree}/pnm.o ${real_tarkin_tree}/wavelet.o ${real_tarkin_tree}/wavelet_xform.o ${real_tarkin_tree}/wavelet_coeff.o ${real_tarkin_tree}/yuv.o ${real_tarkin_tree}/tarkin.o ${real_tarkin_tree}/info.o -logg "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot find ${real_tarkin_tree}/tarkin.o,
- make sure you compiled tarkin in ${with_tarkin_tree}" "$LINENO" 5
- fi
- fi
- fi
- # Check whether --enable-theora was given.
- if test "${enable_theora+set}" = set; then :
- enableval=$enable_theora;
- fi
- if test "${enable_theora}" = "yes"
- then
- for ac_header in theora/theora.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "theora/theora.h" "ac_cv_header_theora_theora_h" "$ac_includes_default"
- if test "x$ac_cv_header_theora_theora_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_THEORA_THEORA_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for theora_granule_time in -ltheora" >&5
- $as_echo_n "checking for theora_granule_time in -ltheora... " >&6; }
- if test "${ac_cv_lib_theora_theora_granule_time+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltheora -logg $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 theora_granule_time ();
- int
- main ()
- {
- return theora_granule_time ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_theora_theora_granule_time=yes
- else
- ac_cv_lib_theora_theora_granule_time=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_theora_theora_granule_time" >&5
- $as_echo "$ac_cv_lib_theora_theora_granule_time" >&6; }
- if test "x$ac_cv_lib_theora_theora_granule_time" = x""yes; then :
- PLUGINS="${PLUGINS} theora"
- LTLIBtheora="libtheora_plugin.la"
- theora_libs="-ltheora -logg"
- for element in theora; do
- eval "LIBS_${element}="'"'"${theora_libs} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- as_fn_error "libtheora doesn't appear to be installed on your system.
- You also need to check that you have a libogg posterior to the 1.0 release." "$LINENO" 5
- fi
- fi
- done
- fi
- # Check whether --enable-dirac was given.
- if test "${enable_dirac+set}" = set; then :
- enableval=$enable_dirac;
- fi
- if test "${enable_dirac}" = "yes"; then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRAC" >&5
- $as_echo_n "checking for DIRAC... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$DIRAC_CFLAGS"; then
- pkg_cv_DIRAC_CFLAGS="$DIRAC_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "dirac >= 0.10.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "dirac >= 0.10.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_DIRAC_CFLAGS=`$PKG_CONFIG --cflags "dirac >= 0.10.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$DIRAC_LIBS"; then
- pkg_cv_DIRAC_LIBS="$DIRAC_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "dirac >= 0.10.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "dirac >= 0.10.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_DIRAC_LIBS=`$PKG_CONFIG --libs "dirac >= 0.10.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- DIRAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dirac >= 0.10.0"`
- else
- DIRAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dirac >= 0.10.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$DIRAC_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "libdirac >= 0.10.0 doesn't appear to be installed on your system." "$LINENO" 5
- elif test $pkg_failed = untried; then
- as_fn_error "libdirac >= 0.10.0 doesn't appear to be installed on your system." "$LINENO" 5
- else
- DIRAC_CFLAGS=$pkg_cv_DIRAC_CFLAGS
- DIRAC_LIBS=$pkg_cv_DIRAC_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} dirac"
- LTLIBdirac="libdirac_plugin.la"
- for element in dirac; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $DIRAC_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in dirac; do
- eval "LIBS_${element}="'"'"$DIRAC_LIBS -lstdc++ "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --enable-schroedinger was given.
- if test "${enable_schroedinger+set}" = set; then :
- enableval=$enable_schroedinger;
- fi
- if test "${enable_schroedinger}" != "no"; then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCHROEDINGER" >&5
- $as_echo_n "checking for SCHROEDINGER... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$SCHROEDINGER_CFLAGS"; then
- pkg_cv_SCHROEDINGER_CFLAGS="$SCHROEDINGER_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "schroedinger-1.0 >= 1.0.6""; } >&5
- ($PKG_CONFIG --exists --print-errors "schroedinger-1.0 >= 1.0.6") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_SCHROEDINGER_CFLAGS=`$PKG_CONFIG --cflags "schroedinger-1.0 >= 1.0.6" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$SCHROEDINGER_LIBS"; then
- pkg_cv_SCHROEDINGER_LIBS="$SCHROEDINGER_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "schroedinger-1.0 >= 1.0.6""; } >&5
- ($PKG_CONFIG --exists --print-errors "schroedinger-1.0 >= 1.0.6") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_SCHROEDINGER_LIBS=`$PKG_CONFIG --libs "schroedinger-1.0 >= 1.0.6" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- SCHROEDINGER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "schroedinger-1.0 >= 1.0.6"`
- else
- SCHROEDINGER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "schroedinger-1.0 >= 1.0.6"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$SCHROEDINGER_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "x${enable_schroedinger}" != "x"; then :
- as_fn_error "${SCHROEDINGER_PKG_ERRORS}" "$LINENO" 5
- fi
- elif test $pkg_failed = untried; then
- if test "x${enable_schroedinger}" != "x"; then :
- as_fn_error "${SCHROEDINGER_PKG_ERRORS}" "$LINENO" 5
- fi
- else
- SCHROEDINGER_CFLAGS=$pkg_cv_SCHROEDINGER_CFLAGS
- SCHROEDINGER_LIBS=$pkg_cv_SCHROEDINGER_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} schroedinger"
- LTLIBschroedinger="libschroedinger_plugin.la"
- for element in schroedinger; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $SCHROEDINGER_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in schroedinger; do
- eval "LIBS_${element}="'"'"$SCHROEDINGER_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --enable-png was given.
- if test "${enable_png+set}" = set; then :
- enableval=$enable_png;
- fi
- if test "${enable_png}" != "no"; then
- for ac_header in png.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
- if test "x$ac_cv_header_png_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PNG_H 1
- _ACEOF
- LDFLAGS="${LDFLAGS_save} -lz"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_rows in -lpng" >&5
- $as_echo_n "checking for png_set_rows in -lpng... " >&6; }
- if test "${ac_cv_lib_png_png_set_rows+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpng -lz $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 png_set_rows ();
- int
- main ()
- {
- return png_set_rows ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_png_png_set_rows=yes
- else
- ac_cv_lib_png_png_set_rows=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_png_png_set_rows" >&5
- $as_echo "$ac_cv_lib_png_png_set_rows" >&6; }
- if test "x$ac_cv_lib_png_png_set_rows" = x""yes; then :
- for element in png; do
- eval "LIBS_${element}="'"'"-lpng -lz "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- PLUGINS="${PLUGINS} png"
- LTLIBpng="libpng_plugin.la"
- PLUGINS="${PLUGINS} osdmenu"
- LTLIBosdmenu="libosdmenu_plugin.la"
- PLUGINS="${PLUGINS} osd_parser"
- LTLIBosd_parser="libosd_parser_plugin.la"
- $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
- fi
- LDFLAGS="${LDFLAGS_save}"
- fi
- done
- fi
- if test "${enable_png}" != "no"; then
- BUILD_OSDMENU_TRUE=
- BUILD_OSDMENU_FALSE='#'
- else
- BUILD_OSDMENU_TRUE='#'
- BUILD_OSDMENU_FALSE=
- fi
- # Check whether --enable-x264 was given.
- if test "${enable_x264+set}" = set; then :
- enableval=$enable_x264;
- fi
- if test "${enable_x264}" != "no"; then
- # Check whether --with-x264-tree was given.
- if test "${with_x264_tree+set}" = set; then :
- withval=$with_x264_tree;
- fi
- if test "${with_x264_tree}" != "no" -a -n "${with_x264_tree}"
- then
- real_x264_tree="`cd ${with_x264_tree} 2>/dev/null && pwd`"
- if test -z "${real_x264_tree}"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "${with_x264_tree} directory doesn't exist" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x264.h in ${real_x264_tree}" >&5
- $as_echo_n "checking for x264.h in ${real_x264_tree}... " >&6; }
- if test -f ${real_x264_tree}/x264.h
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in x264; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_x264_tree}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in x264; do
- eval "LIBS_${element}="'"'"-L${real_x264_tree} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X264" >&5
- $as_echo_n "checking for X264... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$X264_CFLAGS"; then
- pkg_cv_X264_CFLAGS="$X264_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "x264""; } >&5
- ($PKG_CONFIG --exists --print-errors "x264") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_X264_CFLAGS=`$PKG_CONFIG --cflags "x264" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$X264_LIBS"; then
- pkg_cv_X264_LIBS="$X264_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "x264""; } >&5
- ($PKG_CONFIG --exists --print-errors "x264") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_X264_LIBS=`$PKG_CONFIG --libs "x264" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- X264_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x264"`
- else
- X264_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x264"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$X264_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "the specified tree hasn't been compiled" "$LINENO" 5
- elif test $pkg_failed = untried; then
- as_fn_error "the specified tree hasn't been compiled" "$LINENO" 5
- else
- X264_CFLAGS=$pkg_cv_X264_CFLAGS
- X264_LIBS=$pkg_cv_X264_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} x264"
- LTLIBx264="libx264_plugin.la"
- for element in x264; do
- eval "LDFLAGS_${element}="'"'"${X264_LIBS} "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in x264; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${X264_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- if echo ${X264_LIBS} |grep -q 'pthreadGC2'; then
- for element in x264; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -DPTW32_STATIC_LIB"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- LDFLAGS="${LDFLAGS_save}"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "the specified tree doesn't have x264.h" "$LINENO" 5
- fi
- else
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X264" >&5
- $as_echo_n "checking for X264... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$X264_CFLAGS"; then
- pkg_cv_X264_CFLAGS="$X264_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "x264""; } >&5
- ($PKG_CONFIG --exists --print-errors "x264") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_X264_CFLAGS=`$PKG_CONFIG --cflags "x264" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$X264_LIBS"; then
- pkg_cv_X264_LIBS="$X264_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "x264""; } >&5
- ($PKG_CONFIG --exists --print-errors "x264") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_X264_LIBS=`$PKG_CONFIG --libs "x264" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- X264_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x264"`
- else
- X264_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x264"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$X264_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "${enable_x264}" = "yes"; then
- as_fn_error "Could not find libx264 on your system: you may get it from http://www.videolan.org/x264.html" "$LINENO" 5
- fi
- elif test $pkg_failed = untried; then
- if test "${enable_x264}" = "yes"; then
- as_fn_error "Could not find libx264 on your system: you may get it from http://www.videolan.org/x264.html" "$LINENO" 5
- fi
- else
- X264_CFLAGS=$pkg_cv_X264_CFLAGS
- X264_LIBS=$pkg_cv_X264_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} x264"
- LTLIBx264="libx264_plugin.la"
- for element in x264; do
- eval "LDFLAGS_${element}="'"'"${X264_LIBS} "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -Bsymbolic" >&5
- $as_echo_n "checking if linker supports -Bsymbolic... " >&6; }
- if test "${ac_cv_ld_bsymbolic+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- LDFLAGS="${LDFLAGS_vlc} -Wl,-Bsymbolic"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_ld_bsymbolic=yes
- else
- ac_cv_ld_bsymbolic=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LDFLAGS="${LDFLAGS_save}"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ld_bsymbolic" >&5
- $as_echo "$ac_cv_ld_bsymbolic" >&6; }
- if test "${ac_cv_ld_bsymbolic}" != "no"; then :
- for element in x264; do
- eval "LDFLAGS_${element}="'"'"-Wl,-Bsymbolic "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- fi
- for element in x264; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${X264_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- if echo ${X264_LIBS} |grep -q 'pthreadGC2'; then
- for element in x264; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -DPTW32_STATIC_LIB"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- fi
- LDFLAGS="${LDFLAGS_save}"
- fi
- fi
- # Check whether --enable-fluidsynth was given.
- if test "${enable_fluidsynth+set}" = set; then :
- enableval=$enable_fluidsynth;
- fi
- if test "x${enable_fluidsynth}" != "xno"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLUIDSYNTH" >&5
- $as_echo_n "checking for FLUIDSYNTH... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$FLUIDSYNTH_CFLAGS"; then
- pkg_cv_FLUIDSYNTH_CFLAGS="$FLUIDSYNTH_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "fluidsynth""; } >&5
- ($PKG_CONFIG --exists --print-errors "fluidsynth") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_FLUIDSYNTH_CFLAGS=`$PKG_CONFIG --cflags "fluidsynth" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$FLUIDSYNTH_LIBS"; then
- pkg_cv_FLUIDSYNTH_LIBS="$FLUIDSYNTH_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "fluidsynth""; } >&5
- ($PKG_CONFIG --exists --print-errors "fluidsynth") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_FLUIDSYNTH_LIBS=`$PKG_CONFIG --libs "fluidsynth" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- FLUIDSYNTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fluidsynth"`
- else
- FLUIDSYNTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fluidsynth"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$FLUIDSYNTH_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "x${enable_fluidsynth}" != "x"; then :
- as_fn_error "${FLUIDSYNTH_PKG_ERRORS}" "$LINENO" 5
- fi
- elif test $pkg_failed = untried; then
- if test "x${enable_fluidsynth}" != "x"; then :
- as_fn_error "${FLUIDSYNTH_PKG_ERRORS}" "$LINENO" 5
- fi
- else
- FLUIDSYNTH_CFLAGS=$pkg_cv_FLUIDSYNTH_CFLAGS
- FLUIDSYNTH_LIBS=$pkg_cv_FLUIDSYNTH_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} fluidsynth"
- LTLIBfluidsynth="libfluidsynth_plugin.la"
- for element in fluidsynth; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${FLUIDSYNTH_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in fluidsynth; do
- eval "LIBS_${element}="'"'"${FLUIDSYNTH_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --enable-zvbi was given.
- if test "${enable_zvbi+set}" = set; then :
- enableval=$enable_zvbi;
- fi
- # Check whether --enable-telx was given.
- if test "${enable_telx+set}" = set; then :
- enableval=$enable_telx;
- fi
- if test "${enable_zvbi}" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZVBI" >&5
- $as_echo_n "checking for ZVBI... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$ZVBI_CFLAGS"; then
- pkg_cv_ZVBI_CFLAGS="$ZVBI_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "zvbi-0.2 >= 0.2.25""; } >&5
- ($PKG_CONFIG --exists --print-errors "zvbi-0.2 >= 0.2.25") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_ZVBI_CFLAGS=`$PKG_CONFIG --cflags "zvbi-0.2 >= 0.2.25" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$ZVBI_LIBS"; then
- pkg_cv_ZVBI_LIBS="$ZVBI_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "zvbi-0.2 >= 0.2.25""; } >&5
- ($PKG_CONFIG --exists --print-errors "zvbi-0.2 >= 0.2.25") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_ZVBI_LIBS=`$PKG_CONFIG --libs "zvbi-0.2 >= 0.2.25" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- ZVBI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "zvbi-0.2 >= 0.2.25"`
- else
- ZVBI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "zvbi-0.2 >= 0.2.25"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$ZVBI_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }