configure
资源名称:vlc-1.0.5.zip [点击查看]
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:1341k
源码类别:
midi
开发平台:
Unix_Linux
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldirect $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 direct_initialize ();
- int
- main ()
- {
- return direct_initialize ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_direct_direct_initialize=yes
- else
- ac_cv_lib_direct_direct_initialize=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_direct_direct_initialize" >&5
- $as_echo "$ac_cv_lib_direct_direct_initialize" >&6; }
- if test "x$ac_cv_lib_direct_direct_initialize" = x""yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusion_enter in -lfusion" >&5
- $as_echo_n "checking for fusion_enter in -lfusion... " >&6; }
- if test "${ac_cv_lib_fusion_fusion_enter+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lfusion $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 fusion_enter ();
- int
- main ()
- {
- return fusion_enter ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_fusion_fusion_enter=yes
- else
- ac_cv_lib_fusion_fusion_enter=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_fusion_fusion_enter" >&5
- $as_echo "$ac_cv_lib_fusion_fusion_enter" >&6; }
- if test "x$ac_cv_lib_fusion_fusion_enter" = x""yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFBInit in -ldirectfb" >&5
- $as_echo_n "checking for DirectFBInit in -ldirectfb... " >&6; }
- if test "${ac_cv_lib_directfb_DirectFBInit+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldirectfb $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 DirectFBInit ();
- int
- main ()
- {
- return DirectFBInit ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_directfb_DirectFBInit=yes
- else
- ac_cv_lib_directfb_DirectFBInit=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_directfb_DirectFBInit" >&5
- $as_echo "$ac_cv_lib_directfb_DirectFBInit" >&6; }
- if test "x$ac_cv_lib_directfb_DirectFBInit" = x""yes; then :
- have_directfb="true"
- else
- have_directfb="false"
- fi
- else
- have_directfb="false"
- fi
- else
- have_directfb="false"
- fi
- else
- have_directfb="false"
- fi
- CPPFLAGS="${CPPFLAGS_save}"
- LIBS="${LIBS_save}"
- if test "${have_directfb}" = "true"; then
- LIBS_mydirectfb="${LIBS_new} -lz -ldl -ldirectfb -lfusion -ldirect -lpthread"
- CPPFLAGS_mydirectfb="${CPPFLAGS_new}"
- fi
- else
- # Extract the first word of "directfb-config", so it can be a program name with args.
- set dummy directfb-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_DIRECTFB_CONFIG+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $DIRECTFB_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_DIRECTFB_CONFIG="$DIRECTFB_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in ${PATH}
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_DIRECTFB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_DIRECTFB_CONFIG" && ac_cv_path_DIRECTFB_CONFIG="no"
- ;;
- esac
- fi
- DIRECTFB_CONFIG=$ac_cv_path_DIRECTFB_CONFIG
- if test -n "$DIRECTFB_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFB_CONFIG" >&5
- $as_echo "$DIRECTFB_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "${DIRECTFB_CONFIG}" != "no"; then
- CPPFLAGS_mydirectfb="`${DIRECTFB_CONFIG} --cflags`"
- LIBS_mydirectfb="`${DIRECTFB_CONFIG} --libs`"
- have_directfb="true"
- else
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
- $as_echo_n "checking for DIRECTFB... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$DIRECTFB_CFLAGS"; then
- pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "directfb""; } >&5
- ($PKG_CONFIG --exists --print-errors "directfb") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$DIRECTFB_LIBS"; then
- pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "directfb""; } >&5
- ($PKG_CONFIG --exists --print-errors "directfb") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb" 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
- DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb"`
- else
- DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$DIRECTFB_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- have_directfb="false"
- elif test $pkg_failed = untried; then
- have_directfb="false"
- else
- DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
- DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- CPPFLAGS_mydirectfb="${DIRECTFB_CFLAGS}"
- LIBS_mydirectfb="${DIRECTFB_LIBS}"
- have_directfb="true"
- fi
- fi
- fi
- if test "${have_directfb}" = "true"; then
- PLUGINS="${PLUGINS} directfb"
- LTLIBdirectfb="libdirectfb_plugin.la"
- for element in directfb; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${CPPFLAGS_mydirectfb}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in directfb; do
- eval "LIBS_${element}="'"'"${LIBS_mydirectfb} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- as_fn_error "cannot find directfb headers and/or libraries " "$LINENO" 5
- fi
- fi
- # Check whether --enable-ggi was given.
- if test "${enable_ggi+set}" = set; then :
- enableval=$enable_ggi;
- fi
- if test "${enable_ggi}" = "yes"
- then
- ac_fn_c_check_header_mongrel "$LINENO" "ggi/ggi.h" "ac_cv_header_ggi_ggi_h" "$ac_includes_default"
- if test "x$ac_cv_header_ggi_ggi_h" = x""yes; then :
- PLUGINS="${PLUGINS} ggi"
- LTLIBggi="libggi_plugin.la"
- for element in ggi; do
- eval "LIBS_${element}="'"'"-lggi "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- # Check whether --with-ggi was given.
- if test "${with_ggi+set}" = set; then :
- withval=$with_ggi; if test "${with_ggi}" != "no" -a -n "${with_ggi}"
- then
- for element in ggi; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${with_ggi}/include"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in ggi; do
- eval "LIBS_${element}="'"'"-L${with_ggi}/lib "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- else
- as_fn_error "LibGGI development files can't be found" "$LINENO" 5
- fi
- fi
- # Check whether --enable-aa was given.
- if test "${enable_aa+set}" = set; then :
- enableval=$enable_aa;
- fi
- if test "${enable_aa}" = "yes"
- then
- ac_fn_c_check_header_mongrel "$LINENO" "aalib.h" "ac_cv_header_aalib_h" "$ac_includes_default"
- if test "x$ac_cv_header_aalib_h" = x""yes; then :
- have_aa="true"
- else
- have_aa="false"
- fi
- if test "${have_aa}" = "true"
- then
- PLUGINS="${PLUGINS} aa"
- LTLIBaa="libaa_plugin.la"
- for element in aa; do
- eval "LIBS_${element}="'"'"-laa "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --enable-caca was given.
- if test "${enable_caca+set}" = set; then :
- enableval=$enable_caca;
- fi
- if test "${enable_caca}" = "yes"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CACA" >&5
- $as_echo_n "checking for CACA... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$CACA_CFLAGS"; then
- pkg_cv_CACA_CFLAGS="$CACA_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "caca""; } >&5
- ($PKG_CONFIG --exists --print-errors "caca") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_CACA_CFLAGS=`$PKG_CONFIG --cflags "caca" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$CACA_LIBS"; then
- pkg_cv_CACA_LIBS="$CACA_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "caca""; } >&5
- ($PKG_CONFIG --exists --print-errors "caca") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_CACA_LIBS=`$PKG_CONFIG --libs "caca" 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
- CACA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "caca"`
- else
- CACA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "caca"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$CACA_PKG_ERRORS" >&5
- as_fn_error "Package requirements (caca) were not met:
- $CACA_PKG_ERRORS
- Consider adjusting the PKG_CONFIG_PATH environment variable if you
- installed software in a non-standard prefix.
- Alternatively, you may set the environment variables CACA_CFLAGS
- and CACA_LIBS to avoid the need to call pkg-config.
- See the pkg-config man page for more details.
- " "$LINENO" 5
- elif test $pkg_failed = untried; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in `$ac_pwd':" >&5
- $as_echo "$as_me: error: in `$ac_pwd':" >&2;}
- as_fn_error "The pkg-config script could not be found or is too old. Make sure it
- is in your PATH or set the PKG_CONFIG environment variable to the full
- path to pkg-config.
- Alternatively, you may set the environment variables CACA_CFLAGS
- and CACA_LIBS to avoid the need to call pkg-config.
- See the pkg-config man page for more details.
- To get pkg-config, see <http://pkg-config.freedesktop.org/>.
- See `config.log' for more details." "$LINENO" 5; }
- else
- CACA_CFLAGS=$pkg_cv_CACA_CFLAGS
- CACA_LIBS=$pkg_cv_CACA_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in caca; do
- eval "LIBS_${element}="'"'"$CACA_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in caca; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $CACA_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- PLUGINS="${PLUGINS} caca"
- LTLIBcaca="libcaca_plugin.la"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <caca.h>
- caca_event_t ev;
- int
- main ()
- {
- ev.type = 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- else
- $as_echo "#define CACA_EVENT_OPAQUE 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- fi
- # Check whether --enable-wingdi was given.
- if test "${enable_wingdi+set}" = set; then :
- enableval=$enable_wingdi;
- fi
- if test "${enable_wingdi}" != "no"; then
- if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"; then
- PLUGINS="${PLUGINS} wingdi"
- LTLIBwingdi="libwingdi_plugin.la"
- for element in wingdi; do
- eval "LIBS_${element}="'"'"-lgdi32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- if test "${SYS}" = "mingwce"; then
- PLUGINS="${PLUGINS} wingdi"
- LTLIBwingdi="libwingdi_plugin.la"
- PLUGINS="${PLUGINS} wingapi"
- LTLIBwingapi="libwingapi_plugin.la"
- for element in wingdi; do
- eval "LIBS_${element}="'"'"-laygshell "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in wingapi; do
- eval "LIBS_${element}="'"'"-laygshell "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --with- was given.
- if test "${with_+set}" = set; then :
- withval=$with_;
- fi
- # Check whether --enable-oss was given.
- if test "${enable_oss+set}" = set; then :
- enableval=$enable_oss;
- fi
- if test "${enable_oss}" != "no" &&
- (test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" ||
- test "${enable_oss}" = "yes")
- then
- for ac_header in soundcard.h sys/soundcard.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} oss"
- LTLIBoss="liboss_plugin.la"
- PLUGINS="${PLUGINS} access_oss"
- LTLIBaccess_oss="libaccess_oss_plugin.la"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lossaudio" >&5
- $as_echo_n "checking for main in -lossaudio... " >&6; }
- if test "${ac_cv_lib_ossaudio_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lossaudio $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return main ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ossaudio_main=yes
- else
- ac_cv_lib_ossaudio_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_ossaudio_main" >&5
- $as_echo "$ac_cv_lib_ossaudio_main" >&6; }
- if test "x$ac_cv_lib_ossaudio_main" = x""yes; then :
- for element in oss; do
- eval "LIBS_${element}="'"'"-lossaudio "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- done
- fi
- # Check whether --enable-pulse was given.
- if test "${enable_pulse+set}" = set; then :
- enableval=$enable_pulse;
- fi
- if test "${enable_pulse}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSE" >&5
- $as_echo_n "checking for PULSE... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$PULSE_CFLAGS"; then
- pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11""; } >&5
- ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.11" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$PULSE_LIBS"; then
- pkg_cv_PULSE_LIBS="$PULSE_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11""; } >&5
- ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.11" 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
- PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse >= 0.9.11"`
- else
- PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse >= 0.9.11"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$PULSE_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: pulseaudio library not found" >&5
- $as_echo "$as_me: WARNING: pulseaudio library not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pulseaudio library not found" >&5
- $as_echo "$as_me: WARNING: pulseaudio library not found" >&2;}
- else
- PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
- PULSE_LIBS=$pkg_cv_PULSE_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} pulse"
- LTLIBpulse="libpulse_plugin.la"
- for element in pulse; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${PULSE_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in pulse; do
- eval "LDFLAGS_${element}="'"'"${PULSE_LIBS} "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- fi
- fi
- # Check whether --enable-portaudio was given.
- if test "${enable_portaudio+set}" = set; then :
- enableval=$enable_portaudio; if test "${enable_portaudio}" = "yes"
- then
- PLUGINS="${PLUGINS} portaudio"
- LTLIBportaudio="libportaudio_plugin.la"
- for element in portaudio; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} "'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- if test "${SYS}" = "mingw32"; then
- for element in portaudio; do
- eval "LIBS_${element}="'"'"-lportaudio -lwinmm -lole32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- for element in portaudio; do
- eval "LIBS_${element}="'"'"-lportaudio "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- fi
- # Check whether --enable-alsa was given.
- if test "${enable_alsa+set}" = set; then :
- enableval=$enable_alsa;
- fi
- if test "${enable_alsa}" != "no"
- then
- ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
- if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lasound" >&5
- $as_echo_n "checking for main in -lasound... " >&6; }
- if test "${ac_cv_lib_asound_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lasound $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return main ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_asound_main=yes
- else
- ac_cv_lib_asound_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_asound_main" >&5
- $as_echo "$ac_cv_lib_asound_main" >&6; }
- if test "x$ac_cv_lib_asound_main" = x""yes; then :
- have_alsa="true"
- else
- have_alsa="false"
- fi
- else
- have_alsa="false"
- fi
- if test "${have_alsa}" = "true"
- then
- CFLAGS="${CFLAGS_save}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define ALSA_PCM_NEW_HW_PARAMS_API
- #define ALSA_PCM_NEW_SW_PARAMS_API
- #include <alsa/asoundlib.h>
- int
- main ()
- {
- snd_pcm_hw_params_get_period_time(0,0,0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define HAVE_ALSA_NEW_API 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- PLUGINS="${PLUGINS} alsa"
- LTLIBalsa="libalsa_plugin.la"
- for element in alsa; do
- eval "LIBS_${element}="'"'"-lasound -lm -ldl "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- PLUGINS="${PLUGINS} access_alsa"
- LTLIBaccess_alsa="libaccess_alsa_plugin.la"
- for element in access_alsa; do
- eval "LIBS_${element}="'"'"-lasound -lm -ldl "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- if test "${enable_alsa}" = "yes"; then
- as_fn_error "Could not find ALSA development headers" "$LINENO" 5
- fi
- fi
- fi
- # Check whether --enable-waveout was given.
- if test "${enable_waveout+set}" = set; then :
- enableval=$enable_waveout;
- fi
- if test "${enable_waveout}" != "no"; then
- if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"; then
- PLUGINS="${PLUGINS} waveout"
- LTLIBwaveout="libwaveout_plugin.la"
- for element in waveout; do
- eval "LIBS_${element}="'"'"-lwinmm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- if test "${SYS}" = "mingwce"; then
- PLUGINS="${PLUGINS} waveout"
- LTLIBwaveout="libwaveout_plugin.la"
- fi
- fi
- # Check whether --enable-macosx-audio was given.
- if test "${enable_macosx_audio+set}" = set; then :
- enableval=$enable_macosx_audio;
- fi
- if test "${enable_macosx-audio}" != "no" &&
- (test "${SYS}" = "darwin" || test "${enable_macosx-audio}" = "yes")
- then
- for ac_header in CoreAudio/CoreAudio.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
- if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_COREAUDIO_COREAUDIO_H 1
- _ACEOF
- PLUGINS="${PLUGINS} auhal"
- LTLIBauhal="libauhal_plugin.la"
- for element in auhal; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,CoreAudio,-framework,AudioUnit,-framework,AudioToolbox,-framework,Carbon "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- else
- as_fn_error "cannot find CoreAudio headers" "$LINENO" 5
- fi
- done
- fi
- # Check whether --enable-hd1000a was given.
- if test "${enable_hd1000a+set}" = set; then :
- enableval=$enable_hd1000a;
- fi
- if test "${enable_hd1000a}" != "no" -a "${CXX}" != "" &&
- (test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" ||
- test "${enable_hd1000a}" = "yes")
- 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 deschutes/libraries/hdmachinex225/PCMAudioPlayer.h
- do :
- ac_fn_cxx_check_header_mongrel "$LINENO" "deschutes/libraries/hdmachinex225/PCMAudioPlayer.h" "ac_cv_header_deschutes_libraries_hdmachinex225_PCMAudioPlayer_h" "$ac_includes_default"
- if test "x$ac_cv_header_deschutes_libraries_hdmachinex225_PCMAudioPlayer_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DESCHUTES_LIBRARIES_HDMACHINEX225_PCMAUDIOPLAYER_H 1
- _ACEOF
- PLUGINS="${PLUGINS} hd1000a"
- LTLIBhd1000a="libhd1000a_plugin.la"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lHDMachineX225" >&5
- $as_echo_n "checking for main in -lHDMachineX225... " >&6; }
- if test "${ac_cv_lib_HDMachineX225_main+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lHDMachineX225 $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_HDMachineX225_main=yes
- else
- ac_cv_lib_HDMachineX225_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_HDMachineX225_main" >&5
- $as_echo "$ac_cv_lib_HDMachineX225_main" >&6; }
- if test "x$ac_cv_lib_HDMachineX225_main" = x""yes; then :
- for element in hd1000a; do
- eval "LIBS_${element}="'"'"-lHDMachineX225 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- 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-jack was given.
- if test "${enable_jack+set}" = set; then :
- enableval=$enable_jack;
- else
- enable_jack="no"
- fi
- if test "${enable_jack}" != "no"; then :
- for ac_header in jack/jack.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
- if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_JACK_JACK_H 1
- _ACEOF
- PLUGINS="${PLUGINS} access_jack"
- LTLIBaccess_jack="libaccess_jack_plugin.la"
- PLUGINS="${PLUGINS} jack"
- LTLIBjack="libjack_plugin.la"
- for element in access_jack jack; do
- eval "LIBS_${element}="'"'"-ljack "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- as_fn_error "cannot find JACK headers" "$LINENO" 5
- fi
- done
- fi
- # Check whether --enable-cyberlink was given.
- if test "${enable_cyberlink+set}" = set; then :
- enableval=$enable_cyberlink;
- fi
- if test "${enable_cyberlink}" = "yes" ; then :
- # Check whether --with-cyberlink-tree was given.
- if test "${with_cyberlink_tree+set}" = set; then :
- withval=$with_cyberlink_tree;
- fi
- if test ! -z "${with_cyberlink_tree}" -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
- real_cyberlink_tree="`cd ${with_cyberlink_tree} 2>/dev/null && pwd`"
- if test -z "${real_cyberlink_tree}"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_cyberlink_tree}" "$LINENO" 5
- fi
- CPPFLAGS_save="${CPPFLAGS}"
- CPPFLAGS_cyberlink="-I${real_cyberlink_tree}/include"
- CPPFLAGS="${CPPFLAGS} ${CPPFLAGS_cyberlink}"
- for ac_header in cybergarage/upnp/MediaServer.h
- do :
- ac_fn_cxx_check_header_mongrel "$LINENO" "cybergarage/upnp/MediaServer.h" "ac_cv_header_cybergarage_upnp_MediaServer_h" "$ac_includes_default"
- if test "x$ac_cv_header_cybergarage_upnp_MediaServer_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_CYBERGARAGE_UPNP_MEDIASERVER_H 1
- _ACEOF
- for element in upnp_cc; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} ${CPPFLAGS_cyberlink}"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- PLUGINS="${PLUGINS} upnp_cc"
- LTLIBupnp_cc="libupnp_cc_plugin.la"
- else
- as_fn_error "cannot find CyberLink for C++ headers" "$LINENO" 5
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclink.a in ${with_cyberlink_tree}" >&5
- $as_echo_n "checking for libclink.a in ${with_cyberlink_tree}... " >&6; }
- if test -f "${real_cyberlink_tree}/lib/unix/libclink.a"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_cyberlink_tree}/lib/unix/libclink.a" >&5
- $as_echo "${real_cyberlink_tree}/lib/unix/libclink.a" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML parser to link CyberLink with" >&5
- $as_echo_n "checking for XML parser to link CyberLink with... " >&6; }
- LIBS_save="$LIBS"
- LIBS_cclink="no"
- for l in "`xml2-config --libs`" -lexpat -lxerces-c; do
- LIBS="$LIBS_save ${real_cyberlink_tree}/lib/unix/libclink.a -lpthread $l"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <cybergarage/upnp/media/player/MediaPlayer.h>
- using namespace CyberLink;
- class testclass : public SearchResponseListener, public MediaPlayer
- {
- virtual void deviceSearchResponseReceived( SSDPPacket *)
- {
- }
- public:
- testclass (void)
- {
- addSearchResponseListener (this);
- start ();
- }
- };
- int
- main ()
- {
- testclass l;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- LIBS_cclink="$l"
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- done
- LIBS="${LIBS_save}"
- if test "${LIBS_cclink}" = "no"; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in `$ac_pwd':" >&5
- $as_echo "$as_me: error: in `$ac_pwd':" >&2;}
- as_fn_error "cannot find XML parser for CyberLink
- See `config.log' for more details." "$LINENO" 5; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS_cclink}" >&5
- $as_echo "${LIBS_cclink}" >&6; }
- for element in upnp_cc; do
- eval "LIBS_${element}="'"'"${real_cyberlink_tree}/lib/unix/libclink.a -lpthread ${LIBS_cclink} "'$'"{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_fn_error "cannot find ${real_cyberlink_tree}/lib/unix/libclink.a, make sure you compiled CyberLink for C++ in ${with_cyberlink_tree}" "$LINENO" 5
- fi
- CPPFLAGS="${CPPFLAGS_save}"
- 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
- fi
- # Check whether --enable-upnp was given.
- if test "${enable_upnp+set}" = set; then :
- enableval=$enable_upnp;
- fi
- for element in upnp_intel; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} "'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- if test "x${enable_upnp}" != "xno"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UpnpInit in -lupnp" >&5
- $as_echo_n "checking for UpnpInit in -lupnp... " >&6; }
- if test "${ac_cv_lib_upnp_UpnpInit+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lupnp -lpthread $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 UpnpInit ();
- int
- main ()
- {
- return UpnpInit ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_upnp_UpnpInit=yes
- else
- ac_cv_lib_upnp_UpnpInit=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_upnp_UpnpInit" >&5
- $as_echo "$ac_cv_lib_upnp_UpnpInit" >&6; }
- if test "x$ac_cv_lib_upnp_UpnpInit" = x""yes; then :
- has_upnp="yes"
- else
- has_upnp="no"
- fi
- if test "x${enable_upnp}" != "x" && test "${has_upnp}" = "no"; then :
- as_fn_error "cannot find Intel UPnP SDK (libupnp)" "$LINENO" 5
- fi
- if test "${has_upnp}" = "yes"; then :
- for element in upnp_intel; do
- eval "LIBS_${element}="'"'"-lupnp -lixml "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- else
- has_upnp="no"
- fi
- if test "${has_upnp}" = "yes"; then :
- PLUGINS="${PLUGINS} upnp_intel"
- LTLIBupnp_intel="libupnp_intel_plugin.la"
- fi
- # Check whether --with- was given.
- if test "${with_+set}" = set; then :
- withval=$with_;
- fi
- if test "${SYS}" = "beos"
- then
- PLUGINS="${PLUGINS} beos"
- LTLIBbeos="libbeos_plugin.la"
- fi
- # Check whether --enable-skins2 was given.
- if test "${enable_skins2+set}" = set; then :
- enableval=$enable_skins2;
- fi
- if test "${enable_skins2}" = "yes" ||
- (test "${SYS}" != "darwin" && test "${SYS}" != "beos" &&
- test "${SYS}" != "mingwce" && test "${enable_skins2}" != "no"); then
- skins2_missing_lib="no"
- if test "${have_freetype}" != "yes"; then
- skins2_missing_lib="yes"
- if test "${enable_skins2}" = "yes"; then
- as_fn_error "Could not find freetype (required for skins2)" "$LINENO" 5
- fi
- fi
- if test "${skins2_missing_lib}" = "no" && (test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"); then
- PLUGINS="${PLUGINS} skins2"
- LTLIBskins2="libskins2_plugin.la"
- ALIASES="${ALIASES} svlc"
- for element in skins2; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -U_OFF_T_ -U_off_t -Imodules/gui/skins2 -DWIN32_SKINS"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in skins2; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -O2 -fno-rtti"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in skins2; do
- eval "LIBS_${element}="'"'"-loleaut32 -lwinspool -lwinmm -lshell32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -lcomdlg32 -lole32 -luuid -lcomctl32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else if test "${skins2_missing_lib}" = "no" && (test "${SYS}" = "darwin"); then
- PLUGINS="${PLUGINS} skins2"
- LTLIBskins2="libskins2_plugin.la"
- ALIASES="${ALIASES} svlc"
- for element in skins2; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -Imodules/gui/skins2 -DMACOSX_SKINS"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in skins2; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -O2 -fno-rtti"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in skins2; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,Carbon "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- else if test "${skins2_missing_lib}" = "no"; then
- PLUGINS="${PLUGINS} skins2"
- LTLIBskins2="libskins2_plugin.la"
- ALIASES="${ALIASES} svlc"
- for element in skins2; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -Imodules/gui/skins2 ${X_CFLAGS} -DX11_SKINS"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in skins2; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -O2 -fno-rtti"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in skins2; do
- eval "LIBS_${element}="'"'"${X_LIBS} ${X_PRE_LIBS} -lXext -lX11 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi fi fi
- fi
- if test "${enable_skins2}" = "yes" ||
- (test "${SYS}" != "darwin" && test "${SYS}" != "beos" &&
- test "${SYS}" != "mingwce" && test "${enable_skins2}" != "no"); then
- BUILD_SKINS_TRUE=
- BUILD_SKINS_FALSE='#'
- else
- BUILD_SKINS_TRUE='#'
- BUILD_SKINS_FALSE=
- fi
- # Check whether --enable-pda was given.
- if test "${enable_pda+set}" = set; then :
- enableval=$enable_pda;
- fi
- if test "${enable_pda}" = "yes"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
- $as_echo_n "checking for GTK2... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$GTK2_CFLAGS"; then
- pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0, gthread-2.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0, gthread-2.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0, gthread-2.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$GTK2_LIBS"; then
- pkg_cv_GTK2_LIBS="$GTK2_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0, gthread-2.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0, gthread-2.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0, gthread-2.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
- GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0, gthread-2.0"`
- else
- GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0, gthread-2.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$GTK2_PKG_ERRORS" >&5
- as_fn_error "Package requirements (gtk+-2.0 >= 2.0.0, gthread-2.0) were not met:
- $GTK2_PKG_ERRORS
- Consider adjusting the PKG_CONFIG_PATH environment variable if you
- installed software in a non-standard prefix.
- Alternatively, you may set the environment variables GTK2_CFLAGS
- and GTK2_LIBS to avoid the need to call pkg-config.
- See the pkg-config man page for more details.
- " "$LINENO" 5
- elif test $pkg_failed = untried; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in `$ac_pwd':" >&5
- $as_echo "$as_me: error: in `$ac_pwd':" >&2;}
- as_fn_error "The pkg-config script could not be found or is too old. Make sure it
- is in your PATH or set the PKG_CONFIG environment variable to the full
- path to pkg-config.
- Alternatively, you may set the environment variables GTK2_CFLAGS
- and GTK2_LIBS to avoid the need to call pkg-config.
- See the pkg-config man page for more details.
- To get pkg-config, see <http://pkg-config.freedesktop.org/>.
- See `config.log' for more details." "$LINENO" 5; }
- else
- GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
- GTK2_LIBS=$pkg_cv_GTK2_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- :
- fi
- for element in gtk2; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${GTK2_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in gtk2; do
- eval "LIBS_${element}="'"'"${GTK2_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in pda; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${GTK2_CFLAGS} ${CFLAGS_pda}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in pda; do
- eval "LIBS_${element}="'"'"${LDFLAGS_pda} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in pda; do
- eval "LIBS_${element}="'"'"${GTK2_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- PLUGINS="${PLUGINS} pda"
- LTLIBpda="libpda_plugin.la"
- if test "${SYS}" != "mingw32"; then
- NEED_GTK2_MAIN=yes
- for element in gtk2_main; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $GTK2_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in gtk2_main; do
- eval "LIBS_${element}="'"'"$GTK2_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- if test "${enable_pda}" = "yes"; then
- BUILD_PDA_TRUE=
- BUILD_PDA_FALSE='#'
- else
- BUILD_PDA_TRUE='#'
- BUILD_PDA_FALSE=
- fi
- # Check whether --enable-maemo was given.
- if test "${enable_maemo+set}" = set; then :
- enableval=$enable_maemo;
- fi
- if test "${enable_maemo}" = "yes"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HILDON" >&5
- $as_echo_n "checking for HILDON... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$HILDON_CFLAGS"; then
- pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "hildon-1 hildon-fm-2""; } >&5
- ($PKG_CONFIG --exists --print-errors "hildon-1 hildon-fm-2") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 hildon-fm-2" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$HILDON_LIBS"; then
- pkg_cv_HILDON_LIBS="$HILDON_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "hildon-1 hildon-fm-2""; } >&5
- ($PKG_CONFIG --exists --print-errors "hildon-1 hildon-fm-2") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-1 hildon-fm-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
- HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 hildon-fm-2"`
- else
- HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 hildon-fm-2"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$HILDON_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "${enable_maemo}" = "yes"; then :
- as_fn_error "Hildon libraries not found" "$LINENO" 5
- fi
- enable_maemo="no"
- elif test $pkg_failed = untried; then
- if test "${enable_maemo}" = "yes"; then :
- as_fn_error "Hildon libraries not found" "$LINENO" 5
- fi
- enable_maemo="no"
- else
- HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
- HILDON_LIBS=$pkg_cv_HILDON_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in maemo; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${HILDON_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in maemo; do
- eval "LIBS_${element}="'"'"${HILDON_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- PLUGINS="${PLUGINS} maemo"
- LTLIBmaemo="libmaemo_plugin.la"
- PLUGINS="${PLUGINS} swscale_maemo"
- LTLIBswscale_maemo="libswscale_maemo_plugin.la"
- $as_echo "#define BUILD_MAEMO 1" >>confdefs.h
- ALIASES="${ALIASES} mvlc"
- fi
- fi
- if test "${enable_maemo}" = "yes"; then
- BUILD_MAEMO_TRUE=
- BUILD_MAEMO_FALSE='#'
- else
- BUILD_MAEMO_TRUE='#'
- BUILD_MAEMO_FALSE=
- fi
- # Check whether --enable-qt4 was given.
- if test "${enable_qt4+set}" = set; then :
- enableval=$enable_qt4;
- else
- if test "${SYS}" = "darwin"; then :
- enable_qt4=no
- fi
- fi
- if test "${enable_qt4}" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT4" >&5
- $as_echo_n "checking for QT4... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$QT4_CFLAGS"; then
- pkg_cv_QT4_CFLAGS="$QT4_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "QtCore QtGui >= 4.3.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "QtCore QtGui >= 4.3.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_QT4_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.3.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$QT4_LIBS"; then
- pkg_cv_QT4_LIBS="$QT4_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "QtCore QtGui >= 4.3.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "QtCore QtGui >= 4.3.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_QT4_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.3.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
- QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore QtGui >= 4.3.0"`
- else
- QT4_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.3.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$QT4_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "${enable_qt4}" = "yes"; then :
- as_fn_error "Qt 4 library not found" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Qt 4 library not found" >&5
- $as_echo "$as_me: WARNING: Qt 4 library not found" >&2;}
- fi
- enable_qt4="no"
- elif test $pkg_failed = untried; then
- if test "${enable_qt4}" = "yes"; then :
- as_fn_error "Qt 4 library not found" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Qt 4 library not found" >&5
- $as_echo "$as_me: WARNING: Qt 4 library not found" >&2;}
- fi
- enable_qt4="no"
- else
- QT4_CFLAGS=$pkg_cv_QT4_CFLAGS
- QT4_LIBS=$pkg_cv_QT4_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} qt4"
- LTLIBqt4="libqt4_plugin.la"
- $as_echo "#define HAVE_QT4 1" >>confdefs.h
- ALIASES="${ALIASES} qvlc"
- if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" -a "${SYS}" != "cygwin" -a "${SYS}" != "darwin"; then :
- for element in qt4; do
- eval "LIBS_${element}="'"'"$QT4_LIBS -lX11 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- for element in qt4; do
- eval "LIBS_${element}="'"'"$QT4_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- QT4LOCALEDIR="$(eval $PKG_CONFIG --variable=prefix QtCore)/share/qt4/translations/"
- for element in qt4; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} $QT4_CFLAGS -DQT4LOCALEDIR=\\\"${QT4LOCALEDIR}\\\""'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for ac_prog in moc-qt4 moc
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_MOC+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $MOC in
- [\/]* | ?:[\/]*)
- ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in `eval $PKG_CONFIG --variable=exec_prefix QtCore`/bin
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- MOC=$ac_cv_path_MOC
- if test -n "$MOC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
- $as_echo "$MOC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$MOC" && break
- done
- test -n "$MOC" || MOC="moc"
- # Extract the first word of "rcc", so it can be a program name with args.
- set dummy rcc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_RCC+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $RCC in
- [\/]* | ?:[\/]*)
- ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in `eval $PKG_CONFIG --variable=exec_prefix QtCore`/bin
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_RCC" && ac_cv_path_RCC="rcc"
- ;;
- esac
- fi
- RCC=$ac_cv_path_RCC
- if test -n "$RCC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
- $as_echo "$RCC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- for ac_prog in uic-qt4 uic
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_UIC+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $UIC in
- [\/]* | ?:[\/]*)
- ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in `eval $PKG_CONFIG --variable=exec_prefix QtCore`/bin
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- UIC=$ac_cv_path_UIC
- if test -n "$UIC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
- $as_echo "$UIC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$UIC" && break
- done
- test -n "$UIC" || UIC="uic"
- fi
- fi
- if test "x$enable_qt4" != "xno"; then
- ENABLE_QT4_TRUE=
- ENABLE_QT4_FALSE='#'
- else
- ENABLE_QT4_TRUE='#'
- ENABLE_QT4_FALSE=
- fi
- # Check whether --enable-wince was given.
- if test "${enable_wince+set}" = set; then :
- enableval=$enable_wince;
- fi
- if test "${enable_wince}" != "no"; then
- if test "${SYS}" = "mingwce"; then
- PLUGINS="${PLUGINS} wince"
- LTLIBwince="libwince_plugin.la"
- for element in wince; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} "'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in wince; do
- eval "LIBS_${element}="'"'"-lcommctrl -lcommdlg -laygshell "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in wince; do
- eval "LIBS_${element}="'"'"\${top_builddir}modules/gui/wince/wince_rc.o "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- elif test "${SYS}" = "mingw32"; then
- for element in wince; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} "'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- for element in wince; do
- eval "LIBS_${element}="'"'"-lcomctl32 -lcomdlg32 -lgdi32 -lole32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in wince; do
- eval "LIBS_${element}="'"'"\${top_builddir}modules/gui/wince/wince_rc.o "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- if test "${enable_skins2}" != "no" && test "x$enable_qt4" = "xno"; then :
- as_fn_error "The skins2 module depends on a the Qt4 development package. Without it you won't be able to open any dialog box from the interface, which makes the skins2 interface rather useless. Install the Qt4 development package or alternatively you can also configure with: --disable-qt4 --disable-skins2." "$LINENO" 5
- fi
- # Check whether --enable-opie was given.
- if test "${enable_opie+set}" = set; then :
- enableval=$enable_opie; if test "${enable_opie}" = "yes"; then
- # Check whether --with-qte was given.
- if test "${with_qte+set}" = set; then :
- withval=$with_qte;
- fi
- if test "${with_qte}" != "no" -a -n "${with_qte}"
- then
- for element in qte; do
- eval "LIBS_${element}="'"'"-L${with_qte}/lib `echo -L${with_qte}/lib | sed 's,opt/QtPalmtop,usr,'` -ljpeg -lqte "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in qte; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -I${with_qte}/include `echo -I${with_qte}/include | sed 's,opt/QtPalmtop,usr,'` -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- else
- for element in qte; do
- eval "LIBS_${element}="'"'"-L${QTDIR}/lib `echo -L${QTDIR}/lib | sed 's,opt/QtPalmtop,usr,'` "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in qte; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} -I${QTDIR}/include `echo -I${QTDIR}/include | sed 's,opt/QtPalmtop,usr,'`"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- fi
- CPPFLAGS="${CPPFLAGS_save} ${CXXFLAGS_qte}"
- for ac_header in qt.h jpeglib.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
- else
- as_fn_error "echo "Cannot find QT Embedded development headers."" "$LINENO" 5
- fi
- done
- CPPFLAGS="${CPPFLAGS_save}"
- PLUGINS="${PLUGINS} opie"
- LTLIBopie="libopie_plugin.la"
- NEED_QTE_MAIN=yes
- for element in opie; do
- eval "LIBS_${element}="'"'"-lqpe ${LDFLAGS_qte} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in opie; do
- eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} ${CXXFLAGS_qte}"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- if test "${with_qte}" != "no" -a -n "${with_qte}"
- then
- MOC=${with_qte}/bin/moc
- else
- MOC=${QTDIR}/bin/moc
- fi
- fi
- fi
- # Check whether --enable-macosx was given.
- if test "${enable_macosx+set}" = set; then :
- enableval=$enable_macosx;
- fi
- if test "x${enable_macosx}" = "xyes"
- then
- for element in access_eyetv; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,Foundation "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in macosx minimal_macosx opengllayer qtcapture; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,Cocoa "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in macosx minimal_macosx opengllayer; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,OpenGL "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in macosx minimal_macosx; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,Carbon "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in macosx minimal_macosx; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,CoreServices "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in macosx minimal_macosx; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,AGL "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in macosx; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,IOKit "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in macosx; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,AddressBook "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in qtcapture; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,QTKit "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in qtcapture; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,CoreAudio "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in macosx; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,WebKit "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in opengllayer qtcapture; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,QuartzCore "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in qtcapture; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,CoreVideo "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in macosx minimal_macosx opengllayer growl; do
- eval "OBJCFLAGS_${element}="'"$'"{OBJCFLAGS_${element}} -fobjc-exceptions "'"'
- am_modules_with_objcflags="${am_modules_with_objcflags} ${element}"
- done
- PLUGINS="${PLUGINS} access_eyetv"
- LTLIBaccess_eyetv="libaccess_eyetv_plugin.la"
- PLUGINS="${PLUGINS} qtcapture"
- LTLIBqtcapture="libqtcapture_plugin.la"
- PLUGINS="${PLUGINS} macosx"
- LTLIBmacosx="libmacosx_plugin.la"
- PLUGINS="${PLUGINS} minimal_macosx"
- LTLIBminimal_macosx="libminimal_macosx_plugin.la"
- ORIGCFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -x objective-c"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #import <QuartzCore/CALayer.h>
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- PLUGINS="${PLUGINS} opengllayer"
- LTLIBopengllayer="libopengllayer_plugin.la"
- for element in opengllayer; do
- eval "OBJCFLAGS_${element}="'"$'"{OBJCFLAGS_${element}} "'"'
- am_modules_with_objcflags="${am_modules_with_objcflags} ${element}"
- done
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS=$ORIGCFLAGS
- fi
- # Check whether --enable-qnx was given.
- if test "${enable_qnx+set}" = set; then :
- enableval=$enable_qnx;
- fi
- if test "${enable_qnx}" != "no"
- then
- for ac_header in Ph.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "Ph.h" "ac_cv_header_Ph_h" "$ac_includes_default"
- if test "x$ac_cv_header_Ph_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PH_H 1
- _ACEOF
- PLUGINS="${PLUGINS} qnx"
- LTLIBqnx="libqnx_plugin.la"
- for element in qnx; do
- eval "LIBS_${element}="'"'"-lasound -lph "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- fi
- # Check whether --enable-ncurses was given.
- if test "${enable_ncurses+set}" = set; then :
- enableval=$enable_ncurses; if test "${enable_ncurses}" != "no"; then
- ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
- if test "x$ac_cv_header_ncurses_h" = x""yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mvprintw in -lncursesw" >&5
- $as_echo_n "checking for mvprintw in -lncursesw... " >&6; }
- if test "${ac_cv_lib_ncursesw_mvprintw+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lncursesw $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 mvprintw ();
- int
- main ()
- {
- return mvprintw ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ncursesw_mvprintw=yes
- else
- ac_cv_lib_ncursesw_mvprintw=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_ncursesw_mvprintw" >&5
- $as_echo "$ac_cv_lib_ncursesw_mvprintw" >&6; }
- if test "x$ac_cv_lib_ncursesw_mvprintw" = x""yes; then :
- PLUGINS="${PLUGINS} ncurses"
- LTLIBncurses="libncurses_plugin.la"
- for element in ncurses; do
- eval "LIBS_${element}="'"'"-lncursesw "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- ALIASES="${ALIASES} nvlc"
- $as_echo "#define HAVE_NCURSESW 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
- $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
- if test "${ac_cv_lib_ncursesw_tgetent+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lncursesw $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 tgetent ();
- int
- main ()
- {
- return tgetent ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ncursesw_tgetent=yes
- else
- ac_cv_lib_ncursesw_tgetent=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_ncursesw_tgetent" >&5
- $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
- if test "x$ac_cv_lib_ncursesw_tgetent" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBNCURSESW 1
- _ACEOF
- LIBS="-lncursesw $LIBS"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfow" >&5
- $as_echo_n "checking for tgetent in -ltinfow... " >&6; }
- if test "${ac_cv_lib_tinfow_tgetent+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltinfow $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 tgetent ();
- int
- main ()
- {
- return tgetent ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_tinfow_tgetent=yes
- else
- ac_cv_lib_tinfow_tgetent=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_tinfow_tgetent" >&5
- $as_echo "$ac_cv_lib_tinfow_tgetent" >&6; }
- if test "x$ac_cv_lib_tinfow_tgetent" = x""yes; then :
- for element in ncurses; do
- eval "LIBS_${element}="'"'"-ltinfow "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
- $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
- if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltinfo $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 tgetent ();
- int
- main ()
- {
- return tgetent ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_tinfo_tgetent=yes
- else
- ac_cv_lib_tinfo_tgetent=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_tinfo_tgetent" >&5
- $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
- if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
- for element in ncurses; do
- eval "LIBS_${element}="'"'"-ltinfo "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- if test "x${enable_ncurses}" != "x"; then :
- as_fn_error "tgetent not found in ncursesw tinfow tinfo
- " "$LINENO" 5
- fi
- fi
- fi
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mvprintw in -lncurses" >&5
- $as_echo_n "checking for mvprintw in -lncurses... " >&6; }
- if test "${ac_cv_lib_ncurses_mvprintw+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lncurses $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 mvprintw ();
- int
- main ()
- {
- return mvprintw ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ncurses_mvprintw=yes
- else
- ac_cv_lib_ncurses_mvprintw=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_ncurses_mvprintw" >&5
- $as_echo "$ac_cv_lib_ncurses_mvprintw" >&6; }
- if test "x$ac_cv_lib_ncurses_mvprintw" = x""yes; then :
- PLUGINS="${PLUGINS} ncurses"
- LTLIBncurses="libncurses_plugin.la"
- ALIASES="${ALIASES} nvlc"
- for element in ncurses; do
- eval "LIBS_${element}="'"'"-lncurses "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
- $as_echo_n "checking for tgetent in -lncurses... " >&6; }
- if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lncurses $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 tgetent ();
- int
- main ()
- {
- return tgetent ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ncurses_tgetent=yes
- else
- ac_cv_lib_ncurses_tgetent=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_ncurses_tgetent" >&5
- $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
- if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBNCURSES 1
- _ACEOF
- LIBS="-lncurses $LIBS"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
- $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
- if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltinfo $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 tgetent ();
- int
- main ()
- {
- return tgetent ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_tinfo_tgetent=yes
- else
- ac_cv_lib_tinfo_tgetent=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_tinfo_tgetent" >&5
- $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
- if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
- for element in ncurses; do
- eval "LIBS_${element}="'"'"-ltinfo "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- if test "x${enable_ncurses}" != "x"; then :
- as_fn_error "tgetent not found in ncurses tinfo" "$LINENO" 5
- fi
- fi
- fi
- else
- if test "x${enable_ncurses}" != "x"; then :
- as_fn_error "libncurses not found" "$LINENO" 5
- fi
- fi
- fi
- fi
- fi
- fi
- # Check whether --enable-xosd was given.
- if test "${enable_xosd+set}" = set; then :
- enableval=$enable_xosd;
- fi
- if test "${enable_xosd}" = "yes"
- then
- for ac_header in xosd.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "xosd.h" "ac_cv_header_xosd_h" "$ac_includes_default"
- if test "x$ac_cv_header_xosd_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_XOSD_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xosd_set_horizontal_offset in -lxosd" >&5
- $as_echo_n "checking for xosd_set_horizontal_offset in -lxosd... " >&6; }
- if test "${ac_cv_lib_xosd_xosd_set_horizontal_offset+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lxosd $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 xosd_set_horizontal_offset ();
- int
- main ()
- {
- return xosd_set_horizontal_offset ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_xosd_xosd_set_horizontal_offset=yes
- else
- ac_cv_lib_xosd_xosd_set_horizontal_offset=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_xosd_xosd_set_horizontal_offset" >&5
- $as_echo "$ac_cv_lib_xosd_xosd_set_horizontal_offset" >&6; }
- if test "x$ac_cv_lib_xosd_xosd_set_horizontal_offset" = x""yes; then :
- PLUGINS="${PLUGINS} xosd"
- LTLIBxosd="libxosd_plugin.la"
- for element in xosd; do
- eval "LIBS_${element}="'"'"-lxosd "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- done
- fi
- # Check whether --enable-fbosd was given.
- if test "${enable_fbosd+set}" = set; then :
- enableval=$enable_fbosd;
- fi
- if test "${enable_fbosd}" = "yes"
- then
- for ac_header in linux/fb.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
- if test "x$ac_cv_header_linux_fb_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LINUX_FB_H 1
- _ACEOF
- PLUGINS="${PLUGINS} fbosd"
- LTLIBfbosd="libfbosd_plugin.la"
- fi
- done
- fi
- # Check whether --enable-visual was given.
- if test "${enable_visual+set}" = set; then :
- enableval=$enable_visual;
- fi
- if test "${enable_visual}" != "no"
- then
- PLUGINS="${PLUGINS} visual"
- LTLIBvisual="libvisual_plugin.la"
- fi
- # Check whether --enable-galaktos was given.
- if test "${enable_galaktos+set}" = set; then :
- enableval=$enable_galaktos;
- fi
- if test "${enable_galaktos}" = "yes"
- then
- for ac_header in GL/gl.h GL/glu.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} galaktos"
- LTLIBgalaktos="libgalaktos_plugin.la"
- if test "${SYS}" != "mingw32"; then
- for element in galaktos; do
- eval "LIBS_${element}="'"'"${X_LIBS} -lGL -lGLU "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- for element in galaktos; do
- eval "LIBS_${element}="'"'"-lopengl32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- done
- fi
- # Check whether --enable-goom was given.
- if test "${enable_goom+set}" = set; then :
- enableval=$enable_goom;
- fi
- if test "${enable_goom}" = "yes"
- then
- # Check whether --with-goom-tree was given.
- if test "${with_goom_tree+set}" = set; then :
- withval=$with_goom_tree;
- fi
- if test "${with_goom_tree}" != "no" -a -n "${with_goom_tree}"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgoom2.a in ${with_goom_tree}" >&5
- $as_echo_n "checking for libgoom2.a in ${with_goom_tree}... " >&6; }
- real_goom_tree="`cd ${with_goom_tree} 2>/dev/null && pwd`"
- if test -z "${real_goom_tree}"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "cannot cd to ${with_goom_tree}" "$LINENO" 5
- fi
- if test -f "${real_goom_tree}/src/.libs/libgoom2.a"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_goom_tree}/src/.libs/libgoom2.a" >&5
- $as_echo "${real_goom_tree}/src/.libs/libgoom2.a" >&6; }
- PLUGINS="${PLUGINS} goom"
- LTLIBgoom="libgoom_plugin.la"
- for element in goom; do
- eval "LIBS_${element}="'"'"-L${real_goom_tree}/src/.libs -lgoom2 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in goom; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_goom_tree}/src -DUSE_GOOM_TREE"'"'
- 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_echo "$as_me:${as_lineno-$LINENO}: checking for libgoom.a in ${with_goom_tree}" >&5
- $as_echo_n "checking for libgoom.a in ${with_goom_tree}... " >&6; }
- if test -f "${real_goom_tree}/libgoom.a"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${real_goom_tree}/libgoom.a" >&5
- $as_echo "${real_goom_tree}/libgoom.a" >&6; }
- PLUGINS="${PLUGINS} goom"
- LTLIBgoom="libgoom_plugin.la"
- for element in goom; do
- eval "LIBS_${element}="'"'"-L${real_goom_tree} -lgoom "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in goom; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${real_goom_tree} -DUSE_GOOM_TREE -DOLD_GOOM"'"'
- 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_goom_tree}/src/.libs/libgoom2.a, make sure you compiled goom in ${with_goom_tree}" "$LINENO" 5
- fi
- fi
- else
- for ac_header in goom/goom.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "goom/goom.h" "ac_cv_header_goom_goom_h" "$ac_includes_default"
- if test "x$ac_cv_header_goom_goom_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GOOM_GOOM_H 1
- _ACEOF
- LDFLAGS="${LDFLAGS_save} ${LIBS_goom}"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for goom_init in -lgoom2" >&5
- $as_echo_n "checking for goom_init in -lgoom2... " >&6; }
- if test "${ac_cv_lib_goom2_goom_init+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgoom2 $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 goom_init ();
- int
- main ()
- {
- return goom_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_goom2_goom_init=yes
- else
- ac_cv_lib_goom2_goom_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_goom2_goom_init" >&5
- $as_echo "$ac_cv_lib_goom2_goom_init" >&6; }
- if test "x$ac_cv_lib_goom2_goom_init" = x""yes; then :
- PLUGINS="${PLUGINS} goom"
- LTLIBgoom="libgoom_plugin.la"
- for element in goom; do
- eval "LIBS_${element}="'"'"-lgoom2 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- as_fn_error "Could not find goom on your system: you may get it from http://www.ios-software.com/." "$LINENO" 5
- fi
- LDFLAGS="${LDFLAGS_save}"
- fi
- done
- fi
- fi
- if test "${SYS}" = "mingw32" -o "${SYS}" = "linux"; then
- # Check whether --enable-atmo was given.
- if test "${enable_atmo+set}" = set; then :
- enableval=$enable_atmo;
- fi
- if test "${enable_atmo}" != "no"; 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
- PLUGINS="${PLUGINS} atmo"
- LTLIBatmo="libatmo_plugin.la"
- 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
- fi
- # Check whether --enable-bonjour was given.
- if test "${enable_bonjour+set}" = set; then :
- enableval=$enable_bonjour;
- fi
- if test "${enable_bonjour}" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONJOUR" >&5
- $as_echo_n "checking for BONJOUR... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$BONJOUR_CFLAGS"; then
- pkg_cv_BONJOUR_CFLAGS="$BONJOUR_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "avahi-client >= 0.6""; } >&5
- ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_BONJOUR_CFLAGS=`$PKG_CONFIG --cflags "avahi-client >= 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 "$BONJOUR_LIBS"; then
- pkg_cv_BONJOUR_LIBS="$BONJOUR_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "avahi-client >= 0.6""; } >&5
- ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_BONJOUR_LIBS=`$PKG_CONFIG --libs "avahi-client >= 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
- BONJOUR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "avahi-client >= 0.6"`
- else
- BONJOUR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "avahi-client >= 0.6"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$BONJOUR_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: avahi-client library not found" >&5
- $as_echo "$as_me: WARNING: avahi-client library not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: avahi-client library not found" >&5
- $as_echo "$as_me: WARNING: avahi-client library not found" >&2;}
- else
- BONJOUR_CFLAGS=$pkg_cv_BONJOUR_CFLAGS
- BONJOUR_LIBS=$pkg_cv_BONJOUR_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_AVAHI_CLIENT 1" >>confdefs.h
- for element in bonjour access_output_http; do
- eval "LIBS_${element}="'"'"$BONJOUR_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in bonjour access_output_http; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $BONJOUR_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- PLUGINS="${PLUGINS} bonjour"
- LTLIBbonjour="libbonjour_plugin.la"
- fi
- fi
- # Check whether --enable-lirc was given.
- if test "${enable_lirc+set}" = set; then :
- enableval=$enable_lirc;
- fi
- if test "${enable_lirc}" = "yes"
- then
- ac_fn_c_check_header_mongrel "$LINENO" "lirc/lirc_client.h" "ac_cv_header_lirc_lirc_client_h" "$ac_includes_default"
- if test "x$ac_cv_header_lirc_lirc_client_h" = x""yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lirc_init in -llirc_client" >&5
- $as_echo_n "checking for lirc_init in -llirc_client... " >&6; }
- if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llirc_client $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 lirc_init ();
- int
- main ()
- {
- return lirc_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lirc_client_lirc_init=yes
- else
- ac_cv_lib_lirc_client_lirc_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_lirc_client_lirc_init" >&5
- $as_echo "$ac_cv_lib_lirc_client_lirc_init" >&6; }
- if test "x$ac_cv_lib_lirc_client_lirc_init" = x""yes; then :
- have_lirc="true"
- else
- have_lirc="false"
- fi
- else
- have_lirc="false"
- fi
- if test "${have_lirc}" = "true"
- then
- PLUGINS="${PLUGINS} lirc"
- LTLIBlirc="liblirc_plugin.la"
- for element in lirc; do
- eval "LIBS_${element}="'"'"-llirc_client "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5
- $as_echo_n "checking for XCB... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$XCB_CFLAGS"; then
- pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "xcb""; } >&5
- ($PKG_CONFIG --exists --print-errors "xcb") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$XCB_LIBS"; then
- pkg_cv_XCB_LIBS="$XCB_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "xcb""; } >&5
- ($PKG_CONFIG --exists --print-errors "xcb") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb" 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
- XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb"`
- else
- XCB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$XCB_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: XCB was not found" >&5
- $as_echo "$as_me: WARNING: XCB was not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: XCB was not found" >&5
- $as_echo "$as_me: WARNING: XCB was not found" >&2;}
- else
- XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
- XCB_LIBS=$pkg_cv_XCB_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_KEYSYMS" >&5
- $as_echo_n "checking for XCB_KEYSYMS... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$XCB_KEYSYMS_CFLAGS"; then
- pkg_cv_XCB_KEYSYMS_CFLAGS="$XCB_KEYSYMS_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "xcb-keysyms""; } >&5
- ($PKG_CONFIG --exists --print-errors "xcb-keysyms") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XCB_KEYSYMS_CFLAGS=`$PKG_CONFIG --cflags "xcb-keysyms" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$XCB_KEYSYMS_LIBS"; then
- pkg_cv_XCB_KEYSYMS_LIBS="$XCB_KEYSYMS_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "xcb-keysyms""; } >&5
- ($PKG_CONFIG --exists --print-errors "xcb-keysyms") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XCB_KEYSYMS_LIBS=`$PKG_CONFIG --libs "xcb-keysyms" 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
- XCB_KEYSYMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb-keysyms"`
- else
- XCB_KEYSYMS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb-keysyms"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$XCB_KEYSYMS_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: XCB keysyms was not found" >&5
- $as_echo "$as_me: WARNING: XCB keysyms was not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: XCB keysyms was not found" >&5
- $as_echo "$as_me: WARNING: XCB keysyms was not found" >&2;}
- else
- XCB_KEYSYMS_CFLAGS=$pkg_cv_XCB_KEYSYMS_CFLAGS
- XCB_KEYSYMS_LIBS=$pkg_cv_XCB_KEYSYMS_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
- $as_echo_n "checking for XPROTO... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$XPROTO_CFLAGS"; then
- pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "xproto""; } >&5
- ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$XPROTO_LIBS"; then
- pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "xproto""; } >&5
- ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 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
- XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto"`
- else
- XPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$XPROTO_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: Xproto not found " >&5
- $as_echo "$as_me: WARNING: Xproto not found " >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xproto not found " >&5
- $as_echo "$as_me: WARNING: Xproto not found " >&2;}
- else
- XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
- XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} globalhotkeys"
- LTLIBglobalhotkeys="libglobalhotkeys_plugin.la"
- for element in globalhotkeys; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${XCB_KEYSYMS_CFLAGS} ${XCB_CFLAGS} "'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in globalhotkeys; do
- eval "LIBS_${element}="'"'"${XCB_KEYSYMS_LIBS} ${XCB_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- fi
- # Check whether --with- was given.
- if test "${with_+set}" = set; then :
- withval=$with_;
- fi
- # Check whether --enable-libgcrypt was given.
- if test "${enable_libgcrypt+set}" = set; then :
- enableval=$enable_libgcrypt;
- fi
- if test "${enable_libgcrypt}" != "no"; then :
- # Check whether --with-libgcrypt-prefix was given.
- if test "${with_libgcrypt_prefix+set}" = set; then :
- withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
- else
- libgcrypt_config_prefix=""
- fi
- if test x$libgcrypt_config_prefix != x ; then
- if test x${LIBGCRYPT_CONFIG+set} != xset ; then
- LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
- fi
- fi
- # Extract the first word of "libgcrypt-config", so it can be a program name with args.
- set dummy libgcrypt-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $LIBGCRYPT_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
- ;;
- esac
- fi
- LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
- if test -n "$LIBGCRYPT_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
- $as_echo "$LIBGCRYPT_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- tmp=1:1.1.94
- if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
- req_libgcrypt_api=`echo "$tmp" | sed 's/(.*):(.*)/1/'`
- min_libgcrypt_version=`echo "$tmp" | sed 's/(.*):(.*)/2/'`
- else
- req_libgcrypt_api=0
- min_libgcrypt_version="$tmp"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
- $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
- ok=no
- if test "$LIBGCRYPT_CONFIG" != "no" ; then
- req_major=`echo $min_libgcrypt_version |
- sed 's/([0-9]*).([0-9]*).([0-9]*)/1/'`
- req_minor=`echo $min_libgcrypt_version |
- sed 's/([0-9]*).([0-9]*).([0-9]*)/2/'`
- req_micro=`echo $min_libgcrypt_version |
- sed 's/([0-9]*).([0-9]*).([0-9]*)/3/'`
- libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
- major=`echo $libgcrypt_config_version |
- sed 's/([0-9]*).([0-9]*).([0-9]*).*/1/'`
- minor=`echo $libgcrypt_config_version |
- sed 's/([0-9]*).([0-9]*).([0-9]*).*/2/'`
- micro=`echo $libgcrypt_config_version |
- sed 's/([0-9]*).([0-9]*).([0-9]*).*/3/'`
- if test "$major" -gt "$req_major"; then
- ok=yes
- else
- if test "$major" -eq "$req_major"; then
- if test "$minor" -gt "$req_minor"; then
- ok=yes
- else
- if test "$minor" -eq "$req_minor"; then
- if test "$micro" -ge "$req_micro"; then
- ok=yes
- fi
- fi
- fi
- fi
- fi
- fi
- if test $ok = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
- $as_echo "yes ($libgcrypt_config_version)" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test $ok = yes; then
- # If we have a recent libgcrypt, we should also check that the
- # API is compatible
- if test "$req_libgcrypt_api" -gt 0 ; then
- tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
- if test "$tmp" -gt 0 ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
- $as_echo_n "checking LIBGCRYPT API version... " >&6; }
- if test "$req_libgcrypt_api" -eq "$tmp" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
- $as_echo "okay" >&6; }
- else
- ok=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
- $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
- fi
- fi
- fi
- fi
- if test $ok = yes; then
- LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
- LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
- have_libgcrypt="yes"
- else
- LIBGCRYPT_CFLAGS=""
- LIBGCRYPT_LIBS=""
- have_libgcrypt="no"
- fi
- fi
- if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"; then
- if test "${have_libgcrypt}" = "yes"; then :
- for element in rtp stream_out_rtp; do
- eval "LIBS_${element}="'"'"${LIBGCRYPT_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- if test "${have_libgcrypt}" = "yes"; then
- HAVE_LIBGCRYPT_TRUE=
- HAVE_LIBGCRYPT_FALSE='#'
- else
- HAVE_LIBGCRYPT_TRUE='#'
- HAVE_LIBGCRYPT_FALSE=
- fi
- # Check whether --enable-gnutls was given.
- if test "${enable_gnutls+set}" = set; then :
- enableval=$enable_gnutls;
- fi
- if test "${enable_gnutls}" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
- $as_echo_n "checking for GNUTLS... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$GNUTLS_CFLAGS"; then
- pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "gnutls >= 1.7.4""; } >&5
- ($PKG_CONFIG --exists --print-errors "gnutls >= 1.7.4") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.7.4" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$GNUTLS_LIBS"; then
- pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "gnutls >= 1.7.4""; } >&5
- ($PKG_CONFIG --exists --print-errors "gnutls >= 1.7.4") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.7.4" 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
- GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.7.4"`
- else
- GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.7.4"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$GNUTLS_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "${enable_gnutls}" = "yes"; then :
- as_fn_error "gnutls not present or too old (version 1.7.4 required)" "$LINENO" 5
- fi
- elif test $pkg_failed = untried; then
- if test "${enable_gnutls}" = "yes"; then :
- as_fn_error "gnutls not present or too old (version 1.7.4 required)" "$LINENO" 5
- fi
- else
- GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
- GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} gnutls"
- LTLIBgnutls="libgnutls_plugin.la"
- for element in gnutls; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $GNUTLS_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- if test "${SYS}" = "mingw32"; then :
- for element in gnutls; do
- eval "LIBS_${element}="'"'"-lz "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in gnutls; do
- eval "LIBS_${element}="'"'"${LTLIBINTL} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- if test "${have_libgcrypt}" = "yes"; then :
- for element in gnutls; do
- eval "LIBS_${element}="'"'"${LIBGCRYPT_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in gnutls; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${LIBGCRYPT_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- fi
- for element in gnutls; do
- eval "LIBS_${element}="'"'"$GNUTLS_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --enable-remoteosd was given.
- if test "${enable_remoteosd+set}" = set; then :
- enableval=$enable_remoteosd;
- fi
- if test "${enable_remoteosd}" != "no"; then :
- if test "${have_libgcrypt}" = "yes"; then :
- PLUGINS="${PLUGINS} remoteosd"
- LTLIBremoteosd="libremoteosd_plugin.la"
- for element in remoteosd; do
- eval "LIBS_${element}="'"'"${LIBGCRYPT_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in remoteosd; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${LIBGCRYPT_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- else
- as_fn_error "libgcrypt support required for RemoteOSD plugin" "$LINENO" 5
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable RAOP plugin" >&5
- $as_echo_n "checking whether to enable RAOP plugin... " >&6; }
- if test "${have_libgcrypt}" = "yes"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} stream_out_raop"
- LTLIBstream_out_raop="libstream_out_raop_plugin.la"
- for element in stream_out_raop; do
- eval "LIBS_${element}="'"'"${LIBGCRYPT_LIBS} -lgpg-error "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in stream_out_raop; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${LIBGCRYPT_CFLAGS}"'"'
- 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_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgcrypt support required for RAOP plugin" >&5
- $as_echo "$as_me: WARNING: libgcrypt support required for RAOP plugin" >&2;}
- fi
- # Check whether --enable-update-check was given.
- if test "${enable_update_check+set}" = set; then :
- enableval=$enable_update_check;
- fi
- if test "${enable_update_check}" = "yes"
- then
- if test "${have_libgcrypt}" != "yes"
- then
- as_fn_error "libgcrypt is required for update checking system" "$LINENO" 5
- fi
- for element in libvlccore; do
- eval "LIBS_${element}="'"'"${LIBGCRYPT_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in libvlccore; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${LIBGCRYPT_CFLAGS}"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- $as_echo "#define UPDATE_CHECK 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
- $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
- if test "${ac_cv_c_bigendian+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_c_bigendian=unknown
- # See if we're dealing with a universal compiler.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifndef __APPLE_CC__
- not a universal capable compiler
- #endif
- typedef int dummy;
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- # Check for potential -arch flags. It is not universal unless
- # there are at least two -arch flags with different values.
- ac_arch=
- ac_prev=
- for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
- if test -n "$ac_prev"; then
- case $ac_word in
- i?86 | x86_64 | ppc | ppc64)
- if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
- ac_arch=$ac_word
- else
- ac_cv_c_bigendian=universal
- break
- fi
- ;;
- esac
- ac_prev=
- elif test "x$ac_word" = "x-arch"; then
- ac_prev=arch
- fi
- done
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test $ac_cv_c_bigendian = unknown; then
- # See if sys/param.h defines the BYTE_ORDER macro.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/param.h>
- int
- main ()
- {
- #if ! (defined BYTE_ORDER && defined BIG_ENDIAN
- && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN
- && LITTLE_ENDIAN)
- bogus endian macros
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- # It does; now see whether it defined to BIG_ENDIAN or not.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/param.h>
- int
- main ()
- {
- #if BYTE_ORDER != BIG_ENDIAN
- not big endian
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_bigendian=yes
- else
- ac_cv_c_bigendian=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if test $ac_cv_c_bigendian = unknown; then
- # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <limits.h>
- int
- main ()
- {
- #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
- bogus endian macros
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- # It does; now see whether it defined to _BIG_ENDIAN or not.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <limits.h>
- int
- main ()
- {
- #ifndef _BIG_ENDIAN
- not big endian
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_bigendian=yes
- else
- ac_cv_c_bigendian=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if test $ac_cv_c_bigendian = unknown; then
- # Compile a test program.
- if test "$cross_compiling" = yes; then :
- # Try to guess by grepping values from an object file.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- short int ascii_mm[] =
- { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
- short int ascii_ii[] =
- { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
- int use_ascii (int i) {
- return ascii_mm[i] + ascii_ii[i];
- }
- short int ebcdic_ii[] =
- { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
- short int ebcdic_mm[] =
- { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
- int use_ebcdic (int i) {
- return ebcdic_mm[i] + ebcdic_ii[i];
- }
- extern int foo;
- int
- main ()
- {
- return use_ascii (foo) == use_ebcdic (foo);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
- ac_cv_c_bigendian=yes
- fi
- if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
- if test "$ac_cv_c_bigendian" = unknown; then
- ac_cv_c_bigendian=no
- else
- # finding both strings is unlikely to happen, but who knows?
- ac_cv_c_bigendian=unknown
- fi
- fi
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- main ()
- {
- /* Are we little or big endian? From Harbison&Steele. */
- union
- {
- long int l;
- char c[sizeof (long int)];
- } u;
- u.l = 1;
- return u.c[sizeof (long int) - 1] == 1;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_c_bigendian=no
- else
- ac_cv_c_bigendian=yes
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
- $as_echo "$ac_cv_c_bigendian" >&6; }
- case $ac_cv_c_bigendian in #(
- yes)
- $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
- ;; #(
- no)
- ;; #(
- universal)
- $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
- ;; #(
- *)
- as_fn_error "unknown endianness
- presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
- esac
- if test "${ac_cv_c_bigendian}" = "yes"; then :
- DEFS_BIGENDIAN="-DWORDS_BIGENDIAN=1"
- else
- DEFS_BIGENDIAN=""
- fi
- loader=false
- # Check whether --enable-loader was given.
- if test "${enable_loader+set}" = set; then :
- enableval=$enable_loader;
- fi
- if test "${enable_loader}" = "yes"; then
- LOADER_TRUE=
- LOADER_FALSE='#'
- else
- LOADER_TRUE='#'
- LOADER_FALSE=
- fi
- if test "${enable_loader}" = "yes"; then :
- PLUGINS="${PLUGINS} dmo"
- LTLIBdmo="libdmo_plugin.la"
- for element in dmo; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I\${top_srcdir}/libs/loader"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in dmo; do
- eval "LIBS_${element}="'"'"\${top_builddir}/libs/loader/libloader.la -lpthread "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in quicktime; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I\${top_srcdir}/libs/loader"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in quicktime; do
- eval "LIBS_${element}="'"'"\${top_builddir}/libs/loader/libloader.la -lpthread "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in realaudio; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I\${top_srcdir}/libs/loader -DLOADER"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in realaudio; do
- eval "LIBS_${element}="'"'"\${top_builddir}/libs/loader/libloader.la "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in realvideo; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I\${top_srcdir}/libs/loader -DLOADER"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in realvideo; do
- eval "LIBS_${element}="'"'"\${top_builddir}/libs/loader/libloader.la "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- # Check whether --with- was given.
- if test "${with_+set}" = set; then :
- withval=$with_;
- fi
- # Check whether --enable-vlc was given.
- if test "${enable_vlc+set}" = set; then :
- enableval=$enable_vlc;
- fi
- if test "${enable_vlc}" != "no"; then
- BUILD_VLC_TRUE=
- BUILD_VLC_FALSE='#'
- else
- BUILD_VLC_TRUE='#'
- BUILD_VLC_FALSE=
- fi
- activex=false
- # Check whether --enable-activex was given.
- if test "${enable_activex+set}" = set; then :
- enableval=$enable_activex;
- fi
- # Check whether --with-wine-sdk-path was given.
- if test "${with_wine_sdk_path+set}" = set; then :
- withval=$with_wine_sdk_path;
- fi
- if test "${enable_activex}" != "no"
- then
- if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"
- then
- for ac_prog in midl
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_prog_MIDL+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$MIDL"; then
- ac_cv_prog_MIDL="$MIDL" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_MIDL="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- MIDL=$ac_cv_prog_MIDL
- if test -n "$MIDL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
- $as_echo "$MIDL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$MIDL" && break
- done
- test -n "$MIDL" || MIDL="no"
- if test "${with_wine_sdk_path}" != ""
- then
- WINE_SDK_PATH=${with_wine_sdk_path}
- # Extract the first word of "widl", so it can be a program name with args.
- set dummy widl; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if test "${ac_cv_path_WIDL+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $WIDL in
- [\/]* | ?:[\/]*)
- ac_cv_path_WIDL="$WIDL" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="$WINE_SDK_PATH/bin:$WINE_SDK_PATH/tools/widl"
- for as_dir in $as_dummy
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_WIDL="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_WIDL" && ac_cv_path_WIDL="no"
- ;;
- esac
- fi
- WIDL=$ac_cv_path_WIDL
- if test -n "$WIDL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIDL" >&5
- $as_echo "$WIDL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- WIDL=no
- fi
- 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 ole2.h
- do :
- ac_fn_cxx_check_header_mongrel "$LINENO" "ole2.h" "ac_cv_header_ole2_h" "$ac_includes_default"
- if test "x$ac_cv_header_ole2_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OLE2_H 1
- _ACEOF
- for ac_header in olectl.h
- do :
- ac_fn_cxx_check_header_mongrel "$LINENO" "olectl.h" "ac_cv_header_olectl_h" "$ac_includes_default"
- if test "x$ac_cv_header_olectl_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OLECTL_H 1