2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for cogl 1.10.2.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
569 PACKAGE_TARNAME='cogl'
570 PACKAGE_VERSION='1.10.2'
571 PACKAGE_STRING='cogl 1.10.2'
575 ac_unique_file="cogl/cogl.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
613 ac_subst_vars='am__EXEEXT_FALSE
620 COGL_GL_HEADER_INCLUDES
623 HAVE_INTROSPECTION_FALSE
624 HAVE_INTROSPECTION_TRUE
625 INTROSPECTION_MAKEFILE
628 INTROSPECTION_TYPELIBDIR
630 INTROSPECTION_GENERATE
631 INTROSPECTION_COMPILER
632 INTROSPECTION_SCANNER
634 COGL_PANGO_DEP_CFLAGS
635 COGL_PANGO_PKG_REQUIRES
641 GLIB_COMPILE_RESOURCES
649 GTK_DOC_USE_REBASE_FALSE
650 GTK_DOC_USE_REBASE_TRUE
651 GTK_DOC_USE_LIBTOOL_FALSE
652 GTK_DOC_USE_LIBTOOL_TRUE
653 GTK_DOC_BUILD_PDF_FALSE
654 GTK_DOC_BUILD_PDF_TRUE
655 GTK_DOC_BUILD_HTML_FALSE
656 GTK_DOC_BUILD_HTML_TRUE
674 XGETTEXT_EXTRA_OPTIONS
682 GETTEXT_MACRO_VERSION
715 SUPPORT_EGL_PLATFORM_XLIB_FALSE
716 SUPPORT_EGL_PLATFORM_XLIB_TRUE
717 SUPPORT_EGL_PLATFORM_ANDROID_FALSE
718 SUPPORT_EGL_PLATFORM_ANDROID_TRUE
719 SUPPORT_WAYLAND_EGL_SERVER_FALSE
720 SUPPORT_WAYLAND_EGL_SERVER_TRUE
721 SUPPORT_EGL_PLATFORM_KMS_FALSE
722 SUPPORT_EGL_PLATFORM_KMS_TRUE
723 SUPPORT_EGL_PLATFORM_WAYLAND_FALSE
724 SUPPORT_EGL_PLATFORM_WAYLAND_TRUE
725 SUPPORT_EGL_PLATFORM_GDL_FALSE
726 SUPPORT_EGL_PLATFORM_GDL_TRUE
727 SUPPORT_EGL_PLATFORM_POWERVR_NULL_FALSE
728 SUPPORT_EGL_PLATFORM_POWERVR_NULL_TRUE
739 COGL_DRIVER_GLES_SUPPORTED_FALSE
740 COGL_DRIVER_GLES_SUPPORTED_TRUE
741 COGL_DRIVER_GL_SUPPORTED_FALSE
742 COGL_DRIVER_GL_SUPPORTED_TRUE
746 INSTALL_EXAMPLES_FALSE
747 INSTALL_EXAMPLES_TRUE
748 BUILD_COGL_PANGO_FALSE
749 BUILD_COGL_PANGO_TRUE
811 INSTALL_STRIP_PROGRAM
830 XCOMPOSITE_REQ_VERSION
831 PANGOCAIRO_REQ_VERSION
833 GDK_PIXBUF_REQ_VERSION
862 program_transform_name
875 enable_option_checking
877 enable_dependency_tracking
881 enable_maintainer_flags
886 enable_examples_install
896 enable_null_egl_platform
897 enable_gdl_egl_platform
898 enable_wayland_egl_platform
899 enable_kms_egl_platform
900 enable_wayland_egl_server
901 enable_android_egl_platform
902 enable_xlib_egl_platform
923 ac_precious_vars='build_alias
943 COGL_PANGO_DEP_CFLAGS
948 # Initialize some variables set by options.
950 ac_init_version=false
951 ac_unrecognized_opts=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name=s,x,x,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1008 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1255 -site=* | --site=* | --sit=*)
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error $? "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1311 eval with_$ac_useropt=no ;;
1314 # Obsolete; use --with-x.
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information"
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error $? "missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1364 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1382 # Be sure to have absolute directory names.
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used" >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error $? "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error $? "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1488 \`configure' configures cogl 1.10.2 to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking ...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/cogl]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1551 --x-includes=DIR X include files are in DIR
1552 --x-libraries=DIR X library files are in DIR
1555 --build=BUILD configure for building on BUILD [guessed]
1556 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560 if test -n "$ac_init_help"; then
1561 case $ac_init_help in
1562 short | recursive ) echo "Configuration of cogl 1.10.2:";;
1567 --disable-option-checking ignore unrecognized --enable/--with options
1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1570 --enable-silent-rules less verbose build output (undo: `make V=1')
1571 --disable-silent-rules verbose build output (undo: `make V=0')
1572 --disable-dependency-tracking speeds up one-time build
1573 --enable-dependency-tracking do not reject slow dependency extractors
1574 --enable-debug=[no/yes] Control Cogl debugging level [default=no]
1575 --enable-cairo=[no/yes] Control Cairo usage in Cogl debugging code
1577 --enable-profile=[no/yes]
1578 Turn on uprof profiling support. yes; All UProf
1579 profiling probe points are compiled in and may be
1580 runtime enabled. no; No profiling support will built
1581 into cogl. [default=no]
1582 --enable-maintainer-flags=[no/yes/error]
1583 Use strict compiler flags [default=no]
1584 --enable-deprecated=[no/yes]
1585 Whether deprecated symbols should be disabled when
1586 compiling Cogl [default=yes]
1587 --enable-gdk-pixbuf=[no/yes]
1588 Enable image loading via gdk-pixbuf [default=yes]
1589 --enable-quartz-image=[no/yes]
1590 Enable image loading via quartz [default=no]
1591 --enable-cogl-pango=[no/yes]
1592 Enable pango support [default=yes]
1593 --enable-examples-install=[no/yes]
1594 Enable installation of examples [default=no]
1595 --enable-glib=[no/yes] Enable glib support [default=yes]
1596 --enable-gles1=[no/yes] Enable support for OpenGL-ES 1.1 [default=no]
1597 --enable-gles2=[no/yes] Enable support for OpenGL-ES 2.0 [default=no]
1598 --enable-gl=[no/yes] Enable support for OpenGL [default=yes]
1599 --enable-glx=[no/yes] Enable support GLX [default=auto]
1600 --enable-wgl=[no/yes] Enable support for WGL [default=auto]
1601 --enable-null-egl-platform=[no/yes]
1602 Enable support for the NULL egl platform
1604 --enable-gdl-egl-platform=[no/yes]
1605 Enable support for the GDL egl platform [default=no]
1606 --enable-wayland-egl-platform=[no/yes]
1607 Enable support for the Wayland egl platform
1609 --enable-kms-egl-platform=[no/yes]
1610 Enable support for the KMS egl platform [default=no]
1611 --enable-wayland-egl-server=[no/yes]
1612 Enable server side wayland support [default=no]
1613 --enable-android-egl-platform=[no/yes]
1614 Enable support for the Android egl platform
1616 --enable-xlib-egl-platform=[no/yes]
1617 Enable support for the Xlib egl platform
1619 --enable-sdl=[no/yes] Enable support SDL [default=no]
1620 --enable-static[=PKGS] build static libraries [default=no]
1621 --enable-shared[=PKGS] build shared libraries [default=yes]
1622 --enable-fast-install[=PKGS]
1623 optimize for fast installation [default=yes]
1624 --disable-libtool-lock avoid locking (might break parallel builds)
1625 --disable-nls do not use Native Language Support
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1628 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1629 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1630 --disable-glibtest do not try to compile and run a test GLIB program
1631 --enable-introspection=[no/auto/yes]
1632 Enable introspection for this build
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-gl-libname override the name of the GL library to dlopen
1638 --with-gles1-libname override the name of the GLESv1 library to dlopen
1639 --with-gles2-libname override the name of the GLESv2 library to dlopen
1640 --with-pic try to use only PIC/non-PIC objects [default=use
1642 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1643 --with-sysroot=DIR Search for dependent libraries within DIR
1644 (or the compiler's sysroot if not specified).
1645 --with-gnu-ld assume the C compiler uses GNU ld default=no
1646 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1647 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1648 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1649 --without-libintl-prefix don't search for libintl in includedir and libdir
1650 --with-html-dir=PATH path to installed docs
1651 --with-x use the X Window System
1653 Some influential environment variables:
1654 CC C compiler command
1655 CFLAGS C compiler flags
1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1657 nonstandard directory <lib dir>
1658 LIBS libraries to pass to the linker, e.g. -l<library>
1659 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1660 you have headers in a nonstandard directory <include dir>
1662 PKG_CONFIG path to pkg-config utility
1664 directories to add to pkg-config's search path
1666 path overriding pkg-config's built-in search path
1668 C compiler flags for DUMMY, overriding pkg-config
1669 DUMMY_LIBS linker flags for DUMMY, overriding pkg-config
1671 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1673 linker flags for GTKDOC_DEPS, overriding pkg-config
1675 C compiler flags for COGL_DEP, overriding pkg-config
1677 linker flags for COGL_DEP, overriding pkg-config
1679 C compiler flags for COGL_DEP_GL, overriding pkg-config
1681 linker flags for COGL_DEP_GL, overriding pkg-config
1682 COGL_PANGO_DEP_CFLAGS
1683 C compiler flags for COGL_PANGO_DEP, overriding pkg-config
1685 linker flags for COGL_PANGO_DEP, overriding pkg-config
1686 XMKMF Path to xmkmf, Makefile generator for X Window System
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1691 Report bugs to the package provider.
1696 if test "$ac_init_help" = "recursive"; then
1697 # If there are subdirs, report their specific --help.
1698 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699 test -d "$ac_dir" ||
1700 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708 # A ".." for each directory in $ac_dir_suffix.
1709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710 case $ac_top_builddir_sub in
1711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1721 .) # We are building in place.
1723 ac_top_srcdir=$ac_top_builddir_sub
1724 ac_abs_top_srcdir=$ac_pwd ;;
1725 [\\/]* | ?:[\\/]* ) # Absolute name.
1726 ac_srcdir=$srcdir$ac_dir_suffix;
1727 ac_top_srcdir=$srcdir
1728 ac_abs_top_srcdir=$srcdir ;;
1730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731 ac_top_srcdir=$ac_top_build_prefix$srcdir
1732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736 cd "$ac_dir" || { ac_status=$?; continue; }
1737 # Check for guested configure.
1738 if test -f "$ac_srcdir/configure.gnu"; then
1740 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741 elif test -f "$ac_srcdir/configure"; then
1743 $SHELL "$ac_srcdir/configure" --help=recursive
1745 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 cd "$ac_pwd" || { ac_status=$?; break; }
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1754 cogl configure 1.10.2
1755 generated by GNU Autoconf 2.68
1757 Copyright (C) 2010 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1764 ## ------------------------ ##
1765 ## Autoconf initialization. ##
1766 ## ------------------------ ##
1768 # ac_fn_c_try_compile LINENO
1769 # --------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_compile ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext
1775 if { { ac_try="$ac_compile"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_compile") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest.$ac_objext; then :
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_c_try_compile
1806 # ac_fn_c_try_cpp LINENO
1807 # ----------------------
1808 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_cpp conftest.$ac_ext"
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } > conftest.i && {
1828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1843 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846 # the include files in INCLUDES and setting the cache variable VAR
1848 ac_fn_c_check_header_mongrel ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if eval \${$3+:} false; then :
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval \${$3+:} false; then :
1855 $as_echo_n "(cached) " >&6
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1861 # Is the header compilable?
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863 $as_echo_n "checking $2 usability... " >&6; }
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870 ac_header_compiler=yes
1872 ac_header_compiler=no
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876 $as_echo "$ac_header_compiler" >&6; }
1878 # Is the header present?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880 $as_echo_n "checking $2 presence... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1885 if ac_fn_c_try_cpp "$LINENO"; then :
1886 ac_header_preproc=yes
1888 ac_header_preproc=no
1890 rm -f conftest.err conftest.i conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892 $as_echo "$ac_header_preproc" >&6; }
1894 # So? What about this header?
1895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1906 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1910 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1920 eval "$3=\$ac_header_compiler"
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 } # ac_fn_c_check_header_mongrel
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933 # that executables *can* be run.
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_link"
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>&5
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948 { { case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_try") 2>&5
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; }; }; then :
1960 $as_echo "$as_me: program exited with status $ac_status" >&5
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=$ac_status
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1972 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1973 # -------------------------------------------------------
1974 # Tests whether HEADER exists and can be compiled using the include files in
1975 # INCLUDES, setting the cache variable VAR accordingly.
1976 ac_fn_c_check_header_compile ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if eval \${$3+:} false; then :
1982 $as_echo_n "(cached) " >&6
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1989 if ac_fn_c_try_compile "$LINENO"; then :
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 } # ac_fn_c_check_header_compile
2003 # ac_fn_c_try_link LINENO
2004 # -----------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded.
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 rm -f conftest.$ac_objext conftest$ac_exeext
2010 if { { ac_try="$ac_link"
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_link") 2>conftest.err
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } && {
2026 test -z "$ac_c_werror_flag" ||
2027 test ! -s conftest.err
2028 } && test -s conftest$ac_exeext && {
2029 test "$cross_compiling" = yes ||
2030 $as_test_x conftest$ac_exeext
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2039 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041 # interfere with the next link command; also delete a directory that is
2042 # left behind by Apple's compiler. We do this before executing the actions.
2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 as_fn_set_status $ac_retval
2047 } # ac_fn_c_try_link
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2064 #define $2 innocuous_$2
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below.
2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069 <limits.h> exists even on freestanding compilers. */
2072 # include <limits.h>
2074 # include <assert.h>
2079 /* Override any GCC internal prototype to avoid an error.
2080 Use char because int might match the return type of a GCC
2081 builtin and then its argument prototype would still apply. */
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined __stub_$2 || defined __stub___$2
2101 if ac_fn_c_try_link "$LINENO"; then :
2106 rm -f core conftest.err conftest.$ac_objext \
2107 conftest$ac_exeext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_func
2116 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2117 # --------------------------------------------
2118 # Tries to find the compile-time value of EXPR in a program that includes
2119 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2121 ac_fn_c_compute_int ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 if test "$cross_compiling" = yes; then
2125 # Depending upon the size, compute the lo and hi bounds.
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2132 static int test_array [1 - 2 * !(($2) >= 0)];
2139 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_hi=$ac_mid; break
2158 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2159 if test $ac_lo -le $ac_mid; then
2163 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) < 0)];
2181 if ac_fn_c_try_compile "$LINENO"; then :
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_lo=$ac_mid; break
2200 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2201 if test $ac_mid -le $ac_hi; then
2205 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 # Binary search between lo and hi bounds.
2216 while test "x$ac_lo" != "x$ac_hi"; do
2217 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2231 if ac_fn_c_try_compile "$LINENO"; then :
2234 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2246 static long int longval () { return $2; }
2247 static unsigned long int ulongval () { return $2; }
2254 FILE *f = fopen ("conftest.val", "w");
2259 long int i = longval ();
2262 fprintf (f, "%ld", i);
2266 unsigned long int i = ulongval ();
2269 fprintf (f, "%lu", i);
2271 /* Do not output a trailing newline, as this causes \r\n confusion
2272 on some platforms. */
2273 return ferror (f) || fclose (f) != 0;
2279 if ac_fn_c_try_run "$LINENO"; then :
2280 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2285 conftest.$ac_objext conftest.beam conftest.$ac_ext
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 as_fn_set_status $ac_retval
2292 } # ac_fn_c_compute_int
2293 cat >config.log <<_ACEOF
2294 This file contains any messages produced by compilers while
2295 running configure, to aid debugging if configure makes a mistake.
2297 It was created by cogl $as_me 1.10.2, which was
2298 generated by GNU Autoconf 2.68. Invocation command line was
2310 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2311 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2312 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2313 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2314 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2316 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2317 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2319 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2320 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2321 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2322 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2323 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2324 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2325 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 $as_echo "PATH: $as_dir"
2350 # Keep a trace of the command line.
2351 # Strip out --no-create and --no-recursion so they do not pile up.
2352 # Strip out --silent because we don't want to record it for future runs.
2353 # Also quote any args containing shell meta-characters.
2354 # Make two passes to allow for proper duplicate-argument suppression.
2358 ac_must_keep_next=false
2364 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2366 | -silent | --silent | --silen | --sile | --sil)
2369 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2372 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2374 as_fn_append ac_configure_args1 " '$ac_arg'"
2375 if test $ac_must_keep_next = true; then
2376 ac_must_keep_next=false # Got value, back to normal.
2379 *=* | --config-cache | -C | -disable-* | --disable-* \
2380 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2381 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2382 | -with-* | --with-* | -without-* | --without-* | --x)
2383 case "$ac_configure_args0 " in
2384 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2387 -* ) ac_must_keep_next=true ;;
2390 as_fn_append ac_configure_args " '$ac_arg'"
2395 { ac_configure_args0=; unset ac_configure_args0;}
2396 { ac_configure_args1=; unset ac_configure_args1;}
2398 # When interrupted or exit'd, cleanup temporary files, and complete
2399 # config.log. We remove comments because anyway the quotes in there
2400 # would cause problems or look ugly.
2401 # WARNING: Use '\'' to represent an apostrophe within the trap.
2402 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2403 trap 'exit_status=$?
2404 # Save into config.log some information that might help in debugging.
2408 $as_echo "## ---------------- ##
2409 ## Cache variables. ##
2410 ## ---------------- ##"
2412 # The following way of writing the cache mishandles newlines in values,
2414 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2415 eval ac_val=\$$ac_var
2419 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2420 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2423 _ | IFS | as_nl) ;; #(
2424 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425 *) { eval $ac_var=; unset $ac_var;} ;;
2430 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2431 *${as_nl}ac_space=\ *)
2433 "s/'\''/'\''\\\\'\'''\''/g;
2434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2444 $as_echo "## ----------------- ##
2445 ## Output variables. ##
2446 ## ----------------- ##"
2448 for ac_var in $ac_subst_vars
2450 eval ac_val=\$$ac_var
2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454 $as_echo "$ac_var='\''$ac_val'\''"
2458 if test -n "$ac_subst_files"; then
2459 $as_echo "## ------------------- ##
2460 ## File substitutions. ##
2461 ## ------------------- ##"
2463 for ac_var in $ac_subst_files
2465 eval ac_val=\$$ac_var
2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469 $as_echo "$ac_var='\''$ac_val'\''"
2474 if test -s confdefs.h; then
2475 $as_echo "## ----------- ##
2482 test "$ac_signal" != 0 &&
2483 $as_echo "$as_me: caught signal $ac_signal"
2484 $as_echo "$as_me: exit $exit_status"
2486 rm -f core *.core core.conftest.* &&
2487 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2490 for ac_signal in 1 2 13 15; do
2491 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2496 rm -f -r conftest* confdefs.h
2498 $as_echo "/* confdefs.h */" > confdefs.h
2500 # Predefined preprocessor variables.
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_NAME "$PACKAGE_NAME"
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_STRING "$PACKAGE_STRING"
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_URL "$PACKAGE_URL"
2527 # Let the site file select an alternate cache file if it wants to.
2528 # Prefer an explicitly selected file to automatically selected ones.
2531 if test -n "$CONFIG_SITE"; then
2532 # We do not want a PATH search for config.site.
2533 case $CONFIG_SITE in #((
2534 -*) ac_site_file1=./$CONFIG_SITE;;
2535 */*) ac_site_file1=$CONFIG_SITE;;
2536 *) ac_site_file1=./$CONFIG_SITE;;
2538 elif test "x$prefix" != xNONE; then
2539 ac_site_file1=$prefix/share/config.site
2540 ac_site_file2=$prefix/etc/config.site
2542 ac_site_file1=$ac_default_prefix/share/config.site
2543 ac_site_file2=$ac_default_prefix/etc/config.site
2545 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2547 test "x$ac_site_file" = xNONE && continue
2548 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2550 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2551 sed 's/^/| /' "$ac_site_file" >&5
2553 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 as_fn_error $? "failed to load site script $ac_site_file
2556 See \`config.log' for more details" "$LINENO" 5; }
2560 if test -r "$cache_file"; then
2561 # Some versions of bash will fail to source /dev/null (special files
2562 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2563 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565 $as_echo "$as_me: loading cache $cache_file" >&6;}
2567 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2568 *) . "./$cache_file";;
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573 $as_echo "$as_me: creating cache $cache_file" >&6;}
2577 gt_needs="$gt_needs "
2578 # Check that the precious variables saved in the cache have kept the same
2580 ac_cache_corrupted=false
2581 for ac_var in $ac_precious_vars; do
2582 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2583 eval ac_new_set=\$ac_env_${ac_var}_set
2584 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2585 eval ac_new_val=\$ac_env_${ac_var}_value
2586 case $ac_old_set,$ac_new_set in
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2589 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2590 ac_cache_corrupted=: ;;
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2593 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2594 ac_cache_corrupted=: ;;
2597 if test "x$ac_old_val" != "x$ac_new_val"; then
2598 # differences in whitespace do not lead to failure.
2599 ac_old_val_w=`echo x $ac_old_val`
2600 ac_new_val_w=`echo x $ac_new_val`
2601 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2603 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2604 ac_cache_corrupted=:
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2607 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2608 eval $ac_var=\$ac_old_val
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2611 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2613 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2616 # Pass precious variables to config.status.
2617 if test "$ac_new_set" = set; then
2619 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2620 *) ac_arg=$ac_var=$ac_new_val ;;
2622 case " $ac_configure_args " in
2623 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2624 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2628 if $ac_cache_corrupted; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2632 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2633 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2635 ## -------------------- ##
2636 ## Main body of script. ##
2637 ## -------------------- ##
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648 for ac_dir in build "$srcdir"/build; do
2649 if test -f "$ac_dir/install-sh"; then
2651 ac_install_sh="$ac_aux_dir/install-sh -c"
2653 elif test -f "$ac_dir/install.sh"; then
2655 ac_install_sh="$ac_aux_dir/install.sh -c"
2657 elif test -f "$ac_dir/shtool"; then
2659 ac_install_sh="$ac_aux_dir/shtool install -c"
2663 if test -z "$ac_aux_dir"; then
2664 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2667 # These three variables are undocumented and unsupported,
2668 # and are intended to be withdrawn in a future Autoconf release.
2669 # They can cause serious problems if a builder's source tree is in a directory
2670 # whose full name contains unusual characters.
2671 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2672 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2673 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2677 ac_config_headers="$ac_config_headers config.h"
2690 GLIB_REQ_VERSION=2.28.0
2692 GDK_PIXBUF_REQ_VERSION=2.0
2694 CAIRO_REQ_VERSION=1.10
2696 PANGOCAIRO_REQ_VERSION=1.20
2698 XCOMPOSITE_REQ_VERSION=0.4
2700 XFIXES_REQ_VERSION=3
2702 GTK_DOC_REQ_VERSION=1.13
2704 GI_REQ_VERSION=0.9.5
2706 UPROF_REQ_VERSION=0.3
2709 # Save this value here, since automake will set cflags later and we
2710 # want to know if the user specified custom cflags or not.
2711 cflags_set=${CFLAGS+set}
2713 am__api_version='1.11'
2715 # Find a good install program. We prefer a C program (faster),
2716 # so one script is as good as another. But avoid the broken or
2717 # incompatible versions:
2718 # SysV /etc/install, /usr/sbin/install
2719 # SunOS /usr/etc/install
2720 # IRIX /sbin/install
2722 # AmigaOS /C/install, which installs bootblocks on floppy discs
2723 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2724 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2725 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2726 # OS/2's system install, which has a completely different semantic
2727 # ./install, which can be erroneously created by make from ./install.sh.
2728 # Reject install programs that cannot install multiple files.
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2730 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2731 if test -z "$INSTALL"; then
2732 if ${ac_cv_path_install+:} false; then :
2733 $as_echo_n "(cached) " >&6
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 # Account for people who put trailing slashes in PATH elements.
2741 case $as_dir/ in #((
2742 ./ | .// | /[cC]/* | \
2743 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2744 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2747 # OSF1 and SCO ODT 3.0 have their own names for install.
2748 # Don't use installbsd from OSF since it installs stuff as root
2750 for ac_prog in ginstall scoinst install; do
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2753 if test $ac_prog = install &&
2754 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2755 # AIX install. It has an incompatible calling convention.
2757 elif test $ac_prog = install &&
2758 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2759 # program-specific install script used by HP pwplus--don't use.
2762 rm -rf conftest.one conftest.two conftest.dir
2763 echo one > conftest.one
2764 echo two > conftest.two
2766 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2767 test -s conftest.one && test -s conftest.two &&
2768 test -s conftest.dir/conftest.one &&
2769 test -s conftest.dir/conftest.two
2771 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2784 rm -rf conftest.one conftest.two conftest.dir
2787 if test "${ac_cv_path_install+set}" = set; then
2788 INSTALL=$ac_cv_path_install
2790 # As a last resort, use the slow shell script. Don't cache a
2791 # value for INSTALL within a source directory, because that will
2792 # break other packages using the cache if that directory is
2793 # removed, or if the value is a relative name.
2794 INSTALL=$ac_install_sh
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2798 $as_echo "$INSTALL" >&6; }
2800 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2801 # It thinks the first close brace ends the variable substitution.
2802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2809 $as_echo_n "checking whether build environment is sane... " >&6; }
2812 echo timestamp > conftest.file
2813 # Reject unsafe characters in $srcdir or the absolute working directory
2814 # name. Accept space and tab only in the latter.
2818 *[\\\"\#\$\&\'\`$am_lf]*)
2819 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2822 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2823 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2826 # Do `set' in a subshell so we don't clobber the current shell's
2827 # arguments. Must try -L first in case configure is actually a
2828 # symlink; some systems play weird games with the mod time of symlinks
2829 # (eg FreeBSD returns the mod time of the symlink's containing
2832 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2833 if test "$*" = "X"; then
2835 set X `ls -t "$srcdir/configure" conftest.file`
2838 if test "$*" != "X $srcdir/configure conftest.file" \
2839 && test "$*" != "X conftest.file $srcdir/configure"; then
2841 # If neither matched, then we have a broken ls. This can happen
2842 # if, for instance, CONFIG_SHELL is bash and it inherits a
2843 # broken ls alias from the environment. This has actually
2844 # happened. Such a system could not be considered "sane".
2845 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2846 alias in your environment" "$LINENO" 5
2849 test "$2" = conftest.file
2855 as_fn_error $? "newly created file is older than distributed files!
2856 Check your system clock" "$LINENO" 5
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2859 $as_echo "yes" >&6; }
2860 test "$program_prefix" != NONE &&
2861 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2862 # Use a double $ so make ignores it.
2863 test "$program_suffix" != NONE &&
2864 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2865 # Double any \ or $.
2866 # By default was `s,x,x', remove it if useless.
2867 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2868 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2870 # expand $ac_aux_dir to an absolute path
2871 am_aux_dir=`cd $ac_aux_dir && pwd`
2873 if test x"${MISSING+set}" != xset; then
2876 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2878 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2881 # Use eval to expand $SHELL
2882 if eval "$MISSING --run true"; then
2883 am_missing_run="$MISSING --run "
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2887 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2890 if test x"${install_sh}" != xset; then
2893 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2895 install_sh="\${SHELL} $am_aux_dir/install-sh"
2899 # Installed binaries are usually stripped using `strip' when the user
2900 # run `make install-strip'. However `strip' might not be the right
2901 # tool to use in cross-compilation environments, therefore Automake
2902 # will honor the `STRIP' environment variable to overrule this program.
2903 if test "$cross_compiling" != no; then
2904 if test -n "$ac_tool_prefix"; then
2905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2906 set dummy ${ac_tool_prefix}strip; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_STRIP+:} false; then :
2910 $as_echo_n "(cached) " >&6
2912 if test -n "$STRIP"; then
2913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 STRIP=$ac_cv_prog_STRIP
2933 if test -n "$STRIP"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2935 $as_echo "$STRIP" >&6; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2943 if test -z "$ac_cv_prog_STRIP"; then
2945 # Extract the first word of "strip", so it can be a program name with args.
2946 set dummy strip; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$ac_ct_STRIP"; then
2953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_ac_ct_STRIP="strip"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2973 if test -n "$ac_ct_STRIP"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2975 $as_echo "$ac_ct_STRIP" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2981 if test "x$ac_ct_STRIP" = x; then
2984 case $cross_compiling:$ac_tool_warned in
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988 ac_tool_warned=yes ;;
2993 STRIP="$ac_cv_prog_STRIP"
2997 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3000 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3001 if test -z "$MKDIR_P"; then
3002 if ${ac_cv_path_mkdir+:} false; then :
3003 $as_echo_n "(cached) " >&6
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3009 test -z "$as_dir" && as_dir=.
3010 for ac_prog in mkdir gmkdir; do
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3013 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3014 'mkdir (GNU coreutils) '* | \
3015 'mkdir (coreutils) '* | \
3016 'mkdir (fileutils) '4.1*)
3017 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3027 test -d ./--version && rmdir ./--version
3028 if test "${ac_cv_path_mkdir+set}" = set; then
3029 MKDIR_P="$ac_cv_path_mkdir -p"
3031 # As a last resort, use the slow shell script. Don't cache a
3032 # value for MKDIR_P within a source directory, because that will
3033 # break other packages using the cache if that directory is
3034 # removed, or if the value is a relative name.
3035 MKDIR_P="$ac_install_sh -d"
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3039 $as_echo "$MKDIR_P" >&6; }
3043 [\\/$]* | ?:[\\/]*) ;;
3044 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3047 for ac_prog in gawk mawk nawk awk
3049 # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_AWK+:} false; then :
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$AWK"; then
3057 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_AWK="$ac_prog"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 if test -n "$AWK"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3079 $as_echo "$AWK" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3086 test -n "$AWK" && break
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3090 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3092 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3093 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 cat >conftest.make <<\_ACEOF
3099 @echo '@@@%%%=$(MAKE)=@@@%%%'
3101 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3102 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3104 eval ac_cv_prog_make_${ac_make}_set=yes;;
3106 eval ac_cv_prog_make_${ac_make}_set=no;;
3110 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112 $as_echo "yes" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 SET_MAKE="MAKE=${MAKE-make}"
3120 rm -rf .tst 2>/dev/null
3121 mkdir .tst 2>/dev/null
3122 if test -d .tst; then
3127 rmdir .tst 2>/dev/null
3129 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3131 # is not polluted with repeated "-I."
3132 am__isrc=' -I$(srcdir)'
3133 # test to see if srcdir already configured
3134 if test -f $srcdir/config.status; then
3135 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3139 # test whether we have cygpath
3140 if test -z "$CYGPATH_W"; then
3141 if (cygpath --version) >/dev/null 2>/dev/null; then
3142 CYGPATH_W='cygpath -w'
3149 # Define the identity of the package.
3154 # Some tools Automake needs.
3156 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3159 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3162 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3165 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3168 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3170 # We need awk for the "check" target. The system "awk" is bad on
3172 # Always define AMTAR for backward compatibility.
3174 AMTAR=${AMTAR-"${am_missing_run}tar"}
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3178 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3179 # Loop over all known methods to create a tar archive until one works.
3180 _am_tools='gnutar plaintar pax cpio none'
3181 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3182 # Do not fold the above two line into one, because Tru64 sh and
3183 # Solaris sh will not grok spaces in the rhs of `-'.
3184 for _am_tool in $_am_tools
3188 for _am_tar in tar gnutar gtar;
3190 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3191 ($_am_tar --version) >&5 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } && break
3196 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3197 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3198 am__untar="$_am_tar -xf -"
3201 # Must skip GNU tar: if it does not support --format= it doesn't create
3202 # ustar tarball either.
3203 (tar --version) >/dev/null 2>&1 && continue
3204 am__tar='tar chf - "$$tardir"'
3205 am__tar_='tar chf - "$tardir"'
3206 am__untar='tar xf -'
3209 am__tar='pax -L -x ustar -w "$$tardir"'
3210 am__tar_='pax -L -x ustar -w "$tardir"'
3214 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3215 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3216 am__untar='cpio -i -H ustar -d'
3225 # If the value was cached, stop now. We just wanted to have am__tar
3226 # and am__untar set.
3227 test -n "${am_cv_prog_tar_ustar}" && break
3229 # tar/untar a dummy directory, and stop if the command works
3232 echo GrepMe > conftest.dir/file
3233 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3234 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3239 if test -s conftest.tar; then
3240 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3241 ($am__untar <conftest.tar) >&5 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }
3245 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3250 if ${am_cv_prog_tar_ustar+:} false; then :
3251 $as_echo_n "(cached) " >&6
3253 am_cv_prog_tar_ustar=$_am_tool
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3257 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3263 # Check whether --enable-silent-rules was given.
3264 if test "${enable_silent_rules+set}" = set; then :
3265 enableval=$enable_silent_rules;
3268 case $enable_silent_rules in
3269 yes) AM_DEFAULT_VERBOSITY=0;;
3270 no) AM_DEFAULT_VERBOSITY=1;;
3271 *) AM_DEFAULT_VERBOSITY=0;;
3278 COGL_MAJOR_VERSION=2
3280 COGL_MINOR_VERSION=0
3282 COGL_MICRO_VERSION=0
3286 COGL_API_VERSION=2.0
3288 COGL_API_VERSION_AM=$COGL_MAJOR_VERSION\_0
3291 COGL_1_MINOR_VERSION=10
3293 COGL_1_MICRO_VERSION=2
3295 COGL_1_VERSION=1.10.2
3305 COGL_LT_RELEASE=2.0.0
3309 COGL_RELEASE_STATUS=release
3313 # Make sure we can run config.sub.
3314 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3315 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3318 $as_echo_n "checking build system type... " >&6; }
3319 if ${ac_cv_build+:} false; then :
3320 $as_echo_n "(cached) " >&6
3322 ac_build_alias=$build_alias
3323 test "x$ac_build_alias" = x &&
3324 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3325 test "x$ac_build_alias" = x &&
3326 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3327 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3328 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3332 $as_echo "$ac_cv_build" >&6; }
3333 case $ac_cv_build in
3335 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3338 ac_save_IFS=$IFS; IFS='-'
3344 # Remember, the first character of IFS is used to create $*,
3345 # except with old shells:
3348 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3352 $as_echo_n "checking host system type... " >&6; }
3353 if ${ac_cv_host+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 if test "x$host_alias" = x; then
3357 ac_cv_host=$ac_cv_build
3359 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3360 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3365 $as_echo "$ac_cv_host" >&6; }
3368 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3371 ac_save_IFS=$IFS; IFS='-'
3377 # Remember, the first character of IFS is used to create $*,
3378 # except with old shells:
3381 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
3385 $as_echo_n "checking if building for some Win32 platform... " >&6; }
3387 *-*-mingw*|*-*-cygwin*) :
3389 COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -no-undefined"
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
3397 $as_echo "$platform_win32" >&6; }
3398 if test "$platform_win32" = "yes"; then
3407 DEPDIR="${am__leading_dot}deps"
3409 ac_config_commands="$ac_config_commands depfiles"
3412 am_make=${MAKE-make}
3413 cat > confinc << 'END'
3415 @echo this is the am__doit target
3418 # If we don't find an include directive, just comment out the code.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3420 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3424 # First try GNU make style include.
3425 echo "include confinc" > confmf
3426 # Ignore all kinds of additional output from `make'.
3427 case `$am_make -s -f confmf 2> /dev/null` in #(
3428 *the\ am__doit\ target*)
3434 # Now try BSD make style include.
3435 if test "$am__include" = "#"; then
3436 echo '.include "confinc"' > confmf
3437 case `$am_make -s -f confmf 2> /dev/null` in #(
3438 *the\ am__doit\ target*)
3439 am__include=.include
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3448 $as_echo "$_am_result" >&6; }
3449 rm -f confinc confmf
3451 # Check whether --enable-dependency-tracking was given.
3452 if test "${enable_dependency_tracking+set}" = set; then :
3453 enableval=$enable_dependency_tracking;
3456 if test "x$enable_dependency_tracking" != xno; then
3457 am_depcomp="$ac_aux_dir/depcomp"
3460 if test "x$enable_dependency_tracking" != xno; then
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 if test -n "$ac_tool_prefix"; then
3475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if ${ac_cv_prog_CC+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 if test -n "$CC"; then
3483 ac_cv_prog_CC="$CC" # Let the user override the test.
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 if test -n "$CC"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 $as_echo "$CC" >&6; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3513 if test -z "$ac_cv_prog_CC"; then
3515 # Extract the first word of "gcc", so it can be a program name with args.
3516 set dummy gcc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 if test -n "$ac_ct_CC"; then
3523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_ac_ct_CC="gcc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3543 if test -n "$ac_ct_CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3545 $as_echo "$ac_ct_CC" >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3551 if test "x$ac_ct_CC" = x; then
3554 case $cross_compiling:$ac_tool_warned in
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3558 ac_tool_warned=yes ;;
3566 if test -z "$CC"; then
3567 if test -n "$ac_tool_prefix"; then
3568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3569 set dummy ${ac_tool_prefix}cc; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_CC+:} false; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -n "$CC"; then
3576 ac_cv_prog_CC="$CC" # Let the user override the test.
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585 ac_cv_prog_CC="${ac_tool_prefix}cc"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 if test -n "$CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598 $as_echo "$CC" >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3607 if test -z "$CC"; then
3608 # Extract the first word of "cc", so it can be a program name with args.
3609 set dummy cc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_CC+:} false; then :
3613 $as_echo_n "(cached) " >&6
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3627 ac_prog_rejected=yes
3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 if test $ac_prog_rejected = yes; then
3639 # We found a bogon in the path, so make sure we never use it.
3640 set dummy $ac_cv_prog_CC
3642 if test $# != 0; then
3643 # We chose a different compiler from the bogus one.
3644 # However, it has the same basename, so the bogon will be chosen
3645 # first if we set CC to just the basename; use the full file name.
3647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3653 if test -n "$CC"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3655 $as_echo "$CC" >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3663 if test -z "$CC"; then
3664 if test -n "$ac_tool_prefix"; then
3665 for ac_prog in cl.exe
3667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_CC+:} false; then :
3672 $as_echo_n "(cached) " >&6
3674 if test -n "$CC"; then
3675 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 if test -n "$CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 $as_echo "$CC" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3704 test -n "$CC" && break
3707 if test -z "$CC"; then
3709 for ac_prog in cl.exe
3711 # Extract the first word of "$ac_prog", so it can be a program name with args.
3712 set dummy $ac_prog; ac_word=$2
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 $as_echo_n "checking for $ac_word... " >&6; }
3715 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3716 $as_echo_n "(cached) " >&6
3718 if test -n "$ac_ct_CC"; then
3719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728 ac_cv_prog_ac_ct_CC="$ac_prog"
3729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3739 if test -n "$ac_ct_CC"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3741 $as_echo "$ac_ct_CC" >&6; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3748 test -n "$ac_ct_CC" && break
3751 if test "x$ac_ct_CC" = x; then
3754 case $cross_compiling:$ac_tool_warned in
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3758 ac_tool_warned=yes ;;
3767 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 as_fn_error $? "no acceptable C compiler found in \$PATH
3770 See \`config.log' for more details" "$LINENO" 5; }
3772 # Provide some information about the compiler.
3773 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3776 for ac_option in --version -v -V -qversion; do
3777 { { ac_try="$ac_compiler $ac_option >&5"
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786 if test -s conftest.err; then
3788 ... rest of stderr output deleted ...
3789 10q' conftest.err >conftest.er1
3790 cat conftest.er1 >&5
3792 rm -f conftest.er1 conftest.err
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3808 ac_clean_files_save=$ac_clean_files
3809 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3810 # Try to create an executable without -o first, disregard a.out.
3811 # It will help us diagnose broken compilers, and finding out an intuition
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3814 $as_echo_n "checking whether the C compiler works... " >&6; }
3815 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3817 # The possible output files:
3818 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3821 for ac_file in $ac_files
3824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3825 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3830 if { { ac_try="$ac_link_default"
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_link_default") 2>&5
3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840 test $ac_status = 0; }; then :
3841 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3842 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3843 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3844 # so that the user can short-circuit this test for compilers unknown to
3846 for ac_file in $ac_files ''
3848 test -f "$ac_file" || continue
3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3853 # We found the default executable, but exeext='' is most
3857 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3859 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3861 # We set ac_cv_exeext here because the later test for it is not
3862 # safe: cross compilers may not add the suffix if given an `-o'
3863 # argument, so we may need to know it at that point already.
3864 # Even if this section looks crufty: it has the advantage of
3871 test "$ac_cv_exeext" = no && ac_cv_exeext=
3876 if test -z "$ac_file"; then :
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3879 $as_echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error 77 "C compiler cannot create executables
3885 See \`config.log' for more details" "$LINENO" 5; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3888 $as_echo "yes" >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3891 $as_echo_n "checking for C compiler default output file name... " >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3893 $as_echo "$ac_file" >&6; }
3894 ac_exeext=$ac_cv_exeext
3896 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3897 ac_clean_files=$ac_clean_files_save
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3899 $as_echo_n "checking for suffix of executables... " >&6; }
3900 if { { ac_try="$ac_link"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_link") 2>&5
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3912 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3913 # work properly (i.e., refer to `conftest.exe'), while it won't with
3915 for ac_file in conftest.exe conftest conftest.*; do
3916 test -f "$ac_file" || continue
3918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3928 See \`config.log' for more details" "$LINENO" 5; }
3930 rm -f conftest conftest$ac_cv_exeext
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3932 $as_echo "$ac_cv_exeext" >&6; }
3934 rm -f conftest.$ac_ext
3935 EXEEXT=$ac_cv_exeext
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3943 FILE *f = fopen ("conftest.out", "w");
3944 return ferror (f) || fclose (f) != 0;
3950 ac_clean_files="$ac_clean_files conftest.out"
3951 # Check that the compiler produces executables we can run. If not, either
3952 # the compiler is broken, or we cross compile.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3954 $as_echo_n "checking whether we are cross compiling... " >&6; }
3955 if test "$cross_compiling" != yes; then
3956 { { ac_try="$ac_link"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_link") 2>&5
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }
3967 if { ac_try='./conftest$ac_cv_exeext'
3968 { { case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_try") 2>&5
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; }; then
3980 if test "$cross_compiling" = maybe; then
3983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $? "cannot run C compiled programs.
3986 If you meant to cross compile, use \`--host'.
3987 See \`config.log' for more details" "$LINENO" 5; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3992 $as_echo "$cross_compiling" >&6; }
3994 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3995 ac_clean_files=$ac_clean_files_save
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3997 $as_echo_n "checking for suffix of object files... " >&6; }
3998 if ${ac_cv_objext+:} false; then :
3999 $as_echo_n "(cached) " >&6
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4012 rm -f conftest.o conftest.obj
4013 if { { ac_try="$ac_compile"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019 $as_echo "$ac_try_echo"; } >&5
4020 (eval "$ac_compile") 2>&5
4022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023 test $ac_status = 0; }; then :
4024 for ac_file in conftest.o conftest.obj conftest.*; do
4025 test -f "$ac_file" || continue;
4027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4028 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4033 $as_echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $? "cannot compute suffix of object files: cannot compile
4039 See \`config.log' for more details" "$LINENO" 5; }
4041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4044 $as_echo "$ac_cv_objext" >&6; }
4045 OBJEXT=$ac_cv_objext
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4048 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4049 if ${ac_cv_c_compiler_gnu+:} false; then :
4050 $as_echo_n "(cached) " >&6
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4066 if ac_fn_c_try_compile "$LINENO"; then :
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4076 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4077 if test $ac_compiler_gnu = yes; then
4082 ac_test_CFLAGS=${CFLAGS+set}
4083 ac_save_CFLAGS=$CFLAGS
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4085 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4086 if ${ac_cv_prog_cc_g+:} false; then :
4087 $as_echo_n "(cached) " >&6
4089 ac_save_c_werror_flag=$ac_c_werror_flag
4090 ac_c_werror_flag=yes
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4104 if ac_fn_c_try_compile "$LINENO"; then :
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_c_werror_flag=$ac_save_c_werror_flag
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4135 if ac_fn_c_try_compile "$LINENO"; then :
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 ac_c_werror_flag=$ac_save_c_werror_flag
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4146 $as_echo "$ac_cv_prog_cc_g" >&6; }
4147 if test "$ac_test_CFLAGS" = set; then
4148 CFLAGS=$ac_save_CFLAGS
4149 elif test $ac_cv_prog_cc_g = yes; then
4150 if test "$GCC" = yes; then
4156 if test "$GCC" = yes; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4164 if ${ac_cv_prog_cc_c89+:} false; then :
4165 $as_echo_n "(cached) " >&6
4167 ac_cv_prog_cc_c89=no
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4173 #include <sys/types.h>
4174 #include <sys/stat.h>
4175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4176 struct buf { int x; };
4177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4178 static char *e (p, i)
4184 static char *f (char * (*g) (char **, int), char **p, ...)
4189 s = g (p, va_arg (v,int));
4194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4195 function prototypes and stuff, but not '\xHH' hex character constants.
4196 These don't provoke an error unfortunately, instead are silently treated
4197 as 'x'. The following induces an error, until -std is added to get
4198 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4199 array size at least. It's necessary to write '\x00'==0 to get something
4200 that's true only with -std. */
4201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4204 inside strings and character constants. */
4206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4208 int test (int i, double x);
4209 struct s1 {int (*f) (int a);};
4210 struct s2 {int (*f) (double a);};
4211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4223 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4225 CC="$ac_save_CC $ac_arg"
4226 if ac_fn_c_try_compile "$LINENO"; then :
4227 ac_cv_prog_cc_c89=$ac_arg
4229 rm -f core conftest.err conftest.$ac_objext
4230 test "x$ac_cv_prog_cc_c89" != "xno" && break
4232 rm -f conftest.$ac_ext
4237 case "x$ac_cv_prog_cc_c89" in
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4240 $as_echo "none needed" >&6; } ;;
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4243 $as_echo "unsupported" >&6; } ;;
4245 CC="$CC $ac_cv_prog_cc_c89"
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4249 if test "x$ac_cv_prog_cc_c89" != xno; then :
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 depcc="$CC" am_compiler_list=
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4262 $as_echo_n "checking dependency style of $depcc... " >&6; }
4263 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4267 # We make a subdir and do the tests there. Otherwise we can end up
4268 # making bogus files that we don't know about and never remove. For
4269 # instance it was reported that on HP-UX the gcc test will end up
4270 # making a dummy file named `D' -- because `-MD' means `put the output
4273 # Copy depcomp to subdir because otherwise we won't find it if we're
4274 # using a relative directory.
4275 cp "$am_depcomp" conftest.dir
4277 # We will build objects and dependencies in a subdirectory because
4278 # it helps to detect inapplicable dependency modes. For instance
4279 # both Tru64's cc and ICC support -MD to output dependencies as a
4280 # side effect of compilation, but ICC will put the dependencies in
4281 # the current directory while Tru64 will put them in the object
4285 am_cv_CC_dependencies_compiler_type=none
4286 if test "$am_compiler_list" = ""; then
4287 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4290 case " $depcc " in #(
4291 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4294 for depmode in $am_compiler_list; do
4295 # Setup a source with many dependencies, because some compilers
4296 # like to wrap large dependency lists on column 80 (with \), and
4297 # we should not choose a depcomp mode which is confused by this.
4299 # We need to recreate these files for each test, as the compiler may
4300 # overwrite some of them when testing with obscure command lines.
4301 # This happens at least with the AIX C compiler.
4303 for i in 1 2 3 4 5 6; do
4304 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4305 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4306 # Solaris 8's {/usr,}/bin/sh.
4307 touch sub/conftst$i.h
4309 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4311 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4312 # mode. It turns out that the SunPro C++ compiler does not properly
4313 # handle `-M -o', and we need to detect this. Also, some Intel
4314 # versions had trouble with output in subdirs
4315 am__obj=sub/conftest.${OBJEXT-o}
4316 am__minus_obj="-o $am__obj"
4319 # This depmode causes a compiler race in universal mode.
4320 test "$am__universal" = false || continue
4323 # after this tag, mechanisms are not by side-effect, so they'll
4324 # only be used when explicitly requested
4325 if test "x$enable_dependency_tracking" = xyes; then
4331 msvisualcpp | msvcmsys)
4332 # This compiler won't grok `-c -o', but also, the minuso test has
4333 # not run yet. These depmodes are late enough in the game, and
4334 # so weak that their functioning should not be impacted.
4335 am__obj=conftest.${OBJEXT-o}
4340 if depmode=$depmode \
4341 source=sub/conftest.c object=$am__obj \
4342 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4343 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4344 >/dev/null 2>conftest.err &&
4345 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4346 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4347 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4348 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4349 # icc doesn't choke on unknown options, it will just issue warnings
4350 # or remarks (even with -Werror). So we grep stderr for any message
4351 # that says an option was ignored or not supported.
4352 # When given -MP, icc 7.0 and 7.1 complain thusly:
4353 # icc: Command line warning: ignoring option '-M'; no argument required
4354 # The diagnosis changed in icc 8.0:
4355 # icc: Command line remark: option '-MP' not supported
4356 if (grep 'ignoring option' conftest.err ||
4357 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4358 am_cv_CC_dependencies_compiler_type=$depmode
4367 am_cv_CC_dependencies_compiler_type=none
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4372 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4373 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4376 test "x$enable_dependency_tracking" != xno \
4377 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4379 am__fastdepCC_FALSE='#'
4381 am__fastdepCC_TRUE='#'
4382 am__fastdepCC_FALSE=
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4393 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4394 # On Suns, sometimes $CPP names a directory.
4395 if test -n "$CPP" && test -d "$CPP"; then
4398 if test -z "$CPP"; then
4399 if ${ac_cv_prog_CPP+:} false; then :
4400 $as_echo_n "(cached) " >&6
4402 # Double quotes because CPP needs to be expanded
4403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4406 for ac_c_preproc_warn_flag in '' yes
4408 # Use a header file that comes with gcc, so configuring glibc
4409 # with a fresh cross-compiler works.
4410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4411 # <limits.h> exists even on freestanding compilers.
4412 # On the NeXT, cc -E runs the code through the compiler's parser,
4413 # not just through cpp. "Syntax error" is here to catch this case.
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4417 # include <limits.h>
4419 # include <assert.h>
4423 if ac_fn_c_try_cpp "$LINENO"; then :
4426 # Broken: fails on valid input.
4429 rm -f conftest.err conftest.i conftest.$ac_ext
4431 # OK, works on sane cases. Now check whether nonexistent headers
4432 # can be detected and how.
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 #include <ac_nonexistent.h>
4437 if ac_fn_c_try_cpp "$LINENO"; then :
4438 # Broken: success on invalid input.
4441 # Passes both tests.
4445 rm -f conftest.err conftest.i conftest.$ac_ext
4448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4449 rm -f conftest.i conftest.err conftest.$ac_ext
4450 if $ac_preproc_ok; then :
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4463 $as_echo "$CPP" >&6; }
4465 for ac_c_preproc_warn_flag in '' yes
4467 # Use a header file that comes with gcc, so configuring glibc
4468 # with a fresh cross-compiler works.
4469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4470 # <limits.h> exists even on freestanding compilers.
4471 # On the NeXT, cc -E runs the code through the compiler's parser,
4472 # not just through cpp. "Syntax error" is here to catch this case.
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4476 # include <limits.h>
4478 # include <assert.h>
4482 if ac_fn_c_try_cpp "$LINENO"; then :
4485 # Broken: fails on valid input.
4488 rm -f conftest.err conftest.i conftest.$ac_ext
4490 # OK, works on sane cases. Now check whether nonexistent headers
4491 # can be detected and how.
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #include <ac_nonexistent.h>
4496 if ac_fn_c_try_cpp "$LINENO"; then :
4497 # Broken: success on invalid input.
4500 # Passes both tests.
4504 rm -f conftest.err conftest.i conftest.$ac_ext
4507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4508 rm -f conftest.i conftest.err conftest.$ac_ext
4509 if $ac_preproc_ok; then :
4512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4515 See \`config.log' for more details" "$LINENO" 5; }
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4526 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4527 if ${ac_cv_path_GREP+:} false; then :
4528 $as_echo_n "(cached) " >&6
4530 if test -z "$GREP"; then
4531 ac_path_GREP_found=false
4532 # Loop through the user's path and test for each of PROGNAME-LIST
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4537 test -z "$as_dir" && as_dir=.
4538 for ac_prog in grep ggrep; do
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4541 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4542 # Check for GNU ac_path_GREP and select it if it is found.
4543 # Check for GNU $ac_path_GREP
4544 case `"$ac_path_GREP" --version 2>&1` in
4546 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4549 $as_echo_n 0123456789 >"conftest.in"
4552 cat "conftest.in" "conftest.in" >"conftest.tmp"
4553 mv "conftest.tmp" "conftest.in"
4554 cp "conftest.in" "conftest.nl"
4555 $as_echo 'GREP' >> "conftest.nl"
4556 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558 as_fn_arith $ac_count + 1 && ac_count=$as_val
4559 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4560 # Best one so far, save it but keep looking for a better one
4561 ac_cv_path_GREP="$ac_path_GREP"
4562 ac_path_GREP_max=$ac_count
4564 # 10*(2^10) chars as input seems more than enough
4565 test $ac_count -gt 10 && break
4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4570 $ac_path_GREP_found && break 3
4575 if test -z "$ac_cv_path_GREP"; then
4576 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4579 ac_cv_path_GREP=$GREP
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4584 $as_echo "$ac_cv_path_GREP" >&6; }
4585 GREP="$ac_cv_path_GREP"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4589 $as_echo_n "checking for egrep... " >&6; }
4590 if ${ac_cv_path_EGREP+:} false; then :
4591 $as_echo_n "(cached) " >&6
4593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4594 then ac_cv_path_EGREP="$GREP -E"
4596 if test -z "$EGREP"; then
4597 ac_path_EGREP_found=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603 test -z "$as_dir" && as_dir=.
4604 for ac_prog in egrep; do
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4607 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4608 # Check for GNU ac_path_EGREP and select it if it is found.
4609 # Check for GNU $ac_path_EGREP
4610 case `"$ac_path_EGREP" --version 2>&1` in
4612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4615 $as_echo_n 0123456789 >"conftest.in"
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 $as_echo 'EGREP' >> "conftest.nl"
4622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624 as_fn_arith $ac_count + 1 && ac_count=$as_val
4625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_EGREP="$ac_path_EGREP"
4628 ac_path_EGREP_max=$ac_count
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636 $ac_path_EGREP_found && break 3
4641 if test -z "$ac_cv_path_EGREP"; then
4642 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4645 ac_cv_path_EGREP=$EGREP
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4651 $as_echo "$ac_cv_path_EGREP" >&6; }
4652 EGREP="$ac_cv_path_EGREP"
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4656 $as_echo_n "checking for ANSI C header files... " >&6; }
4657 if ${ac_cv_header_stdc+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_header_stdc=yes
4678 ac_cv_header_stdc=no
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 if test $ac_cv_header_stdc = yes; then
4683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4690 $EGREP "memchr" >/dev/null 2>&1; then :
4693 ac_cv_header_stdc=no
4699 if test $ac_cv_header_stdc = yes; then
4700 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4707 $EGREP "free" >/dev/null 2>&1; then :
4710 ac_cv_header_stdc=no
4716 if test $ac_cv_header_stdc = yes; then
4717 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4718 if test "$cross_compiling" = yes; then :
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4725 #if ((' ' & 0x0FF) == 0x020)
4726 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4727 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4729 # define ISLOWER(c) \
4730 (('a' <= (c) && (c) <= 'i') \
4731 || ('j' <= (c) && (c) <= 'r') \
4732 || ('s' <= (c) && (c) <= 'z'))
4733 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4741 for (i = 0; i < 256; i++)
4742 if (XOR (islower (i), ISLOWER (i))
4743 || toupper (i) != TOUPPER (i))
4748 if ac_fn_c_try_run "$LINENO"; then :
4751 ac_cv_header_stdc=no
4753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4754 conftest.$ac_objext conftest.beam conftest.$ac_ext
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4760 $as_echo "$ac_cv_header_stdc" >&6; }
4761 if test $ac_cv_header_stdc = yes; then
4763 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4768 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4769 inttypes.h stdint.h unistd.h
4771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4772 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4775 cat >>confdefs.h <<_ACEOF
4776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4784 ac_fn_c_check_header_mongrel "$LINENO" "OpenGL/gl.h" "ac_cv_header_OpenGL_gl_h" "$ac_includes_default"
4785 if test "x$ac_cv_header_OpenGL_gl_h" = xyes; then :
4792 if test "$platform_quartz" = "yes"; then
4803 # Check whether --enable-debug was given.
4804 if test "${enable_debug+set}" = set; then :
4805 enableval=$enable_debug;
4811 case $enable_debug in #(
4814 test "$cflags_set" = set || CFLAGS="$CFLAGS -g -O0"
4815 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -DCOGL_GL_DEBUG -DCOGL_OBJECT_DEBUG -DCOGL_HANDLE_DEBUG -DCOGL_ENABLE_DEBUG"
4819 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -DCOGL_ENABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
4822 as_fn_error $? "Unknown argument for --enable-debug" "$LINENO" 5
4836 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4839 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4843 $as_echo_n "(cached) " >&6
4847 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4869 if test -n "$PKG_CONFIG"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4871 $as_echo "$PKG_CONFIG" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4879 if test -z "$ac_cv_path_PKG_CONFIG"; then
4880 ac_pt_PKG_CONFIG=$PKG_CONFIG
4881 # Extract the first word of "pkg-config", so it can be a program name with args.
4882 set dummy pkg-config; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4886 $as_echo_n "(cached) " >&6
4888 case $ac_pt_PKG_CONFIG in
4890 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4912 if test -n "$ac_pt_PKG_CONFIG"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4914 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4920 if test "x$ac_pt_PKG_CONFIG" = x; then
4923 case $cross_compiling:$ac_tool_warned in
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4927 ac_tool_warned=yes ;;
4929 PKG_CONFIG=$ac_pt_PKG_CONFIG
4932 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4936 if test -n "$PKG_CONFIG"; then
4937 _pkg_min_version=0.9.0
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4939 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4940 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4942 $as_echo "yes" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4949 if test -n "$PKG_CONFIG" && \
4950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CAIRO\""; } >&5
4951 ($PKG_CONFIG --exists --print-errors "CAIRO") 2>&5
4953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954 test $ac_status = 0; }; then
4959 # Check whether --enable-cairo was given.
4960 if test "${enable_cairo+set}" = set; then :
4961 enableval=$enable_cairo;
4964 if test "x$enable_debug" = "xyes"; then :
4965 enable_cairo=$have_cairo
4973 if test "x$enable_cairo" = "xyes" && test "x$enable_debug" = "xyes"; then :
4975 if test "x$have_cairo" != "xyes"; then :
4976 as_fn_error $? "Could not find Cairo" "$LINENO" 5
4979 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES cairo >= 1.10"
4981 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
4987 # Check whether --enable-profile was given.
4988 if test "${enable_profile+set}" = set; then :
4989 enableval=$enable_profile;
4994 if test "x$enable_profile" = "xyes"; then :
4996 if test "x$GCC" = "xyes"; then :
4998 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES uprof-0.3"
4999 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -DCOGL_ENABLE_PROFILE"
5000 if test "x$enable_debug" = "xyes"; then :
5001 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -DUPROF_DEBUG"
5006 as_fn_error $? "--enable-profile is currently only supported if using GCC" "$LINENO" 5
5011 if test "x$enable_profile" != "xno"; then
5022 # use strict compiler flags only when building from git; the rules for
5023 # distcheck will take care of turning this on when making a release
5025 # Check whether --enable-maintainer-flags was given.
5026 if test "${enable_maintainer_flags+set}" = set; then :
5027 enableval=$enable_maintainer_flags;
5029 enable_maintainer_flags=no
5034 MAINTAINER_COMPILER_FLAGS="-Wall -Wcast-align -Wuninitialized
5035 -Wno-strict-aliasing -Wempty-body -Wformat
5036 -Wformat-security -Winit-self
5037 -Wdeclaration-after-statement -Wvla
5038 -Wpointer-arith -Wmissing-declarations"
5040 case $enable_maintainer_flags in #(
5044 list=$MAINTAINER_COMPILER_FLAGS
5046 flags_unsupported=""
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
5048 $as_echo_n "checking for supported compiler flags... " >&6; }
5051 save_CFLAGS="$CFLAGS"
5052 CFLAGS="$CFLAGS $each"
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5064 if ac_fn_c_try_compile "$LINENO"; then :
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 CFLAGS="$save_CFLAGS"
5072 if test "X$flag_ok" = Xyes ; then
5073 flags_supported="$flags_supported $each"
5075 flags_unsupported="$flags_unsupported $each"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
5079 $as_echo "$flags_supported" >&6; }
5080 if test "X$flags_unsupported" != X ; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
5082 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
5084 MAINTAINER_CFLAGS="$MAINTAINER_CFLAGS $flags_supported"
5092 MAINTAINER_COMPILER_FLAGS="$MAINTAINER_COMPILER_FLAGS -Werror"
5094 list=$MAINTAINER_COMPILER_FLAGS
5096 flags_unsupported=""
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
5098 $as_echo_n "checking for supported compiler flags... " >&6; }
5101 save_CFLAGS="$CFLAGS"
5102 CFLAGS="$CFLAGS $each"
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5114 if ac_fn_c_try_compile "$LINENO"; then :
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 CFLAGS="$save_CFLAGS"
5122 if test "X$flag_ok" = Xyes ; then
5123 flags_supported="$flags_supported $each"
5125 flags_unsupported="$flags_unsupported $each"
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
5129 $as_echo "$flags_supported" >&6; }
5130 if test "X$flags_unsupported" != X ; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
5132 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
5134 MAINTAINER_CFLAGS="$MAINTAINER_CFLAGS $flags_supported"
5138 as_fn_error $? "Invalid option for --enable-maintainer-flags" "$LINENO" 5
5144 # strip leading spaces
5145 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS ${MAINTAINER_CFLAGS#* }"
5149 # disable deprecated options from Glib only when building from git;
5150 # the rules for distcheck will take care of turning this on when
5154 # Check whether --enable-deprecated was given.
5155 if test "${enable_deprecated+set}" = set; then :
5156 enableval=$enable_deprecated;
5158 enable_deprecated=yes
5162 case $enable_deprecated in #(
5165 DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES"
5169 DEPRECATED_CFLAGS=""
5172 as_fn_error $? "Unknown argument for --enable-deprecated" "$LINENO" 5
5176 # strip leading spaces
5177 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS ${DEPRECATED_CFLAGS#* }"
5179 # Check whether --enable-gdk-pixbuf was given.
5180 if test "${enable_gdk_pixbuf+set}" = set; then :
5181 enableval=$enable_gdk_pixbuf;
5183 enable_gdk_pixbuf=yes
5187 if test "x$enable_gdk_pixbuf" = "xyes"; then
5188 if test -n "$PKG_CONFIG" && \
5189 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\""; } >&5
5190 ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
5192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5193 test $ac_status = 0; }; then
5202 # Check whether --enable-quartz-image was given.
5203 if test "${enable_quartz_image+set}" = set; then :
5204 enableval=$enable_quartz_image;
5206 enable_quartz_image=no
5211 if test "x$have_gdk_pixbuf" = "xyes"; then :
5214 $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
5216 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES gdk-pixbuf-2.0 >= 2.0"
5217 COGL_IMAGE_BACKEND="gdk-pixbuf"
5219 elif test "x$enable_quartz_image" = "xyes"; then :
5221 EXPERIMENTAL_CONFIG=yes
5222 EXPERIMENTAL_OPTIONS="$EXPERIMENTAL_OPTIONS Quartz Core Graphics,"
5224 $as_echo "#define USE_QUARTZ 1" >>confdefs.h
5226 COGL_IMAGE_BACKEND="quartz"
5230 EXPERIMENTAL_CONFIG=yes
5231 EXPERIMENTAL_OPTIONS="$EXPERIMENTAL_OPTIONS fallback image decoding (stb_image),"
5233 $as_echo "#define USE_INTERNAL 1" >>confdefs.h
5235 COGL_IMAGE_BACKEND="stb_image"
5242 # Check whether --enable-cogl-pango was given.
5243 if test "${enable_cogl_pango+set}" = set; then :
5244 enableval=$enable_cogl_pango;
5246 enable_cogl_pango=yes
5250 if test "x$enable_cogl_pango" = "xyes"; then
5251 BUILD_COGL_PANGO_TRUE=
5252 BUILD_COGL_PANGO_FALSE='#'
5254 BUILD_COGL_PANGO_TRUE='#'
5255 BUILD_COGL_PANGO_FALSE=
5259 if test "x$enable_cogl_pango" = "xyes"; then :
5261 COGL_PANGO_PKG_REQUIRES="$COGL_PANGO_PKG_REQUIRES pangocairo >= 1.20"
5266 # Check whether --enable-examples-install was given.
5267 if test "${enable_examples_install+set}" = set; then :
5268 enableval=$enable_examples_install;
5270 enable_examples_install=no
5274 if test "x$enable_examples_install" = "xyes"; then
5275 INSTALL_EXAMPLES_TRUE=
5276 INSTALL_EXAMPLES_FALSE='#'
5278 INSTALL_EXAMPLES_TRUE='#'
5279 INSTALL_EXAMPLES_FALSE=
5283 # Check whether --enable-glib was given.
5284 if test "${enable_glib+set}" = set; then :
5285 enableval=$enable_glib;
5291 if test "x$enable_glib" = "xyes"; then
5300 if test "x$enable_glib" = "xyes"; then :
5302 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLIB_SUPPORT"
5306 EXPERIMENTAL_CONFIG=yes
5307 EXPERIMENTAL_OPTIONS="$EXPERIMENTAL_OPTIONS --disable-glib,"
5315 GL_LIBRARY_DIRECTLY_LINKED=no
5320 # Check whether --enable-gles1 was given.
5321 if test "${enable_gles1+set}" = set; then :
5322 enableval=$enable_gles1;
5328 if test "x$enable_gles1" = "xyes"; then :
5330 if test "x$platform_win32" = "xyes"; then :
5331 as_fn_error $? "GLES 1 not available for win32" "$LINENO" 5
5334 enabled_drivers="$enabled_drivers gles1"
5336 cogl_gl_headers="GLES/gl.h GLES/glext.h"
5339 $as_echo "#define HAVE_COGL_GLES 1" >>confdefs.h
5341 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLES CLUTTER_COGL_HAS_GLES"
5342 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLES1"
5345 if test -n "$PKG_CONFIG" && \
5346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv1_cm\""; } >&5
5347 ($PKG_CONFIG --exists --print-errors "glesv1_cm") 2>&5
5349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5350 test $ac_status = 0; }; then
5351 COGL_PKG_REQUIRES_GL="$COGL_PKG_REQUIRES_GL glesv1_cm"
5352 COGL_GLES1_LIBNAME="libGLESv1_CM.so"
5357 # We have to check the two headers independently as GLES/glext.h
5358 # needs to include GLES/gl.h to have the GL types defined (eg.
5360 ac_fn_c_check_header_mongrel "$LINENO" "GLES/gl.h" "ac_cv_header_GLES_gl_h" "$ac_includes_default"
5361 if test "x$ac_cv_header_GLES_gl_h" = xyes; then :
5364 as_fn_error $? "Unable to locate GLES/gl.h" "$LINENO" 5
5368 ac_fn_c_check_header_compile "$LINENO" "GLES/glext.h" "ac_cv_header_GLES_glext_h" "#include <GLES/gl.h>
5370 if test "x$ac_cv_header_GLES_glext_h" = xyes; then :
5373 as_fn_error $? "Unable to locate GLES/glext.h" "$LINENO" 5
5378 # Early implementations provided only a GLES/egl.h while Khronos's
5379 # implementer guide now states EGL/egl.h is the One. Some
5380 # implementations keep a GLES/egl.h wrapper around EGL/egl.h for
5381 # backward compatibility while others provide EGL/egl.h only.
5382 for ac_header in GLES/egl.h EGL/egl.h
5384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5385 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5387 cat >>confdefs.h <<_ACEOF
5388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5396 if test "x$ac_cv_header_GLES_egl_h" = "xyes"; then :
5397 COGL_EGL_INCLUDES="#include <GLES/egl.h>"
5398 elif test "x$ac_cv_header_EGL_egl_h" = "xyes"; then :
5400 COGL_EGL_INCLUDES="#include <EGL/egl.h>"
5403 as_fn_error $? "Unable to locate EGL header" "$LINENO" 5
5407 for ac_header in EGL/eglext.h
5409 ac_fn_c_check_header_compile "$LINENO" "EGL/eglext.h" "ac_cv_header_EGL_eglext_h" "$COGL_EGL_INCLUDES
5411 if test "x$ac_cv_header_EGL_eglext_h" = xyes; then :
5412 cat >>confdefs.h <<_ACEOF
5413 #define HAVE_EGL_EGLEXT_H 1
5415 COGL_EGL_INCLUDES="$COGL_EGL_INCLUDE
5416 #include <EGL/eglext.h>"
5422 # Check for a GLES 1.x Common Profile library with/without EGL.
5424 # Note: historically GLES 1 libraries shipped with the
5425 # EGL and GLES symbols all bundled in one library. Now
5426 # the Khronos Implementers Guide defines two naming
5427 # schemes: -lGLES_CM should be used for a library that
5428 # bundles the GLES and EGL API together and -lGLESv1_CM
5429 # would be used for a standalone GLES API.
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglInitialize in -lGLES_CM" >&5
5431 $as_echo_n "checking for eglInitialize in -lGLES_CM... " >&6; }
5432 if ${ac_cv_lib_GLES_CM_eglInitialize+:} false; then :
5433 $as_echo_n "(cached) " >&6
5435 ac_check_lib_save_LIBS=$LIBS
5436 LIBS="-lGLES_CM $LIBS"
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5440 /* Override any GCC internal prototype to avoid an error.
5441 Use char because int might match the return type of a GCC
5442 builtin and then its argument prototype would still apply. */
5446 char eglInitialize ();
5450 return eglInitialize ();
5455 if ac_fn_c_try_link "$LINENO"; then :
5456 ac_cv_lib_GLES_CM_eglInitialize=yes
5458 ac_cv_lib_GLES_CM_eglInitialize=no
5460 rm -f core conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
5462 LIBS=$ac_check_lib_save_LIBS
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLES_CM_eglInitialize" >&5
5465 $as_echo "$ac_cv_lib_GLES_CM_eglInitialize" >&6; }
5466 if test "x$ac_cv_lib_GLES_CM_eglInitialize" = xyes; then :
5467 COGL_GLES1_LIBNAME="libGLES_CM.so"
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glFlush in -lGLESv1_CM" >&5
5471 $as_echo_n "checking for glFlush in -lGLESv1_CM... " >&6; }
5472 if ${ac_cv_lib_GLESv1_CM_glFlush+:} false; then :
5473 $as_echo_n "(cached) " >&6
5475 ac_check_lib_save_LIBS=$LIBS
5476 LIBS="-lGLESv1_CM $LIBS"
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5480 /* Override any GCC internal prototype to avoid an error.
5481 Use char because int might match the return type of a GCC
5482 builtin and then its argument prototype would still apply. */
5495 if ac_fn_c_try_link "$LINENO"; then :
5496 ac_cv_lib_GLESv1_CM_glFlush=yes
5498 ac_cv_lib_GLESv1_CM_glFlush=no
5500 rm -f core conftest.err conftest.$ac_objext \
5501 conftest$ac_exeext conftest.$ac_ext
5502 LIBS=$ac_check_lib_save_LIBS
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv1_CM_glFlush" >&5
5505 $as_echo "$ac_cv_lib_GLESv1_CM_glFlush" >&6; }
5506 if test "x$ac_cv_lib_GLESv1_CM_glFlush" = xyes; then :
5507 COGL_GLES1_LIBNAME="libGLESv1_CM.so"
5508 NEED_SEPARATE_EGL=yes
5511 as_fn_error $? "Unable to locate required GLES 1.x Common Profile library" "$LINENO" 5
5525 # Check whether --enable-gles2 was given.
5526 if test "${enable_gles2+set}" = set; then :
5527 enableval=$enable_gles2;
5533 if test "x$enable_gles2" = "xyes"; then :
5535 if test "x$platform_win32" = "xyes"; then :
5536 as_fn_error $? "GLES 2 not available for win32" "$LINENO" 5
5539 enabled_drivers="$enabled_drivers gles2"
5541 cogl_gl_headers="GLES2/gl2.h GLES2/gl2ext.h"
5543 $as_echo "#define HAVE_COGL_GLES2 1" >>confdefs.h
5545 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLES CLUTTER_COGL_HAS_GLES"
5546 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLES2"
5549 if test -n "$PKG_CONFIG" && \
5550 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv2\""; } >&5
5551 ($PKG_CONFIG --exists --print-errors "glesv2") 2>&5
5553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5554 test $ac_status = 0; }; then
5555 COGL_PKG_REQUIRES_GL="$COGL_PKG_REQUIRES_GL glesv2"
5556 COGL_GLES2_LIBNAME="libGLESv2.so"
5560 # We have to check the two headers independently as GLES2/gl2ext.h
5561 # needs to include GLES2/gl2.h to have the GL types defined (eg.
5563 ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
5564 if test "x$ac_cv_header_GLES2_gl2_h" = xyes; then :
5567 as_fn_error $? "Unable to locate GLES2/gl2.h" "$LINENO" 5
5571 ac_fn_c_check_header_compile "$LINENO" "GLES2/gl2ext.h" "ac_cv_header_GLES2_gl2ext_h" "#include <GLES2/gl2.h>
5573 if test "x$ac_cv_header_GLES2_gl2ext_h" = xyes; then :
5576 as_fn_error $? "Unable to locate GLES2/gl2ext.h" "$LINENO" 5
5581 COGL_GLES2_LIBNAME="libGLESv2.so"
5590 # Check whether --enable-gl was given.
5591 if test "${enable_gl+set}" = set; then :
5592 enableval=$enable_gl;
5598 if test "x$enable_gl" = "xyes"; then :
5600 enabled_drivers="$enabled_drivers gl"
5602 if test -n "$PKG_CONFIG" && \
5603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
5604 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5607 test $ac_status = 0; }; then
5611 cogl_gl_headers="GL/gl.h"
5613 if test "x$platform_quartz" = "xyes"; then :
5615 cogl_gl_headers="OpenGL/gl.h"
5616 COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -framework OpenGL"
5617 GL_LIBRARY_DIRECTLY_LINKED=yes
5620 elif test "x$platform_win32" = "xyes"; then :
5622 COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -lopengl32 -lgdi32 -lwinmm"
5623 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -D_WIN32_WINNT=0x0500"
5625 GL_LIBRARY_DIRECTLY_LINKED=yes
5630 if test -n "$PKG_CONFIG" && \
5631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
5632 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
5634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635 test $ac_status = 0; }; then
5636 COGL_PKG_REQUIRES_GL="$COGL_PKG_REQUIRES_GL gl"
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glGetString in -lGL" >&5
5639 $as_echo_n "checking for glGetString in -lGL... " >&6; }
5640 if ${ac_cv_lib_GL_glGetString+:} false; then :
5641 $as_echo_n "(cached) " >&6
5643 ac_check_lib_save_LIBS=$LIBS
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5648 /* Override any GCC internal prototype to avoid an error.
5649 Use char because int might match the return type of a GCC
5650 builtin and then its argument prototype would still apply. */
5654 char glGetString ();
5658 return glGetString ();
5663 if ac_fn_c_try_link "$LINENO"; then :
5664 ac_cv_lib_GL_glGetString=yes
5666 ac_cv_lib_GL_glGetString=no
5668 rm -f core conftest.err conftest.$ac_objext \
5669 conftest$ac_exeext conftest.$ac_ext
5670 LIBS=$ac_check_lib_save_LIBS
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glGetString" >&5
5673 $as_echo "$ac_cv_lib_GL_glGetString" >&6; }
5674 if test "x$ac_cv_lib_GL_glGetString" = xyes; then :
5675 cat >>confdefs.h <<_ACEOF
5676 #define HAVE_LIBGL 1
5682 as_fn_error $? "Unable to locate required GL library" "$LINENO" 5
5687 COGL_GL_LIBNAME="libGL.so.1"
5692 $as_echo "#define HAVE_COGL_GL 1" >>confdefs.h
5695 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GL"
5696 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS CLUTTER_COGL_HAS_GL"
5701 if test "x$enable_gl" = "xyes"; then
5702 COGL_DRIVER_GL_SUPPORTED_TRUE=
5703 COGL_DRIVER_GL_SUPPORTED_FALSE='#'
5705 COGL_DRIVER_GL_SUPPORTED_TRUE='#'
5706 COGL_DRIVER_GL_SUPPORTED_FALSE=
5709 if test "x$enable_gles1" = "xyes" || test "x$enable_gles2" = "xyes"; then
5710 COGL_DRIVER_GLES_SUPPORTED_TRUE=
5711 COGL_DRIVER_GLES_SUPPORTED_FALSE='#'
5713 COGL_DRIVER_GLES_SUPPORTED_TRUE='#'
5714 COGL_DRIVER_GLES_SUPPORTED_FALSE=
5719 # Check whether --with-gl-libname was given.
5720 if test "${with_gl_libname+set}" = set; then :
5721 withval=$with_gl_libname; COGL_GL_LIBNAME="$withval"
5725 # Check whether --with-gles1-libname was given.
5726 if test "${with_gles1_libname+set}" = set; then :
5727 withval=$with_gles1_libname; COGL_GLES1_LIBNAME="$withval"
5731 # Check whether --with-gles2-libname was given.
5732 if test "${with_gles2_libname+set}" = set; then :
5733 withval=$with_gles2_libname; COGL_GLES2_LIBNAME="$withval"
5744 if test "x$GL_LIBRARY_DIRECTLY_LINKED" = "xyes"; then
5746 $as_echo "#define HAVE_DIRECTLY_LINKED_GL_LIBRARY 1" >>confdefs.h
5751 # Check whether --enable-glx was given.
5752 if test "${enable_glx+set}" = set; then :
5753 enableval=$enable_glx;
5755 if test "x$ALLOW_GLX" = "xyes"; then :
5763 if test "x$enable_glx" = "xyes"; then :
5765 if test "x$ALLOW_GLX" != "xyes"; then :
5766 as_fn_error $? "GLX not supported with this configuration" "$LINENO" 5
5771 GL_WINSYS_APIS="$GL_WINSYS_APIS glx"
5773 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLX_SUPPORT"
5775 # We might fall back to DRM for sync-to-vblank on GLX
5776 if test -n "$PKG_CONFIG" && \
5777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
5778 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }; then
5784 $as_echo "#define HAVE_DRM 1" >>confdefs.h
5786 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES libdrm"
5791 if test "x$SUPPORT_GLX" = "xyes"; then
5793 SUPPORT_GLX_FALSE='#'
5795 SUPPORT_GLX_TRUE='#'
5800 # Check whether --enable-wgl was given.
5801 if test "${enable_wgl+set}" = set; then :
5802 enableval=$enable_wgl;
5804 if test "x$ALLOW_WGL" = "xyes"; then :
5812 if test "x$enable_wgl" = "xyes"; then :
5814 if test "x$ALLOW_WGL" != "xyes"; then :
5815 as_fn_error $? "WGL not supported with this configuration" "$LINENO" 5
5819 GL_WINSYS_APIS="$GL_WINSYS_APIS wgl"
5822 $as_echo "#define COGL_HAS_WGL_SUPPORT 1" >>confdefs.h
5824 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_WIN32_SUPPORT"
5827 if test "x$SUPPORT_WGL" = "xyes"; then
5829 SUPPORT_WGL_FALSE='#'
5831 SUPPORT_WGL_TRUE='#'
5836 EGL_PLATFORM_COUNT=0
5838 # Check whether --enable-null-egl-platform was given.
5839 if test "${enable_null_egl_platform+set}" = set; then :
5840 enableval=$enable_null_egl_platform;
5842 enable_null_egl_platform=no
5846 if test "x$enable_null_egl_platform" = "xyes"; then :
5848 EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
5850 EGL_PLATFORMS="$EGL_PLATFORMS null"
5852 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_POWERVR_NULL_SUPPORT"
5855 if test "x$enable_null_egl_platform" = "xyes"; then
5856 SUPPORT_EGL_PLATFORM_POWERVR_NULL_TRUE=
5857 SUPPORT_EGL_PLATFORM_POWERVR_NULL_FALSE='#'
5859 SUPPORT_EGL_PLATFORM_POWERVR_NULL_TRUE='#'
5860 SUPPORT_EGL_PLATFORM_POWERVR_NULL_FALSE=
5864 # Check whether --enable-gdl-egl-platform was given.
5865 if test "${enable_gdl_egl_platform+set}" = set; then :
5866 enableval=$enable_gdl_egl_platform;
5868 enable_gdl_egl_platform=no
5872 if test "x$enable_gdl_egl_platform" == "xyes"; then :
5874 EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
5876 EGL_PLATFORMS="$EGL_PLATFORMS gdl"
5878 for ac_header in libgdl.h
5880 ac_fn_c_check_header_mongrel "$LINENO" "libgdl.h" "ac_cv_header_libgdl_h" "$ac_includes_default"
5881 if test "x$ac_cv_header_libgdl_h" = xyes; then :
5882 cat >>confdefs.h <<_ACEOF
5883 #define HAVE_LIBGDL_H 1
5888 for ac_header in CE4100/libgdl.h
5890 ac_fn_c_check_header_mongrel "$LINENO" "CE4100/libgdl.h" "ac_cv_header_CE4100_libgdl_h" "$ac_includes_default"
5891 if test "x$ac_cv_header_CE4100_libgdl_h" = xyes; then :
5892 cat >>confdefs.h <<_ACEOF
5893 #define HAVE_CE4100_LIBGDL_H 1
5896 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -I/usr/include/CE4100"
5899 as_fn_error $? "libgdl.h not found" "$LINENO" 5
5910 COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -lgdl"
5912 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_GDL_SUPPORT"
5915 if test "x$enable_gdl_egl_platform" = "xyes"; then
5916 SUPPORT_EGL_PLATFORM_GDL_TRUE=
5917 SUPPORT_EGL_PLATFORM_GDL_FALSE='#'
5919 SUPPORT_EGL_PLATFORM_GDL_TRUE='#'
5920 SUPPORT_EGL_PLATFORM_GDL_FALSE=
5924 # Check whether --enable-wayland-egl-platform was given.
5925 if test "${enable_wayland_egl_platform+set}" = set; then :
5926 enableval=$enable_wayland_egl_platform;
5928 enable_wayland_egl_platform=no
5932 if test "x$enable_wayland_egl_platform" == "xyes"; then :
5934 EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
5936 EGL_PLATFORMS="$EGL_PLATFORMS wayland"
5938 if test -n "$PKG_CONFIG" && \
5939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-egl\""; } >&5
5940 ($PKG_CONFIG --exists --print-errors "wayland-egl") 2>&5
5942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5943 test $ac_status = 0; }; then
5945 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES wayland-egl"
5946 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES wayland-client"
5949 as_fn_error $? "Unable to locate required wayland libraries" "$LINENO" 5
5952 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT"
5955 if test "x$enable_wayland_egl_platform" = "xyes"; then
5956 SUPPORT_EGL_PLATFORM_WAYLAND_TRUE=
5957 SUPPORT_EGL_PLATFORM_WAYLAND_FALSE='#'
5959 SUPPORT_EGL_PLATFORM_WAYLAND_TRUE='#'
5960 SUPPORT_EGL_PLATFORM_WAYLAND_FALSE=
5965 # Check whether --enable-kms-egl-platform was given.
5966 if test "${enable_kms_egl_platform+set}" = set; then :
5967 enableval=$enable_kms_egl_platform;
5969 enable_kms_egl_platform=no
5973 if test "x$enable_kms_egl_platform" == "xyes"; then :
5975 EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
5977 EGL_PLATFORMS="$EGL_PLATFORMS kms"
5979 if test -n "$PKG_CONFIG" && \
5980 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5
5981 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5
5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5984 test $ac_status = 0; }; then
5986 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES gbm"
5987 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES libdrm"
5990 as_fn_error $? "Unable to locate required kms libraries" "$LINENO" 5
5993 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_KMS_SUPPORT"
5996 if test "x$enable_kms_egl_platform" = "xyes"; then
5997 SUPPORT_EGL_PLATFORM_KMS_TRUE=
5998 SUPPORT_EGL_PLATFORM_KMS_FALSE='#'
6000 SUPPORT_EGL_PLATFORM_KMS_TRUE='#'
6001 SUPPORT_EGL_PLATFORM_KMS_FALSE=
6005 # Check whether --enable-wayland-egl-server was given.
6006 if test "${enable_wayland_egl_server+set}" = set; then :
6007 enableval=$enable_wayland_egl_server;
6009 enable_wayland_egl_server=no
6013 if test "x$enable_wayland_egl_server" == "xyes"; then :
6016 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES wayland-server"
6017 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT"
6020 if test "x$enable_wayland_egl_server" = "xyes"; then
6021 SUPPORT_WAYLAND_EGL_SERVER_TRUE=
6022 SUPPORT_WAYLAND_EGL_SERVER_FALSE='#'
6024 SUPPORT_WAYLAND_EGL_SERVER_TRUE='#'
6025 SUPPORT_WAYLAND_EGL_SERVER_FALSE=
6029 # Check whether --enable-android-egl-platform was given.
6030 if test "${enable_android_egl_platform+set}" = set; then :
6031 enableval=$enable_android_egl_platform;
6033 enable_android_egl_platform=no
6037 if test "x$enable_android_egl_platform" == "xyes"; then :
6039 EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
6041 EGL_PLATFORMS="$EGL_PLATFORMS android"
6043 ac_fn_c_check_header_mongrel "$LINENO" "android/native_window.h" "ac_cv_header_android_native_window_h" "$ac_includes_default"
6044 if test "x$ac_cv_header_android_native_window_h" = xyes; then :
6047 as_fn_error $? "Unable to locate android/native_window.h" "$LINENO" 5
6052 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_ANDROID_SUPPORT"
6055 if test "x$enable_android_egl_platform" = "xyes"; then
6056 SUPPORT_EGL_PLATFORM_ANDROID_TRUE=
6057 SUPPORT_EGL_PLATFORM_ANDROID_FALSE='#'
6059 SUPPORT_EGL_PLATFORM_ANDROID_TRUE='#'
6060 SUPPORT_EGL_PLATFORM_ANDROID_FALSE=
6064 # Check whether --enable-xlib-egl-platform was given.
6065 if test "${enable_xlib_egl_platform+set}" = set; then :
6066 enableval=$enable_xlib_egl_platform;
6068 if test "x$enable_gles1" = "xyes" -o "x$enable_gles2" = "xyes" && test $EGL_PLATFORM_COUNT -eq 0; then :
6069 enable_xlib_egl_platform=yes
6071 enable_xlib_egl_platform=no
6076 if test "x$enable_xlib_egl_platform" = "xyes"; then :
6078 EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
6081 EGL_PLATFORMS="$EGL_PLATFORMS xlib"
6083 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT"
6086 if test "x$enable_xlib_egl_platform" = "xyes"; then
6087 SUPPORT_EGL_PLATFORM_XLIB_TRUE=
6088 SUPPORT_EGL_PLATFORM_XLIB_FALSE='#'
6090 SUPPORT_EGL_PLATFORM_XLIB_TRUE='#'
6091 SUPPORT_EGL_PLATFORM_XLIB_FALSE=
6095 if test "x$NEED_EGL" = "xyes" && test "x$EGL_CHECKED" != "xyes"; then :
6097 if test -n "$PKG_CONFIG" && \
6098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5
6099 ($PKG_CONFIG --exists --print-errors "egl") 2>&5
6101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102 test $ac_status = 0; }; then
6103 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES egl"
6106 for ac_header in EGL/egl.h
6108 ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
6109 if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
6110 cat >>confdefs.h <<_ACEOF
6111 #define HAVE_EGL_EGL_H 1
6115 as_fn_error $? "Unable to locate required EGL headers" "$LINENO" 5
6120 for ac_header in EGL/eglext.h
6122 ac_fn_c_check_header_compile "$LINENO" "EGL/eglext.h" "ac_cv_header_EGL_eglext_h" "#include <EGL/egl.h>
6124 if test "x$ac_cv_header_EGL_eglext_h" = xyes; then :
6125 cat >>confdefs.h <<_ACEOF
6126 #define HAVE_EGL_EGLEXT_H 1
6130 as_fn_error $? "Unable to locate required EGL headers" "$LINENO" 5
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglInitialize in -lEGL" >&5
6137 $as_echo_n "checking for eglInitialize in -lEGL... " >&6; }
6138 if ${ac_cv_lib_EGL_eglInitialize+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 ac_check_lib_save_LIBS=$LIBS
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6146 /* Override any GCC internal prototype to avoid an error.
6147 Use char because int might match the return type of a GCC
6148 builtin and then its argument prototype would still apply. */
6152 char eglInitialize ();
6156 return eglInitialize ();
6161 if ac_fn_c_try_link "$LINENO"; then :
6162 ac_cv_lib_EGL_eglInitialize=yes
6164 ac_cv_lib_EGL_eglInitialize=no
6166 rm -f core conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
6168 LIBS=$ac_check_lib_save_LIBS
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglInitialize" >&5
6171 $as_echo "$ac_cv_lib_EGL_eglInitialize" >&6; }
6172 if test "x$ac_cv_lib_EGL_eglInitialize" = xyes; then :
6173 COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -lEGL"
6175 as_fn_error $? "Unable to locate required EGL library" "$LINENO" 5
6179 COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -lEGL"
6184 COGL_EGL_INCLUDES="#include <EGL/egl.h>
6185 #include <EGL/eglext.h>"
6190 if test "x$NEED_EGL" = "xyes"; then :
6193 GL_WINSYS_APIS="$GL_WINSYS_APIS egl"
6194 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_SUPPORT"
6198 if test "x$SUPPORT_EGL" = "xyes"; then
6200 SUPPORT_EGL_FALSE='#'
6202 SUPPORT_EGL_TRUE='#'
6207 # Check whether --enable-sdl was given.
6208 if test "${enable_sdl+set}" = set; then :
6209 enableval=$enable_sdl;
6214 if test "x$enable_sdl" = "xyes"; then :
6216 if test -n "$PKG_CONFIG" && \
6217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
6218 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
6220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221 test $ac_status = 0; }; then
6224 as_fn_error $? "SDL support requested but SDL not found" "$LINENO" 5
6228 GL_WINSYS_APIS="$GL_WINSYS_APIS sdl"
6229 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES sdl"
6231 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_SDL_SUPPORT"
6236 if test "x$SUPPORT_SDL" = "xyes"; then
6238 SUPPORT_SDL_FALSE='#'
6240 SUPPORT_SDL_TRUE='#'
6245 if test "x$NEED_XLIB" = "xyes"; then :
6247 X11_MODULES="x11 xext xfixes >= 3 xdamage xcomposite >= 0.4"
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DUMMY" >&5
6251 $as_echo_n "checking for DUMMY... " >&6; }
6253 if test -n "$DUMMY_CFLAGS"; then
6254 pkg_cv_DUMMY_CFLAGS="$DUMMY_CFLAGS"
6255 elif test -n "$PKG_CONFIG"; then
6256 if test -n "$PKG_CONFIG" && \
6257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_MODULES\""; } >&5
6258 ($PKG_CONFIG --exists --print-errors "$X11_MODULES") 2>&5
6260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6261 test $ac_status = 0; }; then
6262 pkg_cv_DUMMY_CFLAGS=`$PKG_CONFIG --cflags "$X11_MODULES" 2>/dev/null`
6269 if test -n "$DUMMY_LIBS"; then
6270 pkg_cv_DUMMY_LIBS="$DUMMY_LIBS"
6271 elif test -n "$PKG_CONFIG"; then
6272 if test -n "$PKG_CONFIG" && \
6273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_MODULES\""; } >&5
6274 ($PKG_CONFIG --exists --print-errors "$X11_MODULES") 2>&5
6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277 test $ac_status = 0; }; then
6278 pkg_cv_DUMMY_LIBS=`$PKG_CONFIG --libs "$X11_MODULES" 2>/dev/null`
6288 if test $pkg_failed = yes; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6293 _pkg_short_errors_supported=yes
6295 _pkg_short_errors_supported=no
6297 if test $_pkg_short_errors_supported = yes; then
6298 DUMMY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_MODULES" 2>&1`
6300 DUMMY_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_MODULES" 2>&1`
6302 # Put the nasty error message in config.log where it belongs
6303 echo "$DUMMY_PKG_ERRORS" >&5
6305 as_fn_error $? "Package requirements ($X11_MODULES) were not met:
6309 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6310 installed software in a non-standard prefix.
6312 Alternatively, you may set the environment variables DUMMY_CFLAGS
6313 and DUMMY_LIBS to avoid the need to call pkg-config.
6314 See the pkg-config man page for more details." "$LINENO" 5
6316 elif test $pkg_failed = untried; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6321 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6322 is in your PATH or set the PKG_CONFIG environment variable to the full
6325 Alternatively, you may set the environment variables DUMMY_CFLAGS
6326 and DUMMY_LIBS to avoid the need to call pkg-config.
6327 See the pkg-config man page for more details.
6329 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6330 See \`config.log' for more details" "$LINENO" 5; }
6333 DUMMY_CFLAGS=$pkg_cv_DUMMY_CFLAGS
6334 DUMMY_LIBS=$pkg_cv_DUMMY_LIBS
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6336 $as_echo "yes" >&6; }
6337 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES $X11_MODULES"
6342 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_X11"
6343 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_X11_SUPPORT"
6344 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_XLIB"
6345 COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_XLIB_SUPPORT"
6349 if test "x$SUPPORT_X11" = "xyes"; then
6357 if test "x$SUPPORT_X11" = "xyes"; then
6359 SUPPORT_X11_FALSE='#'
6361 SUPPORT_X11_TRUE='#'
6365 if test "x$SUPPORT_XLIB" = "xyes"; then
6367 SUPPORT_XLIB_FALSE='#'
6369 SUPPORT_XLIB_TRUE='#'
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6380 if test -n "$ac_tool_prefix"; then
6381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_CC+:} false; then :
6386 $as_echo_n "(cached) " >&6
6388 if test -n "$CC"; then
6389 ac_cv_prog_CC="$CC" # Let the user override the test.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 if test -n "$CC"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6411 $as_echo "$CC" >&6; }
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6419 if test -z "$ac_cv_prog_CC"; then
6421 # Extract the first word of "gcc", so it can be a program name with args.
6422 set dummy gcc; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6426 $as_echo_n "(cached) " >&6
6428 if test -n "$ac_ct_CC"; then
6429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_prog_ac_ct_CC="gcc"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6449 if test -n "$ac_ct_CC"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6451 $as_echo "$ac_ct_CC" >&6; }
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6457 if test "x$ac_ct_CC" = x; then
6460 case $cross_compiling:$ac_tool_warned in
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6464 ac_tool_warned=yes ;;
6472 if test -z "$CC"; then
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}cc; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_CC+:} false; then :
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$CC"; then
6482 ac_cv_prog_CC="$CC" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_CC="${ac_tool_prefix}cc"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 if test -n "$CC"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6504 $as_echo "$CC" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6513 if test -z "$CC"; then
6514 # Extract the first word of "cc", so it can be a program name with args.
6515 set dummy cc; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_CC+:} false; then :
6519 $as_echo_n "(cached) " >&6
6521 if test -n "$CC"; then
6522 ac_cv_prog_CC="$CC" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6533 ac_prog_rejected=yes
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 if test $ac_prog_rejected = yes; then
6545 # We found a bogon in the path, so make sure we never use it.
6546 set dummy $ac_cv_prog_CC
6548 if test $# != 0; then
6549 # We chose a different compiler from the bogus one.
6550 # However, it has the same basename, so the bogon will be chosen
6551 # first if we set CC to just the basename; use the full file name.
6553 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6559 if test -n "$CC"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6561 $as_echo "$CC" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6569 if test -z "$CC"; then
6570 if test -n "$ac_tool_prefix"; then
6571 for ac_prog in cl.exe
6573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_CC+:} false; then :
6578 $as_echo_n "(cached) " >&6
6580 if test -n "$CC"; then
6581 ac_cv_prog_CC="$CC" # Let the user override the test.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 if test -n "$CC"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6603 $as_echo "$CC" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6610 test -n "$CC" && break
6613 if test -z "$CC"; then
6615 for ac_prog in cl.exe
6617 # Extract the first word of "$ac_prog", so it can be a program name with args.
6618 set dummy $ac_prog; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6622 $as_echo_n "(cached) " >&6
6624 if test -n "$ac_ct_CC"; then
6625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_prog_ac_ct_CC="$ac_prog"
6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6645 if test -n "$ac_ct_CC"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6647 $as_echo "$ac_ct_CC" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6654 test -n "$ac_ct_CC" && break
6657 if test "x$ac_ct_CC" = x; then
6660 case $cross_compiling:$ac_tool_warned in
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664 ac_tool_warned=yes ;;
6673 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6675 as_fn_error $? "no acceptable C compiler found in \$PATH
6676 See \`config.log' for more details" "$LINENO" 5; }
6678 # Provide some information about the compiler.
6679 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6682 for ac_option in --version -v -V -qversion; do
6683 { { ac_try="$ac_compiler $ac_option >&5"
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6689 $as_echo "$ac_try_echo"; } >&5
6690 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6692 if test -s conftest.err; then
6694 ... rest of stderr output deleted ...
6695 10q' conftest.err >conftest.er1
6696 cat conftest.er1 >&5
6698 rm -f conftest.er1 conftest.err
6699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700 test $ac_status = 0; }
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6704 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6705 if ${ac_cv_c_compiler_gnu+:} false; then :
6706 $as_echo_n "(cached) " >&6
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6722 if ac_fn_c_try_compile "$LINENO"; then :
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6732 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6733 if test $ac_compiler_gnu = yes; then
6738 ac_test_CFLAGS=${CFLAGS+set}
6739 ac_save_CFLAGS=$CFLAGS
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6741 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6742 if ${ac_cv_prog_cc_g+:} false; then :
6743 $as_echo_n "(cached) " >&6
6745 ac_save_c_werror_flag=$ac_c_werror_flag
6746 ac_c_werror_flag=yes
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6760 if ac_fn_c_try_compile "$LINENO"; then :
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6775 if ac_fn_c_try_compile "$LINENO"; then :
6778 ac_c_werror_flag=$ac_save_c_werror_flag
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6791 if ac_fn_c_try_compile "$LINENO"; then :
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 ac_c_werror_flag=$ac_save_c_werror_flag
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6802 $as_echo "$ac_cv_prog_cc_g" >&6; }
6803 if test "$ac_test_CFLAGS" = set; then
6804 CFLAGS=$ac_save_CFLAGS
6805 elif test $ac_cv_prog_cc_g = yes; then
6806 if test "$GCC" = yes; then
6812 if test "$GCC" = yes; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6819 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6820 if ${ac_cv_prog_cc_c89+:} false; then :
6821 $as_echo_n "(cached) " >&6
6823 ac_cv_prog_cc_c89=no
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6829 #include <sys/types.h>
6830 #include <sys/stat.h>
6831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6832 struct buf { int x; };
6833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6834 static char *e (p, i)
6840 static char *f (char * (*g) (char **, int), char **p, ...)
6845 s = g (p, va_arg (v,int));
6850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6851 function prototypes and stuff, but not '\xHH' hex character constants.
6852 These don't provoke an error unfortunately, instead are silently treated
6853 as 'x'. The following induces an error, until -std is added to get
6854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6855 array size at least. It's necessary to write '\x00'==0 to get something
6856 that's true only with -std. */
6857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6860 inside strings and character constants. */
6862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6864 int test (int i, double x);
6865 struct s1 {int (*f) (int a);};
6866 struct s2 {int (*f) (double a);};
6867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6881 CC="$ac_save_CC $ac_arg"
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883 ac_cv_prog_cc_c89=$ac_arg
6885 rm -f core conftest.err conftest.$ac_objext
6886 test "x$ac_cv_prog_cc_c89" != "xno" && break
6888 rm -f conftest.$ac_ext
6893 case "x$ac_cv_prog_cc_c89" in
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6896 $as_echo "none needed" >&6; } ;;
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6899 $as_echo "unsupported" >&6; } ;;
6901 CC="$CC $ac_cv_prog_cc_c89"
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6903 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6905 if test "x$ac_cv_prog_cc_c89" != xno; then :
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915 depcc="$CC" am_compiler_list=
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6918 $as_echo_n "checking dependency style of $depcc... " >&6; }
6919 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6923 # We make a subdir and do the tests there. Otherwise we can end up
6924 # making bogus files that we don't know about and never remove. For
6925 # instance it was reported that on HP-UX the gcc test will end up
6926 # making a dummy file named `D' -- because `-MD' means `put the output
6929 # Copy depcomp to subdir because otherwise we won't find it if we're
6930 # using a relative directory.
6931 cp "$am_depcomp" conftest.dir
6933 # We will build objects and dependencies in a subdirectory because
6934 # it helps to detect inapplicable dependency modes. For instance
6935 # both Tru64's cc and ICC support -MD to output dependencies as a
6936 # side effect of compilation, but ICC will put the dependencies in
6937 # the current directory while Tru64 will put them in the object
6941 am_cv_CC_dependencies_compiler_type=none
6942 if test "$am_compiler_list" = ""; then
6943 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6946 case " $depcc " in #(
6947 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6950 for depmode in $am_compiler_list; do
6951 # Setup a source with many dependencies, because some compilers
6952 # like to wrap large dependency lists on column 80 (with \), and
6953 # we should not choose a depcomp mode which is confused by this.
6955 # We need to recreate these files for each test, as the compiler may
6956 # overwrite some of them when testing with obscure command lines.
6957 # This happens at least with the AIX C compiler.
6959 for i in 1 2 3 4 5 6; do
6960 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6961 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6962 # Solaris 8's {/usr,}/bin/sh.
6963 touch sub/conftst$i.h
6965 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6967 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6968 # mode. It turns out that the SunPro C++ compiler does not properly
6969 # handle `-M -o', and we need to detect this. Also, some Intel
6970 # versions had trouble with output in subdirs
6971 am__obj=sub/conftest.${OBJEXT-o}
6972 am__minus_obj="-o $am__obj"
6975 # This depmode causes a compiler race in universal mode.
6976 test "$am__universal" = false || continue
6979 # after this tag, mechanisms are not by side-effect, so they'll
6980 # only be used when explicitly requested
6981 if test "x$enable_dependency_tracking" = xyes; then
6987 msvisualcpp | msvcmsys)
6988 # This compiler won't grok `-c -o', but also, the minuso test has
6989 # not run yet. These depmodes are late enough in the game, and
6990 # so weak that their functioning should not be impacted.
6991 am__obj=conftest.${OBJEXT-o}
6996 if depmode=$depmode \
6997 source=sub/conftest.c object=$am__obj \
6998 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6999 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7000 >/dev/null 2>conftest.err &&
7001 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7003 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7005 # icc doesn't choke on unknown options, it will just issue warnings
7006 # or remarks (even with -Werror). So we grep stderr for any message
7007 # that says an option was ignored or not supported.
7008 # When given -MP, icc 7.0 and 7.1 complain thusly:
7009 # icc: Command line warning: ignoring option '-M'; no argument required
7010 # The diagnosis changed in icc 8.0:
7011 # icc: Command line remark: option '-MP' not supported
7012 if (grep 'ignoring option' conftest.err ||
7013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7014 am_cv_CC_dependencies_compiler_type=$depmode
7023 am_cv_CC_dependencies_compiler_type=none
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7028 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7029 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7032 test "x$enable_dependency_tracking" != xno \
7033 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7035 am__fastdepCC_FALSE='#'
7037 am__fastdepCC_TRUE='#'
7038 am__fastdepCC_FALSE=
7043 ac_cpp='$CPP $CPPFLAGS'
7044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7048 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7049 # On Suns, sometimes $CPP names a directory.
7050 if test -n "$CPP" && test -d "$CPP"; then
7053 if test -z "$CPP"; then
7054 if ${ac_cv_prog_CPP+:} false; then :
7055 $as_echo_n "(cached) " >&6
7057 # Double quotes because CPP needs to be expanded
7058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7061 for ac_c_preproc_warn_flag in '' yes
7063 # Use a header file that comes with gcc, so configuring glibc
7064 # with a fresh cross-compiler works.
7065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7066 # <limits.h> exists even on freestanding compilers.
7067 # On the NeXT, cc -E runs the code through the compiler's parser,
7068 # not just through cpp. "Syntax error" is here to catch this case.
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7072 # include <limits.h>
7074 # include <assert.h>
7078 if ac_fn_c_try_cpp "$LINENO"; then :
7081 # Broken: fails on valid input.
7084 rm -f conftest.err conftest.i conftest.$ac_ext
7086 # OK, works on sane cases. Now check whether nonexistent headers
7087 # can be detected and how.
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7090 #include <ac_nonexistent.h>
7092 if ac_fn_c_try_cpp "$LINENO"; then :
7093 # Broken: success on invalid input.
7096 # Passes both tests.
7100 rm -f conftest.err conftest.i conftest.$ac_ext
7103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7104 rm -f conftest.i conftest.err conftest.$ac_ext
7105 if $ac_preproc_ok; then :
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7118 $as_echo "$CPP" >&6; }
7120 for ac_c_preproc_warn_flag in '' yes
7122 # Use a header file that comes with gcc, so configuring glibc
7123 # with a fresh cross-compiler works.
7124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7125 # <limits.h> exists even on freestanding compilers.
7126 # On the NeXT, cc -E runs the code through the compiler's parser,
7127 # not just through cpp. "Syntax error" is here to catch this case.
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7131 # include <limits.h>
7133 # include <assert.h>
7137 if ac_fn_c_try_cpp "$LINENO"; then :
7140 # Broken: fails on valid input.
7143 rm -f conftest.err conftest.i conftest.$ac_ext
7145 # OK, works on sane cases. Now check whether nonexistent headers
7146 # can be detected and how.
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 #include <ac_nonexistent.h>
7151 if ac_fn_c_try_cpp "$LINENO"; then :
7152 # Broken: success on invalid input.
7155 # Passes both tests.
7159 rm -f conftest.err conftest.i conftest.$ac_ext
7162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7163 rm -f conftest.i conftest.err conftest.$ac_ext
7164 if $ac_preproc_ok; then :
7167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7169 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7170 See \`config.log' for more details" "$LINENO" 5; }
7174 ac_cpp='$CPP $CPPFLAGS'
7175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7179 if test "x$CC" != xcc; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7181 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7184 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7186 set dummy $CC; ac_cc=`$as_echo "$2" |
7187 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7188 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7189 $as_echo_n "(cached) " >&6
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7202 # Make sure it works both with $CC and with simple cc.
7203 # We do the test twice because some compilers refuse to overwrite an
7204 # existing .o file with -o, though they will create one.
7205 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7207 if { { case "(($ac_try" in
7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7212 $as_echo "$ac_try_echo"; } >&5
7213 (eval "$ac_try") 2>&5
7215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7216 test $ac_status = 0; } &&
7217 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7222 $as_echo "$ac_try_echo"; } >&5
7223 (eval "$ac_try") 2>&5
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; };
7228 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7229 if test "x$CC" != xcc; then
7230 # Test first that cc exists at all.
7231 if { ac_try='cc -c conftest.$ac_ext >&5'
7232 { { case "(($ac_try" in
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7237 $as_echo "$ac_try_echo"; } >&5
7238 (eval "$ac_try") 2>&5
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; }; then
7242 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7244 if { { case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7249 $as_echo "$ac_try_echo"; } >&5
7250 (eval "$ac_try") 2>&5
7252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253 test $ac_status = 0; } &&
7254 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7259 $as_echo "$ac_try_echo"; } >&5
7260 (eval "$ac_try") 2>&5
7262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7263 test $ac_status = 0; };
7268 # cc exists but doesn't like -o.
7269 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7274 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7276 rm -f core conftest*
7279 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7281 $as_echo "yes" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7286 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7290 # FIXME: we rely on the cache variable name because
7291 # there is no other way.
7293 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7294 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7295 if test "$am_t" != yes; then
7296 # Losing compiler, so override with the script.
7297 # FIXME: It is wrong to rewrite CC.
7298 # But if we don't then we get into trouble of one sort or another.
7299 # A longer-term fix would be to have automake use am__CC in this case,
7300 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7301 CC="$am_aux_dir/compile $CC"
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7306 $as_echo_n "checking for library containing strerror... " >&6; }
7307 if ${ac_cv_search_strerror+:} false; then :
7308 $as_echo_n "(cached) " >&6
7310 ac_func_search_save_LIBS=$LIBS
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7314 /* Override any GCC internal prototype to avoid an error.
7315 Use char because int might match the return type of a GCC
7316 builtin and then its argument prototype would still apply. */
7329 for ac_lib in '' cposix; do
7330 if test -z "$ac_lib"; then
7331 ac_res="none required"
7334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7336 if ac_fn_c_try_link "$LINENO"; then :
7337 ac_cv_search_strerror=$ac_res
7339 rm -f core conftest.err conftest.$ac_objext \
7341 if ${ac_cv_search_strerror+:} false; then :
7345 if ${ac_cv_search_strerror+:} false; then :
7348 ac_cv_search_strerror=no
7351 LIBS=$ac_func_search_save_LIBS
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7354 $as_echo "$ac_cv_search_strerror" >&6; }
7355 ac_res=$ac_cv_search_strerror
7356 if test "$ac_res" != no; then :
7357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7362 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7363 if ${ac_cv_c_const+:} false; then :
7364 $as_echo_n "(cached) " >&6
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7372 /* FIXME: Include the comments suggested by Paul. */
7374 /* Ultrix mips cc rejects this. */
7375 typedef int charset[2];
7377 /* SunOS 4.1.1 cc rejects this. */
7378 char const *const *pcpcc;
7380 /* NEC SVR4.0.2 mips cc rejects this. */
7381 struct point {int x, y;};
7382 static struct point const zero = {0,0};
7383 /* AIX XL C 1.02.0.0 rejects this.
7384 It does not let you subtract one const X* pointer from another in
7385 an arm of an if-expression whose if-part is not a constant
7387 const char *g = "string";
7388 pcpcc = &g + (g ? g-g : 0);
7389 /* HPUX 7.0 cc rejects these. */
7391 ppc = (char**) pcpcc;
7392 pcpcc = (char const *const *) ppc;
7393 { /* SCO 3.2v4 cc rejects this. */
7395 char const *s = 0 ? (char *) 0 : (char const *) 0;
7400 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7402 const int *foo = &x[0];
7405 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7406 typedef const int *iptr;
7410 { /* AIX XL C 1.02.0.0 rejects this saying
7411 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7412 struct s { int j; const int *ap[3]; };
7413 struct s *b; b->j = 5;
7415 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7419 return !cs[0] && !zero.x;
7426 if ac_fn_c_try_compile "$LINENO"; then :
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7434 $as_echo "$ac_cv_c_const" >&6; }
7435 if test $ac_cv_c_const = no; then
7437 $as_echo "#define const /**/" >>confdefs.h
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7447 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7453 macro_revision='1.3293'
7467 ltmain="$ac_aux_dir/ltmain.sh"
7469 # Backslashify metacharacters that are still active within
7470 # double-quoted strings.
7471 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7473 # Same as above, but do not quote variable references.
7474 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7476 # Sed substitution to delay expansion of an escaped shell variable in a
7477 # double_quote_subst'ed string.
7478 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7480 # Sed substitution to delay expansion of an escaped single quote.
7481 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7483 # Sed substitution to avoid accidental globbing in evaled expressions
7484 no_glob_subst='s/\*/\\\*/g'
7486 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7487 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7488 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7491 $as_echo_n "checking how to print strings... " >&6; }
7492 # Test print first, because it will be a builtin if present.
7493 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7494 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7496 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7499 # Use this function as a fallback that always works.
7500 func_fallback_echo ()
7502 eval 'cat <<_LTECHO_EOF
7506 ECHO='func_fallback_echo'
7509 # func_echo_all arg...
7510 # Invoke $ECHO with all args, space-separated.
7517 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7518 $as_echo "printf" >&6; } ;;
7519 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7520 $as_echo "print -r" >&6; } ;;
7521 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7522 $as_echo "cat" >&6; } ;;
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7539 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7540 if ${ac_cv_path_SED+:} false; then :
7541 $as_echo_n "(cached) " >&6
7543 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7544 for ac_i in 1 2 3 4 5 6 7; do
7545 ac_script="$ac_script$as_nl$ac_script"
7547 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7548 { ac_script=; unset ac_script;}
7549 if test -z "$SED"; then
7550 ac_path_SED_found=false
7551 # Loop through the user's path and test for each of PROGNAME-LIST
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_prog in sed gsed; do
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7560 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7561 # Check for GNU ac_path_SED and select it if it is found.
7562 # Check for GNU $ac_path_SED
7563 case `"$ac_path_SED" --version 2>&1` in
7565 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7568 $as_echo_n 0123456789 >"conftest.in"
7571 cat "conftest.in" "conftest.in" >"conftest.tmp"
7572 mv "conftest.tmp" "conftest.in"
7573 cp "conftest.in" "conftest.nl"
7574 $as_echo '' >> "conftest.nl"
7575 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7577 as_fn_arith $ac_count + 1 && ac_count=$as_val
7578 if test $ac_count -gt ${ac_path_SED_max-0}; then
7579 # Best one so far, save it but keep looking for a better one
7580 ac_cv_path_SED="$ac_path_SED"
7581 ac_path_SED_max=$ac_count
7583 # 10*(2^10) chars as input seems more than enough
7584 test $ac_count -gt 10 && break
7586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7589 $ac_path_SED_found && break 3
7594 if test -z "$ac_cv_path_SED"; then
7595 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7603 $as_echo "$ac_cv_path_SED" >&6; }
7604 SED="$ac_cv_path_SED"
7607 test -z "$SED" && SED=sed
7608 Xsed="$SED -e 1s/^X//"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7621 $as_echo_n "checking for fgrep... " >&6; }
7622 if ${ac_cv_path_FGREP+:} false; then :
7623 $as_echo_n "(cached) " >&6
7625 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7626 then ac_cv_path_FGREP="$GREP -F"
7628 if test -z "$FGREP"; then
7629 ac_path_FGREP_found=false
7630 # Loop through the user's path and test for each of PROGNAME-LIST
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7635 test -z "$as_dir" && as_dir=.
7636 for ac_prog in fgrep; do
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7639 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7640 # Check for GNU ac_path_FGREP and select it if it is found.
7641 # Check for GNU $ac_path_FGREP
7642 case `"$ac_path_FGREP" --version 2>&1` in
7644 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7647 $as_echo_n 0123456789 >"conftest.in"
7650 cat "conftest.in" "conftest.in" >"conftest.tmp"
7651 mv "conftest.tmp" "conftest.in"
7652 cp "conftest.in" "conftest.nl"
7653 $as_echo 'FGREP' >> "conftest.nl"
7654 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7656 as_fn_arith $ac_count + 1 && ac_count=$as_val
7657 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7658 # Best one so far, save it but keep looking for a better one
7659 ac_cv_path_FGREP="$ac_path_FGREP"
7660 ac_path_FGREP_max=$ac_count
7662 # 10*(2^10) chars as input seems more than enough
7663 test $ac_count -gt 10 && break
7665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7668 $ac_path_FGREP_found && break 3
7673 if test -z "$ac_cv_path_FGREP"; then
7674 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7677 ac_cv_path_FGREP=$FGREP
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7683 $as_echo "$ac_cv_path_FGREP" >&6; }
7684 FGREP="$ac_cv_path_FGREP"
7687 test -z "$GREP" && GREP=grep
7707 # Check whether --with-gnu-ld was given.
7708 if test "${with_gnu_ld+set}" = set; then :
7709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7715 if test "$GCC" = yes; then
7716 # Check if gcc -print-prog-name=ld gives a path.
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7718 $as_echo_n "checking for ld used by $CC... " >&6; }
7721 # gcc leaves a trailing carriage return which upsets mingw
7722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7727 # Accept absolute paths.
7729 re_direlt='/[^/][^/]*/\.\./'
7730 # Canonicalize the pathname of ld
7731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7735 test -z "$LD" && LD="$ac_prog"
7738 # If it fails, then pretend we aren't using GCC.
7742 # If it is relative, then search for the first ld in PATH.
7746 elif test "$with_gnu_ld" = yes; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7748 $as_echo_n "checking for GNU ld... " >&6; }
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7751 $as_echo_n "checking for non-GNU ld... " >&6; }
7753 if ${lt_cv_path_LD+:} false; then :
7754 $as_echo_n "(cached) " >&6
7756 if test -z "$LD"; then
7757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7758 for ac_dir in $PATH; do
7760 test -z "$ac_dir" && ac_dir=.
7761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7762 lt_cv_path_LD="$ac_dir/$ac_prog"
7763 # Check to see if the program is GNU ld. I'd rather use --version,
7764 # but apparently some variants of GNU ld only accept -v.
7765 # Break only if it was the GNU/non-GNU ld that we prefer.
7766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7767 *GNU* | *'with BFD'*)
7768 test "$with_gnu_ld" != no && break
7771 test "$with_gnu_ld" != yes && break
7778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7783 if test -n "$LD"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7785 $as_echo "$LD" >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7790 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7792 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7793 if ${lt_cv_prog_gnu_ld+:} false; then :
7794 $as_echo_n "(cached) " >&6
7796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7797 case `$LD -v 2>&1 </dev/null` in
7798 *GNU* | *'with BFD'*)
7799 lt_cv_prog_gnu_ld=yes
7802 lt_cv_prog_gnu_ld=no
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7807 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7808 with_gnu_ld=$lt_cv_prog_gnu_ld
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7819 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7820 if ${lt_cv_path_NM+:} false; then :
7821 $as_echo_n "(cached) " >&6
7823 if test -n "$NM"; then
7824 # Let the user override the test.
7827 lt_nm_to_check="${ac_tool_prefix}nm"
7828 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7829 lt_nm_to_check="$lt_nm_to_check nm"
7831 for lt_tmp_nm in $lt_nm_to_check; do
7832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7833 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7835 test -z "$ac_dir" && ac_dir=.
7836 tmp_nm="$ac_dir/$lt_tmp_nm"
7837 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7838 # Check to see if the nm accepts a BSD-compat flag.
7839 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7840 # nm: unknown option "B" ignored
7841 # Tru64's nm complains that /dev/null is an invalid object file
7842 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7843 */dev/null* | *'Invalid file or object type'*)
7844 lt_cv_path_NM="$tmp_nm -B"
7848 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7850 lt_cv_path_NM="$tmp_nm -p"
7854 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7855 continue # so that we can try to find one that supports BSD flags
7864 : ${lt_cv_path_NM=no}
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7868 $as_echo "$lt_cv_path_NM" >&6; }
7869 if test "$lt_cv_path_NM" != "no"; then
7872 # Didn't find any BSD compatible name lister, look for dumpbin.
7873 if test -n "$DUMPBIN"; then :
7874 # Let the user override the test.
7876 if test -n "$ac_tool_prefix"; then
7877 for ac_prog in dumpbin "link -dump"
7879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_DUMPBIN+:} false; then :
7884 $as_echo_n "(cached) " >&6
7886 if test -n "$DUMPBIN"; then
7887 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 DUMPBIN=$ac_cv_prog_DUMPBIN
7907 if test -n "$DUMPBIN"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7909 $as_echo "$DUMPBIN" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7916 test -n "$DUMPBIN" && break
7919 if test -z "$DUMPBIN"; then
7920 ac_ct_DUMPBIN=$DUMPBIN
7921 for ac_prog in dumpbin "link -dump"
7923 # Extract the first word of "$ac_prog", so it can be a program name with args.
7924 set dummy $ac_prog; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7928 $as_echo_n "(cached) " >&6
7930 if test -n "$ac_ct_DUMPBIN"; then
7931 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7951 if test -n "$ac_ct_DUMPBIN"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7953 $as_echo "$ac_ct_DUMPBIN" >&6; }
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7960 test -n "$ac_ct_DUMPBIN" && break
7963 if test "x$ac_ct_DUMPBIN" = x; then
7966 case $cross_compiling:$ac_tool_warned in
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7970 ac_tool_warned=yes ;;
7972 DUMPBIN=$ac_ct_DUMPBIN
7976 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7978 DUMPBIN="$DUMPBIN -symbols"
7986 if test "$DUMPBIN" != ":"; then
7990 test -z "$NM" && NM=nm
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7998 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7999 if ${lt_cv_nm_interface+:} false; then :
8000 $as_echo_n "(cached) " >&6
8002 lt_cv_nm_interface="BSD nm"
8003 echo "int some_variable = 0;" > conftest.$ac_ext
8004 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8005 (eval "$ac_compile" 2>conftest.err)
8006 cat conftest.err >&5
8007 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8008 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8009 cat conftest.err >&5
8010 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8011 cat conftest.out >&5
8012 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8013 lt_cv_nm_interface="MS dumpbin"
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8018 $as_echo "$lt_cv_nm_interface" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8021 $as_echo_n "checking whether ln -s works... " >&6; }
8023 if test "$LN_S" = "ln -s"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8025 $as_echo "yes" >&6; }
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8028 $as_echo "no, using $LN_S" >&6; }
8031 # find the maximum length of command line arguments
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8033 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8034 if ${lt_cv_sys_max_cmd_len+:} false; then :
8035 $as_echo_n "(cached) " >&6
8042 # On DJGPP, this test can blow up pretty badly due to problems in libc
8043 # (any single argument exceeding 2000 bytes causes a buffer overrun
8044 # during glob expansion). Even if it were fixed, the result of this
8045 # check would be larger than it should be.
8046 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8050 # Under GNU Hurd, this test is not required because there is
8051 # no limit to the length of command line arguments.
8052 # Libtool will interpret -1 as no limit whatsoever
8053 lt_cv_sys_max_cmd_len=-1;
8056 cygwin* | mingw* | cegcc*)
8057 # On Win9x/ME, this test blows up -- it succeeds, but takes
8058 # about 5 minutes as the teststring grows exponentially.
8059 # Worse, since 9x/ME are not pre-emptively multitasking,
8060 # you end up with a "frozen" computer, even though with patience
8061 # the test eventually succeeds (with a max line length of 256k).
8062 # Instead, let's just punt: use the minimum linelength reported by
8063 # all of the supported platforms: 8192 (on NT/2K/XP).
8064 lt_cv_sys_max_cmd_len=8192;
8068 # On MiNT this can take a long time and run out of memory.
8069 lt_cv_sys_max_cmd_len=8192;
8073 # On AmigaOS with pdksh, this test takes hours, literally.
8074 # So we just punt and use a minimum line length of 8192.
8075 lt_cv_sys_max_cmd_len=8192;
8078 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8079 # This has been around since 386BSD, at least. Likely further.
8080 if test -x /sbin/sysctl; then
8081 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8082 elif test -x /usr/sbin/sysctl; then
8083 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8085 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8087 # And add a safety zone
8088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8093 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8094 lt_cv_sys_max_cmd_len=196608
8098 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8099 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8100 # nice to cause kernel panics so lets avoid the loop below.
8101 # First set a reasonable default.
8102 lt_cv_sys_max_cmd_len=16384
8104 if test -x /sbin/sysconfig; then
8105 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8106 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8111 lt_cv_sys_max_cmd_len=102400
8113 sysv5* | sco5v6* | sysv4.2uw2*)
8114 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8115 if test -n "$kargmax"; then
8116 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8118 lt_cv_sys_max_cmd_len=32768
8122 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8123 if test -n "$lt_cv_sys_max_cmd_len"; then
8124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8127 # Make teststring a little bigger before we do anything with it.
8128 # a 1K string should be a reasonable start.
8129 for i in 1 2 3 4 5 6 7 8 ; do
8130 teststring=$teststring$teststring
8132 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8133 # If test is not a shell built-in, we'll probably end up computing a
8134 # maximum length that is only half of the actual maximum length, but
8136 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8137 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8138 test $i != 17 # 1/2 MB should be enough
8141 teststring=$teststring$teststring
8143 # Only check the string length outside the loop.
8144 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8146 # Add a significant safety factor because C++ compilers can tack on
8147 # massive amounts of additional arguments before passing them to the
8148 # linker. It appears as though 1/2 is a usable value.
8149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8156 if test -n $lt_cv_sys_max_cmd_len ; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8158 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8161 $as_echo "none" >&6; }
8163 max_cmd_len=$lt_cv_sys_max_cmd_len
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8175 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8176 # Try some XSI features
8179 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8181 && eval 'test $(( 1 + 1 )) -eq 2 \
8182 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8185 $as_echo "$xsi_shell" >&6; }
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8189 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8191 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8193 && lt_shell_append=yes
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8195 $as_echo "$lt_shell_append" >&6; }
8198 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8208 # test EBCDIC or ASCII
8209 case `echo X|tr X '\101'` in
8210 A) # ASCII based system
8211 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8212 lt_SP2NL='tr \040 \012'
8213 lt_NL2SP='tr \015\012 \040\040'
8215 *) # EBCDIC based system
8216 lt_SP2NL='tr \100 \n'
8217 lt_NL2SP='tr \r\n \100\100'
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8230 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8231 if ${lt_cv_to_host_file_cmd+:} false; then :
8232 $as_echo_n "(cached) " >&6
8237 *-*-mingw* ) # actually msys
8238 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8241 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8243 * ) # otherwise, assume *nix
8244 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8250 *-*-mingw* ) # actually msys
8251 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8254 lt_cv_to_host_file_cmd=func_convert_file_noop
8256 * ) # otherwise, assume *nix
8257 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8261 * ) # unhandled hosts (and "normal" native builds)
8262 lt_cv_to_host_file_cmd=func_convert_file_noop
8268 to_host_file_cmd=$lt_cv_to_host_file_cmd
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8270 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8277 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8278 if ${lt_cv_to_tool_file_cmd+:} false; then :
8279 $as_echo_n "(cached) " >&6
8281 #assume ordinary cross tools, or native build.
8282 lt_cv_to_tool_file_cmd=func_convert_file_noop
8286 *-*-mingw* ) # actually msys
8287 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8295 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8297 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8304 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8305 if ${lt_cv_ld_reload_flag+:} false; then :
8306 $as_echo_n "(cached) " >&6
8308 lt_cv_ld_reload_flag='-r'
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8311 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8312 reload_flag=$lt_cv_ld_reload_flag
8313 case $reload_flag in
8315 *) reload_flag=" $reload_flag" ;;
8317 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8319 cygwin* | mingw* | pw32* | cegcc*)
8320 if test "$GCC" != yes; then
8325 if test "$GCC" = yes; then
8326 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8328 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8341 if test -n "$ac_tool_prefix"; then
8342 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8343 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if ${ac_cv_prog_OBJDUMP+:} false; then :
8347 $as_echo_n "(cached) " >&6
8349 if test -n "$OBJDUMP"; then
8350 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 OBJDUMP=$ac_cv_prog_OBJDUMP
8370 if test -n "$OBJDUMP"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8372 $as_echo "$OBJDUMP" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8380 if test -z "$ac_cv_prog_OBJDUMP"; then
8381 ac_ct_OBJDUMP=$OBJDUMP
8382 # Extract the first word of "objdump", so it can be a program name with args.
8383 set dummy objdump; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8387 $as_echo_n "(cached) " >&6
8389 if test -n "$ac_ct_OBJDUMP"; then
8390 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8410 if test -n "$ac_ct_OBJDUMP"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8412 $as_echo "$ac_ct_OBJDUMP" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8418 if test "x$ac_ct_OBJDUMP" = x; then
8421 case $cross_compiling:$ac_tool_warned in
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8425 ac_tool_warned=yes ;;
8427 OBJDUMP=$ac_ct_OBJDUMP
8430 OBJDUMP="$ac_cv_prog_OBJDUMP"
8433 test -z "$OBJDUMP" && OBJDUMP=objdump
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8444 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8445 if ${lt_cv_deplibs_check_method+:} false; then :
8446 $as_echo_n "(cached) " >&6
8448 lt_cv_file_magic_cmd='$MAGIC_CMD'
8449 lt_cv_file_magic_test_file=
8450 lt_cv_deplibs_check_method='unknown'
8451 # Need to set the preceding variable on all platforms that support
8452 # interlibrary dependencies.
8453 # 'none' -- dependencies not supported.
8454 # `unknown' -- same as none, but documents that we really don't know.
8455 # 'pass_all' -- all dependencies passed with no checks.
8456 # 'test_compile' -- check by making test program.
8457 # 'file_magic [[regex]]' -- check by looking for files in library path
8458 # which responds to the $file_magic_cmd with a given extended regex.
8459 # If you have `file' or equivalent on your system and you're not sure
8460 # whether `pass_all' will *always* work, you probably want this one.
8464 lt_cv_deplibs_check_method=pass_all
8468 lt_cv_deplibs_check_method=pass_all
8472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8473 lt_cv_file_magic_cmd='/usr/bin/file -L'
8474 lt_cv_file_magic_test_file=/shlib/libc.so
8478 # func_win32_libid is a shell function defined in ltmain.sh
8479 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8480 lt_cv_file_magic_cmd='func_win32_libid'
8484 # Base MSYS/MinGW do not provide the 'file' command needed by
8485 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8486 # unless we find 'file', for example because we are cross-compiling.
8487 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8488 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8489 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8490 lt_cv_file_magic_cmd='func_win32_libid'
8492 # Keep this pattern in sync with the one in func_win32_libid.
8493 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8494 lt_cv_file_magic_cmd='$OBJDUMP -f'
8499 # use the weaker test based on 'objdump'. See mingw*.
8500 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8501 lt_cv_file_magic_cmd='$OBJDUMP -f'
8504 darwin* | rhapsody*)
8505 lt_cv_deplibs_check_method=pass_all
8508 freebsd* | dragonfly*)
8509 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8512 # Not sure whether the presence of OpenBSD here was a mistake.
8513 # Let's accept both of them until this is cleared up.
8514 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8515 lt_cv_file_magic_cmd=/usr/bin/file
8516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8520 lt_cv_deplibs_check_method=pass_all
8525 lt_cv_deplibs_check_method=pass_all
8529 lt_cv_deplibs_check_method=pass_all
8532 hpux10.20* | hpux11*)
8533 lt_cv_file_magic_cmd=/usr/bin/file
8536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8537 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8541 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8545 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8551 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8555 irix5* | irix6* | nonstopux*)
8557 *-32|*"-32 ") libmagic=32-bit;;
8558 *-n32|*"-n32 ") libmagic=N32;;
8559 *-64|*"-64 ") libmagic=64-bit;;
8560 *) libmagic=never-match;;
8562 lt_cv_deplibs_check_method=pass_all
8565 # This must be Linux ELF.
8566 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8567 lt_cv_deplibs_check_method=pass_all
8571 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8580 lt_cv_file_magic_cmd=/usr/bin/file
8581 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8585 lt_cv_deplibs_check_method=pass_all
8589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8596 osf3* | osf4* | osf5*)
8597 lt_cv_deplibs_check_method=pass_all
8601 lt_cv_deplibs_check_method=pass_all
8605 lt_cv_deplibs_check_method=pass_all
8608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8609 lt_cv_deplibs_check_method=pass_all
8613 case $host_vendor in
8615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8619 lt_cv_deplibs_check_method=pass_all
8622 lt_cv_file_magic_cmd='/bin/file'
8623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8626 lt_cv_file_magic_cmd='/bin/file'
8627 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8628 lt_cv_file_magic_test_file=/lib/libc.so
8631 lt_cv_deplibs_check_method=pass_all
8634 lt_cv_deplibs_check_method=pass_all
8640 lt_cv_deplibs_check_method=pass_all
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8646 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8650 if test "$build" = "$host"; then
8653 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8656 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8662 file_magic_cmd=$lt_cv_file_magic_cmd
8663 deplibs_check_method=$lt_cv_deplibs_check_method
8664 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8687 if test -n "$ac_tool_prefix"; then
8688 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8689 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_DLLTOOL+:} false; then :
8693 $as_echo_n "(cached) " >&6
8695 if test -n "$DLLTOOL"; then
8696 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 DLLTOOL=$ac_cv_prog_DLLTOOL
8716 if test -n "$DLLTOOL"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8718 $as_echo "$DLLTOOL" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8726 if test -z "$ac_cv_prog_DLLTOOL"; then
8727 ac_ct_DLLTOOL=$DLLTOOL
8728 # Extract the first word of "dlltool", so it can be a program name with args.
8729 set dummy dlltool; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8733 $as_echo_n "(cached) " >&6
8735 if test -n "$ac_ct_DLLTOOL"; then
8736 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8756 if test -n "$ac_ct_DLLTOOL"; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8758 $as_echo "$ac_ct_DLLTOOL" >&6; }
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8764 if test "x$ac_ct_DLLTOOL" = x; then
8767 case $cross_compiling:$ac_tool_warned in
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8771 ac_tool_warned=yes ;;
8773 DLLTOOL=$ac_ct_DLLTOOL
8776 DLLTOOL="$ac_cv_prog_DLLTOOL"
8779 test -z "$DLLTOOL" && DLLTOOL=dlltool
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8791 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8792 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8793 $as_echo_n "(cached) " >&6
8795 lt_cv_sharedlib_from_linklib_cmd='unknown'
8798 cygwin* | mingw* | pw32* | cegcc*)
8799 # two different shell functions defined in ltmain.sh
8800 # decide which to use based on capabilities of $DLLTOOL
8801 case `$DLLTOOL --help 2>&1` in
8802 *--identify-strict*)
8803 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8806 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8811 # fallback: assume linklib IS sharedlib
8812 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8818 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8819 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8820 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8828 if test -n "$ac_tool_prefix"; then
8831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if ${ac_cv_prog_AR+:} false; then :
8836 $as_echo_n "(cached) " >&6
8838 if test -n "$AR"; then
8839 ac_cv_prog_AR="$AR" # Let the user override the test.
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 if test -n "$AR"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8861 $as_echo "$AR" >&6; }
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8868 test -n "$AR" && break
8871 if test -z "$AR"; then
8875 # Extract the first word of "$ac_prog", so it can be a program name with args.
8876 set dummy $ac_prog; ac_word=$2
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8880 $as_echo_n "(cached) " >&6
8882 if test -n "$ac_ct_AR"; then
8883 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 test -z "$as_dir" && as_dir=.
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892 ac_cv_prog_ac_ct_AR="$ac_prog"
8893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8903 if test -n "$ac_ct_AR"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8905 $as_echo "$ac_ct_AR" >&6; }
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8912 test -n "$ac_ct_AR" && break
8915 if test "x$ac_ct_AR" = x; then
8918 case $cross_compiling:$ac_tool_warned in
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8922 ac_tool_warned=yes ;;
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8942 $as_echo_n "checking for archiver @FILE support... " >&6; }
8943 if ${lt_cv_ar_at_file+:} false; then :
8944 $as_echo_n "(cached) " >&6
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8958 if ac_fn_c_try_compile "$LINENO"; then :
8959 echo conftest.$ac_objext > conftest.lst
8960 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8962 (eval $lt_ar_try) 2>&5
8964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8965 test $ac_status = 0; }
8966 if test "$ac_status" -eq 0; then
8967 # Ensure the archiver fails upon bogus file names.
8968 rm -f conftest.$ac_objext libconftest.a
8969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8970 (eval $lt_ar_try) 2>&5
8972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8973 test $ac_status = 0; }
8974 if test "$ac_status" -ne 0; then
8978 rm -f conftest.* libconftest.a
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8985 $as_echo "$lt_cv_ar_at_file" >&6; }
8987 if test "x$lt_cv_ar_at_file" = xno; then
8990 archiver_list_spec=$lt_cv_ar_at_file
8999 if test -n "$ac_tool_prefix"; then
9000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9001 set dummy ${ac_tool_prefix}strip; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if ${ac_cv_prog_STRIP+:} false; then :
9005 $as_echo_n "(cached) " >&6
9007 if test -n "$STRIP"; then
9008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9027 STRIP=$ac_cv_prog_STRIP
9028 if test -n "$STRIP"; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9030 $as_echo "$STRIP" >&6; }
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9038 if test -z "$ac_cv_prog_STRIP"; then
9040 # Extract the first word of "strip", so it can be a program name with args.
9041 set dummy strip; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9045 $as_echo_n "(cached) " >&6
9047 if test -n "$ac_ct_STRIP"; then
9048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 test -z "$as_dir" && as_dir=.
9055 for ac_exec_ext in '' $ac_executable_extensions; do
9056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9057 ac_cv_prog_ac_ct_STRIP="strip"
9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9068 if test -n "$ac_ct_STRIP"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9070 $as_echo "$ac_ct_STRIP" >&6; }
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 $as_echo "no" >&6; }
9076 if test "x$ac_ct_STRIP" = x; then
9079 case $cross_compiling:$ac_tool_warned in
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9083 ac_tool_warned=yes ;;
9088 STRIP="$ac_cv_prog_STRIP"
9091 test -z "$STRIP" && STRIP=:
9098 if test -n "$ac_tool_prefix"; then
9099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102 $as_echo_n "checking for $ac_word... " >&6; }
9103 if ${ac_cv_prog_RANLIB+:} false; then :
9104 $as_echo_n "(cached) " >&6
9106 if test -n "$RANLIB"; then
9107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 test -z "$as_dir" && as_dir=.
9114 for ac_exec_ext in '' $ac_executable_extensions; do
9115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 RANLIB=$ac_cv_prog_RANLIB
9127 if test -n "$RANLIB"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9129 $as_echo "$RANLIB" >&6; }
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9137 if test -z "$ac_cv_prog_RANLIB"; then
9138 ac_ct_RANLIB=$RANLIB
9139 # Extract the first word of "ranlib", so it can be a program name with args.
9140 set dummy ranlib; ac_word=$2
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9144 $as_echo_n "(cached) " >&6
9146 if test -n "$ac_ct_RANLIB"; then
9147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9156 ac_cv_prog_ac_ct_RANLIB="ranlib"
9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9167 if test -n "$ac_ct_RANLIB"; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9169 $as_echo "$ac_ct_RANLIB" >&6; }
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9175 if test "x$ac_ct_RANLIB" = x; then
9178 case $cross_compiling:$ac_tool_warned in
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9182 ac_tool_warned=yes ;;
9184 RANLIB=$ac_ct_RANLIB
9187 RANLIB="$ac_cv_prog_RANLIB"
9190 test -z "$RANLIB" && RANLIB=:
9197 # Determine commands to create old-style static archives.
9198 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9199 old_postinstall_cmds='chmod 644 $oldlib'
9200 old_postuninstall_cmds=
9202 if test -n "$RANLIB"; then
9205 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9216 lock_old_archive_extraction=yes ;;
9218 lock_old_archive_extraction=no ;;
9259 # If no C compiler was specified, use CC.
9262 # If no C compiler flags were specified, use CFLAGS.
9263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9265 # Allow CC to be a program name with arguments.
9269 # Check for command to grab the raw symbol name followed by C symbol from nm.
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9271 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9272 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9273 $as_echo_n "(cached) " >&6
9276 # These are sane defaults that work on at least a few old systems.
9277 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9279 # Character class describing NM global symbol codes.
9280 symcode='[BCDEGRST]'
9282 # Regexp to match symbols that can be accessed directly from C.
9283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9285 # Define system-specific variables.
9290 cygwin* | mingw* | pw32* | cegcc*)
9291 symcode='[ABCDGISTW]'
9294 if test "$host_cpu" = ia64; then
9295 symcode='[ABCDEGRST]'
9299 symcode='[BCDEGRST]'
9302 symcode='[BCDEGQRST]'
9313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9321 # If we're using GNU nm, then use its standard symbol codes.
9322 case `$NM -V 2>&1` in
9323 *GNU* | *'with BFD'*)
9324 symcode='[ABCDGIRSTW]' ;;
9327 # Transform an extracted symbol line into a proper C declaration.
9328 # Some systems (esp. on ia64) link data and code symbols differently,
9329 # so use this general approach.
9330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9332 # Transform an extracted symbol line into symbol name and symbol address
9333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9334 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9336 # Handle CRLF in mingw tool chain
9340 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9344 # Try without a prefix underscore, then with it.
9345 for ac_symprfx in "" "_"; do
9347 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9348 symxfrm="\\1 $ac_symprfx\\2 \\2"
9350 # Write the raw and C identifiers.
9351 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9352 # Fake it for dumpbin and say T for any non-static function
9353 # and D for any global variable.
9354 # Also find C++ and __fastcall symbols from MSVC++,
9355 # which start with @ or ?.
9356 lt_cv_sys_global_symbol_pipe="$AWK '"\
9357 " {last_section=section; section=\$ 3};"\
9358 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9359 " \$ 0!~/External *\|/{next};"\
9360 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9361 " {if(hide[section]) next};"\
9362 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9363 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9364 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9365 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9366 " ' prfx=^$ac_symprfx"
9368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9370 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9372 # Check to see that the pipe works correctly.
9376 cat > conftest.$ac_ext <<_LT_EOF
9381 void nm_test_func(void);
9382 void nm_test_func(void){}
9386 int main(){nm_test_var='a';nm_test_func();return(0);}
9389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9390 (eval $ac_compile) 2>&5
9392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9393 test $ac_status = 0; }; then
9394 # Now try to grab the symbols.
9396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9397 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9400 test $ac_status = 0; } && test -s "$nlist"; then
9401 # Try sorting and uniquifying the output.
9402 if sort "$nlist" | uniq > "$nlist"T; then
9403 mv -f "$nlist"T "$nlist"
9408 # Make sure that we snagged all the symbols we need.
9409 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9410 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9411 cat <<_LT_EOF > conftest.$ac_ext
9412 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9413 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9414 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9415 relocations are performed -- see ld's documentation on pseudo-relocs. */
9416 # define LT_DLSYM_CONST
9417 #elif defined(__osf__)
9418 /* This system does not cope well with relocations in const data. */
9419 # define LT_DLSYM_CONST
9421 # define LT_DLSYM_CONST const
9429 # Now generate the symbol file.
9430 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9432 cat <<_LT_EOF >> conftest.$ac_ext
9434 /* The mapping between symbol names and symbols. */
9435 LT_DLSYM_CONST struct {
9439 lt__PROGRAM__LTX_preloaded_symbols[] =
9441 { "@PROGRAM@", (void *) 0 },
9443 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9444 cat <<\_LT_EOF >> conftest.$ac_ext
9448 /* This works around a problem in FreeBSD linker */
9449 #ifdef FREEBSD_WORKAROUND
9450 static const void *lt_preloaded_setup() {
9451 return lt__PROGRAM__LTX_preloaded_symbols;
9459 # Now try linking the two files.
9460 mv conftest.$ac_objext conftstm.$ac_objext
9461 lt_globsym_save_LIBS=$LIBS
9462 lt_globsym_save_CFLAGS=$CFLAGS
9463 LIBS="conftstm.$ac_objext"
9464 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9466 (eval $ac_link) 2>&5
9468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9469 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9472 LIBS=$lt_globsym_save_LIBS
9473 CFLAGS=$lt_globsym_save_CFLAGS
9475 echo "cannot find nm_test_func in $nlist" >&5
9478 echo "cannot find nm_test_var in $nlist" >&5
9481 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9484 echo "$progname: failed program was:" >&5
9485 cat conftest.$ac_ext >&5
9487 rm -rf conftest* conftst*
9489 # Do not use the global_symbol_pipe unless it works.
9490 if test "$pipe_works" = yes; then
9493 lt_cv_sys_global_symbol_pipe=
9499 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9500 lt_cv_sys_global_symbol_to_cdecl=
9502 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9504 $as_echo "failed" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9507 $as_echo "ok" >&6; }
9510 # Response file support.
9511 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9512 nm_file_list_spec='@'
9513 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9514 nm_file_list_spec='@'
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9544 $as_echo_n "checking for sysroot... " >&6; }
9546 # Check whether --with-sysroot was given.
9547 if test "${with_sysroot+set}" = set; then :
9548 withval=$with_sysroot;
9555 case ${with_sysroot} in #(
9557 if test "$GCC" = yes; then
9558 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9562 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9568 $as_echo "${with_sysroot}" >&6; }
9569 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9574 $as_echo "${lt_sysroot:-no}" >&6; }
9580 # Check whether --enable-libtool-lock was given.
9581 if test "${enable_libtool_lock+set}" = set; then :
9582 enableval=$enable_libtool_lock;
9585 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9587 # Some flags need to be propagated to the compiler or linker for good
9591 # Find out which ABI we are using.
9592 echo 'int i;' > conftest.$ac_ext
9593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9594 (eval $ac_compile) 2>&5
9596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9597 test $ac_status = 0; }; then
9598 case `/usr/bin/file conftest.$ac_objext` in
9610 # Find out which ABI we are using.
9611 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9613 (eval $ac_compile) 2>&5
9615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9616 test $ac_status = 0; }; then
9617 if test "$lt_cv_prog_gnu_ld" = yes; then
9618 case `/usr/bin/file conftest.$ac_objext` in
9620 LD="${LD-ld} -melf32bsmip"
9623 LD="${LD-ld} -melf32bmipn32"
9626 LD="${LD-ld} -melf64bmip"
9630 case `/usr/bin/file conftest.$ac_objext` in
9646 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9647 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9648 # Find out which ABI we are using.
9649 echo 'int i;' > conftest.$ac_ext
9650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9651 (eval $ac_compile) 2>&5
9653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9654 test $ac_status = 0; }; then
9655 case `/usr/bin/file conftest.o` in
9658 x86_64-*kfreebsd*-gnu)
9659 LD="${LD-ld} -m elf_i386_fbsd"
9662 LD="${LD-ld} -m elf_i386"
9664 ppc64-*linux*|powerpc64-*linux*)
9665 LD="${LD-ld} -m elf32ppclinux"
9668 LD="${LD-ld} -m elf_s390"
9671 LD="${LD-ld} -m elf32_sparc"
9677 x86_64-*kfreebsd*-gnu)
9678 LD="${LD-ld} -m elf_x86_64_fbsd"
9681 LD="${LD-ld} -m elf_x86_64"
9683 ppc*-*linux*|powerpc*-*linux*)
9684 LD="${LD-ld} -m elf64ppc"
9686 s390*-*linux*|s390*-*tpf*)
9687 LD="${LD-ld} -m elf64_s390"
9690 LD="${LD-ld} -m elf64_sparc"
9700 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9701 SAVE_CFLAGS="$CFLAGS"
9702 CFLAGS="$CFLAGS -belf"
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9704 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9705 if ${lt_cv_cc_needs_belf+:} false; then :
9706 $as_echo_n "(cached) " >&6
9709 ac_cpp='$CPP $CPPFLAGS'
9710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9725 if ac_fn_c_try_link "$LINENO"; then :
9726 lt_cv_cc_needs_belf=yes
9728 lt_cv_cc_needs_belf=no
9730 rm -f core conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9733 ac_cpp='$CPP $CPPFLAGS'
9734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9740 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9741 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9742 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9743 CFLAGS="$SAVE_CFLAGS"
9747 # Find out which ABI we are using.
9748 echo 'int i;' > conftest.$ac_ext
9749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9750 (eval $ac_compile) 2>&5
9752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9753 test $ac_status = 0; }; then
9754 case `/usr/bin/file conftest.o` in
9756 case $lt_cv_prog_gnu_ld in
9757 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9759 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9771 need_locks="$enable_libtool_lock"
9773 if test -n "$ac_tool_prefix"; then
9774 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9775 set dummy ${ac_tool_prefix}mt; ac_word=$2
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9779 $as_echo_n "(cached) " >&6
9781 if test -n "$MANIFEST_TOOL"; then
9782 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9801 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9802 if test -n "$MANIFEST_TOOL"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9804 $as_echo "$MANIFEST_TOOL" >&6; }
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9812 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9813 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9814 # Extract the first word of "mt", so it can be a program name with args.
9815 set dummy mt; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9819 $as_echo_n "(cached) " >&6
9821 if test -n "$ac_ct_MANIFEST_TOOL"; then
9822 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9831 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9842 if test -n "$ac_ct_MANIFEST_TOOL"; then
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9844 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9850 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9853 case $cross_compiling:$ac_tool_warned in
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9857 ac_tool_warned=yes ;;
9859 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9862 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9865 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9867 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9868 if ${lt_cv_path_mainfest_tool+:} false; then :
9869 $as_echo_n "(cached) " >&6
9871 lt_cv_path_mainfest_tool=no
9872 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9873 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9874 cat conftest.err >&5
9875 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9876 lt_cv_path_mainfest_tool=yes
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9881 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9882 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9892 rhapsody* | darwin*)
9893 if test -n "$ac_tool_prefix"; then
9894 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9895 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897 $as_echo_n "checking for $ac_word... " >&6; }
9898 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9899 $as_echo_n "(cached) " >&6
9901 if test -n "$DSYMUTIL"; then
9902 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 test -z "$as_dir" && as_dir=.
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9911 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9922 if test -n "$DSYMUTIL"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9924 $as_echo "$DSYMUTIL" >&6; }
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9932 if test -z "$ac_cv_prog_DSYMUTIL"; then
9933 ac_ct_DSYMUTIL=$DSYMUTIL
9934 # Extract the first word of "dsymutil", so it can be a program name with args.
9935 set dummy dsymutil; ac_word=$2
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9937 $as_echo_n "checking for $ac_word... " >&6; }
9938 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9939 $as_echo_n "(cached) " >&6
9941 if test -n "$ac_ct_DSYMUTIL"; then
9942 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9951 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9962 if test -n "$ac_ct_DSYMUTIL"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9964 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 $as_echo "no" >&6; }
9970 if test "x$ac_ct_DSYMUTIL" = x; then
9973 case $cross_compiling:$ac_tool_warned in
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9977 ac_tool_warned=yes ;;
9979 DSYMUTIL=$ac_ct_DSYMUTIL
9982 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9985 if test -n "$ac_tool_prefix"; then
9986 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9987 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9989 $as_echo_n "checking for $ac_word... " >&6; }
9990 if ${ac_cv_prog_NMEDIT+:} false; then :
9991 $as_echo_n "(cached) " >&6
9993 if test -n "$NMEDIT"; then
9994 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 test -z "$as_dir" && as_dir=.
10001 for ac_exec_ext in '' $ac_executable_extensions; do
10002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10003 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 NMEDIT=$ac_cv_prog_NMEDIT
10014 if test -n "$NMEDIT"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10016 $as_echo "$NMEDIT" >&6; }
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10024 if test -z "$ac_cv_prog_NMEDIT"; then
10025 ac_ct_NMEDIT=$NMEDIT
10026 # Extract the first word of "nmedit", so it can be a program name with args.
10027 set dummy nmedit; ac_word=$2
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10029 $as_echo_n "checking for $ac_word... " >&6; }
10030 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10031 $as_echo_n "(cached) " >&6
10033 if test -n "$ac_ct_NMEDIT"; then
10034 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10037 for as_dir in $PATH
10040 test -z "$as_dir" && as_dir=.
10041 for ac_exec_ext in '' $ac_executable_extensions; do
10042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10043 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10053 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10054 if test -n "$ac_ct_NMEDIT"; then
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10056 $as_echo "$ac_ct_NMEDIT" >&6; }
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10059 $as_echo "no" >&6; }
10062 if test "x$ac_ct_NMEDIT" = x; then
10065 case $cross_compiling:$ac_tool_warned in
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10069 ac_tool_warned=yes ;;
10071 NMEDIT=$ac_ct_NMEDIT
10074 NMEDIT="$ac_cv_prog_NMEDIT"
10077 if test -n "$ac_tool_prefix"; then
10078 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10079 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_prog_LIPO+:} false; then :
10083 $as_echo_n "(cached) " >&6
10085 if test -n "$LIPO"; then
10086 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 LIPO=$ac_cv_prog_LIPO
10106 if test -n "$LIPO"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10108 $as_echo "$LIPO" >&6; }
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10116 if test -z "$ac_cv_prog_LIPO"; then
10118 # Extract the first word of "lipo", so it can be a program name with args.
10119 set dummy lipo; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10123 $as_echo_n "(cached) " >&6
10125 if test -n "$ac_ct_LIPO"; then
10126 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129 for as_dir in $PATH
10132 test -z "$as_dir" && as_dir=.
10133 for ac_exec_ext in '' $ac_executable_extensions; do
10134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10135 ac_cv_prog_ac_ct_LIPO="lipo"
10136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10146 if test -n "$ac_ct_LIPO"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10148 $as_echo "$ac_ct_LIPO" >&6; }
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10154 if test "x$ac_ct_LIPO" = x; then
10157 case $cross_compiling:$ac_tool_warned in
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10161 ac_tool_warned=yes ;;
10166 LIPO="$ac_cv_prog_LIPO"
10169 if test -n "$ac_tool_prefix"; then
10170 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10171 set dummy ${ac_tool_prefix}otool; ac_word=$2
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 $as_echo_n "checking for $ac_word... " >&6; }
10174 if ${ac_cv_prog_OTOOL+:} false; then :
10175 $as_echo_n "(cached) " >&6
10177 if test -n "$OTOOL"; then
10178 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10187 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10197 OTOOL=$ac_cv_prog_OTOOL
10198 if test -n "$OTOOL"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10200 $as_echo "$OTOOL" >&6; }
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10208 if test -z "$ac_cv_prog_OTOOL"; then
10210 # Extract the first word of "otool", so it can be a program name with args.
10211 set dummy otool; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10215 $as_echo_n "(cached) " >&6
10217 if test -n "$ac_ct_OTOOL"; then
10218 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227 ac_cv_prog_ac_ct_OTOOL="otool"
10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10238 if test -n "$ac_ct_OTOOL"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10240 $as_echo "$ac_ct_OTOOL" >&6; }
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10246 if test "x$ac_ct_OTOOL" = x; then
10249 case $cross_compiling:$ac_tool_warned in
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10253 ac_tool_warned=yes ;;
10258 OTOOL="$ac_cv_prog_OTOOL"
10261 if test -n "$ac_tool_prefix"; then
10262 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10263 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10265 $as_echo_n "checking for $ac_word... " >&6; }
10266 if ${ac_cv_prog_OTOOL64+:} false; then :
10267 $as_echo_n "(cached) " >&6
10269 if test -n "$OTOOL64"; then
10270 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10276 test -z "$as_dir" && as_dir=.
10277 for ac_exec_ext in '' $ac_executable_extensions; do
10278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10279 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10289 OTOOL64=$ac_cv_prog_OTOOL64
10290 if test -n "$OTOOL64"; then
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10292 $as_echo "$OTOOL64" >&6; }
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 $as_echo "no" >&6; }
10300 if test -z "$ac_cv_prog_OTOOL64"; then
10301 ac_ct_OTOOL64=$OTOOL64
10302 # Extract the first word of "otool64", so it can be a program name with args.
10303 set dummy otool64; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10307 $as_echo_n "(cached) " >&6
10309 if test -n "$ac_ct_OTOOL64"; then
10310 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_prog_ac_ct_OTOOL64="otool64"
10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10330 if test -n "$ac_ct_OTOOL64"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10332 $as_echo "$ac_ct_OTOOL64" >&6; }
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10338 if test "x$ac_ct_OTOOL64" = x; then
10341 case $cross_compiling:$ac_tool_warned in
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10345 ac_tool_warned=yes ;;
10347 OTOOL64=$ac_ct_OTOOL64
10350 OTOOL64="$ac_cv_prog_OTOOL64"
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10380 $as_echo_n "checking for -single_module linker flag... " >&6; }
10381 if ${lt_cv_apple_cc_single_mod+:} false; then :
10382 $as_echo_n "(cached) " >&6
10384 lt_cv_apple_cc_single_mod=no
10385 if test -z "${LT_MULTI_MODULE}"; then
10386 # By default we will add the -single_module flag. You can override
10387 # by either setting the environment variable LT_MULTI_MODULE
10388 # non-empty at configure time, or by adding -multi_module to the
10390 rm -rf libconftest.dylib*
10391 echo "int foo(void){return 1;}" > conftest.c
10392 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10393 -dynamiclib -Wl,-single_module conftest.c" >&5
10394 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10395 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10397 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10398 lt_cv_apple_cc_single_mod=yes
10400 cat conftest.err >&5
10402 rm -rf libconftest.dylib*
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10407 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10409 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10410 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10411 $as_echo_n "(cached) " >&6
10413 lt_cv_ld_exported_symbols_list=no
10414 save_LDFLAGS=$LDFLAGS
10415 echo "_main" > conftest.sym
10416 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10428 if ac_fn_c_try_link "$LINENO"; then :
10429 lt_cv_ld_exported_symbols_list=yes
10431 lt_cv_ld_exported_symbols_list=no
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LDFLAGS="$save_LDFLAGS"
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10439 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10441 $as_echo_n "checking for -force_load linker flag... " >&6; }
10442 if ${lt_cv_ld_force_load+:} false; then :
10443 $as_echo_n "(cached) " >&6
10445 lt_cv_ld_force_load=no
10446 cat > conftest.c << _LT_EOF
10447 int forced_loaded() { return 2;}
10449 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10450 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10451 echo "$AR cru libconftest.a conftest.o" >&5
10452 $AR cru libconftest.a conftest.o 2>&5
10453 echo "$RANLIB libconftest.a" >&5
10454 $RANLIB libconftest.a 2>&5
10455 cat > conftest.c << _LT_EOF
10456 int main() { return 0;}
10458 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10459 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10461 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10462 lt_cv_ld_force_load=yes
10464 cat conftest.err >&5
10466 rm -f conftest.err libconftest.a conftest conftest.c
10467 rm -rf conftest.dSYM
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10471 $as_echo "$lt_cv_ld_force_load" >&6; }
10473 rhapsody* | darwin1.[012])
10474 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10476 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10477 darwin*) # darwin 5.x on
10478 # if running on 10.5 or later, the deployment target defaults
10479 # to the OS version, if on x86, and 10.4, the deployment
10480 # target defaults to 10.4. Don't you love it?
10481 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10482 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10483 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10485 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10487 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10491 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10492 _lt_dar_single_mod='$single_module'
10494 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10495 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10497 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10499 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10500 _lt_dsymutil='~$DSYMUTIL $lib || :'
10507 for ac_header in dlfcn.h
10509 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10511 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10512 cat >>confdefs.h <<_ACEOF
10513 #define HAVE_DLFCN_H 1
10525 # Check whether --enable-static was given.
10526 if test "${enable_static+set}" = set; then :
10527 enableval=$enable_static; p=${PACKAGE-default}
10529 yes) enable_static=yes ;;
10530 no) enable_static=no ;;
10533 # Look at the argument we got. We use all the common list separators.
10534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10535 for pkg in $enableval; do
10537 if test "X$pkg" = "X$p"; then
10560 enable_win32_dll=no
10563 # Check whether --enable-shared was given.
10564 if test "${enable_shared+set}" = set; then :
10565 enableval=$enable_shared; p=${PACKAGE-default}
10567 yes) enable_shared=yes ;;
10568 no) enable_shared=no ;;
10571 # Look at the argument we got. We use all the common list separators.
10572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10573 for pkg in $enableval; do
10575 if test "X$pkg" = "X$p"; then
10596 # Check whether --with-pic was given.
10597 if test "${with_pic+set}" = set; then :
10598 withval=$with_pic; pic_mode="$withval"
10604 test -z "$pic_mode" && pic_mode=default
10612 # Check whether --enable-fast-install was given.
10613 if test "${enable_fast_install+set}" = set; then :
10614 enableval=$enable_fast_install; p=${PACKAGE-default}
10616 yes) enable_fast_install=yes ;;
10617 no) enable_fast_install=no ;;
10619 enable_fast_install=no
10620 # Look at the argument we got. We use all the common list separators.
10621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10622 for pkg in $enableval; do
10624 if test "X$pkg" = "X$p"; then
10625 enable_fast_install=yes
10632 enable_fast_install=yes
10645 # This can be used to rebuild libtool when needed
10646 LIBTOOL_DEPS="$ltmain"
10648 # Always use our own libtool.
10649 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10676 test -z "$LN_S" && LN_S="ln -s"
10691 if test -n "${ZSH_VERSION+set}" ; then
10692 setopt NO_GLOB_SUBST
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10696 $as_echo_n "checking for objdir... " >&6; }
10697 if ${lt_cv_objdir+:} false; then :
10698 $as_echo_n "(cached) " >&6
10700 rm -f .libs 2>/dev/null
10701 mkdir .libs 2>/dev/null
10702 if test -d .libs; then
10705 # MS-DOS does not allow filenames that begin with a dot.
10708 rmdir .libs 2>/dev/null
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10711 $as_echo "$lt_cv_objdir" >&6; }
10712 objdir=$lt_cv_objdir
10718 cat >>confdefs.h <<_ACEOF
10719 #define LT_OBJDIR "$lt_cv_objdir/"
10727 # AIX sometimes has problems with the GCC collect2 program. For some
10728 # reason, if we set the COLLECT_NAMES environment variable, the problems
10729 # vanish in a puff of smoke.
10730 if test "X${COLLECT_NAMES+set}" != Xset; then
10732 export COLLECT_NAMES
10737 # Global variables:
10739 can_build_shared=yes
10741 # All known linkers require a `.a' archive for static linking (except MSVC,
10742 # which needs '.lib').
10745 with_gnu_ld="$lt_cv_prog_gnu_ld"
10748 old_CFLAGS="$CFLAGS"
10750 # Set sane defaults for various variables
10751 test -z "$CC" && CC=cc
10752 test -z "$LTCC" && LTCC=$CC
10753 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10754 test -z "$LD" && LD=ld
10755 test -z "$ac_objext" && ac_objext=o
10757 for cc_temp in $compiler""; do
10759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10765 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10768 # Only perform the check for file, if the check method requires it
10769 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10770 case $deplibs_check_method in
10772 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10774 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10775 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10776 $as_echo_n "(cached) " >&6
10780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10783 lt_save_MAGIC_CMD="$MAGIC_CMD"
10784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10785 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10786 for ac_dir in $ac_dummy; do
10788 test -z "$ac_dir" && ac_dir=.
10789 if test -f $ac_dir/${ac_tool_prefix}file; then
10790 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10791 if test -n "$file_magic_test_file"; then
10792 case $deplibs_check_method in
10794 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10797 $EGREP "$file_magic_regex" > /dev/null; then
10802 *** Warning: the command libtool uses to detect shared libraries,
10803 *** $file_magic_cmd, produces output that libtool cannot recognize.
10804 *** The result is that libtool may fail to recognize shared libraries
10805 *** as such. This will affect the creation of libtool libraries that
10806 *** depend on shared libraries, but programs linked with such libtool
10807 *** libraries will work regardless of this problem. Nevertheless, you
10808 *** may want to report the problem to your system manager and/or to
10809 *** bug-libtool@gnu.org
10819 MAGIC_CMD="$lt_save_MAGIC_CMD"
10824 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10825 if test -n "$MAGIC_CMD"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10827 $as_echo "$MAGIC_CMD" >&6; }
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10837 if test -z "$lt_cv_path_MAGIC_CMD"; then
10838 if test -n "$ac_tool_prefix"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10840 $as_echo_n "checking for file... " >&6; }
10841 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10842 $as_echo_n "(cached) " >&6
10846 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10849 lt_save_MAGIC_CMD="$MAGIC_CMD"
10850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10851 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10852 for ac_dir in $ac_dummy; do
10854 test -z "$ac_dir" && ac_dir=.
10855 if test -f $ac_dir/file; then
10856 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10857 if test -n "$file_magic_test_file"; then
10858 case $deplibs_check_method in
10860 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10861 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10862 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10863 $EGREP "$file_magic_regex" > /dev/null; then
10868 *** Warning: the command libtool uses to detect shared libraries,
10869 *** $file_magic_cmd, produces output that libtool cannot recognize.
10870 *** The result is that libtool may fail to recognize shared libraries
10871 *** as such. This will affect the creation of libtool libraries that
10872 *** depend on shared libraries, but programs linked with such libtool
10873 *** libraries will work regardless of this problem. Nevertheless, you
10874 *** may want to report the problem to your system manager and/or to
10875 *** bug-libtool@gnu.org
10885 MAGIC_CMD="$lt_save_MAGIC_CMD"
10890 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10891 if test -n "$MAGIC_CMD"; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10893 $as_echo "$MAGIC_CMD" >&6; }
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896 $as_echo "no" >&6; }
10909 # Use C for the default configuration in the libtool script
10913 ac_cpp='$CPP $CPPFLAGS'
10914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10919 # Source file extension for C test sources.
10922 # Object file extension for compiled C test sources.
10926 # Code to be used in simple compile tests
10927 lt_simple_compile_test_code="int some_variable = 0;"
10929 # Code to be used in simple link tests
10930 lt_simple_link_test_code='int main(){return(0);}'
10938 # If no C compiler was specified, use CC.
10941 # If no C compiler flags were specified, use CFLAGS.
10942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10944 # Allow CC to be a program name with arguments.
10947 # Save the default compiler, since it gets overwritten when the other
10948 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10949 compiler_DEFAULT=$CC
10951 # save warnings/boilerplate of simple test code
10952 ac_outfile=conftest.$ac_objext
10953 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10955 _lt_compiler_boilerplate=`cat conftest.err`
10958 ac_outfile=conftest.$ac_objext
10959 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10961 _lt_linker_boilerplate=`cat conftest.err`
10966 ## There is no encapsulation within the following macros, do not change
10967 ## the running order or otherwise move them around unless you know exactly
10968 ## what you are doing...
10969 if test -n "$compiler"; then
10971 lt_prog_compiler_no_builtin_flag=
10973 if test "$GCC" = yes; then
10974 case $cc_basename in
10976 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10978 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10982 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10983 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10984 $as_echo_n "(cached) " >&6
10986 lt_cv_prog_compiler_rtti_exceptions=no
10987 ac_outfile=conftest.$ac_objext
10988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10989 lt_compiler_flag="-fno-rtti -fno-exceptions"
10990 # Insert the option either (1) after the last *FLAGS variable, or
10991 # (2) before a word containing "conftest.", or (3) at the end.
10992 # Note that $ac_compile itself does not contain backslashes and begins
10993 # with a dollar sign (not a hyphen), so the echo should work correctly.
10994 # The option is referenced via a variable to avoid confusing sed.
10995 lt_compile=`echo "$ac_compile" | $SED \
10996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10998 -e 's:$: $lt_compiler_flag:'`
10999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11000 (eval "$lt_compile" 2>conftest.err)
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 if (exit $ac_status) && test -s "$ac_outfile"; then
11005 # The compiler can only warn and ignore the option if not recognized
11006 # So say no if there are warnings other than the usual output.
11007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11010 lt_cv_prog_compiler_rtti_exceptions=yes
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11017 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11020 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11032 lt_prog_compiler_wl=
11033 lt_prog_compiler_pic=
11034 lt_prog_compiler_static=
11037 if test "$GCC" = yes; then
11038 lt_prog_compiler_wl='-Wl,'
11039 lt_prog_compiler_static='-static'
11043 # All AIX code is PIC.
11044 if test "$host_cpu" = ia64; then
11045 # AIX 5 now supports IA64 processor
11046 lt_prog_compiler_static='-Bstatic'
11053 # see comment about AmigaOS4 .so support
11054 lt_prog_compiler_pic='-fPIC'
11057 # FIXME: we need at least 68020 code to build shared libraries, but
11058 # adding the `-m68020' flag to GCC prevents building anything better,
11060 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11065 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11066 # PIC is the default for these OSes.
11069 mingw* | cygwin* | pw32* | os2* | cegcc*)
11070 # This hack is so that the source file can tell whether it is being
11071 # built for inclusion in a dll (and should export symbols for example).
11072 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11073 # (--disable-auto-import) libraries
11074 lt_prog_compiler_pic='-DDLL_EXPORT'
11077 darwin* | rhapsody*)
11078 # PIC is the default on this platform
11079 # Common symbols not allowed in MH_DYLIB files
11080 lt_prog_compiler_pic='-fno-common'
11084 # PIC is the default for Haiku.
11085 # The "-static" flag exists, but is broken.
11086 lt_prog_compiler_static=
11090 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11091 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11092 # sets the default TLS model and affects inlining.
11098 lt_prog_compiler_pic='-fPIC'
11104 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11105 # Instead, we relocate shared libraries at runtime.
11109 # Just because we use GCC doesn't mean we suddenly get shared libraries
11110 # on systems that don't support them.
11111 lt_prog_compiler_can_build_shared=no
11116 # QNX uses GNU C++, but need to define -shared option too, otherwise
11117 # it will coredump.
11118 lt_prog_compiler_pic='-fPIC -shared'
11122 if test -d /usr/nec; then
11123 lt_prog_compiler_pic=-Kconform_pic
11128 lt_prog_compiler_pic='-fPIC'
11132 case $cc_basename in
11133 nvcc*) # Cuda Compiler Driver 2.2
11134 lt_prog_compiler_wl='-Xlinker '
11135 lt_prog_compiler_pic='-Xcompiler -fPIC'
11139 # PORTME Check for flag to pass linker flags through the system compiler.
11142 lt_prog_compiler_wl='-Wl,'
11143 if test "$host_cpu" = ia64; then
11144 # AIX 5 now supports IA64 processor
11145 lt_prog_compiler_static='-Bstatic'
11147 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11151 mingw* | cygwin* | pw32* | os2* | cegcc*)
11152 # This hack is so that the source file can tell whether it is being
11153 # built for inclusion in a dll (and should export symbols for example).
11154 lt_prog_compiler_pic='-DDLL_EXPORT'
11157 hpux9* | hpux10* | hpux11*)
11158 lt_prog_compiler_wl='-Wl,'
11159 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11160 # not for PA HP-UX.
11166 lt_prog_compiler_pic='+Z'
11169 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11170 lt_prog_compiler_static='${wl}-a ${wl}archive'
11173 irix5* | irix6* | nonstopux*)
11174 lt_prog_compiler_wl='-Wl,'
11175 # PIC (with -KPIC) is the default.
11176 lt_prog_compiler_static='-non_shared'
11179 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11180 case $cc_basename in
11181 # old Intel for x86_64 which still supported -KPIC.
11183 lt_prog_compiler_wl='-Wl,'
11184 lt_prog_compiler_pic='-KPIC'
11185 lt_prog_compiler_static='-static'
11187 # icc used to be incompatible with GCC.
11188 # ICC 10 doesn't accept -KPIC any more.
11190 lt_prog_compiler_wl='-Wl,'
11191 lt_prog_compiler_pic='-fPIC'
11192 lt_prog_compiler_static='-static'
11194 # Lahey Fortran 8.1.
11196 lt_prog_compiler_wl='-Wl,'
11197 lt_prog_compiler_pic='--shared'
11198 lt_prog_compiler_static='--static'
11201 # NAG Fortran compiler
11202 lt_prog_compiler_wl='-Wl,-Wl,,'
11203 lt_prog_compiler_pic='-PIC'
11204 lt_prog_compiler_static='-Bstatic'
11206 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11207 # Portland Group compilers (*not* the Pentium gcc compiler,
11208 # which looks to be a dead project)
11209 lt_prog_compiler_wl='-Wl,'
11210 lt_prog_compiler_pic='-fpic'
11211 lt_prog_compiler_static='-Bstatic'
11214 lt_prog_compiler_wl='-Wl,'
11215 # All Alpha code is PIC.
11216 lt_prog_compiler_static='-non_shared'
11218 xl* | bgxl* | bgf* | mpixl*)
11219 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11220 lt_prog_compiler_wl='-Wl,'
11221 lt_prog_compiler_pic='-qpic'
11222 lt_prog_compiler_static='-qstaticlink'
11225 case `$CC -V 2>&1 | sed 5q` in
11226 *Sun\ F* | *Sun*Fortran*)
11227 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11228 lt_prog_compiler_pic='-KPIC'
11229 lt_prog_compiler_static='-Bstatic'
11230 lt_prog_compiler_wl=''
11234 lt_prog_compiler_pic='-KPIC'
11235 lt_prog_compiler_static='-Bstatic'
11236 lt_prog_compiler_wl='-Wl,'
11244 lt_prog_compiler_pic='-KPIC'
11245 lt_prog_compiler_static='-Bstatic'
11249 # QNX uses GNU C++, but need to define -shared option too, otherwise
11250 # it will coredump.
11251 lt_prog_compiler_pic='-fPIC -shared'
11254 osf3* | osf4* | osf5*)
11255 lt_prog_compiler_wl='-Wl,'
11256 # All OSF/1 code is PIC.
11257 lt_prog_compiler_static='-non_shared'
11261 lt_prog_compiler_static='-non_shared'
11265 lt_prog_compiler_pic='-KPIC'
11266 lt_prog_compiler_static='-Bstatic'
11267 case $cc_basename in
11268 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11269 lt_prog_compiler_wl='-Qoption ld ';;
11271 lt_prog_compiler_wl='-Wl,';;
11276 lt_prog_compiler_wl='-Qoption ld '
11277 lt_prog_compiler_pic='-PIC'
11278 lt_prog_compiler_static='-Bstatic'
11281 sysv4 | sysv4.2uw2* | sysv4.3*)
11282 lt_prog_compiler_wl='-Wl,'
11283 lt_prog_compiler_pic='-KPIC'
11284 lt_prog_compiler_static='-Bstatic'
11288 if test -d /usr/nec ;then
11289 lt_prog_compiler_pic='-Kconform_pic'
11290 lt_prog_compiler_static='-Bstatic'
11294 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11295 lt_prog_compiler_wl='-Wl,'
11296 lt_prog_compiler_pic='-KPIC'
11297 lt_prog_compiler_static='-Bstatic'
11301 lt_prog_compiler_wl='-Wl,'
11302 lt_prog_compiler_can_build_shared=no
11306 lt_prog_compiler_pic='-pic'
11307 lt_prog_compiler_static='-Bstatic'
11311 lt_prog_compiler_can_build_shared=no
11317 # For platforms which do not support PIC, -DPIC is meaningless:
11319 lt_prog_compiler_pic=
11322 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11327 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11328 if ${lt_cv_prog_compiler_pic+:} false; then :
11329 $as_echo_n "(cached) " >&6
11331 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11334 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11335 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11338 # Check to make sure the PIC flag actually works.
11340 if test -n "$lt_prog_compiler_pic"; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11342 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11343 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11344 $as_echo_n "(cached) " >&6
11346 lt_cv_prog_compiler_pic_works=no
11347 ac_outfile=conftest.$ac_objext
11348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11349 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11350 # Insert the option either (1) after the last *FLAGS variable, or
11351 # (2) before a word containing "conftest.", or (3) at the end.
11352 # Note that $ac_compile itself does not contain backslashes and begins
11353 # with a dollar sign (not a hyphen), so the echo should work correctly.
11354 # The option is referenced via a variable to avoid confusing sed.
11355 lt_compile=`echo "$ac_compile" | $SED \
11356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11358 -e 's:$: $lt_compiler_flag:'`
11359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11360 (eval "$lt_compile" 2>conftest.err)
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 if (exit $ac_status) && test -s "$ac_outfile"; then
11365 # The compiler can only warn and ignore the option if not recognized
11366 # So say no if there are warnings other than the usual output.
11367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11370 lt_cv_prog_compiler_pic_works=yes
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11377 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11379 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11380 case $lt_prog_compiler_pic in
11382 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11385 lt_prog_compiler_pic=
11386 lt_prog_compiler_can_build_shared=no
11402 # Check to make sure the static flag actually works.
11404 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11406 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11407 if ${lt_cv_prog_compiler_static_works+:} false; then :
11408 $as_echo_n "(cached) " >&6
11410 lt_cv_prog_compiler_static_works=no
11411 save_LDFLAGS="$LDFLAGS"
11412 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11413 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11414 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11415 # The linker can only warn and ignore the option if not recognized
11416 # So say no if there are warnings
11417 if test -s conftest.err; then
11418 # Append any errors to the config.log.
11419 cat conftest.err 1>&5
11420 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11422 if diff conftest.exp conftest.er2 >/dev/null; then
11423 lt_cv_prog_compiler_static_works=yes
11426 lt_cv_prog_compiler_static_works=yes
11430 LDFLAGS="$save_LDFLAGS"
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11434 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11436 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11439 lt_prog_compiler_static=
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11450 if ${lt_cv_prog_compiler_c_o+:} false; then :
11451 $as_echo_n "(cached) " >&6
11453 lt_cv_prog_compiler_c_o=no
11454 $RM -r conftest 2>/dev/null
11458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11460 lt_compiler_flag="-o out/conftest2.$ac_objext"
11461 # Insert the option either (1) after the last *FLAGS variable, or
11462 # (2) before a word containing "conftest.", or (3) at the end.
11463 # Note that $ac_compile itself does not contain backslashes and begins
11464 # with a dollar sign (not a hyphen), so the echo should work correctly.
11465 lt_compile=`echo "$ac_compile" | $SED \
11466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11468 -e 's:$: $lt_compiler_flag:'`
11469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11470 (eval "$lt_compile" 2>out/conftest.err)
11472 cat out/conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11476 # The compiler can only warn and ignore the option if not recognized
11477 # So say no if there are warnings
11478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11479 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11480 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11481 lt_cv_prog_compiler_c_o=yes
11486 # SGI C++ compiler will create directory out/ii_files/ for
11487 # template instantiation
11488 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11489 $RM out/* && rmdir out
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11496 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11504 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11505 if ${lt_cv_prog_compiler_c_o+:} false; then :
11506 $as_echo_n "(cached) " >&6
11508 lt_cv_prog_compiler_c_o=no
11509 $RM -r conftest 2>/dev/null
11513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11515 lt_compiler_flag="-o out/conftest2.$ac_objext"
11516 # Insert the option either (1) after the last *FLAGS variable, or
11517 # (2) before a word containing "conftest.", or (3) at the end.
11518 # Note that $ac_compile itself does not contain backslashes and begins
11519 # with a dollar sign (not a hyphen), so the echo should work correctly.
11520 lt_compile=`echo "$ac_compile" | $SED \
11521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11523 -e 's:$: $lt_compiler_flag:'`
11524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11525 (eval "$lt_compile" 2>out/conftest.err)
11527 cat out/conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11531 # The compiler can only warn and ignore the option if not recognized
11532 # So say no if there are warnings
11533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11536 lt_cv_prog_compiler_c_o=yes
11541 # SGI C++ compiler will create directory out/ii_files/ for
11542 # template instantiation
11543 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11544 $RM out/* && rmdir out
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11551 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11556 hard_links="nottested"
11557 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11558 # do not overwrite the value of need_locks provided by the user
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11560 $as_echo_n "checking if we can lock with hard links... " >&6; }
11563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11565 ln conftest.a conftest.b 2>&5 || hard_links=no
11566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11568 $as_echo "$hard_links" >&6; }
11569 if test "$hard_links" = no; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11571 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11584 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11587 allow_undefined_flag=
11588 always_export_symbols=no
11590 archive_expsym_cmds=
11591 compiler_needs_object=no
11592 enable_shared_with_static_runtimes=no
11593 export_dynamic_flag_spec=
11594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11595 hardcode_automatic=no
11597 hardcode_direct_absolute=no
11598 hardcode_libdir_flag_spec=
11599 hardcode_libdir_flag_spec_ld=
11600 hardcode_libdir_separator=
11601 hardcode_minus_L=no
11602 hardcode_shlibpath_var=unsupported
11604 link_all_deplibs=unknown
11606 module_expsym_cmds=
11607 old_archive_from_new_cmds=
11608 old_archive_from_expsyms_cmds=
11609 thread_safe_flag_spec=
11610 whole_archive_flag_spec=
11611 # include_expsyms should be a list of space-separated symbols to be *always*
11612 # included in the symbol list
11614 # exclude_expsyms can be an extended regexp of symbols to exclude
11615 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11616 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11617 # as well as any symbol that contains `d'.
11618 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11619 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11620 # platforms (ab)use it in PIC code, but their linkers get confused if
11621 # the symbol is explicitly referenced. Since portable code cannot
11622 # rely on this symbol name, it's probably fine to never include it in
11623 # preloaded symbol tables.
11624 # Exclude shared library initialization/finalization symbols.
11625 extract_expsyms_cmds=
11628 cygwin* | mingw* | pw32* | cegcc*)
11629 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11630 # When not using gcc, we currently assume that we are using
11631 # Microsoft Visual C++.
11632 if test "$GCC" != yes; then
11637 # we just hope/assume this is gcc and not c89 (= MSVC++)
11647 # On some targets, GNU ld is compatible enough with the native linker
11648 # that we're better off using the native interface for both.
11649 lt_use_gnu_ld_interface=no
11650 if test "$with_gnu_ld" = yes; then
11653 # The AIX port of GNU ld has always aspired to compatibility
11654 # with the native linker. However, as the warning in the GNU ld
11655 # block says, versions before 2.19.5* couldn't really create working
11656 # shared libraries, regardless of the interface used.
11657 case `$LD -v 2>&1` in
11658 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11659 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11660 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11662 lt_use_gnu_ld_interface=yes
11667 lt_use_gnu_ld_interface=yes
11672 if test "$lt_use_gnu_ld_interface" = yes; then
11673 # If archive_cmds runs LD, not CC, wlarc should be empty
11676 # Set some defaults for GNU ld with shared library support. These
11677 # are reset later if shared libraries are not supported. Putting them
11678 # here allows them to be overridden if necessary.
11679 runpath_var=LD_RUN_PATH
11680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11681 export_dynamic_flag_spec='${wl}--export-dynamic'
11682 # ancient GNU ld didn't support --whole-archive et. al.
11683 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11684 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11686 whole_archive_flag_spec=
11688 supports_anon_versioning=no
11689 case `$LD -v 2>&1` in
11690 *GNU\ gold*) supports_anon_versioning=yes ;;
11691 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11692 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11693 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11694 *\ 2.11.*) ;; # other 2.11 versions
11695 *) supports_anon_versioning=yes ;;
11698 # See if GNU ld supports shared libraries.
11701 # On AIX/PPC, the GNU linker is very broken
11702 if test "$host_cpu" != ia64; then
11706 *** Warning: the GNU linker, at least up to release 2.19, is reported
11707 *** to be unable to reliably create shared libraries on AIX.
11708 *** Therefore, libtool is disabling shared libraries support. If you
11709 *** really care for shared libraries, you may want to install binutils
11710 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11711 *** You will then need to restart the configuration process.
11720 # see comment about AmigaOS4 .so support
11721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11722 archive_expsym_cmds=''
11725 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11726 hardcode_libdir_flag_spec='-L$libdir'
11727 hardcode_minus_L=yes
11733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11734 allow_undefined_flag=unsupported
11735 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11736 # support --undefined. This deserves some investigation. FIXME
11737 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11743 cygwin* | mingw* | pw32* | cegcc*)
11744 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11745 # as there is no search path for DLLs.
11746 hardcode_libdir_flag_spec='-L$libdir'
11747 export_dynamic_flag_spec='${wl}--export-all-symbols'
11748 allow_undefined_flag=unsupported
11749 always_export_symbols=no
11750 enable_shared_with_static_runtimes=yes
11751 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11752 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11754 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11756 # If the export-symbols file already is a .def file (1st line
11757 # is EXPORTS), use it as is; otherwise, prepend...
11758 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11759 cp $export_symbols $output_objdir/$soname.def;
11761 echo EXPORTS > $output_objdir/$soname.def;
11762 cat $export_symbols >> $output_objdir/$soname.def;
11764 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11772 link_all_deplibs=yes
11777 hardcode_shlibpath_var=no
11778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11779 export_dynamic_flag_spec='${wl}-E'
11780 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11781 # Instead, shared libraries are loaded at an image base (0x10000000 by
11782 # default) and relocated if they conflict, which is a slow very memory
11783 # consuming and fragmenting process. To avoid this, we pick a random,
11784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11785 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11787 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11790 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11792 if test "$host_os" = linux-dietlibc; then
11793 case $cc_basename in
11794 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11797 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11798 && test "$tmp_diet" = no
11800 tmp_addflag=' $pic_flag'
11801 tmp_sharedflag='-shared'
11802 case $cc_basename,$host_cpu in
11803 pgcc*) # Portland Group C compiler
11804 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11805 tmp_addflag=' $pic_flag'
11807 pgf77* | pgf90* | pgf95* | pgfortran*)
11808 # Portland Group f77 and f90 compilers
11809 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11810 tmp_addflag=' $pic_flag -Mnomain' ;;
11811 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11812 tmp_addflag=' -i_dynamic' ;;
11813 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11814 tmp_addflag=' -i_dynamic -nofor_main' ;;
11815 ifc* | ifort*) # Intel Fortran compiler
11816 tmp_addflag=' -nofor_main' ;;
11817 lf95*) # Lahey Fortran 8.1
11818 whole_archive_flag_spec=
11819 tmp_sharedflag='--shared' ;;
11820 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11821 tmp_sharedflag='-qmkshrobj'
11823 nvcc*) # Cuda Compiler Driver 2.2
11824 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11825 compiler_needs_object=yes
11828 case `$CC -V 2>&1 | sed 5q` in
11829 *Sun\ C*) # Sun C 5.9
11830 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11831 compiler_needs_object=yes
11832 tmp_sharedflag='-G' ;;
11833 *Sun\ F*) # Sun Fortran 8.3
11834 tmp_sharedflag='-G' ;;
11836 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11838 if test "x$supports_anon_versioning" = xyes; then
11839 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11841 echo "local: *; };" >> $output_objdir/$libname.ver~
11842 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11845 case $cc_basename in
11846 xlf* | bgf* | bgxlf* | mpixlf*)
11847 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11848 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11849 hardcode_libdir_flag_spec=
11850 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11851 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11852 if test "x$supports_anon_versioning" = xyes; then
11853 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11855 echo "local: *; };" >> $output_objdir/$libname.ver~
11856 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11867 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11870 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11871 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11876 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11880 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11881 *** create shared libraries on Solaris systems. Therefore, libtool
11882 *** is disabling shared libraries support. We urge you to upgrade GNU
11883 *** binutils to release 2.9.1 or newer. Another option is to modify
11884 *** your PATH or compiler configuration so that the native linker is
11885 *** used, and then restart.
11888 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11889 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11890 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11896 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11897 case `$LD -v 2>&1` in
11898 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11902 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11903 *** reliably create shared libraries on SCO systems. Therefore, libtool
11904 *** is disabling shared libraries support. We urge you to upgrade GNU
11905 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11906 *** your PATH or compiler configuration so that the native linker is
11907 *** used, and then restart.
11912 # For security reasons, it is highly recommended that you always
11913 # use absolute paths for naming shared libraries, and exclude the
11914 # DT_RUNPATH tag from executables and libraries. But doing so
11915 # requires that you compile everything twice, which is a pain.
11916 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11919 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11928 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11930 hardcode_direct=yes
11931 hardcode_shlibpath_var=no
11935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11937 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11944 if test "$ld_shlibs" = no; then
11946 hardcode_libdir_flag_spec=
11947 export_dynamic_flag_spec=
11948 whole_archive_flag_spec=
11951 # PORTME fill in a description of your system's linker (not GNU ld)
11954 allow_undefined_flag=unsupported
11955 always_export_symbols=yes
11956 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11957 # Note: this linker hardcodes the directories in LIBPATH if there
11958 # are no directories specified by -L.
11959 hardcode_minus_L=yes
11960 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11961 # Neither direct hardcoding nor static linking is supported with a
11963 hardcode_direct=unsupported
11968 if test "$host_cpu" = ia64; then
11969 # On IA64, the linker does run time linking by default, so we don't
11970 # have to do anything special.
11971 aix_use_runtimelinking=no
11972 exp_sym_flag='-Bexport'
11975 # If we're using GNU nm, then we don't want the "-C" option.
11976 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11977 # Also, AIX nm treats weak defined symbols like other global
11978 # defined symbols, whereas GNU nm marks them as "W".
11979 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11980 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11982 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11984 aix_use_runtimelinking=no
11986 # Test if we are trying to use run time linking or normal
11987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11988 # need to do runtime linking.
11989 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11990 for ld_flag in $LDFLAGS; do
11991 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11992 aix_use_runtimelinking=yes
11999 exp_sym_flag='-bexport'
12000 no_entry_flag='-bnoentry'
12003 # When large executables or shared objects are built, AIX ld can
12004 # have problems creating the table of contents. If linking a library
12005 # or program results in "error TOC overflow" add -mminimal-toc to
12006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12010 hardcode_direct=yes
12011 hardcode_direct_absolute=yes
12012 hardcode_libdir_separator=':'
12013 link_all_deplibs=yes
12014 file_list_spec='${wl}-f,'
12016 if test "$GCC" = yes; then
12017 case $host_os in aix4.[012]|aix4.[012].*)
12018 # We only want to do this on AIX 4.2 and lower, the check
12019 # below for broken collect2 doesn't work under 4.3+
12020 collect2name=`${CC} -print-prog-name=collect2`
12021 if test -f "$collect2name" &&
12022 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12024 # We have reworked collect2
12027 # We have old collect2
12028 hardcode_direct=unsupported
12029 # It fails to find uninstalled libraries when the uninstalled
12030 # path is not listed in the libpath. Setting hardcode_minus_L
12031 # to unsupported forces relinking
12032 hardcode_minus_L=yes
12033 hardcode_libdir_flag_spec='-L$libdir'
12034 hardcode_libdir_separator=
12038 shared_flag='-shared'
12039 if test "$aix_use_runtimelinking" = yes; then
12040 shared_flag="$shared_flag "'${wl}-G'
12044 if test "$host_cpu" = ia64; then
12045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12046 # chokes on -Wl,-G. The following line is correct:
12049 if test "$aix_use_runtimelinking" = yes; then
12050 shared_flag='${wl}-G'
12052 shared_flag='${wl}-bM:SRE'
12057 export_dynamic_flag_spec='${wl}-bexpall'
12058 # It seems that -bexpall does not export symbols beginning with
12059 # underscore (_), so it is better to generate a list of symbols to export.
12060 always_export_symbols=yes
12061 if test "$aix_use_runtimelinking" = yes; then
12062 # Warning - without using the other runtime loading flags (-brtl),
12063 # -berok will link without error, but may produce a broken library.
12064 allow_undefined_flag='-berok'
12065 # Determine the default libpath from the value encoded in an
12066 # empty executable.
12067 if test "${lt_cv_aix_libpath+set}" = set; then
12068 aix_libpath=$lt_cv_aix_libpath
12070 if ${lt_cv_aix_libpath_+:} false; then :
12071 $as_echo_n "(cached) " >&6
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12084 if ac_fn_c_try_link "$LINENO"; then :
12086 lt_aix_libpath_sed='
12087 /Import File Strings/,/^$/ {
12089 s/^0 *\([^ ]*\) *$/\1/
12093 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12094 # Check for a 64-bit object if we didn't find anything.
12095 if test -z "$lt_cv_aix_libpath_"; then
12096 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12099 rm -f core conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
12101 if test -z "$lt_cv_aix_libpath_"; then
12102 lt_cv_aix_libpath_="/usr/lib:/lib"
12107 aix_libpath=$lt_cv_aix_libpath_
12110 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12111 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12113 if test "$host_cpu" = ia64; then
12114 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12115 allow_undefined_flag="-z nodefs"
12116 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12118 # Determine the default libpath from the value encoded in an
12119 # empty executable.
12120 if test "${lt_cv_aix_libpath+set}" = set; then
12121 aix_libpath=$lt_cv_aix_libpath
12123 if ${lt_cv_aix_libpath_+:} false; then :
12124 $as_echo_n "(cached) " >&6
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12137 if ac_fn_c_try_link "$LINENO"; then :
12139 lt_aix_libpath_sed='
12140 /Import File Strings/,/^$/ {
12142 s/^0 *\([^ ]*\) *$/\1/
12146 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12147 # Check for a 64-bit object if we didn't find anything.
12148 if test -z "$lt_cv_aix_libpath_"; then
12149 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12152 rm -f core conftest.err conftest.$ac_objext \
12153 conftest$ac_exeext conftest.$ac_ext
12154 if test -z "$lt_cv_aix_libpath_"; then
12155 lt_cv_aix_libpath_="/usr/lib:/lib"
12160 aix_libpath=$lt_cv_aix_libpath_
12163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12164 # Warning - without using the other run time loading flags,
12165 # -berok will link without error, but may produce a broken library.
12166 no_undefined_flag=' ${wl}-bernotok'
12167 allow_undefined_flag=' ${wl}-berok'
12168 if test "$with_gnu_ld" = yes; then
12169 # We only use this code for GNU lds that support --whole-archive.
12170 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12172 # Exported symbols can be pulled into shared objects from archives
12173 whole_archive_flag_spec='$convenience'
12175 archive_cmds_need_lc=yes
12176 # This is similar to how AIX traditionally builds its shared libraries.
12177 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12185 # see comment about AmigaOS4 .so support
12186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12187 archive_expsym_cmds=''
12190 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12191 hardcode_libdir_flag_spec='-L$libdir'
12192 hardcode_minus_L=yes
12198 export_dynamic_flag_spec=-rdynamic
12201 cygwin* | mingw* | pw32* | cegcc*)
12202 # When not using gcc, we currently assume that we are using
12203 # Microsoft Visual C++.
12204 # hardcode_libdir_flag_spec is actually meaningless, as there is
12205 # no search path for DLLs.
12206 case $cc_basename in
12209 hardcode_libdir_flag_spec=' '
12210 allow_undefined_flag=unsupported
12211 always_export_symbols=yes
12213 # Tell ltmain to make .lib files, not .a files.
12215 # Tell ltmain to make .dll files, not .so files.
12217 # FIXME: Setting linknames here is a bad hack.
12218 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12219 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12220 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12222 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12224 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12226 # The linker will not automatically build a static lib if we build a DLL.
12227 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12228 enable_shared_with_static_runtimes=yes
12229 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12231 old_postinstall_cmds='chmod 644 $oldlib'
12232 postlink_cmds='lt_outputfile="@OUTPUT@"~
12233 lt_tool_outputfile="@TOOL_OUTPUT@"~
12234 case $lt_outputfile in
12237 lt_outputfile="$lt_outputfile.exe"
12238 lt_tool_outputfile="$lt_tool_outputfile.exe"
12241 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12242 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12243 $RM "$lt_outputfile.manifest";
12247 # Assume MSVC wrapper
12248 hardcode_libdir_flag_spec=' '
12249 allow_undefined_flag=unsupported
12250 # Tell ltmain to make .lib files, not .a files.
12252 # Tell ltmain to make .dll files, not .so files.
12254 # FIXME: Setting linknames here is a bad hack.
12255 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12256 # The linker will automatically build a .lib file if we build a DLL.
12257 old_archive_from_new_cmds='true'
12258 # FIXME: Should let the user specify the lib program.
12259 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12260 enable_shared_with_static_runtimes=yes
12265 darwin* | rhapsody*)
12268 archive_cmds_need_lc=no
12270 hardcode_automatic=yes
12271 hardcode_shlibpath_var=unsupported
12272 if test "$lt_cv_ld_force_load" = "yes"; then
12273 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12275 whole_archive_flag_spec=''
12277 link_all_deplibs=yes
12278 allow_undefined_flag="$_lt_dar_allow_undefined"
12279 case $cc_basename in
12280 ifort*) _lt_dar_can_shared=yes ;;
12281 *) _lt_dar_can_shared=$GCC ;;
12283 if test "$_lt_dar_can_shared" = "yes"; then
12284 output_verbose_link_cmd=func_echo_all
12285 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12286 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12287 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12288 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12298 hardcode_libdir_flag_spec='-L$libdir'
12299 hardcode_shlibpath_var=no
12306 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12307 # support. Future versions do this automatically, but an explicit c++rt0.o
12308 # does not break anything, and helps significantly (at the cost of a little
12311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12312 hardcode_libdir_flag_spec='-R$libdir'
12313 hardcode_direct=yes
12314 hardcode_shlibpath_var=no
12317 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12320 hardcode_direct=yes
12321 hardcode_minus_L=yes
12322 hardcode_shlibpath_var=no
12325 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12326 freebsd* | dragonfly*)
12327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12328 hardcode_libdir_flag_spec='-R$libdir'
12329 hardcode_direct=yes
12330 hardcode_shlibpath_var=no
12334 if test "$GCC" = yes; then
12335 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12337 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12339 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12340 hardcode_libdir_separator=:
12341 hardcode_direct=yes
12343 # hardcode_minus_L: Not really in the search PATH,
12344 # but as the default location of the library.
12345 hardcode_minus_L=yes
12346 export_dynamic_flag_spec='${wl}-E'
12350 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12351 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12353 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12355 if test "$with_gnu_ld" = no; then
12356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12357 hardcode_libdir_flag_spec_ld='+b $libdir'
12358 hardcode_libdir_separator=:
12359 hardcode_direct=yes
12360 hardcode_direct_absolute=yes
12361 export_dynamic_flag_spec='${wl}-E'
12362 # hardcode_minus_L: Not really in the search PATH,
12363 # but as the default location of the library.
12364 hardcode_minus_L=yes
12369 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12372 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12375 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12378 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12384 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12391 # Older versions of the 11.00 compiler do not understand -b yet
12392 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12394 $as_echo_n "checking if $CC understands -b... " >&6; }
12395 if ${lt_cv_prog_compiler__b+:} false; then :
12396 $as_echo_n "(cached) " >&6
12398 lt_cv_prog_compiler__b=no
12399 save_LDFLAGS="$LDFLAGS"
12400 LDFLAGS="$LDFLAGS -b"
12401 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12402 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12403 # The linker can only warn and ignore the option if not recognized
12404 # So say no if there are warnings
12405 if test -s conftest.err; then
12406 # Append any errors to the config.log.
12407 cat conftest.err 1>&5
12408 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12410 if diff conftest.exp conftest.er2 >/dev/null; then
12411 lt_cv_prog_compiler__b=yes
12414 lt_cv_prog_compiler__b=yes
12418 LDFLAGS="$save_LDFLAGS"
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12422 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12424 if test x"$lt_cv_prog_compiler__b" = xyes; then
12425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12427 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12433 if test "$with_gnu_ld" = no; then
12434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12435 hardcode_libdir_separator=:
12440 hardcode_shlibpath_var=no
12443 hardcode_direct=yes
12444 hardcode_direct_absolute=yes
12445 export_dynamic_flag_spec='${wl}-E'
12447 # hardcode_minus_L: Not really in the search PATH,
12448 # but as the default location of the library.
12449 hardcode_minus_L=yes
12455 irix5* | irix6* | nonstopux*)
12456 if test "$GCC" = yes; then
12457 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12458 # Try to use the -exported_symbol ld option, if it does not
12459 # work, assume that -exports_file does not work either and
12460 # implicitly export all symbols.
12461 # This should be the same for all languages, so no per-tag cache variable.
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12463 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12464 if ${lt_cv_irix_exported_symbol+:} false; then :
12465 $as_echo_n "(cached) " >&6
12467 save_LDFLAGS="$LDFLAGS"
12468 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12471 int foo (void) { return 0; }
12473 if ac_fn_c_try_link "$LINENO"; then :
12474 lt_cv_irix_exported_symbol=yes
12476 lt_cv_irix_exported_symbol=no
12478 rm -f core conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
12480 LDFLAGS="$save_LDFLAGS"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12483 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12484 if test "$lt_cv_irix_exported_symbol" = yes; then
12485 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12489 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12491 archive_cmds_need_lc='no'
12492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12493 hardcode_libdir_separator=:
12495 link_all_deplibs=yes
12499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12502 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12504 hardcode_libdir_flag_spec='-R$libdir'
12505 hardcode_direct=yes
12506 hardcode_shlibpath_var=no
12510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12511 hardcode_direct=yes
12512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12513 hardcode_libdir_separator=:
12514 hardcode_shlibpath_var=no
12521 if test -f /usr/libexec/ld.so; then
12522 hardcode_direct=yes
12523 hardcode_shlibpath_var=no
12524 hardcode_direct_absolute=yes
12525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12527 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12528 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12529 export_dynamic_flag_spec='${wl}-E'
12532 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12534 hardcode_libdir_flag_spec='-R$libdir'
12537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12538 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12548 hardcode_libdir_flag_spec='-L$libdir'
12549 hardcode_minus_L=yes
12550 allow_undefined_flag=unsupported
12551 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12552 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12556 if test "$GCC" = yes; then
12557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12558 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12560 allow_undefined_flag=' -expect_unresolved \*'
12561 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12563 archive_cmds_need_lc='no'
12564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12565 hardcode_libdir_separator=:
12568 osf4* | osf5*) # as osf3* with the addition of -msym flag
12569 if test "$GCC" = yes; then
12570 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12571 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12574 allow_undefined_flag=' -expect_unresolved \*'
12575 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12576 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12577 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12579 # Both c and cxx compiler support -rpath directly
12580 hardcode_libdir_flag_spec='-rpath $libdir'
12582 archive_cmds_need_lc='no'
12583 hardcode_libdir_separator=:
12587 no_undefined_flag=' -z defs'
12588 if test "$GCC" = yes; then
12590 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12592 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12594 case `$CC -V 2>&1` in
12597 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12603 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12605 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12609 hardcode_libdir_flag_spec='-R$libdir'
12610 hardcode_shlibpath_var=no
12612 solaris2.[0-5] | solaris2.[0-5].*) ;;
12614 # The compiler driver will combine and reorder linker options,
12615 # but understands `-z linker_flag'. GCC discards it without `$wl',
12616 # but is careful enough not to reorder.
12617 # Supported since Solaris 2.6 (maybe 2.5.1?)
12618 if test "$GCC" = yes; then
12619 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12621 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12625 link_all_deplibs=yes
12629 if test "x$host_vendor" = xsequent; then
12630 # Use $CC to link under sequent, because it throws in some extra .o
12631 # files that make .init and .fini sections work.
12632 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12634 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12636 hardcode_libdir_flag_spec='-L$libdir'
12637 hardcode_direct=yes
12638 hardcode_minus_L=yes
12639 hardcode_shlibpath_var=no
12643 case $host_vendor in
12645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12646 hardcode_direct=yes # is this really true???
12649 ## LD is ld it makes a PLAMLIB
12650 ## CC just makes a GrossModule.
12651 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12652 reload_cmds='$CC -r -o $output$reload_objs'
12656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12657 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12660 runpath_var='LD_RUN_PATH'
12661 hardcode_shlibpath_var=no
12665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12666 hardcode_shlibpath_var=no
12667 export_dynamic_flag_spec='-Bexport'
12671 if test -d /usr/nec; then
12672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12673 hardcode_shlibpath_var=no
12674 runpath_var=LD_RUN_PATH
12675 hardcode_runpath_var=yes
12680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12681 no_undefined_flag='${wl}-z,text'
12682 archive_cmds_need_lc=no
12683 hardcode_shlibpath_var=no
12684 runpath_var='LD_RUN_PATH'
12686 if test "$GCC" = yes; then
12687 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12688 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12690 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12691 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12695 sysv5* | sco3.2v5* | sco5v6*)
12696 # Note: We can NOT use -z defs as we might desire, because we do not
12697 # link with -lc, and that would cause any symbols used from libc to
12698 # always be unresolved, which means just about no library would
12699 # ever link correctly. If we're not using GNU ld we use -z text
12700 # though, which does catch some bad symbols but isn't as heavy-handed
12702 no_undefined_flag='${wl}-z,text'
12703 allow_undefined_flag='${wl}-z,nodefs'
12704 archive_cmds_need_lc=no
12705 hardcode_shlibpath_var=no
12706 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12707 hardcode_libdir_separator=':'
12708 link_all_deplibs=yes
12709 export_dynamic_flag_spec='${wl}-Bexport'
12710 runpath_var='LD_RUN_PATH'
12712 if test "$GCC" = yes; then
12713 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12714 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12716 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12717 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12723 hardcode_libdir_flag_spec='-L$libdir'
12724 hardcode_shlibpath_var=no
12732 if test x$host_vendor = xsni; then
12734 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12735 export_dynamic_flag_spec='${wl}-Blargedynsym'
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12742 $as_echo "$ld_shlibs" >&6; }
12743 test "$ld_shlibs" = no && can_build_shared=no
12745 with_gnu_ld=$with_gnu_ld
12762 # Do we need to explicitly link libc?
12764 case "x$archive_cmds_need_lc" in
12766 # Assume -lc should be added
12767 archive_cmds_need_lc=yes
12769 if test "$enable_shared" = yes && test "$GCC" = yes; then
12770 case $archive_cmds in
12772 # FIXME: we may have to deal with multi-command sequences.
12775 # Test whether the compiler implicitly links with -lc since on some
12776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12777 # to ld, don't add -lc before -lgcc.
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12779 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12780 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12781 $as_echo_n "(cached) " >&6
12784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12787 (eval $ac_compile) 2>&5
12789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12790 test $ac_status = 0; } 2>conftest.err; then
12793 libobjs=conftest.$ac_objext
12795 wl=$lt_prog_compiler_wl
12796 pic_flag=$lt_prog_compiler_pic
12802 lt_save_allow_undefined_flag=$allow_undefined_flag
12803 allow_undefined_flag=
12804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12805 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12808 test $ac_status = 0; }
12810 lt_cv_archive_cmds_need_lc=no
12812 lt_cv_archive_cmds_need_lc=yes
12814 allow_undefined_flag=$lt_save_allow_undefined_flag
12816 cat conftest.err 1>&5
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12822 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12823 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12987 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12989 if test "$GCC" = yes; then
12991 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12992 *) lt_awk_arg="/^libraries:/" ;;
12995 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12996 *) lt_sed_strip_eq="s,=/,/,g" ;;
12998 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12999 case $lt_search_path_spec in
13001 # if the path contains ";" then we assume it to be the separator
13002 # otherwise default to the standard path separator (i.e. ":") - it is
13003 # assumed that no part of a normal pathname contains ";" but that should
13004 # okay in the real world where ";" in dirpaths is itself problematic.
13005 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13008 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13011 # Ok, now we have the path, separated by spaces, we can step through it
13012 # and add multilib dir if necessary.
13013 lt_tmp_lt_search_path_spec=
13014 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13015 for lt_sys_path in $lt_search_path_spec; do
13016 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13017 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13019 test -d "$lt_sys_path" && \
13020 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13023 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13024 BEGIN {RS=" "; FS="/|\n";} {
13027 for (lt_i = NF; lt_i > 0; lt_i--) {
13028 if ($lt_i != "" && $lt_i != ".") {
13029 if ($lt_i == "..") {
13032 if (lt_count == 0) {
13033 lt_foo="/" $lt_i lt_foo;
13040 if (lt_foo != "") { lt_freq[lt_foo]++; }
13041 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13043 # AWK program above erroneously prepends '/' to C:/dos/paths
13046 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13047 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13049 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13051 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13053 library_names_spec=
13054 libname_spec='lib$name'
13058 postuninstall_cmds=
13062 shlibpath_overrides_runpath=unknown
13064 dynamic_linker="$host_os ld.so"
13065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13066 need_lib_prefix=unknown
13067 hardcode_into_libs=no
13069 # when you set need_version to no, make sure it does not cause -set_version
13070 # flags to be left without arguments
13071 need_version=unknown
13076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13077 shlibpath_var=LIBPATH
13079 # AIX 3 has no versioning support, so we append a major version to the name.
13080 soname_spec='${libname}${release}${shared_ext}$major'
13087 hardcode_into_libs=yes
13088 if test "$host_cpu" = ia64; then
13089 # AIX 5 supports IA64
13090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13091 shlibpath_var=LD_LIBRARY_PATH
13093 # With GCC up to 2.95.x, collect2 would create an import file
13094 # for dependence libraries. The import file would start with
13095 # the line `#! .'. This would cause the generated library to
13096 # depend on `.', always an invalid library. This was fixed in
13097 # development snapshots of GCC prior to 3.0.
13099 aix4 | aix4.[01] | aix4.[01].*)
13100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13102 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13105 can_build_shared=no
13109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13110 # soname into executable. Probably we can add versioning support to
13111 # collect2, so additional links can be useful in future.
13112 if test "$aix_use_runtimelinking" = yes; then
13113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13114 # instead of lib<name>.a to let people know that these are not
13115 # typical AIX shared libraries.
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13118 # We preserve .a as extension for shared libraries through AIX4.2
13119 # and later when we are not doing run time linking.
13120 library_names_spec='${libname}${release}.a $libname.a'
13121 soname_spec='${libname}${release}${shared_ext}$major'
13123 shlibpath_var=LIBPATH
13130 # Since July 2007 AmigaOS4 officially supports .so libraries.
13131 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13135 library_names_spec='$libname.ixlibrary $libname.a'
13136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13137 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13143 library_names_spec='${libname}${shared_ext}'
13144 dynamic_linker="$host_os ld.so"
13145 shlibpath_var=LIBRARY_PATH
13151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13152 soname_spec='${libname}${release}${shared_ext}$major'
13153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13154 shlibpath_var=LD_LIBRARY_PATH
13155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13157 # the default ld.so.conf also contains /usr/contrib/lib and
13158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13159 # libtool to hard-code these into programs
13162 cygwin* | mingw* | pw32* | cegcc*)
13163 version_type=windows
13168 case $GCC,$cc_basename in
13171 library_names_spec='$libname.dll.a'
13172 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13173 postinstall_cmds='base_file=`basename \${file}`~
13174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13175 dldir=$destdir/`dirname \$dlpath`~
13176 test -d \$dldir || mkdir -p \$dldir~
13177 $install_prog $dir/$dlname \$dldir/$dlname~
13178 chmod a+x \$dldir/$dlname~
13179 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13180 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13183 dlpath=$dir/\$dldll~
13185 shlibpath_overrides_runpath=yes
13189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13195 # MinGW DLLs use traditional 'lib' prefix
13196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13199 # pw32 DLLs use 'pw' prefix rather than 'lib'
13200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13203 dynamic_linker='Win32 ld.exe'
13208 libname_spec='$name'
13209 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13210 library_names_spec='${libname}.dll.lib'
13214 sys_lib_search_path_spec=
13217 for lt_path in $LIB
13220 # Let DOS variable expansion print the short 8.3 style file name.
13221 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13222 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13225 # Convert to MSYS style.
13226 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13229 # Convert to unix form, then to dos form, then back to unix form
13230 # but this time dos style (no spaces!) so that the unix form looks
13231 # like /cygdrive/c/PROGRA~1:/cygdr...
13232 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13233 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13234 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13237 sys_lib_search_path_spec="$LIB"
13238 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13239 # It is most probably a Windows format PATH.
13240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13244 # FIXME: find the short name or the path components, as spaces are
13245 # common. (e.g. "Program Files" -> "PROGRA~1")
13249 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13250 postinstall_cmds='base_file=`basename \${file}`~
13251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13252 dldir=$destdir/`dirname \$dlpath`~
13253 test -d \$dldir || mkdir -p \$dldir~
13254 $install_prog $dir/$dlname \$dldir/$dlname'
13255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13256 dlpath=$dir/\$dldll~
13258 shlibpath_overrides_runpath=yes
13259 dynamic_linker='Win32 link.exe'
13263 # Assume MSVC wrapper
13264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13265 dynamic_linker='Win32 ld.exe'
13268 # FIXME: first we should search . and the directory the executable is in
13272 darwin* | rhapsody*)
13273 dynamic_linker="$host_os dyld"
13274 version_type=darwin
13277 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13278 soname_spec='${libname}${release}${major}$shared_ext'
13279 shlibpath_overrides_runpath=yes
13280 shlibpath_var=DYLD_LIBRARY_PATH
13281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13283 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13284 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13292 soname_spec='${libname}${release}${shared_ext}$major'
13293 shlibpath_var=LD_LIBRARY_PATH
13300 freebsd* | dragonfly*)
13301 # DragonFly does not have aout. When/if they implement a new
13302 # versioning mechanism, adjust this.
13303 if test -x /usr/bin/objformat; then
13304 objformat=`/usr/bin/objformat`
13307 freebsd[123]*) objformat=aout ;;
13308 *) objformat=elf ;;
13311 version_type=freebsd-$objformat
13312 case $version_type in
13314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13323 shlibpath_var=LD_LIBRARY_PATH
13326 shlibpath_overrides_runpath=yes
13328 freebsd3.[01]* | freebsdelf3.[01]*)
13329 shlibpath_overrides_runpath=yes
13330 hardcode_into_libs=yes
13332 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13333 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13334 shlibpath_overrides_runpath=no
13335 hardcode_into_libs=yes
13337 *) # from 4.6 on, and DragonFly
13338 shlibpath_overrides_runpath=yes
13339 hardcode_into_libs=yes
13348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13349 soname_spec='${libname}${release}${shared_ext}$major'
13350 shlibpath_var=LD_LIBRARY_PATH
13351 hardcode_into_libs=yes
13358 dynamic_linker="$host_os runtime_loader"
13359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13360 soname_spec='${libname}${release}${shared_ext}$major'
13361 shlibpath_var=LIBRARY_PATH
13362 shlibpath_overrides_runpath=yes
13363 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13364 hardcode_into_libs=yes
13367 hpux9* | hpux10* | hpux11*)
13368 # Give a soname corresponding to the major version so that dld.sl refuses to
13369 # link against other versions.
13376 hardcode_into_libs=yes
13377 dynamic_linker="$host_os dld.so"
13378 shlibpath_var=LD_LIBRARY_PATH
13379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381 soname_spec='${libname}${release}${shared_ext}$major'
13382 if test "X$HPUX_IA64_MODE" = X32; then
13383 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13385 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13391 hardcode_into_libs=yes
13392 dynamic_linker="$host_os dld.sl"
13393 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13396 soname_spec='${libname}${release}${shared_ext}$major'
13397 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13402 dynamic_linker="$host_os dld.sl"
13403 shlibpath_var=SHLIB_PATH
13404 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406 soname_spec='${libname}${release}${shared_ext}$major'
13409 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13410 postinstall_cmds='chmod 555 $lib'
13411 # or fails outright, so override atomically:
13412 install_override_mode=555
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13420 soname_spec='${libname}${release}${shared_ext}$major'
13421 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13422 shlibpath_var=LD_LIBRARY_PATH
13423 shlibpath_overrides_runpath=no
13424 hardcode_into_libs=yes
13427 irix5* | irix6* | nonstopux*)
13429 nonstopux*) version_type=nonstopux ;;
13431 if test "$lt_cv_prog_gnu_ld" = yes; then
13439 soname_spec='${libname}${release}${shared_ext}$major'
13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13442 irix5* | nonstopux*)
13443 libsuff= shlibsuff=
13446 case $LD in # libtool.m4 will add one of these switches to LD
13447 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13448 libsuff= shlibsuff= libmagic=32-bit;;
13449 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13450 libsuff=32 shlibsuff=N32 libmagic=N32;;
13451 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13452 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13453 *) libsuff= shlibsuff= libmagic=never-match;;
13457 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13458 shlibpath_overrides_runpath=no
13459 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13460 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13461 hardcode_into_libs=yes
13464 # No shared lib support for Linux oldld, aout, or coff.
13465 linux*oldld* | linux*aout* | linux*coff*)
13469 # This must be Linux ELF.
13470 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475 soname_spec='${libname}${release}${shared_ext}$major'
13476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath=no
13480 # Some binutils ld are patched to set DT_RUNPATH
13481 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13482 $as_echo_n "(cached) " >&6
13484 lt_cv_shlibpath_overrides_runpath=no
13485 save_LDFLAGS=$LDFLAGS
13486 save_libdir=$libdir
13487 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13488 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13500 if ac_fn_c_try_link "$LINENO"; then :
13501 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13502 lt_cv_shlibpath_overrides_runpath=yes
13505 rm -f core conftest.err conftest.$ac_objext \
13506 conftest$ac_exeext conftest.$ac_ext
13507 LDFLAGS=$save_LDFLAGS
13508 libdir=$save_libdir
13512 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13514 # This implies no fast_install, which is unacceptable.
13515 # Some rework will be needed to allow for fast_install
13516 # before this can be enabled.
13517 hardcode_into_libs=yes
13519 # Add ABI-specific directories to the system library path.
13520 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13522 # Append ld.so.conf contents to the search path
13523 if test -f /etc/ld.so.conf; then
13524 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13525 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13529 # We used to test for /lib/ld.so.1 and disable shared libraries on
13530 # powerpc, because MkLinux only supported shared libraries with the
13531 # GNU dynamic linker. Since this was broken with cross compilers,
13532 # most powerpc-linux boxes support dynamic linking these days and
13533 # people can always --disable-shared, the test was removed, and we
13534 # assume the GNU/Linux dynamic linker is in use.
13535 dynamic_linker='GNU/Linux ld.so'
13542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13545 dynamic_linker='NetBSD (a.out) ld.so'
13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13548 soname_spec='${libname}${release}${shared_ext}$major'
13549 dynamic_linker='NetBSD ld.elf_so'
13551 shlibpath_var=LD_LIBRARY_PATH
13552 shlibpath_overrides_runpath=yes
13553 hardcode_into_libs=yes
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559 shlibpath_var=LD_LIBRARY_PATH
13560 shlibpath_overrides_runpath=yes
13567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568 soname_spec='${libname}${release}${shared_ext}$major'
13569 shlibpath_var=LD_LIBRARY_PATH
13570 shlibpath_overrides_runpath=no
13571 hardcode_into_libs=yes
13572 dynamic_linker='ldqnx.so'
13577 sys_lib_dlsearch_path_spec="/usr/lib"
13579 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13581 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13582 *) need_version=no ;;
13584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13586 shlibpath_var=LD_LIBRARY_PATH
13587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13589 openbsd2.[89] | openbsd2.[89].*)
13590 shlibpath_overrides_runpath=no
13593 shlibpath_overrides_runpath=yes
13597 shlibpath_overrides_runpath=yes
13602 libname_spec='$name'
13605 library_names_spec='$libname${shared_ext} $libname.a'
13606 dynamic_linker='OS/2 ld.exe'
13607 shlibpath_var=LIBPATH
13610 osf3* | osf4* | osf5*)
13614 soname_spec='${libname}${release}${shared_ext}$major'
13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616 shlibpath_var=LD_LIBRARY_PATH
13617 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13618 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630 soname_spec='${libname}${release}${shared_ext}$major'
13631 shlibpath_var=LD_LIBRARY_PATH
13632 shlibpath_overrides_runpath=yes
13633 hardcode_into_libs=yes
13634 # ldd complains unless libraries are executable
13635 postinstall_cmds='chmod +x $lib'
13640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13641 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13642 shlibpath_var=LD_LIBRARY_PATH
13643 shlibpath_overrides_runpath=yes
13644 if test "$with_gnu_ld" = yes; then
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653 soname_spec='${libname}${release}${shared_ext}$major'
13654 shlibpath_var=LD_LIBRARY_PATH
13655 case $host_vendor in
13657 shlibpath_overrides_runpath=no
13659 runpath_var=LD_RUN_PATH
13667 shlibpath_overrides_runpath=no
13668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13674 if test -d /usr/nec ;then
13676 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13677 soname_spec='$libname${shared_ext}.$major'
13678 shlibpath_var=LD_LIBRARY_PATH
13682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13683 version_type=freebsd-elf
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13687 soname_spec='${libname}${release}${shared_ext}$major'
13688 shlibpath_var=LD_LIBRARY_PATH
13689 shlibpath_overrides_runpath=yes
13690 hardcode_into_libs=yes
13691 if test "$with_gnu_ld" = yes; then
13692 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13694 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13697 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13701 sys_lib_dlsearch_path_spec='/usr/lib'
13705 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13710 shlibpath_var=LD_LIBRARY_PATH
13711 shlibpath_overrides_runpath=no
13712 hardcode_into_libs=yes
13717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13718 soname_spec='${libname}${release}${shared_ext}$major'
13719 shlibpath_var=LD_LIBRARY_PATH
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13727 $as_echo "$dynamic_linker" >&6; }
13728 test "$dynamic_linker" = no && can_build_shared=no
13730 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13731 if test "$GCC" = yes; then
13732 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13735 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13736 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13738 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13739 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13834 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13836 if test -n "$hardcode_libdir_flag_spec" ||
13837 test -n "$runpath_var" ||
13838 test "X$hardcode_automatic" = "Xyes" ; then
13840 # We can hardcode non-existent directories.
13841 if test "$hardcode_direct" != no &&
13842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13843 # have to relink, otherwise we might link with an installed library
13844 # when we should be linking with a yet-to-be-installed one
13845 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13846 test "$hardcode_minus_L" != no; then
13847 # Linking always hardcodes the temporary library directory.
13848 hardcode_action=relink
13850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13851 hardcode_action=immediate
13854 # We cannot hardcode anything, or else we can only hardcode existing
13856 hardcode_action=unsupported
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13859 $as_echo "$hardcode_action" >&6; }
13861 if test "$hardcode_action" = relink ||
13862 test "$inherit_rpath" = yes; then
13863 # Fast installation is not supported
13864 enable_fast_install=no
13865 elif test "$shlibpath_overrides_runpath" = yes ||
13866 test "$enable_shared" = no; then
13867 # Fast installation is not necessary
13868 enable_fast_install=needless
13876 if test "x$enable_dlopen" != xyes; then
13877 enable_dlopen=unknown
13878 enable_dlopen_self=unknown
13879 enable_dlopen_self_static=unknown
13886 lt_cv_dlopen="load_add_on"
13888 lt_cv_dlopen_self=yes
13891 mingw* | pw32* | cegcc*)
13892 lt_cv_dlopen="LoadLibrary"
13897 lt_cv_dlopen="dlopen"
13902 # if libdl is installed we need to link against it
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13904 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13905 if ${ac_cv_lib_dl_dlopen+:} false; then :
13906 $as_echo_n "(cached) " >&6
13908 ac_check_lib_save_LIBS=$LIBS
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13928 if ac_fn_c_try_link "$LINENO"; then :
13929 ac_cv_lib_dl_dlopen=yes
13931 ac_cv_lib_dl_dlopen=no
13933 rm -f core conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
13935 LIBS=$ac_check_lib_save_LIBS
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13938 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13939 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13943 lt_cv_dlopen="dyld"
13945 lt_cv_dlopen_self=yes
13952 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13953 if test "x$ac_cv_func_shl_load" = xyes; then :
13954 lt_cv_dlopen="shl_load"
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13957 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13958 if ${ac_cv_lib_dld_shl_load+:} false; then :
13959 $as_echo_n "(cached) " >&6
13961 ac_check_lib_save_LIBS=$LIBS
13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h. */
13966 /* Override any GCC internal prototype to avoid an error.
13967 Use char because int might match the return type of a GCC
13968 builtin and then its argument prototype would still apply. */
13976 return shl_load ();
13981 if ac_fn_c_try_link "$LINENO"; then :
13982 ac_cv_lib_dld_shl_load=yes
13984 ac_cv_lib_dld_shl_load=no
13986 rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13988 LIBS=$ac_check_lib_save_LIBS
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13991 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13992 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13993 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13995 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13996 if test "x$ac_cv_func_dlopen" = xyes; then :
13997 lt_cv_dlopen="dlopen"
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14001 if ${ac_cv_lib_dl_dlopen+:} false; then :
14002 $as_echo_n "(cached) " >&6
14004 ac_check_lib_save_LIBS=$LIBS
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14009 /* Override any GCC internal prototype to avoid an error.
14010 Use char because int might match the return type of a GCC
14011 builtin and then its argument prototype would still apply. */
14024 if ac_fn_c_try_link "$LINENO"; then :
14025 ac_cv_lib_dl_dlopen=yes
14027 ac_cv_lib_dl_dlopen=no
14029 rm -f core conftest.err conftest.$ac_objext \
14030 conftest$ac_exeext conftest.$ac_ext
14031 LIBS=$ac_check_lib_save_LIBS
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14034 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14035 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14039 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14040 if ${ac_cv_lib_svld_dlopen+:} false; then :
14041 $as_echo_n "(cached) " >&6
14043 ac_check_lib_save_LIBS=$LIBS
14044 LIBS="-lsvld $LIBS"
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h. */
14048 /* Override any GCC internal prototype to avoid an error.
14049 Use char because int might match the return type of a GCC
14050 builtin and then its argument prototype would still apply. */
14063 if ac_fn_c_try_link "$LINENO"; then :
14064 ac_cv_lib_svld_dlopen=yes
14066 ac_cv_lib_svld_dlopen=no
14068 rm -f core conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14073 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14074 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14078 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14079 if ${ac_cv_lib_dld_dld_link+:} false; then :
14080 $as_echo_n "(cached) " >&6
14082 ac_check_lib_save_LIBS=$LIBS
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14087 /* Override any GCC internal prototype to avoid an error.
14088 Use char because int might match the return type of a GCC
14089 builtin and then its argument prototype would still apply. */
14097 return dld_link ();
14102 if ac_fn_c_try_link "$LINENO"; then :
14103 ac_cv_lib_dld_dld_link=yes
14105 ac_cv_lib_dld_dld_link=no
14107 rm -f core conftest.err conftest.$ac_objext \
14108 conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14112 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14113 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14114 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14135 if test "x$lt_cv_dlopen" != xno; then
14141 case $lt_cv_dlopen in
14143 save_CPPFLAGS="$CPPFLAGS"
14144 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14146 save_LDFLAGS="$LDFLAGS"
14147 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14150 LIBS="$lt_cv_dlopen_libs $LIBS"
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14153 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14154 if ${lt_cv_dlopen_self+:} false; then :
14155 $as_echo_n "(cached) " >&6
14157 if test "$cross_compiling" = yes; then :
14158 lt_cv_dlopen_self=cross
14160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14161 lt_status=$lt_dlunknown
14162 cat > conftest.$ac_ext <<_LT_EOF
14163 #line $LINENO "configure"
14164 #include "confdefs.h"
14173 # define LT_DLGLOBAL RTLD_GLOBAL
14176 # define LT_DLGLOBAL DL_GLOBAL
14178 # define LT_DLGLOBAL 0
14182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14183 find out it does not work in some platform. */
14184 #ifndef LT_DLLAZY_OR_NOW
14186 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14189 # define LT_DLLAZY_OR_NOW DL_LAZY
14192 # define LT_DLLAZY_OR_NOW RTLD_NOW
14195 # define LT_DLLAZY_OR_NOW DL_NOW
14197 # define LT_DLLAZY_OR_NOW 0
14204 /* When -fvisbility=hidden is used, assume the code has been annotated
14205 correspondingly for the symbols needed. */
14206 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14207 int fnord () __attribute__((visibility("default")));
14210 int fnord () { return 42; }
14213 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14214 int status = $lt_dlunknown;
14218 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14221 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14222 else puts (dlerror ());
14224 /* dlclose (self); */
14232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14233 (eval $ac_link) 2>&5
14235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14237 (./conftest; exit; ) >&5 2>/dev/null
14239 case x$lt_status in
14240 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14241 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14242 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14245 # compilation failed
14246 lt_cv_dlopen_self=no
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14254 $as_echo "$lt_cv_dlopen_self" >&6; }
14256 if test "x$lt_cv_dlopen_self" = xyes; then
14257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14259 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14260 if ${lt_cv_dlopen_self_static+:} false; then :
14261 $as_echo_n "(cached) " >&6
14263 if test "$cross_compiling" = yes; then :
14264 lt_cv_dlopen_self_static=cross
14266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14267 lt_status=$lt_dlunknown
14268 cat > conftest.$ac_ext <<_LT_EOF
14269 #line $LINENO "configure"
14270 #include "confdefs.h"
14279 # define LT_DLGLOBAL RTLD_GLOBAL
14282 # define LT_DLGLOBAL DL_GLOBAL
14284 # define LT_DLGLOBAL 0
14288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14289 find out it does not work in some platform. */
14290 #ifndef LT_DLLAZY_OR_NOW
14292 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14295 # define LT_DLLAZY_OR_NOW DL_LAZY
14298 # define LT_DLLAZY_OR_NOW RTLD_NOW
14301 # define LT_DLLAZY_OR_NOW DL_NOW
14303 # define LT_DLLAZY_OR_NOW 0
14310 /* When -fvisbility=hidden is used, assume the code has been annotated
14311 correspondingly for the symbols needed. */
14312 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14313 int fnord () __attribute__((visibility("default")));
14316 int fnord () { return 42; }
14319 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14320 int status = $lt_dlunknown;
14324 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14327 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14328 else puts (dlerror ());
14330 /* dlclose (self); */
14338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14339 (eval $ac_link) 2>&5
14341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14342 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14343 (./conftest; exit; ) >&5 2>/dev/null
14345 case x$lt_status in
14346 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14347 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14348 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14351 # compilation failed
14352 lt_cv_dlopen_self_static=no
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14360 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14363 CPPFLAGS="$save_CPPFLAGS"
14364 LDFLAGS="$save_LDFLAGS"
14369 case $lt_cv_dlopen_self in
14370 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14371 *) enable_dlopen_self=unknown ;;
14374 case $lt_cv_dlopen_self_static in
14375 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14376 *) enable_dlopen_self_static=unknown ;;
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14399 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14400 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14401 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14402 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14404 $as_echo "yes" >&6; }
14406 # FIXME - insert some real tests, host_os isn't really good enough
14409 if test -n "$STRIP" ; then
14410 striplib="$STRIP -x"
14411 old_striplib="$STRIP -S"
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14413 $as_echo "yes" >&6; }
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 $as_echo "no" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421 $as_echo "no" >&6; }
14437 # Report which library types will actually be built
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14439 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14441 $as_echo "$can_build_shared" >&6; }
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14444 $as_echo_n "checking whether to build shared libraries... " >&6; }
14445 test "$can_build_shared" = "no" && enable_shared=no
14447 # On AIX, shared libraries and static libraries use the same namespace, and
14448 # are all built from PIC.
14451 test "$enable_shared" = yes && enable_static=no
14452 if test -n "$RANLIB"; then
14453 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14454 postinstall_cmds='$RANLIB $lib'
14459 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14460 test "$enable_shared" = yes && enable_static=no
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14465 $as_echo "$enable_shared" >&6; }
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14468 $as_echo_n "checking whether to build static libraries... " >&6; }
14469 # Make sure either enable_shared or enable_static is yes.
14470 test "$enable_shared" = yes || enable_static=yes
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14472 $as_echo "$enable_static" >&6; }
14479 ac_cpp='$CPP $CPPFLAGS'
14480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14498 ac_config_commands="$ac_config_commands libtool"
14503 # Only expand once:
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14510 $as_echo_n "checking whether NLS is requested... " >&6; }
14511 # Check whether --enable-nls was given.
14512 if test "${enable_nls+set}" = set; then :
14513 enableval=$enable_nls; USE_NLS=$enableval
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14519 $as_echo "$USE_NLS" >&6; }
14524 GETTEXT_MACRO_VERSION=0.17
14529 # Prepare PATH_SEPARATOR.
14530 # The user is always right.
14531 if test "${PATH_SEPARATOR+set}" != set; then
14532 echo "#! /bin/sh" >conf$$.sh
14533 echo "exit 0" >>conf$$.sh
14535 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14543 # Find out how to test for executable files. Don't use a zero-byte file,
14544 # as systems may use methods other than mode bits to determine executability.
14545 cat >conf$$.file <<_ASEOF
14549 chmod +x conf$$.file
14550 if test -x conf$$.file >/dev/null 2>&1; then
14551 ac_executable_p="test -x"
14553 ac_executable_p="test -f"
14557 # Extract the first word of "msgfmt", so it can be a program name with args.
14558 set dummy msgfmt; ac_word=$2
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14560 $as_echo_n "checking for $ac_word... " >&6; }
14561 if ${ac_cv_path_MSGFMT+:} false; then :
14562 $as_echo_n "(cached) " >&6
14566 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14569 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14570 for ac_dir in $PATH; do
14572 test -z "$ac_dir" && ac_dir=.
14573 for ac_exec_ext in '' $ac_executable_extensions; do
14574 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14575 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14576 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14577 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14578 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14585 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14589 MSGFMT="$ac_cv_path_MSGFMT"
14590 if test "$MSGFMT" != ":"; then
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14592 $as_echo "$MSGFMT" >&6; }
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14595 $as_echo "no" >&6; }
14598 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14599 set dummy gmsgfmt; ac_word=$2
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14601 $as_echo_n "checking for $ac_word... " >&6; }
14602 if ${ac_cv_path_GMSGFMT+:} false; then :
14603 $as_echo_n "(cached) " >&6
14607 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611 for as_dir in $PATH
14614 test -z "$as_dir" && as_dir=.
14615 for ac_exec_ext in '' $ac_executable_extensions; do
14616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14617 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14625 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14629 GMSGFMT=$ac_cv_path_GMSGFMT
14630 if test -n "$GMSGFMT"; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14632 $as_echo "$GMSGFMT" >&6; }
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14640 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14641 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14642 *) MSGFMT_015=$MSGFMT ;;
14645 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14646 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14647 *) GMSGFMT_015=$GMSGFMT ;;
14652 # Prepare PATH_SEPARATOR.
14653 # The user is always right.
14654 if test "${PATH_SEPARATOR+set}" != set; then
14655 echo "#! /bin/sh" >conf$$.sh
14656 echo "exit 0" >>conf$$.sh
14658 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14666 # Find out how to test for executable files. Don't use a zero-byte file,
14667 # as systems may use methods other than mode bits to determine executability.
14668 cat >conf$$.file <<_ASEOF
14672 chmod +x conf$$.file
14673 if test -x conf$$.file >/dev/null 2>&1; then
14674 ac_executable_p="test -x"
14676 ac_executable_p="test -f"
14680 # Extract the first word of "xgettext", so it can be a program name with args.
14681 set dummy xgettext; ac_word=$2
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683 $as_echo_n "checking for $ac_word... " >&6; }
14684 if ${ac_cv_path_XGETTEXT+:} false; then :
14685 $as_echo_n "(cached) " >&6
14687 case "$XGETTEXT" in
14689 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14692 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14693 for ac_dir in $PATH; do
14695 test -z "$ac_dir" && ac_dir=.
14696 for ac_exec_ext in '' $ac_executable_extensions; do
14697 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14698 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14699 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14700 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14701 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14708 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14712 XGETTEXT="$ac_cv_path_XGETTEXT"
14713 if test "$XGETTEXT" != ":"; then
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14715 $as_echo "$XGETTEXT" >&6; }
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14718 $as_echo "no" >&6; }
14723 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14724 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14725 *) XGETTEXT_015=$XGETTEXT ;;
14730 # Prepare PATH_SEPARATOR.
14731 # The user is always right.
14732 if test "${PATH_SEPARATOR+set}" != set; then
14733 echo "#! /bin/sh" >conf$$.sh
14734 echo "exit 0" >>conf$$.sh
14736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14744 # Find out how to test for executable files. Don't use a zero-byte file,
14745 # as systems may use methods other than mode bits to determine executability.
14746 cat >conf$$.file <<_ASEOF
14750 chmod +x conf$$.file
14751 if test -x conf$$.file >/dev/null 2>&1; then
14752 ac_executable_p="test -x"
14754 ac_executable_p="test -f"
14758 # Extract the first word of "msgmerge", so it can be a program name with args.
14759 set dummy msgmerge; ac_word=$2
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14761 $as_echo_n "checking for $ac_word... " >&6; }
14762 if ${ac_cv_path_MSGMERGE+:} false; then :
14763 $as_echo_n "(cached) " >&6
14765 case "$MSGMERGE" in
14767 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14770 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14771 for ac_dir in $PATH; do
14773 test -z "$ac_dir" && ac_dir=.
14774 for ac_exec_ext in '' $ac_executable_extensions; do
14775 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14776 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14777 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14778 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14785 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14789 MSGMERGE="$ac_cv_path_MSGMERGE"
14790 if test "$MSGMERGE" != ":"; then
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14792 $as_echo "$MSGMERGE" >&6; }
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795 $as_echo "no" >&6; }
14799 test -n "$localedir" || localedir='${datadir}/locale'
14802 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14805 ac_config_commands="$ac_config_commands po-directories"
14809 if test "X$prefix" = "XNONE"; then
14810 acl_final_prefix="$ac_default_prefix"
14812 acl_final_prefix="$prefix"
14814 if test "X$exec_prefix" = "XNONE"; then
14815 acl_final_exec_prefix='${prefix}'
14817 acl_final_exec_prefix="$exec_prefix"
14819 acl_save_prefix="$prefix"
14820 prefix="$acl_final_prefix"
14821 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14822 prefix="$acl_save_prefix"
14825 # Check whether --with-gnu-ld was given.
14826 if test "${with_gnu_ld+set}" = set; then :
14827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14832 # Prepare PATH_SEPARATOR.
14833 # The user is always right.
14834 if test "${PATH_SEPARATOR+set}" != set; then
14835 echo "#! /bin/sh" >conf$$.sh
14836 echo "exit 0" >>conf$$.sh
14838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14846 if test "$GCC" = yes; then
14847 # Check if gcc -print-prog-name=ld gives a path.
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14849 $as_echo_n "checking for ld used by GCC... " >&6; }
14852 # gcc leaves a trailing carriage return which upsets mingw
14853 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14855 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14858 # Accept absolute paths.
14859 [\\/]* | [A-Za-z]:[\\/]*)
14860 re_direlt='/[^/][^/]*/\.\./'
14861 # Canonicalize the path of ld
14862 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14863 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14864 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14866 test -z "$LD" && LD="$ac_prog"
14869 # If it fails, then pretend we aren't using GCC.
14873 # If it is relative, then search for the first ld in PATH.
14874 with_gnu_ld=unknown
14877 elif test "$with_gnu_ld" = yes; then
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14879 $as_echo_n "checking for GNU ld... " >&6; }
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14882 $as_echo_n "checking for non-GNU ld... " >&6; }
14884 if ${acl_cv_path_LD+:} false; then :
14885 $as_echo_n "(cached) " >&6
14887 if test -z "$LD"; then
14888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14889 for ac_dir in $PATH; do
14890 test -z "$ac_dir" && ac_dir=.
14891 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14892 acl_cv_path_LD="$ac_dir/$ac_prog"
14893 # Check to see if the program is GNU ld. I'd rather use --version,
14894 # but apparently some GNU ld's only accept -v.
14895 # Break only if it was the GNU/non-GNU ld that we prefer.
14896 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14897 *GNU* | *'with BFD'*)
14898 test "$with_gnu_ld" != no && break ;;
14900 test "$with_gnu_ld" != yes && break ;;
14906 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14910 LD="$acl_cv_path_LD"
14911 if test -n "$LD"; then
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14913 $as_echo "$LD" >&6; }
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14916 $as_echo "no" >&6; }
14918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14921 if ${acl_cv_prog_gnu_ld+:} false; then :
14922 $as_echo_n "(cached) " >&6
14924 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14925 case `$LD -v 2>&1 </dev/null` in
14926 *GNU* | *'with BFD'*)
14927 acl_cv_prog_gnu_ld=yes ;;
14929 acl_cv_prog_gnu_ld=no ;;
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14933 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14934 with_gnu_ld=$acl_cv_prog_gnu_ld
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14940 $as_echo_n "checking for shared library run path origin... " >&6; }
14941 if ${acl_cv_rpath+:} false; then :
14942 $as_echo_n "(cached) " >&6
14945 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14946 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14948 rm -f ./conftest.sh
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14953 $as_echo "$acl_cv_rpath" >&6; }
14955 acl_libext="$acl_cv_libext"
14956 acl_shlibext="$acl_cv_shlibext"
14957 acl_libname_spec="$acl_cv_libname_spec"
14958 acl_library_names_spec="$acl_cv_library_names_spec"
14959 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14960 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14961 acl_hardcode_direct="$acl_cv_hardcode_direct"
14962 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14963 # Check whether --enable-rpath was given.
14964 if test "${enable_rpath+set}" = set; then :
14965 enableval=$enable_rpath; :
14973 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14974 if test -n "$searchpath"; then
14975 acl_save_IFS="${IFS= }"; IFS=":"
14976 for searchdir in $searchpath; do
14977 if test -d "$searchdir"; then
14978 case "$searchdir" in
14979 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14980 *) searchdir=`cd "$searchdir" && pwd`
14981 case "$searchdir" in
14982 */lib64 ) acl_libdirstem=lib64 ;;
14987 IFS="$acl_save_IFS"
15000 acl_save_prefix="$prefix"
15001 prefix="$acl_final_prefix"
15002 acl_save_exec_prefix="$exec_prefix"
15003 exec_prefix="$acl_final_exec_prefix"
15005 eval additional_includedir=\"$includedir\"
15006 eval additional_libdir=\"$libdir\"
15008 exec_prefix="$acl_save_exec_prefix"
15009 prefix="$acl_save_prefix"
15012 # Check whether --with-libiconv-prefix was given.
15013 if test "${with_libiconv_prefix+set}" = set; then :
15014 withval=$with_libiconv_prefix;
15015 if test "X$withval" = "Xno"; then
15018 if test "X$withval" = "X"; then
15020 acl_save_prefix="$prefix"
15021 prefix="$acl_final_prefix"
15022 acl_save_exec_prefix="$exec_prefix"
15023 exec_prefix="$acl_final_exec_prefix"
15025 eval additional_includedir=\"$includedir\"
15026 eval additional_libdir=\"$libdir\"
15028 exec_prefix="$acl_save_exec_prefix"
15029 prefix="$acl_save_prefix"
15032 additional_includedir="$withval/include"
15033 additional_libdir="$withval/$acl_libdirstem"
15045 names_already_handled=
15046 names_next_round='iconv '
15047 while test -n "$names_next_round"; do
15048 names_this_round="$names_next_round"
15050 for name in $names_this_round; do
15052 for n in $names_already_handled; do
15053 if test "$n" = "$name"; then
15054 already_handled=yes
15058 if test -z "$already_handled"; then
15059 names_already_handled="$names_already_handled $name"
15060 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15061 eval value=\"\$HAVE_LIB$uppername\"
15062 if test -n "$value"; then
15063 if test "$value" = yes; then
15064 eval value=\"\$LIB$uppername\"
15065 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15066 eval value=\"\$LTLIB$uppername\"
15067 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15076 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15077 if test -n "$acl_shlibext"; then
15078 shrext=".$acl_shlibext" # typically: shrext=.so
15082 if test $use_additional = yes; then
15083 dir="$additional_libdir"
15084 if test -n "$acl_shlibext"; then
15085 if test -f "$dir/$libname$shrext"; then
15087 found_so="$dir/$libname$shrext"
15089 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15090 ver=`(cd "$dir" && \
15091 for f in "$libname$shrext".*; do echo "$f"; done \
15092 | sed -e "s,^$libname$shrext\\\\.,," \
15093 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15094 | sed 1q ) 2>/dev/null`
15095 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15097 found_so="$dir/$libname$shrext.$ver"
15100 eval library_names=\"$acl_library_names_spec\"
15101 for f in $library_names; do
15102 if test -f "$dir/$f"; then
15111 if test "X$found_dir" = "X"; then
15112 if test -f "$dir/$libname.$acl_libext"; then
15114 found_a="$dir/$libname.$acl_libext"
15117 if test "X$found_dir" != "X"; then
15118 if test -f "$dir/$libname.la"; then
15119 found_la="$dir/$libname.la"
15123 if test "X$found_dir" = "X"; then
15124 for x in $LDFLAGS $LTLIBICONV; do
15126 acl_save_prefix="$prefix"
15127 prefix="$acl_final_prefix"
15128 acl_save_exec_prefix="$exec_prefix"
15129 exec_prefix="$acl_final_exec_prefix"
15131 exec_prefix="$acl_save_exec_prefix"
15132 prefix="$acl_save_prefix"
15136 dir=`echo "X$x" | sed -e 's/^X-L//'`
15137 if test -n "$acl_shlibext"; then
15138 if test -f "$dir/$libname$shrext"; then
15140 found_so="$dir/$libname$shrext"
15142 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15143 ver=`(cd "$dir" && \
15144 for f in "$libname$shrext".*; do echo "$f"; done \
15145 | sed -e "s,^$libname$shrext\\\\.,," \
15146 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15147 | sed 1q ) 2>/dev/null`
15148 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15150 found_so="$dir/$libname$shrext.$ver"
15153 eval library_names=\"$acl_library_names_spec\"
15154 for f in $library_names; do
15155 if test -f "$dir/$f"; then
15164 if test "X$found_dir" = "X"; then
15165 if test -f "$dir/$libname.$acl_libext"; then
15167 found_a="$dir/$libname.$acl_libext"
15170 if test "X$found_dir" != "X"; then
15171 if test -f "$dir/$libname.la"; then
15172 found_la="$dir/$libname.la"
15177 if test "X$found_dir" != "X"; then
15182 if test "X$found_dir" != "X"; then
15183 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15184 if test "X$found_so" != "X"; then
15185 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15186 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15189 for x in $ltrpathdirs; do
15190 if test "X$x" = "X$found_dir"; then
15195 if test -z "$haveit"; then
15196 ltrpathdirs="$ltrpathdirs $found_dir"
15198 if test "$acl_hardcode_direct" = yes; then
15199 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15201 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15202 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15204 for x in $rpathdirs; do
15205 if test "X$x" = "X$found_dir"; then
15210 if test -z "$haveit"; then
15211 rpathdirs="$rpathdirs $found_dir"
15215 for x in $LDFLAGS $LIBICONV; do
15217 acl_save_prefix="$prefix"
15218 prefix="$acl_final_prefix"
15219 acl_save_exec_prefix="$exec_prefix"
15220 exec_prefix="$acl_final_exec_prefix"
15222 exec_prefix="$acl_save_exec_prefix"
15223 prefix="$acl_save_prefix"
15225 if test "X$x" = "X-L$found_dir"; then
15230 if test -z "$haveit"; then
15231 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15233 if test "$acl_hardcode_minus_L" != no; then
15234 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15236 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15242 if test "X$found_a" != "X"; then
15243 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15245 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15248 additional_includedir=
15249 case "$found_dir" in
15250 */$acl_libdirstem | */$acl_libdirstem/)
15251 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15252 LIBICONV_PREFIX="$basedir"
15253 additional_includedir="$basedir/include"
15256 if test "X$additional_includedir" != "X"; then
15257 if test "X$additional_includedir" != "X/usr/include"; then
15259 if test "X$additional_includedir" = "X/usr/local/include"; then
15260 if test -n "$GCC"; then
15262 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15266 if test -z "$haveit"; then
15267 for x in $CPPFLAGS $INCICONV; do
15269 acl_save_prefix="$prefix"
15270 prefix="$acl_final_prefix"
15271 acl_save_exec_prefix="$exec_prefix"
15272 exec_prefix="$acl_final_exec_prefix"
15274 exec_prefix="$acl_save_exec_prefix"
15275 prefix="$acl_save_prefix"
15277 if test "X$x" = "X-I$additional_includedir"; then
15282 if test -z "$haveit"; then
15283 if test -d "$additional_includedir"; then
15284 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15290 if test -n "$found_la"; then
15291 save_libdir="$libdir"
15292 case "$found_la" in
15293 */* | *\\*) . "$found_la" ;;
15294 *) . "./$found_la" ;;
15296 libdir="$save_libdir"
15297 for dep in $dependency_libs; do
15300 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15301 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15303 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15304 if test -n "$GCC"; then
15306 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15310 if test -z "$haveit"; then
15312 for x in $LDFLAGS $LIBICONV; do
15314 acl_save_prefix="$prefix"
15315 prefix="$acl_final_prefix"
15316 acl_save_exec_prefix="$exec_prefix"
15317 exec_prefix="$acl_final_exec_prefix"
15319 exec_prefix="$acl_save_exec_prefix"
15320 prefix="$acl_save_prefix"
15322 if test "X$x" = "X-L$additional_libdir"; then
15327 if test -z "$haveit"; then
15328 if test -d "$additional_libdir"; then
15329 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15333 for x in $LDFLAGS $LTLIBICONV; do
15335 acl_save_prefix="$prefix"
15336 prefix="$acl_final_prefix"
15337 acl_save_exec_prefix="$exec_prefix"
15338 exec_prefix="$acl_final_exec_prefix"
15340 exec_prefix="$acl_save_exec_prefix"
15341 prefix="$acl_save_prefix"
15343 if test "X$x" = "X-L$additional_libdir"; then
15348 if test -z "$haveit"; then
15349 if test -d "$additional_libdir"; then
15350 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15357 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15358 if test "$enable_rpath" != no; then
15360 for x in $rpathdirs; do
15361 if test "X$x" = "X$dir"; then
15366 if test -z "$haveit"; then
15367 rpathdirs="$rpathdirs $dir"
15370 for x in $ltrpathdirs; do
15371 if test "X$x" = "X$dir"; then
15376 if test -z "$haveit"; then
15377 ltrpathdirs="$ltrpathdirs $dir"
15382 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15385 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15388 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15389 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15395 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15396 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15402 if test "X$rpathdirs" != "X"; then
15403 if test -n "$acl_hardcode_libdir_separator"; then
15405 for found_dir in $rpathdirs; do
15406 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15408 acl_save_libdir="$libdir"
15410 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15411 libdir="$acl_save_libdir"
15412 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15414 for found_dir in $rpathdirs; do
15415 acl_save_libdir="$libdir"
15416 libdir="$found_dir"
15417 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15418 libdir="$acl_save_libdir"
15419 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15423 if test "X$ltrpathdirs" != "X"; then
15424 for found_dir in $ltrpathdirs; do
15425 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15454 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15455 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15456 $as_echo_n "(cached) " >&6
15458 gt_save_LIBS="$LIBS"
15459 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h. */
15462 #include <CoreFoundation/CFPreferences.h>
15466 CFPreferencesCopyAppValue(NULL, NULL)
15471 if ac_fn_c_try_link "$LINENO"; then :
15472 gt_cv_func_CFPreferencesCopyAppValue=yes
15474 gt_cv_func_CFPreferencesCopyAppValue=no
15476 rm -f core conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
15478 LIBS="$gt_save_LIBS"
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15481 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15482 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15484 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15488 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15489 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15490 $as_echo_n "(cached) " >&6
15492 gt_save_LIBS="$LIBS"
15493 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h. */
15496 #include <CoreFoundation/CFLocale.h>
15500 CFLocaleCopyCurrent();
15505 if ac_fn_c_try_link "$LINENO"; then :
15506 gt_cv_func_CFLocaleCopyCurrent=yes
15508 gt_cv_func_CFLocaleCopyCurrent=no
15510 rm -f core conftest.err conftest.$ac_objext \
15511 conftest$ac_exeext conftest.$ac_ext
15512 LIBS="$gt_save_LIBS"
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15515 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15516 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15518 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15522 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15523 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15535 case " $gt_needs " in
15536 *" need-formatstring-macros "*) gt_api_version=3 ;;
15537 *" need-ngettext "*) gt_api_version=2 ;;
15538 *) gt_api_version=1 ;;
15540 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15541 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15543 if test "$USE_NLS" = "yes"; then
15544 gt_use_preinstalled_gnugettext=no
15547 if test $gt_api_version -ge 3; then
15548 gt_revision_test_code='
15549 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15550 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15552 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15555 gt_revision_test_code=
15557 if test $gt_api_version -ge 2; then
15558 gt_expression_test_code=' + * ngettext ("", "", 0)'
15560 gt_expression_test_code=
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15564 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15565 if eval \${$gt_func_gnugettext_libc+:} false; then :
15566 $as_echo_n "(cached) " >&6
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15570 #include <libintl.h>
15571 $gt_revision_test_code
15572 extern int _nl_msg_cat_cntr;
15573 extern int *_nl_domain_bindings;
15577 bindtextdomain ("", "");
15578 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15583 if ac_fn_c_try_link "$LINENO"; then :
15584 eval "$gt_func_gnugettext_libc=yes"
15586 eval "$gt_func_gnugettext_libc=no"
15588 rm -f core conftest.err conftest.$ac_objext \
15589 conftest$ac_exeext conftest.$ac_ext
15591 eval ac_res=\$$gt_func_gnugettext_libc
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15593 $as_echo "$ac_res" >&6; }
15595 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15601 am_save_CPPFLAGS="$CPPFLAGS"
15603 for element in $INCICONV; do
15605 for x in $CPPFLAGS; do
15607 acl_save_prefix="$prefix"
15608 prefix="$acl_final_prefix"
15609 acl_save_exec_prefix="$exec_prefix"
15610 exec_prefix="$acl_final_exec_prefix"
15612 exec_prefix="$acl_save_exec_prefix"
15613 prefix="$acl_save_prefix"
15615 if test "X$x" = "X$element"; then
15620 if test -z "$haveit"; then
15621 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15627 $as_echo_n "checking for iconv... " >&6; }
15628 if ${am_cv_func_iconv+:} false; then :
15629 $as_echo_n "(cached) " >&6
15632 am_cv_func_iconv="no, consider installing GNU libiconv"
15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15636 #include <stdlib.h>
15641 iconv_t cd = iconv_open("","");
15642 iconv(cd,NULL,NULL,NULL,NULL);
15648 if ac_fn_c_try_link "$LINENO"; then :
15649 am_cv_func_iconv=yes
15651 rm -f core conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
15653 if test "$am_cv_func_iconv" != yes; then
15654 am_save_LIBS="$LIBS"
15655 LIBS="$LIBS $LIBICONV"
15656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15658 #include <stdlib.h>
15663 iconv_t cd = iconv_open("","");
15664 iconv(cd,NULL,NULL,NULL,NULL);
15670 if ac_fn_c_try_link "$LINENO"; then :
15671 am_cv_lib_iconv=yes
15672 am_cv_func_iconv=yes
15674 rm -f core conftest.err conftest.$ac_objext \
15675 conftest$ac_exeext conftest.$ac_ext
15676 LIBS="$am_save_LIBS"
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15681 $as_echo "$am_cv_func_iconv" >&6; }
15682 if test "$am_cv_func_iconv" = yes; then
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15684 $as_echo_n "checking for working iconv... " >&6; }
15685 if ${am_cv_func_iconv_works+:} false; then :
15686 $as_echo_n "(cached) " >&6
15689 am_save_LIBS="$LIBS"
15690 if test $am_cv_lib_iconv = yes; then
15691 LIBS="$LIBS $LIBICONV"
15693 if test "$cross_compiling" = yes; then :
15695 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15696 *) am_cv_func_iconv_works="guessing yes" ;;
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15703 #include <string.h>
15706 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15709 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15710 if (cd_utf8_to_88591 != (iconv_t)(-1))
15712 static const char input[] = "\342\202\254"; /* EURO SIGN */
15714 const char *inptr = input;
15715 size_t inbytesleft = strlen (input);
15716 char *outptr = buf;
15717 size_t outbytesleft = sizeof (buf);
15718 size_t res = iconv (cd_utf8_to_88591,
15719 (char **) &inptr, &inbytesleft,
15720 &outptr, &outbytesleft);
15725 #if 0 /* This bug could be worked around by the caller. */
15726 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15728 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15729 if (cd_88591_to_utf8 != (iconv_t)(-1))
15731 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15733 const char *inptr = input;
15734 size_t inbytesleft = strlen (input);
15735 char *outptr = buf;
15736 size_t outbytesleft = sizeof (buf);
15737 size_t res = iconv (cd_88591_to_utf8,
15738 (char **) &inptr, &inbytesleft,
15739 &outptr, &outbytesleft);
15745 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15747 if (/* Try standardized names. */
15748 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15749 /* Try IRIX, OSF/1 names. */
15750 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15751 /* Try AIX names. */
15752 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15753 /* Try HP-UX names. */
15754 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15759 if ac_fn_c_try_run "$LINENO"; then :
15760 am_cv_func_iconv_works=yes
15762 am_cv_func_iconv_works=no
15764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15765 conftest.$ac_objext conftest.beam conftest.$ac_ext
15768 LIBS="$am_save_LIBS"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15772 $as_echo "$am_cv_func_iconv_works" >&6; }
15773 case "$am_cv_func_iconv_works" in
15774 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15775 *) am_func_iconv=yes ;;
15778 am_func_iconv=no am_cv_lib_iconv=no
15780 if test "$am_func_iconv" = yes; then
15782 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15785 if test "$am_cv_lib_iconv" = yes; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15787 $as_echo_n "checking how to link with libiconv... " >&6; }
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15789 $as_echo "$LIBICONV" >&6; }
15791 CPPFLAGS="$am_save_CPPFLAGS"
15805 acl_save_prefix="$prefix"
15806 prefix="$acl_final_prefix"
15807 acl_save_exec_prefix="$exec_prefix"
15808 exec_prefix="$acl_final_exec_prefix"
15810 eval additional_includedir=\"$includedir\"
15811 eval additional_libdir=\"$libdir\"
15813 exec_prefix="$acl_save_exec_prefix"
15814 prefix="$acl_save_prefix"
15817 # Check whether --with-libintl-prefix was given.
15818 if test "${with_libintl_prefix+set}" = set; then :
15819 withval=$with_libintl_prefix;
15820 if test "X$withval" = "Xno"; then
15823 if test "X$withval" = "X"; then
15825 acl_save_prefix="$prefix"
15826 prefix="$acl_final_prefix"
15827 acl_save_exec_prefix="$exec_prefix"
15828 exec_prefix="$acl_final_exec_prefix"
15830 eval additional_includedir=\"$includedir\"
15831 eval additional_libdir=\"$libdir\"
15833 exec_prefix="$acl_save_exec_prefix"
15834 prefix="$acl_save_prefix"
15837 additional_includedir="$withval/include"
15838 additional_libdir="$withval/$acl_libdirstem"
15850 names_already_handled=
15851 names_next_round='intl '
15852 while test -n "$names_next_round"; do
15853 names_this_round="$names_next_round"
15855 for name in $names_this_round; do
15857 for n in $names_already_handled; do
15858 if test "$n" = "$name"; then
15859 already_handled=yes
15863 if test -z "$already_handled"; then
15864 names_already_handled="$names_already_handled $name"
15865 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15866 eval value=\"\$HAVE_LIB$uppername\"
15867 if test -n "$value"; then
15868 if test "$value" = yes; then
15869 eval value=\"\$LIB$uppername\"
15870 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15871 eval value=\"\$LTLIB$uppername\"
15872 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15881 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15882 if test -n "$acl_shlibext"; then
15883 shrext=".$acl_shlibext" # typically: shrext=.so
15887 if test $use_additional = yes; then
15888 dir="$additional_libdir"
15889 if test -n "$acl_shlibext"; then
15890 if test -f "$dir/$libname$shrext"; then
15892 found_so="$dir/$libname$shrext"
15894 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15895 ver=`(cd "$dir" && \
15896 for f in "$libname$shrext".*; do echo "$f"; done \
15897 | sed -e "s,^$libname$shrext\\\\.,," \
15898 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15899 | sed 1q ) 2>/dev/null`
15900 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15902 found_so="$dir/$libname$shrext.$ver"
15905 eval library_names=\"$acl_library_names_spec\"
15906 for f in $library_names; do
15907 if test -f "$dir/$f"; then
15916 if test "X$found_dir" = "X"; then
15917 if test -f "$dir/$libname.$acl_libext"; then
15919 found_a="$dir/$libname.$acl_libext"
15922 if test "X$found_dir" != "X"; then
15923 if test -f "$dir/$libname.la"; then
15924 found_la="$dir/$libname.la"
15928 if test "X$found_dir" = "X"; then
15929 for x in $LDFLAGS $LTLIBINTL; do
15931 acl_save_prefix="$prefix"
15932 prefix="$acl_final_prefix"
15933 acl_save_exec_prefix="$exec_prefix"
15934 exec_prefix="$acl_final_exec_prefix"
15936 exec_prefix="$acl_save_exec_prefix"
15937 prefix="$acl_save_prefix"
15941 dir=`echo "X$x" | sed -e 's/^X-L//'`
15942 if test -n "$acl_shlibext"; then
15943 if test -f "$dir/$libname$shrext"; then
15945 found_so="$dir/$libname$shrext"
15947 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15948 ver=`(cd "$dir" && \
15949 for f in "$libname$shrext".*; do echo "$f"; done \
15950 | sed -e "s,^$libname$shrext\\\\.,," \
15951 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15952 | sed 1q ) 2>/dev/null`
15953 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15955 found_so="$dir/$libname$shrext.$ver"
15958 eval library_names=\"$acl_library_names_spec\"
15959 for f in $library_names; do
15960 if test -f "$dir/$f"; then
15969 if test "X$found_dir" = "X"; then
15970 if test -f "$dir/$libname.$acl_libext"; then
15972 found_a="$dir/$libname.$acl_libext"
15975 if test "X$found_dir" != "X"; then
15976 if test -f "$dir/$libname.la"; then
15977 found_la="$dir/$libname.la"
15982 if test "X$found_dir" != "X"; then
15987 if test "X$found_dir" != "X"; then
15988 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15989 if test "X$found_so" != "X"; then
15990 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15991 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15994 for x in $ltrpathdirs; do
15995 if test "X$x" = "X$found_dir"; then
16000 if test -z "$haveit"; then
16001 ltrpathdirs="$ltrpathdirs $found_dir"
16003 if test "$acl_hardcode_direct" = yes; then
16004 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16006 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16007 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16009 for x in $rpathdirs; do
16010 if test "X$x" = "X$found_dir"; then
16015 if test -z "$haveit"; then
16016 rpathdirs="$rpathdirs $found_dir"
16020 for x in $LDFLAGS $LIBINTL; do
16022 acl_save_prefix="$prefix"
16023 prefix="$acl_final_prefix"
16024 acl_save_exec_prefix="$exec_prefix"
16025 exec_prefix="$acl_final_exec_prefix"
16027 exec_prefix="$acl_save_exec_prefix"
16028 prefix="$acl_save_prefix"
16030 if test "X$x" = "X-L$found_dir"; then
16035 if test -z "$haveit"; then
16036 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16038 if test "$acl_hardcode_minus_L" != no; then
16039 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16041 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16047 if test "X$found_a" != "X"; then
16048 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16050 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16053 additional_includedir=
16054 case "$found_dir" in
16055 */$acl_libdirstem | */$acl_libdirstem/)
16056 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16057 LIBINTL_PREFIX="$basedir"
16058 additional_includedir="$basedir/include"
16061 if test "X$additional_includedir" != "X"; then
16062 if test "X$additional_includedir" != "X/usr/include"; then
16064 if test "X$additional_includedir" = "X/usr/local/include"; then
16065 if test -n "$GCC"; then
16067 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16071 if test -z "$haveit"; then
16072 for x in $CPPFLAGS $INCINTL; do
16074 acl_save_prefix="$prefix"
16075 prefix="$acl_final_prefix"
16076 acl_save_exec_prefix="$exec_prefix"
16077 exec_prefix="$acl_final_exec_prefix"
16079 exec_prefix="$acl_save_exec_prefix"
16080 prefix="$acl_save_prefix"
16082 if test "X$x" = "X-I$additional_includedir"; then
16087 if test -z "$haveit"; then
16088 if test -d "$additional_includedir"; then
16089 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16095 if test -n "$found_la"; then
16096 save_libdir="$libdir"
16097 case "$found_la" in
16098 */* | *\\*) . "$found_la" ;;
16099 *) . "./$found_la" ;;
16101 libdir="$save_libdir"
16102 for dep in $dependency_libs; do
16105 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16106 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
16108 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
16109 if test -n "$GCC"; then
16111 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16115 if test -z "$haveit"; then
16117 for x in $LDFLAGS $LIBINTL; do
16119 acl_save_prefix="$prefix"
16120 prefix="$acl_final_prefix"
16121 acl_save_exec_prefix="$exec_prefix"
16122 exec_prefix="$acl_final_exec_prefix"
16124 exec_prefix="$acl_save_exec_prefix"
16125 prefix="$acl_save_prefix"
16127 if test "X$x" = "X-L$additional_libdir"; then
16132 if test -z "$haveit"; then
16133 if test -d "$additional_libdir"; then
16134 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16138 for x in $LDFLAGS $LTLIBINTL; do
16140 acl_save_prefix="$prefix"
16141 prefix="$acl_final_prefix"
16142 acl_save_exec_prefix="$exec_prefix"
16143 exec_prefix="$acl_final_exec_prefix"
16145 exec_prefix="$acl_save_exec_prefix"
16146 prefix="$acl_save_prefix"
16148 if test "X$x" = "X-L$additional_libdir"; then
16153 if test -z "$haveit"; then
16154 if test -d "$additional_libdir"; then
16155 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16162 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16163 if test "$enable_rpath" != no; then
16165 for x in $rpathdirs; do
16166 if test "X$x" = "X$dir"; then
16171 if test -z "$haveit"; then
16172 rpathdirs="$rpathdirs $dir"
16175 for x in $ltrpathdirs; do
16176 if test "X$x" = "X$dir"; then
16181 if test -z "$haveit"; then
16182 ltrpathdirs="$ltrpathdirs $dir"
16187 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16190 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16193 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16194 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16200 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16201 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16207 if test "X$rpathdirs" != "X"; then
16208 if test -n "$acl_hardcode_libdir_separator"; then
16210 for found_dir in $rpathdirs; do
16211 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16213 acl_save_libdir="$libdir"
16215 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16216 libdir="$acl_save_libdir"
16217 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16219 for found_dir in $rpathdirs; do
16220 acl_save_libdir="$libdir"
16221 libdir="$found_dir"
16222 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16223 libdir="$acl_save_libdir"
16224 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16228 if test "X$ltrpathdirs" != "X"; then
16229 for found_dir in $ltrpathdirs; do
16230 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16235 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16236 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16237 $as_echo_n "(cached) " >&6
16239 gt_save_CPPFLAGS="$CPPFLAGS"
16240 CPPFLAGS="$CPPFLAGS $INCINTL"
16241 gt_save_LIBS="$LIBS"
16242 LIBS="$LIBS $LIBINTL"
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16245 #include <libintl.h>
16246 $gt_revision_test_code
16247 extern int _nl_msg_cat_cntr;
16252 const char *_nl_expand_alias (const char *);
16256 bindtextdomain ("", "");
16257 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16262 if ac_fn_c_try_link "$LINENO"; then :
16263 eval "$gt_func_gnugettext_libintl=yes"
16265 eval "$gt_func_gnugettext_libintl=no"
16267 rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16270 LIBS="$LIBS $LIBICONV"
16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16272 /* end confdefs.h. */
16273 #include <libintl.h>
16274 $gt_revision_test_code
16275 extern int _nl_msg_cat_cntr;
16280 const char *_nl_expand_alias (const char *);
16284 bindtextdomain ("", "");
16285 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16290 if ac_fn_c_try_link "$LINENO"; then :
16291 LIBINTL="$LIBINTL $LIBICONV"
16292 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16293 eval "$gt_func_gnugettext_libintl=yes"
16296 rm -f core conftest.err conftest.$ac_objext \
16297 conftest$ac_exeext conftest.$ac_ext
16299 CPPFLAGS="$gt_save_CPPFLAGS"
16300 LIBS="$gt_save_LIBS"
16302 eval ac_res=\$$gt_func_gnugettext_libintl
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16304 $as_echo "$ac_res" >&6; }
16307 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16308 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16309 && test "$PACKAGE" != gettext-runtime \
16310 && test "$PACKAGE" != gettext-tools; }; then
16311 gt_use_preinstalled_gnugettext=yes
16320 if test -n "$INTL_MACOSX_LIBS"; then
16321 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16322 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16323 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16324 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16328 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16329 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16331 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16339 $as_echo_n "checking whether to use NLS... " >&6; }
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16341 $as_echo "$USE_NLS" >&6; }
16342 if test "$USE_NLS" = "yes"; then
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16344 $as_echo_n "checking where the gettext function comes from... " >&6; }
16345 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16346 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16347 gt_source="external libintl"
16352 gt_source="included intl directory"
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16355 $as_echo "$gt_source" >&6; }
16358 if test "$USE_NLS" = "yes"; then
16360 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16361 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16363 $as_echo_n "checking how to link with libintl... " >&6; }
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16365 $as_echo "$LIBINTL" >&6; }
16367 for element in $INCINTL; do
16369 for x in $CPPFLAGS; do
16371 acl_save_prefix="$prefix"
16372 prefix="$acl_final_prefix"
16373 acl_save_exec_prefix="$exec_prefix"
16374 exec_prefix="$acl_final_exec_prefix"
16376 exec_prefix="$acl_save_exec_prefix"
16377 prefix="$acl_save_prefix"
16379 if test "X$x" = "X$element"; then
16384 if test -z "$haveit"; then
16385 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16392 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16395 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16404 INTLLIBS="$LIBINTL"
16412 GETTEXT_PACKAGE="cogl"
16415 cat >>confdefs.h <<_ACEOF
16416 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linguas" >&5
16421 $as_echo_n "checking for linguas... " >&6; }
16423 linguas=`cd $podir && ls *.po 2>/dev/null | awk 'BEGIN { FS="."; ORS=" " } { print $1 }'`
16424 if test -f "$podir/LINGUAS.ignore"; then
16426 ignore_linguas=`sed -n -e 's/^\s\+\|\s\+$//g' -e '/^#/b' -e '/\S/!b' \
16427 -e 's/\s\+/\n/g' -e p "$podir/LINGUAS.ignore"`;
16428 for lang in $linguas; do
16429 if ! echo "$ignore_linguas" | grep -q "^${lang}$"; then
16430 ALL_LINGUAS="$ALL_LINGUAS $lang";
16434 ALL_LINGUAS="$linguas";
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALL_LINGUAS" >&5
16438 $as_echo "$ALL_LINGUAS" >&6; }
16442 # gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
16443 # it on it's own line.
16448 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16449 set dummy gtkdoc-check; ac_word=$2
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16451 $as_echo_n "checking for $ac_word... " >&6; }
16452 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
16453 $as_echo_n "(cached) " >&6
16455 case $GTKDOC_CHECK in
16457 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
16460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16461 for as_dir in $PATH
16464 test -z "$as_dir" && as_dir=.
16465 for ac_exec_ext in '' $ac_executable_extensions; do
16466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16467 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
16468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16478 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
16479 if test -n "$GTKDOC_CHECK"; then
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
16481 $as_echo "$GTKDOC_CHECK" >&6; }
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484 $as_echo "no" >&6; }
16488 for ac_prog in gtkdoc-rebase
16490 # Extract the first word of "$ac_prog", so it can be a program name with args.
16491 set dummy $ac_prog; ac_word=$2
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16493 $as_echo_n "checking for $ac_word... " >&6; }
16494 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
16495 $as_echo_n "(cached) " >&6
16497 case $GTKDOC_REBASE in
16499 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
16502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16503 for as_dir in $PATH
16506 test -z "$as_dir" && as_dir=.
16507 for ac_exec_ext in '' $ac_executable_extensions; do
16508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16509 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
16510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16520 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
16521 if test -n "$GTKDOC_REBASE"; then
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
16523 $as_echo "$GTKDOC_REBASE" >&6; }
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16526 $as_echo "no" >&6; }
16530 test -n "$GTKDOC_REBASE" && break
16532 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
16534 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
16535 set dummy gtkdoc-mkpdf; ac_word=$2
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16537 $as_echo_n "checking for $ac_word... " >&6; }
16538 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
16539 $as_echo_n "(cached) " >&6
16541 case $GTKDOC_MKPDF in
16543 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
16546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547 for as_dir in $PATH
16550 test -z "$as_dir" && as_dir=.
16551 for ac_exec_ext in '' $ac_executable_extensions; do
16552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16553 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
16554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16564 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
16565 if test -n "$GTKDOC_MKPDF"; then
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
16567 $as_echo "$GTKDOC_MKPDF" >&6; }
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16570 $as_echo "no" >&6; }
16576 # Check whether --with-html-dir was given.
16577 if test "${with_html_dir+set}" = set; then :
16578 withval=$with_html_dir;
16580 with_html_dir='${datadir}/gtk-doc/html'
16583 HTML_DIR="$with_html_dir"
16586 # Check whether --enable-gtk-doc was given.
16587 if test "${enable_gtk_doc+set}" = set; then :
16588 enableval=$enable_gtk_doc;
16594 if test x$enable_gtk_doc = xyes; then
16595 if test -n "$PKG_CONFIG" && \
16596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.13\""; } >&5
16597 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.13") 2>&5
16599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16600 test $ac_status = 0; }; then
16603 as_fn_error $? "You need to have gtk-doc >= 1.13 installed to build $PACKAGE_NAME" "$LINENO" 5
16605 if test "x$PACKAGE_NAME" != "xglib"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
16609 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
16611 if test -n "$GTKDOC_DEPS_CFLAGS"; then
16612 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
16613 elif test -n "$PKG_CONFIG"; then
16614 if test -n "$PKG_CONFIG" && \
16615 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
16616 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
16618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16619 test $ac_status = 0; }; then
16620 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
16627 if test -n "$GTKDOC_DEPS_LIBS"; then
16628 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
16629 elif test -n "$PKG_CONFIG"; then
16630 if test -n "$PKG_CONFIG" && \
16631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
16632 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
16634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16635 test $ac_status = 0; }; then
16636 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
16646 if test $pkg_failed = yes; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16650 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16651 _pkg_short_errors_supported=yes
16653 _pkg_short_errors_supported=no
16655 if test $_pkg_short_errors_supported = yes; then
16656 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
16658 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
16660 # Put the nasty error message in config.log where it belongs
16661 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
16663 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
16665 $GTKDOC_DEPS_PKG_ERRORS
16667 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16668 installed software in a non-standard prefix.
16670 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
16671 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
16672 See the pkg-config man page for more details." "$LINENO" 5
16674 elif test $pkg_failed = untried; then
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16676 $as_echo "no" >&6; }
16677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16679 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16680 is in your PATH or set the PKG_CONFIG environment variable to the full
16681 path to pkg-config.
16683 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
16684 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
16685 See the pkg-config man page for more details.
16687 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16688 See \`config.log' for more details" "$LINENO" 5; }
16691 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
16692 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16694 $as_echo "yes" >&6; }
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
16701 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
16703 $as_echo "$enable_gtk_doc" >&6; }
16705 # Check whether --enable-gtk-doc-html was given.
16706 if test "${enable_gtk_doc_html+set}" = set; then :
16707 enableval=$enable_gtk_doc_html;
16709 enable_gtk_doc_html=yes
16712 # Check whether --enable-gtk-doc-pdf was given.
16713 if test "${enable_gtk_doc_pdf+set}" = set; then :
16714 enableval=$enable_gtk_doc_pdf;
16716 enable_gtk_doc_pdf=no
16720 if test -z "$GTKDOC_MKPDF"; then
16721 enable_gtk_doc_pdf=no
16725 if test x$enable_gtk_doc = xyes; then
16726 ENABLE_GTK_DOC_TRUE=
16727 ENABLE_GTK_DOC_FALSE='#'
16729 ENABLE_GTK_DOC_TRUE='#'
16730 ENABLE_GTK_DOC_FALSE=
16733 if test x$enable_gtk_doc_html = xyes; then
16734 GTK_DOC_BUILD_HTML_TRUE=
16735 GTK_DOC_BUILD_HTML_FALSE='#'
16737 GTK_DOC_BUILD_HTML_TRUE='#'
16738 GTK_DOC_BUILD_HTML_FALSE=
16741 if test x$enable_gtk_doc_pdf = xyes; then
16742 GTK_DOC_BUILD_PDF_TRUE=
16743 GTK_DOC_BUILD_PDF_FALSE='#'
16745 GTK_DOC_BUILD_PDF_TRUE='#'
16746 GTK_DOC_BUILD_PDF_FALSE=
16749 if test -n "$LIBTOOL"; then
16750 GTK_DOC_USE_LIBTOOL_TRUE=
16751 GTK_DOC_USE_LIBTOOL_FALSE='#'
16753 GTK_DOC_USE_LIBTOOL_TRUE='#'
16754 GTK_DOC_USE_LIBTOOL_FALSE=
16757 if test -n "$GTKDOC_REBASE"; then
16758 GTK_DOC_USE_REBASE_TRUE=
16759 GTK_DOC_USE_REBASE_FALSE='#'
16761 GTK_DOC_USE_REBASE_TRUE='#'
16762 GTK_DOC_USE_REBASE_FALSE=
16767 if test "x$enable_gtk_doc" = "xyes"; then
16768 BUILD_GTK_DOC_TRUE=
16769 BUILD_GTK_DOC_FALSE='#'
16771 BUILD_GTK_DOC_TRUE='#'
16772 BUILD_GTK_DOC_FALSE=
16777 # Check whether --enable-glibtest was given.
16778 if test "${enable_glibtest+set}" = set; then :
16779 enableval=$enable_glibtest;
16781 enable_glibtest=yes
16785 pkg_config_args=glib-2.0
16786 for module in . gobject gthread gmodule-no-export
16790 pkg_config_args="$pkg_config_args gmodule-2.0"
16793 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
16796 pkg_config_args="$pkg_config_args gobject-2.0"
16799 pkg_config_args="$pkg_config_args gthread-2.0"
16802 pkg_config_args="$pkg_config_args $module-2.0"
16813 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16814 if test -n "$ac_tool_prefix"; then
16815 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16818 $as_echo_n "checking for $ac_word... " >&6; }
16819 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16820 $as_echo_n "(cached) " >&6
16822 case $PKG_CONFIG in
16824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16828 for as_dir in $PATH
16831 test -z "$as_dir" && as_dir=.
16832 for ac_exec_ext in '' $ac_executable_extensions; do
16833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16845 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16846 if test -n "$PKG_CONFIG"; then
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16848 $as_echo "$PKG_CONFIG" >&6; }
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16856 if test -z "$ac_cv_path_PKG_CONFIG"; then
16857 ac_pt_PKG_CONFIG=$PKG_CONFIG
16858 # Extract the first word of "pkg-config", so it can be a program name with args.
16859 set dummy pkg-config; ac_word=$2
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16861 $as_echo_n "checking for $ac_word... " >&6; }
16862 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16863 $as_echo_n "(cached) " >&6
16865 case $ac_pt_PKG_CONFIG in
16867 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16871 for as_dir in $PATH
16874 test -z "$as_dir" && as_dir=.
16875 for ac_exec_ext in '' $ac_executable_extensions; do
16876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16877 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16888 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16889 if test -n "$ac_pt_PKG_CONFIG"; then
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16891 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16894 $as_echo "no" >&6; }
16897 if test "x$ac_pt_PKG_CONFIG" = x; then
16900 case $cross_compiling:$ac_tool_warned in
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16904 ac_tool_warned=yes ;;
16906 PKG_CONFIG=$ac_pt_PKG_CONFIG
16909 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16913 if test -n "$PKG_CONFIG"; then
16914 _pkg_min_version=0.16
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16916 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16917 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16919 $as_echo "yes" >&6; }
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16922 $as_echo "no" >&6; }
16929 if test "x$PKG_CONFIG" = x ; then
16934 min_glib_version=2.28.0
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
16936 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
16938 if test x$PKG_CONFIG != xno ; then
16939 ## don't try to run the test against uninstalled libtool libs
16940 if $PKG_CONFIG --uninstalled $pkg_config_args; then
16941 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
16945 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
16952 if test x"$no_glib" = x ; then
16953 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
16954 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
16955 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
16956 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
16958 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
16959 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
16960 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
16961 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16962 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
16963 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16964 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
16965 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16966 if test "x$enable_glibtest" = "xyes" ; then
16967 ac_save_CFLAGS="$CFLAGS"
16968 ac_save_LIBS="$LIBS"
16969 CFLAGS="$CFLAGS $GLIB_CFLAGS"
16970 LIBS="$GLIB_LIBS $LIBS"
16971 rm -f conf.glibtest
16972 if test "$cross_compiling" = yes; then :
16973 echo $ac_n "cross compiling; assumed OK... $ac_c"
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h. */
16980 #include <stdlib.h>
16985 unsigned int major, minor, micro;
16988 fclose (fopen ("conf.glibtest", "w"));
16990 /* HP/UX 9 (%@#!) writes to sscanf strings */
16991 tmp_version = g_strdup("$min_glib_version");
16992 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
16993 printf("%s, bad version string\n", "$min_glib_version");
16997 if ((glib_major_version != $glib_config_major_version) ||
16998 (glib_minor_version != $glib_config_minor_version) ||
16999 (glib_micro_version != $glib_config_micro_version))
17001 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17002 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17003 glib_major_version, glib_minor_version, glib_micro_version);
17004 printf ("*** was found! If pkg-config was correct, then it is best\n");
17005 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17006 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17007 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17008 printf("*** required on your system.\n");
17009 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17010 printf("*** to point to the correct configuration files\n");
17012 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17013 (glib_minor_version != GLIB_MINOR_VERSION) ||
17014 (glib_micro_version != GLIB_MICRO_VERSION))
17016 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17017 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17018 printf("*** library (version %d.%d.%d)\n",
17019 glib_major_version, glib_minor_version, glib_micro_version);
17023 if ((glib_major_version > major) ||
17024 ((glib_major_version == major) && (glib_minor_version > minor)) ||
17025 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17031 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
17032 glib_major_version, glib_minor_version, glib_micro_version);
17033 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
17034 major, minor, micro);
17035 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17037 printf("*** If you have already installed a sufficiently new version, this error\n");
17038 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17039 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17040 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17041 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17042 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17043 printf("*** so that the correct libraries are found at run-time))\n");
17050 if ac_fn_c_try_run "$LINENO"; then :
17055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17056 conftest.$ac_objext conftest.beam conftest.$ac_ext
17059 CFLAGS="$ac_save_CFLAGS"
17060 LIBS="$ac_save_LIBS"
17063 if test "x$no_glib" = x ; then
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17065 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069 $as_echo "no" >&6; }
17070 if test "$PKG_CONFIG" = "no" ; then
17071 echo "*** A new enough version of pkg-config was not found."
17072 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
17074 if test -f conf.glibtest ; then
17077 echo "*** Could not run GLIB test program, checking why..."
17078 ac_save_CFLAGS="$CFLAGS"
17079 ac_save_LIBS="$LIBS"
17080 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17081 LIBS="$LIBS $GLIB_LIBS"
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17091 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17096 if ac_fn_c_try_link "$LINENO"; then :
17097 echo "*** The test program compiled, but did not run. This usually means"
17098 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17099 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17100 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17101 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17102 echo "*** is required on your system"
17104 echo "*** If you have an old version installed, it is best to remove it, although"
17105 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17107 echo "*** The test program failed to compile or link. See the file config.log for the"
17108 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17110 rm -f core conftest.err conftest.$ac_objext \
17111 conftest$ac_exeext conftest.$ac_ext
17112 CFLAGS="$ac_save_CFLAGS"
17113 LIBS="$ac_save_LIBS"
17121 GLIB_COMPILE_RESOURCES=""
17130 rm -f conf.glibtest
17132 if test "x$have_glib" = "xno"; then :
17133 as_fn_error $? "gobject-2.0 is required" "$LINENO" 5
17136 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES gobject-2.0 gmodule-no-export-2.0"
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COGL_DEP" >&5
17141 $as_echo_n "checking for COGL_DEP... " >&6; }
17143 if test -n "$COGL_DEP_CFLAGS"; then
17144 pkg_cv_COGL_DEP_CFLAGS="$COGL_DEP_CFLAGS"
17145 elif test -n "$PKG_CONFIG"; then
17146 if test -n "$PKG_CONFIG" && \
17147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PKG_REQUIRES\""; } >&5
17148 ($PKG_CONFIG --exists --print-errors "$COGL_PKG_REQUIRES") 2>&5
17150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17151 test $ac_status = 0; }; then
17152 pkg_cv_COGL_DEP_CFLAGS=`$PKG_CONFIG --cflags "$COGL_PKG_REQUIRES" 2>/dev/null`
17159 if test -n "$COGL_DEP_LIBS"; then
17160 pkg_cv_COGL_DEP_LIBS="$COGL_DEP_LIBS"
17161 elif test -n "$PKG_CONFIG"; then
17162 if test -n "$PKG_CONFIG" && \
17163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PKG_REQUIRES\""; } >&5
17164 ($PKG_CONFIG --exists --print-errors "$COGL_PKG_REQUIRES") 2>&5
17166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17167 test $ac_status = 0; }; then
17168 pkg_cv_COGL_DEP_LIBS=`$PKG_CONFIG --libs "$COGL_PKG_REQUIRES" 2>/dev/null`
17178 if test $pkg_failed = yes; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17180 $as_echo "no" >&6; }
17182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17183 _pkg_short_errors_supported=yes
17185 _pkg_short_errors_supported=no
17187 if test $_pkg_short_errors_supported = yes; then
17188 COGL_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$COGL_PKG_REQUIRES" 2>&1`
17190 COGL_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$COGL_PKG_REQUIRES" 2>&1`
17192 # Put the nasty error message in config.log where it belongs
17193 echo "$COGL_DEP_PKG_ERRORS" >&5
17195 as_fn_error $? "Package requirements ($COGL_PKG_REQUIRES) were not met:
17197 $COGL_DEP_PKG_ERRORS
17199 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17200 installed software in a non-standard prefix.
17202 Alternatively, you may set the environment variables COGL_DEP_CFLAGS
17203 and COGL_DEP_LIBS to avoid the need to call pkg-config.
17204 See the pkg-config man page for more details." "$LINENO" 5
17206 elif test $pkg_failed = untried; then
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17208 $as_echo "no" >&6; }
17209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17211 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17212 is in your PATH or set the PKG_CONFIG environment variable to the full
17213 path to pkg-config.
17215 Alternatively, you may set the environment variables COGL_DEP_CFLAGS
17216 and COGL_DEP_LIBS to avoid the need to call pkg-config.
17217 See the pkg-config man page for more details.
17219 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17220 See \`config.log' for more details" "$LINENO" 5; }
17223 COGL_DEP_CFLAGS=$pkg_cv_COGL_DEP_CFLAGS
17224 COGL_DEP_LIBS=$pkg_cv_COGL_DEP_LIBS
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17226 $as_echo "yes" >&6; }
17229 if test -n "$COGL_PKG_REQUIRES_GL"; then
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COGL_DEP_GL" >&5
17233 $as_echo_n "checking for COGL_DEP_GL... " >&6; }
17235 if test -n "$COGL_DEP_GL_CFLAGS"; then
17236 pkg_cv_COGL_DEP_GL_CFLAGS="$COGL_DEP_GL_CFLAGS"
17237 elif test -n "$PKG_CONFIG"; then
17238 if test -n "$PKG_CONFIG" && \
17239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PKG_REQUIRES_GL\""; } >&5
17240 ($PKG_CONFIG --exists --print-errors "$COGL_PKG_REQUIRES_GL") 2>&5
17242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17243 test $ac_status = 0; }; then
17244 pkg_cv_COGL_DEP_GL_CFLAGS=`$PKG_CONFIG --cflags "$COGL_PKG_REQUIRES_GL" 2>/dev/null`
17251 if test -n "$COGL_DEP_GL_LIBS"; then
17252 pkg_cv_COGL_DEP_GL_LIBS="$COGL_DEP_GL_LIBS"
17253 elif test -n "$PKG_CONFIG"; then
17254 if test -n "$PKG_CONFIG" && \
17255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PKG_REQUIRES_GL\""; } >&5
17256 ($PKG_CONFIG --exists --print-errors "$COGL_PKG_REQUIRES_GL") 2>&5
17258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17259 test $ac_status = 0; }; then
17260 pkg_cv_COGL_DEP_GL_LIBS=`$PKG_CONFIG --libs "$COGL_PKG_REQUIRES_GL" 2>/dev/null`
17270 if test $pkg_failed = yes; then
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17272 $as_echo "no" >&6; }
17274 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17275 _pkg_short_errors_supported=yes
17277 _pkg_short_errors_supported=no
17279 if test $_pkg_short_errors_supported = yes; then
17280 COGL_DEP_GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$COGL_PKG_REQUIRES_GL" 2>&1`
17282 COGL_DEP_GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "$COGL_PKG_REQUIRES_GL" 2>&1`
17284 # Put the nasty error message in config.log where it belongs
17285 echo "$COGL_DEP_GL_PKG_ERRORS" >&5
17287 as_fn_error $? "Package requirements ($COGL_PKG_REQUIRES_GL) were not met:
17289 $COGL_DEP_GL_PKG_ERRORS
17291 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17292 installed software in a non-standard prefix.
17294 Alternatively, you may set the environment variables COGL_DEP_GL_CFLAGS
17295 and COGL_DEP_GL_LIBS to avoid the need to call pkg-config.
17296 See the pkg-config man page for more details." "$LINENO" 5
17298 elif test $pkg_failed = untried; then
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17303 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17304 is in your PATH or set the PKG_CONFIG environment variable to the full
17305 path to pkg-config.
17307 Alternatively, you may set the environment variables COGL_DEP_GL_CFLAGS
17308 and COGL_DEP_GL_LIBS to avoid the need to call pkg-config.
17309 See the pkg-config man page for more details.
17311 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17312 See \`config.log' for more details" "$LINENO" 5; }
17315 COGL_DEP_GL_CFLAGS=$pkg_cv_COGL_DEP_GL_CFLAGS
17316 COGL_DEP_GL_LIBS=$pkg_cv_COGL_DEP_GL_LIBS
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17318 $as_echo "yes" >&6; }
17323 for x in $COGL_DEP_GL_LIBS; do
17332 gl_libs="$gl_libs $x" ;; #(
17337 COGL_DEP_CFLAGS="$COGL_DEP_CFLAGS $COGL_DEP_CFLAGS_GL"
17338 COGL_DEP_LIBS="$COGL_DEP_LIBS $gl_libs"
17342 if test "x$enable_cogl_pango" = "xyes"; then :
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COGL_PANGO_DEP" >&5
17346 $as_echo_n "checking for COGL_PANGO_DEP... " >&6; }
17348 if test -n "$COGL_PANGO_DEP_CFLAGS"; then
17349 pkg_cv_COGL_PANGO_DEP_CFLAGS="$COGL_PANGO_DEP_CFLAGS"
17350 elif test -n "$PKG_CONFIG"; then
17351 if test -n "$PKG_CONFIG" && \
17352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PANGO_PKG_REQUIRES\""; } >&5
17353 ($PKG_CONFIG --exists --print-errors "$COGL_PANGO_PKG_REQUIRES") 2>&5
17355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356 test $ac_status = 0; }; then
17357 pkg_cv_COGL_PANGO_DEP_CFLAGS=`$PKG_CONFIG --cflags "$COGL_PANGO_PKG_REQUIRES" 2>/dev/null`
17364 if test -n "$COGL_PANGO_DEP_LIBS"; then
17365 pkg_cv_COGL_PANGO_DEP_LIBS="$COGL_PANGO_DEP_LIBS"
17366 elif test -n "$PKG_CONFIG"; then
17367 if test -n "$PKG_CONFIG" && \
17368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PANGO_PKG_REQUIRES\""; } >&5
17369 ($PKG_CONFIG --exists --print-errors "$COGL_PANGO_PKG_REQUIRES") 2>&5
17371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17372 test $ac_status = 0; }; then
17373 pkg_cv_COGL_PANGO_DEP_LIBS=`$PKG_CONFIG --libs "$COGL_PANGO_PKG_REQUIRES" 2>/dev/null`
17383 if test $pkg_failed = yes; then
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17385 $as_echo "no" >&6; }
17387 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17388 _pkg_short_errors_supported=yes
17390 _pkg_short_errors_supported=no
17392 if test $_pkg_short_errors_supported = yes; then
17393 COGL_PANGO_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$COGL_PANGO_PKG_REQUIRES" 2>&1`
17395 COGL_PANGO_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$COGL_PANGO_PKG_REQUIRES" 2>&1`
17397 # Put the nasty error message in config.log where it belongs
17398 echo "$COGL_PANGO_DEP_PKG_ERRORS" >&5
17400 as_fn_error $? "Package requirements ($COGL_PANGO_PKG_REQUIRES) were not met:
17402 $COGL_PANGO_DEP_PKG_ERRORS
17404 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17405 installed software in a non-standard prefix.
17407 Alternatively, you may set the environment variables COGL_PANGO_DEP_CFLAGS
17408 and COGL_PANGO_DEP_LIBS to avoid the need to call pkg-config.
17409 See the pkg-config man page for more details." "$LINENO" 5
17411 elif test $pkg_failed = untried; then
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17413 $as_echo "no" >&6; }
17414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17416 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17417 is in your PATH or set the PKG_CONFIG environment variable to the full
17418 path to pkg-config.
17420 Alternatively, you may set the environment variables COGL_PANGO_DEP_CFLAGS
17421 and COGL_PANGO_DEP_LIBS to avoid the need to call pkg-config.
17422 See the pkg-config man page for more details.
17424 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17425 See \`config.log' for more details" "$LINENO" 5; }
17428 COGL_PANGO_DEP_CFLAGS=$pkg_cv_COGL_PANGO_DEP_CFLAGS
17429 COGL_PANGO_DEP_LIBS=$pkg_cv_COGL_PANGO_DEP_LIBS
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17431 $as_echo "yes" >&6; }
17442 # Check whether --enable-introspection was given.
17443 if test "${enable_introspection+set}" = set; then :
17444 enableval=$enable_introspection;
17446 enable_introspection=auto
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
17451 $as_echo_n "checking for gobject-introspection... " >&6; }
17453 case $enable_introspection in #(
17455 found_introspection="no (disabled, use --enable-introspection to enable)"
17458 if test -n "$PKG_CONFIG" && \
17459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
17460 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
17462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17463 test $ac_status = 0; }; then
17466 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
17468 if test -n "$PKG_CONFIG" && \
17469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
17470 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
17472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17473 test $ac_status = 0; }; then
17474 found_introspection=yes
17476 as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build cogl" "$LINENO" 5
17480 if test -n "$PKG_CONFIG" && \
17481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
17482 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
17484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17485 test $ac_status = 0; }; then
17486 found_introspection=yes
17488 found_introspection=no
17492 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
17496 $as_echo "$found_introspection" >&6; }
17498 INTROSPECTION_SCANNER=
17499 INTROSPECTION_COMPILER=
17500 INTROSPECTION_GENERATE=
17501 INTROSPECTION_GIRDIR=
17502 INTROSPECTION_TYPELIBDIR=
17503 if test "x$found_introspection" = "xyes"; then
17504 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
17505 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
17506 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
17507 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
17508 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
17509 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
17510 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
17511 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
17522 if test "x$found_introspection" = "xyes"; then
17523 HAVE_INTROSPECTION_TRUE=
17524 HAVE_INTROSPECTION_FALSE='#'
17526 HAVE_INTROSPECTION_TRUE='#'
17527 HAVE_INTROSPECTION_FALSE=
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17534 $as_echo_n "checking for X... " >&6; }
17537 # Check whether --with-x was given.
17538 if test "${with_x+set}" = set; then :
17542 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17543 if test "x$with_x" = xno; then
17544 # The user explicitly disabled X.
17547 case $x_includes,$x_libraries in #(
17548 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
17549 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
17550 $as_echo_n "(cached) " >&6
17552 # One or both of the vars are not set, and there is no cached value.
17553 ac_x_includes=no ac_x_libraries=no
17554 rm -f -r conftest.dir
17555 if mkdir conftest.dir; then
17557 cat >Imakefile <<'_ACEOF'
17559 @echo incroot='${INCROOT}'
17561 @echo usrlibdir='${USRLIBDIR}'
17563 @echo libdir='${LIBDIR}'
17565 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17566 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17567 for ac_var in incroot usrlibdir libdir; do
17568 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17570 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17571 for ac_extension in a so sl dylib la dll; do
17572 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17573 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17574 ac_im_usrlibdir=$ac_im_libdir; break
17577 # Screen out bogus values from the imake configuration. They are
17578 # bogus both because they are the default anyway, and because
17579 # using them would break gcc on systems where it needs fixed includes.
17580 case $ac_im_incroot in
17581 /usr/include) ac_x_includes= ;;
17582 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17584 case $ac_im_usrlibdir in
17585 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17586 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17590 rm -f -r conftest.dir
17593 # Standard set of common directories for X headers.
17594 # Check X11 before X11Rn because it is often a symlink to the current release.
17608 /usr/local/X11/include
17609 /usr/local/X11R7/include
17610 /usr/local/X11R6/include
17611 /usr/local/X11R5/include
17612 /usr/local/X11R4/include
17614 /usr/local/include/X11
17615 /usr/local/include/X11R7
17616 /usr/local/include/X11R6
17617 /usr/local/include/X11R5
17618 /usr/local/include/X11R4
17622 /usr/XFree86/include/X11
17626 /usr/unsupported/include
17627 /usr/athena/include
17628 /usr/local/x11r5/include
17629 /usr/lpp/Xamples/include
17631 /usr/openwin/include
17632 /usr/openwin/share/include'
17634 if test "$ac_x_includes" = no; then
17635 # Guess where to find include files, by looking for Xlib.h.
17636 # First, try using that file with no special directory specified.
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17639 #include <X11/Xlib.h>
17641 if ac_fn_c_try_cpp "$LINENO"; then :
17642 # We can compile using X headers with no special include directory.
17645 for ac_dir in $ac_x_header_dirs; do
17646 if test -r "$ac_dir/X11/Xlib.h"; then
17647 ac_x_includes=$ac_dir
17652 rm -f conftest.err conftest.i conftest.$ac_ext
17653 fi # $ac_x_includes = no
17655 if test "$ac_x_libraries" = no; then
17656 # Check for the libraries.
17657 # See if we find them without any special options.
17658 # Don't add to $LIBS permanently.
17661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662 /* end confdefs.h. */
17663 #include <X11/Xlib.h>
17672 if ac_fn_c_try_link "$LINENO"; then :
17674 # We can link X programs with no special library path.
17678 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17680 # Don't even attempt the hair of trying to link an X program!
17681 for ac_extension in a so sl dylib la dll; do
17682 if test -r "$ac_dir/libX11.$ac_extension"; then
17683 ac_x_libraries=$ac_dir
17689 rm -f core conftest.err conftest.$ac_objext \
17690 conftest$ac_exeext conftest.$ac_ext
17691 fi # $ac_x_libraries = no
17693 case $ac_x_includes,$ac_x_libraries in #(
17694 no,* | *,no | *\'*)
17695 # Didn't find X, or a directory has "'" in its name.
17696 ac_cv_have_x="have_x=no";; #(
17698 # Record where we found X for the cache.
17699 ac_cv_have_x="have_x=yes\
17700 ac_x_includes='$ac_x_includes'\
17701 ac_x_libraries='$ac_x_libraries'"
17707 eval "$ac_cv_have_x"
17710 if test "$have_x" != yes; then
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17712 $as_echo "$have_x" >&6; }
17715 # If each of the values was on the command line, it overrides each guess.
17716 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17717 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17718 # Update the cache value to reflect the command line values.
17719 ac_cv_have_x="have_x=yes\
17720 ac_x_includes='$x_includes'\
17721 ac_x_libraries='$x_libraries'"
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17723 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17727 $as_echo_n "checking for ANSI C header files... " >&6; }
17728 if ${ac_cv_header_stdc+:} false; then :
17729 $as_echo_n "(cached) " >&6
17731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h. */
17733 #include <stdlib.h>
17734 #include <stdarg.h>
17735 #include <string.h>
17746 if ac_fn_c_try_compile "$LINENO"; then :
17747 ac_cv_header_stdc=yes
17749 ac_cv_header_stdc=no
17751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753 if test $ac_cv_header_stdc = yes; then
17754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756 /* end confdefs.h. */
17757 #include <string.h>
17760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17761 $EGREP "memchr" >/dev/null 2>&1; then :
17764 ac_cv_header_stdc=no
17770 if test $ac_cv_header_stdc = yes; then
17771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17774 #include <stdlib.h>
17777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17778 $EGREP "free" >/dev/null 2>&1; then :
17781 ac_cv_header_stdc=no
17787 if test $ac_cv_header_stdc = yes; then
17788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17789 if test "$cross_compiling" = yes; then :
17792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h. */
17795 #include <stdlib.h>
17796 #if ((' ' & 0x0FF) == 0x020)
17797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17800 # define ISLOWER(c) \
17801 (('a' <= (c) && (c) <= 'i') \
17802 || ('j' <= (c) && (c) <= 'r') \
17803 || ('s' <= (c) && (c) <= 'z'))
17804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17812 for (i = 0; i < 256; i++)
17813 if (XOR (islower (i), ISLOWER (i))
17814 || toupper (i) != TOUPPER (i))
17819 if ac_fn_c_try_run "$LINENO"; then :
17822 ac_cv_header_stdc=no
17824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17825 conftest.$ac_objext conftest.beam conftest.$ac_ext
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17831 $as_echo "$ac_cv_header_stdc" >&6; }
17832 if test $ac_cv_header_stdc = yes; then
17834 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17838 for ac_header in fcntl.h limits.h unistd.h
17840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17841 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17842 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17843 cat >>confdefs.h <<_ACEOF
17844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17856 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
17857 if test "x$ac_cv_func_ffs" = xyes; then :
17858 cat >>confdefs.h <<_ACEOF
17867 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
17868 if test "x$ac_cv_header_poll_h" = xyes; then :
17870 if ac_fn_c_compute_int "$LINENO" "POLLIN" "COGL_SYSDEF_POLLIN" "#include <poll.h>"; then :
17873 as_fn_error $? "Unable to get value of POLLIN" "$LINENO" 5
17876 if ac_fn_c_compute_int "$LINENO" "POLLPRI" "COGL_SYSDEF_POLLPRI" "#include <poll.h>"; then :
17879 as_fn_error $? "Unable to get value of POLLPRI" "$LINENO" 5
17882 if ac_fn_c_compute_int "$LINENO" "POLLOUT" "COGL_SYSDEF_POLLOUT" "#include <poll.h>"; then :
17885 as_fn_error $? "Unable to get value of POLLOUT" "$LINENO" 5
17888 if ac_fn_c_compute_int "$LINENO" "POLLERR" "COGL_SYSDEF_POLLERR" "#include <poll.h>"; then :
17891 as_fn_error $? "Unable to get value of POLLERR" "$LINENO" 5
17894 if ac_fn_c_compute_int "$LINENO" "POLLHUP" "COGL_SYSDEF_POLLHUP" "#include <poll.h>"; then :
17897 as_fn_error $? "Unable to get value of POLLHUP" "$LINENO" 5
17900 if ac_fn_c_compute_int "$LINENO" "POLLNVAL" "COGL_SYSDEF_POLLNVAL" "#include <poll.h>"; then :
17903 as_fn_error $? "Unable to get value of POLLNVAL" "$LINENO" 5
17909 COGL_SYSDEF_POLLIN=1
17910 COGL_SYSDEF_POLLPRI=2
17911 COGL_SYSDEF_POLLOUT=4
17912 COGL_SYSDEF_POLLERR=8
17913 COGL_SYSDEF_POLLHUP=16
17914 COGL_SYSDEF_POLLNVAL=32
17919 COGL_DEFINES_EXTRA="$COGL_DEFINES_EXTRA
17920 #define COGL_SYSDEF_POLLIN $COGL_SYSDEF_POLLIN
17921 #define COGL_SYSDEF_POLLPRI $COGL_SYSDEF_POLLPRI
17922 #define COGL_SYSDEF_POLLOUT $COGL_SYSDEF_POLLOUT
17923 #define COGL_SYSDEF_POLLERR $COGL_SYSDEF_POLLERR
17924 #define COGL_SYSDEF_POLLHUP $COGL_SYSDEF_POLLHUP
17925 #define COGL_SYSDEF_POLLNVAL $COGL_SYSDEF_POLLNVAL
17928 COGL_DEFINES="$COGL_DEFINES_EXTRA"
17929 for x in $COGL_DEFINES_SYMBOLS; do
17930 COGL_DEFINES="$COGL_DEFINES
17936 if test "x$cogl_gl_headers" = "x"; then :
17937 as_fn_error $? "Internal error: no GL header set" "$LINENO" 5
17939 COGL_GL_HEADER_INCLUDES=""
17940 for x in $cogl_gl_headers; do
17941 COGL_GL_HEADER_INCLUDES="$COGL_GL_HEADER_INCLUDES
17947 $as_echo "#define COGL_ENABLE_EXPERIMENTAL_2_0_API 1" >>confdefs.h
17950 $as_echo "#define COGL_ENABLE_EXPERIMENTAL_API 1" >>confdefs.h
17960 # just for compatability with the clutter build...
17964 ac_config_files="$ac_config_files Makefile README config.h.win32 build/Makefile build/win32/Makefile build/win32/vs9/Makefile build/win32/vs10/Makefile cogl/Makefile cogl/cogl-1.0.pc cogl/cogl-2.0-experimental.pc cogl/cogl-defines.h cogl/cogl.rc cogl-pango/Makefile cogl-pango/cogl-pango-1.0.pc cogl-pango/cogl-pango-2.0-experimental.pc cogl-pango/cogl-pango.rc doc/Makefile doc/reference/Makefile doc/reference/cogl/Makefile doc/reference/cogl/cogl-docs.xml doc/reference/cogl-2.0-experimental/Makefile doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml examples/Makefile tests/Makefile tests/conform/Makefile tests/conform/config.env tests/conform/test-launcher.sh tests/data/Makefile po/Makefile.in"
17966 cat >confcache <<\_ACEOF
17967 # This file is a shell script that caches the results of configure
17968 # tests run on this system so they can be shared between configure
17969 # scripts and configure runs, see configure's option --config-cache.
17970 # It is not useful on other systems. If it contains results you don't
17971 # want to keep, you may remove or edit it.
17973 # config.status only pays attention to the cache file if you give it
17974 # the --recheck option to rerun configure.
17976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17978 # following values.
17982 # The following way of writing the cache mishandles newlines in values,
17983 # but we know of no workaround that is simple, portable, and efficient.
17984 # So, we kill variables containing newlines.
17985 # Ultrix sh set writes to stderr and can't be redirected directly,
17986 # and sets the high bit in the cache file unless we assign to the vars.
17988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17989 eval ac_val=\$$ac_var
17993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17997 _ | IFS | as_nl) ;; #(
17998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17999 *) { eval $ac_var=; unset $ac_var;} ;;
18005 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18006 *${as_nl}ac_space=\ *)
18007 # `set' does not quote correctly, so add quotes: double-quote
18008 # substitution turns \\\\ into \\, and sed turns \\ into \.
18011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18014 # `set' quotes correctly as required by POSIX, so do not add quotes.
18015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18026 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18029 if test -w "$cache_file"; then
18030 if test "x$cache_file" != "x/dev/null"; then
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18032 $as_echo "$as_me: updating cache $cache_file" >&6;}
18033 if test ! -f "$cache_file" || test -h "$cache_file"; then
18034 cat confcache >"$cache_file"
18036 case $cache_file in #(
18038 mv -f confcache "$cache_file"$$ &&
18039 mv -f "$cache_file"$$ "$cache_file" ;; #(
18041 mv -f confcache "$cache_file" ;;
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18053 # Let make expand exec_prefix.
18054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18056 DEFS=-DHAVE_CONFIG_H
18061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18062 # 1. Remove the extension, and $U if already installed.
18063 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18064 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18065 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18066 # will be set to the directory where LIBOBJS objects are built.
18067 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18068 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18070 LIBOBJS=$ac_libobjs
18072 LTLIBOBJS=$ac_ltlibobjs
18075 if test -n "$EXEEXT"; then
18077 am__EXEEXT_FALSE='#'
18079 am__EXEEXT_TRUE='#'
18083 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
18084 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
18085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18087 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18088 as_fn_error $? "conditional \"AMDEP\" was never defined.
18089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18091 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18092 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18095 if test -z "${OS_QUARTZ_TRUE}" && test -z "${OS_QUARTZ_FALSE}"; then
18096 as_fn_error $? "conditional \"OS_QUARTZ\" was never defined.
18097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18099 if test -z "${PROFILE_TRUE}" && test -z "${PROFILE_FALSE}"; then
18100 as_fn_error $? "conditional \"PROFILE\" was never defined.
18101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18103 if test -z "${BUILD_COGL_PANGO_TRUE}" && test -z "${BUILD_COGL_PANGO_FALSE}"; then
18104 as_fn_error $? "conditional \"BUILD_COGL_PANGO\" was never defined.
18105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18107 if test -z "${INSTALL_EXAMPLES_TRUE}" && test -z "${INSTALL_EXAMPLES_FALSE}"; then
18108 as_fn_error $? "conditional \"INSTALL_EXAMPLES\" was never defined.
18109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18111 if test -z "${USE_GLIB_TRUE}" && test -z "${USE_GLIB_FALSE}"; then
18112 as_fn_error $? "conditional \"USE_GLIB\" was never defined.
18113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18115 if test -z "${COGL_DRIVER_GL_SUPPORTED_TRUE}" && test -z "${COGL_DRIVER_GL_SUPPORTED_FALSE}"; then
18116 as_fn_error $? "conditional \"COGL_DRIVER_GL_SUPPORTED\" was never defined.
18117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18119 if test -z "${COGL_DRIVER_GLES_SUPPORTED_TRUE}" && test -z "${COGL_DRIVER_GLES_SUPPORTED_FALSE}"; then
18120 as_fn_error $? "conditional \"COGL_DRIVER_GLES_SUPPORTED\" was never defined.
18121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18123 if test -z "${SUPPORT_GLX_TRUE}" && test -z "${SUPPORT_GLX_FALSE}"; then
18124 as_fn_error $? "conditional \"SUPPORT_GLX\" was never defined.
18125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18127 if test -z "${SUPPORT_WGL_TRUE}" && test -z "${SUPPORT_WGL_FALSE}"; then
18128 as_fn_error $? "conditional \"SUPPORT_WGL\" was never defined.
18129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18131 if test -z "${SUPPORT_EGL_PLATFORM_POWERVR_NULL_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_POWERVR_NULL_FALSE}"; then
18132 as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_POWERVR_NULL\" was never defined.
18133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18135 if test -z "${SUPPORT_EGL_PLATFORM_GDL_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_GDL_FALSE}"; then
18136 as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_GDL\" was never defined.
18137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18139 if test -z "${SUPPORT_EGL_PLATFORM_WAYLAND_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_WAYLAND_FALSE}"; then
18140 as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_WAYLAND\" was never defined.
18141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18143 if test -z "${SUPPORT_EGL_PLATFORM_KMS_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_KMS_FALSE}"; then
18144 as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_KMS\" was never defined.
18145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18147 if test -z "${SUPPORT_WAYLAND_EGL_SERVER_TRUE}" && test -z "${SUPPORT_WAYLAND_EGL_SERVER_FALSE}"; then
18148 as_fn_error $? "conditional \"SUPPORT_WAYLAND_EGL_SERVER\" was never defined.
18149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18151 if test -z "${SUPPORT_EGL_PLATFORM_ANDROID_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_ANDROID_FALSE}"; then
18152 as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_ANDROID\" was never defined.
18153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18155 if test -z "${SUPPORT_EGL_PLATFORM_XLIB_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_XLIB_FALSE}"; then
18156 as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_XLIB\" was never defined.
18157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18159 if test -z "${SUPPORT_EGL_TRUE}" && test -z "${SUPPORT_EGL_FALSE}"; then
18160 as_fn_error $? "conditional \"SUPPORT_EGL\" was never defined.
18161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18163 if test -z "${SUPPORT_SDL_TRUE}" && test -z "${SUPPORT_SDL_FALSE}"; then
18164 as_fn_error $? "conditional \"SUPPORT_SDL\" was never defined.
18165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18167 if test -z "${X11_TESTS_TRUE}" && test -z "${X11_TESTS_FALSE}"; then
18168 as_fn_error $? "conditional \"X11_TESTS\" was never defined.
18169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18171 if test -z "${SUPPORT_X11_TRUE}" && test -z "${SUPPORT_X11_FALSE}"; then
18172 as_fn_error $? "conditional \"SUPPORT_X11\" was never defined.
18173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18175 if test -z "${SUPPORT_XLIB_TRUE}" && test -z "${SUPPORT_XLIB_FALSE}"; then
18176 as_fn_error $? "conditional \"SUPPORT_XLIB\" was never defined.
18177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18179 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18180 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18183 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
18184 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
18185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18187 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
18188 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
18189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18191 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
18192 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
18193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18195 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
18196 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
18197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18199 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
18200 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
18201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18203 if test -z "${BUILD_GTK_DOC_TRUE}" && test -z "${BUILD_GTK_DOC_FALSE}"; then
18204 as_fn_error $? "conditional \"BUILD_GTK_DOC\" was never defined.
18205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18207 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
18208 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
18209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18212 : "${CONFIG_STATUS=./config.status}"
18214 ac_clean_files_save=$ac_clean_files
18215 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18217 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18219 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18221 # Generated by $as_me.
18222 # Run this file to recreate the current configuration.
18223 # Compiler output produced by configure, useful for debugging
18224 # configure, is in config.log if it exists.
18227 ac_cs_recheck=false
18230 SHELL=\${CONFIG_SHELL-$SHELL}
18233 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18234 ## -------------------- ##
18235 ## M4sh Initialization. ##
18236 ## -------------------- ##
18238 # Be more Bourne compatible
18239 DUALCASE=1; export DUALCASE # for MKS sh
18240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18243 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18244 # is contrary to our usage. Disable this feature.
18245 alias -g '${1+"$@"}'='"$@"'
18246 setopt NO_GLOB_SUBST
18248 case `(set -o) 2>/dev/null` in #(
18260 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18261 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18262 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18263 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18264 # Prefer a ksh shell builtin over an external printf program on Solaris,
18265 # but without wasting forks for bash or zsh.
18266 if test -z "$BASH_VERSION$ZSH_VERSION" \
18267 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18268 as_echo='print -r --'
18269 as_echo_n='print -rn --'
18270 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18271 as_echo='printf %s\n'
18272 as_echo_n='printf %s'
18274 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18275 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18276 as_echo_n='/usr/ucb/echo -n'
18278 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18279 as_echo_n_body='eval
18283 expr "X$arg" : "X\\(.*\\)$as_nl";
18284 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18286 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18288 export as_echo_n_body
18289 as_echo_n='sh -c $as_echo_n_body as_echo'
18291 export as_echo_body
18292 as_echo='sh -c $as_echo_body as_echo'
18295 # The user is always right.
18296 if test "${PATH_SEPARATOR+set}" != set; then
18298 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18299 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18306 # We need space, tab and new line, in precisely that order. Quoting is
18307 # there to prevent editors from complaining about space-tab.
18308 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18309 # splitting by setting IFS to empty value.)
18312 # Find who we are. Look in the path if we contain no directory separator.
18315 *[\\/]* ) as_myself=$0 ;;
18316 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18317 for as_dir in $PATH
18320 test -z "$as_dir" && as_dir=.
18321 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18327 # We did not find ourselves, most probably we were run as `sh COMMAND'
18328 # in which case we are not to be found in the path.
18329 if test "x$as_myself" = x; then
18332 if test ! -f "$as_myself"; then
18333 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18337 # Unset variables that we do not need and which cause bugs (e.g. in
18338 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18339 # suppresses any "Segmentation fault" message there. '((' could
18340 # trigger a bug in pdksh 5.2.14.
18341 for as_var in BASH_ENV ENV MAIL MAILPATH
18342 do eval test x\${$as_var+set} = xset \
18343 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18356 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18360 # ----------------------------------------
18361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18363 # script with STATUS, using 1 if that was 0.
18366 as_status=$1; test $as_status -eq 0 && as_status=1
18368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18371 $as_echo "$as_me: error: $2" >&2
18372 as_fn_exit $as_status
18376 # as_fn_set_status STATUS
18377 # -----------------------
18378 # Set $? to STATUS, without forking.
18379 as_fn_set_status ()
18382 } # as_fn_set_status
18384 # as_fn_exit STATUS
18385 # -----------------
18386 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18390 as_fn_set_status $1
18396 # Portably unset VAR.
18399 { eval $1=; unset $1;}
18401 as_unset=as_fn_unset
18402 # as_fn_append VAR VALUE
18403 # ----------------------
18404 # Append the text in VALUE to the end of the definition contained in VAR. Take
18405 # advantage of any shell optimizations that allow amortized linear growth over
18406 # repeated appends, instead of the typical quadratic growth present in naive
18408 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18409 eval 'as_fn_append ()
18420 # as_fn_arith ARG...
18421 # ------------------
18422 # Perform arithmetic evaluation on the ARGs, and store the result in the
18423 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18424 # must be portable across $(()) and expr.
18425 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18426 eval 'as_fn_arith ()
18433 as_val=`expr "$@" || test $? -eq 1`
18438 if expr a : '\(a\)' >/dev/null 2>&1 &&
18439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18446 as_basename=basename
18451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18457 as_me=`$as_basename -- "$0" ||
18458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18459 X"$0" : 'X\(//\)$' \| \
18460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18462 sed '/^.*\/\([^/][^/]*\)\/*$/{
18476 # Avoid depending upon Character Ranges.
18477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18480 as_cr_digits='0123456789'
18481 as_cr_alnum=$as_cr_Letters$as_cr_digits
18483 ECHO_C= ECHO_N= ECHO_T=
18484 case `echo -n x` in #(((((
18486 case `echo 'xy\c'` in
18487 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18489 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18496 rm -f conf$$ conf$$.exe conf$$.file
18497 if test -d conf$$.dir; then
18498 rm -f conf$$.dir/conf$$.file
18501 mkdir conf$$.dir 2>/dev/null
18503 if (echo >conf$$.file) 2>/dev/null; then
18504 if ln -s conf$$.file conf$$ 2>/dev/null; then
18506 # ... but there are two gotchas:
18507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18509 # In both cases, we have to default to `cp -p'.
18510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18512 elif ln conf$$.file conf$$ 2>/dev/null; then
18520 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18521 rmdir conf$$.dir 2>/dev/null
18526 # Create "$as_dir" as a directory, including parents if necessary.
18531 -*) as_dir=./$as_dir;;
18533 test -d "$as_dir" || eval $as_mkdir_p || {
18537 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18538 *) as_qdir=$as_dir;;
18540 as_dirs="'$as_qdir' $as_dirs"
18541 as_dir=`$as_dirname -- "$as_dir" ||
18542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18543 X"$as_dir" : 'X\(//\)[^/]' \| \
18544 X"$as_dir" : 'X\(//\)$' \| \
18545 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18546 $as_echo X"$as_dir" |
18547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18551 /^X\(\/\/\)[^/].*/{
18564 test -d "$as_dir" && break
18566 test -z "$as_dirs" || eval "mkdir $as_dirs"
18567 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18571 if mkdir -p . 2>/dev/null; then
18572 as_mkdir_p='mkdir -p "$as_dir"'
18574 test -d ./-p && rmdir ./-p
18578 if test -x / >/dev/null 2>&1; then
18579 as_test_x='test -x'
18581 if ls -dL / >/dev/null 2>&1; then
18588 if test -d "$1"; then
18594 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18595 ???[sx]*):;;*)false;;esac;fi
18599 as_executable_p=$as_test_x
18601 # Sed expression to map a string onto a valid CPP name.
18602 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18604 # Sed expression to map a string onto a valid variable name.
18605 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18609 ## ----------------------------------- ##
18610 ## Main body of $CONFIG_STATUS script. ##
18611 ## ----------------------------------- ##
18613 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18616 # Save the log message, to keep $0 and so on meaningful, and to
18617 # report actual input values of CONFIG_FILES etc. instead of their
18618 # values after options handling.
18620 This file was extended by cogl $as_me 1.10.2, which was
18621 generated by GNU Autoconf 2.68. Invocation command line was
18623 CONFIG_FILES = $CONFIG_FILES
18624 CONFIG_HEADERS = $CONFIG_HEADERS
18625 CONFIG_LINKS = $CONFIG_LINKS
18626 CONFIG_COMMANDS = $CONFIG_COMMANDS
18629 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18634 case $ac_config_files in *"
18635 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18638 case $ac_config_headers in *"
18639 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18644 # Files that config.status was made for.
18645 config_files="$ac_config_files"
18646 config_headers="$ac_config_headers"
18647 config_commands="$ac_config_commands"
18651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18653 \`$as_me' instantiates files and other configuration actions
18654 from templates according to the current configuration. Unless the files
18655 and actions are specified as TAGs, all are instantiated by default.
18657 Usage: $0 [OPTION]... [TAG]...
18659 -h, --help print this help, then exit
18660 -V, --version print version number and configuration settings, then exit
18661 --config print configuration, then exit
18662 -q, --quiet, --silent
18663 do not print progress messages
18664 -d, --debug don't remove temporary files
18665 --recheck update $as_me by reconfiguring in the same conditions
18666 --file=FILE[:TEMPLATE]
18667 instantiate the configuration file FILE
18668 --header=FILE[:TEMPLATE]
18669 instantiate the configuration header FILE
18671 Configuration files:
18674 Configuration headers:
18677 Configuration commands:
18680 Report bugs to the package provider."
18683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18684 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18686 cogl config.status 1.10.2
18687 configured by $0, generated by GNU Autoconf 2.68,
18688 with options \\"\$ac_cs_config\\"
18690 Copyright (C) 2010 Free Software Foundation, Inc.
18691 This config.status script is free software; the Free Software Foundation
18692 gives unlimited permission to copy, distribute and modify it."
18699 test -n "\$AWK" || AWK=awk
18702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18703 # The default lists apply if the user does not specify any file.
18709 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18710 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18726 # Handling of the options.
18727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18729 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18730 $as_echo "$ac_cs_version"; exit ;;
18731 --config | --confi | --conf | --con | --co | --c )
18732 $as_echo "$ac_cs_config"; exit ;;
18733 --debug | --debu | --deb | --de | --d | -d )
18735 --file | --fil | --fi | --f )
18738 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18739 '') as_fn_error $? "missing file argument" ;;
18741 as_fn_append CONFIG_FILES " '$ac_optarg'"
18742 ac_need_defaults=false;;
18743 --header | --heade | --head | --hea )
18746 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18748 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18749 ac_need_defaults=false;;
18751 # Conflict between --help and --header
18752 as_fn_error $? "ambiguous option: \`$1'
18753 Try \`$0 --help' for more information.";;
18754 --help | --hel | -h )
18755 $as_echo "$ac_cs_usage"; exit ;;
18756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18757 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18760 # This is an error.
18761 -*) as_fn_error $? "unrecognized option: \`$1'
18762 Try \`$0 --help' for more information." ;;
18764 *) as_fn_append ac_config_targets " $1"
18765 ac_need_defaults=false ;;
18771 ac_configure_extra_args=
18773 if $ac_cs_silent; then
18775 ac_configure_extra_args="$ac_configure_extra_args --silent"
18779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18780 if \$ac_cs_recheck; then
18781 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18783 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18784 CONFIG_SHELL='$SHELL'
18785 export CONFIG_SHELL
18790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18795 ## Running $as_me. ##
18801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18805 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18808 # The HP-UX ksh and POSIX shell print the target directory to stdout
18809 # if CDPATH is set.
18810 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18812 sed_quote_subst='$sed_quote_subst'
18813 double_quote_subst='$double_quote_subst'
18814 delay_variable_subst='$delay_variable_subst'
18815 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18816 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18817 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18818 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18819 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18820 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18821 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18822 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18823 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18824 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18825 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18826 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18827 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18828 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18829 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18830 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18831 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18832 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18833 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18834 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18835 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18836 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18837 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18838 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18839 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18840 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18841 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18842 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18843 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18844 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18845 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18846 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18847 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18848 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18849 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18850 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18851 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18852 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18853 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18854 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18855 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18856 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18869 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18870 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18871 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18872 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18873 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18874 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18875 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18876 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18877 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18878 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18879 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18880 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18881 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18882 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18883 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18884 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18885 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18886 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18887 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18888 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18889 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18890 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18891 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18892 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18893 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18894 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18895 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18896 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18897 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18898 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18899 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18900 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18901 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18902 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18903 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18904 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18905 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18906 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18907 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18908 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18909 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18910 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18911 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18912 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18913 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18914 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18915 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18916 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18917 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18918 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18919 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18920 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18921 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18922 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18923 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18924 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18925 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18926 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18927 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18928 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18929 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18930 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18931 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18932 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18933 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18934 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18935 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18936 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18937 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18938 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18939 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18940 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18941 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18942 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18943 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18944 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18947 LTCFLAGS='$LTCFLAGS'
18948 compiler='$compiler_DEFAULT'
18950 # A function that is used when there is no print builtin or printf.
18951 func_fallback_echo ()
18953 eval 'cat <<_LTECHO_EOF
18958 # Quote evaled strings.
18972 deplibs_check_method \
18977 sharedlib_from_linklib_cmd \
18980 archiver_list_spec \
18986 lt_cv_sys_global_symbol_pipe \
18987 lt_cv_sys_global_symbol_to_cdecl \
18988 lt_cv_sys_global_symbol_to_c_name_address \
18989 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18990 nm_file_list_spec \
18991 lt_prog_compiler_no_builtin_flag \
18992 lt_prog_compiler_pic \
18993 lt_prog_compiler_wl \
18994 lt_prog_compiler_static \
18995 lt_cv_prog_compiler_c_o \
19004 export_dynamic_flag_spec \
19005 whole_archive_flag_spec \
19006 compiler_needs_object \
19008 allow_undefined_flag \
19009 no_undefined_flag \
19010 hardcode_libdir_flag_spec \
19011 hardcode_libdir_flag_spec_ld \
19012 hardcode_libdir_separator \
19016 variables_saved_for_relink \
19018 library_names_spec \
19020 install_override_mode \
19024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19025 *[\\\\\\\`\\"\\\$]*)
19026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19034 # Double-quote double-evaled strings.
19035 for var in reload_cmds \
19036 old_postinstall_cmds \
19037 old_postuninstall_cmds \
19039 extract_expsyms_cmds \
19040 old_archive_from_new_cmds \
19041 old_archive_from_expsyms_cmds \
19043 archive_expsym_cmds \
19045 module_expsym_cmds \
19046 export_symbols_cmds \
19050 postuninstall_cmds \
19052 sys_lib_search_path_spec \
19053 sys_lib_dlsearch_path_spec; do
19054 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19055 *[\\\\\\\`\\"\\\$]*)
19056 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19059 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19064 ac_aux_dir='$ac_aux_dir'
19065 xsi_shell='$xsi_shell'
19066 lt_shell_append='$lt_shell_append'
19068 # See if we are running on zsh, and set the options which allow our
19069 # commands through without removal of \ escapes INIT.
19070 if test -n "\${ZSH_VERSION+set}" ; then
19071 setopt NO_GLOB_SUBST
19077 TIMESTAMP='$TIMESTAMP'
19083 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19084 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19085 # from automake < 1.5.
19086 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19087 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19088 LINGUAS="${LINGUAS-%UNSET%}"
19093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19095 # Handling of arguments.
19096 for ac_config_target in $ac_config_targets
19098 case $ac_config_target in
19099 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19100 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19101 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19102 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19103 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19104 "README") CONFIG_FILES="$CONFIG_FILES README" ;;
19105 "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
19106 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
19107 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
19108 "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
19109 "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
19110 "cogl/Makefile") CONFIG_FILES="$CONFIG_FILES cogl/Makefile" ;;
19111 "cogl/cogl-1.0.pc") CONFIG_FILES="$CONFIG_FILES cogl/cogl-1.0.pc" ;;
19112 "cogl/cogl-2.0-experimental.pc") CONFIG_FILES="$CONFIG_FILES cogl/cogl-2.0-experimental.pc" ;;
19113 "cogl/cogl-defines.h") CONFIG_FILES="$CONFIG_FILES cogl/cogl-defines.h" ;;
19114 "cogl/cogl.rc") CONFIG_FILES="$CONFIG_FILES cogl/cogl.rc" ;;
19115 "cogl-pango/Makefile") CONFIG_FILES="$CONFIG_FILES cogl-pango/Makefile" ;;
19116 "cogl-pango/cogl-pango-1.0.pc") CONFIG_FILES="$CONFIG_FILES cogl-pango/cogl-pango-1.0.pc" ;;
19117 "cogl-pango/cogl-pango-2.0-experimental.pc") CONFIG_FILES="$CONFIG_FILES cogl-pango/cogl-pango-2.0-experimental.pc" ;;
19118 "cogl-pango/cogl-pango.rc") CONFIG_FILES="$CONFIG_FILES cogl-pango/cogl-pango.rc" ;;
19119 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19120 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
19121 "doc/reference/cogl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/cogl/Makefile" ;;
19122 "doc/reference/cogl/cogl-docs.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/cogl/cogl-docs.xml" ;;
19123 "doc/reference/cogl-2.0-experimental/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/cogl-2.0-experimental/Makefile" ;;
19124 "doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml" ;;
19125 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19126 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19127 "tests/conform/Makefile") CONFIG_FILES="$CONFIG_FILES tests/conform/Makefile" ;;
19128 "tests/conform/config.env") CONFIG_FILES="$CONFIG_FILES tests/conform/config.env" ;;
19129 "tests/conform/test-launcher.sh") CONFIG_FILES="$CONFIG_FILES tests/conform/test-launcher.sh" ;;
19130 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
19131 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19133 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19138 # If the user did not use the arguments to specify the items to instantiate,
19139 # then the envvar interface is used. Set only those that are not.
19140 # We use the long form for the default assignment because of an extremely
19141 # bizarre bug on SunOS 4.1.3.
19142 if $ac_need_defaults; then
19143 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19144 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19145 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19148 # Have a temporary directory for convenience. Make it in the build tree
19149 # simply because there is no reason against having it here, and in addition,
19150 # creating and moving files from /tmp can sometimes cause problems.
19151 # Hook for its removal unless debugging.
19152 # Note that there is a small window in which the directory will not be cleaned:
19153 # after its creation but before its name has been assigned to `$tmp'.
19157 trap 'exit_status=$?
19158 : "${ac_tmp:=$tmp}"
19159 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19161 trap 'as_fn_exit 1' 1 2 13 15
19163 # Create a (secure) tmp directory for tmp files.
19166 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19170 tmp=./conf$$-$RANDOM
19171 (umask 077 && mkdir "$tmp")
19172 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19175 # Set up the scripts for CONFIG_FILES section.
19176 # No need to generate them if there are no CONFIG_FILES.
19177 # This happens for instance with `./config.status config.h'.
19178 if test -n "$CONFIG_FILES"; then
19181 ac_cr=`echo X | tr X '\015'`
19182 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19183 # But we know of no other shell where ac_cr would be empty at this
19184 # point, so we can use a bashism as a fallback.
19185 if test "x$ac_cr" = x; then
19186 eval ac_cr=\$\'\\r\'
19188 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19189 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19192 ac_cs_awk_cr=$ac_cr
19195 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19200 echo "cat >conf$$subs.awk <<_ACEOF" &&
19201 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19203 } >conf$$subs.sh ||
19204 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19205 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19207 for ac_last_try in false false false false false :; do
19208 . ./conf$$subs.sh ||
19209 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19211 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19212 if test $ac_delim_n = $ac_delim_num; then
19214 elif $ac_last_try; then
19215 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19220 rm -f conf$$subs.sh
19222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19223 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19227 s/^/S["/; s/!.*/"]=/
19237 s/\(.\{148\}\)..*/\1/
19239 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19244 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19251 s/\(.\{148\}\)..*/\1/
19253 s/["\\]/\\&/g; s/^/"/; s/$/"/
19257 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19262 ' <conf$$subs.awk | sed '
19267 ' >>$CONFIG_STATUS || ac_write_fail=1
19268 rm -f conf$$subs.awk
19269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19271 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19272 for (key in S) S_is_set[key] = 1
19278 nfields = split(line, field, "@")
19280 len = length(field[1])
19281 for (i = 2; i < nfields; i++) {
19283 keylen = length(key)
19284 if (S_is_set[key]) {
19286 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19287 len += length(value) + length(field[++i])
19298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19299 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19300 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19303 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19304 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19307 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19308 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19309 # trailing colons and then remove the whole line if VPATH becomes empty
19310 # (actually we leave an empty line to preserve line numbers).
19311 if test "x$srcdir" = x.; then
19312 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19331 fi # test -n "$CONFIG_FILES"
19333 # Set up the scripts for CONFIG_HEADERS section.
19334 # No need to generate them if there are no CONFIG_HEADERS.
19335 # This happens for instance with `./config.status Makefile'.
19336 if test -n "$CONFIG_HEADERS"; then
19337 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19341 # Transform confdefs.h into an awk script `defines.awk', embedded as
19342 # here-document in config.status, that substitutes the proper values into
19343 # config.h.in to produce config.h.
19345 # Create a delimiter string that does not exist in confdefs.h, to ease
19346 # handling of long lines.
19348 for ac_last_try in false false :; do
19349 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19350 if test -z "$ac_tt"; then
19352 elif $ac_last_try; then
19353 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19359 # For the awk script, D is an array of macro values keyed by name,
19360 # likewise P contains macro parameters if any. Preserve backslash
19361 # newline sequences.
19363 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19365 s/.\{148\}/&'"$ac_delim"'/g
19368 s/^[ ]*#[ ]*define[ ][ ]*/ /
19375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19382 D["\1"]=" \3\\\\\\n"\\/p
19384 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19389 s/.\{148\}/&'"$ac_delim"'/g
19394 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19397 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19399 ' <confdefs.h | sed '
19400 s/'"$ac_delim"'/"\\\
19401 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19404 for (key in D) D_is_set[key] = 1
19407 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19409 split(line, arg, " ")
19410 if (arg[1] == "#") {
19414 defundef = substr(arg[1], 2)
19417 split(mac1, mac2, "(") #)
19419 prefix = substr(line, 1, index(line, defundef) - 1)
19420 if (D_is_set[macro]) {
19421 # Preserve the white space surrounding the "#".
19422 print prefix "define", macro P[macro] D[macro]
19425 # Replace #undef with comments. This is necessary, for example,
19426 # in the case of _POSIX_SOURCE, which is predefined and required
19427 # on some systems where configure will not decide to define it.
19428 if (defundef == "undef") {
19429 print "/*", prefix defundef, macro, "*/"
19437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19438 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19439 fi # test -n "$CONFIG_HEADERS"
19442 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19447 :[FHLC]) ac_mode=$ac_tag; continue;;
19449 case $ac_mode$ac_tag in
19451 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19452 :[FH]-) ac_tag=-:-;;
19453 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19470 -) ac_f="$ac_tmp/stdin";;
19471 *) # Look for the file first in the build tree, then in the source tree
19472 # (if the path is not absolute). The absolute path cannot be DOS-style,
19473 # because $ac_f cannot contain `:'.
19477 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19479 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19481 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19482 as_fn_append ac_file_inputs " '$ac_f'"
19485 # Let's still pretend it is `configure' which instantiates (i.e., don't
19486 # use $as_me), people would be surprised to read:
19487 # /* config.h. Generated by config.status. */
19488 configure_input='Generated from '`
19489 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19491 if test x"$ac_file" != x-; then
19492 configure_input="$ac_file. $configure_input"
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19494 $as_echo "$as_me: creating $ac_file" >&6;}
19496 # Neutralize special characters interpreted by sed in replacement strings.
19497 case $configure_input in #(
19498 *\&* | *\|* | *\\* )
19499 ac_sed_conf_input=`$as_echo "$configure_input" |
19500 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19501 *) ac_sed_conf_input=$configure_input;;
19505 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19511 ac_dir=`$as_dirname -- "$ac_file" ||
19512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19513 X"$ac_file" : 'X\(//\)[^/]' \| \
19514 X"$ac_file" : 'X\(//\)$' \| \
19515 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19516 $as_echo X"$ac_file" |
19517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19521 /^X\(\/\/\)[^/].*/{
19534 as_dir="$ac_dir"; as_fn_mkdir_p
19538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19541 # A ".." for each directory in $ac_dir_suffix.
19542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19543 case $ac_top_builddir_sub in
19544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19548 ac_abs_top_builddir=$ac_pwd
19549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19550 # for backward compatibility:
19551 ac_top_builddir=$ac_top_build_prefix
19554 .) # We are building in place.
19556 ac_top_srcdir=$ac_top_builddir_sub
19557 ac_abs_top_srcdir=$ac_pwd ;;
19558 [\\/]* | ?:[\\/]* ) # Absolute name.
19559 ac_srcdir=$srcdir$ac_dir_suffix;
19560 ac_top_srcdir=$srcdir
19561 ac_abs_top_srcdir=$srcdir ;;
19562 *) # Relative name.
19563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19564 ac_top_srcdir=$ac_top_build_prefix$srcdir
19565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19577 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19578 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19580 ac_MKDIR_P=$MKDIR_P
19582 [\\/$]* | ?:[\\/]* ) ;;
19583 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19588 # If the template does not know about datarootdir, expand it.
19589 # FIXME: This hack should be removed a few years after 2.60.
19590 ac_datarootdir_hack=; ac_datarootdir_seen=
19601 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19602 *datarootdir*) ac_datarootdir_seen=yes;;
19603 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19605 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19608 ac_datarootdir_hack='
19609 s&@datadir@&$datadir&g
19610 s&@docdir@&$docdir&g
19611 s&@infodir@&$infodir&g
19612 s&@localedir@&$localedir&g
19613 s&@mandir@&$mandir&g
19614 s&\\\${datarootdir}&$datarootdir&g' ;;
19618 # Neutralize VPATH when `$srcdir' = `.'.
19619 # Shell code in configure.ac might set extrasub.
19620 # FIXME: do we really want to maintain this feature?
19621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19622 ac_sed_extra="$ac_vpsub
19625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19628 s|@configure_input@|$ac_sed_conf_input|;t t
19629 s&@top_builddir@&$ac_top_builddir_sub&;t t
19630 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19631 s&@srcdir@&$ac_srcdir&;t t
19632 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19633 s&@top_srcdir@&$ac_top_srcdir&;t t
19634 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19635 s&@builddir@&$ac_builddir&;t t
19636 s&@abs_builddir@&$ac_abs_builddir&;t t
19637 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19638 s&@INSTALL@&$ac_INSTALL&;t t
19639 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19640 $ac_datarootdir_hack
19642 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19643 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19645 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19646 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19647 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19648 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19650 which seems to be undefined. Please make sure it is defined" >&5
19651 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19652 which seems to be undefined. Please make sure it is defined" >&2;}
19654 rm -f "$ac_tmp/stdin"
19656 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19657 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19665 if test x"$ac_file" != x-; then
19667 $as_echo "/* $configure_input */" \
19668 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19669 } >"$ac_tmp/config.h" \
19670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19671 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19673 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19676 mv "$ac_tmp/config.h" "$ac_file" \
19677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19680 $as_echo "/* $configure_input */" \
19681 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19682 || as_fn_error $? "could not create -" "$LINENO" 5
19684 # Compute "$ac_file"'s index in $config_headers.
19687 for _am_header in $config_headers :; do
19688 case $_am_header in
19689 $_am_arg | $_am_arg:* )
19692 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19695 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19696 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19697 X"$_am_arg" : 'X\(//\)[^/]' \| \
19698 X"$_am_arg" : 'X\(//\)$' \| \
19699 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19700 $as_echo X"$_am_arg" |
19701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19705 /^X\(\/\/\)[^/].*/{
19717 s/.*/./; q'`/stamp-h$_am_stamp_count
19720 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19721 $as_echo "$as_me: executing $ac_file commands" >&6;}
19726 case $ac_file$ac_mode in
19727 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19728 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19729 # are listed without --file. Let's play safe and only enable the eval
19730 # if we detect the quoting.
19731 case $CONFIG_FILES in
19732 *\'*) eval set x "$CONFIG_FILES" ;;
19733 *) set x $CONFIG_FILES ;;
19738 # Strip MF so we end up with the name of the file.
19739 mf=`echo "$mf" | sed -e 's/:.*$//'`
19740 # Check whether this is an Automake generated Makefile or not.
19741 # We used to match only the files named `Makefile.in', but
19742 # some people rename them; so instead we look at the file content.
19743 # Grep'ing the first line is not enough: some people post-process
19744 # each Makefile.in and add a new line on top of each file to say so.
19745 # Grep'ing the whole file is not good either: AIX grep has a line
19746 # limit of 2048, but all sed's we know have understand at least 4000.
19747 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19748 dirpart=`$as_dirname -- "$mf" ||
19749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19750 X"$mf" : 'X\(//\)[^/]' \| \
19751 X"$mf" : 'X\(//\)$' \| \
19752 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19758 /^X\(\/\/\)[^/].*/{
19774 # Extract the definition of DEPDIR, am__include, and am__quote
19775 # from the Makefile without running `make'.
19776 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19777 test -z "$DEPDIR" && continue
19778 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19779 test -z "am__include" && continue
19780 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19781 # When using ansi2knr, U may be empty or an underscore; expand it
19782 U=`sed -n 's/^U = //p' < "$mf"`
19783 # Find all dependency output files, they are included files with
19784 # $(DEPDIR) in their names. We invoke sed twice because it is the
19785 # simplest approach to changing $(DEPDIR) to its actual value in the
19787 for file in `sed -n "
19788 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19789 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19790 # Make sure the directory exists.
19791 test -f "$dirpart/$file" && continue
19792 fdir=`$as_dirname -- "$file" ||
19793 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19794 X"$file" : 'X\(//\)[^/]' \| \
19795 X"$file" : 'X\(//\)$' \| \
19796 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19797 $as_echo X"$file" |
19798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19802 /^X\(\/\/\)[^/].*/{
19815 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19816 # echo "creating $dirpart/$file"
19817 echo '# dummy' > "$dirpart/$file"
19824 # See if we are running on zsh, and set the options which allow our
19825 # commands through without removal of \ escapes.
19826 if test -n "${ZSH_VERSION+set}" ; then
19827 setopt NO_GLOB_SUBST
19830 cfgfile="${ofile}T"
19831 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19834 cat <<_LT_EOF >> "$cfgfile"
19837 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19838 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19840 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19842 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19843 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19845 # Written by Gordon Matzigkeit, 1996
19847 # This file is part of GNU Libtool.
19849 # GNU Libtool is free software; you can redistribute it and/or
19850 # modify it under the terms of the GNU General Public License as
19851 # published by the Free Software Foundation; either version 2 of
19852 # the License, or (at your option) any later version.
19854 # As a special exception to the GNU General Public License,
19855 # if you distribute this file as part of a program or library that
19856 # is built using GNU Libtool, you may include this file under the
19857 # same distribution terms that you use for the rest of that program.
19859 # GNU Libtool is distributed in the hope that it will be useful,
19860 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19861 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19862 # GNU General Public License for more details.
19864 # You should have received a copy of the GNU General Public License
19865 # along with GNU Libtool; see the file COPYING. If not, a copy
19866 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19867 # obtained by writing to the Free Software Foundation, Inc.,
19868 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19871 # The names of the tagged configurations supported by this script.
19874 # ### BEGIN LIBTOOL CONFIG
19876 # Which release of libtool.m4 was used?
19877 macro_version=$macro_version
19878 macro_revision=$macro_revision
19880 # Whether or not to build static libraries.
19881 build_old_libs=$enable_static
19883 # Whether or not to build shared libraries.
19884 build_libtool_libs=$enable_shared
19886 # What type of objects to build.
19889 # Whether or not to optimize for fast installation.
19890 fast_install=$enable_fast_install
19892 # Shell to use when invoking shell scripts.
19895 # An echo program that protects backslashes.
19899 host_alias=$host_alias
19903 # The build system.
19904 build_alias=$build_alias
19908 # A sed program that does not truncate output.
19911 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19912 Xsed="\$SED -e 1s/^X//"
19914 # A grep program that handles long lines.
19920 # A literal string matcher.
19923 # A BSD- or MS-compatible name lister.
19926 # Whether we need soft or hard links.
19929 # What is the maximum length of a command?
19930 max_cmd_len=$max_cmd_len
19932 # Object file suffix (normally "o").
19935 # Executable file suffix (normally "").
19938 # whether the shell understands "unset".
19941 # turn spaces into newlines.
19944 # turn newlines into spaces.
19947 # convert \$build file names to \$host format.
19948 to_host_file_cmd=$lt_cv_to_host_file_cmd
19950 # convert \$build files to toolchain format.
19951 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19953 # An object symbol dumper.
19954 OBJDUMP=$lt_OBJDUMP
19956 # Method to check whether dependent libraries are shared objects.
19957 deplibs_check_method=$lt_deplibs_check_method
19959 # Command to use when deplibs_check_method = "file_magic".
19960 file_magic_cmd=$lt_file_magic_cmd
19962 # How to find potential files when deplibs_check_method = "file_magic".
19963 file_magic_glob=$lt_file_magic_glob
19965 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19966 want_nocaseglob=$lt_want_nocaseglob
19968 # DLL creation program.
19969 DLLTOOL=$lt_DLLTOOL
19971 # Command to associate shared and link libraries.
19972 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19977 # Flags to create an archive.
19978 AR_FLAGS=$lt_AR_FLAGS
19980 # How to feed a file listing to the archiver.
19981 archiver_list_spec=$lt_archiver_list_spec
19983 # A symbol stripping program.
19986 # Commands used to install an old-style archive.
19988 old_postinstall_cmds=$lt_old_postinstall_cmds
19989 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19991 # Whether to use a lock for old archive extraction.
19992 lock_old_archive_extraction=$lock_old_archive_extraction
19997 # LTCC compiler flags.
19998 LTCFLAGS=$lt_CFLAGS
20000 # Take the output of nm and produce a listing of raw symbols and C names.
20001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20003 # Transform the output of nm in a proper C declaration.
20004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20006 # Transform the output of nm in a C name address pair.
20007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20009 # Transform the output of nm in a C name address pair when lib prefix is needed.
20010 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20012 # Specify filename containing input files for \$NM.
20013 nm_file_list_spec=$lt_nm_file_list_spec
20015 # The root where to search for dependent libraries,and in which our libraries should be installed.
20016 lt_sysroot=$lt_sysroot
20018 # The name of the directory that contains temporary libtool files.
20021 # Used to examine libraries when file_magic_cmd begins with "file".
20022 MAGIC_CMD=$MAGIC_CMD
20024 # Must we lock files when doing compilation?
20025 need_locks=$lt_need_locks
20028 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20030 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20031 DSYMUTIL=$lt_DSYMUTIL
20033 # Tool to change global to local symbols on Mac OS X.
20036 # Tool to manipulate fat objects and archives on Mac OS X.
20039 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20042 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20043 OTOOL64=$lt_OTOOL64
20045 # Old archive suffix (normally "a").
20048 # Shared library suffix (normally ".so").
20049 shrext_cmds=$lt_shrext_cmds
20051 # The commands to extract the exported symbol list from a shared archive.
20052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20054 # Variables whose values should be saved in libtool wrapper scripts and
20055 # restored at link time.
20056 variables_saved_for_relink=$lt_variables_saved_for_relink
20058 # Do we need the "lib" prefix for modules?
20059 need_lib_prefix=$need_lib_prefix
20061 # Do we need a version for libraries?
20062 need_version=$need_version
20064 # Library versioning type.
20065 version_type=$version_type
20067 # Shared library runtime path variable.
20068 runpath_var=$runpath_var
20070 # Shared library path variable.
20071 shlibpath_var=$shlibpath_var
20073 # Is shlibpath searched before the hard-coded library search path?
20074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20076 # Format of library name prefix.
20077 libname_spec=$lt_libname_spec
20079 # List of archive names. First name is the real one, the rest are links.
20080 # The last name is the one that the linker finds with -lNAME
20081 library_names_spec=$lt_library_names_spec
20083 # The coded name of the library, if different from the real name.
20084 soname_spec=$lt_soname_spec
20086 # Permission mode override for installation of shared libraries.
20087 install_override_mode=$lt_install_override_mode
20089 # Command to use after installation of a shared archive.
20090 postinstall_cmds=$lt_postinstall_cmds
20092 # Command to use after uninstallation of a shared archive.
20093 postuninstall_cmds=$lt_postuninstall_cmds
20095 # Commands used to finish a libtool library installation in a directory.
20096 finish_cmds=$lt_finish_cmds
20098 # As "finish_cmds", except a single script fragment to be evaled but
20100 finish_eval=$lt_finish_eval
20102 # Whether we should hardcode library paths into libraries.
20103 hardcode_into_libs=$hardcode_into_libs
20105 # Compile-time system search path for libraries.
20106 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20108 # Run-time system search path for libraries.
20109 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20111 # Whether dlopen is supported.
20112 dlopen_support=$enable_dlopen
20114 # Whether dlopen of programs is supported.
20115 dlopen_self=$enable_dlopen_self
20117 # Whether dlopen of statically linked programs is supported.
20118 dlopen_self_static=$enable_dlopen_self_static
20120 # Commands to strip libraries.
20121 old_striplib=$lt_old_striplib
20122 striplib=$lt_striplib
20125 # The linker used to build libraries.
20128 # How to create reloadable object files.
20129 reload_flag=$lt_reload_flag
20130 reload_cmds=$lt_reload_cmds
20132 # Commands used to build an old-style archive.
20133 old_archive_cmds=$lt_old_archive_cmds
20135 # A language specific compiler.
20138 # Is the compiler the GNU compiler?
20141 # Compiler flag to turn off builtin functions.
20142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20144 # Additional compiler flags for building library objects.
20145 pic_flag=$lt_lt_prog_compiler_pic
20147 # How to pass a linker flag through the compiler.
20148 wl=$lt_lt_prog_compiler_wl
20150 # Compiler flag to prevent dynamic linking.
20151 link_static_flag=$lt_lt_prog_compiler_static
20153 # Does compiler simultaneously support -c and -o options?
20154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20156 # Whether or not to add -lc for building shared libraries.
20157 build_libtool_need_lc=$archive_cmds_need_lc
20159 # Whether or not to disallow shared libs when runtime libs are static.
20160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20162 # Compiler flag to allow reflexive dlopens.
20163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20165 # Compiler flag to generate shared objects directly from archives.
20166 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20168 # Whether the compiler copes with passing no objects directly.
20169 compiler_needs_object=$lt_compiler_needs_object
20171 # Create an old-style archive from a shared archive.
20172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20174 # Create a temporary old-style archive to link instead of a shared archive.
20175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20177 # Commands used to build a shared archive.
20178 archive_cmds=$lt_archive_cmds
20179 archive_expsym_cmds=$lt_archive_expsym_cmds
20181 # Commands used to build a loadable module if different from building
20182 # a shared archive.
20183 module_cmds=$lt_module_cmds
20184 module_expsym_cmds=$lt_module_expsym_cmds
20186 # Whether we are building with GNU ld or not.
20187 with_gnu_ld=$lt_with_gnu_ld
20189 # Flag that allows shared libraries with undefined symbols to be built.
20190 allow_undefined_flag=$lt_allow_undefined_flag
20192 # Flag that enforces no undefined symbols.
20193 no_undefined_flag=$lt_no_undefined_flag
20195 # Flag to hardcode \$libdir into a binary during linking.
20196 # This must work even if \$libdir does not exist
20197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20199 # If ld is used when linking, flag to hardcode \$libdir into a binary
20200 # during linking. This must work even if \$libdir does not exist.
20201 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20203 # Whether we need a single "-rpath" flag with a separated argument.
20204 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20206 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20207 # DIR into the resulting binary.
20208 hardcode_direct=$hardcode_direct
20210 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20211 # DIR into the resulting binary and the resulting library dependency is
20212 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20213 # library is relocated.
20214 hardcode_direct_absolute=$hardcode_direct_absolute
20216 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20217 # into the resulting binary.
20218 hardcode_minus_L=$hardcode_minus_L
20220 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20221 # into the resulting binary.
20222 hardcode_shlibpath_var=$hardcode_shlibpath_var
20224 # Set to "yes" if building a shared library automatically hardcodes DIR
20225 # into the library and all subsequent libraries and executables linked
20227 hardcode_automatic=$hardcode_automatic
20229 # Set to yes if linker adds runtime paths of dependent libraries
20230 # to runtime path list.
20231 inherit_rpath=$inherit_rpath
20233 # Whether libtool must link a program against all its dependency libraries.
20234 link_all_deplibs=$link_all_deplibs
20236 # Set to "yes" if exported symbols are required.
20237 always_export_symbols=$always_export_symbols
20239 # The commands to list exported symbols.
20240 export_symbols_cmds=$lt_export_symbols_cmds
20242 # Symbols that should not be listed in the preloaded symbols.
20243 exclude_expsyms=$lt_exclude_expsyms
20245 # Symbols that must always be exported.
20246 include_expsyms=$lt_include_expsyms
20248 # Commands necessary for linking programs (against libraries) with templates.
20249 prelink_cmds=$lt_prelink_cmds
20251 # Commands necessary for finishing linking programs.
20252 postlink_cmds=$lt_postlink_cmds
20254 # Specify filename containing input files.
20255 file_list_spec=$lt_file_list_spec
20257 # How to hardcode a shared library path into an executable.
20258 hardcode_action=$hardcode_action
20260 # ### END LIBTOOL CONFIG
20266 cat <<\_LT_EOF >> "$cfgfile"
20267 # AIX sometimes has problems with the GCC collect2 program. For some
20268 # reason, if we set the COLLECT_NAMES environment variable, the problems
20269 # vanish in a puff of smoke.
20270 if test "X${COLLECT_NAMES+set}" != Xset; then
20272 export COLLECT_NAMES
20279 ltmain="$ac_aux_dir/ltmain.sh"
20282 # We use sed instead of cat because bash on DJGPP gets confused if
20283 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20284 # text mode, it properly converts lines to CR/LF. This bash problem
20285 # is reportedly fixed, but why not run on old versions too?
20286 sed '$q' "$ltmain" >> "$cfgfile" \
20287 || (rm -f "$cfgfile"; exit 1)
20289 if test x"$xsi_shell" = xyes; then
20290 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20294 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20295 \ * ) func_dirname_result="${3}" ;;\
20297 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20298 && mv -f "$cfgfile.tmp" "$cfgfile" \
20299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20300 test 0 -eq $? || _lt_function_replace_fail=:
20303 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20306 \ func_basename_result="${1##*/}"\
20307 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20308 && mv -f "$cfgfile.tmp" "$cfgfile" \
20309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20310 test 0 -eq $? || _lt_function_replace_fail=:
20313 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20314 func_dirname_and_basename ()\
20317 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20318 \ * ) func_dirname_result="${3}" ;;\
20320 \ func_basename_result="${1##*/}"\
20321 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20322 && mv -f "$cfgfile.tmp" "$cfgfile" \
20323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20324 test 0 -eq $? || _lt_function_replace_fail=:
20327 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20330 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20331 \ # positional parameters, so assign one to ordinary parameter first.\
20332 \ func_stripname_result=${3}\
20333 \ func_stripname_result=${func_stripname_result#"${1}"}\
20334 \ func_stripname_result=${func_stripname_result%"${2}"}\
20335 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20336 && mv -f "$cfgfile.tmp" "$cfgfile" \
20337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20338 test 0 -eq $? || _lt_function_replace_fail=:
20341 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20342 func_split_long_opt ()\
20344 \ func_split_long_opt_name=${1%%=*}\
20345 \ func_split_long_opt_arg=${1#*=}\
20346 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20347 && mv -f "$cfgfile.tmp" "$cfgfile" \
20348 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20349 test 0 -eq $? || _lt_function_replace_fail=:
20352 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20353 func_split_short_opt ()\
20355 \ func_split_short_opt_arg=${1#??}\
20356 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20357 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20358 && mv -f "$cfgfile.tmp" "$cfgfile" \
20359 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20360 test 0 -eq $? || _lt_function_replace_fail=:
20363 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20367 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20368 \ *) func_lo2o_result=${1} ;;\
20370 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20371 && mv -f "$cfgfile.tmp" "$cfgfile" \
20372 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20373 test 0 -eq $? || _lt_function_replace_fail=:
20376 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20379 func_xform_result=${1%.*}.lo\
20380 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20381 && mv -f "$cfgfile.tmp" "$cfgfile" \
20382 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20383 test 0 -eq $? || _lt_function_replace_fail=:
20386 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20389 func_arith_result=$(( $* ))\
20390 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20391 && mv -f "$cfgfile.tmp" "$cfgfile" \
20392 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20393 test 0 -eq $? || _lt_function_replace_fail=:
20396 sed -e '/^func_len ()$/,/^} # func_len /c\
20399 func_len_result=${#1}\
20400 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20401 && mv -f "$cfgfile.tmp" "$cfgfile" \
20402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20403 test 0 -eq $? || _lt_function_replace_fail=:
20407 if test x"$lt_shell_append" = xyes; then
20408 sed -e '/^func_append ()$/,/^} # func_append /c\
20411 eval "${1}+=\\${2}"\
20412 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20413 && mv -f "$cfgfile.tmp" "$cfgfile" \
20414 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20415 test 0 -eq $? || _lt_function_replace_fail=:
20418 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20419 func_append_quoted ()\
20421 \ func_quote_for_eval "${2}"\
20422 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20423 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20424 && mv -f "$cfgfile.tmp" "$cfgfile" \
20425 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20426 test 0 -eq $? || _lt_function_replace_fail=:
20429 # Save a `func_append' function call where possible by direct use of '+='
20430 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20431 && mv -f "$cfgfile.tmp" "$cfgfile" \
20432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20433 test 0 -eq $? || _lt_function_replace_fail=:
20435 # Save a `func_append' function call even when '+=' is not available
20436 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20437 && mv -f "$cfgfile.tmp" "$cfgfile" \
20438 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20439 test 0 -eq $? || _lt_function_replace_fail=:
20442 if test x"$_lt_function_replace_fail" = x":"; then
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20444 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20448 mv -f "$cfgfile" "$ofile" ||
20449 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20453 "po-directories":C)
20454 for ac_file in $CONFIG_FILES; do
20455 # Support "outfile[:infile[:infile...]]"
20457 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20459 # PO directories have a Makefile.in generated from Makefile.in.in.
20460 case "$ac_file" in */Makefile.in)
20461 # Adjust a relative srcdir.
20462 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20463 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20464 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20465 # In autoconf-2.13 it is called $ac_given_srcdir.
20466 # In autoconf-2.50 it is called $srcdir.
20467 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20468 case "$ac_given_srcdir" in
20469 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20470 /*) top_srcdir="$ac_given_srcdir" ;;
20471 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20473 # Treat a directory as a PO directory if and only if it has a
20474 # POTFILES.in file. This allows packages to have multiple PO
20475 # directories under different names or in different locations.
20476 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20477 rm -f "$ac_dir/POTFILES"
20478 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20479 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20480 POMAKEFILEDEPS="POTFILES.in"
20481 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
20482 # on $ac_dir but don't depend on user-specified configuration
20484 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20485 # The LINGUAS file contains the set of available languages.
20486 if test -n "$OBSOLETE_ALL_LINGUAS"; then
20487 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20489 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20490 # Hide the ALL_LINGUAS assigment from automake < 1.5.
20491 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20492 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20494 # The set of available languages was given in configure.in.
20495 # Hide the ALL_LINGUAS assigment from automake < 1.5.
20496 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20499 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
20500 # Compute UPDATEPOFILES
20501 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
20502 # Compute DUMMYPOFILES
20503 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
20505 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
20506 case "$ac_given_srcdir" in
20508 *) srcdirpre='$(srcdir)/' ;;
20514 for lang in $ALL_LINGUAS; do
20515 POFILES="$POFILES $srcdirpre$lang.po"
20516 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20517 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20518 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20520 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20521 # environment variable.
20523 if test -n "$ALL_LINGUAS"; then
20524 for presentlang in $ALL_LINGUAS; do
20526 if test "%UNSET%" != "$LINGUAS"; then
20527 desiredlanguages="$LINGUAS"
20529 desiredlanguages="$ALL_LINGUAS"
20531 for desiredlang in $desiredlanguages; do
20532 # Use the presentlang catalog if desiredlang is
20533 # a. equal to presentlang, or
20534 # b. a variant of presentlang (because in this case,
20535 # presentlang can be used as a fallback for messages
20536 # which are not translated in the desiredlang catalog).
20537 case "$desiredlang" in
20538 "$presentlang"*) useit=yes;;
20541 if test $useit = yes; then
20542 INST_LINGUAS="$INST_LINGUAS $presentlang"
20547 if test -n "$INST_LINGUAS"; then
20548 for lang in $INST_LINGUAS; do
20549 CATALOGS="$CATALOGS $lang.gmo"
20552 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20553 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
20554 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20555 if test -f "$f"; then
20557 *.orig | *.bak | *~) ;;
20558 *) cat "$f" >> "$ac_dir/Makefile" ;;
20573 ac_clean_files=$ac_clean_files_save
20575 test $ac_write_fail = 0 ||
20576 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20579 # configure is writing to config.log, and then calls config.status.
20580 # config.status does its own redirection, appending to config.log.
20581 # Unfortunately, on DOS this fails, as config.log is still kept open
20582 # by configure, so config.status won't be able to write to it; its
20583 # output is simply discarded. So we exec the FD to /dev/null,
20584 # effectively closing config.log, so it can be properly (re)opened and
20585 # appended to by config.status. When coming back to configure, we
20586 # need to make the FD available again.
20587 if test "$no_create" != yes; then
20589 ac_config_status_args=
20590 test "$silent" = yes &&
20591 ac_config_status_args="$ac_config_status_args --quiet"
20593 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20595 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20596 # would make configure fail if this is the last instruction.
20597 $ac_cs_success || as_fn_exit 1
20599 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20601 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20606 echo "Cogl - $COGL_1_VERSION/$COGL_VERSION (${COGL_RELEASE_STATUS})"
20611 echo " Prefix: ${prefix}"
20615 echo " • Features:"
20616 echo " Drivers: ${enabled_drivers}"
20617 if test "x$GL_LIBRARY_DIRECTLY_LINKED" != xyes; then :
20618 for driver in $enabled_drivers; do
20619 driver=`echo $driver | tr "gles" "GLES"`
20620 libname=`eval echo \\$COGL_${driver}_LIBNAME`
20621 echo " Library name for $driver: $libname"
20624 echo " GL Window System APIs:${GL_WINSYS_APIS}"
20625 if test "x$SUPPORT_EGL" = "xyes"; then
20626 echo " EGL Platforms:${EGL_PLATFORMS}"
20627 echo " Wayland compositor support: ${enable_wayland_egl_server}"
20629 echo " Image backend: ${COGL_IMAGE_BACKEND}"
20630 echo " Cogl Pango: ${enable_cogl_pango}"
20631 echo " Profiling: ${enable_profile}"
20633 # Compiler/Debug related flags
20635 echo " • Compiler options:"
20636 echo " Cogl debug: ${enable_debug}"
20637 echo " Enable deprecated symbols: ${enable_deprecated}"
20638 echo " Compiler flags: ${CFLAGS} ${COGL_EXTRA_CFLAGS}"
20639 echo " Linker flags: ${LDFLAGS} ${COGL_EXTRA_LDFLAGS}"
20644 echo " Build API reference: ${enable_gtk_doc}"
20645 echo " Build introspection data: ${enable_introspection}"
20649 # General warning about experimental features
20650 if test "x$EXPERIMENTAL_CONFIG" = "xyes"; then
20652 echo "☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠"
20655 echo " The stability of your build might be affected by one or more"
20656 echo " experimental configuration options."
20658 echo " experimental options: $EXPERIMENTAL_OPTIONS"
20659 echo "☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠"