configure
资源名称:vlc-1.0.5.zip [点击查看]
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:1341k
源码类别:
midi
开发平台:
Unix_Linux
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ZVBI library not found. Enabling the telx module instead" >&5
- $as_echo "$as_me: WARNING: ZVBI library not found. Enabling the telx module instead" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ZVBI library not found. Enabling the telx module instead" >&5
- $as_echo "$as_me: WARNING: ZVBI library not found. Enabling the telx module instead" >&2;}
- else
- ZVBI_CFLAGS=$pkg_cv_ZVBI_CFLAGS
- ZVBI_LIBS=$pkg_cv_ZVBI_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in zvbi; do
- eval "LIBS_${element}="'"'"$ZVBI_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- if test "${SYS}" = "mingw32"; then
- for element in zvbi; do
- eval "LIBS_${element}="'"'" -lpthreadGC2 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- for element in zvbi; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $ZVBI_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- PLUGINS="${PLUGINS} zvbi"
- LTLIBzvbi="libzvbi_plugin.la"
- $as_echo "#define ZVBI_COMPILED 1" >>confdefs.h
- if test "${enable_telx}" = "yes"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The zvbi and telx modules are uncompatibles.
- Using zvbi." >&5
- $as_echo "$as_me: WARNING: The zvbi and telx modules are uncompatibles.
- Using zvbi." >&2;}
- fi
- fi
- fi
- if test "${enable_telx}" != "no" ; then :
- PLUGINS="${PLUGINS} telx"
- LTLIBtelx="libtelx_plugin.la"
- fi
- # Check whether --enable-csri was given.
- if test "${enable_csri+set}" = set; then :
- enableval=$enable_csri;
- fi
- if test "${enable_csri}" = "yes"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CSRI" >&5
- $as_echo_n "checking for CSRI... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$CSRI_CFLAGS"; then
- pkg_cv_CSRI_CFLAGS="$CSRI_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "csri >= 0.1.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "csri >= 0.1.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_CSRI_CFLAGS=`$PKG_CONFIG --cflags "csri >= 0.1.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$CSRI_LIBS"; then
- pkg_cv_CSRI_LIBS="$CSRI_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "csri >= 0.1.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "csri >= 0.1.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_CSRI_LIBS=`$PKG_CONFIG --libs "csri >= 0.1.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
- CSRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "csri >= 0.1.0"`
- else
- CSRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "csri >= 0.1.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$CSRI_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: CSRI helper library not found" >&5
- $as_echo "$as_me: WARNING: CSRI helper library not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CSRI helper library not found" >&5
- $as_echo "$as_me: WARNING: CSRI helper library not found" >&2;}
- else
- CSRI_CFLAGS=$pkg_cv_CSRI_CFLAGS
- CSRI_LIBS=$pkg_cv_CSRI_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in csri; do
- eval "LDFLAGS_${element}="'"'"$CSRI_LIBS "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in csri; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $CSRI_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- PLUGINS="${PLUGINS} csri"
- LTLIBcsri="libcsri_plugin.la"
- fi
- fi
- # Check whether --enable-libass was given.
- if test "${enable_libass+set}" = set; then :
- enableval=$enable_libass;
- fi
- if test "${enable_libass}" = "yes"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASS" >&5
- $as_echo_n "checking for LIBASS... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBASS_CFLAGS"; then
- pkg_cv_LIBASS_CFLAGS="$LIBASS_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libass >= 0.9.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libass >= 0.9.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBASS_CFLAGS=`$PKG_CONFIG --cflags "libass >= 0.9.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$LIBASS_LIBS"; then
- pkg_cv_LIBASS_LIBS="$LIBASS_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libass >= 0.9.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libass >= 0.9.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBASS_LIBS=`$PKG_CONFIG --libs "libass >= 0.9.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LIBASS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libass >= 0.9.5"`
- else
- LIBASS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libass >= 0.9.5"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBASS_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: LIBASS library not found" >&5
- $as_echo "$as_me: WARNING: LIBASS library not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBASS library not found" >&5
- $as_echo "$as_me: WARNING: LIBASS library not found" >&2;}
- else
- LIBASS_CFLAGS=$pkg_cv_LIBASS_CFLAGS
- LIBASS_LIBS=$pkg_cv_LIBASS_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in libass; do
- eval "LDFLAGS_${element}="'"'"$LIBASS_LIBS "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in libass; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $LIBASS_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- PLUGINS="${PLUGINS} libass"
- LTLIBlibass="liblibass_plugin.la"
- for ac_header in fontconfig/fontconfig.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
- if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FONTCONFIG_FONTCONFIG_H 1
- _ACEOF
- for element in libass; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -DHAVE_FONTCONFIG"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- if test "${SYS}" = "mingw32"; then
- for element in libass; do
- eval "LIBS_${element}="'"'"-lfontconfig -lfreetype -liconv -lz -lxml2 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- for element in libass; do
- eval "LIBS_${element}="'"'"-lfontconfig "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- done
- fi
- fi
- # Check whether --enable-asademux was given.
- if test "${enable_asademux+set}" = set; then :
- enableval=$enable_asademux;
- fi
- if test "${enable_asademux}" = "yes"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
- $as_echo_n "checking for PCRE... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$PCRE_CFLAGS"; then
- pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libpcre >= 6.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libpcre >= 6.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= 6.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$PCRE_LIBS"; then
- pkg_cv_PCRE_LIBS="$PCRE_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libpcre >= 6.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libpcre >= 6.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre >= 6.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcre >= 6.5"`
- else
- PCRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcre >= 6.5"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$PCRE_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: PCRE library not found (required for asademux)" >&5
- $as_echo "$as_me: WARNING: PCRE library not found (required for asademux)" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PCRE library not found (required for asademux)" >&5
- $as_echo "$as_me: WARNING: PCRE library not found (required for asademux)" >&2;}
- else
- PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
- PCRE_LIBS=$pkg_cv_PCRE_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in asademux; do
- eval "LDFLAGS_${element}="'"'"$PCRE_LIBS "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- for element in asademux; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $PCRE_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- if test "${SYS}" = "mingw32"; then
- for element in asademux; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -DPCRE_STATIC"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- fi
- PLUGINS="${PLUGINS} asademux"
- LTLIBasademux="libasademux_plugin.la"
- fi
- fi
- # Check whether --enable-cmml was given.
- if test "${enable_cmml+set}" = set; then :
- enableval=$enable_cmml;
- fi
- if test "${enable_cmml}" != "no"
- then
- PLUGINS="${PLUGINS} cmml"
- LTLIBcmml="libcmml_plugin.la"
- fi
- # Check whether --enable-kate was given.
- if test "${enable_kate+set}" = set; then :
- enableval=$enable_kate;
- fi
- if test "${enable_kate}" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KATE" >&5
- $as_echo_n "checking for KATE... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$KATE_CFLAGS"; then
- pkg_cv_KATE_CFLAGS="$KATE_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "kate >= 0.1.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "kate >= 0.1.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_KATE_CFLAGS=`$PKG_CONFIG --cflags "kate >= 0.1.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$KATE_LIBS"; then
- pkg_cv_KATE_LIBS="$KATE_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "kate >= 0.1.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "kate >= 0.1.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_KATE_LIBS=`$PKG_CONFIG --libs "kate >= 0.1.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- KATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "kate >= 0.1.5"`
- else
- KATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "kate >= 0.1.5"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$KATE_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- for ac_header in kate/kate.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "kate/kate.h" "ac_cv_header_kate_kate_h" "$ac_includes_default"
- if test "x$ac_cv_header_kate_kate_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_KATE_KATE_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kate_decode_init in -lkate" >&5
- $as_echo_n "checking for kate_decode_init in -lkate... " >&6; }
- if test "${ac_cv_lib_kate_kate_decode_init+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lkate -lkate -logg $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char kate_decode_init ();
- int
- main ()
- {
- return kate_decode_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_kate_kate_decode_init=yes
- else
- ac_cv_lib_kate_kate_decode_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_kate_kate_decode_init" >&5
- $as_echo "$ac_cv_lib_kate_kate_decode_init" >&6; }
- if test "x$ac_cv_lib_kate_kate_decode_init" = x""yes; then :
- PLUGINS="${PLUGINS} kate"
- LTLIBkate="libkate_plugin.la"
- kate_libs="-lkate -logg"
- for element in kate; do
- eval "LDFLAGS_${element}="'"'"${kate_libs} "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- else
- if test "x${enable_kate}" != "x"; then :
- as_fn_error "libkate doesn't appear to be installed on your system.
- You also need to check that you have a libogg posterior to the 1.0 release." "$LINENO" 5
- fi
- fi
- else
- if test "x${enable_kate}" != "x"; then :
- as_fn_error "libkate headers do not appear to be installed on your system.
- You also need to check that you have a libogg posterior to the 1.0 release." "$LINENO" 5
- fi
- fi
- done
- elif test $pkg_failed = untried; then
- for ac_header in kate/kate.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "kate/kate.h" "ac_cv_header_kate_kate_h" "$ac_includes_default"
- if test "x$ac_cv_header_kate_kate_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_KATE_KATE_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kate_decode_init in -lkate" >&5
- $as_echo_n "checking for kate_decode_init in -lkate... " >&6; }
- if test "${ac_cv_lib_kate_kate_decode_init+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lkate -lkate -logg $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char kate_decode_init ();
- int
- main ()
- {
- return kate_decode_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_kate_kate_decode_init=yes
- else
- ac_cv_lib_kate_kate_decode_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_kate_kate_decode_init" >&5
- $as_echo "$ac_cv_lib_kate_kate_decode_init" >&6; }
- if test "x$ac_cv_lib_kate_kate_decode_init" = x""yes; then :
- PLUGINS="${PLUGINS} kate"
- LTLIBkate="libkate_plugin.la"
- kate_libs="-lkate -logg"
- for element in kate; do
- eval "LDFLAGS_${element}="'"'"${kate_libs} "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- else
- if test "x${enable_kate}" != "x"; then :
- as_fn_error "libkate doesn't appear to be installed on your system.
- You also need to check that you have a libogg posterior to the 1.0 release." "$LINENO" 5
- fi
- fi
- else
- if test "x${enable_kate}" != "x"; then :
- as_fn_error "libkate headers do not appear to be installed on your system.
- You also need to check that you have a libogg posterior to the 1.0 release." "$LINENO" 5
- fi
- fi
- done
- else
- KATE_CFLAGS=$pkg_cv_KATE_CFLAGS
- KATE_LIBS=$pkg_cv_KATE_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} kate"
- LTLIBkate="libkate_plugin.la"
- for element in kate; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $KATE_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in kate; do
- eval "LIBS_${element}="'"'"$KATE_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --enable-tiger was given.
- if test "${enable_tiger+set}" = set; then :
- enableval=$enable_tiger;
- fi
- if test "${enable_tiger}" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIGER" >&5
- $as_echo_n "checking for TIGER... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$TIGER_CFLAGS"; then
- pkg_cv_TIGER_CFLAGS="$TIGER_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "tiger >= 0.3.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "tiger >= 0.3.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_TIGER_CFLAGS=`$PKG_CONFIG --cflags "tiger >= 0.3.1" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$TIGER_LIBS"; then
- pkg_cv_TIGER_LIBS="$TIGER_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "tiger >= 0.3.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "tiger >= 0.3.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_TIGER_LIBS=`$PKG_CONFIG --libs "tiger >= 0.3.1" 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
- TIGER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tiger >= 0.3.1"`
- else
- TIGER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tiger >= 0.3.1"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$TIGER_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "x${enable_tiger}" != "x"; then :
- as_fn_error "libtiger does not appear to be installed on your system." "$LINENO" 5
- fi
- elif test $pkg_failed = untried; then
- if test "x${enable_tiger}" != "x"; then :
- as_fn_error "libtiger does not appear to be installed on your system." "$LINENO" 5
- fi
- else
- TIGER_CFLAGS=$pkg_cv_TIGER_CFLAGS
- TIGER_LIBS=$pkg_cv_TIGER_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_TIGER 1" >>confdefs.h
- for element in kate; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $TIGER_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in kate; do
- eval "LIBS_${element}="'"'"$TIGER_LIBS "'$'"{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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
- $as_echo_n "checking for X... " >&6; }
- # Check whether --with-x was given.
- if test "${with_x+set}" = set; then :
- withval=$with_x;
- fi
- # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
- if test "x$with_x" = xno; then
- # The user explicitly disabled X.
- have_x=disabled
- else
- case $x_includes,$x_libraries in #(
- *'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
- *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- # One or both of the vars are not set, and there is no cached value.
- ac_x_includes=no ac_x_libraries=no
- rm -f -r conftest.dir
- if mkdir conftest.dir; then
- cd conftest.dir
- cat >Imakefile <<'_ACEOF'
- incroot:
- @echo incroot='${INCROOT}'
- usrlibdir:
- @echo usrlibdir='${USRLIBDIR}'
- libdir:
- @echo libdir='${LIBDIR}'
- _ACEOF
- if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
- for ac_var in incroot usrlibdir libdir; do
- eval "ac_im_$ac_var=`${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'`"
- done
- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
- for ac_extension in a so sl dylib la dll; do
- if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
- test -f "$ac_im_libdir/libX11.$ac_extension"; then
- ac_im_usrlibdir=$ac_im_libdir; break
- fi
- done
- # Screen out bogus values from the imake configuration. They are
- # bogus both because they are the default anyway, and because
- # using them would break gcc on systems where it needs fixed includes.
- case $ac_im_incroot in
- /usr/include) ac_x_includes= ;;
- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
- esac
- case $ac_im_usrlibdir in
- /usr/lib | /usr/lib64 | /lib | /lib64) ;;
- *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
- esac
- fi
- cd ..
- rm -f -r conftest.dir
- fi
- # Standard set of common directories for X headers.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- ac_x_header_dirs='
- /usr/X11/include
- /usr/X11R7/include
- /usr/X11R6/include
- /usr/X11R5/include
- /usr/X11R4/include
- /usr/include/X11
- /usr/include/X11R7
- /usr/include/X11R6
- /usr/include/X11R5
- /usr/include/X11R4
- /usr/local/X11/include
- /usr/local/X11R7/include
- /usr/local/X11R6/include
- /usr/local/X11R5/include
- /usr/local/X11R4/include
- /usr/local/include/X11
- /usr/local/include/X11R7
- /usr/local/include/X11R6
- /usr/local/include/X11R5
- /usr/local/include/X11R4
- /usr/X386/include
- /usr/x386/include
- /usr/XFree86/include/X11
- /usr/include
- /usr/local/include
- /usr/unsupported/include
- /usr/athena/include
- /usr/local/x11r5/include
- /usr/lpp/Xamples/include
- /usr/openwin/include
- /usr/openwin/share/include'
- if test "$ac_x_includes" = no; then
- # Guess where to find include files, by looking for Xlib.h.
- # First, try using that file with no special directory specified.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <X11/Xlib.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # We can compile using X headers with no special include directory.
- ac_x_includes=
- else
- for ac_dir in $ac_x_header_dirs; do
- if test -r "$ac_dir/X11/Xlib.h"; then
- ac_x_includes=$ac_dir
- break
- fi
- done
- fi
- rm -f conftest.err conftest.$ac_ext
- fi # $ac_x_includes = no
- if test "$ac_x_libraries" = no; then
- # Check for the libraries.
- # See if we find them without any special options.
- # Don't add to $LIBS permanently.
- ac_save_LIBS=$LIBS
- LIBS="-lX11 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <X11/Xlib.h>
- int
- main ()
- {
- XrmInitialize ()
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- LIBS=$ac_save_LIBS
- # We can link X programs with no special library path.
- ac_x_libraries=
- else
- LIBS=$ac_save_LIBS
- for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
- do
- # Don't even attempt the hair of trying to link an X program!
- for ac_extension in a so sl dylib la dll; do
- if test -r "$ac_dir/libX11.$ac_extension"; then
- ac_x_libraries=$ac_dir
- break 2
- fi
- done
- done
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi # $ac_x_libraries = no
- case $ac_x_includes,$ac_x_libraries in #(
- no,* | *,no | *'*)
- # Didn't find X, or a directory has "'" in its name.
- ac_cv_have_x="have_x=no";; #(
- *)
- # Record where we found X for the cache.
- ac_cv_have_x="have_x=yes
- ac_x_includes='$ac_x_includes'
- ac_x_libraries='$ac_x_libraries'"
- esac
- fi
- ;; #(
- *) have_x=yes;;
- esac
- eval "$ac_cv_have_x"
- fi # $with_x != no
- if test "$have_x" != yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
- $as_echo "$have_x" >&6; }
- no_x=yes
- else
- # If each of the values was on the command line, it overrides each guess.
- test "x$x_includes" = xNONE && x_includes=$ac_x_includes
- test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
- # Update the cache value to reflect the command line values.
- ac_cv_have_x="have_x=yes
- ac_x_includes='$x_includes'
- ac_x_libraries='$x_libraries'"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
- $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
- fi
- if test "$no_x" = yes; then
- # Not all programs may use this symbol, but it does not hurt to define it.
- $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
- else
- if test -n "$x_includes"; then
- X_CFLAGS="$X_CFLAGS -I$x_includes"
- fi
- # It would also be nice to do this for all -L options, not just this one.
- if test -n "$x_libraries"; then
- X_LIBS="$X_LIBS -L$x_libraries"
- # For Solaris; some versions of Sun CC require a space after -R and
- # others require no space. Words are not sufficient . . . .
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
- $as_echo_n "checking whether -R must be followed by a space... " >&6; }
- ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
- ac_xsave_c_werror_flag=$ac_c_werror_flag
- ac_c_werror_flag=yes
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- X_LIBS="$X_LIBS -R$x_libraries"
- else
- LIBS="$ac_xsave_LIBS -R $x_libraries"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- X_LIBS="$X_LIBS -R $x_libraries"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
- $as_echo "neither works" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- ac_c_werror_flag=$ac_xsave_c_werror_flag
- LIBS=$ac_xsave_LIBS
- fi
- # Check for system-dependent libraries X programs must link with.
- # Do this before checking for the system-independent R6 libraries
- # (-lICE), since we may need -lsocket or whatever for X linking.
- if test "$ISC" = yes; then
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
- else
- # Martyn Johnson says this is needed for Ultrix, if the X
- # libraries were built with DECnet support. And Karl Berry says
- # the Alpha needs dnet_stub (dnet does not exist).
- ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
- 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 XOpenDisplay ();
- int
- main ()
- {
- return XOpenDisplay ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
- $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
- if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldnet $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 dnet_ntoa ();
- int
- main ()
- {
- return dnet_ntoa ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dnet_dnet_ntoa=yes
- else
- ac_cv_lib_dnet_dnet_ntoa=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_dnet_dnet_ntoa" >&5
- $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
- if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
- fi
- if test $ac_cv_lib_dnet_dnet_ntoa = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
- $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
- if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldnet_stub $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 dnet_ntoa ();
- int
- main ()
- {
- return dnet_ntoa ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dnet_stub_dnet_ntoa=yes
- else
- ac_cv_lib_dnet_stub_dnet_ntoa=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_dnet_stub_dnet_ntoa" >&5
- $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
- if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
- fi
- fi
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS="$ac_xsave_LIBS"
- # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
- # to get the SysV transport functions.
- # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
- # needs -lnsl.
- # The nsl library prevents programs from opening the X display
- # on Irix 5.2, according to T.E. Dickey.
- # The functions gethostbyname, getservbyname, and inet_addr are
- # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
- ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
- if test "x$ac_cv_func_gethostbyname" = x""yes; then :
- fi
- if test $ac_cv_func_gethostbyname = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
- $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
- if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnsl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gethostbyname ();
- int
- main ()
- {
- return gethostbyname ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_nsl_gethostbyname=yes
- else
- ac_cv_lib_nsl_gethostbyname=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
- $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
- if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
- fi
- if test $ac_cv_lib_nsl_gethostbyname = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
- $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
- if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbsd $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 gethostbyname ();
- int
- main ()
- {
- return gethostbyname ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bsd_gethostbyname=yes
- else
- ac_cv_lib_bsd_gethostbyname=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_bsd_gethostbyname" >&5
- $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
- if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
- fi
- fi
- fi
- # lieder@skyler.mavd.honeywell.com says without -lsocket,
- # socket/setsockopt and other routines are undefined under SCO ODT
- # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
- # on later versions), says Simon Leinen: it contains gethostby*
- # variants that don't use the name server (or something). -lsocket
- # must be given before -lnsl if both are needed. We assume that
- # if connect needs -lnsl, so does gethostbyname.
- ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
- if test "x$ac_cv_func_connect" = x""yes; then :
- fi
- if test $ac_cv_func_connect = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
- $as_echo_n "checking for connect in -lsocket... " >&6; }
- if test "${ac_cv_lib_socket_connect+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $X_EXTRA_LIBS $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 connect ();
- int
- main ()
- {
- return connect ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_connect=yes
- else
- ac_cv_lib_socket_connect=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_socket_connect" >&5
- $as_echo "$ac_cv_lib_socket_connect" >&6; }
- if test "x$ac_cv_lib_socket_connect" = x""yes; then :
- X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
- fi
- fi
- # Guillermo Gomez says -lposix is necessary on A/UX.
- ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
- if test "x$ac_cv_func_remove" = x""yes; then :
- fi
- if test $ac_cv_func_remove = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
- $as_echo_n "checking for remove in -lposix... " >&6; }
- if test "${ac_cv_lib_posix_remove+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lposix $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 remove ();
- int
- main ()
- {
- return remove ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_posix_remove=yes
- else
- ac_cv_lib_posix_remove=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_posix_remove" >&5
- $as_echo "$ac_cv_lib_posix_remove" >&6; }
- if test "x$ac_cv_lib_posix_remove" = x""yes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
- fi
- fi
- # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
- ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
- if test "x$ac_cv_func_shmat" = x""yes; then :
- fi
- if test $ac_cv_func_shmat = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
- $as_echo_n "checking for shmat in -lipc... " >&6; }
- if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lipc $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 shmat ();
- int
- main ()
- {
- return shmat ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ipc_shmat=yes
- else
- ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
- $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
- if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
- fi
- fi
- fi
- # Check for libraries that X11R6 Xt/Xaw programs need.
- ac_save_LDFLAGS=$LDFLAGS
- test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
- # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
- # check for ICE first), but we must link in the order -lSM -lICE or
- # we get undefined symbols. So assume we have SM if we have ICE.
- # These have to be linked with before -lX11, unlike the other
- # libraries we check for below, so use a different variable.
- # John Interrante, Karl Berry
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
- $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
- if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lICE $X_EXTRA_LIBS $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 IceConnectionNumber ();
- int
- main ()
- {
- return IceConnectionNumber ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ICE_IceConnectionNumber=yes
- else
- ac_cv_lib_ICE_IceConnectionNumber=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_ICE_IceConnectionNumber" >&5
- $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
- if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
- fi
- LDFLAGS=$ac_save_LDFLAGS
- fi
- # Check whether --enable-x11 was given.
- if test "${enable_x11+set}" = set; then :
- enableval=$enable_x11;
- else
- if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then :
- enable_x11="yes"
- else
- enable_x11="no"
- fi
- fi
- CPPFLAGS="${CPPFLAGS_save} ${X_CFLAGS}"
- if test "${enable_x11}" != "no"; then :
- for ac_header in X11/Xlib.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
- if test "x$ac_cv_header_X11_Xlib_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11_XLIB_H 1
- _ACEOF
- PLUGINS="${PLUGINS} x11_screen"
- LTLIBx11_screen="libx11_screen_plugin.la"
- for element in x11_screen; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${X_CFLAGS}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in x11_screen; do
- eval "LIBS_${element}="'"'"${X_LIBS} ${X_PRE_LIBS} -lX11 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- PLUGINS="${PLUGINS} panoramix"
- LTLIBpanoramix="libpanoramix_plugin.la"
- for element in panoramix; do
- eval "LIBS_${element}="'"'"${X_LIBS} ${X_PRE_LIBS} -lX11 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in panoramix; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${X_CFLAGS}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- PLUGINS="${PLUGINS} x11"
- LTLIBx11="libx11_plugin.la"
- for element in x11; do
- eval "LIBS_${element}="'"'"${X_LIBS} ${X_PRE_LIBS} -lX11 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in x11; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${X_CFLAGS}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
- $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
- if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXext $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 XShmAttach ();
- int
- main ()
- {
- return XShmAttach ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_Xext_XShmAttach=yes
- else
- ac_cv_lib_Xext_XShmAttach=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_Xext_XShmAttach" >&5
- $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
- if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
- for element in x11; do
- eval "LIBS_${element}="'"'"-lXext "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- done
- for ac_header in X11/extensions/dpms.h
- do :
- ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" "
- #include <X11/Xlib.h>
- "
- if test "x$ac_cv_header_X11_extensions_dpms_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11_EXTENSIONS_DPMS_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSInfo in X11/extensions/dpms.h" >&5
- $as_echo_n "checking for DPMSInfo in X11/extensions/dpms.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <X11/extensions/dpms.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "DPMSInfo" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define DPMSINFO_IN_DPMS_H 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f conftest*
- fi
- done
- fi
- # Check whether --enable-xvideo was given.
- if test "${enable_xvideo+set}" = set; then :
- enableval=$enable_xvideo;
- else
- enable_xvideo="$enable_x11"
- fi
- if test "${enable_xvideo}" != "no"; then :
- for ac_header in X11/extensions/Xv.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xv.h" "ac_cv_header_X11_extensions_Xv_h" "$ac_includes_default"
- if test "x$ac_cv_header_X11_extensions_Xv_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11_EXTENSIONS_XV_H 1
- _ACEOF
- CFLAGS="${CFLAGS_save} ${X_LIBS} ${X_PRE_LIBS} -lX11 -lXext"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XvPutImage in -lXv" >&5
- $as_echo_n "checking for XvPutImage in -lXv... " >&6; }
- if test "${ac_cv_lib_Xv_XvPutImage+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXv $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 XvPutImage ();
- int
- main ()
- {
- return XvPutImage ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_Xv_XvPutImage=yes
- else
- ac_cv_lib_Xv_XvPutImage=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_Xv_XvPutImage" >&5
- $as_echo "$ac_cv_lib_Xv_XvPutImage" >&6; }
- if test "x$ac_cv_lib_Xv_XvPutImage" = x""yes; then :
- PLUGINS="${PLUGINS} xvideo"
- LTLIBxvideo="libxvideo_plugin.la"
- for element in xvideo; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${X_CFLAGS}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in xvideo; do
- eval "LIBS_${element}="'"'"${X_LIBS} ${X_PRE_LIBS} -lX11 -lXext -lXv "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- CFLAGS="${CFLAGS_save}"
- fi
- done
- fi
- # Check whether --enable-glx was given.
- if test "${enable_glx+set}" = set; then :
- enableval=$enable_glx;
- else
- enable_glx="$enable_x11"
- fi
- if test "${enable_glx}" != "no"; then :
- for ac_header in X11/Xlib.h GL/glu.h GL/glx.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- eval as_val=$$as_ac_Header
- if test "x$as_val" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if !defined(HAVE_X11_XLIB_H) || !defined(HAVE_GL_GLU_H) || !defined(HAVE_GL_GLX_H)
- choke me
- #endif
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- PLUGINS="${PLUGINS} glx"
- LTLIBglx="libglx_plugin.la"
- for element in glx; do
- eval "LIBS_${element}="'"'"${X_LIBS} ${X_PRE_LIBS} -lX11 -lXext -lGL -lGLU "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in glx; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${X_CFLAGS}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- as_fn_error "Please install GL development package. Alternatively you can also configure with --disable-glx." "$LINENO" 5
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- # Check whether --enable-xvmc was given.
- if test "${enable_xvmc+set}" = set; then :
- enableval=$enable_xvmc;
- else
- enable_xvmc="no"
- fi
- if test "${enable_xvmc}" != "no"; then :
- for ac_header in X11/extensions/vldXvMC.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/vldXvMC.h" "ac_cv_header_X11_extensions_vldXvMC_h" "$ac_includes_default"
- if test "x$ac_cv_header_X11_extensions_vldXvMC_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11_EXTENSIONS_VLDXVMC_H 1
- _ACEOF
- PLUGINS="${PLUGINS} xvmc"
- LTLIBxvmc="libxvmc_plugin.la"
- for element in xvmc; do
- eval "LIBS_${element}="'"'"${X_LIBS} ${X_PRE_LIBS} -lX11 -lXext -lXvMCW -lXv ${LIBMPEG2_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in xvmc; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${X_CFLAGS} ${LIBMPEG2_CFLAGS}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- else
- as_fn_error "XVideo-MotionCompensation extension not found!" "$LINENO" 5
- fi
- done
- fi
- # Check whether --enable-xinerama was given.
- if test "${enable_xinerama+set}" = set; then :
- enableval=$enable_xinerama;
- else
- enable_xinerama="$enable_xvideo"
- fi
- if test "$enable_xinerama" != "no"; then :
- ac_cv_have_xinerama="no"
- CFLAGS="${CFLAGS_save} ${X_LIBS} ${X_PRE_LIBS} -lX11 -lXext"
- for ac_header in X11/extensions/Xinerama.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
- if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama_pic" >&5
- $as_echo_n "checking for XineramaQueryExtension in -lXinerama_pic... " >&6; }
- if test "${ac_cv_lib_Xinerama_pic_XineramaQueryExtension+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXinerama_pic $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 XineramaQueryExtension ();
- int
- main ()
- {
- return XineramaQueryExtension ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_Xinerama_pic_XineramaQueryExtension=yes
- else
- ac_cv_lib_Xinerama_pic_XineramaQueryExtension=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_Xinerama_pic_XineramaQueryExtension" >&5
- $as_echo "$ac_cv_lib_Xinerama_pic_XineramaQueryExtension" >&6; }
- if test "x$ac_cv_lib_Xinerama_pic_XineramaQueryExtension" = x""yes; then :
- for element in xvideo; do
- eval "LIBS_${element}="'"'"-lXinerama_pic "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in x11; do
- eval "LIBS_${element}="'"'"-lXinerama_pic "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in glx; do
- eval "LIBS_${element}="'"'"-lXinerama_pic "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in xvmc; do
- eval "LIBS_${element}="'"'"-lXinerama_pic "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- ac_cv_have_xinerama="yes"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
- $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
- if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXinerama $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 XineramaQueryExtension ();
- int
- main ()
- {
- return XineramaQueryExtension ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_Xinerama_XineramaQueryExtension=yes
- else
- ac_cv_lib_Xinerama_XineramaQueryExtension=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_Xinerama_XineramaQueryExtension" >&5
- $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
- if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
- for element in xvideo; do
- eval "LIBS_${element}="'"'"-lXinerama "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in x11; do
- eval "LIBS_${element}="'"'"-lXinerama "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in glx; do
- eval "LIBS_${element}="'"'"-lXinerama "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in xvmc; do
- eval "LIBS_${element}="'"'"-lXinerama "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- ac_cv_have_xinerama="yes"
- fi
- fi
- fi
- done
- if test "${ac_cv_have_xinerama}" = "yes"; then
- $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
- fi
- ac_cv_have_xf86vidmode="no"
- for ac_header in X11/extensions/xf86vmode.h
- do :
- ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#ifdef HAVE_X11_XLIB_H
- # include <X11/Xlib.h>
- #endif
- "
- if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11_EXTENSIONS_XF86VMODE_H 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeGetViewPort in -lXxf86vm_pic" >&5
- $as_echo_n "checking for XF86VidModeGetViewPort in -lXxf86vm_pic... " >&6; }
- if test "${ac_cv_lib_Xxf86vm_pic_XF86VidModeGetViewPort+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXxf86vm_pic $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 XF86VidModeGetViewPort ();
- int
- main ()
- {
- return XF86VidModeGetViewPort ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_Xxf86vm_pic_XF86VidModeGetViewPort=yes
- else
- ac_cv_lib_Xxf86vm_pic_XF86VidModeGetViewPort=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_Xxf86vm_pic_XF86VidModeGetViewPort" >&5
- $as_echo "$ac_cv_lib_Xxf86vm_pic_XF86VidModeGetViewPort" >&6; }
- if test "x$ac_cv_lib_Xxf86vm_pic_XF86VidModeGetViewPort" = x""yes; then :
- for element in xvideo; do
- eval "LIBS_${element}="'"'"-lXxf86vm_pic "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in x11; do
- eval "LIBS_${element}="'"'"-lXxf86vm_pic "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in glx; do
- eval "LIBS_${element}="'"'"-lXxf86vm_pic "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in xvmc; do
- eval "LIBS_${element}="'"'"-lXxf86vm_pic "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- ac_cv_have_xf86vidmode="yes"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
- $as_echo_n "checking for XF86VidModeGetViewPort in -lXxf86vm... " >&6; }
- if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXxf86vm $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 XF86VidModeGetViewPort ();
- int
- main ()
- {
- return XF86VidModeGetViewPort ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
- else
- ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=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_Xxf86vm_XF86VidModeGetViewPort" >&5
- $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
- if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" = x""yes; then :
- for element in xvideo; do
- eval "LIBS_${element}="'"'"-lXxf86vm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in x11; do
- eval "LIBS_${element}="'"'"-lXxf86vm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in glx; do
- eval "LIBS_${element}="'"'"-lXxf86vm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in xvmc; do
- eval "LIBS_${element}="'"'"-lXxf86vm "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- ac_cv_have_xf86vidmode="yes"
- fi
- fi
- else
- true
- fi
- done
- if test "${ac_cv_have_xf86vidmode}" = "yes"; then :
- $as_echo "#define HAVE_XF86VIDMODE 1" >>confdefs.h
- fi
- CFLAGS="${CFLAGS_save}"
- fi
- CPPFLAGS="${CPPFLAGS_save}"
- # Check whether --enable-xcb was given.
- if test "${enable_xcb+set}" = set; then :
- enableval=$enable_xcb;
- else
- enable_xcb="no"
- fi
- if test "${enable_xcb}" != "no"; then :
- 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_fn_error "Package requirements (xproto) were not met:
- $XPROTO_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 XPROTO_CFLAGS
- and XPROTO_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 XPROTO_CFLAGS
- and XPROTO_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
- 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; }
- :
- 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_fn_error "Package requirements (xcb) were not met:
- $XCB_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 XCB_CFLAGS
- and XCB_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 XCB_CFLAGS
- and XCB_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
- 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; }
- :
- fi
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_SHM" >&5
- $as_echo_n "checking for XCB_SHM... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$XCB_SHM_CFLAGS"; then
- pkg_cv_XCB_SHM_CFLAGS="$XCB_SHM_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "xcb-shm""; } >&5
- ($PKG_CONFIG --exists --print-errors "xcb-shm") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XCB_SHM_CFLAGS=`$PKG_CONFIG --cflags "xcb-shm" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$XCB_SHM_LIBS"; then
- pkg_cv_XCB_SHM_LIBS="$XCB_SHM_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "xcb-shm""; } >&5
- ($PKG_CONFIG --exists --print-errors "xcb-shm") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XCB_SHM_LIBS=`$PKG_CONFIG --libs "xcb-shm" 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_SHM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb-shm"`
- else
- XCB_SHM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb-shm"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$XCB_SHM_PKG_ERRORS" >&5
- as_fn_error "Package requirements (xcb-shm) were not met:
- $XCB_SHM_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 XCB_SHM_CFLAGS
- and XCB_SHM_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 XCB_SHM_CFLAGS
- and XCB_SHM_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
- XCB_SHM_CFLAGS=$pkg_cv_XCB_SHM_CFLAGS
- XCB_SHM_LIBS=$pkg_cv_XCB_SHM_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- :
- fi
- if test "${enable_xvideo}" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XV" >&5
- $as_echo_n "checking for XCB_XV... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$XCB_XV_CFLAGS"; then
- pkg_cv_XCB_XV_CFLAGS="$XCB_XV_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "xcb-xv >= 1.1.90.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "xcb-xv >= 1.1.90.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XCB_XV_CFLAGS=`$PKG_CONFIG --cflags "xcb-xv >= 1.1.90.1" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$XCB_XV_LIBS"; then
- pkg_cv_XCB_XV_LIBS="$XCB_XV_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "xcb-xv >= 1.1.90.1""; } >&5
- ($PKG_CONFIG --exists --print-errors "xcb-xv >= 1.1.90.1") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XCB_XV_LIBS=`$PKG_CONFIG --libs "xcb-xv >= 1.1.90.1" 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_XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb-xv >= 1.1.90.1"`
- else
- XCB_XV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb-xv >= 1.1.90.1"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$XCB_XV_PKG_ERRORS" >&5
- as_fn_error "Package requirements (xcb-xv >= 1.1.90.1) were not met:
- $XCB_XV_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 XCB_XV_CFLAGS
- and XCB_XV_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 XCB_XV_CFLAGS
- and XCB_XV_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
- XCB_XV_CFLAGS=$pkg_cv_XCB_XV_CFLAGS
- XCB_XV_LIBS=$pkg_cv_XCB_XV_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} xcb_xv"
- LTLIBxcb_xv="libxcb_xv_plugin.la"
- fi
- fi
- 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 >= 0.3.4""; } >&5
- ($PKG_CONFIG --exists --print-errors "xcb-keysyms >= 0.3.4") 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 >= 0.3.4" 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 >= 0.3.4""; } >&5
- ($PKG_CONFIG --exists --print-errors "xcb-keysyms >= 0.3.4") 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 >= 0.3.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
- XCB_KEYSYMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb-keysyms >= 0.3.4"`
- else
- XCB_KEYSYMS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb-keysyms >= 0.3.4"`
- 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; }
- 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_fn_error "Package requirements (xcb-keysyms) were not met:
- $XCB_KEYSYMS_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 XCB_KEYSYMS_CFLAGS
- and XCB_KEYSYMS_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 XCB_KEYSYMS_CFLAGS
- and XCB_KEYSYMS_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
- 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; }
- :
- fi
- for element in globalhotkeys; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -DXCB_KEYSYM_OLD_API"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- elif test $pkg_failed = untried; then
- 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_fn_error "Package requirements (xcb-keysyms) were not met:
- $XCB_KEYSYMS_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 XCB_KEYSYMS_CFLAGS
- and XCB_KEYSYMS_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 XCB_KEYSYMS_CFLAGS
- and XCB_KEYSYMS_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
- 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; }
- :
- fi
- for element in globalhotkeys; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} -DXCB_KEYSYM_OLD_API"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- 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; }
- true
- fi
- PLUGINS="${PLUGINS} xcb"
- LTLIBxcb="libxcb_plugin.la"
- PLUGINS="${PLUGINS} xcb_window"
- LTLIBxcb_window="libxcb_window_plugin.la"
- fi
- # Check whether --enable-opengl was given.
- if test "${enable_opengl+set}" = set; then :
- enableval=$enable_opengl;
- fi
- if test "${enable_opengl}" != "no" &&
- test "${SYS}" != "beos" -a "${SYS}" != "mingwce"; then
- if test "${SYS}" != "darwin"; 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} opengl"
- LTLIBopengl="libopengl_plugin.la"
- if test "${SYS}" != "mingw32"; then
- for element in opengl; do
- eval "LIBS_${element}="'"'"${X_LIBS} -lGL -lGLU "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- for element in opengl; do
- eval "LIBS_${element}="'"'"-lopengl32 -lglu32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- done
- else
- PLUGINS="${PLUGINS} opengl"
- LTLIBopengl="libopengl_plugin.la"
- for element in opengl; do
- eval "LIBS_${element}="'"'"-Wl,-framework,OpenGL "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- # Check whether --enable-sdl was given.
- if test "${enable_sdl+set}" = set; then :
- enableval=$enable_sdl;
- fi
- # Check whether --enable-sdl-image was given.
- if test "${enable_sdl_image+set}" = set; then :
- enableval=$enable_sdl_image;
- fi
- if test "${enable_sdl}" != "no"
- then
- SDL_PATH="${PATH}"
- # Check whether --with-sdl-config-path was given.
- if test "${with_sdl_config_path+set}" = set; then :
- withval=$with_sdl_config_path; if test "${with_sdl_config_path}" != "no"
- then
- SDL_PATH="${with_sdl_config_path}:${PATH}"
- fi
- fi
- # Extract the first word of "sdl12-config", so it can be a program name with args.
- set dummy sdl12-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_SDL12_CONFIG+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $SDL12_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in ${SDL_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_SDL12_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_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
- ;;
- esac
- fi
- SDL12_CONFIG=$ac_cv_path_SDL12_CONFIG
- if test -n "$SDL12_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL12_CONFIG" >&5
- $as_echo "$SDL12_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- SDL_CONFIG="${SDL12_CONFIG}"
- SDL_HEADER="SDL12/SDL.h"
- SDL_IMAGE="SDL12/SDL_image.h"
- if test "${SDL_CONFIG}" = "no"
- then
- # Extract the first word of "sdl11-config", so it can be a program name with args.
- set dummy sdl11-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_SDL11_CONFIG+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $SDL11_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in ${SDL_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_SDL11_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_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
- ;;
- esac
- fi
- SDL11_CONFIG=$ac_cv_path_SDL11_CONFIG
- if test -n "$SDL11_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL11_CONFIG" >&5
- $as_echo "$SDL11_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- SDL_CONFIG=${SDL11_CONFIG}
- SDL_HEADER="SDL11/SDL.h"
- SDL_IMAGE="SDL11/SDL_image.h"
- fi
- if test "${SDL_CONFIG}" = "no"
- then
- # Extract the first word of "sdl-config", so it can be a program name with args.
- set dummy sdl-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_SDL_CONFIG+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- case $SDL_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in ${SDL_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_SDL_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_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
- ;;
- esac
- fi
- SDL_CONFIG=$ac_cv_path_SDL_CONFIG
- if test -n "$SDL_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
- $as_echo "$SDL_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- SDL_HEADER="SDL/SDL.h"
- SDL_IMAGE="SDL/SDL_image.h"
- fi
- # check for cross-compiling
- SDL_PREFIX=
- # Check whether --with-sdl-prefix was given.
- if test "${with_sdl_prefix+set}" = set; then :
- withval=$with_sdl_prefix;
- fi
- if test "${with_sdl_prefix}" != "no" -a -n "${with_sdl_prefix}"
- then
- SDL_PREFIX="--prefix=${with_sdl_prefix}"
- fi
- if test "${SDL_CONFIG}" != "no"
- then
- # SDL on Darwin is heavily patched and can only run SDL_image
- if test "${SYS}" != "darwin" -a "${SYS}" != "mingw32"; then
- PLUGINS="${PLUGINS} vout_sdl"
- LTLIBvout_sdl="libvout_sdl_plugin.la"
- PLUGINS="${PLUGINS} aout_sdl"
- LTLIBaout_sdl="libaout_sdl_plugin.la"
- fi
- for element in vout_sdl aout_sdl sdl_image; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} `${SDL_CONFIG} ${SDL_PREFIX} --cflags | sed 's,SDL,,'`"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- for element in vout_sdl aout_sdl sdl_image; do
- eval "LIBS_${element}="'"'"`${SDL_CONFIG} ${SDL_PREFIX} --libs | sed 's,-rdynamic,,'` "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- CPPFLAGS="${CPPFLAGS_save} ${CFLAGS_vout_sdl}"
- for ac_header in ${SDL_HEADER}
- 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
- cat >>confdefs.h <<_ACEOF
- #define SDL_INCLUDE_FILE <${SDL_HEADER}>
- _ACEOF
- else
- for ac_header in SDL.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "SDL.h" "ac_cv_header_SDL_h" "$ac_includes_default"
- if test "x$ac_cv_header_SDL_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SDL_H 1
- _ACEOF
- $as_echo "#define SDL_INCLUDE_FILE <SDL.h>" >>confdefs.h
- else
- as_fn_error "The development package for SDL is not installed.
- Please install it and try again. Alternatively you can also configure with
- --disable-sdl." "$LINENO" 5
- fi
- done
- fi
- done
- if test "${enable_sdl_image}" != "no"; then :
- for ac_header in ${SDL_IMAGE}
- 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
- cat >>confdefs.h <<_ACEOF
- #define SDL_IMAGE_INCLUDE_FILE <${SDL_IMAGE}>
- _ACEOF
- PLUGINS="${PLUGINS} sdl_image"
- LTLIBsdl_image="libsdl_image_plugin.la"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_rows in -lpng" >&5
- $as_echo_n "checking for png_set_rows in -lpng... " >&6; }
- if test "${ac_cv_lib_png_png_set_rows+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpng -lz $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char png_set_rows ();
- int
- main ()
- {
- return png_set_rows ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_png_png_set_rows=yes
- else
- ac_cv_lib_png_png_set_rows=no
- fi
- rm -f core conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_rows" >&5
- $as_echo "$ac_cv_lib_png_png_set_rows" >&6; }
- if test "x$ac_cv_lib_png_png_set_rows" = x""yes; then :
- for element in sdl_image; do
- eval "LIBS_${element}="'"'"-lpng -lz "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_decompress in -ljpeg" >&5
- $as_echo_n "checking for jpeg_start_decompress in -ljpeg... " >&6; }
- if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljpeg $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 jpeg_start_decompress ();
- int
- main ()
- {
- return jpeg_start_decompress ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_jpeg_jpeg_start_decompress=yes
- else
- ac_cv_lib_jpeg_jpeg_start_decompress=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_jpeg_jpeg_start_decompress" >&5
- $as_echo "$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; }
- if test "x$ac_cv_lib_jpeg_jpeg_start_decompress" = x""yes; then :
- for element in sdl_image; do
- eval "LIBS_${element}="'"'"-ljpeg "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
- $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
- if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltiff $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 TIFFClientOpen ();
- int
- main ()
- {
- return TIFFClientOpen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_tiff_TIFFClientOpen=yes
- else
- ac_cv_lib_tiff_TIFFClientOpen=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_tiff_TIFFClientOpen" >&5
- $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
- if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
- for element in sdl_image; do
- eval "LIBS_${element}="'"'"-ltiff "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- for element in sdl_image; do
- eval "LIBS_${element}="'"'"-lSDL_image "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- else
- for ac_header in SDL_image.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
- if test "x$ac_cv_header_SDL_image_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SDL_IMAGE_H 1
- _ACEOF
- $as_echo "#define SDL_IMAGE_INCLUDE_FILE <SDL_image.h>" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The development package for SDL_image is not installed.
- You should install it alongside your SDL package." >&5
- $as_echo "$as_me: WARNING: The development package for SDL_image is not installed.
- You should install it alongside your SDL package." >&2;}
- fi
- done
- fi
- done
- fi
- CPPFLAGS="${CPPFLAGS_save}"
- if expr 1.1.5 > `${SDL_CONFIG} --version` >/dev/null
- then
- as_fn_error "The development package for SDL is not installed.
- Please install it and try again. Alternatively you can also configure with
- --disable-sdl." "$LINENO" 5
- fi
- elif test "${enable_sdl}" = "yes"
- then
- as_fn_error "I couldn't find the SDL package. You can download libSDL
- from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
- " "$LINENO" 5
- fi
- fi
- # Check whether --enable-freetype was given.
- if test "${enable_freetype+set}" = set; then :
- enableval=$enable_freetype;
- fi
- # Check whether --enable-fribidi was given.
- if test "${enable_fribidi+set}" = set; then :
- enableval=$enable_fribidi;
- fi
- # Check whether --enable-fontconfig was given.
- if test "${enable_fontconfig+set}" = set; then :
- enableval=$enable_fontconfig;
- fi
- if test "${enable_freetype}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
- $as_echo_n "checking for FREETYPE... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$FREETYPE_CFLAGS"; then
- pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "freetype2""; } >&5
- ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$FREETYPE_LIBS"; then
- pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "freetype2""; } >&5
- ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 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
- FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2"`
- else
- FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$FREETYPE_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- have_freetype=no
- if test "${enable_freetype}" = "yes"; then :
- as_fn_error "I couldn't find the freetype package. You can download libfreetype2
- from http://www.freetype.org/, or configure with --disable-freetype. Have a nice day.
- " "$LINENO" 5
- fi
- elif test $pkg_failed = untried; then
- have_freetype=no
- if test "${enable_freetype}" = "yes"; then :
- as_fn_error "I couldn't find the freetype package. You can download libfreetype2
- from http://www.freetype.org/, or configure with --disable-freetype. Have a nice day.
- " "$LINENO" 5
- fi
- else
- FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
- FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PLUGINS="${PLUGINS} freetype"
- LTLIBfreetype="libfreetype_plugin.la"
- have_freetype=yes
- for element in freetype skins2; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${FREETYPE_CFLAGS}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- if test "${SYS}" = "mingw32"; then
- for element in freetype skins2; do
- eval "LIBS_${element}="'"'"-lxml2 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in freetype; do
- eval "LIBS_${element}="'"'"-liconv -lz "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- for element in freetype skins2; do
- eval "LIBS_${element}="'"'"${FREETYPE_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- if test "${enable_fontconfig}" != "no"
- then
- for ac_header in fontconfig/fontconfig.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
- if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FONTCONFIG_FONTCONFIG_H 1
- _ACEOF
- for element in freetype; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -DHAVE_FONTCONFIG"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in freetype; do
- eval "LIBS_${element}="'"'"-lfontconfig "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- for ac_header in Carbon/Carbon.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
- if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_CARBON_CARBON_H 1
- _ACEOF
- for element in freetype; do
- eval "LDFLAGS_${element}="'"'"-Wl,-framework,Carbon "'$'"{LDFLAGS_${element}} "'"'
- am_modules_with_ldflags="${am_modules_with_ldflags} ${element}"
- done
- fi
- done
- fi
- if test "${enable_fribidi}" != "no"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI" >&5
- $as_echo_n "checking for FRIBIDI... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$FRIBIDI_CFLAGS"; then
- pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "fribidi""; } >&5
- ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$FRIBIDI_LIBS"; then
- pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "fribidi""; } >&5
- ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 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
- FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fribidi"`
- else
- FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$FRIBIDI_PKG_ERRORS" >&5
- as_fn_error "Package requirements (fribidi) were not met:
- $FRIBIDI_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 FRIBIDI_CFLAGS
- and FRIBIDI_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 FRIBIDI_CFLAGS
- and FRIBIDI_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
- FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS
- FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in freetype skins2; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${FRIBIDI_CFLAGS} -DHAVE_FRIBIDI"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in freetype skins2; do
- eval "LIBS_${element}="'"'"${FRIBIDI_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- fi
- fi
- fi
- # Check whether --enable-libxml2 was given.
- if test "${enable_libxml2+set}" = set; then :
- enableval=$enable_libxml2;
- fi
- if test "${enable_libxml2}" != "no"; then :
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2" >&5
- $as_echo_n "checking for XML2... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$XML2_CFLAGS"; then
- pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$XML2_LIBS"; then
- pkg_cv_XML2_LIBS="$XML2_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5""; } >&5
- ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.5" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= 2.5"`
- else
- XML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.5"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$XML2_PKG_ERRORS" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "x${enable_xml2}" != "x"; then :
- as_fn_error "Could not find libxml version 2.5 or higher" "$LINENO" 5
- fi
- elif test $pkg_failed = untried; then
- if test "x${enable_xml2}" != "x"; then :
- as_fn_error "Could not find libxml version 2.5 or higher" "$LINENO" 5
- fi
- else
- XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
- XML2_LIBS=$pkg_cv_XML2_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in xml; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} ${XML2_CFLAGS}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in xml; do
- eval "LIBS_${element}="'"'"${XML2_LIBS} "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- PLUGINS="${PLUGINS} xml"
- LTLIBxml="libxml_plugin.la"
- fi
- fi
- # Check whether --enable-svg was given.
- if test "${enable_svg+set}" = set; then :
- enableval=$enable_svg;
- fi
- if test "${enable_svg}" = "yes"
- then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVG" >&5
- $as_echo_n "checking for SVG... " >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$SVG_CFLAGS"; then
- pkg_cv_SVG_CFLAGS="$SVG_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_SVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$SVG_LIBS"; then
- pkg_cv_SVG_LIBS="$SVG_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0""; } >&5
- ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_SVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.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
- SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librsvg-2.0 >= 2.9.0"`
- else
- SVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librsvg-2.0 >= 2.9.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$SVG_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: SVG library not found" >&5
- $as_echo "$as_me: WARNING: SVG library not found" >&2;}
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SVG library not found" >&5
- $as_echo "$as_me: WARNING: SVG library not found" >&2;}
- else
- SVG_CFLAGS=$pkg_cv_SVG_CFLAGS
- SVG_LIBS=$pkg_cv_SVG_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for element in svg; do
- eval "LIBS_${element}="'"'"$SVG_LIBS "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- for element in svg; do
- eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $SVG_CFLAGS"'"'
- am_modules_with_cflags="${am_modules_with_cflags} ${element}"
- done
- PLUGINS="${PLUGINS} svg"
- LTLIBsvg="libsvg_plugin.la"
- fi
- fi
- # Check whether --enable-snapshot was given.
- if test "${enable_snapshot+set}" = set; then :
- enableval=$enable_snapshot;
- fi
- if test "${enable_snapshot}" = "yes"
- then
- PLUGINS="${PLUGINS} snapshot"
- LTLIBsnapshot="libsnapshot_plugin.la"
- fi
- # Check whether --enable-qte was given.
- if test "${enable_qte+set}" = set; then :
- enableval=$enable_qte;
- fi
- if test "${enable_qte}" = "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,'` -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${QTDIR}/include `echo -I${QTDIR}/include | sed 's,opt/QtPalmtop,usr,'` -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"'"'
- am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}"
- done
- fi
- PLUGINS="${PLUGINS} qte"
- LTLIBqte="libqte_plugin.la"
- NEED_QTE_MAIN=yes
- 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}"
- fi
- # Check whether --enable-hd1000v was given.
- if test "${enable_hd1000v+set}" = set; then :
- enableval=$enable_hd1000v;
- fi
- if test "${enable_hd1000v}" != "no" -a "${CXX}" != "" &&
- (test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" ||
- test "${enable_hd1000v}" = "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 cascade/graphics/CascadeScreen.h cascade/graphics/CascadeBitmap.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_cxx_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
- can_build_roku="yes"
- else
- can_build_roku="no"
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building Roku HD1000 compatible video output" >&5
- $as_echo "$as_me: WARNING: Not building Roku HD1000 compatible video output" >&2;}
- fi
- done
- if test "$can_build_roku" = "yes"
- then
- PLUGINS="${PLUGINS} hd1000v"
- LTLIBhd1000v="libhd1000v_plugin.la"
- for element in hd1000v; do
- eval "LIBS_${element}="'"'"-lCascade -ldvbpsi -lmad "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "cygwin"
- then
- PLUGINS="${PLUGINS} panoramix"
- LTLIBpanoramix="libpanoramix_plugin.la"
- fi
- # Check whether --enable-directx was given.
- if test "${enable_directx+set}" = set; then :
- enableval=$enable_directx;
- fi
- if test "${enable_directx}" != "no"
- then
- if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "cygwin"
- then
- # Check whether --with-directx was given.
- if test "${with_directx+set}" = set; then :
- withval=$with_directx;
- fi
- if test -z "${with_directx}"
- then
- for ac_header in ddraw.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
- if test "x$ac_cv_header_ddraw_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DDRAW_H 1
- _ACEOF
- PLUGINS="${PLUGINS} vout_directx"
- LTLIBvout_directx="libvout_directx_plugin.la"
- PLUGINS="${PLUGINS} aout_directx"
- LTLIBaout_directx="libaout_directx_plugin.la"
- for element in vout_directx; do
- eval "LIBS_${element}="'"'"-lgdi32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- for ac_header in GL/gl.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
- if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GL_GL_H 1
- _ACEOF
- PLUGINS="${PLUGINS} glwin32"
- LTLIBglwin32="libglwin32_plugin.la"
- for element in glwin32; do
- eval "LIBS_${element}="'"'"-lopengl32 -lgdi32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- for ac_header in d3d9.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
- if test "x$ac_cv_header_d3d9_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_D3D9_H 1
- _ACEOF
- PLUGINS="${PLUGINS} direct3d"
- LTLIBdirect3d="libdirect3d_plugin.la"
- for element in direct3d; do
- eval "LIBS_${element}="'"'"-lgdi32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directX headers in ${with_directx}" >&5
- $as_echo_n "checking for directX headers in ${with_directx}... " >&6; }
- if test -f ${with_directx}/ddraw.h
- then
- PLUGINS="${PLUGINS} vout_directx"
- LTLIBvout_directx="libvout_directx_plugin.la"
- PLUGINS="${PLUGINS} aout_directx"
- LTLIBaout_directx="libaout_directx_plugin.la"
- for element in vout_directx aout_directx; do
- eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} -I${with_directx}"'"'
- am_modules_with_cppflags="${am_modules_with_cppflags} ${element}"
- done
- for element in vout_directx; do
- eval "LIBS_${element}="'"'"-lgdi32 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error "Cannot find ${with_directx}/ddraw.h!" "$LINENO" 5
- fi
- fi
- fi
- fi
- # Check whether --enable-fb was given.
- if test "${enable_fb+set}" = set; then :
- enableval=$enable_fb;
- fi
- if test "${enable_fb}" != "no"
- 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} fb"
- LTLIBfb="libfb_plugin.la"
- fi
- done
- fi
- # Check whether --enable-mga was given.
- if test "${enable_mga+set}" = set; then :
- enableval=$enable_mga; if test "${enable_mga}" = "yes"
- then
- PLUGINS="${PLUGINS} mga"
- LTLIBmga="libmga_plugin.la"
- fi
- fi
- # Check whether --enable-omapfb was given.
- if test "${enable_omapfb+set}" = set; then :
- enableval=$enable_omapfb;
- fi
- if test "${enable_omapfb}" = "yes"
- then
- for ac_header in asm/arch-omap/omapfb.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "asm/arch-omap/omapfb.h" "ac_cv_header_asm_arch_omap_omapfb_h" "$ac_includes_default"
- if test "x$ac_cv_header_asm_arch_omap_omapfb_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ASM_ARCH_OMAP_OMAPFB_H 1
- _ACEOF
- PLUGINS="${PLUGINS} omapfb"
- LTLIBomapfb="libomapfb_plugin.la"
- for ac_header in X11/Xlib.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
- if test "x$ac_cv_header_X11_Xlib_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11_XLIB_H 1
- _ACEOF
- for element in omapfb; do
- eval "LIBS_${element}="'"'"${X_LIBS} ${X_PRE_LIBS} -lX11 "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- done
- fi
- done
- fi
- # Check whether --enable-svgalib was given.
- if test "${enable_svgalib+set}" = set; then :
- enableval=$enable_svgalib;
- fi
- if test "${enable_svgalib}" = "yes"
- then
- PLUGINS="${PLUGINS} svgalib"
- LTLIBsvgalib="libsvgalib_plugin.la"
- for element in svgalib; do
- eval "LIBS_${element}="'"'"-lvgagl -lvga "'$'"{LIBS_${element}} "'"'
- am_modules_with_libs="${am_modules_with_libs} ${element}"
- done
- fi
- # Check whether --enable-directfb was given.
- if test "${enable_directfb+set}" = set; then :
- enableval=$enable_directfb;
- fi
- # Check whether --with-directfb was given.
- if test "${with_directfb+set}" = set; then :
- withval=$with_directfb;
- fi
- if test "${enable_directfb}" = "yes"; then
- have_directfb="false"
- CPPFLAGS_mydirectfb=
- LIBS_mydirectfb=
- if test "${with_directfb}" != "no" -a -n "${with_directfb}"; then
- CPPFLAGS_save="${CPPFLAGS}"
- LIBS_save="${LIBS}"
- CPPFLAGS_new="-I${with_directfb}/include -D_REENTRANT -D_GNU_SOURCE"
- LIBS_new="-L${with_directfb}/lib/fusion/.libs/ -L${with_directfb}/lib/direct/.libs/"
- LIBS_new="${LIBS_new} -L${with_directfb}/src/.libs/"
- CPPFLAGS="${CPPFLAGS} ${CPPFLAGS_new}"
- LIBS="${LIBS} ${LIBS_new}"
- ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
- if test "x$ac_cv_header_directfb_h" = x""yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for direct_initialize in -ldirect" >&5
- $as_echo_n "checking for direct_initialize in -ldirect... " >&6; }
- if test "${ac_cv_lib_direct_direct_initialize+set}" = set; then :
- $as_echo_n "(cached) " >&6
- else