diff --git a/ChangeLog b/ChangeLog index aa76a1d..fc2ab7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2011-10-17 Fred Kiefer + + * configure.ac: Test for X shape extension + * configure: Regenerate + * config.h.in: Regenerate + * Source/x11/XGServerWindow.m (-restrictWindow:toImage:), + * Source/x11/XWindowBuffer.m (-_exposeRect:): Protect usage of + shape extension. + Should fix bug #34552. + 2011-10-13 Eric Wasylishen * Source/cairo/GNUmakefile: diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index 61451eb..c0becb1 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -60,7 +60,9 @@ #if HAVE_XCURSOR #include #endif +#ifdef HAVE_XSHAPE #include +#endif #include "x11/XGDragView.h" #include "x11/XGInputServer.h" @@ -3076,6 +3078,7 @@ static BOOL didCreatePixmaps; return; } +#ifdef HAVE_XSHAPE if ([[image backgroundColor] alphaComponent] * 256 <= ALPHA_THRESHOLD) { // The mask computed here is only correct for unscaled images. @@ -3100,6 +3103,7 @@ static BOOL didCreatePixmaps; { XFreePixmap(dpy, pixmap); } +#endif } /* This method is a fast implementation of move that only works diff --git a/Source/x11/XWindowBuffer.m b/Source/x11/XWindowBuffer.m index 1c385f7..9add996 100644 --- a/Source/x11/XWindowBuffer.m +++ b/Source/x11/XWindowBuffer.m @@ -28,16 +28,15 @@ #include "x11/XGServer.h" #include "x11/XGServerWindow.h" - #include "x11/XWindowBuffer.h" #include #include #include - +#ifdef HAVE_XSHAPE #include - +#endif static XWindowBuffer **window_buffers; static int num_window_buffers; @@ -509,6 +508,7 @@ accuracy, we do the test using int: s. if (use_shm) { +#ifdef HAVE_XSHAPE /* HACK: lets try to use shaped windows to get some use out of destination alpha */ if (has_alpha && use_shape_hack) @@ -585,6 +585,7 @@ static int warn = 0; XFreePixmap(display, p); } } +#endif // HAVE_XSHAPE if (pending_event) { diff --git a/config.h.in b/config.h.in index 092961c..1b7cbab 100644 --- a/config.h.in +++ b/config.h.in @@ -47,6 +47,9 @@ /* Define to 1 if you have the `Xt' library (-lXt). */ #undef HAVE_LIBXT +/* Define to 1 if you have the `shape' extension. */ +#undef HAVE_XSHAPE + /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H diff --git a/configure b/configure index 3b74b55..925aade 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.67. +# Generated by GNU Autoconf 2.68. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -89,6 +89,7 @@ fi IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. +as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -214,11 +215,18 @@ IFS=$as_save_IFS # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. + # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} + case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; + esac + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : @@ -255,24 +263,6 @@ as_fn_unset () } as_unset=as_fn_unset -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. @@ -372,83 +362,12 @@ as_fn_error () as_fn_exit $as_status } # as_fn_error -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - - - as_lineno_1=$LINENO as_lineno_1a=$LINENO - as_lineno_2=$LINENO as_lineno_2a=$LINENO - eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && - test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -496,29 +415,6 @@ else as_mkdir_p=false fi -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in #( - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -626,7 +522,6 @@ XT_LIBS XT_CFLAGS XEXT_LIBS XEXT_CFLAGS -PKG_CONFIG X_EXTRA_LIBS X_LIBS X_PRE_LIBS @@ -691,7 +586,12 @@ PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR -SHELL' +SHELL +_LIBS +_CFLAGS +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG' ac_subst_files='' ac_user_opts=' enable_option_checking @@ -706,7 +606,12 @@ enable_server enable_graphics with_name ' - ac_precious_vars='build_alias + ac_precious_vars='PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +_CFLAGS +_LIBS +build_alias host_alias target_alias CC @@ -715,7 +620,31 @@ LDFLAGS LIBS CPPFLAGS CPP -XMKMF' +XMKMF +XEXT_CFLAGS +XEXT_LIBS +XT_CFLAGS +XT_LIBS +XMU_CFLAGS +XMU_LIBS +XFT_CFLAGS +XFT_LIBS +CAIRO_CFLAGS +CAIRO_LIBS +CAIRO_FT_CFLAGS +CAIRO_FT_LIBS +CAIRO_XLIB_CFLAGS +CAIRO_XLIB_LIBS +CAIRO_WIN32_CFLAGS +CAIRO_WIN32_LIBS +CAIRO_GLITZ_CFLAGS +CAIRO_GLITZ_LIBS +GLITZ_CFLAGS +GLITZ_LIBS +GLITZ_GLX_CFLAGS +GLITZ_GLX_LIBS +GLITZ_WGL_CFLAGS +GLITZ_WGL_LIBS' # Initialize some variables set by options. @@ -1120,7 +1049,7 @@ Try \`$0 --help' for more information" $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac @@ -1348,8 +1277,8 @@ Optional Packages: --with-x use the X Window System --without-freetype Do not check for or include freetype --with-name=PREFIX Set the name of the backend (def=back) - -Some influential environment variables: + _CFLAGS C compiler flags for , overriding pkg-config + _LIBS linker flags for , overriding pkg-config CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a @@ -1359,9 +1288,44 @@ Some influential environment variables: you have headers in a nonstandard directory CPP C preprocessor XMKMF Path to xmkmf, Makefile generator for X Window System - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. + XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config + XEXT_LIBS linker flags for XEXT, overriding pkg-config + XT_CFLAGS C compiler flags for XT, overriding pkg-config + XT_LIBS linker flags for XT, overriding pkg-config + XMU_CFLAGS C compiler flags for XMU, overriding pkg-config + XMU_LIBS linker flags for XMU, overriding pkg-config + XFT_CFLAGS C compiler flags for XFT, overriding pkg-config + XFT_LIBS linker flags for XFT, overriding pkg-config + CAIRO_CFLAGS + C compiler flags for CAIRO, overriding pkg-config + CAIRO_LIBS linker flags for CAIRO, overriding pkg-config + CAIRO_FT_CFLAGS + C compiler flags for CAIRO_FT, overriding pkg-config + CAIRO_FT_LIBS + linker flags for CAIRO_FT, overriding pkg-config + CAIRO_XLIB_CFLAGS + C compiler flags for CAIRO_XLIB, overriding pkg-config + CAIRO_XLIB_LIBS + linker flags for CAIRO_XLIB, overriding pkg-config + CAIRO_WIN32_CFLAGS + C compiler flags for CAIRO_WIN32, overriding pkg-config + CAIRO_WIN32_LIBS + linker flags for CAIRO_WIN32, overriding pkg-config + CAIRO_GLITZ_CFLAGS + C compiler flags for CAIRO_GLITZ, overriding pkg-config + CAIRO_GLITZ_LIBS + linker flags for CAIRO_GLITZ, overriding pkg-config + GLITZ_CFLAGS + C compiler flags for GLITZ, overriding pkg-config + GLITZ_LIBS linker flags for GLITZ, overriding pkg-config + GLITZ_GLX_CFLAGS + C compiler flags for GLITZ_GLX, overriding pkg-config + GLITZ_GLX_LIBS + linker flags for GLITZ_GLX, overriding pkg-config + GLITZ_WGL_CFLAGS + C compiler flags for GLITZ_WGL, overriding pkg-config + GLITZ_WGL_LIBS + linker flags for GLITZ_WGL, overriding pkg-config Report bugs to the package provider. _ACEOF @@ -1427,7 +1391,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure -generated by GNU Autoconf 2.67 +generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation @@ -1473,7 +1437,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile @@ -1510,7 +1474,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp @@ -1523,10 +1487,10 @@ fi ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval "test \"\${$3+set}\"" = set; then : + if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } -if eval "test \"\${$3+set}\"" = set; then : +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 @@ -1589,7 +1553,7 @@ $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } -if eval "test \"\${$3+set}\"" = set; then : +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" @@ -1598,7 +1562,7 @@ eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel @@ -1639,7 +1603,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run @@ -1653,7 +1617,7 @@ ac_fn_c_check_header_compile () as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } -if eval "test \"\${$3+set}\"" = set; then : +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -1671,7 +1635,7 @@ fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile @@ -1716,7 +1680,7 @@ fi # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link @@ -1729,7 +1693,7 @@ ac_fn_c_check_func () as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } -if eval "test \"\${$3+set}\"" = set; then : +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -1784,7 +1748,7 @@ fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func cat >config.log <<_ACEOF @@ -1792,7 +1756,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was -generated by GNU Autoconf 2.67. Invocation command line was +generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2050,7 +2014,7 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;} || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } fi done @@ -2199,7 +2163,7 @@ if test -n "$ac_tool_prefix"; then set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then : +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -2239,7 +2203,7 @@ if test -z "$ac_cv_prog_CC"; then set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : +if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then @@ -2292,7 +2256,7 @@ if test -z "$CC"; then set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then : +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -2332,7 +2296,7 @@ if test -z "$CC"; then set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then : +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -2391,7 +2355,7 @@ if test -z "$CC"; then set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then : +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -2435,7 +2399,7 @@ do set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : +if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then @@ -2490,7 +2454,7 @@ fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -2605,7 +2569,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } @@ -2648,7 +2612,7 @@ else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 @@ -2707,7 +2671,7 @@ $as_echo "$ac_try_echo"; } >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } fi fi fi @@ -2718,7 +2682,7 @@ rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } -if test "${ac_cv_objext+set}" = set; then : +if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2759,7 +2723,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi @@ -2769,7 +2733,7 @@ OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then : +if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2806,7 +2770,7 @@ ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then : +if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag @@ -2884,7 +2848,7 @@ else fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then : +if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no @@ -2985,7 +2949,7 @@ $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } -if test "${ac_cv_build+set}" = set; then : +if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias @@ -3001,7 +2965,7 @@ fi $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' @@ -3019,7 +2983,7 @@ case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } -if test "${ac_cv_host+set}" = set; then : +if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then @@ -3034,7 +2998,7 @@ fi $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' @@ -3052,7 +3016,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } -if test "${ac_cv_target+set}" = set; then : +if ${ac_cv_target+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then @@ -3067,7 +3031,7 @@ fi $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; -*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' @@ -3156,7 +3120,7 @@ if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then : + if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded @@ -3272,7 +3236,7 @@ else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c @@ -3284,7 +3248,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if test "${ac_cv_path_GREP+set}" = set; then : +if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then @@ -3347,7 +3311,7 @@ $as_echo "$ac_cv_path_GREP" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then : +if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 @@ -3414,7 +3378,7 @@ $as_echo "$ac_cv_path_EGREP" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } -if test "${ac_cv_header_stdc+set}" = set; then : +if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -3544,7 +3508,7 @@ done for ac_header in syslog.h do : ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" -if test "x$ac_cv_header_syslog_h" = x""yes; then : +if test "x$ac_cv_header_syslog_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYSLOG_H 1 _ACEOF @@ -3556,7 +3520,7 @@ done for ac_func in syslog do : ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" -if test "x$ac_cv_func_syslog" = x""yes; then : +if test "x$ac_cv_func_syslog" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYSLOG 1 _ACEOF @@ -3601,8 +3565,8 @@ if test "x$with_x" = xno; then 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_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( + *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. @@ -3879,7 +3843,7 @@ 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 : +if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -3913,14 +3877,14 @@ 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 : +if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; 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 : +if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -3954,7 +3918,7 @@ 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 : +if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi @@ -3973,14 +3937,14 @@ rm -f core conftest.err conftest.$ac_objext \ # 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 : +if test "x$ac_cv_func_gethostbyname" = xyes; 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 : +if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4014,14 +3978,14 @@ 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 : +if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; 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 : +if ${ac_cv_lib_bsd_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4055,7 +4019,7 @@ 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 : +if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi @@ -4070,14 +4034,14 @@ fi # 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 : +if test "x$ac_cv_func_connect" = xyes; 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 : +if ${ac_cv_lib_socket_connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4111,7 +4075,7 @@ 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 : +if test "x$ac_cv_lib_socket_connect" = xyes; then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi @@ -4119,14 +4083,14 @@ 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 : +if test "x$ac_cv_func_remove" = xyes; 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 : +if ${ac_cv_lib_posix_remove+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4160,7 +4124,7 @@ 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 : +if test "x$ac_cv_lib_posix_remove" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi @@ -4168,14 +4132,14 @@ 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 : +if test "x$ac_cv_func_shmat" = xyes; 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 : +if ${ac_cv_lib_ipc_shmat+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4209,7 +4173,7 @@ 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 : +if test "x$ac_cv_lib_ipc_shmat" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi @@ -4227,7 +4191,7 @@ fi # 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 : +if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4261,7 +4225,7 @@ 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 : +if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi @@ -4285,7 +4249,7 @@ if test $set_x_paths = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXext" >&5 $as_echo_n "checking for main in -lXext... " >&6; } -if test "${ac_cv_lib_Xext_main+set}" = set; then : +if ${ac_cv_lib_Xext_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4313,7 +4277,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_main" >&5 $as_echo "$ac_cv_lib_Xext_main" >&6; } -if test "x$ac_cv_lib_Xext_main" = x""yes; then : +if test "x$ac_cv_lib_Xext_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBXEXT 1 _ACEOF @@ -4324,109 +4288,99 @@ fi if test "$HAVE_LIBXext" = no; then - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 +$as_echo_n "checking for XEXT... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$XEXT_CFLAGS"; then + pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xext") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$XEXT_LIBS"; then + pkg_cv_XEXT_LIBS="$XEXT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xext") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xext" >&5 -$as_echo_n "checking for xext... " >&6; } - - if $PKG_CONFIG --exists "xext" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking XEXT_CFLAGS" >&5 -$as_echo_n "checking XEXT_CFLAGS... " >&6; } - XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XEXT_CFLAGS" >&5 -$as_echo "$XEXT_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking XEXT_LIBS" >&5 -$as_echo_n "checking XEXT_LIBS... " >&6; } - XEXT_LIBS=`$PKG_CONFIG --libs "xext"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XEXT_LIBS" >&5 -$as_echo "$XEXT_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1` else - XEXT_CFLAGS="" - XEXT_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"` - echo $XEXT_PKG_ERRORS + XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$XEXT_PKG_ERRORS" >&5 + as_fn_error $? "Package requirements (xext) were not met: +$XEXT_PKG_ERRORS - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. - if test $succeeded = yes; then - : - else - as_fn_error $? "Library requirements (xext) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5 - fi +Alternatively, you may set the environment variables XEXT_CFLAGS +and XEXT_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}: result: no" >&5 +$as_echo "no" >&6; } + { { $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 XEXT_CFLAGS +and XEXT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS + XEXT_LIBS=$pkg_cv_XEXT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXt" >&5 $as_echo_n "checking for main in -lXt... " >&6; } -if test "${ac_cv_lib_Xt_main+set}" = set; then : +if ${ac_cv_lib_Xt_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4454,7 +4408,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_main" >&5 $as_echo "$ac_cv_lib_Xt_main" >&6; } -if test "x$ac_cv_lib_Xt_main" = x""yes; then : +if test "x$ac_cv_lib_Xt_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBXT 1 _ACEOF @@ -4465,109 +4419,99 @@ fi if test "$HAVE_LIBXt" = no; then - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5 +$as_echo_n "checking for XT... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$XT_CFLAGS"; then + pkg_cv_XT_CFLAGS="$XT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xt") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$XT_LIBS"; then + pkg_cv_XT_LIBS="$XT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xt") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xt" >&5 -$as_echo_n "checking for xt... " >&6; } - - if $PKG_CONFIG --exists "xt" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking XT_CFLAGS" >&5 -$as_echo_n "checking XT_CFLAGS... " >&6; } - XT_CFLAGS=`$PKG_CONFIG --cflags "xt"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XT_CFLAGS" >&5 -$as_echo "$XT_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking XT_LIBS" >&5 -$as_echo_n "checking XT_LIBS... " >&6; } - XT_LIBS=`$PKG_CONFIG --libs "xt"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XT_LIBS" >&5 -$as_echo "$XT_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` else - XT_CFLAGS="" - XT_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - XT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"` - echo $XT_PKG_ERRORS + XT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$XT_PKG_ERRORS" >&5 + as_fn_error $? "Package requirements (xt) were not met: +$XT_PKG_ERRORS - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. - if test $succeeded = yes; then - : - else - as_fn_error $? "Library requirements (xt) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5 - fi +Alternatively, you may set the environment variables XT_CFLAGS +and XT_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}: result: no" >&5 +$as_echo "no" >&6; } + { { $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 XT_CFLAGS +and XT_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + XT_CFLAGS=$pkg_cv_XT_CFLAGS + XT_LIBS=$pkg_cv_XT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXmu" >&5 $as_echo_n "checking for main in -lXmu... " >&6; } -if test "${ac_cv_lib_Xmu_main+set}" = set; then : +if ${ac_cv_lib_Xmu_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4595,7 +4539,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_main" >&5 $as_echo "$ac_cv_lib_Xmu_main" >&6; } -if test "x$ac_cv_lib_Xmu_main" = x""yes; then : +if test "x$ac_cv_lib_Xmu_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBXMU 1 _ACEOF @@ -4606,109 +4550,99 @@ fi if test "$HAVE_LIBXmu" = no; then - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5 +$as_echo_n "checking for XMU... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$XMU_CFLAGS"; then + pkg_cv_XMU_CFLAGS="$XMU_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xmu") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xmu" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$XMU_LIBS"; then + pkg_cv_XMU_LIBS="$XMU_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xmu") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xmu" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5 -$as_echo_n "checking for xmu... " >&6; } - - if $PKG_CONFIG --exists "xmu" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking XMU_CFLAGS" >&5 -$as_echo_n "checking XMU_CFLAGS... " >&6; } - XMU_CFLAGS=`$PKG_CONFIG --cflags "xmu"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMU_CFLAGS" >&5 -$as_echo "$XMU_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking XMU_LIBS" >&5 -$as_echo_n "checking XMU_LIBS... " >&6; } - XMU_LIBS=`$PKG_CONFIG --libs "xmu"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMU_LIBS" >&5 -$as_echo "$XMU_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmu" 2>&1` else - XMU_CFLAGS="" - XMU_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - XMU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmu"` - echo $XMU_PKG_ERRORS + XMU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmu" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$XMU_PKG_ERRORS" >&5 + as_fn_error $? "Package requirements (xmu) were not met: +$XMU_PKG_ERRORS - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. - if test $succeeded = yes; then - : - else - as_fn_error $? "Library requirements (xmu) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5 - fi +Alternatively, you may set the environment variables XMU_CFLAGS +and XMU_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}: result: no" >&5 +$as_echo "no" >&6; } + { { $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 XMU_CFLAGS +and XMU_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + XMU_CFLAGS=$pkg_cv_XMU_CFLAGS + XMU_LIBS=$pkg_cv_XMU_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesSelectSelectionInput in -lXfixes" >&5 $as_echo_n "checking for XFixesSelectSelectionInput in -lXfixes... " >&6; } -if test "${ac_cv_lib_Xfixes_XFixesSelectSelectionInput+set}" = set; then : +if ${ac_cv_lib_Xfixes_XFixesSelectSelectionInput+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4742,7 +4676,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesSelectSelectionInput" >&5 $as_echo "$ac_cv_lib_Xfixes_XFixesSelectSelectionInput" >&6; } -if test "x$ac_cv_lib_Xfixes_XFixesSelectSelectionInput" = x""yes; then : +if test "x$ac_cv_lib_Xfixes_XFixesSelectSelectionInput" = xyes; then : LIBS="-lXfixes $LIBS" @@ -4755,7 +4689,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5 $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; } -if test "${ac_cv_lib_Xcursor_XcursorImageCreate+set}" = set; then : +if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4789,7 +4723,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5 $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; } -if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = x""yes; then : +if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then : LIBS="-lXcursor $LIBS" @@ -4800,6 +4734,69 @@ $as_echo "#define HAVE_XCURSOR 1" >>confdefs.h fi + have_xshape=no + for ac_header in X11/extensions/shape.h +do : + ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include +" +if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_X11_EXTENSIONS_SHAPE_H 1 +_ACEOF + have_xshape=yes +fi + +done + + if test $have_xshape = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 +$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } +if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; 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 XShapeCombineMask (); +int +main () +{ +return XShapeCombineMask (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_Xext_XShapeCombineMask=yes +else + ac_cv_lib_Xext_XShapeCombineMask=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_XShapeCombineMask" >&5 +$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } +if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : + + LIBS="-lXext $LIBS" + +$as_echo "#define HAVE_XSHAPE 1" >>confdefs.h + + + +fi + + fi + LIBS="$X_LIBS $LIBS" fi @@ -4878,7 +4875,7 @@ if test $with_freetype = yes; then save_CPPFLAGS=${CPPFLAGS} CPPFLAGS="${CPPFLAGS} ${FREETYPE_CFLAGS}" ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" -if test "x$ac_cv_header_ft2build_h" = x""yes; then : +if test "x$ac_cv_header_ft2build_h" = xyes; then : have_freetype=yes else have_freetype=no @@ -4894,104 +4891,74 @@ fi #-------------------------------------------------------------------- PKG_XFT=no - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5 +$as_echo_n "checking for XFT... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$XFT_CFLAGS"; then + pkg_cv_XFT_CFLAGS="$XFT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xft") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$XFT_LIBS"; then + pkg_cv_XFT_LIBS="$XFT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5 + ($PKG_CONFIG --exists --print-errors "xft") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft" >&5 -$as_echo_n "checking for xft... " >&6; } - - if $PKG_CONFIG --exists "xft" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 -$as_echo_n "checking XFT_CFLAGS... " >&6; } - XFT_CFLAGS=`$PKG_CONFIG --cflags "xft"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 -$as_echo "$XFT_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 -$as_echo_n "checking XFT_LIBS... " >&6; } - XFT_LIBS=`$PKG_CONFIG --libs "xft"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 -$as_echo "$XFT_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xft" 2>&1` else - XFT_CFLAGS="" - XFT_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"` - + XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xft" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$XFT_PKG_ERRORS" >&5 - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - WITH_XFT=yes - else - WITH_XFT=no - fi - + WITH_XFT=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + WITH_XFT=no +else + XFT_CFLAGS=$pkg_cv_XFT_CFLAGS + XFT_LIBS=$pkg_cv_XFT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + WITH_XFT=yes +fi if test $WITH_XFT = no; then # pkg-config failed for some reason, Check the old way? @@ -5003,7 +4970,7 @@ if test $WITH_XFT = no; then fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } -if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : +if ${ac_cv_lib_Xft_XftFontOpen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -5037,7 +5004,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } -if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : +if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBXFT 1 _ACEOF @@ -5047,7 +5014,7 @@ _ACEOF fi ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" -if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : +if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then : fi @@ -5075,7 +5042,7 @@ $as_echo "#define HAVE_XFT 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawStringUtf8 in -lXft" >&5 $as_echo_n "checking for XftDrawStringUtf8 in -lXft... " >&6; } -if test "${ac_cv_lib_Xft_XftDrawStringUtf8+set}" = set; then : +if ${ac_cv_lib_Xft_XftDrawStringUtf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -5109,7 +5076,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawStringUtf8" >&5 $as_echo "$ac_cv_lib_Xft_XftDrawStringUtf8" >&6; } -if test "x$ac_cv_lib_Xft_XftDrawStringUtf8" = x""yes; then : +if test "x$ac_cv_lib_Xft_XftDrawStringUtf8" = xyes; then : have_utf8=yes else have_utf8=no @@ -5122,7 +5089,7 @@ $as_echo "#define HAVE_UTF8 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftPatternGetString in -lXft" >&5 $as_echo_n "checking for XftPatternGetString in -lXft... " >&6; } -if test "${ac_cv_lib_Xft_XftPatternGetString+set}" = set; then : +if ${ac_cv_lib_Xft_XftPatternGetString+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -5156,7 +5123,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftPatternGetString" >&5 $as_echo "$ac_cv_lib_Xft_XftPatternGetString" >&6; } -if test "x$ac_cv_lib_Xft_XftPatternGetString" = x""yes; then : +if test "x$ac_cv_lib_Xft_XftPatternGetString" = xyes; then : have_xftpgs=yes else have_xftpgs=no @@ -5165,7 +5132,7 @@ fi for ac_func in Xutf8LookupString do : ac_fn_c_check_func "$LINENO" "Xutf8LookupString" "ac_cv_func_Xutf8LookupString" -if test "x$ac_cv_func_Xutf8LookupString" = x""yes; then : +if test "x$ac_cv_func_Xutf8LookupString" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_XUTF8LOOKUPSTRING 1 _ACEOF @@ -5175,7 +5142,7 @@ done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternCreate in -lfontconfig" >&5 $as_echo_n "checking for FcPatternCreate in -lfontconfig... " >&6; } -if test "${ac_cv_lib_fontconfig_FcPatternCreate+set}" = set; then : +if ${ac_cv_lib_fontconfig_FcPatternCreate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -5209,14 +5176,14 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternCreate" >&5 $as_echo "$ac_cv_lib_fontconfig_FcPatternCreate" >&6; } -if test "x$ac_cv_lib_fontconfig_FcPatternCreate" = x""yes; then : +if test "x$ac_cv_lib_fontconfig_FcPatternCreate" = xyes; then : have_fc=yes else have_fc=no fi 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 : +if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : fi @@ -5250,7 +5217,7 @@ fi if test "x$enable_glx" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXMakeContextCurrent in -lGL" >&5 $as_echo_n "checking for glXMakeContextCurrent in -lGL... " >&6; } -if test "${ac_cv_lib_GL_glXMakeContextCurrent+set}" = set; then : +if ${ac_cv_lib_GL_glXMakeContextCurrent+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -5284,14 +5251,14 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXMakeContextCurrent" >&5 $as_echo "$ac_cv_lib_GL_glXMakeContextCurrent" >&6; } -if test "x$ac_cv_lib_GL_glXMakeContextCurrent" = x""yes; then : +if test "x$ac_cv_lib_GL_glXMakeContextCurrent" = xyes; then : have_glx=yes else have_glx=no fi ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default" -if test "x$ac_cv_header_GL_glx_h" = x""yes; then : +if test "x$ac_cv_header_GL_glx_h" = xyes; then : fi @@ -5349,7 +5316,7 @@ fi for ac_func in usleep do : ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" -if test "x$ac_cv_func_usleep" = x""yes; then : +if test "x$ac_cv_func_usleep" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_USLEEP 1 _ACEOF @@ -5363,7 +5330,7 @@ for ac_header in X11/extensions/XShm.h do : ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "#include " -if test "x$ac_cv_header_X11_extensions_XShm_h" = x""yes; then : +if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_EXTENSIONS_XSHM_H 1 _ACEOF @@ -5375,7 +5342,7 @@ done for ac_func in shmctl do : ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" -if test "x$ac_cv_func_shmctl" = x""yes; then : +if test "x$ac_cv_func_shmctl" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SHMCTL 1 _ACEOF @@ -5391,7 +5358,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XInternAtoms in -lX11" >&5 $as_echo_n "checking for XInternAtoms in -lX11... " >&6; } -if test "${ac_cv_lib_X11_XInternAtoms+set}" = set; then : +if ${ac_cv_lib_X11_XInternAtoms+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -5425,7 +5392,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XInternAtoms" >&5 $as_echo "$ac_cv_lib_X11_XInternAtoms" >&6; } -if test "x$ac_cv_lib_X11_XInternAtoms" = x""yes; then : +if test "x$ac_cv_lib_X11_XInternAtoms" = xyes; then : $as_echo "#define HAVE_XINTERNATOMS 1" >>confdefs.h @@ -5437,7 +5404,7 @@ fi #-------------------------------------------------------------------- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 $as_echo_n "checking for main in -lgdi32... " >&6; } -if test "${ac_cv_lib_gdi32_main+set}" = set; then : +if ${ac_cv_lib_gdi32_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -5465,7 +5432,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5 $as_echo "$ac_cv_lib_gdi32_main" >&6; } -if test "x$ac_cv_lib_gdi32_main" = x""yes; then : +if test "x$ac_cv_lib_gdi32_main" = xyes; then : have_gdi32=yes else have_gdi32=no @@ -5476,7 +5443,7 @@ if test "$have_gdi32" = yes; then fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmsimg32" >&5 $as_echo_n "checking for main in -lmsimg32... " >&6; } -if test "${ac_cv_lib_msimg32_main+set}" = set; then : +if ${ac_cv_lib_msimg32_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -5504,7 +5471,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msimg32_main" >&5 $as_echo "$ac_cv_lib_msimg32_main" >&6; } -if test "x$ac_cv_lib_msimg32_main" = x""yes; then : +if test "x$ac_cv_lib_msimg32_main" = xyes; then : have_msimg32=yes else have_msimg32=no @@ -5528,7 +5495,7 @@ fi if test "x$enable_wgl" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopengl32" >&5 $as_echo_n "checking for main in -lopengl32... " >&6; } -if test "${ac_cv_lib_opengl32_main+set}" = set; then : +if ${ac_cv_lib_opengl32_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -5556,7 +5523,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opengl32_main" >&5 $as_echo "$ac_cv_lib_opengl32_main" >&6; } -if test "x$ac_cv_lib_opengl32_main" = x""yes; then : +if test "x$ac_cv_lib_opengl32_main" = xyes; then : have_wgl=yes else have_wgl=no @@ -5565,7 +5532,7 @@ fi save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS" ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" -if test "x$ac_cv_header_windows_h" = x""yes; then : +if test "x$ac_cv_header_windows_h" = xyes; then : fi @@ -5626,7 +5593,7 @@ if test x"$LIBART_LIBS" = x; then # No libart2-config, is there any point in checking for individual libs? { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lart_lgpl_2" >&5 $as_echo_n "checking for main in -lart_lgpl_2... " >&6; } -if test "${ac_cv_lib_art_lgpl_2_main+set}" = set; then : +if ${ac_cv_lib_art_lgpl_2_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -5654,7 +5621,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_art_lgpl_2_main" >&5 $as_echo "$ac_cv_lib_art_lgpl_2_main" >&6; } -if test "x$ac_cv_lib_art_lgpl_2_main" = x""yes; then : +if test "x$ac_cv_lib_art_lgpl_2_main" = xyes; then : have_libart=yes else have_libart=no @@ -5662,7 +5629,7 @@ fi if test "$have_libart" = yes; then ac_fn_c_check_header_mongrel "$LINENO" "libart_lgpl/libart.h" "ac_cv_header_libart_lgpl_libart_h" "$ac_includes_default" -if test "x$ac_cv_header_libart_lgpl_libart_h" = x""yes; then : +if test "x$ac_cv_header_libart_lgpl_libart_h" = xyes; then : have_libart=yes else have_libart=no @@ -5682,504 +5649,354 @@ fi #-------------------------------------------------------------------- PKG_CAIRO=no - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5 +$as_echo_n "checking for CAIRO... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$CAIRO_CFLAGS"; then + pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5 + ($PKG_CONFIG --exists --print-errors "cairo") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$CAIRO_LIBS"; then + pkg_cv_CAIRO_LIBS="$CAIRO_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5 + ($PKG_CONFIG --exists --print-errors "cairo") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5 -$as_echo_n "checking for cairo... " >&6; } - - if $PKG_CONFIG --exists "cairo" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5 -$as_echo_n "checking CAIRO_CFLAGS... " >&6; } - CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5 -$as_echo "$CAIRO_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5 -$as_echo_n "checking CAIRO_LIBS... " >&6; } - CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5 -$as_echo "$CAIRO_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo" 2>&1` else - CAIRO_CFLAGS="" - CAIRO_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"` - + CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$CAIRO_PKG_ERRORS" >&5 - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - have_cairo=yes - else - have_cairo=no - fi - + have_cairo=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + have_cairo=no +else + CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS + CAIRO_LIBS=$pkg_cv_CAIRO_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + have_cairo=yes +fi PKG_CAIRO_FT=no - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5 +$as_echo_n "checking for CAIRO_FT... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$CAIRO_FT_CFLAGS"; then + pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5 + ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$CAIRO_FT_LIBS"; then + pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5 + ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo-ft" >&5 -$as_echo_n "checking for cairo-ft... " >&6; } - - if $PKG_CONFIG --exists "cairo-ft" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_FT_CFLAGS" >&5 -$as_echo_n "checking CAIRO_FT_CFLAGS... " >&6; } - CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_FT_CFLAGS" >&5 -$as_echo "$CAIRO_FT_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_FT_LIBS" >&5 -$as_echo_n "checking CAIRO_FT_LIBS... " >&6; } - CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_FT_LIBS" >&5 -$as_echo "$CAIRO_FT_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-ft" 2>&1` else - CAIRO_FT_CFLAGS="" - CAIRO_FT_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"` - + CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-ft" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$CAIRO_FT_PKG_ERRORS" >&5 - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - have_cairo_ft=yes - else - have_cairo_ft=no - fi - + have_cairo_ft=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + have_cairo_ft=no +else + CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS + CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + have_cairo_ft=yes +fi PKG_CAIRO_XLIB=no - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_XLIB" >&5 +$as_echo_n "checking for CAIRO_XLIB... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$CAIRO_XLIB_CFLAGS"; then + pkg_cv_CAIRO_XLIB_CFLAGS="$CAIRO_XLIB_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\""; } >&5 + ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CAIRO_XLIB_CFLAGS=`$PKG_CONFIG --cflags "cairo-xlib" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$CAIRO_XLIB_LIBS"; then + pkg_cv_CAIRO_XLIB_LIBS="$CAIRO_XLIB_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\""; } >&5 + ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CAIRO_XLIB_LIBS=`$PKG_CONFIG --libs "cairo-xlib" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo-xlib" >&5 -$as_echo_n "checking for cairo-xlib... " >&6; } - - if $PKG_CONFIG --exists "cairo-xlib" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_XLIB_CFLAGS" >&5 -$as_echo_n "checking CAIRO_XLIB_CFLAGS... " >&6; } - CAIRO_XLIB_CFLAGS=`$PKG_CONFIG --cflags "cairo-xlib"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_XLIB_CFLAGS" >&5 -$as_echo "$CAIRO_XLIB_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_XLIB_LIBS" >&5 -$as_echo_n "checking CAIRO_XLIB_LIBS... " >&6; } - CAIRO_XLIB_LIBS=`$PKG_CONFIG --libs "cairo-xlib"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_XLIB_LIBS" >&5 -$as_echo "$CAIRO_XLIB_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + CAIRO_XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-xlib" 2>&1` else - CAIRO_XLIB_CFLAGS="" - CAIRO_XLIB_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - CAIRO_XLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-xlib"` - + CAIRO_XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-xlib" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$CAIRO_XLIB_PKG_ERRORS" >&5 - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - have_cairo_xlib=yes - else - have_cairo_xlib=no - fi - + have_cairo_xlib=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + have_cairo_xlib=no +else + CAIRO_XLIB_CFLAGS=$pkg_cv_CAIRO_XLIB_CFLAGS + CAIRO_XLIB_LIBS=$pkg_cv_CAIRO_XLIB_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + have_cairo_xlib=yes +fi PKG_CAIRO_WIN32=no - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_WIN32" >&5 +$as_echo_n "checking for CAIRO_WIN32... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$CAIRO_WIN32_CFLAGS"; then + pkg_cv_CAIRO_WIN32_CFLAGS="$CAIRO_WIN32_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-win32\""; } >&5 + ($PKG_CONFIG --exists --print-errors "cairo-win32") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CAIRO_WIN32_CFLAGS=`$PKG_CONFIG --cflags "cairo-win32" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$CAIRO_WIN32_LIBS"; then + pkg_cv_CAIRO_WIN32_LIBS="$CAIRO_WIN32_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-win32\""; } >&5 + ($PKG_CONFIG --exists --print-errors "cairo-win32") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CAIRO_WIN32_LIBS=`$PKG_CONFIG --libs "cairo-win32" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo-win32" >&5 -$as_echo_n "checking for cairo-win32... " >&6; } - - if $PKG_CONFIG --exists "cairo-win32" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_WIN32_CFLAGS" >&5 -$as_echo_n "checking CAIRO_WIN32_CFLAGS... " >&6; } - CAIRO_WIN32_CFLAGS=`$PKG_CONFIG --cflags "cairo-win32"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_WIN32_CFLAGS" >&5 -$as_echo "$CAIRO_WIN32_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_WIN32_LIBS" >&5 -$as_echo_n "checking CAIRO_WIN32_LIBS... " >&6; } - CAIRO_WIN32_LIBS=`$PKG_CONFIG --libs "cairo-win32"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_WIN32_LIBS" >&5 -$as_echo "$CAIRO_WIN32_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + CAIRO_WIN32_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-win32" 2>&1` else - CAIRO_WIN32_CFLAGS="" - CAIRO_WIN32_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - CAIRO_WIN32_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-win32"` - + CAIRO_WIN32_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-win32" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$CAIRO_WIN32_PKG_ERRORS" >&5 - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - have_cairo_win32=yes - else - have_cairo_win32=no - fi - + have_cairo_win32=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + have_cairo_win32=no +else + CAIRO_WIN32_CFLAGS=$pkg_cv_CAIRO_WIN32_CFLAGS + CAIRO_WIN32_LIBS=$pkg_cv_CAIRO_WIN32_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + have_cairo_win32=yes +fi PKG_CAIRO_GLITZ=no - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_GLITZ" >&5 +$as_echo_n "checking for CAIRO_GLITZ... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$CAIRO_GLITZ_CFLAGS"; then + pkg_cv_CAIRO_GLITZ_CFLAGS="$CAIRO_GLITZ_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-glitz\""; } >&5 + ($PKG_CONFIG --exists --print-errors "cairo-glitz") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CAIRO_GLITZ_CFLAGS=`$PKG_CONFIG --cflags "cairo-glitz" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$CAIRO_GLITZ_LIBS"; then + pkg_cv_CAIRO_GLITZ_LIBS="$CAIRO_GLITZ_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-glitz\""; } >&5 + ($PKG_CONFIG --exists --print-errors "cairo-glitz") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CAIRO_GLITZ_LIBS=`$PKG_CONFIG --libs "cairo-glitz" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo-glitz" >&5 -$as_echo_n "checking for cairo-glitz... " >&6; } - - if $PKG_CONFIG --exists "cairo-glitz" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_GLITZ_CFLAGS" >&5 -$as_echo_n "checking CAIRO_GLITZ_CFLAGS... " >&6; } - CAIRO_GLITZ_CFLAGS=`$PKG_CONFIG --cflags "cairo-glitz"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_GLITZ_CFLAGS" >&5 -$as_echo "$CAIRO_GLITZ_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_GLITZ_LIBS" >&5 -$as_echo_n "checking CAIRO_GLITZ_LIBS... " >&6; } - CAIRO_GLITZ_LIBS=`$PKG_CONFIG --libs "cairo-glitz"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_GLITZ_LIBS" >&5 -$as_echo "$CAIRO_GLITZ_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + CAIRO_GLITZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-glitz" 2>&1` else - CAIRO_GLITZ_CFLAGS="" - CAIRO_GLITZ_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - CAIRO_GLITZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-glitz"` - + CAIRO_GLITZ_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-glitz" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$CAIRO_GLITZ_PKG_ERRORS" >&5 - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - have_cairo_glitz=yes - else - have_cairo_glitz=no - fi - + have_cairo_glitz=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + have_cairo_glitz=no +else + CAIRO_GLITZ_CFLAGS=$pkg_cv_CAIRO_GLITZ_CFLAGS + CAIRO_GLITZ_LIBS=$pkg_cv_CAIRO_GLITZ_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + have_cairo_glitz=yes +fi #-------------------------------------------------------------------- # XRender support @@ -6188,7 +6005,7 @@ $as_echo "$CAIRO_GLITZ_LIBS" >&6; } have_xrender=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderFindVisualFormat in -lXrender" >&5 $as_echo_n "checking for XRenderFindVisualFormat in -lXrender... " >&6; } -if test "${ac_cv_lib_Xrender_XRenderFindVisualFormat+set}" = set; then : +if ${ac_cv_lib_Xrender_XRenderFindVisualFormat+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -6222,7 +6039,7 @@ LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderFindVisualFormat" >&5 $as_echo "$ac_cv_lib_Xrender_XRenderFindVisualFormat" >&6; } -if test "x$ac_cv_lib_Xrender_XRenderFindVisualFormat" = x""yes; then : +if test "x$ac_cv_lib_Xrender_XRenderFindVisualFormat" = xyes; then : have_xrender=yes fi @@ -6241,108 +6058,78 @@ fi if test "x$enable_glitz" = "xyes"; then - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLITZ" >&5 +$as_echo_n "checking for GLITZ... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$GLITZ_CFLAGS"; then + pkg_cv_GLITZ_CFLAGS="$GLITZ_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glitz\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glitz") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GLITZ_CFLAGS=`$PKG_CONFIG --cflags "glitz" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$GLITZ_LIBS"; then + pkg_cv_GLITZ_LIBS="$GLITZ_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glitz\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glitz") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GLITZ_LIBS=`$PKG_CONFIG --libs "glitz" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glitz" >&5 -$as_echo_n "checking for glitz... " >&6; } - - if $PKG_CONFIG --exists "glitz" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLITZ_CFLAGS" >&5 -$as_echo_n "checking GLITZ_CFLAGS... " >&6; } - GLITZ_CFLAGS=`$PKG_CONFIG --cflags "glitz"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLITZ_CFLAGS" >&5 -$as_echo "$GLITZ_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLITZ_LIBS" >&5 -$as_echo_n "checking GLITZ_LIBS... " >&6; } - GLITZ_LIBS=`$PKG_CONFIG --libs "glitz"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLITZ_LIBS" >&5 -$as_echo "$GLITZ_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + GLITZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glitz" 2>&1` else - GLITZ_CFLAGS="" - GLITZ_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - GLITZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glitz"` - + GLITZ_PKG_ERRORS=`$PKG_CONFIG --print-errors "glitz" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$GLITZ_PKG_ERRORS" >&5 - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - have_glitz=yes - else - have_glitz=no - fi - + have_glitz=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + have_glitz=no +else + GLITZ_CFLAGS=$pkg_cv_GLITZ_CFLAGS + GLITZ_LIBS=$pkg_cv_GLITZ_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + have_glitz=yes +fi save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $GLITZ_CFLAGS" ac_fn_c_check_header_mongrel "$LINENO" "glitz.h" "ac_cv_header_glitz_h" "$ac_includes_default" -if test "x$ac_cv_header_glitz_h" = x""yes; then : +if test "x$ac_cv_header_glitz_h" = xyes; then : have_glitz_h=yes else have_glitz_h=no @@ -6354,108 +6141,78 @@ fi if test "x$WITH_GLX" = "xyes"; then - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLITZ_GLX" >&5 +$as_echo_n "checking for GLITZ_GLX... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$GLITZ_GLX_CFLAGS"; then + pkg_cv_GLITZ_GLX_CFLAGS="$GLITZ_GLX_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glitz-glx\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glitz-glx") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GLITZ_GLX_CFLAGS=`$PKG_CONFIG --cflags "glitz-glx" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$GLITZ_GLX_LIBS"; then + pkg_cv_GLITZ_GLX_LIBS="$GLITZ_GLX_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glitz-glx\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glitz-glx") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GLITZ_GLX_LIBS=`$PKG_CONFIG --libs "glitz-glx" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glitz-glx" >&5 -$as_echo_n "checking for glitz-glx... " >&6; } - - if $PKG_CONFIG --exists "glitz-glx" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLITZ_GLX_CFLAGS" >&5 -$as_echo_n "checking GLITZ_GLX_CFLAGS... " >&6; } - GLITZ_GLX_CFLAGS=`$PKG_CONFIG --cflags "glitz-glx"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLITZ_GLX_CFLAGS" >&5 -$as_echo "$GLITZ_GLX_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLITZ_GLX_LIBS" >&5 -$as_echo_n "checking GLITZ_GLX_LIBS... " >&6; } - GLITZ_GLX_LIBS=`$PKG_CONFIG --libs "glitz-glx"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLITZ_GLX_LIBS" >&5 -$as_echo "$GLITZ_GLX_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + GLITZ_GLX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glitz-glx" 2>&1` else - GLITZ_GLX_CFLAGS="" - GLITZ_GLX_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - GLITZ_GLX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glitz-glx"` - + GLITZ_GLX_PKG_ERRORS=`$PKG_CONFIG --print-errors "glitz-glx" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$GLITZ_GLX_PKG_ERRORS" >&5 - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - have_glitz_glx=yes - else - have_glitz_glx=no - fi - + have_glitz_glx=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + have_glitz_glx=no +else + GLITZ_GLX_CFLAGS=$pkg_cv_GLITZ_GLX_CFLAGS + GLITZ_GLX_LIBS=$pkg_cv_GLITZ_GLX_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + have_glitz_glx=yes +fi save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $GLITZ_GLX_CFLAGS" ac_fn_c_check_header_mongrel "$LINENO" "glitz-glx.h" "ac_cv_header_glitz_glx_h" "$ac_includes_default" -if test "x$ac_cv_header_glitz_glx_h" = x""yes; then : +if test "x$ac_cv_header_glitz_glx_h" = xyes; then : have_glitz_glx_h=yes else have_glitz_glx_h=no @@ -6475,108 +6232,78 @@ $as_echo "#define HAVE_GLITZ_GLX 1" >>confdefs.h if test "x$WITH_WGL" = "xyes"; then - succeeded=no +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLITZ_WGL" >&5 +$as_echo_n "checking for GLITZ_WGL... " >&6; } - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+set}" = set; then : - $as_echo_n "(cached) " >&6 +if test -n "$GLITZ_WGL_CFLAGS"; then + pkg_cv_GLITZ_WGL_CFLAGS="$GLITZ_WGL_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glitz-wgl\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glitz-wgl") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GLITZ_WGL_CFLAGS=`$PKG_CONFIG --cflags "glitz-wgl" 2>/dev/null` else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac + pkg_failed=yes fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + else + pkg_failed=untried +fi +if test -n "$GLITZ_WGL_LIBS"; then + pkg_cv_GLITZ_WGL_LIBS="$GLITZ_WGL_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glitz-wgl\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glitz-wgl") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GLITZ_WGL_LIBS=`$PKG_CONFIG --libs "glitz-wgl" 2>/dev/null` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no fi - - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "pkg-config script not be found" - ## We don't want the user to see this warning - ## echo "*** The pkg-config script could not be found. Make sure it is" - ## echo "*** in your path, or set the PKG_CONFIG environment variable" - ## echo "*** to the full path to pkg-config." - ## echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glitz-wgl" >&5 -$as_echo_n "checking for glitz-wgl... " >&6; } - - if $PKG_CONFIG --exists "glitz-wgl" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - succeeded=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLITZ_WGL_CFLAGS" >&5 -$as_echo_n "checking GLITZ_WGL_CFLAGS... " >&6; } - GLITZ_WGL_CFLAGS=`$PKG_CONFIG --cflags "glitz-wgl"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLITZ_WGL_CFLAGS" >&5 -$as_echo "$GLITZ_WGL_CFLAGS" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLITZ_WGL_LIBS" >&5 -$as_echo_n "checking GLITZ_WGL_LIBS... " >&6; } - GLITZ_WGL_LIBS=`$PKG_CONFIG --libs "glitz-wgl"` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLITZ_WGL_LIBS" >&5 -$as_echo "$GLITZ_WGL_LIBS" >&6; } + if test $_pkg_short_errors_supported = yes; then + GLITZ_WGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glitz-wgl" 2>&1` else - GLITZ_WGL_CFLAGS="" - GLITZ_WGL_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - GLITZ_WGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glitz-wgl"` - + GLITZ_WGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "glitz-wgl" 2>&1` fi + # Put the nasty error message in config.log where it belongs + echo "$GLITZ_WGL_PKG_ERRORS" >&5 - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - have_glitz_wgl=yes - else - have_glitz_wgl=no - fi - + have_glitz_wgl=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + have_glitz_wgl=no +else + GLITZ_WGL_CFLAGS=$pkg_cv_GLITZ_WGL_CFLAGS + GLITZ_WGL_LIBS=$pkg_cv_GLITZ_WGL_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + have_glitz_wgl=yes +fi save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $GLITZ_WGL_CFLAGS" ac_fn_c_check_header_mongrel "$LINENO" "glitz-wgl.h" "ac_cv_header_glitz_wgl_h" "$ac_includes_default" -if test "x$ac_cv_header_glitz_wgl_h" = x""yes; then : +if test "x$ac_cv_header_glitz_wgl_h" = xyes; then : have_glitz_wgl_h=yes else have_glitz_wgl_h=no @@ -6944,10 +6671,21 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && + if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} @@ -6979,7 +6717,7 @@ LTLIBOBJS=$ac_ltlibobjs -: ${CONFIG_STATUS=./config.status} +: "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" @@ -7080,6 +6818,7 @@ fi IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. +as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -7387,7 +7126,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by $as_me, which was -generated by GNU Autoconf 2.67. Invocation command line was +generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -7449,7 +7188,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status -configured by $0, generated by GNU Autoconf 2.67, +configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. @@ -7573,7 +7312,7 @@ do "back.make") CONFIG_FILES="$CONFIG_FILES back.make" ;; "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done @@ -7595,9 +7334,10 @@ fi # after its creation but before its name has been assigned to `$tmp'. $debug || { - tmp= + tmp= ac_tmp= trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } @@ -7605,12 +7345,13 @@ $debug || { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" + test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. @@ -7632,7 +7373,7 @@ else ac_cs_awk_cr=$ac_cr fi -echo 'BEGIN {' >"$tmp/subs1.awk" && +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF @@ -7660,7 +7401,7 @@ done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -cat >>"\$tmp/subs1.awk" <<\\_ACAWK && +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h @@ -7708,7 +7449,7 @@ t delim rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK -cat >>"\$tmp/subs1.awk" <<_ACAWK && +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" @@ -7740,7 +7481,7 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF @@ -7774,7 +7515,7 @@ fi # test -n "$CONFIG_FILES" # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then -cat >"$tmp/defines.awk" <<\_ACAWK || +cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF @@ -7786,8 +7527,8 @@ _ACEOF # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do - ac_t=`sed -n "/$ac_delim/p" confdefs.h` - if test -z "$ac_t"; then + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 @@ -7888,7 +7629,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -7907,7 +7648,7 @@ do for ac_f do case $ac_f in - -) ac_f="$tmp/stdin";; + -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. @@ -7916,7 +7657,7 @@ do [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" @@ -7942,8 +7683,8 @@ $as_echo "$as_me: creating $ac_file" >&6;} esac case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac @@ -8068,21 +7809,22 @@ s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} - rm -f "$tmp/stdin" + rm -f "$ac_tmp/stdin" case $ac_file in - -) cat "$tmp/out" && rm -f "$tmp/out";; - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; @@ -8093,20 +7835,20 @@ which seems to be undefined. Please make sure it is defined" >&2;} if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" - } >"$tmp/config.h" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" - mv "$tmp/config.h" "$ac_file" \ + mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; diff --git a/configure.ac b/configure.ac index d24455b..19a492d 100644 --- a/configure.ac +++ b/configure.ac @@ -166,6 +166,19 @@ if test $set_x_paths = yes; then ] ,) + have_xshape=no + AC_CHECK_HEADERS(X11/extensions/shape.h, + have_xshape=yes,, + [#include ]) + if test $have_xshape = yes; then + AC_CHECK_LIB(Xext, XShapeCombineMask, + [ + LIBS="-lXext $LIBS" + AC_DEFINE(HAVE_XSHAPE, 1, [Define to enable Xshape support]) + ] + ,) + fi + LIBS="$X_LIBS $LIBS" fi AC_SUBST(X_PRE_LIBS)