2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glib 2.32.3.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=glib
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
573 PACKAGE_TARNAME='glib'
574 PACKAGE_VERSION='2.32.3'
575 PACKAGE_STRING='glib 2.32.3'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=glib'
579 ac_unique_file="glib/glib.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
635 ENABLE_SYSTEMTAP_FALSE
636 ENABLE_SYSTEMTAP_TRUE
645 GTK_DOC_USE_REBASE_FALSE
646 GTK_DOC_USE_REBASE_TRUE
647 GTK_DOC_USE_LIBTOOL_FALSE
648 GTK_DOC_USE_LIBTOOL_TRUE
649 GTK_DOC_BUILD_PDF_FALSE
650 GTK_DOC_BUILD_PDF_TRUE
651 GTK_DOC_BUILD_HTML_FALSE
652 GTK_DOC_BUILD_HTML_TRUE
661 GLIB_COMPILE_RESOURCES
664 CROSS_COMPILING_FALSE
671 USE_SYSTEM_PCRE_FALSE
676 G_THREAD_LIBS_FOR_GTHREAD
679 GTHREAD_COMPILE_IMPL_DEFINES
682 ENABLE_TIMELOOP_FALSE
701 G_MODULE_BROKEN_RTLD_GLOBAL
702 G_MODULE_HAVE_DLERROR
709 HAVE_GOOD_PRINTF_FALSE
710 HAVE_GOOD_PRINTF_TRUE
714 HAVE_SUNSTUDIO_VISIBILITY_FALSE
715 HAVE_SUNSTUDIO_VISIBILITY_TRUE
716 HAVE_GNUC_VISIBILITY_FALSE
717 HAVE_GNUC_VISIBILITY_TRUE
719 OS_WIN32_AND_DLL_COMPILATION_FALSE
720 OS_WIN32_AND_DLL_COMPILATION_TRUE
721 GLIB_WIN32_STATIC_COMPILATION_DEFINE
759 CONFIG_STATUS_DEPENDENCIES
789 HAVE_GLIB_RUNTIME_LIBDIR_FALSE
790 HAVE_GLIB_RUNTIME_LIBDIR_TRUE
791 ABS_GLIB_RUNTIME_LIBDIR
796 LIBTOOL_EXPORT_OPTIONS
797 MS_LIB_AVAILABLE_FALSE
798 MS_LIB_AVAILABLE_TRUE
860 MAINTAINER_MODE_FALSE
870 INSTALL_STRIP_PROGRAM
912 program_transform_name
925 enable_option_checking
926 enable_maintainer_mode
928 enable_dependency_tracking
944 enable_included_printf
959 with_tapset_install_dir
963 ac_precious_vars='build_alias
994 # Initialize some variables set by options.
996 ac_init_version=false
997 ac_unrecognized_opts=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1008 program_transform_name=s,x,x,
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033 infodir='${datarootdir}/info'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1046 # If the previous option needs an argument, assign it.
1047 if test -n "$ac_prev"; then
1048 eval $ac_prev=\$ac_option
1054 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1059 # Accept the important Cygnus configure options, so we can diagnose typos.
1061 case $ac_dashdash$ac_option in
1065 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1067 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1068 bindir=$ac_optarg ;;
1070 -build | --build | --buil | --bui | --bu)
1071 ac_prev=build_alias ;;
1072 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1073 build_alias=$ac_optarg ;;
1075 -cache-file | --cache-file | --cache-fil | --cache-fi \
1076 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1077 ac_prev=cache_file ;;
1078 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1079 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1080 cache_file=$ac_optarg ;;
1082 --config-cache | -C)
1083 cache_file=config.cache ;;
1085 -datadir | --datadir | --datadi | --datad)
1087 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1088 datadir=$ac_optarg ;;
1090 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1091 | --dataroo | --dataro | --datar)
1092 ac_prev=datarootdir ;;
1093 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1094 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1095 datarootdir=$ac_optarg ;;
1097 -disable-* | --disable-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid feature name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "enable_$ac_useropt"
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval enable_$ac_useropt=no ;;
1113 -docdir | --docdir | --docdi | --doc | --do)
1115 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1116 docdir=$ac_optarg ;;
1118 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1120 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1121 dvidir=$ac_optarg ;;
1123 -enable-* | --enable-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid feature name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1132 "enable_$ac_useropt"
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1137 eval enable_$ac_useropt=\$ac_optarg ;;
1139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1141 | --exec | --exe | --ex)
1142 ac_prev=exec_prefix ;;
1143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1145 | --exec=* | --exe=* | --ex=*)
1146 exec_prefix=$ac_optarg ;;
1148 -gas | --gas | --ga | --g)
1149 # Obsolete; use --with-gas.
1152 -help | --help | --hel | --he | -h)
1153 ac_init_help=long ;;
1154 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1155 ac_init_help=recursive ;;
1156 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1157 ac_init_help=short ;;
1159 -host | --host | --hos | --ho)
1160 ac_prev=host_alias ;;
1161 -host=* | --host=* | --hos=* | --ho=*)
1162 host_alias=$ac_optarg ;;
1164 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168 htmldir=$ac_optarg ;;
1170 -includedir | --includedir | --includedi | --included | --include \
1171 | --includ | --inclu | --incl | --inc)
1172 ac_prev=includedir ;;
1173 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1174 | --includ=* | --inclu=* | --incl=* | --inc=*)
1175 includedir=$ac_optarg ;;
1177 -infodir | --infodir | --infodi | --infod | --info | --inf)
1179 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1180 infodir=$ac_optarg ;;
1182 -libdir | --libdir | --libdi | --libd)
1184 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1185 libdir=$ac_optarg ;;
1187 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1188 | --libexe | --libex | --libe)
1189 ac_prev=libexecdir ;;
1190 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1191 | --libexe=* | --libex=* | --libe=*)
1192 libexecdir=$ac_optarg ;;
1194 -localedir | --localedir | --localedi | --localed | --locale)
1195 ac_prev=localedir ;;
1196 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1197 localedir=$ac_optarg ;;
1199 -localstatedir | --localstatedir | --localstatedi | --localstated \
1200 | --localstate | --localstat | --localsta | --localst | --locals)
1201 ac_prev=localstatedir ;;
1202 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1203 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1204 localstatedir=$ac_optarg ;;
1206 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1209 mandir=$ac_optarg ;;
1211 -nfp | --nfp | --nf)
1212 # Obsolete; use --without-fp.
1215 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1216 | --no-cr | --no-c | -n)
1219 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1220 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1223 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1224 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1225 | --oldin | --oldi | --old | --ol | --o)
1226 ac_prev=oldincludedir ;;
1227 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1228 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1229 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1230 oldincludedir=$ac_optarg ;;
1232 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1235 prefix=$ac_optarg ;;
1237 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1238 | --program-pre | --program-pr | --program-p)
1239 ac_prev=program_prefix ;;
1240 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1241 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1242 program_prefix=$ac_optarg ;;
1244 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1245 | --program-suf | --program-su | --program-s)
1246 ac_prev=program_suffix ;;
1247 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1248 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1249 program_suffix=$ac_optarg ;;
1251 -program-transform-name | --program-transform-name \
1252 | --program-transform-nam | --program-transform-na \
1253 | --program-transform-n | --program-transform- \
1254 | --program-transform | --program-transfor \
1255 | --program-transfo | --program-transf \
1256 | --program-trans | --program-tran \
1257 | --progr-tra | --program-tr | --program-t)
1258 ac_prev=program_transform_name ;;
1259 -program-transform-name=* | --program-transform-name=* \
1260 | --program-transform-nam=* | --program-transform-na=* \
1261 | --program-transform-n=* | --program-transform-=* \
1262 | --program-transform=* | --program-transfor=* \
1263 | --program-transfo=* | --program-transf=* \
1264 | --program-trans=* | --program-tran=* \
1265 | --progr-tra=* | --program-tr=* | --program-t=*)
1266 program_transform_name=$ac_optarg ;;
1268 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1271 pdfdir=$ac_optarg ;;
1273 -psdir | --psdir | --psdi | --psd | --ps)
1275 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1279 | -silent | --silent | --silen | --sile | --sil)
1282 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1284 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1286 sbindir=$ac_optarg ;;
1288 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1289 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1290 | --sharedst | --shareds | --shared | --share | --shar \
1292 ac_prev=sharedstatedir ;;
1293 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1294 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1295 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1297 sharedstatedir=$ac_optarg ;;
1299 -site | --site | --sit)
1301 -site=* | --site=* | --sit=*)
1304 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1306 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1307 srcdir=$ac_optarg ;;
1309 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1310 | --syscon | --sysco | --sysc | --sys | --sy)
1311 ac_prev=sysconfdir ;;
1312 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1313 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1314 sysconfdir=$ac_optarg ;;
1316 -target | --target | --targe | --targ | --tar | --ta | --t)
1317 ac_prev=target_alias ;;
1318 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1319 target_alias=$ac_optarg ;;
1321 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1324 -version | --version | --versio | --versi | --vers | -V)
1325 ac_init_version=: ;;
1328 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error $? "invalid package name: $ac_useropt"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1341 eval with_$ac_useropt=\$ac_optarg ;;
1343 -without-* | --without-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error $? "invalid package name: $ac_useropt"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1357 eval with_$ac_useropt=no ;;
1360 # Obsolete; use --with-x.
1363 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1364 | --x-incl | --x-inc | --x-in | --x-i)
1365 ac_prev=x_includes ;;
1366 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1367 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1368 x_includes=$ac_optarg ;;
1370 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1371 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1372 ac_prev=x_libraries ;;
1373 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1374 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1375 x_libraries=$ac_optarg ;;
1377 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1378 Try \`$0 --help' for more information"
1382 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1383 # Reject names that are not valid shell variable names.
1384 case $ac_envvar in #(
1385 '' | [0-9]* | *[!_$as_cr_alnum]* )
1386 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1388 eval $ac_envvar=\$ac_optarg
1389 export $ac_envvar ;;
1392 # FIXME: should be removed in autoconf 3.0.
1393 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1395 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1396 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1402 if test -n "$ac_prev"; then
1403 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1404 as_fn_error $? "missing argument to $ac_option"
1407 if test -n "$ac_unrecognized_opts"; then
1408 case $enable_option_checking in
1410 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1411 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415 # Check all directory arguments for consistency.
1416 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1417 datadir sysconfdir sharedstatedir localstatedir includedir \
1418 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1419 libdir localedir mandir
1421 eval ac_val=\$$ac_var
1422 # Remove trailing slashes.
1425 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1426 eval $ac_var=\$ac_val;;
1428 # Be sure to have absolute directory names.
1430 [\\/$]* | ?:[\\/]* ) continue;;
1431 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1433 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1436 # There might be people who depend on the old broken behavior: `$host'
1437 # used to hold the argument of --host etc.
1438 # FIXME: To remove some day.
1441 target=$target_alias
1443 # FIXME: To remove some day.
1444 if test "x$host_alias" != x; then
1445 if test "x$build_alias" = x; then
1446 cross_compiling=maybe
1447 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1448 If a cross compiler is detected then cross compile mode will be used" >&2
1449 elif test "x$build_alias" != "x$host_alias"; then
1455 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1457 test "$silent" = yes && exec 6>/dev/null
1460 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1461 ac_ls_di=`ls -di .` &&
1462 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1463 as_fn_error $? "working directory cannot be determined"
1464 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1465 as_fn_error $? "pwd does not report name of working directory"
1468 # Find the source files, if location was not specified.
1469 if test -z "$srcdir"; then
1470 ac_srcdir_defaulted=yes
1471 # Try the directory containing this script, then the parent directory.
1472 ac_confdir=`$as_dirname -- "$as_myself" ||
1473 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1474 X"$as_myself" : 'X\(//\)[^/]' \| \
1475 X"$as_myself" : 'X\(//\)$' \| \
1476 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1477 $as_echo X"$as_myself" |
1478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496 if test ! -r "$srcdir/$ac_unique_file"; then
1500 ac_srcdir_defaulted=no
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1504 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1506 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1508 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1510 # When building in place, set srcdir=.
1511 if test "$ac_abs_confdir" = "$ac_pwd"; then
1514 # Remove unnecessary trailing slashes from srcdir.
1515 # Double slashes in file names in object file debugging info
1516 # mess up M-x gdb in Emacs.
1518 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520 for ac_var in $ac_precious_vars; do
1521 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_env_${ac_var}_value=\$${ac_var}
1523 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1524 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1528 # Report the --help message.
1530 if test "$ac_init_help" = "long"; then
1531 # Omit some internal or obsolete options to make the list less imposing.
1532 # This message is too long to be a string in the A/UX 3.1 sh.
1534 \`configure' configures glib 2.32.3 to adapt to many kinds of systems.
1536 Usage: $0 [OPTION]... [VAR=VALUE]...
1538 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1539 VAR=VALUE. See below for descriptions of some of the useful variables.
1541 Defaults for the options are specified in brackets.
1544 -h, --help display this help and exit
1545 --help=short display options specific to this package
1546 --help=recursive display the short help of all the included packages
1547 -V, --version display version information and exit
1548 -q, --quiet, --silent do not print \`checking ...' messages
1549 --cache-file=FILE cache test results in FILE [disabled]
1550 -C, --config-cache alias for \`--cache-file=config.cache'
1551 -n, --no-create do not create output files
1552 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1554 Installation directories:
1555 --prefix=PREFIX install architecture-independent files in PREFIX
1556 [$ac_default_prefix]
1557 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1560 By default, \`make install' will install all the files in
1561 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1562 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1563 for instance \`--prefix=\$HOME'.
1565 For better control, use the options below.
1567 Fine tuning of the installation directories:
1568 --bindir=DIR user executables [EPREFIX/bin]
1569 --sbindir=DIR system admin executables [EPREFIX/sbin]
1570 --libexecdir=DIR program executables [EPREFIX/libexec]
1571 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1572 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1573 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1574 --libdir=DIR object code libraries [EPREFIX/lib]
1575 --includedir=DIR C header files [PREFIX/include]
1576 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1577 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1578 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1579 --infodir=DIR info documentation [DATAROOTDIR/info]
1580 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1581 --mandir=DIR man documentation [DATAROOTDIR/man]
1582 --docdir=DIR documentation root [DATAROOTDIR/doc/glib]
1583 --htmldir=DIR html documentation [DOCDIR]
1584 --dvidir=DIR dvi documentation [DOCDIR]
1585 --pdfdir=DIR pdf documentation [DOCDIR]
1586 --psdir=DIR ps documentation [DOCDIR]
1592 --program-prefix=PREFIX prepend PREFIX to installed program names
1593 --program-suffix=SUFFIX append SUFFIX to installed program names
1594 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1597 --build=BUILD configure for building on BUILD [guessed]
1598 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1602 if test -n "$ac_init_help"; then
1603 case $ac_init_help in
1604 short | recursive ) echo "Configuration of glib 2.32.3:";;
1609 --disable-option-checking ignore unrecognized --enable/--with options
1610 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1611 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1612 --disable-maintainer-mode disable make rules and dependencies not useful
1613 (and sometimes confusing) to the casual installer
1614 --enable-silent-rules less verbose build output (undo: `make V=1')
1615 --disable-silent-rules verbose build output (undo: `make V=0')
1616 --disable-dependency-tracking speeds up one-time build
1617 --enable-dependency-tracking do not reject slow dependency extractors
1618 --enable-debug=[no/minimum/yes]
1619 turn on debugging [default=minimum]
1620 --enable-gc-friendly turn on garbage collector friendliness [default=no]
1621 --disable-mem-pools disable all glib memory pools
1622 --disable-rebuilds disable all source autogeneration rules
1623 --disable-largefile omit support for large files
1624 --enable-iconv-cache=[yes/no/auto]
1625 cache iconv descriptors [default=auto]
1626 --enable-static[=PKGS] build static libraries [default=no]
1627 --enable-shared[=PKGS] build shared libraries [default=yes]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --enable-included-printf
1632 use included printf [default=auto]
1633 --disable-selinux build without selinux support
1634 --disable-fam don't use fam for file system monitoring
1635 --disable-xattr build without xattr support
1636 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1637 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1638 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1639 --enable-man regenerate man pages from Docbook [default=no]
1640 --enable-dtrace include tracing support for dtrace
1641 --enable-systemtap include tracing support for systemtap
1642 --enable-gcov enable coverage testing with gcov
1643 --disable-Bsymbolic avoid linking with -Bsymbolic
1646 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1647 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1648 --with-runtime-libdir=RELPATH
1649 install runtime libraries relative to libdir
1650 --with-libiconv=[no/gnu/native]
1651 use the libiconv library
1652 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1654 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1655 --with-sysroot=DIR Search for dependent libraries within DIR
1656 (or the compiler's sysroot if not specified).
1657 --with-gio-module-dir=DIR
1658 load gio modules from this directory
1659 [LIBDIR/gio/modules]
1660 --with-threads=[posix/win32]
1661 specify a thread implementation to use
1662 --with-pcre=[internal/system]
1663 whether to use system PCRE [default=internal]
1664 --with-html-dir=PATH path to installed docs
1665 --with-xml-catalog=CATALOG
1666 path to xml catalog to use
1667 --with-tapset-install-dir=DIR
1668 path where systemtap tapsets are installed
1669 [DATADIR/systemtap/tapset]
1671 Some influential environment variables:
1672 CC C compiler command
1673 CFLAGS C compiler flags
1674 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1675 nonstandard directory <lib dir>
1676 LIBS libraries to pass to the linker, e.g. -l<library>
1677 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1678 you have headers in a nonstandard directory <include dir>
1680 CXX C++ compiler command
1681 CXXFLAGS C++ compiler flags
1682 PKG_CONFIG path to pkg-config utility
1684 directories to add to pkg-config's search path
1686 path overriding pkg-config's built-in search path
1687 PYTHON the Python interpreter
1688 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1689 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1691 C compiler flags for LIBFFI, overriding pkg-config
1692 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1693 CXXCPP C++ preprocessor
1695 C compiler flags for LIBELF, overriding pkg-config
1696 LIBELF_LIBS linker flags for LIBELF, overriding pkg-config
1697 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1698 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1700 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1702 linker flags for GTKDOC_DEPS, overriding pkg-config
1704 C compiler flags for DBUS1, overriding pkg-config
1705 DBUS1_LIBS linker flags for DBUS1, overriding pkg-config
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1710 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
1715 if test "$ac_init_help" = "recursive"; then
1716 # If there are subdirs, report their specific --help.
1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718 test -d "$ac_dir" ||
1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727 # A ".." for each directory in $ac_dir_suffix.
1728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729 case $ac_top_builddir_sub in
1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1740 .) # We are building in place.
1742 ac_top_srcdir=$ac_top_builddir_sub
1743 ac_abs_top_srcdir=$ac_pwd ;;
1744 [\\/]* | ?:[\\/]* ) # Absolute name.
1745 ac_srcdir=$srcdir$ac_dir_suffix;
1746 ac_top_srcdir=$srcdir
1747 ac_abs_top_srcdir=$srcdir ;;
1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750 ac_top_srcdir=$ac_top_build_prefix$srcdir
1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755 cd "$ac_dir" || { ac_status=$?; continue; }
1756 # Check for guested configure.
1757 if test -f "$ac_srcdir/configure.gnu"; then
1759 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760 elif test -f "$ac_srcdir/configure"; then
1762 $SHELL "$ac_srcdir/configure" --help=recursive
1764 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1766 cd "$ac_pwd" || { ac_status=$?; break; }
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1773 glib configure 2.32.3
1774 generated by GNU Autoconf 2.68
1776 Copyright (C) 2010 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext; then :
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1823 } # ac_fn_c_try_compile
1825 # ac_fn_c_try_cpp LINENO
1826 # ----------------------
1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_cpp conftest.$ac_ext"
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } > conftest.i && {
1847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1862 # ac_fn_cxx_try_compile LINENO
1863 # ----------------------------
1864 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_compile ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext
1869 if { { ac_try="$ac_compile"
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_compile") 2>conftest.err
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest.$ac_objext; then :
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1898 } # ac_fn_cxx_try_compile
1900 # ac_fn_c_try_link LINENO
1901 # -----------------------
1902 # Try to link conftest.$ac_ext, and return whether this succeeded.
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 rm -f conftest.$ac_objext conftest$ac_exeext
1907 if { { ac_try="$ac_link"
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_link") 2>conftest.err
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && {
1923 test -z "$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1925 } && test -s conftest$ac_exeext && {
1926 test "$cross_compiling" = yes ||
1927 $as_test_x conftest$ac_exeext
1931 $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1936 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1937 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1938 # interfere with the next link command; also delete a directory that is
1939 # left behind by Apple's compiler. We do this before executing the actions.
1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status $ac_retval
1944 } # ac_fn_c_try_link
1946 # ac_fn_c_check_func LINENO FUNC VAR
1947 # ----------------------------------
1948 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1949 ac_fn_c_check_func ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1961 #define $2 innocuous_$2
1963 /* System header to define __stub macros and hopefully few prototypes,
1964 which can conflict with char $2 (); below.
1965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1966 <limits.h> exists even on freestanding compilers. */
1969 # include <limits.h>
1971 # include <assert.h>
1976 /* Override any GCC internal prototype to avoid an error.
1977 Use char because int might match the return type of a GCC
1978 builtin and then its argument prototype would still apply. */
1983 /* The GNU C library defines this for functions which it implements
1984 to always fail with ENOSYS. Some functions are actually named
1985 something starting with __ and the normal name is an alias. */
1986 #if defined __stub_$2 || defined __stub___$2
1998 if ac_fn_c_try_link "$LINENO"; then :
2003 rm -f core conftest.err conftest.$ac_objext \
2004 conftest$ac_exeext conftest.$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 } # ac_fn_c_check_func
2013 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2014 # -------------------------------------------------------
2015 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2016 # the include files in INCLUDES and setting the cache variable VAR
2018 ac_fn_c_check_header_mongrel ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if eval \${$3+:} false; then :
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2031 # Is the header compilable?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2033 $as_echo_n "checking $2 usability... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_header_compiler=yes
2042 ac_header_compiler=no
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2046 $as_echo "$ac_header_compiler" >&6; }
2048 # Is the header present?
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2050 $as_echo_n "checking $2 presence... " >&6; }
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2055 if ac_fn_c_try_cpp "$LINENO"; then :
2056 ac_header_preproc=yes
2058 ac_header_preproc=no
2060 rm -f conftest.err conftest.i conftest.$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2062 $as_echo "$ac_header_preproc" >&6; }
2064 # So? What about this header?
2065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2068 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2074 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2076 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2078 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2080 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083 ( $as_echo "## ------------------------------------------------------------------- ##
2084 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib ##
2085 ## ------------------------------------------------------------------- ##"
2086 ) | sed "s/^/$as_me: WARNING: /" >&2
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval \${$3+:} false; then :
2092 $as_echo_n "(cached) " >&6
2094 eval "$3=\$ac_header_compiler"
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 } # ac_fn_c_check_header_mongrel
2104 # ac_fn_c_try_run LINENO
2105 # ----------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2107 # that executables *can* be run.
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if { { ac_try="$ac_link"
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_link") 2>&5
2120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2121 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2122 { { case "(($ac_try" in
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 $as_echo "$ac_try_echo"; } >&5
2128 (eval "$ac_try") 2>&5
2130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131 test $ac_status = 0; }; }; then :
2134 $as_echo "$as_me: program exited with status $ac_status" >&5
2135 $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2138 ac_retval=$ac_status
2140 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142 as_fn_set_status $ac_retval
2146 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists and can be compiled using the include files in
2149 # INCLUDES, setting the cache variable VAR accordingly.
2150 ac_fn_c_check_header_compile ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154 $as_echo_n "checking for $2... " >&6; }
2155 if eval \${$3+:} false; then :
2156 $as_echo_n "(cached) " >&6
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2163 if ac_fn_c_try_compile "$LINENO"; then :
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 } # ac_fn_c_check_header_compile
2177 # ac_fn_cxx_try_cpp LINENO
2178 # ------------------------
2179 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2180 ac_fn_cxx_try_cpp ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 if { { ac_try="$ac_cpp conftest.$ac_ext"
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2189 $as_echo "$ac_try_echo"; } >&5
2190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2192 if test -s conftest.err; then
2193 grep -v '^ *+' conftest.err >conftest.er1
2194 cat conftest.er1 >&5
2195 mv -f conftest.er1 conftest.err
2197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198 test $ac_status = 0; } > conftest.i && {
2199 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2200 test ! -s conftest.err
2204 $as_echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 as_fn_set_status $ac_retval
2212 } # ac_fn_cxx_try_cpp
2214 # ac_fn_cxx_try_link LINENO
2215 # -------------------------
2216 # Try to link conftest.$ac_ext, and return whether this succeeded.
2217 ac_fn_cxx_try_link ()
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 rm -f conftest.$ac_objext conftest$ac_exeext
2221 if { { ac_try="$ac_link"
2223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224 *) ac_try_echo=$ac_try;;
2226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2227 $as_echo "$ac_try_echo"; } >&5
2228 (eval "$ac_link") 2>conftest.err
2230 if test -s conftest.err; then
2231 grep -v '^ *+' conftest.err >conftest.er1
2232 cat conftest.er1 >&5
2233 mv -f conftest.er1 conftest.err
2235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236 test $ac_status = 0; } && {
2237 test -z "$ac_cxx_werror_flag" ||
2238 test ! -s conftest.err
2239 } && test -s conftest$ac_exeext && {
2240 test "$cross_compiling" = yes ||
2241 $as_test_x conftest$ac_exeext
2245 $as_echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2250 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2251 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2252 # interfere with the next link command; also delete a directory that is
2253 # left behind by Apple's compiler. We do this before executing the actions.
2254 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 as_fn_set_status $ac_retval
2258 } # ac_fn_cxx_try_link
2260 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2261 # -------------------------------------------
2262 # Tests whether TYPE exists after having included INCLUDES, setting cache
2263 # variable VAR accordingly.
2264 ac_fn_c_check_type ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268 $as_echo_n "checking for $2... " >&6; }
2269 if eval \${$3+:} false; then :
2270 $as_echo_n "(cached) " >&6
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2298 if ac_fn_c_try_compile "$LINENO"; then :
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 } # ac_fn_c_check_type
2314 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2315 # --------------------------------------------
2316 # Tries to find the compile-time value of EXPR in a program that includes
2317 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2319 ac_fn_c_compute_int ()
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 if test "$cross_compiling" = yes; then
2323 # Depending upon the size, compute the lo and hi bounds.
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2330 static int test_array [1 - 2 * !(($2) >= 0)];
2337 if ac_fn_c_try_compile "$LINENO"; then :
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2346 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354 ac_hi=$ac_mid; break
2356 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2357 if test $ac_lo -le $ac_mid; then
2361 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2372 static int test_array [1 - 2 * !(($2) < 0)];
2379 if ac_fn_c_try_compile "$LINENO"; then :
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2388 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396 ac_lo=$ac_mid; break
2398 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2399 if test $ac_mid -le $ac_hi; then
2403 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 # Binary search between lo and hi bounds.
2414 while test "x$ac_lo" != "x$ac_hi"; do
2415 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2422 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2429 if ac_fn_c_try_compile "$LINENO"; then :
2432 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2444 static long int longval () { return $2; }
2445 static unsigned long int ulongval () { return $2; }
2452 FILE *f = fopen ("conftest.val", "w");
2457 long int i = longval ();
2460 fprintf (f, "%ld", i);
2464 unsigned long int i = ulongval ();
2467 fprintf (f, "%lu", i);
2469 /* Do not output a trailing newline, as this causes \r\n confusion
2470 on some platforms. */
2471 return ferror (f) || fclose (f) != 0;
2477 if ac_fn_c_try_run "$LINENO"; then :
2478 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2483 conftest.$ac_objext conftest.beam conftest.$ac_ext
2487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2488 as_fn_set_status $ac_retval
2490 } # ac_fn_c_compute_int
2492 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2493 # ----------------------------------------------------
2494 # Tries to find if the field MEMBER exists in type AGGR, after including
2495 # INCLUDES, setting cache variable VAR accordingly.
2496 ac_fn_c_check_member ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2500 $as_echo_n "checking for $2.$3... " >&6; }
2501 if eval \${$4+:} false; then :
2502 $as_echo_n "(cached) " >&6
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2517 if ac_fn_c_try_compile "$LINENO"; then :
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2527 if (sizeof ac_aggr.$3)
2533 if ac_fn_c_try_compile "$LINENO"; then :
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2547 } # ac_fn_c_check_member
2548 cat >config.log <<_ACEOF
2549 This file contains any messages produced by compilers while
2550 running configure, to aid debugging if configure makes a mistake.
2552 It was created by glib $as_me 2.32.3, which was
2553 generated by GNU Autoconf 2.68. Invocation command line was
2565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir=.
2589 $as_echo "PATH: $as_dir"
2605 # Keep a trace of the command line.
2606 # Strip out --no-create and --no-recursion so they do not pile up.
2607 # Strip out --silent because we don't want to record it for future runs.
2608 # Also quote any args containing shell meta-characters.
2609 # Make two passes to allow for proper duplicate-argument suppression.
2613 ac_must_keep_next=false
2619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2621 | -silent | --silent | --silen | --sile | --sil)
2624 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2627 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2629 as_fn_append ac_configure_args1 " '$ac_arg'"
2630 if test $ac_must_keep_next = true; then
2631 ac_must_keep_next=false # Got value, back to normal.
2634 *=* | --config-cache | -C | -disable-* | --disable-* \
2635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2637 | -with-* | --with-* | -without-* | --without-* | --x)
2638 case "$ac_configure_args0 " in
2639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2642 -* ) ac_must_keep_next=true ;;
2645 as_fn_append ac_configure_args " '$ac_arg'"
2650 { ac_configure_args0=; unset ac_configure_args0;}
2651 { ac_configure_args1=; unset ac_configure_args1;}
2653 # When interrupted or exit'd, cleanup temporary files, and complete
2654 # config.log. We remove comments because anyway the quotes in there
2655 # would cause problems or look ugly.
2656 # WARNING: Use '\'' to represent an apostrophe within the trap.
2657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2658 trap 'exit_status=$?
2659 # Save into config.log some information that might help in debugging.
2663 $as_echo "## ---------------- ##
2664 ## Cache variables. ##
2665 ## ---------------- ##"
2667 # The following way of writing the cache mishandles newlines in values,
2669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2670 eval ac_val=\$$ac_var
2674 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2675 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2678 _ | IFS | as_nl) ;; #(
2679 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2680 *) { eval $ac_var=; unset $ac_var;} ;;
2685 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2686 *${as_nl}ac_space=\ *)
2688 "s/'\''/'\''\\\\'\'''\''/g;
2689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2699 $as_echo "## ----------------- ##
2700 ## Output variables. ##
2701 ## ----------------- ##"
2703 for ac_var in $ac_subst_vars
2705 eval ac_val=\$$ac_var
2707 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2709 $as_echo "$ac_var='\''$ac_val'\''"
2713 if test -n "$ac_subst_files"; then
2714 $as_echo "## ------------------- ##
2715 ## File substitutions. ##
2716 ## ------------------- ##"
2718 for ac_var in $ac_subst_files
2720 eval ac_val=\$$ac_var
2722 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2724 $as_echo "$ac_var='\''$ac_val'\''"
2729 if test -s confdefs.h; then
2730 $as_echo "## ----------- ##
2737 test "$ac_signal" != 0 &&
2738 $as_echo "$as_me: caught signal $ac_signal"
2739 $as_echo "$as_me: exit $exit_status"
2741 rm -f core *.core core.conftest.* &&
2742 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2745 for ac_signal in 1 2 13 15; do
2746 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2750 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2751 rm -f -r conftest* confdefs.h
2753 $as_echo "/* confdefs.h */" > confdefs.h
2755 # Predefined preprocessor variables.
2757 cat >>confdefs.h <<_ACEOF
2758 #define PACKAGE_NAME "$PACKAGE_NAME"
2761 cat >>confdefs.h <<_ACEOF
2762 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_STRING "$PACKAGE_STRING"
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_URL "$PACKAGE_URL"
2782 # Let the site file select an alternate cache file if it wants to.
2783 # Prefer an explicitly selected file to automatically selected ones.
2786 if test -n "$CONFIG_SITE"; then
2787 # We do not want a PATH search for config.site.
2788 case $CONFIG_SITE in #((
2789 -*) ac_site_file1=./$CONFIG_SITE;;
2790 */*) ac_site_file1=$CONFIG_SITE;;
2791 *) ac_site_file1=./$CONFIG_SITE;;
2793 elif test "x$prefix" != xNONE; then
2794 ac_site_file1=$prefix/share/config.site
2795 ac_site_file2=$prefix/etc/config.site
2797 ac_site_file1=$ac_default_prefix/share/config.site
2798 ac_site_file2=$ac_default_prefix/etc/config.site
2800 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2802 test "x$ac_site_file" = xNONE && continue
2803 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2805 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2806 sed 's/^/| /' "$ac_site_file" >&5
2808 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810 as_fn_error $? "failed to load site script $ac_site_file
2811 See \`config.log' for more details" "$LINENO" 5; }
2815 if test -r "$cache_file"; then
2816 # Some versions of bash will fail to source /dev/null (special files
2817 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2818 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2820 $as_echo "$as_me: loading cache $cache_file" >&6;}
2822 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2823 *) . "./$cache_file";;
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2828 $as_echo "$as_me: creating cache $cache_file" >&6;}
2832 # Check that the precious variables saved in the cache have kept the same
2834 ac_cache_corrupted=false
2835 for ac_var in $ac_precious_vars; do
2836 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2837 eval ac_new_set=\$ac_env_${ac_var}_set
2838 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2839 eval ac_new_val=\$ac_env_${ac_var}_value
2840 case $ac_old_set,$ac_new_set in
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2843 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2844 ac_cache_corrupted=: ;;
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2847 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2848 ac_cache_corrupted=: ;;
2851 if test "x$ac_old_val" != "x$ac_new_val"; then
2852 # differences in whitespace do not lead to failure.
2853 ac_old_val_w=`echo x $ac_old_val`
2854 ac_new_val_w=`echo x $ac_new_val`
2855 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2857 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2858 ac_cache_corrupted=:
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2861 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2862 eval $ac_var=\$ac_old_val
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2865 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2867 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2870 # Pass precious variables to config.status.
2871 if test "$ac_new_set" = set; then
2873 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2874 *) ac_arg=$ac_var=$ac_new_val ;;
2876 case " $ac_configure_args " in
2877 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2878 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2882 if $ac_cache_corrupted; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2886 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2887 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2889 ## -------------------- ##
2890 ## Main body of script. ##
2891 ## -------------------- ##
2894 ac_cpp='$CPP $CPPFLAGS'
2895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 ac_config_headers="$ac_config_headers config.h"
2906 # Save this value here, since automake will set cflags later
2907 cflags_set=${CFLAGS+set}
2909 am__api_version='1.11'
2912 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2913 if test -f "$ac_dir/install-sh"; then
2915 ac_install_sh="$ac_aux_dir/install-sh -c"
2917 elif test -f "$ac_dir/install.sh"; then
2919 ac_install_sh="$ac_aux_dir/install.sh -c"
2921 elif test -f "$ac_dir/shtool"; then
2923 ac_install_sh="$ac_aux_dir/shtool install -c"
2927 if test -z "$ac_aux_dir"; then
2928 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2931 # These three variables are undocumented and unsupported,
2932 # and are intended to be withdrawn in a future Autoconf release.
2933 # They can cause serious problems if a builder's source tree is in a directory
2934 # whose full name contains unusual characters.
2935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2940 # Find a good install program. We prefer a C program (faster),
2941 # so one script is as good as another. But avoid the broken or
2942 # incompatible versions:
2943 # SysV /etc/install, /usr/sbin/install
2944 # SunOS /usr/etc/install
2945 # IRIX /sbin/install
2947 # AmigaOS /C/install, which installs bootblocks on floppy discs
2948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2951 # OS/2's system install, which has a completely different semantic
2952 # ./install, which can be erroneously created by make from ./install.sh.
2953 # Reject install programs that cannot install multiple files.
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2955 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2956 if test -z "$INSTALL"; then
2957 if ${ac_cv_path_install+:} false; then :
2958 $as_echo_n "(cached) " >&6
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir=.
2965 # Account for people who put trailing slashes in PATH elements.
2966 case $as_dir/ in #((
2967 ./ | .// | /[cC]/* | \
2968 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2969 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2972 # OSF1 and SCO ODT 3.0 have their own names for install.
2973 # Don't use installbsd from OSF since it installs stuff as root
2975 for ac_prog in ginstall scoinst install; do
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2978 if test $ac_prog = install &&
2979 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2980 # AIX install. It has an incompatible calling convention.
2982 elif test $ac_prog = install &&
2983 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2984 # program-specific install script used by HP pwplus--don't use.
2987 rm -rf conftest.one conftest.two conftest.dir
2988 echo one > conftest.one
2989 echo two > conftest.two
2991 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2992 test -s conftest.one && test -s conftest.two &&
2993 test -s conftest.dir/conftest.one &&
2994 test -s conftest.dir/conftest.two
2996 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3009 rm -rf conftest.one conftest.two conftest.dir
3012 if test "${ac_cv_path_install+set}" = set; then
3013 INSTALL=$ac_cv_path_install
3015 # As a last resort, use the slow shell script. Don't cache a
3016 # value for INSTALL within a source directory, because that will
3017 # break other packages using the cache if that directory is
3018 # removed, or if the value is a relative name.
3019 INSTALL=$ac_install_sh
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3023 $as_echo "$INSTALL" >&6; }
3025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3026 # It thinks the first close brace ends the variable substitution.
3027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3034 $as_echo_n "checking whether build environment is sane... " >&6; }
3037 echo timestamp > conftest.file
3038 # Reject unsafe characters in $srcdir or the absolute working directory
3039 # name. Accept space and tab only in the latter.
3043 *[\\\"\#\$\&\'\`$am_lf]*)
3044 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3047 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3048 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3051 # Do `set' in a subshell so we don't clobber the current shell's
3052 # arguments. Must try -L first in case configure is actually a
3053 # symlink; some systems play weird games with the mod time of symlinks
3054 # (eg FreeBSD returns the mod time of the symlink's containing
3057 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3058 if test "$*" = "X"; then
3060 set X `ls -t "$srcdir/configure" conftest.file`
3063 if test "$*" != "X $srcdir/configure conftest.file" \
3064 && test "$*" != "X conftest.file $srcdir/configure"; then
3066 # If neither matched, then we have a broken ls. This can happen
3067 # if, for instance, CONFIG_SHELL is bash and it inherits a
3068 # broken ls alias from the environment. This has actually
3069 # happened. Such a system could not be considered "sane".
3070 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3071 alias in your environment" "$LINENO" 5
3074 test "$2" = conftest.file
3080 as_fn_error $? "newly created file is older than distributed files!
3081 Check your system clock" "$LINENO" 5
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3085 test "$program_prefix" != NONE &&
3086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3087 # Use a double $ so make ignores it.
3088 test "$program_suffix" != NONE &&
3089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3090 # Double any \ or $.
3091 # By default was `s,x,x', remove it if useless.
3092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3093 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3095 # expand $ac_aux_dir to an absolute path
3096 am_aux_dir=`cd $ac_aux_dir && pwd`
3098 if test x"${MISSING+set}" != xset; then
3101 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3103 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3106 # Use eval to expand $SHELL
3107 if eval "$MISSING --run true"; then
3108 am_missing_run="$MISSING --run "
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3112 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3115 if test x"${install_sh}" != xset; then
3118 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3120 install_sh="\${SHELL} $am_aux_dir/install-sh"
3124 # Installed binaries are usually stripped using `strip' when the user
3125 # run `make install-strip'. However `strip' might not be the right
3126 # tool to use in cross-compilation environments, therefore Automake
3127 # will honor the `STRIP' environment variable to overrule this program.
3128 if test "$cross_compiling" != no; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}strip; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_STRIP+:} false; then :
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$STRIP"; then
3138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 STRIP=$ac_cv_prog_STRIP
3158 if test -n "$STRIP"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3160 $as_echo "$STRIP" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3168 if test -z "$ac_cv_prog_STRIP"; then
3170 # Extract the first word of "strip", so it can be a program name with args.
3171 set dummy strip; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$ac_ct_STRIP"; then
3178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_ac_ct_STRIP="strip"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3198 if test -n "$ac_ct_STRIP"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3200 $as_echo "$ac_ct_STRIP" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3206 if test "x$ac_ct_STRIP" = x; then
3209 case $cross_compiling:$ac_tool_warned in
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213 ac_tool_warned=yes ;;
3218 STRIP="$ac_cv_prog_STRIP"
3222 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3226 if test -z "$MKDIR_P"; then
3227 if ${ac_cv_path_mkdir+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3234 test -z "$as_dir" && as_dir=.
3235 for ac_prog in mkdir gmkdir; do
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3239 'mkdir (GNU coreutils) '* | \
3240 'mkdir (coreutils) '* | \
3241 'mkdir (fileutils) '4.1*)
3242 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3252 test -d ./--version && rmdir ./--version
3253 if test "${ac_cv_path_mkdir+set}" = set; then
3254 MKDIR_P="$ac_cv_path_mkdir -p"
3256 # As a last resort, use the slow shell script. Don't cache a
3257 # value for MKDIR_P within a source directory, because that will
3258 # break other packages using the cache if that directory is
3259 # removed, or if the value is a relative name.
3260 MKDIR_P="$ac_install_sh -d"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3264 $as_echo "$MKDIR_P" >&6; }
3268 [\\/$]* | ?:[\\/]*) ;;
3269 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3272 for ac_prog in gawk mawk nawk awk
3274 # Extract the first word of "$ac_prog", so it can be a program name with args.
3275 set dummy $ac_prog; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_AWK+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$AWK"; then
3282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_AWK="$ac_prog"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$AWK"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3304 $as_echo "$AWK" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3311 test -n "$AWK" && break
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3315 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3317 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3318 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3319 $as_echo_n "(cached) " >&6
3321 cat >conftest.make <<\_ACEOF
3324 @echo '@@@%%%=$(MAKE)=@@@%%%'
3326 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3327 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3329 eval ac_cv_prog_make_${ac_make}_set=yes;;
3331 eval ac_cv_prog_make_${ac_make}_set=no;;
3335 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 SET_MAKE="MAKE=${MAKE-make}"
3345 rm -rf .tst 2>/dev/null
3346 mkdir .tst 2>/dev/null
3347 if test -d .tst; then
3352 rmdir .tst 2>/dev/null
3354 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3355 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3356 # is not polluted with repeated "-I."
3357 am__isrc=' -I$(srcdir)'
3358 # test to see if srcdir already configured
3359 if test -f $srcdir/config.status; then
3360 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3364 # test whether we have cygpath
3365 if test -z "$CYGPATH_W"; then
3366 if (cygpath --version) >/dev/null 2>/dev/null; then
3367 CYGPATH_W='cygpath -w'
3374 # Define the identity of the package.
3379 # Some tools Automake needs.
3381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3387 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3393 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3395 # We need awk for the "check" target. The system "awk" is bad on
3397 # Always define AMTAR for backward compatibility. Yes, it's still used
3398 # in the wild :-( We should find a proper way to deprecate it ...
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3403 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3404 # Loop over all known methods to create a tar archive until one works.
3405 _am_tools='gnutar plaintar pax cpio none'
3406 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3407 # Do not fold the above two line into one, because Tru64 sh and
3408 # Solaris sh will not grok spaces in the rhs of `-'.
3409 for _am_tool in $_am_tools
3413 for _am_tar in tar gnutar gtar;
3415 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3416 ($_am_tar --version) >&5 2>&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } && break
3421 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3422 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3423 am__untar="$_am_tar -xf -"
3426 # Must skip GNU tar: if it does not support --format= it doesn't create
3427 # ustar tarball either.
3428 (tar --version) >/dev/null 2>&1 && continue
3429 am__tar='tar chf - "$$tardir"'
3430 am__tar_='tar chf - "$tardir"'
3431 am__untar='tar xf -'
3434 am__tar='pax -L -x ustar -w "$$tardir"'
3435 am__tar_='pax -L -x ustar -w "$tardir"'
3439 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3440 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3441 am__untar='cpio -i -H ustar -d'
3450 # If the value was cached, stop now. We just wanted to have am__tar
3451 # and am__untar set.
3452 test -n "${am_cv_prog_tar_ustar}" && break
3454 # tar/untar a dummy directory, and stop if the command works
3457 echo GrepMe > conftest.dir/file
3458 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3459 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }
3464 if test -s conftest.tar; then
3465 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3466 ($am__untar <conftest.tar) >&5 2>&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }
3470 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3475 if ${am_cv_prog_tar_ustar+:} false; then :
3476 $as_echo_n "(cached) " >&6
3478 am_cv_prog_tar_ustar=$_am_tool
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3482 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3490 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3491 # Check whether --enable-maintainer-mode was given.
3492 if test "${enable_maintainer_mode+set}" = set; then :
3493 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3495 USE_MAINTAINER_MODE=yes
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3499 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3500 if test $USE_MAINTAINER_MODE = yes; then
3501 MAINTAINER_MODE_TRUE=
3502 MAINTAINER_MODE_FALSE='#'
3504 MAINTAINER_MODE_TRUE='#'
3505 MAINTAINER_MODE_FALSE=
3508 MAINT=$MAINTAINER_MODE_TRUE
3512 # Support silent build rules. Disable
3513 # by either passing --disable-silent-rules to configure or passing V=1
3515 # Check whether --enable-silent-rules was given.
3516 if test "${enable_silent_rules+set}" = set; then :
3517 enableval=$enable_silent_rules;
3520 case $enable_silent_rules in
3521 yes) AM_DEFAULT_VERBOSITY=0;;
3522 no) AM_DEFAULT_VERBOSITY=1;;
3523 *) AM_DEFAULT_VERBOSITY=0;;
3525 am_make=${MAKE-make}
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3527 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3528 if ${am_cv_make_support_nested_variables+:} false; then :
3529 $as_echo_n "(cached) " >&6
3531 if $as_echo 'TRUE=$(BAR$(V))
3537 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3538 am_cv_make_support_nested_variables=yes
3540 am_cv_make_support_nested_variables=no
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3544 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3545 if test $am_cv_make_support_nested_variables = yes; then
3547 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3549 AM_V=$AM_DEFAULT_VERBOSITY
3550 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3555 GLIB_MAJOR_VERSION=2
3556 GLIB_MINOR_VERSION=32
3557 GLIB_MICRO_VERSION=3
3558 GLIB_INTERFACE_AGE=3
3559 GLIB_BINARY_AGE=3203
3570 $as_echo "#define GLIB_MAJOR_VERSION 2" >>confdefs.h
3573 $as_echo "#define GLIB_MINOR_VERSION 32" >>confdefs.h
3576 $as_echo "#define GLIB_MICRO_VERSION 3" >>confdefs.h
3579 $as_echo "#define GLIB_INTERFACE_AGE 3" >>confdefs.h
3582 $as_echo "#define GLIB_BINARY_AGE 3203" >>confdefs.h
3585 # libtool versioning
3590 LT_CURRENT_MINUS_AGE=0
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_CC+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 if test -n "$CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 $as_echo "$CC" >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3641 if test -z "$ac_cv_prog_CC"; then
3643 # Extract the first word of "gcc", so it can be a program name with args.
3644 set dummy gcc; ac_word=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3648 $as_echo_n "(cached) " >&6
3650 if test -n "$ac_ct_CC"; then
3651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660 ac_cv_prog_ac_ct_CC="gcc"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671 if test -n "$ac_ct_CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3673 $as_echo "$ac_ct_CC" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3679 if test "x$ac_ct_CC" = x; then
3682 case $cross_compiling:$ac_tool_warned in
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686 ac_tool_warned=yes ;;
3694 if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3697 set dummy ${ac_tool_prefix}cc; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if ${ac_cv_prog_CC+:} false; then :
3701 $as_echo_n "(cached) " >&6
3703 if test -n "$CC"; then
3704 ac_cv_prog_CC="$CC" # Let the user override the test.
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713 ac_cv_prog_CC="${ac_tool_prefix}cc"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 if test -n "$CC"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726 $as_echo "$CC" >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3735 if test -z "$CC"; then
3736 # Extract the first word of "cc", so it can be a program name with args.
3737 set dummy cc; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if ${ac_cv_prog_CC+:} false; then :
3741 $as_echo_n "(cached) " >&6
3743 if test -n "$CC"; then
3744 ac_cv_prog_CC="$CC" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3755 ac_prog_rejected=yes
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 if test $ac_prog_rejected = yes; then
3767 # We found a bogon in the path, so make sure we never use it.
3768 set dummy $ac_cv_prog_CC
3770 if test $# != 0; then
3771 # We chose a different compiler from the bogus one.
3772 # However, it has the same basename, so the bogon will be chosen
3773 # first if we set CC to just the basename; use the full file name.
3775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3781 if test -n "$CC"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 $as_echo "$CC" >&6; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3791 if test -z "$CC"; then
3792 if test -n "$ac_tool_prefix"; then
3793 for ac_prog in cl.exe
3795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_CC+:} false; then :
3800 $as_echo_n "(cached) " >&6
3802 if test -n "$CC"; then
3803 ac_cv_prog_CC="$CC" # Let the user override the test.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 if test -n "$CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825 $as_echo "$CC" >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3832 test -n "$CC" && break
3835 if test -z "$CC"; then
3837 for ac_prog in cl.exe
3839 # Extract the first word of "$ac_prog", so it can be a program name with args.
3840 set dummy $ac_prog; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 if test -n "$ac_ct_CC"; then
3847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856 ac_cv_prog_ac_ct_CC="$ac_prog"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3867 if test -n "$ac_ct_CC"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3869 $as_echo "$ac_ct_CC" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3876 test -n "$ac_ct_CC" && break
3879 if test "x$ac_ct_CC" = x; then
3882 case $cross_compiling:$ac_tool_warned in
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3886 ac_tool_warned=yes ;;
3895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error $? "no acceptable C compiler found in \$PATH
3898 See \`config.log' for more details" "$LINENO" 5; }
3900 # Provide some information about the compiler.
3901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3904 for ac_option in --version -v -V -qversion; do
3905 { { ac_try="$ac_compiler $ac_option >&5"
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3914 if test -s conftest.err; then
3916 ... rest of stderr output deleted ...
3917 10q' conftest.err >conftest.er1
3918 cat conftest.er1 >&5
3920 rm -f conftest.er1 conftest.err
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3936 ac_clean_files_save=$ac_clean_files
3937 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3938 # Try to create an executable without -o first, disregard a.out.
3939 # It will help us diagnose broken compilers, and finding out an intuition
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3942 $as_echo_n "checking whether the C compiler works... " >&6; }
3943 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3945 # The possible output files:
3946 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3949 for ac_file in $ac_files
3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3953 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3958 if { { ac_try="$ac_link_default"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_link_default") 2>&5
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; then :
3969 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3970 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3971 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3972 # so that the user can short-circuit this test for compilers unknown to
3974 for ac_file in $ac_files ''
3976 test -f "$ac_file" || continue
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3981 # We found the default executable, but exeext='' is most
3985 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3989 # We set ac_cv_exeext here because the later test for it is not
3990 # safe: cross compilers may not add the suffix if given an `-o'
3991 # argument, so we may need to know it at that point already.
3992 # Even if this section looks crufty: it has the advantage of
3999 test "$ac_cv_exeext" = no && ac_cv_exeext=
4004 if test -z "$ac_file"; then :
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error 77 "C compiler cannot create executables
4013 See \`config.log' for more details" "$LINENO" 5; }
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4019 $as_echo_n "checking for C compiler default output file name... " >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4021 $as_echo "$ac_file" >&6; }
4022 ac_exeext=$ac_cv_exeext
4024 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4025 ac_clean_files=$ac_clean_files_save
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4027 $as_echo_n "checking for suffix of executables... " >&6; }
4028 if { { ac_try="$ac_link"
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_link") 2>&5
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; then :
4039 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4040 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4041 # work properly (i.e., refer to `conftest.exe'), while it won't with
4043 for ac_file in conftest.exe conftest conftest.*; do
4044 test -f "$ac_file" || continue
4046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4056 See \`config.log' for more details" "$LINENO" 5; }
4058 rm -f conftest conftest$ac_cv_exeext
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4060 $as_echo "$ac_cv_exeext" >&6; }
4062 rm -f conftest.$ac_ext
4063 EXEEXT=$ac_cv_exeext
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4071 FILE *f = fopen ("conftest.out", "w");
4072 return ferror (f) || fclose (f) != 0;
4078 ac_clean_files="$ac_clean_files conftest.out"
4079 # Check that the compiler produces executables we can run. If not, either
4080 # the compiler is broken, or we cross compile.
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4082 $as_echo_n "checking whether we are cross compiling... " >&6; }
4083 if test "$cross_compiling" != yes; then
4084 { { ac_try="$ac_link"
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_link") 2>&5
4093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094 test $ac_status = 0; }
4095 if { ac_try='./conftest$ac_cv_exeext'
4096 { { case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_try") 2>&5
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; }; then
4108 if test "$cross_compiling" = maybe; then
4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error $? "cannot run C compiled programs.
4114 If you meant to cross compile, use \`--host'.
4115 See \`config.log' for more details" "$LINENO" 5; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4120 $as_echo "$cross_compiling" >&6; }
4122 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4123 ac_clean_files=$ac_clean_files_save
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4125 $as_echo_n "checking for suffix of object files... " >&6; }
4126 if ${ac_cv_objext+:} false; then :
4127 $as_echo_n "(cached) " >&6
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4140 rm -f conftest.o conftest.obj
4141 if { { ac_try="$ac_compile"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 $as_echo "$ac_try_echo"; } >&5
4148 (eval "$ac_compile") 2>&5
4150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }; then :
4152 for ac_file in conftest.o conftest.obj conftest.*; do
4153 test -f "$ac_file" || continue;
4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4156 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4166 as_fn_error $? "cannot compute suffix of object files: cannot compile
4167 See \`config.log' for more details" "$LINENO" 5; }
4169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4172 $as_echo "$ac_cv_objext" >&6; }
4173 OBJEXT=$ac_cv_objext
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4176 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4177 if ${ac_cv_c_compiler_gnu+:} false; then :
4178 $as_echo_n "(cached) " >&6
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4194 if ac_fn_c_try_compile "$LINENO"; then :
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4205 if test $ac_compiler_gnu = yes; then
4210 ac_test_CFLAGS=${CFLAGS+set}
4211 ac_save_CFLAGS=$CFLAGS
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4214 if ${ac_cv_prog_cc_g+:} false; then :
4215 $as_echo_n "(cached) " >&6
4217 ac_save_c_werror_flag=$ac_c_werror_flag
4218 ac_c_werror_flag=yes
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4232 if ac_fn_c_try_compile "$LINENO"; then :
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4247 if ac_fn_c_try_compile "$LINENO"; then :
4250 ac_c_werror_flag=$ac_save_c_werror_flag
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4263 if ac_fn_c_try_compile "$LINENO"; then :
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 ac_c_werror_flag=$ac_save_c_werror_flag
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4274 $as_echo "$ac_cv_prog_cc_g" >&6; }
4275 if test "$ac_test_CFLAGS" = set; then
4276 CFLAGS=$ac_save_CFLAGS
4277 elif test $ac_cv_prog_cc_g = yes; then
4278 if test "$GCC" = yes; then
4284 if test "$GCC" = yes; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4291 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4292 if ${ac_cv_prog_cc_c89+:} false; then :
4293 $as_echo_n "(cached) " >&6
4295 ac_cv_prog_cc_c89=no
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4301 #include <sys/types.h>
4302 #include <sys/stat.h>
4303 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4304 struct buf { int x; };
4305 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4306 static char *e (p, i)
4312 static char *f (char * (*g) (char **, int), char **p, ...)
4317 s = g (p, va_arg (v,int));
4322 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4323 function prototypes and stuff, but not '\xHH' hex character constants.
4324 These don't provoke an error unfortunately, instead are silently treated
4325 as 'x'. The following induces an error, until -std is added to get
4326 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4327 array size at least. It's necessary to write '\x00'==0 to get something
4328 that's true only with -std. */
4329 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4331 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4332 inside strings and character constants. */
4334 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4336 int test (int i, double x);
4337 struct s1 {int (*f) (int a);};
4338 struct s2 {int (*f) (double a);};
4339 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4345 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4350 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4351 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4353 CC="$ac_save_CC $ac_arg"
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355 ac_cv_prog_cc_c89=$ac_arg
4357 rm -f core conftest.err conftest.$ac_objext
4358 test "x$ac_cv_prog_cc_c89" != "xno" && break
4360 rm -f conftest.$ac_ext
4365 case "x$ac_cv_prog_cc_c89" in
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4368 $as_echo "none needed" >&6; } ;;
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4371 $as_echo "unsupported" >&6; } ;;
4373 CC="$CC $ac_cv_prog_cc_c89"
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4375 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4377 if test "x$ac_cv_prog_cc_c89" != xno; then :
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 DEPDIR="${am__leading_dot}deps"
4388 ac_config_commands="$ac_config_commands depfiles"
4391 am_make=${MAKE-make}
4392 cat > confinc << 'END'
4394 @echo this is the am__doit target
4397 # If we don't find an include directive, just comment out the code.
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4399 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4403 # First try GNU make style include.
4404 echo "include confinc" > confmf
4405 # Ignore all kinds of additional output from `make'.
4406 case `$am_make -s -f confmf 2> /dev/null` in #(
4407 *the\ am__doit\ target*)
4413 # Now try BSD make style include.
4414 if test "$am__include" = "#"; then
4415 echo '.include "confinc"' > confmf
4416 case `$am_make -s -f confmf 2> /dev/null` in #(
4417 *the\ am__doit\ target*)
4418 am__include=.include
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4427 $as_echo "$_am_result" >&6; }
4428 rm -f confinc confmf
4430 # Check whether --enable-dependency-tracking was given.
4431 if test "${enable_dependency_tracking+set}" = set; then :
4432 enableval=$enable_dependency_tracking;
4435 if test "x$enable_dependency_tracking" != xno; then
4436 am_depcomp="$ac_aux_dir/depcomp"
4440 if test "x$enable_dependency_tracking" != xno; then
4450 depcc="$CC" am_compiler_list=
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4453 $as_echo_n "checking dependency style of $depcc... " >&6; }
4454 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4455 $as_echo_n "(cached) " >&6
4457 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4458 # We make a subdir and do the tests there. Otherwise we can end up
4459 # making bogus files that we don't know about and never remove. For
4460 # instance it was reported that on HP-UX the gcc test will end up
4461 # making a dummy file named `D' -- because `-MD' means `put the output
4465 # Copy depcomp to subdir because otherwise we won't find it if we're
4466 # using a relative directory.
4467 cp "$am_depcomp" conftest.dir
4469 # We will build objects and dependencies in a subdirectory because
4470 # it helps to detect inapplicable dependency modes. For instance
4471 # both Tru64's cc and ICC support -MD to output dependencies as a
4472 # side effect of compilation, but ICC will put the dependencies in
4473 # the current directory while Tru64 will put them in the object
4477 am_cv_CC_dependencies_compiler_type=none
4478 if test "$am_compiler_list" = ""; then
4479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4482 case " $depcc " in #(
4483 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4486 for depmode in $am_compiler_list; do
4487 # Setup a source with many dependencies, because some compilers
4488 # like to wrap large dependency lists on column 80 (with \), and
4489 # we should not choose a depcomp mode which is confused by this.
4491 # We need to recreate these files for each test, as the compiler may
4492 # overwrite some of them when testing with obscure command lines.
4493 # This happens at least with the AIX C compiler.
4495 for i in 1 2 3 4 5 6; do
4496 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4497 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4498 # Solaris 8's {/usr,}/bin/sh.
4499 touch sub/conftst$i.h
4501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4503 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4504 # mode. It turns out that the SunPro C++ compiler does not properly
4505 # handle `-M -o', and we need to detect this. Also, some Intel
4506 # versions had trouble with output in subdirs
4507 am__obj=sub/conftest.${OBJEXT-o}
4508 am__minus_obj="-o $am__obj"
4511 # This depmode causes a compiler race in universal mode.
4512 test "$am__universal" = false || continue
4515 # after this tag, mechanisms are not by side-effect, so they'll
4516 # only be used when explicitly requested
4517 if test "x$enable_dependency_tracking" = xyes; then
4523 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4524 # This compiler won't grok `-c -o', but also, the minuso test has
4525 # not run yet. These depmodes are late enough in the game, and
4526 # so weak that their functioning should not be impacted.
4527 am__obj=conftest.${OBJEXT-o}
4532 if depmode=$depmode \
4533 source=sub/conftest.c object=$am__obj \
4534 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4535 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4536 >/dev/null 2>conftest.err &&
4537 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4539 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4541 # icc doesn't choke on unknown options, it will just issue warnings
4542 # or remarks (even with -Werror). So we grep stderr for any message
4543 # that says an option was ignored or not supported.
4544 # When given -MP, icc 7.0 and 7.1 complain thusly:
4545 # icc: Command line warning: ignoring option '-M'; no argument required
4546 # The diagnosis changed in icc 8.0:
4547 # icc: Command line remark: option '-MP' not supported
4548 if (grep 'ignoring option' conftest.err ||
4549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4550 am_cv_CC_dependencies_compiler_type=$depmode
4559 am_cv_CC_dependencies_compiler_type=none
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4564 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4565 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4568 test "x$enable_dependency_tracking" != xno \
4569 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4571 am__fastdepCC_FALSE='#'
4573 am__fastdepCC_TRUE='#'
4574 am__fastdepCC_FALSE=
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4584 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4585 # On Suns, sometimes $CPP names a directory.
4586 if test -n "$CPP" && test -d "$CPP"; then
4589 if test -z "$CPP"; then
4590 if ${ac_cv_prog_CPP+:} false; then :
4591 $as_echo_n "(cached) " >&6
4593 # Double quotes because CPP needs to be expanded
4594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4597 for ac_c_preproc_warn_flag in '' yes
4599 # Use a header file that comes with gcc, so configuring glibc
4600 # with a fresh cross-compiler works.
4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4602 # <limits.h> exists even on freestanding compilers.
4603 # On the NeXT, cc -E runs the code through the compiler's parser,
4604 # not just through cpp. "Syntax error" is here to catch this case.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4608 # include <limits.h>
4610 # include <assert.h>
4614 if ac_fn_c_try_cpp "$LINENO"; then :
4617 # Broken: fails on valid input.
4620 rm -f conftest.err conftest.i conftest.$ac_ext
4622 # OK, works on sane cases. Now check whether nonexistent headers
4623 # can be detected and how.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <ac_nonexistent.h>
4628 if ac_fn_c_try_cpp "$LINENO"; then :
4629 # Broken: success on invalid input.
4632 # Passes both tests.
4636 rm -f conftest.err conftest.i conftest.$ac_ext
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.i conftest.err conftest.$ac_ext
4641 if $ac_preproc_ok; then :
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4654 $as_echo "$CPP" >&6; }
4656 for ac_c_preproc_warn_flag in '' yes
4658 # Use a header file that comes with gcc, so configuring glibc
4659 # with a fresh cross-compiler works.
4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 # <limits.h> exists even on freestanding compilers.
4662 # On the NeXT, cc -E runs the code through the compiler's parser,
4663 # not just through cpp. "Syntax error" is here to catch this case.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4667 # include <limits.h>
4669 # include <assert.h>
4673 if ac_fn_c_try_cpp "$LINENO"; then :
4676 # Broken: fails on valid input.
4679 rm -f conftest.err conftest.i conftest.$ac_ext
4681 # OK, works on sane cases. Now check whether nonexistent headers
4682 # can be detected and how.
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685 #include <ac_nonexistent.h>
4687 if ac_fn_c_try_cpp "$LINENO"; then :
4688 # Broken: success on invalid input.
4691 # Passes both tests.
4695 rm -f conftest.err conftest.i conftest.$ac_ext
4698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4699 rm -f conftest.i conftest.err conftest.$ac_ext
4700 if $ac_preproc_ok; then :
4703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4706 See \`config.log' for more details" "$LINENO" 5; }
4710 ac_cpp='$CPP $CPPFLAGS'
4711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716 if test "$GCC" = "yes"; then
4725 # Make sure we can run config.sub.
4726 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4727 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4730 $as_echo_n "checking build system type... " >&6; }
4731 if ${ac_cv_build+:} false; then :
4732 $as_echo_n "(cached) " >&6
4734 ac_build_alias=$build_alias
4735 test "x$ac_build_alias" = x &&
4736 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4737 test "x$ac_build_alias" = x &&
4738 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4739 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4740 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4744 $as_echo "$ac_cv_build" >&6; }
4745 case $ac_cv_build in
4747 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4750 ac_save_IFS=$IFS; IFS='-'
4756 # Remember, the first character of IFS is used to create $*,
4757 # except with old shells:
4760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4764 $as_echo_n "checking host system type... " >&6; }
4765 if ${ac_cv_host+:} false; then :
4766 $as_echo_n "(cached) " >&6
4768 if test "x$host_alias" = x; then
4769 ac_cv_host=$ac_cv_build
4771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4772 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4777 $as_echo "$ac_cv_host" >&6; }
4780 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4783 ac_save_IFS=$IFS; IFS='-'
4789 # Remember, the first character of IFS is used to create $*,
4790 # except with old shells:
4793 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the BeOS" >&5
4798 $as_echo_n "checking for the BeOS... " >&6; }
4801 glib_native_beos="yes"
4804 glib_native_beos="no"
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_beos" >&5
4808 $as_echo "$glib_native_beos" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5
4812 $as_echo_n "checking for Win32... " >&6; }
4813 LIB_EXE_MACHINE_FLAG=X86
4816 glib_native_win32=yes
4817 glib_pid_type='void *'
4818 glib_cv_stack_grows=no
4819 # Unfortunately the mingw implementations of C99-style snprintf and vsnprintf
4820 # don't seem to be quite good enough, at least not in mingw-runtime-3.14.
4821 # (Sorry, I don't know exactly what is the problem, but it is related to
4822 # floating point formatting and decimal point vs. comma.)
4823 # The simple tests in AC_FUNC_VSNPRINTF_C99 and AC_FUNC_SNPRINTF_C99 aren't
4824 # rigorous enough to notice, though.
4825 # So preset the autoconf cache variables.
4826 ac_cv_func_vsnprintf_c99=no
4827 ac_cv_func_snprintf_c99=no
4830 LIB_EXE_MACHINE_FLAG=X64
4835 glib_native_win32=no
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_win32" >&5
4846 $as_echo "$glib_native_win32" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Carbon support" >&5
4852 $as_echo_n "checking for Mac OS X Carbon support... " >&6; }
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4858 #include <Carbon/Carbon.h>
4859 #include <CoreServices/CoreServices.h>
4862 if ac_fn_c_try_cpp "$LINENO"; then :
4863 glib_have_carbon=yes
4865 rm -f conftest.err conftest.i conftest.$ac_ext
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_carbon" >&5
4868 $as_echo "$glib_have_carbon" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Cocoa support" >&5
4872 $as_echo_n "checking for Mac OS X Cocoa support... " >&6; }
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4876 #include <Cocoa/Cocoa.h>
4877 #ifdef GNUSTEP_BASE_VERSION
4878 #error "Detected GNUstep, not Cocoa"
4882 if ac_fn_c_try_cpp "$LINENO"; then :
4885 rm -f conftest.err conftest.i conftest.$ac_ext
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_cocoa" >&5
4888 $as_echo "$glib_have_cocoa" >&6; }
4890 if test "$glib_native_win32" = "yes"; then
4898 if test "$LIB_EXE_MACHINE_FLAG" = "X64"; then
4900 OS_WIN32_X64_FALSE='#'
4902 OS_WIN32_X64_TRUE='#'
4906 if test "$glib_native_win32" != "yes"; then
4914 if test "$glib_os_linux" = "yes"; then
4922 if test "$glib_have_carbon" = "yes"; then
4930 if test "$glib_have_cocoa" = "yes"; then
4939 if test "$glib_native_win32" = "yes"; then
4940 if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}windres; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_WINDRES+:} false; then :
4946 $as_echo_n "(cached) " >&6
4948 if test -n "$WINDRES"; then
4949 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 WINDRES=$ac_cv_prog_WINDRES
4969 if test -n "$WINDRES"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4971 $as_echo "$WINDRES" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4979 if test -z "$ac_cv_prog_WINDRES"; then
4980 ac_ct_WINDRES=$WINDRES
4981 # Extract the first word of "windres", so it can be a program name with args.
4982 set dummy windres; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
4986 $as_echo_n "(cached) " >&6
4988 if test -n "$ac_ct_WINDRES"; then
4989 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998 ac_cv_prog_ac_ct_WINDRES="windres"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5009 if test -n "$ac_ct_WINDRES"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
5011 $as_echo "$ac_ct_WINDRES" >&6; }
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5017 if test "x$ac_ct_WINDRES" = x; then
5020 case $cross_compiling:$ac_tool_warned in
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024 ac_tool_warned=yes ;;
5026 WINDRES=$ac_ct_WINDRES
5029 WINDRES="$ac_cv_prog_WINDRES"
5032 if test "$WINDRES" = no; then
5033 as_fn_error $? "*** Could not find an implementation of windres in your PATH." "$LINENO" 5
5035 if test -n "$ac_tool_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5037 set dummy ${ac_tool_prefix}nm; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if ${ac_cv_prog_NM+:} false; then :
5041 $as_echo_n "(cached) " >&6
5043 if test -n "$NM"; then
5044 ac_cv_prog_NM="$NM" # Let the user override the test.
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_NM="${ac_tool_prefix}nm"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 if test -n "$NM"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5066 $as_echo "$NM" >&6; }
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5074 if test -z "$ac_cv_prog_NM"; then
5076 # Extract the first word of "nm", so it can be a program name with args.
5077 set dummy nm; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5081 $as_echo_n "(cached) " >&6
5083 if test -n "$ac_ct_NM"; then
5084 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_ac_ct_NM="nm"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5104 if test -n "$ac_ct_NM"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5106 $as_echo "$ac_ct_NM" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5112 if test "x$ac_ct_NM" = x; then
5115 case $cross_compiling:$ac_tool_warned in
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119 ac_tool_warned=yes ;;
5127 if test "$NM" = no; then
5128 as_fn_error $? "*** Could not find an implementation of nm in your PATH." "$LINENO" 5
5130 if test -n "$ac_tool_prefix"; then
5131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_RANLIB+:} false; then :
5136 $as_echo_n "(cached) " >&6
5138 if test -n "$RANLIB"; then
5139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 RANLIB=$ac_cv_prog_RANLIB
5159 if test -n "$RANLIB"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5161 $as_echo "$RANLIB" >&6; }
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5169 if test -z "$ac_cv_prog_RANLIB"; then
5170 ac_ct_RANLIB=$RANLIB
5171 # Extract the first word of "ranlib", so it can be a program name with args.
5172 set dummy ranlib; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5176 $as_echo_n "(cached) " >&6
5178 if test -n "$ac_ct_RANLIB"; then
5179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_ac_ct_RANLIB="ranlib"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5199 if test -n "$ac_ct_RANLIB"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5201 $as_echo "$ac_ct_RANLIB" >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5207 if test "x$ac_ct_RANLIB" = x; then
5210 case $cross_compiling:$ac_tool_warned in
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned=yes ;;
5216 RANLIB=$ac_ct_RANLIB
5219 RANLIB="$ac_cv_prog_RANLIB"
5222 # Extract the first word of "lib.exe", so it can be a program name with args.
5223 set dummy lib.exe; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if ${ac_cv_prog_ms_librarian+:} false; then :
5227 $as_echo_n "(cached) " >&6
5229 if test -n "$ms_librarian"; then
5230 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_ms_librarian="yes"
5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
5250 ms_librarian=$ac_cv_prog_ms_librarian
5251 if test -n "$ms_librarian"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
5253 $as_echo "$ms_librarian" >&6; }
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5261 if test x$ms_librarian = xyes; then
5262 MS_LIB_AVAILABLE_TRUE=
5263 MS_LIB_AVAILABLE_FALSE='#'
5265 MS_LIB_AVAILABLE_TRUE='#'
5266 MS_LIB_AVAILABLE_FALSE=
5270 if test "$glib_native_win32" != yes; then
5271 # libtool option to control which symbols are exported
5272 # right now, symbols starting with _ are not exported
5273 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^g.*"'
5275 # We currently use .def files on Windows
5276 LIBTOOL_EXPORT_OPTIONS=
5280 if test "x$glib_have_carbon" = "xyes"; then
5282 $as_echo "#define HAVE_CARBON 1" >>confdefs.h
5284 LDFLAGS="$LDFLAGS -framework Carbon"
5287 if test "x$glib_have_cocoa" = "xyes"; then
5289 $as_echo "#define HAVE_COCOA 1" >>confdefs.h
5291 LDFLAGS="$LDFLAGS -framework Foundation"
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5295 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5296 if ${ac_cv_path_GREP+:} false; then :
5297 $as_echo_n "(cached) " >&6
5299 if test -z "$GREP"; then
5300 ac_path_GREP_found=false
5301 # Loop through the user's path and test for each of PROGNAME-LIST
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5306 test -z "$as_dir" && as_dir=.
5307 for ac_prog in grep ggrep; do
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5310 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5311 # Check for GNU ac_path_GREP and select it if it is found.
5312 # Check for GNU $ac_path_GREP
5313 case `"$ac_path_GREP" --version 2>&1` in
5315 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5318 $as_echo_n 0123456789 >"conftest.in"
5321 cat "conftest.in" "conftest.in" >"conftest.tmp"
5322 mv "conftest.tmp" "conftest.in"
5323 cp "conftest.in" "conftest.nl"
5324 $as_echo 'GREP' >> "conftest.nl"
5325 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5327 as_fn_arith $ac_count + 1 && ac_count=$as_val
5328 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5329 # Best one so far, save it but keep looking for a better one
5330 ac_cv_path_GREP="$ac_path_GREP"
5331 ac_path_GREP_max=$ac_count
5333 # 10*(2^10) chars as input seems more than enough
5334 test $ac_count -gt 10 && break
5336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5339 $ac_path_GREP_found && break 3
5344 if test -z "$ac_cv_path_GREP"; then
5345 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5348 ac_cv_path_GREP=$GREP
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5353 $as_echo "$ac_cv_path_GREP" >&6; }
5354 GREP="$ac_cv_path_GREP"
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5358 $as_echo_n "checking for egrep... " >&6; }
5359 if ${ac_cv_path_EGREP+:} false; then :
5360 $as_echo_n "(cached) " >&6
5362 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5363 then ac_cv_path_EGREP="$GREP -E"
5365 if test -z "$EGREP"; then
5366 ac_path_EGREP_found=false
5367 # Loop through the user's path and test for each of PROGNAME-LIST
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5372 test -z "$as_dir" && as_dir=.
5373 for ac_prog in egrep; do
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5376 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5377 # Check for GNU ac_path_EGREP and select it if it is found.
5378 # Check for GNU $ac_path_EGREP
5379 case `"$ac_path_EGREP" --version 2>&1` in
5381 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5384 $as_echo_n 0123456789 >"conftest.in"
5387 cat "conftest.in" "conftest.in" >"conftest.tmp"
5388 mv "conftest.tmp" "conftest.in"
5389 cp "conftest.in" "conftest.nl"
5390 $as_echo 'EGREP' >> "conftest.nl"
5391 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5393 as_fn_arith $ac_count + 1 && ac_count=$as_val
5394 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5395 # Best one so far, save it but keep looking for a better one
5396 ac_cv_path_EGREP="$ac_path_EGREP"
5397 ac_path_EGREP_max=$ac_count
5399 # 10*(2^10) chars as input seems more than enough
5400 test $ac_count -gt 10 && break
5402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5405 $ac_path_EGREP_found && break 3
5410 if test -z "$ac_cv_path_EGREP"; then
5411 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5414 ac_cv_path_EGREP=$EGREP
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5420 $as_echo "$ac_cv_path_EGREP" >&6; }
5421 EGREP="$ac_cv_path_EGREP"
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
5426 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
5427 if ${ac_cv_gnu_library_2_1+:} false; then :
5428 $as_echo_n "(cached) " >&6
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5433 #include <features.h>
5434 #ifdef __GNU_LIBRARY__
5435 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5442 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5443 ac_cv_gnu_library_2_1=yes
5445 ac_cv_gnu_library_2_1=no
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
5453 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
5455 GLIBC21="$ac_cv_gnu_library_2_1"
5458 if test "x$GLIBC21" = "xyes"; then
5460 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5464 # Check whether --enable-debug was given.
5465 if test "${enable_debug+set}" = set; then :
5466 enableval=$enable_debug;
5468 enable_debug=minimum
5472 # Check whether --enable-gc_friendly was given.
5473 if test "${enable_gc_friendly+set}" = set; then :
5474 enableval=$enable_gc_friendly;
5476 enable_gc_friendly=no
5479 # Check whether --enable-mem_pools was given.
5480 if test "${enable_mem_pools+set}" = set; then :
5481 enableval=$enable_mem_pools;
5483 disable_mem_pools=no
5486 # Check whether --enable-rebuilds was given.
5487 if test "${enable_rebuilds+set}" = set; then :
5488 enableval=$enable_rebuilds;
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable garbage collector friendliness" >&5
5495 $as_echo_n "checking whether to enable garbage collector friendliness... " >&6; }
5496 if test "x$enable_gc_friendly" = "xyes"; then
5498 $as_echo "#define ENABLE_GC_FRIENDLY_DEFAULT 1" >>confdefs.h
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5501 $as_echo "yes" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable memory pools" >&5
5508 $as_echo_n "checking whether to disable memory pools... " >&6; }
5509 if test "x$disable_mem_pools" = "xno"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5514 $as_echo "#define DISABLE_MEM_POOLS 1" >>confdefs.h
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5517 $as_echo "yes" >&6; }
5521 # Check whether --with-runtime-libdir was given.
5522 if test "${with_runtime_libdir+set}" = set; then :
5523 withval=$with_runtime_libdir;
5525 with_runtime_libdir=""
5528 GLIB_RUNTIME_LIBDIR="$with_runtime_libdir"
5529 ABS_GLIB_RUNTIME_LIBDIR="`readlink -f $libdir/$with_runtime_libdir`"
5532 if test "x$with_runtime_libdir" != "x"; then
5533 HAVE_GLIB_RUNTIME_LIBDIR_TRUE=
5534 HAVE_GLIB_RUNTIME_LIBDIR_FALSE='#'
5536 HAVE_GLIB_RUNTIME_LIBDIR_TRUE='#'
5537 HAVE_GLIB_RUNTIME_LIBDIR_FALSE=
5541 if test -n "$ac_tool_prefix"; then
5542 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_CXX+:} false; then :
5549 $as_echo_n "(cached) " >&6
5551 if test -n "$CXX"; then
5552 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 if test -n "$CXX"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5574 $as_echo "$CXX" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5581 test -n "$CXX" && break
5584 if test -z "$CXX"; then
5586 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5588 # Extract the first word of "$ac_prog", so it can be a program name with args.
5589 set dummy $ac_prog; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5593 $as_echo_n "(cached) " >&6
5595 if test -n "$ac_ct_CXX"; then
5596 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_prog_ac_ct_CXX="$ac_prog"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5616 if test -n "$ac_ct_CXX"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5618 $as_echo "$ac_ct_CXX" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5625 test -n "$ac_ct_CXX" && break
5628 if test "x$ac_ct_CXX" = x; then
5631 case $cross_compiling:$ac_tool_warned in
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635 ac_tool_warned=yes ;;
5643 ac_cpp='$CXXCPP $CPPFLAGS'
5644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5649 ac_cpp='$CXXCPP $CPPFLAGS'
5650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5653 if test -z "$CXX"; then
5654 if test -n "$CCC"; then
5657 if test -n "$ac_tool_prefix"; then
5658 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_CXX+:} false; then :
5665 $as_echo_n "(cached) " >&6
5667 if test -n "$CXX"; then
5668 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 if test -n "$CXX"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5690 $as_echo "$CXX" >&6; }
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5697 test -n "$CXX" && break
5700 if test -z "$CXX"; then
5702 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5704 # Extract the first word of "$ac_prog", so it can be a program name with args.
5705 set dummy $ac_prog; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5709 $as_echo_n "(cached) " >&6
5711 if test -n "$ac_ct_CXX"; then
5712 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721 ac_cv_prog_ac_ct_CXX="$ac_prog"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5732 if test -n "$ac_ct_CXX"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5734 $as_echo "$ac_ct_CXX" >&6; }
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5741 test -n "$ac_ct_CXX" && break
5744 if test "x$ac_ct_CXX" = x; then
5747 case $cross_compiling:$ac_tool_warned in
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5751 ac_tool_warned=yes ;;
5759 # Provide some information about the compiler.
5760 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5763 for ac_option in --version -v -V -qversion; do
5764 { { ac_try="$ac_compiler $ac_option >&5"
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5770 $as_echo "$ac_try_echo"; } >&5
5771 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5773 if test -s conftest.err; then
5775 ... rest of stderr output deleted ...
5776 10q' conftest.err >conftest.er1
5777 cat conftest.er1 >&5
5779 rm -f conftest.er1 conftest.err
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5785 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5786 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5787 $as_echo_n "(cached) " >&6
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5803 if ac_fn_cxx_try_compile "$LINENO"; then :
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5813 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5814 if test $ac_compiler_gnu = yes; then
5819 ac_test_CXXFLAGS=${CXXFLAGS+set}
5820 ac_save_CXXFLAGS=$CXXFLAGS
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5822 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5823 if ${ac_cv_prog_cxx_g+:} false; then :
5824 $as_echo_n "(cached) " >&6
5826 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5827 ac_cxx_werror_flag=yes
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5841 if ac_fn_cxx_try_compile "$LINENO"; then :
5842 ac_cv_prog_cxx_g=yes
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5856 if ac_fn_cxx_try_compile "$LINENO"; then :
5859 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5872 if ac_fn_cxx_try_compile "$LINENO"; then :
5873 ac_cv_prog_cxx_g=yes
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5883 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5884 if test "$ac_test_CXXFLAGS" = set; then
5885 CXXFLAGS=$ac_save_CXXFLAGS
5886 elif test $ac_cv_prog_cxx_g = yes; then
5887 if test "$GXX" = yes; then
5893 if test "$GXX" = yes; then
5900 ac_cpp='$CXXCPP $CPPFLAGS'
5901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5905 depcc="$CXX" am_compiler_list=
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5908 $as_echo_n "checking dependency style of $depcc... " >&6; }
5909 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5910 $as_echo_n "(cached) " >&6
5912 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5913 # We make a subdir and do the tests there. Otherwise we can end up
5914 # making bogus files that we don't know about and never remove. For
5915 # instance it was reported that on HP-UX the gcc test will end up
5916 # making a dummy file named `D' -- because `-MD' means `put the output
5920 # Copy depcomp to subdir because otherwise we won't find it if we're
5921 # using a relative directory.
5922 cp "$am_depcomp" conftest.dir
5924 # We will build objects and dependencies in a subdirectory because
5925 # it helps to detect inapplicable dependency modes. For instance
5926 # both Tru64's cc and ICC support -MD to output dependencies as a
5927 # side effect of compilation, but ICC will put the dependencies in
5928 # the current directory while Tru64 will put them in the object
5932 am_cv_CXX_dependencies_compiler_type=none
5933 if test "$am_compiler_list" = ""; then
5934 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5937 case " $depcc " in #(
5938 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5941 for depmode in $am_compiler_list; do
5942 # Setup a source with many dependencies, because some compilers
5943 # like to wrap large dependency lists on column 80 (with \), and
5944 # we should not choose a depcomp mode which is confused by this.
5946 # We need to recreate these files for each test, as the compiler may
5947 # overwrite some of them when testing with obscure command lines.
5948 # This happens at least with the AIX C compiler.
5950 for i in 1 2 3 4 5 6; do
5951 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5952 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5953 # Solaris 8's {/usr,}/bin/sh.
5954 touch sub/conftst$i.h
5956 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5958 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5959 # mode. It turns out that the SunPro C++ compiler does not properly
5960 # handle `-M -o', and we need to detect this. Also, some Intel
5961 # versions had trouble with output in subdirs
5962 am__obj=sub/conftest.${OBJEXT-o}
5963 am__minus_obj="-o $am__obj"
5966 # This depmode causes a compiler race in universal mode.
5967 test "$am__universal" = false || continue
5970 # after this tag, mechanisms are not by side-effect, so they'll
5971 # only be used when explicitly requested
5972 if test "x$enable_dependency_tracking" = xyes; then
5978 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5979 # This compiler won't grok `-c -o', but also, the minuso test has
5980 # not run yet. These depmodes are late enough in the game, and
5981 # so weak that their functioning should not be impacted.
5982 am__obj=conftest.${OBJEXT-o}
5987 if depmode=$depmode \
5988 source=sub/conftest.c object=$am__obj \
5989 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5990 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5991 >/dev/null 2>conftest.err &&
5992 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5993 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5994 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5995 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5996 # icc doesn't choke on unknown options, it will just issue warnings
5997 # or remarks (even with -Werror). So we grep stderr for any message
5998 # that says an option was ignored or not supported.
5999 # When given -MP, icc 7.0 and 7.1 complain thusly:
6000 # icc: Command line warning: ignoring option '-M'; no argument required
6001 # The diagnosis changed in icc 8.0:
6002 # icc: Command line remark: option '-MP' not supported
6003 if (grep 'ignoring option' conftest.err ||
6004 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6005 am_cv_CXX_dependencies_compiler_type=$depmode
6014 am_cv_CXX_dependencies_compiler_type=none
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6019 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6020 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6023 test "x$enable_dependency_tracking" != xno \
6024 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6025 am__fastdepCXX_TRUE=
6026 am__fastdepCXX_FALSE='#'
6028 am__fastdepCXX_TRUE='#'
6029 am__fastdepCXX_FALSE=
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6040 class a { int b; } c;
6045 if ac_fn_cxx_try_compile "$LINENO"; then :
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 if test "$CXX" != ""; then
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6067 ac_cpp='$CPP $CPPFLAGS'
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071 if test -n "$ac_tool_prefix"; then
6072 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6073 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_CC+:} false; then :
6077 $as_echo_n "(cached) " >&6
6079 if test -n "$CC"; then
6080 ac_cv_prog_CC="$CC" # Let the user override the test.
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 if test -n "$CC"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6102 $as_echo "$CC" >&6; }
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6110 if test -z "$ac_cv_prog_CC"; then
6112 # Extract the first word of "gcc", so it can be a program name with args.
6113 set dummy gcc; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6117 $as_echo_n "(cached) " >&6
6119 if test -n "$ac_ct_CC"; then
6120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129 ac_cv_prog_ac_ct_CC="gcc"
6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6140 if test -n "$ac_ct_CC"; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6142 $as_echo "$ac_ct_CC" >&6; }
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6148 if test "x$ac_ct_CC" = x; then
6151 case $cross_compiling:$ac_tool_warned in
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6155 ac_tool_warned=yes ;;
6163 if test -z "$CC"; then
6164 if test -n "$ac_tool_prefix"; then
6165 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6166 set dummy ${ac_tool_prefix}cc; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_CC+:} false; then :
6170 $as_echo_n "(cached) " >&6
6172 if test -n "$CC"; then
6173 ac_cv_prog_CC="$CC" # Let the user override the test.
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182 ac_cv_prog_CC="${ac_tool_prefix}cc"
6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 if test -n "$CC"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6195 $as_echo "$CC" >&6; }
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6204 if test -z "$CC"; then
6205 # Extract the first word of "cc", so it can be a program name with args.
6206 set dummy cc; ac_word=$2
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if ${ac_cv_prog_CC+:} false; then :
6210 $as_echo_n "(cached) " >&6
6212 if test -n "$CC"; then
6213 ac_cv_prog_CC="$CC" # Let the user override the test.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6224 ac_prog_rejected=yes
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 if test $ac_prog_rejected = yes; then
6236 # We found a bogon in the path, so make sure we never use it.
6237 set dummy $ac_cv_prog_CC
6239 if test $# != 0; then
6240 # We chose a different compiler from the bogus one.
6241 # However, it has the same basename, so the bogon will be chosen
6242 # first if we set CC to just the basename; use the full file name.
6244 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6250 if test -n "$CC"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6252 $as_echo "$CC" >&6; }
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6260 if test -z "$CC"; then
6261 if test -n "$ac_tool_prefix"; then
6262 for ac_prog in cl.exe
6264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_CC+:} false; then :
6269 $as_echo_n "(cached) " >&6
6271 if test -n "$CC"; then
6272 ac_cv_prog_CC="$CC" # Let the user override the test.
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 if test -n "$CC"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6294 $as_echo "$CC" >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6301 test -n "$CC" && break
6304 if test -z "$CC"; then
6306 for ac_prog in cl.exe
6308 # Extract the first word of "$ac_prog", so it can be a program name with args.
6309 set dummy $ac_prog; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6313 $as_echo_n "(cached) " >&6
6315 if test -n "$ac_ct_CC"; then
6316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_prog_ac_ct_CC="$ac_prog"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6336 if test -n "$ac_ct_CC"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6338 $as_echo "$ac_ct_CC" >&6; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6345 test -n "$ac_ct_CC" && break
6348 if test "x$ac_ct_CC" = x; then
6351 case $cross_compiling:$ac_tool_warned in
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6364 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6366 as_fn_error $? "no acceptable C compiler found in \$PATH
6367 See \`config.log' for more details" "$LINENO" 5; }
6369 # Provide some information about the compiler.
6370 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6373 for ac_option in --version -v -V -qversion; do
6374 { { ac_try="$ac_compiler $ac_option >&5"
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6380 $as_echo "$ac_try_echo"; } >&5
6381 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6383 if test -s conftest.err; then
6385 ... rest of stderr output deleted ...
6386 10q' conftest.err >conftest.er1
6387 cat conftest.er1 >&5
6389 rm -f conftest.er1 conftest.err
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6395 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6396 if ${ac_cv_c_compiler_gnu+:} false; then :
6397 $as_echo_n "(cached) " >&6
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6413 if ac_fn_c_try_compile "$LINENO"; then :
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6423 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6424 if test $ac_compiler_gnu = yes; then
6429 ac_test_CFLAGS=${CFLAGS+set}
6430 ac_save_CFLAGS=$CFLAGS
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6432 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6433 if ${ac_cv_prog_cc_g+:} false; then :
6434 $as_echo_n "(cached) " >&6
6436 ac_save_c_werror_flag=$ac_c_werror_flag
6437 ac_c_werror_flag=yes
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6451 if ac_fn_c_try_compile "$LINENO"; then :
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6466 if ac_fn_c_try_compile "$LINENO"; then :
6469 ac_c_werror_flag=$ac_save_c_werror_flag
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6482 if ac_fn_c_try_compile "$LINENO"; then :
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490 ac_c_werror_flag=$ac_save_c_werror_flag
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6493 $as_echo "$ac_cv_prog_cc_g" >&6; }
6494 if test "$ac_test_CFLAGS" = set; then
6495 CFLAGS=$ac_save_CFLAGS
6496 elif test $ac_cv_prog_cc_g = yes; then
6497 if test "$GCC" = yes; then
6503 if test "$GCC" = yes; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6510 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6511 if ${ac_cv_prog_cc_c89+:} false; then :
6512 $as_echo_n "(cached) " >&6
6514 ac_cv_prog_cc_c89=no
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6520 #include <sys/types.h>
6521 #include <sys/stat.h>
6522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6523 struct buf { int x; };
6524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6525 static char *e (p, i)
6531 static char *f (char * (*g) (char **, int), char **p, ...)
6536 s = g (p, va_arg (v,int));
6541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6542 function prototypes and stuff, but not '\xHH' hex character constants.
6543 These don't provoke an error unfortunately, instead are silently treated
6544 as 'x'. The following induces an error, until -std is added to get
6545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6546 array size at least. It's necessary to write '\x00'==0 to get something
6547 that's true only with -std. */
6548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6550 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6551 inside strings and character constants. */
6553 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6555 int test (int i, double x);
6556 struct s1 {int (*f) (int a);};
6557 struct s2 {int (*f) (double a);};
6558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6564 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6569 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6570 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6572 CC="$ac_save_CC $ac_arg"
6573 if ac_fn_c_try_compile "$LINENO"; then :
6574 ac_cv_prog_cc_c89=$ac_arg
6576 rm -f core conftest.err conftest.$ac_objext
6577 test "x$ac_cv_prog_cc_c89" != "xno" && break
6579 rm -f conftest.$ac_ext
6584 case "x$ac_cv_prog_cc_c89" in
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6587 $as_echo "none needed" >&6; } ;;
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6590 $as_echo "unsupported" >&6; } ;;
6592 CC="$CC $ac_cv_prog_cc_c89"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6594 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6596 if test "x$ac_cv_prog_cc_c89" != xno; then :
6601 ac_cpp='$CPP $CPPFLAGS'
6602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606 depcc="$CC" am_compiler_list=
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6609 $as_echo_n "checking dependency style of $depcc... " >&6; }
6610 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6611 $as_echo_n "(cached) " >&6
6613 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6614 # We make a subdir and do the tests there. Otherwise we can end up
6615 # making bogus files that we don't know about and never remove. For
6616 # instance it was reported that on HP-UX the gcc test will end up
6617 # making a dummy file named `D' -- because `-MD' means `put the output
6621 # Copy depcomp to subdir because otherwise we won't find it if we're
6622 # using a relative directory.
6623 cp "$am_depcomp" conftest.dir
6625 # We will build objects and dependencies in a subdirectory because
6626 # it helps to detect inapplicable dependency modes. For instance
6627 # both Tru64's cc and ICC support -MD to output dependencies as a
6628 # side effect of compilation, but ICC will put the dependencies in
6629 # the current directory while Tru64 will put them in the object
6633 am_cv_CC_dependencies_compiler_type=none
6634 if test "$am_compiler_list" = ""; then
6635 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6638 case " $depcc " in #(
6639 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6642 for depmode in $am_compiler_list; do
6643 # Setup a source with many dependencies, because some compilers
6644 # like to wrap large dependency lists on column 80 (with \), and
6645 # we should not choose a depcomp mode which is confused by this.
6647 # We need to recreate these files for each test, as the compiler may
6648 # overwrite some of them when testing with obscure command lines.
6649 # This happens at least with the AIX C compiler.
6651 for i in 1 2 3 4 5 6; do
6652 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6653 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6654 # Solaris 8's {/usr,}/bin/sh.
6655 touch sub/conftst$i.h
6657 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6659 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6660 # mode. It turns out that the SunPro C++ compiler does not properly
6661 # handle `-M -o', and we need to detect this. Also, some Intel
6662 # versions had trouble with output in subdirs
6663 am__obj=sub/conftest.${OBJEXT-o}
6664 am__minus_obj="-o $am__obj"
6667 # This depmode causes a compiler race in universal mode.
6668 test "$am__universal" = false || continue
6671 # after this tag, mechanisms are not by side-effect, so they'll
6672 # only be used when explicitly requested
6673 if test "x$enable_dependency_tracking" = xyes; then
6679 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6680 # This compiler won't grok `-c -o', but also, the minuso test has
6681 # not run yet. These depmodes are late enough in the game, and
6682 # so weak that their functioning should not be impacted.
6683 am__obj=conftest.${OBJEXT-o}
6688 if depmode=$depmode \
6689 source=sub/conftest.c object=$am__obj \
6690 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6691 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6692 >/dev/null 2>conftest.err &&
6693 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6694 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6695 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6696 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6697 # icc doesn't choke on unknown options, it will just issue warnings
6698 # or remarks (even with -Werror). So we grep stderr for any message
6699 # that says an option was ignored or not supported.
6700 # When given -MP, icc 7.0 and 7.1 complain thusly:
6701 # icc: Command line warning: ignoring option '-M'; no argument required
6702 # The diagnosis changed in icc 8.0:
6703 # icc: Command line remark: option '-MP' not supported
6704 if (grep 'ignoring option' conftest.err ||
6705 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6706 am_cv_CC_dependencies_compiler_type=$depmode
6715 am_cv_CC_dependencies_compiler_type=none
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6720 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6721 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6724 test "x$enable_dependency_tracking" != xno \
6725 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6727 am__fastdepCC_FALSE='#'
6729 am__fastdepCC_TRUE='#'
6730 am__fastdepCC_FALSE=
6735 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6737 if test "x$CC" != xcc; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6739 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6742 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6744 set dummy $CC; ac_cc=`$as_echo "$2" |
6745 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6746 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6747 $as_echo_n "(cached) " >&6
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6760 # Make sure it works both with $CC and with simple cc.
6761 # We do the test twice because some compilers refuse to overwrite an
6762 # existing .o file with -o, though they will create one.
6763 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6765 if { { case "(($ac_try" in
6766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767 *) ac_try_echo=$ac_try;;
6769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6770 $as_echo "$ac_try_echo"; } >&5
6771 (eval "$ac_try") 2>&5
6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774 test $ac_status = 0; } &&
6775 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6780 $as_echo "$ac_try_echo"; } >&5
6781 (eval "$ac_try") 2>&5
6783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784 test $ac_status = 0; };
6786 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6787 if test "x$CC" != xcc; then
6788 # Test first that cc exists at all.
6789 if { ac_try='cc -c conftest.$ac_ext >&5'
6790 { { case "(($ac_try" in
6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792 *) ac_try_echo=$ac_try;;
6794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6795 $as_echo "$ac_try_echo"; } >&5
6796 (eval "$ac_try") 2>&5
6798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799 test $ac_status = 0; }; }; then
6800 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6802 if { { case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6807 $as_echo "$ac_try_echo"; } >&5
6808 (eval "$ac_try") 2>&5
6810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6811 test $ac_status = 0; } &&
6812 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6817 $as_echo "$ac_try_echo"; } >&5
6818 (eval "$ac_try") 2>&5
6820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821 test $ac_status = 0; };
6826 # cc exists but doesn't like -o.
6827 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6832 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6834 rm -f core conftest*
6837 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6839 $as_echo "yes" >&6; }
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6844 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6848 # FIXME: we rely on the cache variable name because
6849 # there is no other way.
6851 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6852 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6853 if test "$am_t" != yes; then
6854 # Losing compiler, so override with the script.
6855 # FIXME: It is wrong to rewrite CC.
6856 # But if we don't then we get into trouble of one sort or another.
6857 # A longer-term fix would be to have automake use am__CC in this case,
6858 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6859 CC="$am_aux_dir/compile $CC"
6865 # Check whether --enable-largefile was given.
6866 if test "${enable_largefile+set}" = set; then :
6867 enableval=$enable_largefile;
6870 if test "$enable_largefile" != no; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6873 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6874 if ${ac_cv_sys_largefile_CC+:} false; then :
6875 $as_echo_n "(cached) " >&6
6877 ac_cv_sys_largefile_CC=no
6878 if test "$GCC" != yes; then
6881 # IRIX 6.2 and later do not support large files by default,
6882 # so use the C compiler's -n32 option if that helps.
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 #include <sys/types.h>
6886 /* Check that off_t can represent 2**63 - 1 correctly.
6887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6888 since some C++ compilers masquerading as C compilers
6889 incorrectly reject 9223372036854775807. */
6890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6892 && LARGE_OFF_T % 2147483647 == 1)
6902 if ac_fn_c_try_compile "$LINENO"; then :
6905 rm -f core conftest.err conftest.$ac_objext
6907 if ac_fn_c_try_compile "$LINENO"; then :
6908 ac_cv_sys_largefile_CC=' -n32'; break
6910 rm -f core conftest.err conftest.$ac_objext
6914 rm -f conftest.$ac_ext
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6918 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6919 if test "$ac_cv_sys_largefile_CC" != no; then
6920 CC=$CC$ac_cv_sys_largefile_CC
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6924 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6925 if ${ac_cv_sys_file_offset_bits+:} false; then :
6926 $as_echo_n "(cached) " >&6
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 #include <sys/types.h>
6932 /* Check that off_t can represent 2**63 - 1 correctly.
6933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6934 since some C++ compilers masquerading as C compilers
6935 incorrectly reject 9223372036854775807. */
6936 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6938 && LARGE_OFF_T % 2147483647 == 1)
6948 if ac_fn_c_try_compile "$LINENO"; then :
6949 ac_cv_sys_file_offset_bits=no; break
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 #define _FILE_OFFSET_BITS 64
6955 #include <sys/types.h>
6956 /* Check that off_t can represent 2**63 - 1 correctly.
6957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6958 since some C++ compilers masquerading as C compilers
6959 incorrectly reject 9223372036854775807. */
6960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6962 && LARGE_OFF_T % 2147483647 == 1)
6972 if ac_fn_c_try_compile "$LINENO"; then :
6973 ac_cv_sys_file_offset_bits=64; break
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 ac_cv_sys_file_offset_bits=unknown
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6981 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6982 case $ac_cv_sys_file_offset_bits in #(
6985 cat >>confdefs.h <<_ACEOF
6986 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6991 if test $ac_cv_sys_file_offset_bits = unknown; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6993 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6994 if ${ac_cv_sys_large_files+:} false; then :
6995 $as_echo_n "(cached) " >&6
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7000 #include <sys/types.h>
7001 /* Check that off_t can represent 2**63 - 1 correctly.
7002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7003 since some C++ compilers masquerading as C compilers
7004 incorrectly reject 9223372036854775807. */
7005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7007 && LARGE_OFF_T % 2147483647 == 1)
7017 if ac_fn_c_try_compile "$LINENO"; then :
7018 ac_cv_sys_large_files=no; break
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 #define _LARGE_FILES 1
7024 #include <sys/types.h>
7025 /* Check that off_t can represent 2**63 - 1 correctly.
7026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7027 since some C++ compilers masquerading as C compilers
7028 incorrectly reject 9223372036854775807. */
7029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7031 && LARGE_OFF_T % 2147483647 == 1)
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042 ac_cv_sys_large_files=1; break
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 ac_cv_sys_large_files=unknown
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7050 $as_echo "$ac_cv_sys_large_files" >&6; }
7051 case $ac_cv_sys_large_files in #(
7054 cat >>confdefs.h <<_ACEOF
7055 #define _LARGE_FILES $ac_cv_sys_large_files
7070 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7077 $as_echo_n "(cached) " >&6
7081 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7103 if test -n "$PKG_CONFIG"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7105 $as_echo "$PKG_CONFIG" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7113 if test -z "$ac_cv_path_PKG_CONFIG"; then
7114 ac_pt_PKG_CONFIG=$PKG_CONFIG
7115 # Extract the first word of "pkg-config", so it can be a program name with args.
7116 set dummy pkg-config; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7120 $as_echo_n "(cached) " >&6
7122 case $ac_pt_PKG_CONFIG in
7124 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7146 if test -n "$ac_pt_PKG_CONFIG"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7148 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7154 if test "x$ac_pt_PKG_CONFIG" = x; then
7157 case $cross_compiling:$ac_tool_warned in
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161 ac_tool_warned=yes ;;
7163 PKG_CONFIG=$ac_pt_PKG_CONFIG
7166 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7170 if test -n "$PKG_CONFIG"; then
7171 _pkg_min_version=0.16
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7173 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7174 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7176 $as_echo "yes" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7184 if test "x$enable_debug" = "xyes"; then
7185 if test x$cflags_set != xset ; then
7187 *[\ \ ]-g[\ \ ]*) ;;
7188 *) CFLAGS="$CFLAGS -g" ;;
7191 GLIB_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
7193 GLIB_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
7195 if test "x$enable_debug" = "xno"; then
7196 GLIB_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
7200 # Ensure MSVC-compatible struct packing convention is used when
7201 # compiling for Win32 with gcc.
7202 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
7203 # gcc2 uses "-fnative-struct".
7204 if test x"$glib_native_win32" = xyes; then
7205 if test x"$GCC" = xyes; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
7208 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
7209 if test -z "$ac_cv_prog_CC"; then
7212 our_gcc="$ac_cv_prog_CC"
7214 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
7216 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
7217 msnative_struct='-fnative-struct'
7221 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
7222 msnative_struct='-mms-bitfields'
7226 if test x"$msnative_struct" = x ; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
7228 $as_echo "no way" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
7230 $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
7232 CFLAGS="$CFLAGS $msnative_struct"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
7234 $as_echo "${msnative_struct}" >&6; }
7238 GLIB_EXTRA_CFLAGS="${msnative_struct}"
7243 # define a MAINT-like variable REBUILD which is set if Perl
7244 # and awk are found, so autogenerated sources can be rebuilt
7245 for ac_prog in gawk mawk nawk awk
7247 # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_AWK+:} false; then :
7252 $as_echo_n "(cached) " >&6
7254 if test -n "$AWK"; then
7255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_prog_AWK="$ac_prog"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 if test -n "$AWK"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7277 $as_echo "$AWK" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7284 test -n "$AWK" && break
7287 for ac_prog in perl5 perl
7289 # Extract the first word of "$ac_prog", so it can be a program name with args.
7290 set dummy $ac_prog; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_PERL+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 if test -n "$PERL"; then
7297 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306 ac_cv_prog_PERL="$ac_prog"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 PERL=$ac_cv_prog_PERL
7317 if test -n "$PERL"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7319 $as_echo "$PERL" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7326 test -n "$PERL" && break
7329 # We would like indent, but don't require it.
7330 # Extract the first word of "indent", so it can be a program name with args.
7331 set dummy indent; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_INDENT+:} false; then :
7335 $as_echo_n "(cached) " >&6
7337 if test -n "$INDENT"; then
7338 ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347 ac_cv_prog_INDENT="indent"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 INDENT=$ac_cv_prog_INDENT
7358 if test -n "$INDENT"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
7360 $as_echo "$INDENT" >&6; }
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7368 if test "x$enable_rebuilds" = "xyes" && \
7369 test -n "$PERL" && \
7370 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
7371 test -n "$AWK" ; then
7376 # Need full path to Perl for glib-mkenums
7378 if test "x$PERL" != x ; then
7379 # Extract the first word of "$PERL", so it can be a program name with args.
7380 set dummy $PERL; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_path_PERL_PATH+:} false; then :
7384 $as_echo_n "(cached) " >&6
7388 ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 PERL_PATH=$ac_cv_path_PERL_PATH
7410 if test -n "$PERL_PATH"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_PATH" >&5
7412 $as_echo "$PERL_PATH" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7420 if test "x$PERL_PATH" = x ; then
7421 PERL_PATH="/usr/bin/env perl"
7425 # Need suitable python path for greport
7432 if test -n "$PYTHON"; then
7433 # If the user set $PYTHON, use it and don't search something else.
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
7435 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
7437 # split strings by '.' and convert to numeric. Append some zeros
7438 # because we need at least 4 digits for the hex conversion.
7439 # map returns an iterator in Python 3.0 and a list in 2.x
7440 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7442 # xrange is not present in Python 3.0 and range returns an iterator
7443 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7444 sys.exit(sys.hexversion < minverhex)"
7445 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7446 ($PYTHON -c "$prog") >&5 2>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; then :
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7451 $as_echo "yes" >&6; }
7453 as_fn_error $? "too old" "$LINENO" 5
7455 am_display_PYTHON=$PYTHON
7457 # Otherwise, try each interpreter until we find one that satisfies
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
7460 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
7461 if ${am_cv_pathless_PYTHON+:} false; then :
7462 $as_echo_n "(cached) " >&6
7465 for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
7466 test "$am_cv_pathless_PYTHON" = none && break
7468 # split strings by '.' and convert to numeric. Append some zeros
7469 # because we need at least 4 digits for the hex conversion.
7470 # map returns an iterator in Python 3.0 and a list in 2.x
7471 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7473 # xrange is not present in Python 3.0 and range returns an iterator
7474 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7475 sys.exit(sys.hexversion < minverhex)"
7476 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7477 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; then :
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7486 $as_echo "$am_cv_pathless_PYTHON" >&6; }
7487 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7488 if test "$am_cv_pathless_PYTHON" = none; then
7491 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7492 set dummy $am_cv_pathless_PYTHON; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_path_PYTHON+:} false; then :
7496 $as_echo_n "(cached) " >&6
7500 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 PYTHON=$ac_cv_path_PYTHON
7522 if test -n "$PYTHON"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7524 $as_echo "$PYTHON" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7532 am_display_PYTHON=$am_cv_pathless_PYTHON
7536 if test "$PYTHON" = :; then
7537 PYTHON="/usr/bin/env python2.5"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7542 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7543 if ${am_cv_python_version+:} false; then :
7544 $as_echo_n "(cached) " >&6
7546 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7549 $as_echo "$am_cv_python_version" >&6; }
7550 PYTHON_VERSION=$am_cv_python_version
7554 PYTHON_PREFIX='${prefix}'
7556 PYTHON_EXEC_PREFIX='${exec_prefix}'
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7561 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7562 if ${am_cv_python_platform+:} false; then :
7563 $as_echo_n "(cached) " >&6
7565 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7568 $as_echo "$am_cv_python_platform" >&6; }
7569 PYTHON_PLATFORM=$am_cv_python_platform
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7575 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7576 if ${am_cv_python_pythondir+:} false; then :
7577 $as_echo_n "(cached) " >&6
7579 if test "x$prefix" = xNONE
7581 am_py_prefix=$ac_default_prefix
7583 am_py_prefix=$prefix
7585 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
7586 case $am_cv_python_pythondir in
7588 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7589 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7592 case $am_py_prefix in
7595 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7603 $as_echo "$am_cv_python_pythondir" >&6; }
7604 pythondir=$am_cv_python_pythondir
7608 pkgpythondir=\${pythondir}/$PACKAGE
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
7612 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
7613 if ${am_cv_python_pyexecdir+:} false; then :
7614 $as_echo_n "(cached) " >&6
7616 if test "x$exec_prefix" = xNONE
7618 am_py_exec_prefix=$am_py_prefix
7620 am_py_exec_prefix=$exec_prefix
7622 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
7623 case $am_cv_python_pyexecdir in
7624 $am_py_exec_prefix*)
7625 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
7626 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
7629 case $am_py_exec_prefix in
7632 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
7640 $as_echo "$am_cv_python_pyexecdir" >&6; }
7641 pyexecdir=$am_cv_python_pyexecdir
7645 pkgpyexecdir=\${pyexecdir}/$PACKAGE
7656 if test x"$glib_native_win32" = xyes; then
7657 with_libiconv=native
7660 # Check whether --with-libiconv was given.
7661 if test "${with_libiconv+set}" = set; then :
7662 withval=$with_libiconv;
7669 case $with_libiconv in
7671 # Check in the C library first
7672 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7673 if test "x$ac_cv_func_iconv_open" = xyes; then :
7674 with_libiconv=no; found_iconv=yes
7677 # Check if we have GNU libiconv
7678 if test $found_iconv = "no"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7680 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7681 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7682 $as_echo_n "(cached) " >&6
7684 ac_check_lib_save_LIBS=$LIBS
7685 LIBS="-liconv $LIBS"
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7689 /* Override any GCC internal prototype to avoid an error.
7690 Use char because int might match the return type of a GCC
7691 builtin and then its argument prototype would still apply. */
7695 char libiconv_open ();
7699 return libiconv_open ();
7704 if ac_fn_c_try_link "$LINENO"; then :
7705 ac_cv_lib_iconv_libiconv_open=yes
7707 ac_cv_lib_iconv_libiconv_open=no
7709 rm -f core conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7714 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7715 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7716 with_libiconv=gnu; found_iconv=yes
7720 # Check if we have a iconv in -liconv, possibly from vendor
7721 if test $found_iconv = "no"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7723 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7724 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7725 $as_echo_n "(cached) " >&6
7727 ac_check_lib_save_LIBS=$LIBS
7728 LIBS="-liconv $LIBS"
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7732 /* Override any GCC internal prototype to avoid an error.
7733 Use char because int might match the return type of a GCC
7734 builtin and then its argument prototype would still apply. */
7742 return iconv_open ();
7747 if ac_fn_c_try_link "$LINENO"; then :
7748 ac_cv_lib_iconv_iconv_open=yes
7750 ac_cv_lib_iconv_iconv_open=no
7752 rm -f core conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754 LIBS=$ac_check_lib_save_LIBS
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7757 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7758 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7759 with_libiconv=native; found_iconv=yes
7765 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7766 if test "x$ac_cv_func_iconv_open" = xyes; then :
7767 with_libiconv=no; found_iconv=yes
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7773 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7774 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7775 $as_echo_n "(cached) " >&6
7777 ac_check_lib_save_LIBS=$LIBS
7778 LIBS="-liconv $LIBS"
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7782 /* Override any GCC internal prototype to avoid an error.
7783 Use char because int might match the return type of a GCC
7784 builtin and then its argument prototype would still apply. */
7788 char libiconv_open ();
7792 return libiconv_open ();
7797 if ac_fn_c_try_link "$LINENO"; then :
7798 ac_cv_lib_iconv_libiconv_open=yes
7800 ac_cv_lib_iconv_libiconv_open=no
7802 rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804 LIBS=$ac_check_lib_save_LIBS
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7807 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7808 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7809 with_libiconv=gnu; found_iconv=yes
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7815 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7816 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7817 $as_echo_n "(cached) " >&6
7819 ac_check_lib_save_LIBS=$LIBS
7820 LIBS="-liconv $LIBS"
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7824 /* Override any GCC internal prototype to avoid an error.
7825 Use char because int might match the return type of a GCC
7826 builtin and then its argument prototype would still apply. */
7834 return iconv_open ();
7839 if ac_fn_c_try_link "$LINENO"; then :
7840 ac_cv_lib_iconv_iconv_open=yes
7842 ac_cv_lib_iconv_iconv_open=no
7844 rm -f core conftest.err conftest.$ac_objext \
7845 conftest$ac_exeext conftest.$ac_ext
7846 LIBS=$ac_check_lib_save_LIBS
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7849 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7850 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7851 with_libiconv=native; found_iconv=yes
7857 if test "x$found_iconv" = "xno" ; then
7858 as_fn_error $? "*** No iconv() implementation found in C library or libiconv" "$LINENO" 5
7862 # Check whether --enable-iconv-cache was given.
7863 if test "${enable_iconv_cache+set}" = set; then :
7864 enableval=$enable_iconv_cache;
7866 enable_iconv_cache=auto
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to cache iconv descriptors" >&5
7871 $as_echo_n "checking whether to cache iconv descriptors... " >&6; }
7872 case $enable_iconv_cache in
7874 if test $ac_cv_gnu_library_2_1 = yes; then
7875 enable_iconv_cache=no
7877 enable_iconv_cache=yes
7882 *) as_fn_error $? "Value given to --enable-iconv-cache must be one of yes, no or auto" "$LINENO" 5
7886 if test $enable_iconv_cache = yes; then
7888 $as_echo "#define NEED_ICONV_CACHE 1" >>confdefs.h
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_iconv_cache" >&5
7893 $as_echo "$enable_iconv_cache" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
7899 $as_echo_n "checking for ZLIB... " >&6; }
7901 if test -n "$ZLIB_CFLAGS"; then
7902 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
7903 elif test -n "$PKG_CONFIG"; then
7904 if test -n "$PKG_CONFIG" && \
7905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
7906 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
7908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7909 test $ac_status = 0; }; then
7910 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
7917 if test -n "$ZLIB_LIBS"; then
7918 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
7919 elif test -n "$PKG_CONFIG"; then
7920 if test -n "$PKG_CONFIG" && \
7921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
7922 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
7924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7925 test $ac_status = 0; }; then
7926 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
7936 if test $pkg_failed = yes; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7940 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7941 _pkg_short_errors_supported=yes
7943 _pkg_short_errors_supported=no
7945 if test $_pkg_short_errors_supported = yes; then
7946 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "zlib" 2>&1`
7948 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "zlib" 2>&1`
7950 # Put the nasty error message in config.log where it belongs
7951 echo "$ZLIB_PKG_ERRORS" >&5
7954 elif test $pkg_failed = untried; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7959 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
7960 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7962 $as_echo "yes" >&6; }
7965 if test "x$found_zlib" = "xno" ; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7967 $as_echo_n "checking for ANSI C header files... " >&6; }
7968 if ${ac_cv_header_stdc+:} false; then :
7969 $as_echo_n "(cached) " >&6
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7986 if ac_fn_c_try_compile "$LINENO"; then :
7987 ac_cv_header_stdc=yes
7989 ac_cv_header_stdc=no
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993 if test $ac_cv_header_stdc = yes; then
7994 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
8000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8001 $EGREP "memchr" >/dev/null 2>&1; then :
8004 ac_cv_header_stdc=no
8010 if test $ac_cv_header_stdc = yes; then
8011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8018 $EGREP "free" >/dev/null 2>&1; then :
8021 ac_cv_header_stdc=no
8027 if test $ac_cv_header_stdc = yes; then
8028 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8029 if test "$cross_compiling" = yes; then :
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8036 #if ((' ' & 0x0FF) == 0x020)
8037 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8038 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8040 # define ISLOWER(c) \
8041 (('a' <= (c) && (c) <= 'i') \
8042 || ('j' <= (c) && (c) <= 'r') \
8043 || ('s' <= (c) && (c) <= 'z'))
8044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8052 for (i = 0; i < 256; i++)
8053 if (XOR (islower (i), ISLOWER (i))
8054 || toupper (i) != TOUPPER (i))
8059 if ac_fn_c_try_run "$LINENO"; then :
8062 ac_cv_header_stdc=no
8064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8065 conftest.$ac_objext conftest.beam conftest.$ac_ext
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8071 $as_echo "$ac_cv_header_stdc" >&6; }
8072 if test $ac_cv_header_stdc = yes; then
8074 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8078 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8079 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8080 inttypes.h stdint.h unistd.h
8082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8083 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8085 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8086 cat >>confdefs.h <<_ACEOF
8087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8096 $as_echo_n "checking for inflate in -lz... " >&6; }
8097 if ${ac_cv_lib_z_inflate+:} false; then :
8098 $as_echo_n "(cached) " >&6
8100 ac_check_lib_save_LIBS=$LIBS
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8105 /* Override any GCC internal prototype to avoid an error.
8106 Use char because int might match the return type of a GCC
8107 builtin and then its argument prototype would still apply. */
8120 if ac_fn_c_try_link "$LINENO"; then :
8121 ac_cv_lib_z_inflate=yes
8123 ac_cv_lib_z_inflate=no
8125 rm -f core conftest.err conftest.$ac_objext \
8126 conftest$ac_exeext conftest.$ac_ext
8127 LIBS=$ac_check_lib_save_LIBS
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8130 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8131 if test "x$ac_cv_lib_z_inflate" = xyes; then :
8132 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8133 if test "x$ac_cv_header_zlib_h" = xyes; then :
8140 if test "x$found_zlib" = "xno" ; then
8141 as_fn_error $? "*** Working zlib library and headers not found ***" "$LINENO" 5
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
8150 $as_echo_n "checking for LIBFFI... " >&6; }
8152 if test -n "$LIBFFI_CFLAGS"; then
8153 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
8154 elif test -n "$PKG_CONFIG"; then
8155 if test -n "$PKG_CONFIG" && \
8156 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5
8157 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5
8159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8160 test $ac_status = 0; }; then
8161 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.0" 2>/dev/null`
8168 if test -n "$LIBFFI_LIBS"; then
8169 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
8170 elif test -n "$PKG_CONFIG"; then
8171 if test -n "$PKG_CONFIG" && \
8172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5
8173 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5
8175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8176 test $ac_status = 0; }; then
8177 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.0" 2>/dev/null`
8187 if test $pkg_failed = yes; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8192 _pkg_short_errors_supported=yes
8194 _pkg_short_errors_supported=no
8196 if test $_pkg_short_errors_supported = yes; then
8197 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi >= 3.0.0" 2>&1`
8199 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi >= 3.0.0" 2>&1`
8201 # Put the nasty error message in config.log where it belongs
8202 echo "$LIBFFI_PKG_ERRORS" >&5
8204 as_fn_error $? "Package requirements (libffi >= 3.0.0) were not met:
8208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8209 installed software in a non-standard prefix.
8211 Alternatively, you may set the environment variables LIBFFI_CFLAGS
8212 and LIBFFI_LIBS to avoid the need to call pkg-config.
8213 See the pkg-config man page for more details." "$LINENO" 5
8215 elif test $pkg_failed = untried; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8220 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8221 is in your PATH or set the PKG_CONFIG environment variable to the full
8224 Alternatively, you may set the environment variables LIBFFI_CFLAGS
8225 and LIBFFI_LIBS to avoid the need to call pkg-config.
8226 See the pkg-config man page for more details.
8228 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8229 See \`config.log' for more details" "$LINENO" 5; }
8232 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
8233 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8235 $as_echo "yes" >&6; }
8242 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
8243 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/po/LINGUAS'
8246 for ac_header in locale.h
8248 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8249 if test "x$ac_cv_header_locale_h" = xyes; then :
8250 cat >>confdefs.h <<_ACEOF
8251 #define HAVE_LOCALE_H 1
8258 if test $ac_cv_header_locale_h = yes; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8260 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8261 if ${am_cv_val_LC_MESSAGES+:} false; then :
8262 $as_echo_n "(cached) " >&6
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8275 if ac_fn_c_try_link "$LINENO"; then :
8276 am_cv_val_LC_MESSAGES=yes
8278 am_cv_val_LC_MESSAGES=no
8280 rm -f core conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8284 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8285 if test $am_cv_val_LC_MESSAGES = yes; then
8287 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8294 gt_cv_have_gettext=no
8300 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
8301 if test "x$ac_cv_header_libintl_h" = xyes; then :
8302 gt_cv_func_dgettext_libintl="no"
8303 libintl_extra_libs=""
8306 # First check in libc
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
8309 $as_echo_n "checking for ngettext in libc... " >&6; }
8310 if ${gt_cv_func_ngettext_libc+:} false; then :
8311 $as_echo_n "(cached) " >&6
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8316 #include <libintl.h>
8321 return !ngettext ("","", 1)
8326 if ac_fn_c_try_link "$LINENO"; then :
8327 gt_cv_func_ngettext_libc=yes
8329 gt_cv_func_ngettext_libc=no
8331 rm -f core conftest.err conftest.$ac_objext \
8332 conftest$ac_exeext conftest.$ac_ext
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
8336 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
8338 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
8340 $as_echo_n "checking for dgettext in libc... " >&6; }
8341 if ${gt_cv_func_dgettext_libc+:} false; then :
8342 $as_echo_n "(cached) " >&6
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8347 #include <libintl.h>
8352 return !dgettext ("","")
8357 if ac_fn_c_try_link "$LINENO"; then :
8358 gt_cv_func_dgettext_libc=yes
8360 gt_cv_func_dgettext_libc=no
8362 rm -f core conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
8367 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
8370 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8371 for ac_func in bind_textdomain_codeset
8373 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8374 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8375 cat >>confdefs.h <<_ACEOF
8376 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8385 # If we don't have everything we want, check in libintl
8387 if test "$gt_cv_func_dgettext_libc" != "yes" \
8388 || test "$gt_cv_func_ngettext_libc" != "yes" \
8389 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
8392 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
8393 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
8394 $as_echo_n "(cached) " >&6
8396 ac_check_lib_save_LIBS=$LIBS
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8401 /* Override any GCC internal prototype to avoid an error.
8402 Use char because int might match the return type of a GCC
8403 builtin and then its argument prototype would still apply. */
8407 char bindtextdomain ();
8411 return bindtextdomain ();
8416 if ac_fn_c_try_link "$LINENO"; then :
8417 ac_cv_lib_intl_bindtextdomain=yes
8419 ac_cv_lib_intl_bindtextdomain=no
8421 rm -f core conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
8423 LIBS=$ac_check_lib_save_LIBS
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
8426 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
8427 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8429 $as_echo_n "checking for ngettext in -lintl... " >&6; }
8430 if ${ac_cv_lib_intl_ngettext+:} false; then :
8431 $as_echo_n "(cached) " >&6
8433 ac_check_lib_save_LIBS=$LIBS
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8438 /* Override any GCC internal prototype to avoid an error.
8439 Use char because int might match the return type of a GCC
8440 builtin and then its argument prototype would still apply. */
8453 if ac_fn_c_try_link "$LINENO"; then :
8454 ac_cv_lib_intl_ngettext=yes
8456 ac_cv_lib_intl_ngettext=no
8458 rm -f core conftest.err conftest.$ac_objext \
8459 conftest$ac_exeext conftest.$ac_ext
8460 LIBS=$ac_check_lib_save_LIBS
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
8463 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
8464 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
8466 $as_echo_n "checking for dgettext in -lintl... " >&6; }
8467 if ${ac_cv_lib_intl_dgettext+:} false; then :
8468 $as_echo_n "(cached) " >&6
8470 ac_check_lib_save_LIBS=$LIBS
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8475 /* Override any GCC internal prototype to avoid an error.
8476 Use char because int might match the return type of a GCC
8477 builtin and then its argument prototype would still apply. */
8490 if ac_fn_c_try_link "$LINENO"; then :
8491 ac_cv_lib_intl_dgettext=yes
8493 ac_cv_lib_intl_dgettext=no
8495 rm -f core conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8497 LIBS=$ac_check_lib_save_LIBS
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
8500 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
8501 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
8502 gt_cv_func_dgettext_libintl=yes
8510 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
8512 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8516 $as_echo_n "checking for ngettext in -lintl... " >&6; }
8517 if ${ac_cv_lib_intl_ngettext+:} false; then :
8518 $as_echo_n "(cached) " >&6
8520 ac_check_lib_save_LIBS=$LIBS
8521 LIBS="-lintl -liconv $LIBS"
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8525 /* Override any GCC internal prototype to avoid an error.
8526 Use char because int might match the return type of a GCC
8527 builtin and then its argument prototype would still apply. */
8540 if ac_fn_c_try_link "$LINENO"; then :
8541 ac_cv_lib_intl_ngettext=yes
8543 ac_cv_lib_intl_ngettext=no
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_lib_save_LIBS
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
8550 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
8551 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
8553 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
8554 if ${ac_cv_lib_intl_dcgettext+:} false; then :
8555 $as_echo_n "(cached) " >&6
8557 ac_check_lib_save_LIBS=$LIBS
8558 LIBS="-lintl -liconv $LIBS"
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8562 /* Override any GCC internal prototype to avoid an error.
8563 Use char because int might match the return type of a GCC
8564 builtin and then its argument prototype would still apply. */
8572 return dcgettext ();
8577 if ac_fn_c_try_link "$LINENO"; then :
8578 ac_cv_lib_intl_dcgettext=yes
8580 ac_cv_lib_intl_dcgettext=no
8582 rm -f core conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8584 LIBS=$ac_check_lib_save_LIBS
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
8587 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
8588 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
8589 gt_cv_func_dgettext_libintl=yes
8590 libintl_extra_libs=-liconv
8602 # If we found libintl, then check in it for bind_textdomain_codeset();
8603 # we'll prefer libc if neither have bind_textdomain_codeset(),
8604 # and both have dgettext and ngettext
8606 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8607 glib_save_LIBS="$LIBS"
8608 LIBS="$LIBS -lintl $libintl_extra_libs"
8609 unset ac_cv_func_bind_textdomain_codeset
8610 for ac_func in bind_textdomain_codeset
8612 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8613 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8614 cat >>confdefs.h <<_ACEOF
8615 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8621 LIBS="$glib_save_LIBS"
8623 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8624 gt_cv_func_dgettext_libc=no
8626 if test "$gt_cv_func_dgettext_libc" = "yes" \
8627 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8628 gt_cv_func_dgettext_libintl=no
8634 if test "$gt_cv_func_dgettext_libc" = "yes" \
8635 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8636 gt_cv_have_gettext=yes
8639 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8640 INTLLIBS="-lintl $libintl_extra_libs"
8643 if test "$gt_cv_have_gettext" = "yes"; then
8645 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8647 # Extract the first word of "msgfmt", so it can be a program name with args.
8648 set dummy msgfmt; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_path_MSGFMT+:} false; then :
8652 $as_echo_n "(cached) " >&6
8656 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8660 for ac_dir in $PATH; do
8661 test -z "$ac_dir" && ac_dir=.
8662 if test -f $ac_dir/$ac_word; then
8663 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8664 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8670 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8674 MSGFMT="$ac_cv_path_MSGFMT"
8675 if test "$MSGFMT" != "no"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8677 $as_echo "$MSGFMT" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8682 if test "$MSGFMT" != "no"; then
8683 glib_save_LIBS="$LIBS"
8684 LIBS="$LIBS $INTLLIBS"
8685 for ac_func in dcgettext
8687 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
8688 if test "x$ac_cv_func_dcgettext" = xyes; then :
8689 cat >>confdefs.h <<_ACEOF
8690 #define HAVE_DCGETTEXT 1
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
8698 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
8699 cat >conftest.foo <<_ACEOF
8703 "Content-Type: text/plain; charset=UTF-8\n"
8704 "Project-Id-Version: test 1.0\n"
8705 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8706 "Last-Translator: test <foo@bar.xx>\n"
8707 "Language-Team: C <LL@li.org>\n"
8708 "MIME-Version: 1.0\n"
8709 "Content-Transfer-Encoding: 8bit\n"
8712 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
8713 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8716 test $ac_status = 0; }; then
8717 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8718 $as_echo "yes" >&6; }
8719 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8721 echo "$as_me: failed input was:" >&5
8722 sed 's/^/| /' conftest.foo >&5
8725 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8726 set dummy gmsgfmt; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if ${ac_cv_path_GMSGFMT+:} false; then :
8730 $as_echo_n "(cached) " >&6
8734 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8744 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8756 GMSGFMT=$ac_cv_path_GMSGFMT
8757 if test -n "$GMSGFMT"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8759 $as_echo "$GMSGFMT" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8766 # Extract the first word of "xgettext", so it can be a program name with args.
8767 set dummy xgettext; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_path_XGETTEXT+:} false; then :
8771 $as_echo_n "(cached) " >&6
8775 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8779 for ac_dir in $PATH; do
8780 test -z "$ac_dir" && ac_dir=.
8781 if test -f $ac_dir/$ac_word; then
8782 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8783 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8789 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8793 XGETTEXT="$ac_cv_path_XGETTEXT"
8794 if test "$XGETTEXT" != ":"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8796 $as_echo "$XGETTEXT" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8808 extern int _nl_msg_cat_cntr;
8809 return _nl_msg_cat_cntr
8814 if ac_fn_c_try_link "$LINENO"; then :
8820 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8821 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8840 rm -f core conftest.err conftest.$ac_objext \
8841 conftest$ac_exeext conftest.$ac_ext
8842 LIBS="$glib_save_LIBS"
8845 gt_cv_have_gettext=no
8853 if test "$gt_cv_have_gettext" = "yes" ; then
8855 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8859 if test "$XGETTEXT" != ":"; then
8860 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
8864 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
8869 # We need to process the po/ directory.
8872 ac_config_commands="$ac_config_commands default-1"
8875 for lang in $ALL_LINGUAS; do
8876 GMOFILES="$GMOFILES $lang.gmo"
8877 POFILES="$POFILES $lang.po"
8892 if test "$gt_cv_have_gettext" = "yes"; then
8893 if test "x$ALL_LINGUAS" = "x"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8897 $as_echo_n "checking for catalogs to be installed... " >&6; }
8899 for presentlang in $ALL_LINGUAS; do
8901 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8902 desiredlanguages="$LINGUAS"
8904 desiredlanguages="$ALL_LINGUAS"
8906 for desiredlang in $desiredlanguages; do
8907 # Use the presentlang catalog if desiredlang is
8908 # a. equal to presentlang, or
8909 # b. a variant of presentlang (because in this case,
8910 # presentlang can be used as a fallback for messages
8911 # which are not translated in the desiredlang catalog).
8912 case "$desiredlang" in
8913 "$presentlang"*) useit=yes;;
8916 if test $useit = yes; then
8917 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8920 LINGUAS=$NEW_LINGUAS
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8922 $as_echo "$LINGUAS" >&6; }
8925 if test -n "$LINGUAS"; then
8926 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8931 if test -n "$ac_aux_dir"; then
8932 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8934 if test -z "$MKINSTALLDIRS"; then
8935 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8939 test -d po || mkdir po
8940 if test "x$srcdir" != "x."; then
8941 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8942 posrcprefix="$srcdir/"
8944 posrcprefix="../$srcdir/"
8950 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8951 < $srcdir/po/POTFILES.in > po/POTFILES
8954 if test "$gt_cv_have_gettext" != "yes" ; then
8956 *** You must have either have gettext support in your C library, or use the
8957 *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
8961 LIBS="$INTLLIBS $LIBS"
8963 GETTEXT_PACKAGE=glib20
8966 cat >>confdefs.h <<_ACEOF
8967 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
8971 glib_save_prefix="$prefix"
8972 glib_save_exec_prefix="$exec_prefix"
8973 glib_save_datarootdir="$datarootdir"
8974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8975 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
8976 datarootdir=`eval echo "${datarootdir}"`
8977 if test "x$CATOBJEXT" = "x.mo" ; then
8978 localedir=`eval echo "${libdir}/locale"`
8980 localedir=`eval echo "${datadir}/locale"`
8982 prefix="$glib_save_prefix"
8983 exec_prefix="$glib_save_exec_prefix"
8984 datarootdir="$glib_save_datarootdir"
8986 cat >>confdefs.h <<_ACEOF
8987 #define GLIB_LOCALE_DIR "$localedir"
8993 if test x"$glib_native_win32" != xyes; then
8994 if test x$with_libiconv != xno ; then
8995 case " $INTLLIBS " in
8996 *[\ \ ]-liconv[\ \ ]*) ;;
8997 *) ICONV_LIBS="-liconv" ;;
9003 case $with_libiconv in
9006 $as_echo "#define USE_LIBICONV_GNU 1" >>confdefs.h
9011 $as_echo "#define USE_LIBICONV_NATIVE 1" >>confdefs.h
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9020 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9025 macro_version='2.4.2'
9026 macro_revision='1.3337'
9040 ltmain="$ac_aux_dir/ltmain.sh"
9042 # Backslashify metacharacters that are still active within
9043 # double-quoted strings.
9044 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9046 # Same as above, but do not quote variable references.
9047 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9049 # Sed substitution to delay expansion of an escaped shell variable in a
9050 # double_quote_subst'ed string.
9051 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9053 # Sed substitution to delay expansion of an escaped single quote.
9054 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9056 # Sed substitution to avoid accidental globbing in evaled expressions
9057 no_glob_subst='s/\*/\\\*/g'
9059 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9060 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9061 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9064 $as_echo_n "checking how to print strings... " >&6; }
9065 # Test print first, because it will be a builtin if present.
9066 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9067 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9069 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9072 # Use this function as a fallback that always works.
9073 func_fallback_echo ()
9075 eval 'cat <<_LTECHO_EOF
9079 ECHO='func_fallback_echo'
9082 # func_echo_all arg...
9083 # Invoke $ECHO with all args, space-separated.
9090 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9091 $as_echo "printf" >&6; } ;;
9092 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9093 $as_echo "print -r" >&6; } ;;
9094 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9095 $as_echo "cat" >&6; } ;;
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9112 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9113 if ${ac_cv_path_SED+:} false; then :
9114 $as_echo_n "(cached) " >&6
9116 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9117 for ac_i in 1 2 3 4 5 6 7; do
9118 ac_script="$ac_script$as_nl$ac_script"
9120 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9121 { ac_script=; unset ac_script;}
9122 if test -z "$SED"; then
9123 ac_path_SED_found=false
9124 # Loop through the user's path and test for each of PROGNAME-LIST
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 test -z "$as_dir" && as_dir=.
9130 for ac_prog in sed gsed; do
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9133 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
9134 # Check for GNU ac_path_SED and select it if it is found.
9135 # Check for GNU $ac_path_SED
9136 case `"$ac_path_SED" --version 2>&1` in
9138 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9141 $as_echo_n 0123456789 >"conftest.in"
9144 cat "conftest.in" "conftest.in" >"conftest.tmp"
9145 mv "conftest.tmp" "conftest.in"
9146 cp "conftest.in" "conftest.nl"
9147 $as_echo '' >> "conftest.nl"
9148 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9150 as_fn_arith $ac_count + 1 && ac_count=$as_val
9151 if test $ac_count -gt ${ac_path_SED_max-0}; then
9152 # Best one so far, save it but keep looking for a better one
9153 ac_cv_path_SED="$ac_path_SED"
9154 ac_path_SED_max=$ac_count
9156 # 10*(2^10) chars as input seems more than enough
9157 test $ac_count -gt 10 && break
9159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9162 $ac_path_SED_found && break 3
9167 if test -z "$ac_cv_path_SED"; then
9168 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9176 $as_echo "$ac_cv_path_SED" >&6; }
9177 SED="$ac_cv_path_SED"
9180 test -z "$SED" && SED=sed
9181 Xsed="$SED -e 1s/^X//"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9194 $as_echo_n "checking for fgrep... " >&6; }
9195 if ${ac_cv_path_FGREP+:} false; then :
9196 $as_echo_n "(cached) " >&6
9198 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9199 then ac_cv_path_FGREP="$GREP -F"
9201 if test -z "$FGREP"; then
9202 ac_path_FGREP_found=false
9203 # Loop through the user's path and test for each of PROGNAME-LIST
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9208 test -z "$as_dir" && as_dir=.
9209 for ac_prog in fgrep; do
9210 for ac_exec_ext in '' $ac_executable_extensions; do
9211 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9212 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
9213 # Check for GNU ac_path_FGREP and select it if it is found.
9214 # Check for GNU $ac_path_FGREP
9215 case `"$ac_path_FGREP" --version 2>&1` in
9217 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9220 $as_echo_n 0123456789 >"conftest.in"
9223 cat "conftest.in" "conftest.in" >"conftest.tmp"
9224 mv "conftest.tmp" "conftest.in"
9225 cp "conftest.in" "conftest.nl"
9226 $as_echo 'FGREP' >> "conftest.nl"
9227 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9229 as_fn_arith $ac_count + 1 && ac_count=$as_val
9230 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9231 # Best one so far, save it but keep looking for a better one
9232 ac_cv_path_FGREP="$ac_path_FGREP"
9233 ac_path_FGREP_max=$ac_count
9235 # 10*(2^10) chars as input seems more than enough
9236 test $ac_count -gt 10 && break
9238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9241 $ac_path_FGREP_found && break 3
9246 if test -z "$ac_cv_path_FGREP"; then
9247 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9250 ac_cv_path_FGREP=$FGREP
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9256 $as_echo "$ac_cv_path_FGREP" >&6; }
9257 FGREP="$ac_cv_path_FGREP"
9260 test -z "$GREP" && GREP=grep
9280 # Check whether --with-gnu-ld was given.
9281 if test "${with_gnu_ld+set}" = set; then :
9282 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9288 if test "$GCC" = yes; then
9289 # Check if gcc -print-prog-name=ld gives a path.
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9291 $as_echo_n "checking for ld used by $CC... " >&6; }
9294 # gcc leaves a trailing carriage return which upsets mingw
9295 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9297 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9300 # Accept absolute paths.
9302 re_direlt='/[^/][^/]*/\.\./'
9303 # Canonicalize the pathname of ld
9304 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9305 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9306 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9308 test -z "$LD" && LD="$ac_prog"
9311 # If it fails, then pretend we aren't using GCC.
9315 # If it is relative, then search for the first ld in PATH.
9319 elif test "$with_gnu_ld" = yes; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9321 $as_echo_n "checking for GNU ld... " >&6; }
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9324 $as_echo_n "checking for non-GNU ld... " >&6; }
9326 if ${lt_cv_path_LD+:} false; then :
9327 $as_echo_n "(cached) " >&6
9329 if test -z "$LD"; then
9330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9331 for ac_dir in $PATH; do
9333 test -z "$ac_dir" && ac_dir=.
9334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9335 lt_cv_path_LD="$ac_dir/$ac_prog"
9336 # Check to see if the program is GNU ld. I'd rather use --version,
9337 # but apparently some variants of GNU ld only accept -v.
9338 # Break only if it was the GNU/non-GNU ld that we prefer.
9339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9340 *GNU* | *'with BFD'*)
9341 test "$with_gnu_ld" != no && break
9344 test "$with_gnu_ld" != yes && break
9351 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9356 if test -n "$LD"; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9358 $as_echo "$LD" >&6; }
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361 $as_echo "no" >&6; }
9363 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9365 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9366 if ${lt_cv_prog_gnu_ld+:} false; then :
9367 $as_echo_n "(cached) " >&6
9369 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9370 case `$LD -v 2>&1 </dev/null` in
9371 *GNU* | *'with BFD'*)
9372 lt_cv_prog_gnu_ld=yes
9375 lt_cv_prog_gnu_ld=no
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9380 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9381 with_gnu_ld=$lt_cv_prog_gnu_ld
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9392 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9393 if ${lt_cv_path_NM+:} false; then :
9394 $as_echo_n "(cached) " >&6
9396 if test -n "$NM"; then
9397 # Let the user override the test.
9400 lt_nm_to_check="${ac_tool_prefix}nm"
9401 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9402 lt_nm_to_check="$lt_nm_to_check nm"
9404 for lt_tmp_nm in $lt_nm_to_check; do
9405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9406 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9408 test -z "$ac_dir" && ac_dir=.
9409 tmp_nm="$ac_dir/$lt_tmp_nm"
9410 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9411 # Check to see if the nm accepts a BSD-compat flag.
9412 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9413 # nm: unknown option "B" ignored
9414 # Tru64's nm complains that /dev/null is an invalid object file
9415 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9416 */dev/null* | *'Invalid file or object type'*)
9417 lt_cv_path_NM="$tmp_nm -B"
9421 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9423 lt_cv_path_NM="$tmp_nm -p"
9427 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9428 continue # so that we can try to find one that supports BSD flags
9437 : ${lt_cv_path_NM=no}
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9441 $as_echo "$lt_cv_path_NM" >&6; }
9442 if test "$lt_cv_path_NM" != "no"; then
9445 # Didn't find any BSD compatible name lister, look for dumpbin.
9446 if test -n "$DUMPBIN"; then :
9447 # Let the user override the test.
9449 if test -n "$ac_tool_prefix"; then
9450 for ac_prog in dumpbin "link -dump"
9452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 $as_echo_n "checking for $ac_word... " >&6; }
9456 if ${ac_cv_prog_DUMPBIN+:} false; then :
9457 $as_echo_n "(cached) " >&6
9459 if test -n "$DUMPBIN"; then
9460 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9469 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 DUMPBIN=$ac_cv_prog_DUMPBIN
9480 if test -n "$DUMPBIN"; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9482 $as_echo "$DUMPBIN" >&6; }
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 $as_echo "no" >&6; }
9489 test -n "$DUMPBIN" && break
9492 if test -z "$DUMPBIN"; then
9493 ac_ct_DUMPBIN=$DUMPBIN
9494 for ac_prog in dumpbin "link -dump"
9496 # Extract the first word of "$ac_prog", so it can be a program name with args.
9497 set dummy $ac_prog; ac_word=$2
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9499 $as_echo_n "checking for $ac_word... " >&6; }
9500 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9501 $as_echo_n "(cached) " >&6
9503 if test -n "$ac_ct_DUMPBIN"; then
9504 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510 test -z "$as_dir" && as_dir=.
9511 for ac_exec_ext in '' $ac_executable_extensions; do
9512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9513 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9523 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9524 if test -n "$ac_ct_DUMPBIN"; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9526 $as_echo "$ac_ct_DUMPBIN" >&6; }
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 $as_echo "no" >&6; }
9533 test -n "$ac_ct_DUMPBIN" && break
9536 if test "x$ac_ct_DUMPBIN" = x; then
9539 case $cross_compiling:$ac_tool_warned in
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9543 ac_tool_warned=yes ;;
9545 DUMPBIN=$ac_ct_DUMPBIN
9549 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9551 DUMPBIN="$DUMPBIN -symbols"
9559 if test "$DUMPBIN" != ":"; then
9563 test -z "$NM" && NM=nm
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9571 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9572 if ${lt_cv_nm_interface+:} false; then :
9573 $as_echo_n "(cached) " >&6
9575 lt_cv_nm_interface="BSD nm"
9576 echo "int some_variable = 0;" > conftest.$ac_ext
9577 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9578 (eval "$ac_compile" 2>conftest.err)
9579 cat conftest.err >&5
9580 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9581 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9582 cat conftest.err >&5
9583 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9584 cat conftest.out >&5
9585 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9586 lt_cv_nm_interface="MS dumpbin"
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9591 $as_echo "$lt_cv_nm_interface" >&6; }
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9594 $as_echo_n "checking whether ln -s works... " >&6; }
9596 if test "$LN_S" = "ln -s"; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9598 $as_echo "yes" >&6; }
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9601 $as_echo "no, using $LN_S" >&6; }
9604 # find the maximum length of command line arguments
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9606 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9607 if ${lt_cv_sys_max_cmd_len+:} false; then :
9608 $as_echo_n "(cached) " >&6
9615 # On DJGPP, this test can blow up pretty badly due to problems in libc
9616 # (any single argument exceeding 2000 bytes causes a buffer overrun
9617 # during glob expansion). Even if it were fixed, the result of this
9618 # check would be larger than it should be.
9619 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9623 # Under GNU Hurd, this test is not required because there is
9624 # no limit to the length of command line arguments.
9625 # Libtool will interpret -1 as no limit whatsoever
9626 lt_cv_sys_max_cmd_len=-1;
9629 cygwin* | mingw* | cegcc*)
9630 # On Win9x/ME, this test blows up -- it succeeds, but takes
9631 # about 5 minutes as the teststring grows exponentially.
9632 # Worse, since 9x/ME are not pre-emptively multitasking,
9633 # you end up with a "frozen" computer, even though with patience
9634 # the test eventually succeeds (with a max line length of 256k).
9635 # Instead, let's just punt: use the minimum linelength reported by
9636 # all of the supported platforms: 8192 (on NT/2K/XP).
9637 lt_cv_sys_max_cmd_len=8192;
9641 # On MiNT this can take a long time and run out of memory.
9642 lt_cv_sys_max_cmd_len=8192;
9646 # On AmigaOS with pdksh, this test takes hours, literally.
9647 # So we just punt and use a minimum line length of 8192.
9648 lt_cv_sys_max_cmd_len=8192;
9651 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9652 # This has been around since 386BSD, at least. Likely further.
9653 if test -x /sbin/sysctl; then
9654 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9655 elif test -x /usr/sbin/sysctl; then
9656 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9658 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9660 # And add a safety zone
9661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9666 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9667 lt_cv_sys_max_cmd_len=196608
9671 # The test takes a long time on OS/2.
9672 lt_cv_sys_max_cmd_len=8192
9676 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9677 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9678 # nice to cause kernel panics so lets avoid the loop below.
9679 # First set a reasonable default.
9680 lt_cv_sys_max_cmd_len=16384
9682 if test -x /sbin/sysconfig; then
9683 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9684 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9689 lt_cv_sys_max_cmd_len=102400
9691 sysv5* | sco5v6* | sysv4.2uw2*)
9692 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9693 if test -n "$kargmax"; then
9694 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9696 lt_cv_sys_max_cmd_len=32768
9700 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9701 if test -n "$lt_cv_sys_max_cmd_len"; then
9702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9705 # Make teststring a little bigger before we do anything with it.
9706 # a 1K string should be a reasonable start.
9707 for i in 1 2 3 4 5 6 7 8 ; do
9708 teststring=$teststring$teststring
9710 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9711 # If test is not a shell built-in, we'll probably end up computing a
9712 # maximum length that is only half of the actual maximum length, but
9714 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
9715 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9716 test $i != 17 # 1/2 MB should be enough
9719 teststring=$teststring$teststring
9721 # Only check the string length outside the loop.
9722 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9724 # Add a significant safety factor because C++ compilers can tack on
9725 # massive amounts of additional arguments before passing them to the
9726 # linker. It appears as though 1/2 is a usable value.
9727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9734 if test -n $lt_cv_sys_max_cmd_len ; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9736 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9739 $as_echo "none" >&6; }
9741 max_cmd_len=$lt_cv_sys_max_cmd_len
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9753 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9754 # Try some XSI features
9757 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9759 && eval 'test $(( 1 + 1 )) -eq 2 \
9760 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9763 $as_echo "$xsi_shell" >&6; }
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9767 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9769 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9771 && lt_shell_append=yes
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9773 $as_echo "$lt_shell_append" >&6; }
9776 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9786 # test EBCDIC or ASCII
9787 case `echo X|tr X '\101'` in
9788 A) # ASCII based system
9789 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9790 lt_SP2NL='tr \040 \012'
9791 lt_NL2SP='tr \015\012 \040\040'
9793 *) # EBCDIC based system
9794 lt_SP2NL='tr \100 \n'
9795 lt_NL2SP='tr \r\n \100\100'
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9808 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9809 if ${lt_cv_to_host_file_cmd+:} false; then :
9810 $as_echo_n "(cached) " >&6
9815 *-*-mingw* ) # actually msys
9816 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9819 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9821 * ) # otherwise, assume *nix
9822 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9828 *-*-mingw* ) # actually msys
9829 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9832 lt_cv_to_host_file_cmd=func_convert_file_noop
9834 * ) # otherwise, assume *nix
9835 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9839 * ) # unhandled hosts (and "normal" native builds)
9840 lt_cv_to_host_file_cmd=func_convert_file_noop
9846 to_host_file_cmd=$lt_cv_to_host_file_cmd
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9848 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9855 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9856 if ${lt_cv_to_tool_file_cmd+:} false; then :
9857 $as_echo_n "(cached) " >&6
9859 #assume ordinary cross tools, or native build.
9860 lt_cv_to_tool_file_cmd=func_convert_file_noop
9864 *-*-mingw* ) # actually msys
9865 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9873 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9875 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9882 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9883 if ${lt_cv_ld_reload_flag+:} false; then :
9884 $as_echo_n "(cached) " >&6
9886 lt_cv_ld_reload_flag='-r'
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9889 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9890 reload_flag=$lt_cv_ld_reload_flag
9891 case $reload_flag in
9893 *) reload_flag=" $reload_flag" ;;
9895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9897 cygwin* | mingw* | pw32* | cegcc*)
9898 if test "$GCC" != yes; then
9903 if test "$GCC" = yes; then
9904 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9919 if test -n "$ac_tool_prefix"; then
9920 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9921 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923 $as_echo_n "checking for $ac_word... " >&6; }
9924 if ${ac_cv_prog_OBJDUMP+:} false; then :
9925 $as_echo_n "(cached) " >&6
9927 if test -n "$OBJDUMP"; then
9928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934 test -z "$as_dir" && as_dir=.
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9937 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 OBJDUMP=$ac_cv_prog_OBJDUMP
9948 if test -n "$OBJDUMP"; then
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9950 $as_echo "$OBJDUMP" >&6; }
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9958 if test -z "$ac_cv_prog_OBJDUMP"; then
9959 ac_ct_OBJDUMP=$OBJDUMP
9960 # Extract the first word of "objdump", so it can be a program name with args.
9961 set dummy objdump; ac_word=$2
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9963 $as_echo_n "checking for $ac_word... " >&6; }
9964 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9965 $as_echo_n "(cached) " >&6
9967 if test -n "$ac_ct_OBJDUMP"; then
9968 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 test -z "$as_dir" && as_dir=.
9975 for ac_exec_ext in '' $ac_executable_extensions; do
9976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9977 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9988 if test -n "$ac_ct_OBJDUMP"; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9990 $as_echo "$ac_ct_OBJDUMP" >&6; }
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9996 if test "x$ac_ct_OBJDUMP" = x; then
9999 case $cross_compiling:$ac_tool_warned in
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10003 ac_tool_warned=yes ;;
10005 OBJDUMP=$ac_ct_OBJDUMP
10008 OBJDUMP="$ac_cv_prog_OBJDUMP"
10011 test -z "$OBJDUMP" && OBJDUMP=objdump
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10019 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10020 if ${lt_cv_deplibs_check_method+:} false; then :
10021 $as_echo_n "(cached) " >&6
10023 lt_cv_file_magic_cmd='$MAGIC_CMD'
10024 lt_cv_file_magic_test_file=
10025 lt_cv_deplibs_check_method='unknown'
10026 # Need to set the preceding variable on all platforms that support
10027 # interlibrary dependencies.
10028 # 'none' -- dependencies not supported.
10029 # `unknown' -- same as none, but documents that we really don't know.
10030 # 'pass_all' -- all dependencies passed with no checks.
10031 # 'test_compile' -- check by making test program.
10032 # 'file_magic [[regex]]' -- check by looking for files in library path
10033 # which responds to the $file_magic_cmd with a given extended regex.
10034 # If you have `file' or equivalent on your system and you're not sure
10035 # whether `pass_all' will *always* work, you probably want this one.
10039 lt_cv_deplibs_check_method=pass_all
10043 lt_cv_deplibs_check_method=pass_all
10047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10048 lt_cv_file_magic_cmd='/usr/bin/file -L'
10049 lt_cv_file_magic_test_file=/shlib/libc.so
10053 # func_win32_libid is a shell function defined in ltmain.sh
10054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10055 lt_cv_file_magic_cmd='func_win32_libid'
10059 # Base MSYS/MinGW do not provide the 'file' command needed by
10060 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10061 # unless we find 'file', for example because we are cross-compiling.
10062 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10063 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10064 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10065 lt_cv_file_magic_cmd='func_win32_libid'
10067 # Keep this pattern in sync with the one in func_win32_libid.
10068 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10069 lt_cv_file_magic_cmd='$OBJDUMP -f'
10074 # use the weaker test based on 'objdump'. See mingw*.
10075 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10076 lt_cv_file_magic_cmd='$OBJDUMP -f'
10079 darwin* | rhapsody*)
10080 lt_cv_deplibs_check_method=pass_all
10083 freebsd* | dragonfly*)
10084 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10087 # Not sure whether the presence of OpenBSD here was a mistake.
10088 # Let's accept both of them until this is cleared up.
10089 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10090 lt_cv_file_magic_cmd=/usr/bin/file
10091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10095 lt_cv_deplibs_check_method=pass_all
10100 lt_cv_deplibs_check_method=pass_all
10104 lt_cv_deplibs_check_method=pass_all
10107 hpux10.20* | hpux11*)
10108 lt_cv_file_magic_cmd=/usr/bin/file
10111 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10112 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10115 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]'
10116 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10119 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10120 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10126 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10130 irix5* | irix6* | nonstopux*)
10132 *-32|*"-32 ") libmagic=32-bit;;
10133 *-n32|*"-n32 ") libmagic=N32;;
10134 *-64|*"-64 ") libmagic=64-bit;;
10135 *) libmagic=never-match;;
10137 lt_cv_deplibs_check_method=pass_all
10140 # This must be glibc/ELF.
10141 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10142 lt_cv_deplibs_check_method=pass_all
10146 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10155 lt_cv_file_magic_cmd=/usr/bin/file
10156 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10160 lt_cv_deplibs_check_method=pass_all
10164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10171 osf3* | osf4* | osf5*)
10172 lt_cv_deplibs_check_method=pass_all
10176 lt_cv_deplibs_check_method=pass_all
10180 lt_cv_deplibs_check_method=pass_all
10183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10184 lt_cv_deplibs_check_method=pass_all
10188 case $host_vendor in
10190 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]'
10191 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10194 lt_cv_deplibs_check_method=pass_all
10197 lt_cv_file_magic_cmd='/bin/file'
10198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10201 lt_cv_file_magic_cmd='/bin/file'
10202 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10203 lt_cv_file_magic_test_file=/lib/libc.so
10206 lt_cv_deplibs_check_method=pass_all
10209 lt_cv_deplibs_check_method=pass_all
10215 lt_cv_deplibs_check_method=pass_all
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10221 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10225 if test "$build" = "$host"; then
10228 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10229 want_nocaseglob=yes
10231 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10237 file_magic_cmd=$lt_cv_file_magic_cmd
10238 deplibs_check_method=$lt_cv_deplibs_check_method
10239 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10262 if test -n "$ac_tool_prefix"; then
10263 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10264 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266 $as_echo_n "checking for $ac_word... " >&6; }
10267 if ${ac_cv_prog_DLLTOOL+:} false; then :
10268 $as_echo_n "(cached) " >&6
10270 if test -n "$DLLTOOL"; then
10271 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10277 test -z "$as_dir" && as_dir=.
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10280 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 DLLTOOL=$ac_cv_prog_DLLTOOL
10291 if test -n "$DLLTOOL"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10293 $as_echo "$DLLTOOL" >&6; }
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10301 if test -z "$ac_cv_prog_DLLTOOL"; then
10302 ac_ct_DLLTOOL=$DLLTOOL
10303 # Extract the first word of "dlltool", so it can be a program name with args.
10304 set dummy dlltool; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10308 $as_echo_n "(cached) " >&6
10310 if test -n "$ac_ct_DLLTOOL"; then
10311 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10331 if test -n "$ac_ct_DLLTOOL"; then
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10333 $as_echo "$ac_ct_DLLTOOL" >&6; }
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10339 if test "x$ac_ct_DLLTOOL" = x; then
10342 case $cross_compiling:$ac_tool_warned in
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10346 ac_tool_warned=yes ;;
10348 DLLTOOL=$ac_ct_DLLTOOL
10351 DLLTOOL="$ac_cv_prog_DLLTOOL"
10354 test -z "$DLLTOOL" && DLLTOOL=dlltool
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10363 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10364 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10365 $as_echo_n "(cached) " >&6
10367 lt_cv_sharedlib_from_linklib_cmd='unknown'
10370 cygwin* | mingw* | pw32* | cegcc*)
10371 # two different shell functions defined in ltmain.sh
10372 # decide which to use based on capabilities of $DLLTOOL
10373 case `$DLLTOOL --help 2>&1` in
10374 *--identify-strict*)
10375 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10378 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10383 # fallback: assume linklib IS sharedlib
10384 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10390 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10391 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10392 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10400 if test -n "$ac_tool_prefix"; then
10403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if ${ac_cv_prog_AR+:} false; then :
10408 $as_echo_n "(cached) " >&6
10410 if test -n "$AR"; then
10411 ac_cv_prog_AR="$AR" # Let the user override the test.
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in $PATH
10417 test -z "$as_dir" && as_dir=.
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10420 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 if test -n "$AR"; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10433 $as_echo "$AR" >&6; }
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; }
10440 test -n "$AR" && break
10443 if test -z "$AR"; then
10447 # Extract the first word of "$ac_prog", so it can be a program name with args.
10448 set dummy $ac_prog; ac_word=$2
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450 $as_echo_n "checking for $ac_word... " >&6; }
10451 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10452 $as_echo_n "(cached) " >&6
10454 if test -n "$ac_ct_AR"; then
10455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458 for as_dir in $PATH
10461 test -z "$as_dir" && as_dir=.
10462 for ac_exec_ext in '' $ac_executable_extensions; do
10463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10464 ac_cv_prog_ac_ct_AR="$ac_prog"
10465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10475 if test -n "$ac_ct_AR"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10477 $as_echo "$ac_ct_AR" >&6; }
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10484 test -n "$ac_ct_AR" && break
10487 if test "x$ac_ct_AR" = x; then
10490 case $cross_compiling:$ac_tool_warned in
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10494 ac_tool_warned=yes ;;
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10514 $as_echo_n "checking for archiver @FILE support... " >&6; }
10515 if ${lt_cv_ar_at_file+:} false; then :
10516 $as_echo_n "(cached) " >&6
10518 lt_cv_ar_at_file=no
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10530 if ac_fn_c_try_compile "$LINENO"; then :
10531 echo conftest.$ac_objext > conftest.lst
10532 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10534 (eval $lt_ar_try) 2>&5
10536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10537 test $ac_status = 0; }
10538 if test "$ac_status" -eq 0; then
10539 # Ensure the archiver fails upon bogus file names.
10540 rm -f conftest.$ac_objext libconftest.a
10541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10542 (eval $lt_ar_try) 2>&5
10544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10545 test $ac_status = 0; }
10546 if test "$ac_status" -ne 0; then
10550 rm -f conftest.* libconftest.a
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10557 $as_echo "$lt_cv_ar_at_file" >&6; }
10559 if test "x$lt_cv_ar_at_file" = xno; then
10560 archiver_list_spec=
10562 archiver_list_spec=$lt_cv_ar_at_file
10571 if test -n "$ac_tool_prefix"; then
10572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10573 set dummy ${ac_tool_prefix}strip; ac_word=$2
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575 $as_echo_n "checking for $ac_word... " >&6; }
10576 if ${ac_cv_prog_STRIP+:} false; then :
10577 $as_echo_n "(cached) " >&6
10579 if test -n "$STRIP"; then
10580 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10586 test -z "$as_dir" && as_dir=.
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10589 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 STRIP=$ac_cv_prog_STRIP
10600 if test -n "$STRIP"; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10602 $as_echo "$STRIP" >&6; }
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10610 if test -z "$ac_cv_prog_STRIP"; then
10612 # Extract the first word of "strip", so it can be a program name with args.
10613 set dummy strip; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10617 $as_echo_n "(cached) " >&6
10619 if test -n "$ac_ct_STRIP"; then
10620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629 ac_cv_prog_ac_ct_STRIP="strip"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10640 if test -n "$ac_ct_STRIP"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10642 $as_echo "$ac_ct_STRIP" >&6; }
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10648 if test "x$ac_ct_STRIP" = x; then
10651 case $cross_compiling:$ac_tool_warned in
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10655 ac_tool_warned=yes ;;
10660 STRIP="$ac_cv_prog_STRIP"
10663 test -z "$STRIP" && STRIP=:
10670 if test -n "$ac_tool_prefix"; then
10671 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10672 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 $as_echo_n "checking for $ac_word... " >&6; }
10675 if ${ac_cv_prog_RANLIB+:} false; then :
10676 $as_echo_n "(cached) " >&6
10678 if test -n "$RANLIB"; then
10679 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682 for as_dir in $PATH
10685 test -z "$as_dir" && as_dir=.
10686 for ac_exec_ext in '' $ac_executable_extensions; do
10687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10688 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 RANLIB=$ac_cv_prog_RANLIB
10699 if test -n "$RANLIB"; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10701 $as_echo "$RANLIB" >&6; }
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; }
10709 if test -z "$ac_cv_prog_RANLIB"; then
10710 ac_ct_RANLIB=$RANLIB
10711 # Extract the first word of "ranlib", so it can be a program name with args.
10712 set dummy ranlib; ac_word=$2
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714 $as_echo_n "checking for $ac_word... " >&6; }
10715 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10716 $as_echo_n "(cached) " >&6
10718 if test -n "$ac_ct_RANLIB"; then
10719 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10728 ac_cv_prog_ac_ct_RANLIB="ranlib"
10729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10739 if test -n "$ac_ct_RANLIB"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10741 $as_echo "$ac_ct_RANLIB" >&6; }
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10747 if test "x$ac_ct_RANLIB" = x; then
10750 case $cross_compiling:$ac_tool_warned in
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10754 ac_tool_warned=yes ;;
10756 RANLIB=$ac_ct_RANLIB
10759 RANLIB="$ac_cv_prog_RANLIB"
10762 test -z "$RANLIB" && RANLIB=:
10769 # Determine commands to create old-style static archives.
10770 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10771 old_postinstall_cmds='chmod 644 $oldlib'
10772 old_postuninstall_cmds=
10774 if test -n "$RANLIB"; then
10777 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10783 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10788 lock_old_archive_extraction=yes ;;
10790 lock_old_archive_extraction=no ;;
10831 # If no C compiler was specified, use CC.
10834 # If no C compiler flags were specified, use CFLAGS.
10835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10837 # Allow CC to be a program name with arguments.
10841 # Check for command to grab the raw symbol name followed by C symbol from nm.
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10843 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10844 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10845 $as_echo_n "(cached) " >&6
10848 # These are sane defaults that work on at least a few old systems.
10849 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10851 # Character class describing NM global symbol codes.
10852 symcode='[BCDEGRST]'
10854 # Regexp to match symbols that can be accessed directly from C.
10855 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10857 # Define system-specific variables.
10862 cygwin* | mingw* | pw32* | cegcc*)
10863 symcode='[ABCDGISTW]'
10866 if test "$host_cpu" = ia64; then
10867 symcode='[ABCDEGRST]'
10870 irix* | nonstopux*)
10871 symcode='[BCDEGRST]'
10874 symcode='[BCDEGQRST]'
10885 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10893 # If we're using GNU nm, then use its standard symbol codes.
10894 case `$NM -V 2>&1` in
10895 *GNU* | *'with BFD'*)
10896 symcode='[ABCDGIRSTW]' ;;
10899 # Transform an extracted symbol line into a proper C declaration.
10900 # Some systems (esp. on ia64) link data and code symbols differently,
10901 # so use this general approach.
10902 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10904 # Transform an extracted symbol line into symbol name and symbol address
10905 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10906 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'"
10908 # Handle CRLF in mingw tool chain
10912 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10916 # Try without a prefix underscore, then with it.
10917 for ac_symprfx in "" "_"; do
10919 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10920 symxfrm="\\1 $ac_symprfx\\2 \\2"
10922 # Write the raw and C identifiers.
10923 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10924 # Fake it for dumpbin and say T for any non-static function
10925 # and D for any global variable.
10926 # Also find C++ and __fastcall symbols from MSVC++,
10927 # which start with @ or ?.
10928 lt_cv_sys_global_symbol_pipe="$AWK '"\
10929 " {last_section=section; section=\$ 3};"\
10930 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10931 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10932 " \$ 0!~/External *\|/{next};"\
10933 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10934 " {if(hide[section]) next};"\
10935 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10936 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10937 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10938 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10939 " ' prfx=^$ac_symprfx"
10941 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10943 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10945 # Check to see that the pipe works correctly.
10949 cat > conftest.$ac_ext <<_LT_EOF
10954 void nm_test_func(void);
10955 void nm_test_func(void){}
10959 int main(){nm_test_var='a';nm_test_func();return(0);}
10962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10963 (eval $ac_compile) 2>&5
10965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10966 test $ac_status = 0; }; then
10967 # Now try to grab the symbols.
10969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10970 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10973 test $ac_status = 0; } && test -s "$nlist"; then
10974 # Try sorting and uniquifying the output.
10975 if sort "$nlist" | uniq > "$nlist"T; then
10976 mv -f "$nlist"T "$nlist"
10981 # Make sure that we snagged all the symbols we need.
10982 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10983 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10984 cat <<_LT_EOF > conftest.$ac_ext
10985 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10986 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10987 /* DATA imports from DLLs on WIN32 con't be const, because runtime
10988 relocations are performed -- see ld's documentation on pseudo-relocs. */
10989 # define LT_DLSYM_CONST
10990 #elif defined(__osf__)
10991 /* This system does not cope well with relocations in const data. */
10992 # define LT_DLSYM_CONST
10994 # define LT_DLSYM_CONST const
11002 # Now generate the symbol file.
11003 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11005 cat <<_LT_EOF >> conftest.$ac_ext
11007 /* The mapping between symbol names and symbols. */
11008 LT_DLSYM_CONST struct {
11012 lt__PROGRAM__LTX_preloaded_symbols[] =
11014 { "@PROGRAM@", (void *) 0 },
11016 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11017 cat <<\_LT_EOF >> conftest.$ac_ext
11021 /* This works around a problem in FreeBSD linker */
11022 #ifdef FREEBSD_WORKAROUND
11023 static const void *lt_preloaded_setup() {
11024 return lt__PROGRAM__LTX_preloaded_symbols;
11032 # Now try linking the two files.
11033 mv conftest.$ac_objext conftstm.$ac_objext
11034 lt_globsym_save_LIBS=$LIBS
11035 lt_globsym_save_CFLAGS=$CFLAGS
11036 LIBS="conftstm.$ac_objext"
11037 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11039 (eval $ac_link) 2>&5
11041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11045 LIBS=$lt_globsym_save_LIBS
11046 CFLAGS=$lt_globsym_save_CFLAGS
11048 echo "cannot find nm_test_func in $nlist" >&5
11051 echo "cannot find nm_test_var in $nlist" >&5
11054 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11057 echo "$progname: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11060 rm -rf conftest* conftst*
11062 # Do not use the global_symbol_pipe unless it works.
11063 if test "$pipe_works" = yes; then
11066 lt_cv_sys_global_symbol_pipe=
11072 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11073 lt_cv_sys_global_symbol_to_cdecl=
11075 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11077 $as_echo "failed" >&6; }
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11080 $as_echo "ok" >&6; }
11083 # Response file support.
11084 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11085 nm_file_list_spec='@'
11086 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11087 nm_file_list_spec='@'
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11117 $as_echo_n "checking for sysroot... " >&6; }
11119 # Check whether --with-sysroot was given.
11120 if test "${with_sysroot+set}" = set; then :
11121 withval=$with_sysroot;
11128 case ${with_sysroot} in #(
11130 if test "$GCC" = yes; then
11131 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11135 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11141 $as_echo "${with_sysroot}" >&6; }
11142 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11147 $as_echo "${lt_sysroot:-no}" >&6; }
11153 # Check whether --enable-libtool-lock was given.
11154 if test "${enable_libtool_lock+set}" = set; then :
11155 enableval=$enable_libtool_lock;
11158 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11160 # Some flags need to be propagated to the compiler or linker for good
11164 # Find out which ABI we are using.
11165 echo 'int i;' > conftest.$ac_ext
11166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11167 (eval $ac_compile) 2>&5
11169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170 test $ac_status = 0; }; then
11171 case `/usr/bin/file conftest.$ac_objext` in
11173 HPUX_IA64_MODE="32"
11176 HPUX_IA64_MODE="64"
11183 # Find out which ABI we are using.
11184 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11186 (eval $ac_compile) 2>&5
11188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11189 test $ac_status = 0; }; then
11190 if test "$lt_cv_prog_gnu_ld" = yes; then
11191 case `/usr/bin/file conftest.$ac_objext` in
11193 LD="${LD-ld} -melf32bsmip"
11196 LD="${LD-ld} -melf32bmipn32"
11199 LD="${LD-ld} -melf64bmip"
11203 case `/usr/bin/file conftest.$ac_objext` in
11219 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11220 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11221 # Find out which ABI we are using.
11222 echo 'int i;' > conftest.$ac_ext
11223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11224 (eval $ac_compile) 2>&5
11226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11227 test $ac_status = 0; }; then
11228 case `/usr/bin/file conftest.o` in
11231 x86_64-*kfreebsd*-gnu)
11232 LD="${LD-ld} -m elf_i386_fbsd"
11235 LD="${LD-ld} -m elf_i386"
11237 ppc64-*linux*|powerpc64-*linux*)
11238 LD="${LD-ld} -m elf32ppclinux"
11241 LD="${LD-ld} -m elf_s390"
11244 LD="${LD-ld} -m elf32_sparc"
11250 x86_64-*kfreebsd*-gnu)
11251 LD="${LD-ld} -m elf_x86_64_fbsd"
11254 LD="${LD-ld} -m elf_x86_64"
11256 ppc*-*linux*|powerpc*-*linux*)
11257 LD="${LD-ld} -m elf64ppc"
11259 s390*-*linux*|s390*-*tpf*)
11260 LD="${LD-ld} -m elf64_s390"
11263 LD="${LD-ld} -m elf64_sparc"
11273 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11274 SAVE_CFLAGS="$CFLAGS"
11275 CFLAGS="$CFLAGS -belf"
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11277 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11278 if ${lt_cv_cc_needs_belf+:} false; then :
11279 $as_echo_n "(cached) " >&6
11282 ac_cpp='$CPP $CPPFLAGS'
11283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 lt_cv_cc_needs_belf=yes
11301 lt_cv_cc_needs_belf=no
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11306 ac_cpp='$CPP $CPPFLAGS'
11307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11313 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11314 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11315 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11316 CFLAGS="$SAVE_CFLAGS"
11320 # Find out which ABI we are using.
11321 echo 'int i;' > conftest.$ac_ext
11322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11323 (eval $ac_compile) 2>&5
11325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11326 test $ac_status = 0; }; then
11327 case `/usr/bin/file conftest.o` in
11329 case $lt_cv_prog_gnu_ld in
11333 LD="${LD-ld} -m elf_x86_64"
11336 LD="${LD-ld} -m elf64_sparc"
11339 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11340 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11345 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11357 need_locks="$enable_libtool_lock"
11359 if test -n "$ac_tool_prefix"; then
11360 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11361 set dummy ${ac_tool_prefix}mt; ac_word=$2
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363 $as_echo_n "checking for $ac_word... " >&6; }
11364 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11365 $as_echo_n "(cached) " >&6
11367 if test -n "$MANIFEST_TOOL"; then
11368 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11377 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11388 if test -n "$MANIFEST_TOOL"; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11390 $as_echo "$MANIFEST_TOOL" >&6; }
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11398 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11399 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11400 # Extract the first word of "mt", so it can be a program name with args.
11401 set dummy mt; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11405 $as_echo_n "(cached) " >&6
11407 if test -n "$ac_ct_MANIFEST_TOOL"; then
11408 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11417 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11427 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11428 if test -n "$ac_ct_MANIFEST_TOOL"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11430 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11436 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11439 case $cross_compiling:$ac_tool_warned in
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11443 ac_tool_warned=yes ;;
11445 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11448 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11451 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11453 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11454 if ${lt_cv_path_mainfest_tool+:} false; then :
11455 $as_echo_n "(cached) " >&6
11457 lt_cv_path_mainfest_tool=no
11458 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11459 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11460 cat conftest.err >&5
11461 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11462 lt_cv_path_mainfest_tool=yes
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11467 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11468 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11478 rhapsody* | darwin*)
11479 if test -n "$ac_tool_prefix"; then
11480 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11481 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483 $as_echo_n "checking for $ac_word... " >&6; }
11484 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11485 $as_echo_n "(cached) " >&6
11487 if test -n "$DSYMUTIL"; then
11488 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11507 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11508 if test -n "$DSYMUTIL"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11510 $as_echo "$DSYMUTIL" >&6; }
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11518 if test -z "$ac_cv_prog_DSYMUTIL"; then
11519 ac_ct_DSYMUTIL=$DSYMUTIL
11520 # Extract the first word of "dsymutil", so it can be a program name with args.
11521 set dummy dsymutil; ac_word=$2
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523 $as_echo_n "checking for $ac_word... " >&6; }
11524 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11525 $as_echo_n "(cached) " >&6
11527 if test -n "$ac_ct_DSYMUTIL"; then
11528 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531 for as_dir in $PATH
11534 test -z "$as_dir" && as_dir=.
11535 for ac_exec_ext in '' $ac_executable_extensions; do
11536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11537 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11548 if test -n "$ac_ct_DSYMUTIL"; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11550 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11556 if test "x$ac_ct_DSYMUTIL" = x; then
11559 case $cross_compiling:$ac_tool_warned in
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11563 ac_tool_warned=yes ;;
11565 DSYMUTIL=$ac_ct_DSYMUTIL
11568 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11571 if test -n "$ac_tool_prefix"; then
11572 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11573 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_prog_NMEDIT+:} false; then :
11577 $as_echo_n "(cached) " >&6
11579 if test -n "$NMEDIT"; then
11580 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 NMEDIT=$ac_cv_prog_NMEDIT
11600 if test -n "$NMEDIT"; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11602 $as_echo "$NMEDIT" >&6; }
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11610 if test -z "$ac_cv_prog_NMEDIT"; then
11611 ac_ct_NMEDIT=$NMEDIT
11612 # Extract the first word of "nmedit", so it can be a program name with args.
11613 set dummy nmedit; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11617 $as_echo_n "(cached) " >&6
11619 if test -n "$ac_ct_NMEDIT"; then
11620 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623 for as_dir in $PATH
11626 test -z "$as_dir" && as_dir=.
11627 for ac_exec_ext in '' $ac_executable_extensions; do
11628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11629 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11640 if test -n "$ac_ct_NMEDIT"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11642 $as_echo "$ac_ct_NMEDIT" >&6; }
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11648 if test "x$ac_ct_NMEDIT" = x; then
11651 case $cross_compiling:$ac_tool_warned in
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11655 ac_tool_warned=yes ;;
11657 NMEDIT=$ac_ct_NMEDIT
11660 NMEDIT="$ac_cv_prog_NMEDIT"
11663 if test -n "$ac_tool_prefix"; then
11664 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11665 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667 $as_echo_n "checking for $ac_word... " >&6; }
11668 if ${ac_cv_prog_LIPO+:} false; then :
11669 $as_echo_n "(cached) " >&6
11671 if test -n "$LIPO"; then
11672 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11681 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 LIPO=$ac_cv_prog_LIPO
11692 if test -n "$LIPO"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11694 $as_echo "$LIPO" >&6; }
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11702 if test -z "$ac_cv_prog_LIPO"; then
11704 # Extract the first word of "lipo", so it can be a program name with args.
11705 set dummy lipo; ac_word=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11709 $as_echo_n "(cached) " >&6
11711 if test -n "$ac_ct_LIPO"; then
11712 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $PATH
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721 ac_cv_prog_ac_ct_LIPO="lipo"
11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11731 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11732 if test -n "$ac_ct_LIPO"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11734 $as_echo "$ac_ct_LIPO" >&6; }
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11740 if test "x$ac_ct_LIPO" = x; then
11743 case $cross_compiling:$ac_tool_warned in
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11747 ac_tool_warned=yes ;;
11752 LIPO="$ac_cv_prog_LIPO"
11755 if test -n "$ac_tool_prefix"; then
11756 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11757 set dummy ${ac_tool_prefix}otool; ac_word=$2
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759 $as_echo_n "checking for $ac_word... " >&6; }
11760 if ${ac_cv_prog_OTOOL+:} false; then :
11761 $as_echo_n "(cached) " >&6
11763 if test -n "$OTOOL"; then
11764 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767 for as_dir in $PATH
11770 test -z "$as_dir" && as_dir=.
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11773 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 OTOOL=$ac_cv_prog_OTOOL
11784 if test -n "$OTOOL"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11786 $as_echo "$OTOOL" >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11794 if test -z "$ac_cv_prog_OTOOL"; then
11796 # Extract the first word of "otool", so it can be a program name with args.
11797 set dummy otool; ac_word=$2
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799 $as_echo_n "checking for $ac_word... " >&6; }
11800 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11801 $as_echo_n "(cached) " >&6
11803 if test -n "$ac_ct_OTOOL"; then
11804 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11813 ac_cv_prog_ac_ct_OTOOL="otool"
11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11824 if test -n "$ac_ct_OTOOL"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11826 $as_echo "$ac_ct_OTOOL" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11832 if test "x$ac_ct_OTOOL" = x; then
11835 case $cross_compiling:$ac_tool_warned in
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11839 ac_tool_warned=yes ;;
11844 OTOOL="$ac_cv_prog_OTOOL"
11847 if test -n "$ac_tool_prefix"; then
11848 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11849 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_prog_OTOOL64+:} false; then :
11853 $as_echo_n "(cached) " >&6
11855 if test -n "$OTOOL64"; then
11856 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 OTOOL64=$ac_cv_prog_OTOOL64
11876 if test -n "$OTOOL64"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11878 $as_echo "$OTOOL64" >&6; }
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11886 if test -z "$ac_cv_prog_OTOOL64"; then
11887 ac_ct_OTOOL64=$OTOOL64
11888 # Extract the first word of "otool64", so it can be a program name with args.
11889 set dummy otool64; ac_word=$2
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891 $as_echo_n "checking for $ac_word... " >&6; }
11892 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11893 $as_echo_n "(cached) " >&6
11895 if test -n "$ac_ct_OTOOL64"; then
11896 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH
11902 test -z "$as_dir" && as_dir=.
11903 for ac_exec_ext in '' $ac_executable_extensions; do
11904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11905 ac_cv_prog_ac_ct_OTOOL64="otool64"
11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11916 if test -n "$ac_ct_OTOOL64"; then
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11918 $as_echo "$ac_ct_OTOOL64" >&6; }
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11924 if test "x$ac_ct_OTOOL64" = x; then
11927 case $cross_compiling:$ac_tool_warned in
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11931 ac_tool_warned=yes ;;
11933 OTOOL64=$ac_ct_OTOOL64
11936 OTOOL64="$ac_cv_prog_OTOOL64"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11966 $as_echo_n "checking for -single_module linker flag... " >&6; }
11967 if ${lt_cv_apple_cc_single_mod+:} false; then :
11968 $as_echo_n "(cached) " >&6
11970 lt_cv_apple_cc_single_mod=no
11971 if test -z "${LT_MULTI_MODULE}"; then
11972 # By default we will add the -single_module flag. You can override
11973 # by either setting the environment variable LT_MULTI_MODULE
11974 # non-empty at configure time, or by adding -multi_module to the
11976 rm -rf libconftest.dylib*
11977 echo "int foo(void){return 1;}" > conftest.c
11978 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11979 -dynamiclib -Wl,-single_module conftest.c" >&5
11980 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11981 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11983 # If there is a non-empty error log, and "single_module"
11984 # appears in it, assume the flag caused a linker warning
11985 if test -s conftest.err && $GREP single_module conftest.err; then
11986 cat conftest.err >&5
11987 # Otherwise, if the output was created with a 0 exit code from
11988 # the compiler, it worked.
11989 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
11990 lt_cv_apple_cc_single_mod=yes
11992 cat conftest.err >&5
11994 rm -rf libconftest.dylib*
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11999 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12002 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12003 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12004 $as_echo_n "(cached) " >&6
12006 lt_cv_ld_exported_symbols_list=no
12007 save_LDFLAGS=$LDFLAGS
12008 echo "_main" > conftest.sym
12009 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12021 if ac_fn_c_try_link "$LINENO"; then :
12022 lt_cv_ld_exported_symbols_list=yes
12024 lt_cv_ld_exported_symbols_list=no
12026 rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12028 LDFLAGS="$save_LDFLAGS"
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12032 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12035 $as_echo_n "checking for -force_load linker flag... " >&6; }
12036 if ${lt_cv_ld_force_load+:} false; then :
12037 $as_echo_n "(cached) " >&6
12039 lt_cv_ld_force_load=no
12040 cat > conftest.c << _LT_EOF
12041 int forced_loaded() { return 2;}
12043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12044 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12045 echo "$AR cru libconftest.a conftest.o" >&5
12046 $AR cru libconftest.a conftest.o 2>&5
12047 echo "$RANLIB libconftest.a" >&5
12048 $RANLIB libconftest.a 2>&5
12049 cat > conftest.c << _LT_EOF
12050 int main() { return 0;}
12052 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12053 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12055 if test -s conftest.err && $GREP force_load conftest.err; then
12056 cat conftest.err >&5
12057 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
12058 lt_cv_ld_force_load=yes
12060 cat conftest.err >&5
12062 rm -f conftest.err libconftest.a conftest conftest.c
12063 rm -rf conftest.dSYM
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12067 $as_echo "$lt_cv_ld_force_load" >&6; }
12069 rhapsody* | darwin1.[012])
12070 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12072 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12073 darwin*) # darwin 5.x on
12074 # if running on 10.5 or later, the deployment target defaults
12075 # to the OS version, if on x86, and 10.4, the deployment
12076 # target defaults to 10.4. Don't you love it?
12077 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12078 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12079 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12081 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12083 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12087 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12088 _lt_dar_single_mod='$single_module'
12090 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12091 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12093 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12095 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12096 _lt_dsymutil='~$DSYMUTIL $lib || :'
12103 for ac_header in dlfcn.h
12105 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12107 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12108 cat >>confdefs.h <<_ACEOF
12109 #define HAVE_DLFCN_H 1
12118 func_stripname_cnf ()
12121 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12122 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12124 } # func_stripname_cnf
12131 # Check whether --enable-static was given.
12132 if test "${enable_static+set}" = set; then :
12133 enableval=$enable_static; p=${PACKAGE-default}
12135 yes) enable_static=yes ;;
12136 no) enable_static=no ;;
12139 # Look at the argument we got. We use all the common list separators.
12140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12141 for pkg in $enableval; do
12143 if test "X$pkg" = "X$p"; then
12160 enable_win32_dll=yes
12163 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12164 if test -n "$ac_tool_prefix"; then
12165 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12166 set dummy ${ac_tool_prefix}as; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_prog_AS+:} false; then :
12170 $as_echo_n "(cached) " >&6
12172 if test -n "$AS"; then
12173 ac_cv_prog_AS="$AS" # Let the user override the test.
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12182 ac_cv_prog_AS="${ac_tool_prefix}as"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 if test -n "$AS"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12195 $as_echo "$AS" >&6; }
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12203 if test -z "$ac_cv_prog_AS"; then
12205 # Extract the first word of "as", so it can be a program name with args.
12206 set dummy as; ac_word=$2
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208 $as_echo_n "checking for $ac_word... " >&6; }
12209 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12210 $as_echo_n "(cached) " >&6
12212 if test -n "$ac_ct_AS"; then
12213 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222 ac_cv_prog_ac_ct_AS="as"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12233 if test -n "$ac_ct_AS"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12235 $as_echo "$ac_ct_AS" >&6; }
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12241 if test "x$ac_ct_AS" = x; then
12244 case $cross_compiling:$ac_tool_warned in
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248 ac_tool_warned=yes ;;
12253 AS="$ac_cv_prog_AS"
12256 if test -n "$ac_tool_prefix"; then
12257 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12258 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260 $as_echo_n "checking for $ac_word... " >&6; }
12261 if ${ac_cv_prog_DLLTOOL+:} false; then :
12262 $as_echo_n "(cached) " >&6
12264 if test -n "$DLLTOOL"; then
12265 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12271 test -z "$as_dir" && as_dir=.
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12274 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 DLLTOOL=$ac_cv_prog_DLLTOOL
12285 if test -n "$DLLTOOL"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12287 $as_echo "$DLLTOOL" >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12295 if test -z "$ac_cv_prog_DLLTOOL"; then
12296 ac_ct_DLLTOOL=$DLLTOOL
12297 # Extract the first word of "dlltool", so it can be a program name with args.
12298 set dummy dlltool; ac_word=$2
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12300 $as_echo_n "checking for $ac_word... " >&6; }
12301 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12302 $as_echo_n "(cached) " >&6
12304 if test -n "$ac_ct_DLLTOOL"; then
12305 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308 for as_dir in $PATH
12311 test -z "$as_dir" && as_dir=.
12312 for ac_exec_ext in '' $ac_executable_extensions; do
12313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12314 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12325 if test -n "$ac_ct_DLLTOOL"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12327 $as_echo "$ac_ct_DLLTOOL" >&6; }
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12333 if test "x$ac_ct_DLLTOOL" = x; then
12336 case $cross_compiling:$ac_tool_warned in
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12340 ac_tool_warned=yes ;;
12342 DLLTOOL=$ac_ct_DLLTOOL
12345 DLLTOOL="$ac_cv_prog_DLLTOOL"
12348 if test -n "$ac_tool_prefix"; then
12349 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12350 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if ${ac_cv_prog_OBJDUMP+:} false; then :
12354 $as_echo_n "(cached) " >&6
12356 if test -n "$OBJDUMP"; then
12357 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12363 test -z "$as_dir" && as_dir=.
12364 for ac_exec_ext in '' $ac_executable_extensions; do
12365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12366 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 OBJDUMP=$ac_cv_prog_OBJDUMP
12377 if test -n "$OBJDUMP"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12379 $as_echo "$OBJDUMP" >&6; }
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12387 if test -z "$ac_cv_prog_OBJDUMP"; then
12388 ac_ct_OBJDUMP=$OBJDUMP
12389 # Extract the first word of "objdump", so it can be a program name with args.
12390 set dummy objdump; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12394 $as_echo_n "(cached) " >&6
12396 if test -n "$ac_ct_OBJDUMP"; then
12397 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12406 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12416 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12417 if test -n "$ac_ct_OBJDUMP"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12419 $as_echo "$ac_ct_OBJDUMP" >&6; }
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12425 if test "x$ac_ct_OBJDUMP" = x; then
12428 case $cross_compiling:$ac_tool_warned in
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12432 ac_tool_warned=yes ;;
12434 OBJDUMP=$ac_ct_OBJDUMP
12437 OBJDUMP="$ac_cv_prog_OBJDUMP"
12443 test -z "$AS" && AS=as
12449 test -z "$DLLTOOL" && DLLTOOL=dlltool
12455 test -z "$OBJDUMP" && OBJDUMP=objdump
12467 # Check whether --enable-shared was given.
12468 if test "${enable_shared+set}" = set; then :
12469 enableval=$enable_shared; p=${PACKAGE-default}
12471 yes) enable_shared=yes ;;
12472 no) enable_shared=no ;;
12475 # Look at the argument we got. We use all the common list separators.
12476 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12477 for pkg in $enableval; do
12479 if test "X$pkg" = "X$p"; then
12500 # Check whether --with-pic was given.
12501 if test "${with_pic+set}" = set; then :
12502 withval=$with_pic; lt_p=${PACKAGE-default}
12504 yes|no) pic_mode=$withval ;;
12507 # Look at the argument we got. We use all the common list separators.
12508 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12509 for lt_pkg in $withval; do
12511 if test "X$lt_pkg" = "X$lt_p"; then
12523 test -z "$pic_mode" && pic_mode=default
12531 # Check whether --enable-fast-install was given.
12532 if test "${enable_fast_install+set}" = set; then :
12533 enableval=$enable_fast_install; p=${PACKAGE-default}
12535 yes) enable_fast_install=yes ;;
12536 no) enable_fast_install=no ;;
12538 enable_fast_install=no
12539 # Look at the argument we got. We use all the common list separators.
12540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12541 for pkg in $enableval; do
12543 if test "X$pkg" = "X$p"; then
12544 enable_fast_install=yes
12551 enable_fast_install=yes
12564 # This can be used to rebuild libtool when needed
12565 LIBTOOL_DEPS="$ltmain"
12567 # Always use our own libtool.
12568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12599 test -z "$LN_S" && LN_S="ln -s"
12614 if test -n "${ZSH_VERSION+set}" ; then
12615 setopt NO_GLOB_SUBST
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12619 $as_echo_n "checking for objdir... " >&6; }
12620 if ${lt_cv_objdir+:} false; then :
12621 $as_echo_n "(cached) " >&6
12623 rm -f .libs 2>/dev/null
12624 mkdir .libs 2>/dev/null
12625 if test -d .libs; then
12628 # MS-DOS does not allow filenames that begin with a dot.
12631 rmdir .libs 2>/dev/null
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12634 $as_echo "$lt_cv_objdir" >&6; }
12635 objdir=$lt_cv_objdir
12641 cat >>confdefs.h <<_ACEOF
12642 #define LT_OBJDIR "$lt_cv_objdir/"
12650 # AIX sometimes has problems with the GCC collect2 program. For some
12651 # reason, if we set the COLLECT_NAMES environment variable, the problems
12652 # vanish in a puff of smoke.
12653 if test "X${COLLECT_NAMES+set}" != Xset; then
12655 export COLLECT_NAMES
12660 # Global variables:
12662 can_build_shared=yes
12664 # All known linkers require a `.a' archive for static linking (except MSVC,
12665 # which needs '.lib').
12668 with_gnu_ld="$lt_cv_prog_gnu_ld"
12671 old_CFLAGS="$CFLAGS"
12673 # Set sane defaults for various variables
12674 test -z "$CC" && CC=cc
12675 test -z "$LTCC" && LTCC=$CC
12676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12677 test -z "$LD" && LD=ld
12678 test -z "$ac_objext" && ac_objext=o
12680 for cc_temp in $compiler""; do
12682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12688 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12691 # Only perform the check for file, if the check method requires it
12692 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12693 case $deplibs_check_method in
12695 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12697 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12698 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12699 $as_echo_n "(cached) " >&6
12703 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12706 lt_save_MAGIC_CMD="$MAGIC_CMD"
12707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12709 for ac_dir in $ac_dummy; do
12711 test -z "$ac_dir" && ac_dir=.
12712 if test -f $ac_dir/${ac_tool_prefix}file; then
12713 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12714 if test -n "$file_magic_test_file"; then
12715 case $deplibs_check_method in
12717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12720 $EGREP "$file_magic_regex" > /dev/null; then
12725 *** Warning: the command libtool uses to detect shared libraries,
12726 *** $file_magic_cmd, produces output that libtool cannot recognize.
12727 *** The result is that libtool may fail to recognize shared libraries
12728 *** as such. This will affect the creation of libtool libraries that
12729 *** depend on shared libraries, but programs linked with such libtool
12730 *** libraries will work regardless of this problem. Nevertheless, you
12731 *** may want to report the problem to your system manager and/or to
12732 *** bug-libtool@gnu.org
12742 MAGIC_CMD="$lt_save_MAGIC_CMD"
12747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12748 if test -n "$MAGIC_CMD"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12750 $as_echo "$MAGIC_CMD" >&6; }
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12760 if test -z "$lt_cv_path_MAGIC_CMD"; then
12761 if test -n "$ac_tool_prefix"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12763 $as_echo_n "checking for file... " >&6; }
12764 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12765 $as_echo_n "(cached) " >&6
12769 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12772 lt_save_MAGIC_CMD="$MAGIC_CMD"
12773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12774 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12775 for ac_dir in $ac_dummy; do
12777 test -z "$ac_dir" && ac_dir=.
12778 if test -f $ac_dir/file; then
12779 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12780 if test -n "$file_magic_test_file"; then
12781 case $deplibs_check_method in
12783 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12784 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12786 $EGREP "$file_magic_regex" > /dev/null; then
12791 *** Warning: the command libtool uses to detect shared libraries,
12792 *** $file_magic_cmd, produces output that libtool cannot recognize.
12793 *** The result is that libtool may fail to recognize shared libraries
12794 *** as such. This will affect the creation of libtool libraries that
12795 *** depend on shared libraries, but programs linked with such libtool
12796 *** libraries will work regardless of this problem. Nevertheless, you
12797 *** may want to report the problem to your system manager and/or to
12798 *** bug-libtool@gnu.org
12808 MAGIC_CMD="$lt_save_MAGIC_CMD"
12813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12814 if test -n "$MAGIC_CMD"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12816 $as_echo "$MAGIC_CMD" >&6; }
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12832 # Use C for the default configuration in the libtool script
12836 ac_cpp='$CPP $CPPFLAGS'
12837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12842 # Source file extension for C test sources.
12845 # Object file extension for compiled C test sources.
12849 # Code to be used in simple compile tests
12850 lt_simple_compile_test_code="int some_variable = 0;"
12852 # Code to be used in simple link tests
12853 lt_simple_link_test_code='int main(){return(0);}'
12861 # If no C compiler was specified, use CC.
12864 # If no C compiler flags were specified, use CFLAGS.
12865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12867 # Allow CC to be a program name with arguments.
12870 # Save the default compiler, since it gets overwritten when the other
12871 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12872 compiler_DEFAULT=$CC
12874 # save warnings/boilerplate of simple test code
12875 ac_outfile=conftest.$ac_objext
12876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12878 _lt_compiler_boilerplate=`cat conftest.err`
12881 ac_outfile=conftest.$ac_objext
12882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12884 _lt_linker_boilerplate=`cat conftest.err`
12889 ## There is no encapsulation within the following macros, do not change
12890 ## the running order or otherwise move them around unless you know exactly
12891 ## what you are doing...
12892 if test -n "$compiler"; then
12894 lt_prog_compiler_no_builtin_flag=
12896 if test "$GCC" = yes; then
12897 case $cc_basename in
12899 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12901 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12905 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12906 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12907 $as_echo_n "(cached) " >&6
12909 lt_cv_prog_compiler_rtti_exceptions=no
12910 ac_outfile=conftest.$ac_objext
12911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12912 lt_compiler_flag="-fno-rtti -fno-exceptions"
12913 # Insert the option either (1) after the last *FLAGS variable, or
12914 # (2) before a word containing "conftest.", or (3) at the end.
12915 # Note that $ac_compile itself does not contain backslashes and begins
12916 # with a dollar sign (not a hyphen), so the echo should work correctly.
12917 # The option is referenced via a variable to avoid confusing sed.
12918 lt_compile=`echo "$ac_compile" | $SED \
12919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12921 -e 's:$: $lt_compiler_flag:'`
12922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12923 (eval "$lt_compile" 2>conftest.err)
12925 cat conftest.err >&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 if (exit $ac_status) && test -s "$ac_outfile"; then
12928 # The compiler can only warn and ignore the option if not recognized
12929 # So say no if there are warnings other than the usual output.
12930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12933 lt_cv_prog_compiler_rtti_exceptions=yes
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12940 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12942 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12943 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12955 lt_prog_compiler_wl=
12956 lt_prog_compiler_pic=
12957 lt_prog_compiler_static=
12960 if test "$GCC" = yes; then
12961 lt_prog_compiler_wl='-Wl,'
12962 lt_prog_compiler_static='-static'
12966 # All AIX code is PIC.
12967 if test "$host_cpu" = ia64; then
12968 # AIX 5 now supports IA64 processor
12969 lt_prog_compiler_static='-Bstatic'
12976 # see comment about AmigaOS4 .so support
12977 lt_prog_compiler_pic='-fPIC'
12980 # FIXME: we need at least 68020 code to build shared libraries, but
12981 # adding the `-m68020' flag to GCC prevents building anything better,
12983 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12988 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12989 # PIC is the default for these OSes.
12992 mingw* | cygwin* | pw32* | os2* | cegcc*)
12993 # This hack is so that the source file can tell whether it is being
12994 # built for inclusion in a dll (and should export symbols for example).
12995 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12996 # (--disable-auto-import) libraries
12997 lt_prog_compiler_pic='-DDLL_EXPORT'
13000 darwin* | rhapsody*)
13001 # PIC is the default on this platform
13002 # Common symbols not allowed in MH_DYLIB files
13003 lt_prog_compiler_pic='-fno-common'
13007 # PIC is the default for Haiku.
13008 # The "-static" flag exists, but is broken.
13009 lt_prog_compiler_static=
13013 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13014 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13015 # sets the default TLS model and affects inlining.
13021 lt_prog_compiler_pic='-fPIC'
13027 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13028 # Instead, we relocate shared libraries at runtime.
13032 # Just because we use GCC doesn't mean we suddenly get shared libraries
13033 # on systems that don't support them.
13034 lt_prog_compiler_can_build_shared=no
13039 # QNX uses GNU C++, but need to define -shared option too, otherwise
13040 # it will coredump.
13041 lt_prog_compiler_pic='-fPIC -shared'
13045 if test -d /usr/nec; then
13046 lt_prog_compiler_pic=-Kconform_pic
13051 lt_prog_compiler_pic='-fPIC'
13055 case $cc_basename in
13056 nvcc*) # Cuda Compiler Driver 2.2
13057 lt_prog_compiler_wl='-Xlinker '
13058 if test -n "$lt_prog_compiler_pic"; then
13059 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13064 # PORTME Check for flag to pass linker flags through the system compiler.
13067 lt_prog_compiler_wl='-Wl,'
13068 if test "$host_cpu" = ia64; then
13069 # AIX 5 now supports IA64 processor
13070 lt_prog_compiler_static='-Bstatic'
13072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13076 mingw* | cygwin* | pw32* | os2* | cegcc*)
13077 # This hack is so that the source file can tell whether it is being
13078 # built for inclusion in a dll (and should export symbols for example).
13079 lt_prog_compiler_pic='-DDLL_EXPORT'
13082 hpux9* | hpux10* | hpux11*)
13083 lt_prog_compiler_wl='-Wl,'
13084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13085 # not for PA HP-UX.
13091 lt_prog_compiler_pic='+Z'
13094 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13095 lt_prog_compiler_static='${wl}-a ${wl}archive'
13098 irix5* | irix6* | nonstopux*)
13099 lt_prog_compiler_wl='-Wl,'
13100 # PIC (with -KPIC) is the default.
13101 lt_prog_compiler_static='-non_shared'
13104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13105 case $cc_basename in
13106 # old Intel for x86_64 which still supported -KPIC.
13108 lt_prog_compiler_wl='-Wl,'
13109 lt_prog_compiler_pic='-KPIC'
13110 lt_prog_compiler_static='-static'
13112 # icc used to be incompatible with GCC.
13113 # ICC 10 doesn't accept -KPIC any more.
13115 lt_prog_compiler_wl='-Wl,'
13116 lt_prog_compiler_pic='-fPIC'
13117 lt_prog_compiler_static='-static'
13119 # Lahey Fortran 8.1.
13121 lt_prog_compiler_wl='-Wl,'
13122 lt_prog_compiler_pic='--shared'
13123 lt_prog_compiler_static='--static'
13126 # NAG Fortran compiler
13127 lt_prog_compiler_wl='-Wl,-Wl,,'
13128 lt_prog_compiler_pic='-PIC'
13129 lt_prog_compiler_static='-Bstatic'
13131 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13132 # Portland Group compilers (*not* the Pentium gcc compiler,
13133 # which looks to be a dead project)
13134 lt_prog_compiler_wl='-Wl,'
13135 lt_prog_compiler_pic='-fpic'
13136 lt_prog_compiler_static='-Bstatic'
13139 lt_prog_compiler_wl='-Wl,'
13140 # All Alpha code is PIC.
13141 lt_prog_compiler_static='-non_shared'
13143 xl* | bgxl* | bgf* | mpixl*)
13144 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13145 lt_prog_compiler_wl='-Wl,'
13146 lt_prog_compiler_pic='-qpic'
13147 lt_prog_compiler_static='-qstaticlink'
13150 case `$CC -V 2>&1 | sed 5q` in
13151 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13152 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13153 lt_prog_compiler_pic='-KPIC'
13154 lt_prog_compiler_static='-Bstatic'
13155 lt_prog_compiler_wl=''
13157 *Sun\ F* | *Sun*Fortran*)
13158 lt_prog_compiler_pic='-KPIC'
13159 lt_prog_compiler_static='-Bstatic'
13160 lt_prog_compiler_wl='-Qoption ld '
13164 lt_prog_compiler_pic='-KPIC'
13165 lt_prog_compiler_static='-Bstatic'
13166 lt_prog_compiler_wl='-Wl,'
13168 *Intel*\ [CF]*Compiler*)
13169 lt_prog_compiler_wl='-Wl,'
13170 lt_prog_compiler_pic='-fPIC'
13171 lt_prog_compiler_static='-static'
13174 lt_prog_compiler_wl='-Wl,'
13175 lt_prog_compiler_pic='-fpic'
13176 lt_prog_compiler_static='-Bstatic'
13184 lt_prog_compiler_pic='-KPIC'
13185 lt_prog_compiler_static='-Bstatic'
13189 # QNX uses GNU C++, but need to define -shared option too, otherwise
13190 # it will coredump.
13191 lt_prog_compiler_pic='-fPIC -shared'
13194 osf3* | osf4* | osf5*)
13195 lt_prog_compiler_wl='-Wl,'
13196 # All OSF/1 code is PIC.
13197 lt_prog_compiler_static='-non_shared'
13201 lt_prog_compiler_static='-non_shared'
13205 lt_prog_compiler_pic='-KPIC'
13206 lt_prog_compiler_static='-Bstatic'
13207 case $cc_basename in
13208 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13209 lt_prog_compiler_wl='-Qoption ld ';;
13211 lt_prog_compiler_wl='-Wl,';;
13216 lt_prog_compiler_wl='-Qoption ld '
13217 lt_prog_compiler_pic='-PIC'
13218 lt_prog_compiler_static='-Bstatic'
13221 sysv4 | sysv4.2uw2* | sysv4.3*)
13222 lt_prog_compiler_wl='-Wl,'
13223 lt_prog_compiler_pic='-KPIC'
13224 lt_prog_compiler_static='-Bstatic'
13228 if test -d /usr/nec ;then
13229 lt_prog_compiler_pic='-Kconform_pic'
13230 lt_prog_compiler_static='-Bstatic'
13234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13235 lt_prog_compiler_wl='-Wl,'
13236 lt_prog_compiler_pic='-KPIC'
13237 lt_prog_compiler_static='-Bstatic'
13241 lt_prog_compiler_wl='-Wl,'
13242 lt_prog_compiler_can_build_shared=no
13246 lt_prog_compiler_pic='-pic'
13247 lt_prog_compiler_static='-Bstatic'
13251 lt_prog_compiler_can_build_shared=no
13257 # For platforms which do not support PIC, -DPIC is meaningless:
13259 lt_prog_compiler_pic=
13262 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13268 if ${lt_cv_prog_compiler_pic+:} false; then :
13269 $as_echo_n "(cached) " >&6
13271 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13274 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13275 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13278 # Check to make sure the PIC flag actually works.
13280 if test -n "$lt_prog_compiler_pic"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13283 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13284 $as_echo_n "(cached) " >&6
13286 lt_cv_prog_compiler_pic_works=no
13287 ac_outfile=conftest.$ac_objext
13288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13289 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13290 # Insert the option either (1) after the last *FLAGS variable, or
13291 # (2) before a word containing "conftest.", or (3) at the end.
13292 # Note that $ac_compile itself does not contain backslashes and begins
13293 # with a dollar sign (not a hyphen), so the echo should work correctly.
13294 # The option is referenced via a variable to avoid confusing sed.
13295 lt_compile=`echo "$ac_compile" | $SED \
13296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13298 -e 's:$: $lt_compiler_flag:'`
13299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13300 (eval "$lt_compile" 2>conftest.err)
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 if (exit $ac_status) && test -s "$ac_outfile"; then
13305 # The compiler can only warn and ignore the option if not recognized
13306 # So say no if there are warnings other than the usual output.
13307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13310 lt_cv_prog_compiler_pic_works=yes
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13317 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13319 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13320 case $lt_prog_compiler_pic in
13322 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13325 lt_prog_compiler_pic=
13326 lt_prog_compiler_can_build_shared=no
13342 # Check to make sure the static flag actually works.
13344 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13346 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13347 if ${lt_cv_prog_compiler_static_works+:} false; then :
13348 $as_echo_n "(cached) " >&6
13350 lt_cv_prog_compiler_static_works=no
13351 save_LDFLAGS="$LDFLAGS"
13352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13355 # The linker can only warn and ignore the option if not recognized
13356 # So say no if there are warnings
13357 if test -s conftest.err; then
13358 # Append any errors to the config.log.
13359 cat conftest.err 1>&5
13360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13362 if diff conftest.exp conftest.er2 >/dev/null; then
13363 lt_cv_prog_compiler_static_works=yes
13366 lt_cv_prog_compiler_static_works=yes
13370 LDFLAGS="$save_LDFLAGS"
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13374 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13376 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13379 lt_prog_compiler_static=
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13389 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13390 if ${lt_cv_prog_compiler_c_o+:} false; then :
13391 $as_echo_n "(cached) " >&6
13393 lt_cv_prog_compiler_c_o=no
13394 $RM -r conftest 2>/dev/null
13398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13400 lt_compiler_flag="-o out/conftest2.$ac_objext"
13401 # Insert the option either (1) after the last *FLAGS variable, or
13402 # (2) before a word containing "conftest.", or (3) at the end.
13403 # Note that $ac_compile itself does not contain backslashes and begins
13404 # with a dollar sign (not a hyphen), so the echo should work correctly.
13405 lt_compile=`echo "$ac_compile" | $SED \
13406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13408 -e 's:$: $lt_compiler_flag:'`
13409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13410 (eval "$lt_compile" 2>out/conftest.err)
13412 cat out/conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13416 # The compiler can only warn and ignore the option if not recognized
13417 # So say no if there are warnings
13418 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13419 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13420 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13421 lt_cv_prog_compiler_c_o=yes
13426 # SGI C++ compiler will create directory out/ii_files/ for
13427 # template instantiation
13428 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13429 $RM out/* && rmdir out
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13436 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13444 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13445 if ${lt_cv_prog_compiler_c_o+:} false; then :
13446 $as_echo_n "(cached) " >&6
13448 lt_cv_prog_compiler_c_o=no
13449 $RM -r conftest 2>/dev/null
13453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13455 lt_compiler_flag="-o out/conftest2.$ac_objext"
13456 # Insert the option either (1) after the last *FLAGS variable, or
13457 # (2) before a word containing "conftest.", or (3) at the end.
13458 # Note that $ac_compile itself does not contain backslashes and begins
13459 # with a dollar sign (not a hyphen), so the echo should work correctly.
13460 lt_compile=`echo "$ac_compile" | $SED \
13461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13463 -e 's:$: $lt_compiler_flag:'`
13464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13465 (eval "$lt_compile" 2>out/conftest.err)
13467 cat out/conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13471 # The compiler can only warn and ignore the option if not recognized
13472 # So say no if there are warnings
13473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13474 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13475 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13476 lt_cv_prog_compiler_c_o=yes
13481 # SGI C++ compiler will create directory out/ii_files/ for
13482 # template instantiation
13483 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13484 $RM out/* && rmdir out
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13491 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13496 hard_links="nottested"
13497 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13498 # do not overwrite the value of need_locks provided by the user
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13500 $as_echo_n "checking if we can lock with hard links... " >&6; }
13503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13505 ln conftest.a conftest.b 2>&5 || hard_links=no
13506 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13508 $as_echo "$hard_links" >&6; }
13509 if test "$hard_links" = no; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13511 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13524 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13527 allow_undefined_flag=
13528 always_export_symbols=no
13530 archive_expsym_cmds=
13531 compiler_needs_object=no
13532 enable_shared_with_static_runtimes=no
13533 export_dynamic_flag_spec=
13534 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13535 hardcode_automatic=no
13537 hardcode_direct_absolute=no
13538 hardcode_libdir_flag_spec=
13539 hardcode_libdir_separator=
13540 hardcode_minus_L=no
13541 hardcode_shlibpath_var=unsupported
13543 link_all_deplibs=unknown
13545 module_expsym_cmds=
13546 old_archive_from_new_cmds=
13547 old_archive_from_expsyms_cmds=
13548 thread_safe_flag_spec=
13549 whole_archive_flag_spec=
13550 # include_expsyms should be a list of space-separated symbols to be *always*
13551 # included in the symbol list
13553 # exclude_expsyms can be an extended regexp of symbols to exclude
13554 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13555 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13556 # as well as any symbol that contains `d'.
13557 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13558 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13559 # platforms (ab)use it in PIC code, but their linkers get confused if
13560 # the symbol is explicitly referenced. Since portable code cannot
13561 # rely on this symbol name, it's probably fine to never include it in
13562 # preloaded symbol tables.
13563 # Exclude shared library initialization/finalization symbols.
13564 extract_expsyms_cmds=
13567 cygwin* | mingw* | pw32* | cegcc*)
13568 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13569 # When not using gcc, we currently assume that we are using
13570 # Microsoft Visual C++.
13571 if test "$GCC" != yes; then
13576 # we just hope/assume this is gcc and not c89 (= MSVC++)
13586 # On some targets, GNU ld is compatible enough with the native linker
13587 # that we're better off using the native interface for both.
13588 lt_use_gnu_ld_interface=no
13589 if test "$with_gnu_ld" = yes; then
13592 # The AIX port of GNU ld has always aspired to compatibility
13593 # with the native linker. However, as the warning in the GNU ld
13594 # block says, versions before 2.19.5* couldn't really create working
13595 # shared libraries, regardless of the interface used.
13596 case `$LD -v 2>&1` in
13597 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13598 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13599 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13601 lt_use_gnu_ld_interface=yes
13606 lt_use_gnu_ld_interface=yes
13611 if test "$lt_use_gnu_ld_interface" = yes; then
13612 # If archive_cmds runs LD, not CC, wlarc should be empty
13615 # Set some defaults for GNU ld with shared library support. These
13616 # are reset later if shared libraries are not supported. Putting them
13617 # here allows them to be overridden if necessary.
13618 runpath_var=LD_RUN_PATH
13619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13620 export_dynamic_flag_spec='${wl}--export-dynamic'
13621 # ancient GNU ld didn't support --whole-archive et. al.
13622 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13623 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13625 whole_archive_flag_spec=
13627 supports_anon_versioning=no
13628 case `$LD -v 2>&1` in
13629 *GNU\ gold*) supports_anon_versioning=yes ;;
13630 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13631 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13632 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13633 *\ 2.11.*) ;; # other 2.11 versions
13634 *) supports_anon_versioning=yes ;;
13637 # See if GNU ld supports shared libraries.
13640 # On AIX/PPC, the GNU linker is very broken
13641 if test "$host_cpu" != ia64; then
13645 *** Warning: the GNU linker, at least up to release 2.19, is reported
13646 *** to be unable to reliably create shared libraries on AIX.
13647 *** Therefore, libtool is disabling shared libraries support. If you
13648 *** really care for shared libraries, you may want to install binutils
13649 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13650 *** You will then need to restart the configuration process.
13659 # see comment about AmigaOS4 .so support
13660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13661 archive_expsym_cmds=''
13664 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)'
13665 hardcode_libdir_flag_spec='-L$libdir'
13666 hardcode_minus_L=yes
13672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13673 allow_undefined_flag=unsupported
13674 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13675 # support --undefined. This deserves some investigation. FIXME
13676 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13682 cygwin* | mingw* | pw32* | cegcc*)
13683 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13684 # as there is no search path for DLLs.
13685 hardcode_libdir_flag_spec='-L$libdir'
13686 export_dynamic_flag_spec='${wl}--export-all-symbols'
13687 allow_undefined_flag=unsupported
13688 always_export_symbols=no
13689 enable_shared_with_static_runtimes=yes
13690 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'
13691 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13693 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13695 # If the export-symbols file already is a .def file (1st line
13696 # is EXPORTS), use it as is; otherwise, prepend...
13697 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13698 cp $export_symbols $output_objdir/$soname.def;
13700 echo EXPORTS > $output_objdir/$soname.def;
13701 cat $export_symbols >> $output_objdir/$soname.def;
13703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13711 link_all_deplibs=yes
13716 hardcode_shlibpath_var=no
13717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13718 export_dynamic_flag_spec='${wl}-E'
13719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13720 # Instead, shared libraries are loaded at an image base (0x10000000 by
13721 # default) and relocated if they conflict, which is a slow very memory
13722 # consuming and fragmenting process. To avoid this, we pick a random,
13723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13724 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13725 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13726 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'
13729 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13731 if test "$host_os" = linux-dietlibc; then
13732 case $cc_basename in
13733 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13736 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13737 && test "$tmp_diet" = no
13739 tmp_addflag=' $pic_flag'
13740 tmp_sharedflag='-shared'
13741 case $cc_basename,$host_cpu in
13742 pgcc*) # Portland Group C compiler
13743 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'
13744 tmp_addflag=' $pic_flag'
13746 pgf77* | pgf90* | pgf95* | pgfortran*)
13747 # Portland Group f77 and f90 compilers
13748 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'
13749 tmp_addflag=' $pic_flag -Mnomain' ;;
13750 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13751 tmp_addflag=' -i_dynamic' ;;
13752 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13753 tmp_addflag=' -i_dynamic -nofor_main' ;;
13754 ifc* | ifort*) # Intel Fortran compiler
13755 tmp_addflag=' -nofor_main' ;;
13756 lf95*) # Lahey Fortran 8.1
13757 whole_archive_flag_spec=
13758 tmp_sharedflag='--shared' ;;
13759 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13760 tmp_sharedflag='-qmkshrobj'
13762 nvcc*) # Cuda Compiler Driver 2.2
13763 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'
13764 compiler_needs_object=yes
13767 case `$CC -V 2>&1 | sed 5q` in
13768 *Sun\ C*) # Sun C 5.9
13769 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'
13770 compiler_needs_object=yes
13771 tmp_sharedflag='-G' ;;
13772 *Sun\ F*) # Sun Fortran 8.3
13773 tmp_sharedflag='-G' ;;
13775 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13777 if test "x$supports_anon_versioning" = xyes; then
13778 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13780 echo "local: *; };" >> $output_objdir/$libname.ver~
13781 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13784 case $cc_basename in
13785 xlf* | bgf* | bgxlf* | mpixlf*)
13786 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13787 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13789 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13790 if test "x$supports_anon_versioning" = xyes; then
13791 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13793 echo "local: *; };" >> $output_objdir/$libname.ver~
13794 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13805 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13814 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13819 *** create shared libraries on Solaris systems. Therefore, libtool
13820 *** is disabling shared libraries support. We urge you to upgrade GNU
13821 *** binutils to release 2.9.1 or newer. Another option is to modify
13822 *** your PATH or compiler configuration so that the native linker is
13823 *** used, and then restart.
13826 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13835 case `$LD -v 2>&1` in
13836 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13840 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13841 *** reliably create shared libraries on SCO systems. Therefore, libtool
13842 *** is disabling shared libraries support. We urge you to upgrade GNU
13843 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13844 *** your PATH or compiler configuration so that the native linker is
13845 *** used, and then restart.
13850 # For security reasons, it is highly recommended that you always
13851 # use absolute paths for naming shared libraries, and exclude the
13852 # DT_RUNPATH tag from executables and libraries. But doing so
13853 # requires that you compile everything twice, which is a pain.
13854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13857 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13866 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13868 hardcode_direct=yes
13869 hardcode_shlibpath_var=no
13873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13875 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13882 if test "$ld_shlibs" = no; then
13884 hardcode_libdir_flag_spec=
13885 export_dynamic_flag_spec=
13886 whole_archive_flag_spec=
13889 # PORTME fill in a description of your system's linker (not GNU ld)
13892 allow_undefined_flag=unsupported
13893 always_export_symbols=yes
13894 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'
13895 # Note: this linker hardcodes the directories in LIBPATH if there
13896 # are no directories specified by -L.
13897 hardcode_minus_L=yes
13898 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13899 # Neither direct hardcoding nor static linking is supported with a
13901 hardcode_direct=unsupported
13906 if test "$host_cpu" = ia64; then
13907 # On IA64, the linker does run time linking by default, so we don't
13908 # have to do anything special.
13909 aix_use_runtimelinking=no
13910 exp_sym_flag='-Bexport'
13913 # If we're using GNU nm, then we don't want the "-C" option.
13914 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13915 # Also, AIX nm treats weak defined symbols like other global
13916 # defined symbols, whereas GNU nm marks them as "W".
13917 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13918 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'
13920 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'
13922 aix_use_runtimelinking=no
13924 # Test if we are trying to use run time linking or normal
13925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13926 # need to do runtime linking.
13927 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13928 for ld_flag in $LDFLAGS; do
13929 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13930 aix_use_runtimelinking=yes
13937 exp_sym_flag='-bexport'
13938 no_entry_flag='-bnoentry'
13941 # When large executables or shared objects are built, AIX ld can
13942 # have problems creating the table of contents. If linking a library
13943 # or program results in "error TOC overflow" add -mminimal-toc to
13944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13948 hardcode_direct=yes
13949 hardcode_direct_absolute=yes
13950 hardcode_libdir_separator=':'
13951 link_all_deplibs=yes
13952 file_list_spec='${wl}-f,'
13954 if test "$GCC" = yes; then
13955 case $host_os in aix4.[012]|aix4.[012].*)
13956 # We only want to do this on AIX 4.2 and lower, the check
13957 # below for broken collect2 doesn't work under 4.3+
13958 collect2name=`${CC} -print-prog-name=collect2`
13959 if test -f "$collect2name" &&
13960 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13962 # We have reworked collect2
13965 # We have old collect2
13966 hardcode_direct=unsupported
13967 # It fails to find uninstalled libraries when the uninstalled
13968 # path is not listed in the libpath. Setting hardcode_minus_L
13969 # to unsupported forces relinking
13970 hardcode_minus_L=yes
13971 hardcode_libdir_flag_spec='-L$libdir'
13972 hardcode_libdir_separator=
13976 shared_flag='-shared'
13977 if test "$aix_use_runtimelinking" = yes; then
13978 shared_flag="$shared_flag "'${wl}-G'
13982 if test "$host_cpu" = ia64; then
13983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13984 # chokes on -Wl,-G. The following line is correct:
13987 if test "$aix_use_runtimelinking" = yes; then
13988 shared_flag='${wl}-G'
13990 shared_flag='${wl}-bM:SRE'
13995 export_dynamic_flag_spec='${wl}-bexpall'
13996 # It seems that -bexpall does not export symbols beginning with
13997 # underscore (_), so it is better to generate a list of symbols to export.
13998 always_export_symbols=yes
13999 if test "$aix_use_runtimelinking" = yes; then
14000 # Warning - without using the other runtime loading flags (-brtl),
14001 # -berok will link without error, but may produce a broken library.
14002 allow_undefined_flag='-berok'
14003 # Determine the default libpath from the value encoded in an
14004 # empty executable.
14005 if test "${lt_cv_aix_libpath+set}" = set; then
14006 aix_libpath=$lt_cv_aix_libpath
14008 if ${lt_cv_aix_libpath_+:} false; then :
14009 $as_echo_n "(cached) " >&6
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14022 if ac_fn_c_try_link "$LINENO"; then :
14024 lt_aix_libpath_sed='
14025 /Import File Strings/,/^$/ {
14027 s/^0 *\([^ ]*\) *$/\1/
14031 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14032 # Check for a 64-bit object if we didn't find anything.
14033 if test -z "$lt_cv_aix_libpath_"; then
14034 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14037 rm -f core conftest.err conftest.$ac_objext \
14038 conftest$ac_exeext conftest.$ac_ext
14039 if test -z "$lt_cv_aix_libpath_"; then
14040 lt_cv_aix_libpath_="/usr/lib:/lib"
14045 aix_libpath=$lt_cv_aix_libpath_
14048 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14049 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"
14051 if test "$host_cpu" = ia64; then
14052 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14053 allow_undefined_flag="-z nodefs"
14054 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"
14056 # Determine the default libpath from the value encoded in an
14057 # empty executable.
14058 if test "${lt_cv_aix_libpath+set}" = set; then
14059 aix_libpath=$lt_cv_aix_libpath
14061 if ${lt_cv_aix_libpath_+:} false; then :
14062 $as_echo_n "(cached) " >&6
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14075 if ac_fn_c_try_link "$LINENO"; then :
14077 lt_aix_libpath_sed='
14078 /Import File Strings/,/^$/ {
14080 s/^0 *\([^ ]*\) *$/\1/
14084 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14085 # Check for a 64-bit object if we didn't find anything.
14086 if test -z "$lt_cv_aix_libpath_"; then
14087 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14090 rm -f core conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
14092 if test -z "$lt_cv_aix_libpath_"; then
14093 lt_cv_aix_libpath_="/usr/lib:/lib"
14098 aix_libpath=$lt_cv_aix_libpath_
14101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14102 # Warning - without using the other run time loading flags,
14103 # -berok will link without error, but may produce a broken library.
14104 no_undefined_flag=' ${wl}-bernotok'
14105 allow_undefined_flag=' ${wl}-berok'
14106 if test "$with_gnu_ld" = yes; then
14107 # We only use this code for GNU lds that support --whole-archive.
14108 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14110 # Exported symbols can be pulled into shared objects from archives
14111 whole_archive_flag_spec='$convenience'
14113 archive_cmds_need_lc=yes
14114 # This is similar to how AIX traditionally builds its shared libraries.
14115 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'
14123 # see comment about AmigaOS4 .so support
14124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14125 archive_expsym_cmds=''
14128 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)'
14129 hardcode_libdir_flag_spec='-L$libdir'
14130 hardcode_minus_L=yes
14136 export_dynamic_flag_spec=-rdynamic
14139 cygwin* | mingw* | pw32* | cegcc*)
14140 # When not using gcc, we currently assume that we are using
14141 # Microsoft Visual C++.
14142 # hardcode_libdir_flag_spec is actually meaningless, as there is
14143 # no search path for DLLs.
14144 case $cc_basename in
14147 hardcode_libdir_flag_spec=' '
14148 allow_undefined_flag=unsupported
14149 always_export_symbols=yes
14151 # Tell ltmain to make .lib files, not .a files.
14153 # Tell ltmain to make .dll files, not .so files.
14155 # FIXME: Setting linknames here is a bad hack.
14156 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14157 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14158 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14160 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14162 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14164 # The linker will not automatically build a static lib if we build a DLL.
14165 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14166 enable_shared_with_static_runtimes=yes
14167 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14170 old_postinstall_cmds='chmod 644 $oldlib'
14171 postlink_cmds='lt_outputfile="@OUTPUT@"~
14172 lt_tool_outputfile="@TOOL_OUTPUT@"~
14173 case $lt_outputfile in
14176 lt_outputfile="$lt_outputfile.exe"
14177 lt_tool_outputfile="$lt_tool_outputfile.exe"
14180 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14181 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14182 $RM "$lt_outputfile.manifest";
14186 # Assume MSVC wrapper
14187 hardcode_libdir_flag_spec=' '
14188 allow_undefined_flag=unsupported
14189 # Tell ltmain to make .lib files, not .a files.
14191 # Tell ltmain to make .dll files, not .so files.
14193 # FIXME: Setting linknames here is a bad hack.
14194 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14195 # The linker will automatically build a .lib file if we build a DLL.
14196 old_archive_from_new_cmds='true'
14197 # FIXME: Should let the user specify the lib program.
14198 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14199 enable_shared_with_static_runtimes=yes
14204 darwin* | rhapsody*)
14207 archive_cmds_need_lc=no
14209 hardcode_automatic=yes
14210 hardcode_shlibpath_var=unsupported
14211 if test "$lt_cv_ld_force_load" = "yes"; then
14212 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\"`'
14215 whole_archive_flag_spec=''
14217 link_all_deplibs=yes
14218 allow_undefined_flag="$_lt_dar_allow_undefined"
14219 case $cc_basename in
14220 ifort*) _lt_dar_can_shared=yes ;;
14221 *) _lt_dar_can_shared=$GCC ;;
14223 if test "$_lt_dar_can_shared" = "yes"; then
14224 output_verbose_link_cmd=func_echo_all
14225 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14226 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14227 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}"
14228 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}"
14237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14238 hardcode_libdir_flag_spec='-L$libdir'
14239 hardcode_shlibpath_var=no
14242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14243 # support. Future versions do this automatically, but an explicit c++rt0.o
14244 # does not break anything, and helps significantly (at the cost of a little
14247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14248 hardcode_libdir_flag_spec='-R$libdir'
14249 hardcode_direct=yes
14250 hardcode_shlibpath_var=no
14253 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14256 hardcode_direct=yes
14257 hardcode_minus_L=yes
14258 hardcode_shlibpath_var=no
14261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14262 freebsd* | dragonfly*)
14263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14264 hardcode_libdir_flag_spec='-R$libdir'
14265 hardcode_direct=yes
14266 hardcode_shlibpath_var=no
14270 if test "$GCC" = yes; then
14271 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'
14273 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'
14275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14276 hardcode_libdir_separator=:
14277 hardcode_direct=yes
14279 # hardcode_minus_L: Not really in the search PATH,
14280 # but as the default location of the library.
14281 hardcode_minus_L=yes
14282 export_dynamic_flag_spec='${wl}-E'
14286 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14287 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14291 if test "$with_gnu_ld" = no; then
14292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14293 hardcode_libdir_separator=:
14294 hardcode_direct=yes
14295 hardcode_direct_absolute=yes
14296 export_dynamic_flag_spec='${wl}-E'
14297 # hardcode_minus_L: Not really in the search PATH,
14298 # but as the default location of the library.
14299 hardcode_minus_L=yes
14304 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14307 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14310 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14313 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14319 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14322 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14326 # Older versions of the 11.00 compiler do not understand -b yet
14327 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14329 $as_echo_n "checking if $CC understands -b... " >&6; }
14330 if ${lt_cv_prog_compiler__b+:} false; then :
14331 $as_echo_n "(cached) " >&6
14333 lt_cv_prog_compiler__b=no
14334 save_LDFLAGS="$LDFLAGS"
14335 LDFLAGS="$LDFLAGS -b"
14336 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14337 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14338 # The linker can only warn and ignore the option if not recognized
14339 # So say no if there are warnings
14340 if test -s conftest.err; then
14341 # Append any errors to the config.log.
14342 cat conftest.err 1>&5
14343 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14345 if diff conftest.exp conftest.er2 >/dev/null; then
14346 lt_cv_prog_compiler__b=yes
14349 lt_cv_prog_compiler__b=yes
14353 LDFLAGS="$save_LDFLAGS"
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14357 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14359 if test x"$lt_cv_prog_compiler__b" = xyes; then
14360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14362 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14368 if test "$with_gnu_ld" = no; then
14369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14370 hardcode_libdir_separator=:
14375 hardcode_shlibpath_var=no
14378 hardcode_direct=yes
14379 hardcode_direct_absolute=yes
14380 export_dynamic_flag_spec='${wl}-E'
14382 # hardcode_minus_L: Not really in the search PATH,
14383 # but as the default location of the library.
14384 hardcode_minus_L=yes
14390 irix5* | irix6* | nonstopux*)
14391 if test "$GCC" = yes; then
14392 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'
14393 # Try to use the -exported_symbol ld option, if it does not
14394 # work, assume that -exports_file does not work either and
14395 # implicitly export all symbols.
14396 # This should be the same for all languages, so no per-tag cache variable.
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14398 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14399 if ${lt_cv_irix_exported_symbol+:} false; then :
14400 $as_echo_n "(cached) " >&6
14402 save_LDFLAGS="$LDFLAGS"
14403 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 int foo (void) { return 0; }
14408 if ac_fn_c_try_link "$LINENO"; then :
14409 lt_cv_irix_exported_symbol=yes
14411 lt_cv_irix_exported_symbol=no
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LDFLAGS="$save_LDFLAGS"
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14418 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14419 if test "$lt_cv_irix_exported_symbol" = yes; then
14420 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'
14423 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'
14424 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'
14426 archive_cmds_need_lc='no'
14427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14428 hardcode_libdir_separator=:
14430 link_all_deplibs=yes
14434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14437 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14439 hardcode_libdir_flag_spec='-R$libdir'
14440 hardcode_direct=yes
14441 hardcode_shlibpath_var=no
14445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14446 hardcode_direct=yes
14447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14448 hardcode_libdir_separator=:
14449 hardcode_shlibpath_var=no
14456 if test -f /usr/libexec/ld.so; then
14457 hardcode_direct=yes
14458 hardcode_shlibpath_var=no
14459 hardcode_direct_absolute=yes
14460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14462 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14463 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14464 export_dynamic_flag_spec='${wl}-E'
14467 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14469 hardcode_libdir_flag_spec='-R$libdir'
14472 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14473 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14483 hardcode_libdir_flag_spec='-L$libdir'
14484 hardcode_minus_L=yes
14485 allow_undefined_flag=unsupported
14486 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'
14487 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14491 if test "$GCC" = yes; then
14492 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14493 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'
14495 allow_undefined_flag=' -expect_unresolved \*'
14496 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'
14498 archive_cmds_need_lc='no'
14499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14500 hardcode_libdir_separator=:
14503 osf4* | osf5*) # as osf3* with the addition of -msym flag
14504 if test "$GCC" = yes; then
14505 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14506 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'
14507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14509 allow_undefined_flag=' -expect_unresolved \*'
14510 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'
14511 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~
14512 $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'
14514 # Both c and cxx compiler support -rpath directly
14515 hardcode_libdir_flag_spec='-rpath $libdir'
14517 archive_cmds_need_lc='no'
14518 hardcode_libdir_separator=:
14522 no_undefined_flag=' -z defs'
14523 if test "$GCC" = yes; then
14525 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14526 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14527 $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'
14529 case `$CC -V 2>&1` in
14532 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14538 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14540 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14544 hardcode_libdir_flag_spec='-R$libdir'
14545 hardcode_shlibpath_var=no
14547 solaris2.[0-5] | solaris2.[0-5].*) ;;
14549 # The compiler driver will combine and reorder linker options,
14550 # but understands `-z linker_flag'. GCC discards it without `$wl',
14551 # but is careful enough not to reorder.
14552 # Supported since Solaris 2.6 (maybe 2.5.1?)
14553 if test "$GCC" = yes; then
14554 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14556 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14560 link_all_deplibs=yes
14564 if test "x$host_vendor" = xsequent; then
14565 # Use $CC to link under sequent, because it throws in some extra .o
14566 # files that make .init and .fini sections work.
14567 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14569 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14571 hardcode_libdir_flag_spec='-L$libdir'
14572 hardcode_direct=yes
14573 hardcode_minus_L=yes
14574 hardcode_shlibpath_var=no
14578 case $host_vendor in
14580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14581 hardcode_direct=yes # is this really true???
14584 ## LD is ld it makes a PLAMLIB
14585 ## CC just makes a GrossModule.
14586 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14587 reload_cmds='$CC -r -o $output$reload_objs'
14591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14592 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14595 runpath_var='LD_RUN_PATH'
14596 hardcode_shlibpath_var=no
14600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14601 hardcode_shlibpath_var=no
14602 export_dynamic_flag_spec='-Bexport'
14606 if test -d /usr/nec; then
14607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14608 hardcode_shlibpath_var=no
14609 runpath_var=LD_RUN_PATH
14610 hardcode_runpath_var=yes
14615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14616 no_undefined_flag='${wl}-z,text'
14617 archive_cmds_need_lc=no
14618 hardcode_shlibpath_var=no
14619 runpath_var='LD_RUN_PATH'
14621 if test "$GCC" = yes; then
14622 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14623 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14625 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14626 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14630 sysv5* | sco3.2v5* | sco5v6*)
14631 # Note: We can NOT use -z defs as we might desire, because we do not
14632 # link with -lc, and that would cause any symbols used from libc to
14633 # always be unresolved, which means just about no library would
14634 # ever link correctly. If we're not using GNU ld we use -z text
14635 # though, which does catch some bad symbols but isn't as heavy-handed
14637 no_undefined_flag='${wl}-z,text'
14638 allow_undefined_flag='${wl}-z,nodefs'
14639 archive_cmds_need_lc=no
14640 hardcode_shlibpath_var=no
14641 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14642 hardcode_libdir_separator=':'
14643 link_all_deplibs=yes
14644 export_dynamic_flag_spec='${wl}-Bexport'
14645 runpath_var='LD_RUN_PATH'
14647 if test "$GCC" = yes; then
14648 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14649 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14652 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14658 hardcode_libdir_flag_spec='-L$libdir'
14659 hardcode_shlibpath_var=no
14667 if test x$host_vendor = xsni; then
14669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14670 export_dynamic_flag_spec='${wl}-Blargedynsym'
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14677 $as_echo "$ld_shlibs" >&6; }
14678 test "$ld_shlibs" = no && can_build_shared=no
14680 with_gnu_ld=$with_gnu_ld
14697 # Do we need to explicitly link libc?
14699 case "x$archive_cmds_need_lc" in
14701 # Assume -lc should be added
14702 archive_cmds_need_lc=yes
14704 if test "$enable_shared" = yes && test "$GCC" = yes; then
14705 case $archive_cmds in
14707 # FIXME: we may have to deal with multi-command sequences.
14710 # Test whether the compiler implicitly links with -lc since on some
14711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14712 # to ld, don't add -lc before -lgcc.
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14714 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14715 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14716 $as_echo_n "(cached) " >&6
14719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14722 (eval $ac_compile) 2>&5
14724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14725 test $ac_status = 0; } 2>conftest.err; then
14728 libobjs=conftest.$ac_objext
14730 wl=$lt_prog_compiler_wl
14731 pic_flag=$lt_prog_compiler_pic
14737 lt_save_allow_undefined_flag=$allow_undefined_flag
14738 allow_undefined_flag=
14739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14740 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14743 test $ac_status = 0; }
14745 lt_cv_archive_cmds_need_lc=no
14747 lt_cv_archive_cmds_need_lc=yes
14749 allow_undefined_flag=$lt_save_allow_undefined_flag
14751 cat conftest.err 1>&5
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14757 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14758 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14917 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14919 if test "$GCC" = yes; then
14921 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14922 *) lt_awk_arg="/^libraries:/" ;;
14925 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14926 *) lt_sed_strip_eq="s,=/,/,g" ;;
14928 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14929 case $lt_search_path_spec in
14931 # if the path contains ";" then we assume it to be the separator
14932 # otherwise default to the standard path separator (i.e. ":") - it is
14933 # assumed that no part of a normal pathname contains ";" but that should
14934 # okay in the real world where ";" in dirpaths is itself problematic.
14935 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14938 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14941 # Ok, now we have the path, separated by spaces, we can step through it
14942 # and add multilib dir if necessary.
14943 lt_tmp_lt_search_path_spec=
14944 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14945 for lt_sys_path in $lt_search_path_spec; do
14946 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14947 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14949 test -d "$lt_sys_path" && \
14950 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14953 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14954 BEGIN {RS=" "; FS="/|\n";} {
14957 for (lt_i = NF; lt_i > 0; lt_i--) {
14958 if ($lt_i != "" && $lt_i != ".") {
14959 if ($lt_i == "..") {
14962 if (lt_count == 0) {
14963 lt_foo="/" $lt_i lt_foo;
14970 if (lt_foo != "") { lt_freq[lt_foo]++; }
14971 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14973 # AWK program above erroneously prepends '/' to C:/dos/paths
14976 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14977 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14979 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14983 library_names_spec=
14984 libname_spec='lib$name'
14988 postuninstall_cmds=
14992 shlibpath_overrides_runpath=unknown
14994 dynamic_linker="$host_os ld.so"
14995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14996 need_lib_prefix=unknown
14997 hardcode_into_libs=no
14999 # when you set need_version to no, make sure it does not cause -set_version
15000 # flags to be left without arguments
15001 need_version=unknown
15005 version_type=linux # correct to gnu/linux during the next big refactor
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15007 shlibpath_var=LIBPATH
15009 # AIX 3 has no versioning support, so we append a major version to the name.
15010 soname_spec='${libname}${release}${shared_ext}$major'
15014 version_type=linux # correct to gnu/linux during the next big refactor
15017 hardcode_into_libs=yes
15018 if test "$host_cpu" = ia64; then
15019 # AIX 5 supports IA64
15020 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15021 shlibpath_var=LD_LIBRARY_PATH
15023 # With GCC up to 2.95.x, collect2 would create an import file
15024 # for dependence libraries. The import file would start with
15025 # the line `#! .'. This would cause the generated library to
15026 # depend on `.', always an invalid library. This was fixed in
15027 # development snapshots of GCC prior to 3.0.
15029 aix4 | aix4.[01] | aix4.[01].*)
15030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15032 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15035 can_build_shared=no
15039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15040 # soname into executable. Probably we can add versioning support to
15041 # collect2, so additional links can be useful in future.
15042 if test "$aix_use_runtimelinking" = yes; then
15043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15044 # instead of lib<name>.a to let people know that these are not
15045 # typical AIX shared libraries.
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15048 # We preserve .a as extension for shared libraries through AIX4.2
15049 # and later when we are not doing run time linking.
15050 library_names_spec='${libname}${release}.a $libname.a'
15051 soname_spec='${libname}${release}${shared_ext}$major'
15053 shlibpath_var=LIBPATH
15060 # Since July 2007 AmigaOS4 officially supports .so libraries.
15061 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15065 library_names_spec='$libname.ixlibrary $libname.a'
15066 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15067 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'
15073 library_names_spec='${libname}${shared_ext}'
15074 dynamic_linker="$host_os ld.so"
15075 shlibpath_var=LIBRARY_PATH
15079 version_type=linux # correct to gnu/linux during the next big refactor
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15082 soname_spec='${libname}${release}${shared_ext}$major'
15083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15087 # the default ld.so.conf also contains /usr/contrib/lib and
15088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15089 # libtool to hard-code these into programs
15092 cygwin* | mingw* | pw32* | cegcc*)
15093 version_type=windows
15098 case $GCC,$cc_basename in
15101 library_names_spec='$libname.dll.a'
15102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15103 postinstall_cmds='base_file=`basename \${file}`~
15104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15105 dldir=$destdir/`dirname \$dlpath`~
15106 test -d \$dldir || mkdir -p \$dldir~
15107 $install_prog $dir/$dlname \$dldir/$dlname~
15108 chmod a+x \$dldir/$dlname~
15109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15113 dlpath=$dir/\$dldll~
15115 shlibpath_overrides_runpath=yes
15119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15122 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15125 # MinGW DLLs use traditional 'lib' prefix
15126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15129 # pw32 DLLs use 'pw' prefix rather than 'lib'
15130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15133 dynamic_linker='Win32 ld.exe'
15138 libname_spec='$name'
15139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15140 library_names_spec='${libname}.dll.lib'
15144 sys_lib_search_path_spec=
15147 for lt_path in $LIB
15150 # Let DOS variable expansion print the short 8.3 style file name.
15151 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15152 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15155 # Convert to MSYS style.
15156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15159 # Convert to unix form, then to dos form, then back to unix form
15160 # but this time dos style (no spaces!) so that the unix form looks
15161 # like /cygdrive/c/PROGRA~1:/cygdr...
15162 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15163 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15164 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15167 sys_lib_search_path_spec="$LIB"
15168 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15169 # It is most probably a Windows format PATH.
15170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15174 # FIXME: find the short name or the path components, as spaces are
15175 # common. (e.g. "Program Files" -> "PROGRA~1")
15179 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15180 postinstall_cmds='base_file=`basename \${file}`~
15181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15182 dldir=$destdir/`dirname \$dlpath`~
15183 test -d \$dldir || mkdir -p \$dldir~
15184 $install_prog $dir/$dlname \$dldir/$dlname'
15185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15186 dlpath=$dir/\$dldll~
15188 shlibpath_overrides_runpath=yes
15189 dynamic_linker='Win32 link.exe'
15193 # Assume MSVC wrapper
15194 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15195 dynamic_linker='Win32 ld.exe'
15198 # FIXME: first we should search . and the directory the executable is in
15202 darwin* | rhapsody*)
15203 dynamic_linker="$host_os dyld"
15204 version_type=darwin
15207 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15208 soname_spec='${libname}${release}${major}$shared_ext'
15209 shlibpath_overrides_runpath=yes
15210 shlibpath_var=DYLD_LIBRARY_PATH
15211 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15213 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15218 version_type=linux # correct to gnu/linux during the next big refactor
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15226 freebsd* | dragonfly*)
15227 # DragonFly does not have aout. When/if they implement a new
15228 # versioning mechanism, adjust this.
15229 if test -x /usr/bin/objformat; then
15230 objformat=`/usr/bin/objformat`
15233 freebsd[23].*) objformat=aout ;;
15234 *) objformat=elf ;;
15237 version_type=freebsd-$objformat
15238 case $version_type in
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15249 shlibpath_var=LD_LIBRARY_PATH
15252 shlibpath_overrides_runpath=yes
15254 freebsd3.[01]* | freebsdelf3.[01]*)
15255 shlibpath_overrides_runpath=yes
15256 hardcode_into_libs=yes
15258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15260 shlibpath_overrides_runpath=no
15261 hardcode_into_libs=yes
15263 *) # from 4.6 on, and DragonFly
15264 shlibpath_overrides_runpath=yes
15265 hardcode_into_libs=yes
15271 version_type=linux # correct to gnu/linux during the next big refactor
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15275 soname_spec='${libname}${release}${shared_ext}$major'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 shlibpath_overrides_runpath=no
15278 hardcode_into_libs=yes
15282 version_type=linux # correct to gnu/linux during the next big refactor
15285 dynamic_linker="$host_os runtime_loader"
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15287 soname_spec='${libname}${release}${shared_ext}$major'
15288 shlibpath_var=LIBRARY_PATH
15289 shlibpath_overrides_runpath=yes
15290 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15291 hardcode_into_libs=yes
15294 hpux9* | hpux10* | hpux11*)
15295 # Give a soname corresponding to the major version so that dld.sl refuses to
15296 # link against other versions.
15303 hardcode_into_libs=yes
15304 dynamic_linker="$host_os dld.so"
15305 shlibpath_var=LD_LIBRARY_PATH
15306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 if test "X$HPUX_IA64_MODE" = X32; then
15310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15318 hardcode_into_libs=yes
15319 dynamic_linker="$host_os dld.sl"
15320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15329 dynamic_linker="$host_os dld.sl"
15330 shlibpath_var=SHLIB_PATH
15331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333 soname_spec='${libname}${release}${shared_ext}$major'
15336 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15337 postinstall_cmds='chmod 555 $lib'
15338 # or fails outright, so override atomically:
15339 install_override_mode=555
15343 version_type=linux # correct to gnu/linux during the next big refactor
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15347 soname_spec='${libname}${release}${shared_ext}$major'
15348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=no
15351 hardcode_into_libs=yes
15354 irix5* | irix6* | nonstopux*)
15356 nonstopux*) version_type=nonstopux ;;
15358 if test "$lt_cv_prog_gnu_ld" = yes; then
15359 version_type=linux # correct to gnu/linux during the next big refactor
15366 soname_spec='${libname}${release}${shared_ext}$major'
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15369 irix5* | nonstopux*)
15370 libsuff= shlibsuff=
15373 case $LD in # libtool.m4 will add one of these switches to LD
15374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15375 libsuff= shlibsuff= libmagic=32-bit;;
15376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15377 libsuff=32 shlibsuff=N32 libmagic=N32;;
15378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15380 *) libsuff= shlibsuff= libmagic=never-match;;
15384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15385 shlibpath_overrides_runpath=no
15386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15388 hardcode_into_libs=yes
15391 # No shared lib support for Linux oldld, aout, or coff.
15392 linux*oldld* | linux*aout* | linux*coff*)
15396 # This must be glibc/ELF.
15397 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15398 version_type=linux # correct to gnu/linux during the next big refactor
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15404 shlibpath_var=LD_LIBRARY_PATH
15405 shlibpath_overrides_runpath=no
15407 # Some binutils ld are patched to set DT_RUNPATH
15408 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15409 $as_echo_n "(cached) " >&6
15411 lt_cv_shlibpath_overrides_runpath=no
15412 save_LDFLAGS=$LDFLAGS
15413 save_libdir=$libdir
15414 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15415 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15427 if ac_fn_c_try_link "$LINENO"; then :
15428 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15429 lt_cv_shlibpath_overrides_runpath=yes
15432 rm -f core conftest.err conftest.$ac_objext \
15433 conftest$ac_exeext conftest.$ac_ext
15434 LDFLAGS=$save_LDFLAGS
15435 libdir=$save_libdir
15439 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15441 # This implies no fast_install, which is unacceptable.
15442 # Some rework will be needed to allow for fast_install
15443 # before this can be enabled.
15444 hardcode_into_libs=yes
15446 # Add ABI-specific directories to the system library path.
15447 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15449 # Append ld.so.conf contents to the search path
15450 if test -f /etc/ld.so.conf; then
15451 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' ' '`
15452 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15456 # We used to test for /lib/ld.so.1 and disable shared libraries on
15457 # powerpc, because MkLinux only supported shared libraries with the
15458 # GNU dynamic linker. Since this was broken with cross compilers,
15459 # most powerpc-linux boxes support dynamic linking these days and
15460 # people can always --disable-shared, the test was removed, and we
15461 # assume the GNU/Linux dynamic linker is in use.
15462 dynamic_linker='GNU/Linux ld.so'
15469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15472 dynamic_linker='NetBSD (a.out) ld.so'
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 dynamic_linker='NetBSD ld.elf_so'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=yes
15480 hardcode_into_libs=yes
15484 version_type=linux # correct to gnu/linux during the next big refactor
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 shlibpath_overrides_runpath=yes
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=no
15498 hardcode_into_libs=yes
15499 dynamic_linker='ldqnx.so'
15504 sys_lib_dlsearch_path_spec="/usr/lib"
15506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15508 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15509 *) need_version=no ;;
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15516 openbsd2.[89] | openbsd2.[89].*)
15517 shlibpath_overrides_runpath=no
15520 shlibpath_overrides_runpath=yes
15524 shlibpath_overrides_runpath=yes
15529 libname_spec='$name'
15532 library_names_spec='$libname${shared_ext} $libname.a'
15533 dynamic_linker='OS/2 ld.exe'
15534 shlibpath_var=LIBPATH
15537 osf3* | osf4* | osf5*)
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15545 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15553 version_type=linux # correct to gnu/linux during the next big refactor
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=yes
15560 hardcode_into_libs=yes
15561 # ldd complains unless libraries are executable
15562 postinstall_cmds='chmod +x $lib'
15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15568 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 shlibpath_overrides_runpath=yes
15571 if test "$with_gnu_ld" = yes; then
15578 version_type=linux # correct to gnu/linux during the next big refactor
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 shlibpath_var=LD_LIBRARY_PATH
15582 case $host_vendor in
15584 shlibpath_overrides_runpath=no
15586 runpath_var=LD_RUN_PATH
15594 shlibpath_overrides_runpath=no
15595 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15601 if test -d /usr/nec ;then
15602 version_type=linux # correct to gnu/linux during the next big refactor
15603 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15604 soname_spec='$libname${shared_ext}.$major'
15605 shlibpath_var=LD_LIBRARY_PATH
15609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15610 version_type=freebsd-elf
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15614 soname_spec='${libname}${release}${shared_ext}$major'
15615 shlibpath_var=LD_LIBRARY_PATH
15616 shlibpath_overrides_runpath=yes
15617 hardcode_into_libs=yes
15618 if test "$with_gnu_ld" = yes; then
15619 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15621 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15624 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15628 sys_lib_dlsearch_path_spec='/usr/lib'
15632 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15633 version_type=linux # correct to gnu/linux during the next big refactor
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637 shlibpath_var=LD_LIBRARY_PATH
15638 shlibpath_overrides_runpath=no
15639 hardcode_into_libs=yes
15643 version_type=linux # correct to gnu/linux during the next big refactor
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 shlibpath_var=LD_LIBRARY_PATH
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15654 $as_echo "$dynamic_linker" >&6; }
15655 test "$dynamic_linker" = no && can_build_shared=no
15657 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15658 if test "$GCC" = yes; then
15659 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15662 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15663 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15665 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15666 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15761 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15763 if test -n "$hardcode_libdir_flag_spec" ||
15764 test -n "$runpath_var" ||
15765 test "X$hardcode_automatic" = "Xyes" ; then
15767 # We can hardcode non-existent directories.
15768 if test "$hardcode_direct" != no &&
15769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15770 # have to relink, otherwise we might link with an installed library
15771 # when we should be linking with a yet-to-be-installed one
15772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15773 test "$hardcode_minus_L" != no; then
15774 # Linking always hardcodes the temporary library directory.
15775 hardcode_action=relink
15777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15778 hardcode_action=immediate
15781 # We cannot hardcode anything, or else we can only hardcode existing
15783 hardcode_action=unsupported
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15786 $as_echo "$hardcode_action" >&6; }
15788 if test "$hardcode_action" = relink ||
15789 test "$inherit_rpath" = yes; then
15790 # Fast installation is not supported
15791 enable_fast_install=no
15792 elif test "$shlibpath_overrides_runpath" = yes ||
15793 test "$enable_shared" = no; then
15794 # Fast installation is not necessary
15795 enable_fast_install=needless
15803 if test "x$enable_dlopen" != xyes; then
15804 enable_dlopen=unknown
15805 enable_dlopen_self=unknown
15806 enable_dlopen_self_static=unknown
15813 lt_cv_dlopen="load_add_on"
15815 lt_cv_dlopen_self=yes
15818 mingw* | pw32* | cegcc*)
15819 lt_cv_dlopen="LoadLibrary"
15824 lt_cv_dlopen="dlopen"
15829 # if libdl is installed we need to link against it
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15831 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15832 if ${ac_cv_lib_dl_dlopen+:} false; then :
15833 $as_echo_n "(cached) " >&6
15835 ac_check_lib_save_LIBS=$LIBS
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15840 /* Override any GCC internal prototype to avoid an error.
15841 Use char because int might match the return type of a GCC
15842 builtin and then its argument prototype would still apply. */
15855 if ac_fn_c_try_link "$LINENO"; then :
15856 ac_cv_lib_dl_dlopen=yes
15858 ac_cv_lib_dl_dlopen=no
15860 rm -f core conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15862 LIBS=$ac_check_lib_save_LIBS
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15866 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15870 lt_cv_dlopen="dyld"
15872 lt_cv_dlopen_self=yes
15879 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15880 if test "x$ac_cv_func_shl_load" = xyes; then :
15881 lt_cv_dlopen="shl_load"
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15884 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15885 if ${ac_cv_lib_dld_shl_load+:} false; then :
15886 $as_echo_n "(cached) " >&6
15888 ac_check_lib_save_LIBS=$LIBS
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15893 /* Override any GCC internal prototype to avoid an error.
15894 Use char because int might match the return type of a GCC
15895 builtin and then its argument prototype would still apply. */
15903 return shl_load ();
15908 if ac_fn_c_try_link "$LINENO"; then :
15909 ac_cv_lib_dld_shl_load=yes
15911 ac_cv_lib_dld_shl_load=no
15913 rm -f core conftest.err conftest.$ac_objext \
15914 conftest$ac_exeext conftest.$ac_ext
15915 LIBS=$ac_check_lib_save_LIBS
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15918 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15919 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15920 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15922 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15923 if test "x$ac_cv_func_dlopen" = xyes; then :
15924 lt_cv_dlopen="dlopen"
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15928 if ${ac_cv_lib_dl_dlopen+:} false; then :
15929 $as_echo_n "(cached) " >&6
15931 ac_check_lib_save_LIBS=$LIBS
15933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15934 /* end confdefs.h. */
15936 /* Override any GCC internal prototype to avoid an error.
15937 Use char because int might match the return type of a GCC
15938 builtin and then its argument prototype would still apply. */
15951 if ac_fn_c_try_link "$LINENO"; then :
15952 ac_cv_lib_dl_dlopen=yes
15954 ac_cv_lib_dl_dlopen=no
15956 rm -f core conftest.err conftest.$ac_objext \
15957 conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15962 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15966 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15967 if ${ac_cv_lib_svld_dlopen+:} false; then :
15968 $as_echo_n "(cached) " >&6
15970 ac_check_lib_save_LIBS=$LIBS
15971 LIBS="-lsvld $LIBS"
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15975 /* Override any GCC internal prototype to avoid an error.
15976 Use char because int might match the return type of a GCC
15977 builtin and then its argument prototype would still apply. */
15990 if ac_fn_c_try_link "$LINENO"; then :
15991 ac_cv_lib_svld_dlopen=yes
15993 ac_cv_lib_svld_dlopen=no
15995 rm -f core conftest.err conftest.$ac_objext \
15996 conftest$ac_exeext conftest.$ac_ext
15997 LIBS=$ac_check_lib_save_LIBS
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16000 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16001 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16005 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16006 if ${ac_cv_lib_dld_dld_link+:} false; then :
16007 $as_echo_n "(cached) " >&6
16009 ac_check_lib_save_LIBS=$LIBS
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16014 /* Override any GCC internal prototype to avoid an error.
16015 Use char because int might match the return type of a GCC
16016 builtin and then its argument prototype would still apply. */
16024 return dld_link ();
16029 if ac_fn_c_try_link "$LINENO"; then :
16030 ac_cv_lib_dld_dld_link=yes
16032 ac_cv_lib_dld_dld_link=no
16034 rm -f core conftest.err conftest.$ac_objext \
16035 conftest$ac_exeext conftest.$ac_ext
16036 LIBS=$ac_check_lib_save_LIBS
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16039 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16040 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16041 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16062 if test "x$lt_cv_dlopen" != xno; then
16068 case $lt_cv_dlopen in
16070 save_CPPFLAGS="$CPPFLAGS"
16071 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16073 save_LDFLAGS="$LDFLAGS"
16074 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16077 LIBS="$lt_cv_dlopen_libs $LIBS"
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16080 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16081 if ${lt_cv_dlopen_self+:} false; then :
16082 $as_echo_n "(cached) " >&6
16084 if test "$cross_compiling" = yes; then :
16085 lt_cv_dlopen_self=cross
16087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16088 lt_status=$lt_dlunknown
16089 cat > conftest.$ac_ext <<_LT_EOF
16090 #line $LINENO "configure"
16091 #include "confdefs.h"
16100 # define LT_DLGLOBAL RTLD_GLOBAL
16103 # define LT_DLGLOBAL DL_GLOBAL
16105 # define LT_DLGLOBAL 0
16109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16110 find out it does not work in some platform. */
16111 #ifndef LT_DLLAZY_OR_NOW
16113 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16116 # define LT_DLLAZY_OR_NOW DL_LAZY
16119 # define LT_DLLAZY_OR_NOW RTLD_NOW
16122 # define LT_DLLAZY_OR_NOW DL_NOW
16124 # define LT_DLLAZY_OR_NOW 0
16131 /* When -fvisbility=hidden is used, assume the code has been annotated
16132 correspondingly for the symbols needed. */
16133 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16134 int fnord () __attribute__((visibility("default")));
16137 int fnord () { return 42; }
16140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16141 int status = $lt_dlunknown;
16145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16148 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16149 else puts (dlerror ());
16151 /* dlclose (self); */
16159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16160 (eval $ac_link) 2>&5
16162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16163 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16164 (./conftest; exit; ) >&5 2>/dev/null
16166 case x$lt_status in
16167 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16168 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16169 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16172 # compilation failed
16173 lt_cv_dlopen_self=no
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16181 $as_echo "$lt_cv_dlopen_self" >&6; }
16183 if test "x$lt_cv_dlopen_self" = xyes; then
16184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16186 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16187 if ${lt_cv_dlopen_self_static+:} false; then :
16188 $as_echo_n "(cached) " >&6
16190 if test "$cross_compiling" = yes; then :
16191 lt_cv_dlopen_self_static=cross
16193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16194 lt_status=$lt_dlunknown
16195 cat > conftest.$ac_ext <<_LT_EOF
16196 #line $LINENO "configure"
16197 #include "confdefs.h"
16206 # define LT_DLGLOBAL RTLD_GLOBAL
16209 # define LT_DLGLOBAL DL_GLOBAL
16211 # define LT_DLGLOBAL 0
16215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16216 find out it does not work in some platform. */
16217 #ifndef LT_DLLAZY_OR_NOW
16219 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16222 # define LT_DLLAZY_OR_NOW DL_LAZY
16225 # define LT_DLLAZY_OR_NOW RTLD_NOW
16228 # define LT_DLLAZY_OR_NOW DL_NOW
16230 # define LT_DLLAZY_OR_NOW 0
16237 /* When -fvisbility=hidden is used, assume the code has been annotated
16238 correspondingly for the symbols needed. */
16239 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16240 int fnord () __attribute__((visibility("default")));
16243 int fnord () { return 42; }
16246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16247 int status = $lt_dlunknown;
16251 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16254 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16255 else puts (dlerror ());
16257 /* dlclose (self); */
16265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16266 (eval $ac_link) 2>&5
16268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16269 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16270 (./conftest; exit; ) >&5 2>/dev/null
16272 case x$lt_status in
16273 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16274 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16275 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16278 # compilation failed
16279 lt_cv_dlopen_self_static=no
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16287 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16290 CPPFLAGS="$save_CPPFLAGS"
16291 LDFLAGS="$save_LDFLAGS"
16296 case $lt_cv_dlopen_self in
16297 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16298 *) enable_dlopen_self=unknown ;;
16301 case $lt_cv_dlopen_self_static in
16302 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16303 *) enable_dlopen_self_static=unknown ;;
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16326 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16327 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16328 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16329 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16331 $as_echo "yes" >&6; }
16333 # FIXME - insert some real tests, host_os isn't really good enough
16336 if test -n "$STRIP" ; then
16337 striplib="$STRIP -x"
16338 old_striplib="$STRIP -S"
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16340 $as_echo "yes" >&6; }
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343 $as_echo "no" >&6; }
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16364 # Report which library types will actually be built
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16366 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16368 $as_echo "$can_build_shared" >&6; }
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16371 $as_echo_n "checking whether to build shared libraries... " >&6; }
16372 test "$can_build_shared" = "no" && enable_shared=no
16374 # On AIX, shared libraries and static libraries use the same namespace, and
16375 # are all built from PIC.
16378 test "$enable_shared" = yes && enable_static=no
16379 if test -n "$RANLIB"; then
16380 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16381 postinstall_cmds='$RANLIB $lib'
16386 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16387 test "$enable_shared" = yes && enable_static=no
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16392 $as_echo "$enable_shared" >&6; }
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16395 $as_echo_n "checking whether to build static libraries... " >&6; }
16396 # Make sure either enable_shared or enable_static is yes.
16397 test "$enable_shared" = yes || enable_static=yes
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16399 $as_echo "$enable_static" >&6; }
16406 ac_cpp='$CPP $CPPFLAGS'
16407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16413 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16414 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16415 (test "X$CXX" != "Xg++"))) ; then
16417 ac_cpp='$CXXCPP $CPPFLAGS'
16418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16422 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16423 if test -z "$CXXCPP"; then
16424 if ${ac_cv_prog_CXXCPP+:} false; then :
16425 $as_echo_n "(cached) " >&6
16427 # Double quotes because CXXCPP needs to be expanded
16428 for CXXCPP in "$CXX -E" "/lib/cpp"
16430 ac_preproc_ok=false
16431 for ac_cxx_preproc_warn_flag in '' yes
16433 # Use a header file that comes with gcc, so configuring glibc
16434 # with a fresh cross-compiler works.
16435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16436 # <limits.h> exists even on freestanding compilers.
16437 # On the NeXT, cc -E runs the code through the compiler's parser,
16438 # not just through cpp. "Syntax error" is here to catch this case.
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16442 # include <limits.h>
16444 # include <assert.h>
16448 if ac_fn_cxx_try_cpp "$LINENO"; then :
16451 # Broken: fails on valid input.
16454 rm -f conftest.err conftest.i conftest.$ac_ext
16456 # OK, works on sane cases. Now check whether nonexistent headers
16457 # can be detected and how.
16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h. */
16460 #include <ac_nonexistent.h>
16462 if ac_fn_cxx_try_cpp "$LINENO"; then :
16463 # Broken: success on invalid input.
16466 # Passes both tests.
16470 rm -f conftest.err conftest.i conftest.$ac_ext
16473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16474 rm -f conftest.i conftest.err conftest.$ac_ext
16475 if $ac_preproc_ok; then :
16480 ac_cv_prog_CXXCPP=$CXXCPP
16483 CXXCPP=$ac_cv_prog_CXXCPP
16485 ac_cv_prog_CXXCPP=$CXXCPP
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16488 $as_echo "$CXXCPP" >&6; }
16489 ac_preproc_ok=false
16490 for ac_cxx_preproc_warn_flag in '' yes
16492 # Use a header file that comes with gcc, so configuring glibc
16493 # with a fresh cross-compiler works.
16494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495 # <limits.h> exists even on freestanding compilers.
16496 # On the NeXT, cc -E runs the code through the compiler's parser,
16497 # not just through cpp. "Syntax error" is here to catch this case.
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h. */
16501 # include <limits.h>
16503 # include <assert.h>
16507 if ac_fn_cxx_try_cpp "$LINENO"; then :
16510 # Broken: fails on valid input.
16513 rm -f conftest.err conftest.i conftest.$ac_ext
16515 # OK, works on sane cases. Now check whether nonexistent headers
16516 # can be detected and how.
16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h. */
16519 #include <ac_nonexistent.h>
16521 if ac_fn_cxx_try_cpp "$LINENO"; then :
16522 # Broken: success on invalid input.
16525 # Passes both tests.
16529 rm -f conftest.err conftest.i conftest.$ac_ext
16532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16533 rm -f conftest.i conftest.err conftest.$ac_ext
16534 if $ac_preproc_ok; then :
16537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16539 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16540 See \`config.log' for more details" "$LINENO" 5; }
16544 ac_cpp='$CPP $CPPFLAGS'
16545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16550 _lt_caught_CXX_error=yes
16554 ac_cpp='$CXXCPP $CPPFLAGS'
16555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16559 archive_cmds_need_lc_CXX=no
16560 allow_undefined_flag_CXX=
16561 always_export_symbols_CXX=no
16562 archive_expsym_cmds_CXX=
16563 compiler_needs_object_CXX=no
16564 export_dynamic_flag_spec_CXX=
16565 hardcode_direct_CXX=no
16566 hardcode_direct_absolute_CXX=no
16567 hardcode_libdir_flag_spec_CXX=
16568 hardcode_libdir_separator_CXX=
16569 hardcode_minus_L_CXX=no
16570 hardcode_shlibpath_var_CXX=unsupported
16571 hardcode_automatic_CXX=no
16572 inherit_rpath_CXX=no
16574 module_expsym_cmds_CXX=
16575 link_all_deplibs_CXX=unknown
16576 old_archive_cmds_CXX=$old_archive_cmds
16577 reload_flag_CXX=$reload_flag
16578 reload_cmds_CXX=$reload_cmds
16579 no_undefined_flag_CXX=
16580 whole_archive_flag_spec_CXX=
16581 enable_shared_with_static_runtimes_CXX=no
16583 # Source file extension for C++ test sources.
16586 # Object file extension for compiled C++ test sources.
16590 # No sense in running all these tests if we already determined that
16591 # the CXX compiler isn't working. Some variables (like enable_shared)
16592 # are currently assumed to apply to all compilers on this platform,
16593 # and will be corrupted by setting them based on a non-working compiler.
16594 if test "$_lt_caught_CXX_error" != yes; then
16595 # Code to be used in simple compile tests
16596 lt_simple_compile_test_code="int some_variable = 0;"
16598 # Code to be used in simple link tests
16599 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16601 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16608 # If no C compiler was specified, use CC.
16611 # If no C compiler flags were specified, use CFLAGS.
16612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16614 # Allow CC to be a program name with arguments.
16618 # save warnings/boilerplate of simple test code
16619 ac_outfile=conftest.$ac_objext
16620 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16622 _lt_compiler_boilerplate=`cat conftest.err`
16625 ac_outfile=conftest.$ac_objext
16626 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16628 _lt_linker_boilerplate=`cat conftest.err`
16632 # Allow CC to be a program name with arguments.
16634 lt_save_CFLAGS=$CFLAGS
16638 lt_save_with_gnu_ld=$with_gnu_ld
16639 lt_save_path_LD=$lt_cv_path_LD
16640 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16641 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16643 $as_unset lt_cv_prog_gnu_ld
16645 if test -n "${lt_cv_path_LDCXX+set}"; then
16646 lt_cv_path_LD=$lt_cv_path_LDCXX
16648 $as_unset lt_cv_path_LD
16650 test -z "${LDCXX+set}" || LD=$LDCXX
16655 for cc_temp in $compiler""; do
16657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16663 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16666 if test -n "$compiler"; then
16667 # We don't want -fno-exception when compiling C++ code, so set the
16668 # no_builtin_flag separately
16669 if test "$GXX" = yes; then
16670 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16672 lt_prog_compiler_no_builtin_flag_CXX=
16675 if test "$GXX" = yes; then
16676 # Set up default GNU C++ configuration
16680 # Check whether --with-gnu-ld was given.
16681 if test "${with_gnu_ld+set}" = set; then :
16682 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16688 if test "$GCC" = yes; then
16689 # Check if gcc -print-prog-name=ld gives a path.
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16691 $as_echo_n "checking for ld used by $CC... " >&6; }
16694 # gcc leaves a trailing carriage return which upsets mingw
16695 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16697 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16700 # Accept absolute paths.
16702 re_direlt='/[^/][^/]*/\.\./'
16703 # Canonicalize the pathname of ld
16704 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16705 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16706 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16708 test -z "$LD" && LD="$ac_prog"
16711 # If it fails, then pretend we aren't using GCC.
16715 # If it is relative, then search for the first ld in PATH.
16716 with_gnu_ld=unknown
16719 elif test "$with_gnu_ld" = yes; then
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16721 $as_echo_n "checking for GNU ld... " >&6; }
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16724 $as_echo_n "checking for non-GNU ld... " >&6; }
16726 if ${lt_cv_path_LD+:} false; then :
16727 $as_echo_n "(cached) " >&6
16729 if test -z "$LD"; then
16730 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16731 for ac_dir in $PATH; do
16733 test -z "$ac_dir" && ac_dir=.
16734 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16735 lt_cv_path_LD="$ac_dir/$ac_prog"
16736 # Check to see if the program is GNU ld. I'd rather use --version,
16737 # but apparently some variants of GNU ld only accept -v.
16738 # Break only if it was the GNU/non-GNU ld that we prefer.
16739 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16740 *GNU* | *'with BFD'*)
16741 test "$with_gnu_ld" != no && break
16744 test "$with_gnu_ld" != yes && break
16751 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16755 LD="$lt_cv_path_LD"
16756 if test -n "$LD"; then
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16758 $as_echo "$LD" >&6; }
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761 $as_echo "no" >&6; }
16763 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16765 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16766 if ${lt_cv_prog_gnu_ld+:} false; then :
16767 $as_echo_n "(cached) " >&6
16769 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16770 case `$LD -v 2>&1 </dev/null` in
16771 *GNU* | *'with BFD'*)
16772 lt_cv_prog_gnu_ld=yes
16775 lt_cv_prog_gnu_ld=no
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16780 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16781 with_gnu_ld=$lt_cv_prog_gnu_ld
16789 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16790 # archiving commands below assume that GNU ld is being used.
16791 if test "$with_gnu_ld" = yes; then
16792 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16793 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16795 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16798 # If archive_cmds runs LD, not CC, wlarc should be empty
16799 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16800 # investigate it a little bit more. (MM)
16803 # ancient GNU ld didn't support --whole-archive et. al.
16804 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16805 $GREP 'no-whole-archive' > /dev/null; then
16806 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16808 whole_archive_flag_spec_CXX=
16814 # A generic and very simple default shared library creation
16815 # command for GNU C++ for the case where it uses the native
16816 # linker, instead of GNU ld. If possible, this setting should
16817 # overridden to take advantage of the native linker features on
16818 # the platform it is being used on.
16819 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16822 # Commands to make compiler produce verbose output that lists
16823 # what "hidden" libraries, object files and flags are used when
16824 # linking a shared library.
16825 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16833 # PORTME: fill in a description of your system's C++ link characteristics
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16835 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16839 # FIXME: insert proper C++ library support
16843 if test "$host_cpu" = ia64; then
16844 # On IA64, the linker does run time linking by default, so we don't
16845 # have to do anything special.
16846 aix_use_runtimelinking=no
16847 exp_sym_flag='-Bexport'
16850 aix_use_runtimelinking=no
16852 # Test if we are trying to use run time linking or normal
16853 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16854 # need to do runtime linking.
16855 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16856 for ld_flag in $LDFLAGS; do
16859 aix_use_runtimelinking=yes
16867 exp_sym_flag='-bexport'
16868 no_entry_flag='-bnoentry'
16871 # When large executables or shared objects are built, AIX ld can
16872 # have problems creating the table of contents. If linking a library
16873 # or program results in "error TOC overflow" add -mminimal-toc to
16874 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16875 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16877 archive_cmds_CXX=''
16878 hardcode_direct_CXX=yes
16879 hardcode_direct_absolute_CXX=yes
16880 hardcode_libdir_separator_CXX=':'
16881 link_all_deplibs_CXX=yes
16882 file_list_spec_CXX='${wl}-f,'
16884 if test "$GXX" = yes; then
16885 case $host_os in aix4.[012]|aix4.[012].*)
16886 # We only want to do this on AIX 4.2 and lower, the check
16887 # below for broken collect2 doesn't work under 4.3+
16888 collect2name=`${CC} -print-prog-name=collect2`
16889 if test -f "$collect2name" &&
16890 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16892 # We have reworked collect2
16895 # We have old collect2
16896 hardcode_direct_CXX=unsupported
16897 # It fails to find uninstalled libraries when the uninstalled
16898 # path is not listed in the libpath. Setting hardcode_minus_L
16899 # to unsupported forces relinking
16900 hardcode_minus_L_CXX=yes
16901 hardcode_libdir_flag_spec_CXX='-L$libdir'
16902 hardcode_libdir_separator_CXX=
16905 shared_flag='-shared'
16906 if test "$aix_use_runtimelinking" = yes; then
16907 shared_flag="$shared_flag "'${wl}-G'
16911 if test "$host_cpu" = ia64; then
16912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16913 # chokes on -Wl,-G. The following line is correct:
16916 if test "$aix_use_runtimelinking" = yes; then
16917 shared_flag='${wl}-G'
16919 shared_flag='${wl}-bM:SRE'
16924 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16925 # It seems that -bexpall does not export symbols beginning with
16926 # underscore (_), so it is better to generate a list of symbols to
16928 always_export_symbols_CXX=yes
16929 if test "$aix_use_runtimelinking" = yes; then
16930 # Warning - without using the other runtime loading flags (-brtl),
16931 # -berok will link without error, but may produce a broken library.
16932 allow_undefined_flag_CXX='-berok'
16933 # Determine the default libpath from the value encoded in an empty
16935 if test "${lt_cv_aix_libpath+set}" = set; then
16936 aix_libpath=$lt_cv_aix_libpath
16938 if ${lt_cv_aix_libpath__CXX+:} false; then :
16939 $as_echo_n "(cached) " >&6
16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16952 if ac_fn_cxx_try_link "$LINENO"; then :
16954 lt_aix_libpath_sed='
16955 /Import File Strings/,/^$/ {
16957 s/^0 *\([^ ]*\) *$/\1/
16961 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16962 # Check for a 64-bit object if we didn't find anything.
16963 if test -z "$lt_cv_aix_libpath__CXX"; then
16964 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16967 rm -f core conftest.err conftest.$ac_objext \
16968 conftest$ac_exeext conftest.$ac_ext
16969 if test -z "$lt_cv_aix_libpath__CXX"; then
16970 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16975 aix_libpath=$lt_cv_aix_libpath__CXX
16978 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16980 archive_expsym_cmds_CXX='$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"
16982 if test "$host_cpu" = ia64; then
16983 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16984 allow_undefined_flag_CXX="-z nodefs"
16985 archive_expsym_cmds_CXX="\$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"
16987 # Determine the default libpath from the value encoded in an
16988 # empty executable.
16989 if test "${lt_cv_aix_libpath+set}" = set; then
16990 aix_libpath=$lt_cv_aix_libpath
16992 if ${lt_cv_aix_libpath__CXX+:} false; then :
16993 $as_echo_n "(cached) " >&6
16995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h. */
17006 if ac_fn_cxx_try_link "$LINENO"; then :
17008 lt_aix_libpath_sed='
17009 /Import File Strings/,/^$/ {
17011 s/^0 *\([^ ]*\) *$/\1/
17015 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17016 # Check for a 64-bit object if we didn't find anything.
17017 if test -z "$lt_cv_aix_libpath__CXX"; then
17018 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17021 rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17023 if test -z "$lt_cv_aix_libpath__CXX"; then
17024 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17029 aix_libpath=$lt_cv_aix_libpath__CXX
17032 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17033 # Warning - without using the other run time loading flags,
17034 # -berok will link without error, but may produce a broken library.
17035 no_undefined_flag_CXX=' ${wl}-bernotok'
17036 allow_undefined_flag_CXX=' ${wl}-berok'
17037 if test "$with_gnu_ld" = yes; then
17038 # We only use this code for GNU lds that support --whole-archive.
17039 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17041 # Exported symbols can be pulled into shared objects from archives
17042 whole_archive_flag_spec_CXX='$convenience'
17044 archive_cmds_need_lc_CXX=yes
17045 # This is similar to how AIX traditionally builds its shared
17047 archive_expsym_cmds_CXX="\$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'
17053 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17054 allow_undefined_flag_CXX=unsupported
17055 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17056 # support --undefined. This deserves some investigation. FIXME
17057 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17064 case $cc_basename in
17066 # FIXME: insert proper C++ library support
17072 cygwin* | mingw* | pw32* | cegcc*)
17073 case $GXX,$cc_basename in
17076 # hardcode_libdir_flag_spec is actually meaningless, as there is
17077 # no search path for DLLs.
17078 hardcode_libdir_flag_spec_CXX=' '
17079 allow_undefined_flag_CXX=unsupported
17080 always_export_symbols_CXX=yes
17081 file_list_spec_CXX='@'
17082 # Tell ltmain to make .lib files, not .a files.
17084 # Tell ltmain to make .dll files, not .so files.
17086 # FIXME: Setting linknames here is a bad hack.
17087 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17088 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17089 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17091 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17093 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17095 # The linker will not automatically build a static lib if we build a DLL.
17096 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17097 enable_shared_with_static_runtimes_CXX=yes
17099 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17100 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17101 lt_tool_outputfile="@TOOL_OUTPUT@"~
17102 case $lt_outputfile in
17105 lt_outputfile="$lt_outputfile.exe"
17106 lt_tool_outputfile="$lt_tool_outputfile.exe"
17109 func_to_tool_file "$lt_outputfile"~
17110 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17111 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17112 $RM "$lt_outputfile.manifest";
17117 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17118 # as there is no search path for DLLs.
17119 hardcode_libdir_flag_spec_CXX='-L$libdir'
17120 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17121 allow_undefined_flag_CXX=unsupported
17122 always_export_symbols_CXX=no
17123 enable_shared_with_static_runtimes_CXX=yes
17125 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17126 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17127 # If the export-symbols file already is a .def file (1st line
17128 # is EXPORTS), use it as is; otherwise, prepend...
17129 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17130 cp $export_symbols $output_objdir/$soname.def;
17132 echo EXPORTS > $output_objdir/$soname.def;
17133 cat $export_symbols >> $output_objdir/$soname.def;
17135 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17142 darwin* | rhapsody*)
17145 archive_cmds_need_lc_CXX=no
17146 hardcode_direct_CXX=no
17147 hardcode_automatic_CXX=yes
17148 hardcode_shlibpath_var_CXX=unsupported
17149 if test "$lt_cv_ld_force_load" = "yes"; then
17150 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17153 whole_archive_flag_spec_CXX=''
17155 link_all_deplibs_CXX=yes
17156 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17157 case $cc_basename in
17158 ifort*) _lt_dar_can_shared=yes ;;
17159 *) _lt_dar_can_shared=$GCC ;;
17161 if test "$_lt_dar_can_shared" = "yes"; then
17162 output_verbose_link_cmd=func_echo_all
17163 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17164 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17165 archive_expsym_cmds_CXX="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}"
17166 module_expsym_cmds_CXX="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}"
17167 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17168 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
17169 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
17179 case $cc_basename in
17181 # FIXME: insert proper C++ library support
17185 # Green Hills C++ Compiler
17186 # FIXME: insert proper C++ library support
17190 # FIXME: insert proper C++ library support
17197 # C++ shared libraries reported to be fairly broken before
17203 archive_cmds_need_lc_CXX=no
17206 freebsd* | dragonfly*)
17207 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17216 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17217 link_all_deplibs_CXX=yes
17221 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17222 hardcode_libdir_separator_CXX=:
17223 export_dynamic_flag_spec_CXX='${wl}-E'
17224 hardcode_direct_CXX=yes
17225 hardcode_minus_L_CXX=yes # Not in the search PATH,
17226 # but as the default
17227 # location of the library.
17229 case $cc_basename in
17231 # FIXME: insert proper C++ library support
17235 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17236 # Commands to make compiler produce verbose output that lists
17237 # what "hidden" libraries, object files and flags are used when
17238 # linking a shared library.
17240 # There doesn't appear to be a way to prevent this compiler from
17241 # explicitly linking system object files so we need to strip them
17242 # from the output so that they don't get included in the library
17244 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17247 if test "$GXX" = yes; then
17248 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17250 # FIXME: insert proper C++ library support
17258 if test $with_gnu_ld = no; then
17259 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17260 hardcode_libdir_separator_CXX=:
17266 export_dynamic_flag_spec_CXX='${wl}-E'
17272 hardcode_direct_CXX=no
17273 hardcode_shlibpath_var_CXX=no
17276 hardcode_direct_CXX=yes
17277 hardcode_direct_absolute_CXX=yes
17278 hardcode_minus_L_CXX=yes # Not in the search PATH,
17279 # but as the default
17280 # location of the library.
17284 case $cc_basename in
17286 # FIXME: insert proper C++ library support
17292 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17295 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17298 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17301 # Commands to make compiler produce verbose output that lists
17302 # what "hidden" libraries, object files and flags are used when
17303 # linking a shared library.
17305 # There doesn't appear to be a way to prevent this compiler from
17306 # explicitly linking system object files so we need to strip them
17307 # from the output so that they don't get included in the library
17309 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17312 if test "$GXX" = yes; then
17313 if test $with_gnu_ld = no; then
17316 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17319 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17322 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17327 # FIXME: insert proper C++ library support
17335 hardcode_direct_CXX=no
17336 hardcode_shlibpath_var_CXX=no
17337 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17338 export_dynamic_flag_spec_CXX='${wl}-E'
17339 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17340 # Instead, shared libraries are loaded at an image base (0x10000000 by
17341 # default) and relocated if they conflict, which is a slow very memory
17342 # consuming and fragmenting process. To avoid this, we pick a random,
17343 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17344 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17345 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17346 archive_expsym_cmds_CXX='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'
17349 case $cc_basename in
17352 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17354 # Archives containing C++ object files must be created using
17355 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17356 # necessary to make sure instantiated templates are included
17358 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17361 if test "$GXX" = yes; then
17362 if test "$with_gnu_ld" = no; then
17363 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
17365 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
17368 link_all_deplibs_CXX=yes
17371 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17372 hardcode_libdir_separator_CXX=:
17373 inherit_rpath_CXX=yes
17376 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17377 case $cc_basename in
17379 # Kuck and Associates, Inc. (KAI) C++ Compiler
17381 # KCC will only create a shared library if the output file
17382 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17383 # to its proper name (with version) after linking.
17384 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17385 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
17386 # Commands to make compiler produce verbose output that lists
17387 # what "hidden" libraries, object files and flags are used when
17388 # linking a shared library.
17390 # There doesn't appear to be a way to prevent this compiler from
17391 # explicitly linking system object files so we need to strip them
17392 # from the output so that they don't get included in the library
17394 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17399 # Archives containing C++ object files must be created using
17400 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17401 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17406 # version 8.0 and above of icpc choke on multiply defined symbols
17407 # if we add $predep_objects and $postdep_objects, however 7.1 and
17408 # earlier do not add the objects themselves.
17409 case `$CC -V 2>&1` in
17411 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17414 *) # Version 8.0 or newer
17417 ia64*) tmp_idyn=' -i_dynamic';;
17419 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17423 archive_cmds_need_lc_CXX=no
17424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17426 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17429 # Portland Group C++ compiler
17431 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17432 prelink_cmds_CXX='tpldir=Template.dir~
17434 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17435 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17436 old_archive_cmds_CXX='tpldir=Template.dir~
17438 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17439 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17441 archive_cmds_CXX='tpldir=Template.dir~
17443 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17444 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17445 archive_expsym_cmds_CXX='tpldir=Template.dir~
17447 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17448 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17450 *) # Version 6 and above use weak symbols
17451 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17452 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17456 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17458 whole_archive_flag_spec_CXX='${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'
17462 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
17465 runpath_var=LD_RUN_PATH
17466 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17467 hardcode_libdir_separator_CXX=:
17469 # Commands to make compiler produce verbose output that lists
17470 # what "hidden" libraries, object files and flags are used when
17471 # linking a shared library.
17473 # There doesn't appear to be a way to prevent this compiler from
17474 # explicitly linking system object files so we need to strip them
17475 # from the output so that they don't get included in the library
17477 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17479 xl* | mpixl* | bgxl*)
17480 # IBM XL 8.0 on PPC, with GNU ld
17481 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17483 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17484 if test "x$supports_anon_versioning" = xyes; then
17485 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17487 echo "local: *; };" >> $output_objdir/$libname.ver~
17488 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17492 case `$CC -V 2>&1 | sed 5q` in
17495 no_undefined_flag_CXX=' -zdefs'
17496 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17497 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
17498 hardcode_libdir_flag_spec_CXX='-R$libdir'
17499 whole_archive_flag_spec_CXX='${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'
17500 compiler_needs_object_CXX=yes
17502 # Not sure whether something based on
17503 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17505 output_verbose_link_cmd='func_echo_all'
17507 # Archives containing C++ object files must be created using
17508 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17509 # necessary to make sure instantiated templates are included
17511 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17519 # FIXME: insert proper C++ library support
17524 # FIXME: insert proper C++ library support
17529 case $cc_basename in
17531 # FIXME: insert proper C++ library support
17535 # FIXME: insert proper C++ library support
17542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17543 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17545 hardcode_libdir_flag_spec_CXX='-R$libdir'
17546 hardcode_direct_CXX=yes
17547 hardcode_shlibpath_var_CXX=no
17549 # Workaround some broken pre-1.5 toolchains
17550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17558 # C++ shared libraries are fairly broken
17563 if test -f /usr/libexec/ld.so; then
17564 hardcode_direct_CXX=yes
17565 hardcode_shlibpath_var_CXX=no
17566 hardcode_direct_absolute_CXX=yes
17567 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17568 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17570 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17571 export_dynamic_flag_spec_CXX='${wl}-E'
17572 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17574 output_verbose_link_cmd=func_echo_all
17580 osf3* | osf4* | osf5*)
17581 case $cc_basename in
17583 # Kuck and Associates, Inc. (KAI) C++ Compiler
17585 # KCC will only create a shared library if the output file
17586 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17587 # to its proper name (with version) after linking.
17588 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17590 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17591 hardcode_libdir_separator_CXX=:
17593 # Archives containing C++ object files must be created using
17594 # the KAI C++ compiler.
17596 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17597 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17601 # Rational C++ 2.4.1
17602 # FIXME: insert proper C++ library support
17608 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17609 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17610 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17613 allow_undefined_flag_CXX=' -expect_unresolved \*'
17614 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17615 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17616 echo "-hidden">> $lib.exp~
17617 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
17619 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17623 hardcode_libdir_separator_CXX=:
17625 # Commands to make compiler produce verbose output that lists
17626 # what "hidden" libraries, object files and flags are used when
17627 # linking a shared library.
17629 # There doesn't appear to be a way to prevent this compiler from
17630 # explicitly linking system object files so we need to strip them
17631 # from the output so that they don't get included in the library
17633 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17636 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17637 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17640 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
17643 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
17647 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17648 hardcode_libdir_separator_CXX=:
17650 # Commands to make compiler produce verbose output that lists
17651 # what "hidden" libraries, object files and flags are used when
17652 # linking a shared library.
17653 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17656 # FIXME: insert proper C++ library support
17664 # FIXME: insert proper C++ library support
17669 case $cc_basename in
17672 # FIXME: insert proper C++ library support
17677 # FIXME: insert proper C++ library support
17681 # FIXME: insert proper C++ library support
17688 case $cc_basename in
17690 # Sun C++ 4.2, 5.x and Centerline C++
17691 archive_cmds_need_lc_CXX=yes
17692 no_undefined_flag_CXX=' -zdefs'
17693 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17694 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17695 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17697 hardcode_libdir_flag_spec_CXX='-R$libdir'
17698 hardcode_shlibpath_var_CXX=no
17700 solaris2.[0-5] | solaris2.[0-5].*) ;;
17702 # The compiler driver will combine and reorder linker options,
17703 # but understands `-z linker_flag'.
17704 # Supported since Solaris 2.6 (maybe 2.5.1?)
17705 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17708 link_all_deplibs_CXX=yes
17710 output_verbose_link_cmd='func_echo_all'
17712 # Archives containing C++ object files must be created using
17713 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17714 # necessary to make sure instantiated templates are included
17716 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17719 # Green Hills C++ Compiler
17720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17722 # The C++ compiler must be used to create the archive.
17723 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17726 # GNU C++ compiler with Solaris linker
17727 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17728 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17729 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17730 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17731 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17732 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17734 # Commands to make compiler produce verbose output that lists
17735 # what "hidden" libraries, object files and flags are used when
17736 # linking a shared library.
17737 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17739 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17741 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17742 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17743 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17745 # Commands to make compiler produce verbose output that lists
17746 # what "hidden" libraries, object files and flags are used when
17747 # linking a shared library.
17748 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17751 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17753 solaris2.[0-5] | solaris2.[0-5].*) ;;
17755 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17763 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17764 no_undefined_flag_CXX='${wl}-z,text'
17765 archive_cmds_need_lc_CXX=no
17766 hardcode_shlibpath_var_CXX=no
17767 runpath_var='LD_RUN_PATH'
17769 case $cc_basename in
17771 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17772 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17775 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17776 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17781 sysv5* | sco3.2v5* | sco5v6*)
17782 # Note: We can NOT use -z defs as we might desire, because we do not
17783 # link with -lc, and that would cause any symbols used from libc to
17784 # always be unresolved, which means just about no library would
17785 # ever link correctly. If we're not using GNU ld we use -z text
17786 # though, which does catch some bad symbols but isn't as heavy-handed
17788 no_undefined_flag_CXX='${wl}-z,text'
17789 allow_undefined_flag_CXX='${wl}-z,nodefs'
17790 archive_cmds_need_lc_CXX=no
17791 hardcode_shlibpath_var_CXX=no
17792 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17793 hardcode_libdir_separator_CXX=':'
17794 link_all_deplibs_CXX=yes
17795 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17796 runpath_var='LD_RUN_PATH'
17798 case $cc_basename in
17800 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17801 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17802 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17803 '"$old_archive_cmds_CXX"
17804 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17805 '"$reload_cmds_CXX"
17808 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17809 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17815 case $cc_basename in
17817 # NonStop-UX NCC 3.20
17818 # FIXME: insert proper C++ library support
17822 # FIXME: insert proper C++ library support
17829 # FIXME: insert proper C++ library support
17834 # FIXME: insert proper C++ library support
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17840 $as_echo "$ld_shlibs_CXX" >&6; }
17841 test "$ld_shlibs_CXX" = no && can_build_shared=no
17847 ## There is no encapsulation within the following macros, do not change
17848 ## the running order or otherwise move them around unless you know exactly
17849 ## what you are doing...
17850 # Dependencies to place before and after the object being linked:
17851 predep_objects_CXX=
17852 postdep_objects_CXX=
17855 compiler_lib_search_path_CXX=
17857 cat > conftest.$ac_ext <<_LT_EOF
17861 Foo (void) { a = 0; }
17868 _lt_libdeps_save_CFLAGS=$CFLAGS
17869 case "$CC $CFLAGS " in #(
17870 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17871 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17872 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17876 (eval $ac_compile) 2>&5
17878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17879 test $ac_status = 0; }; then
17880 # Parse the compiler output and extract the necessary
17881 # objects, libraries and library flags.
17883 # Sentinel used to keep track of whether or not we are before
17884 # the conftest object file.
17885 pre_test_object_deps_done=no
17887 for p in `eval "$output_verbose_link_cmd"`; do
17888 case ${prev}${p} in
17891 # Some compilers place space between "-{L,R}" and the path.
17892 # Remove the space.
17893 if test $p = "-L" ||
17894 test $p = "-R"; then
17899 # Expand the sysroot to ease extracting the directories later.
17900 if test -z "$prev"; then
17902 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17903 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17904 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17908 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17910 if test "$pre_test_object_deps_done" = no; then
17913 # Internal compiler library paths should come after those
17914 # provided the user. The postdeps already come after the
17915 # user supplied libs so there is no need to process them.
17916 if test -z "$compiler_lib_search_path_CXX"; then
17917 compiler_lib_search_path_CXX="${prev}${p}"
17919 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17922 # The "-l" case would never come before the object being
17923 # linked, so don't bother handling this case.
17926 if test -z "$postdeps_CXX"; then
17927 postdeps_CXX="${prev}${p}"
17929 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17935 *.lto.$objext) ;; # Ignore GCC LTO objects
17937 # This assumes that the test object file only shows up
17938 # once in the compiler output.
17939 if test "$p" = "conftest.$objext"; then
17940 pre_test_object_deps_done=yes
17944 if test "$pre_test_object_deps_done" = no; then
17945 if test -z "$predep_objects_CXX"; then
17946 predep_objects_CXX="$p"
17948 predep_objects_CXX="$predep_objects_CXX $p"
17951 if test -z "$postdep_objects_CXX"; then
17952 postdep_objects_CXX="$p"
17954 postdep_objects_CXX="$postdep_objects_CXX $p"
17959 *) ;; # Ignore the rest.
17967 echo "libtool.m4: error: problem compiling CXX test program"
17970 $RM -f confest.$objext
17971 CFLAGS=$_lt_libdeps_save_CFLAGS
17973 # PORTME: override above test on systems where it is broken
17976 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17977 # hack all around it, let's just trust "g++" to DTRT.
17978 predep_objects_CXX=
17979 postdep_objects_CXX=
17984 case `$CC -V 2>&1 | sed 5q` in
17988 # The more standards-conforming stlport4 library is
17989 # incompatible with the Cstd library. Avoid specifying
17990 # it if it's in CXXFLAGS. Ignore libCrun as
17991 # -library=stlport4 depends on it.
17992 case " $CXX $CXXFLAGS " in
17993 *" -library=stlport4 "*)
17994 solaris_use_stlport4=yes
17998 if test "$solaris_use_stlport4" != yes; then
17999 postdeps_CXX='-library=Cstd -library=Crun'
18006 case $cc_basename in
18008 # The more standards-conforming stlport4 library is
18009 # incompatible with the Cstd library. Avoid specifying
18010 # it if it's in CXXFLAGS. Ignore libCrun as
18011 # -library=stlport4 depends on it.
18012 case " $CXX $CXXFLAGS " in
18013 *" -library=stlport4 "*)
18014 solaris_use_stlport4=yes
18018 # Adding this requires a known-good setup of shared libraries for
18019 # Sun compiler versions before 5.6, else PIC objects from an old
18020 # archive will be linked into the output, leading to subtle bugs.
18021 if test "$solaris_use_stlport4" != yes; then
18022 postdeps_CXX='-library=Cstd -library=Crun'
18030 case " $postdeps_CXX " in
18031 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18033 compiler_lib_search_dirs_CXX=
18034 if test -n "${compiler_lib_search_path_CXX}"; then
18035 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18068 lt_prog_compiler_wl_CXX=
18069 lt_prog_compiler_pic_CXX=
18070 lt_prog_compiler_static_CXX=
18073 # C++ specific cases for pic, static, wl, etc.
18074 if test "$GXX" = yes; then
18075 lt_prog_compiler_wl_CXX='-Wl,'
18076 lt_prog_compiler_static_CXX='-static'
18080 # All AIX code is PIC.
18081 if test "$host_cpu" = ia64; then
18082 # AIX 5 now supports IA64 processor
18083 lt_prog_compiler_static_CXX='-Bstatic'
18090 # see comment about AmigaOS4 .so support
18091 lt_prog_compiler_pic_CXX='-fPIC'
18094 # FIXME: we need at least 68020 code to build shared libraries, but
18095 # adding the `-m68020' flag to GCC prevents building anything better,
18097 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18102 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18103 # PIC is the default for these OSes.
18105 mingw* | cygwin* | os2* | pw32* | cegcc*)
18106 # This hack is so that the source file can tell whether it is being
18107 # built for inclusion in a dll (and should export symbols for example).
18108 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18109 # (--disable-auto-import) libraries
18110 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18112 darwin* | rhapsody*)
18113 # PIC is the default on this platform
18114 # Common symbols not allowed in MH_DYLIB files
18115 lt_prog_compiler_pic_CXX='-fno-common'
18118 # DJGPP does not support shared libraries at all
18119 lt_prog_compiler_pic_CXX=
18122 # PIC is the default for Haiku.
18123 # The "-static" flag exists, but is broken.
18124 lt_prog_compiler_static_CXX=
18127 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18128 # Instead, we relocate shared libraries at runtime.
18131 if test -d /usr/nec; then
18132 lt_prog_compiler_pic_CXX=-Kconform_pic
18136 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18137 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18138 # sets the default TLS model and affects inlining.
18143 lt_prog_compiler_pic_CXX='-fPIC'
18148 # QNX uses GNU C++, but need to define -shared option too, otherwise
18149 # it will coredump.
18150 lt_prog_compiler_pic_CXX='-fPIC -shared'
18153 lt_prog_compiler_pic_CXX='-fPIC'
18159 # All AIX code is PIC.
18160 if test "$host_cpu" = ia64; then
18161 # AIX 5 now supports IA64 processor
18162 lt_prog_compiler_static_CXX='-Bstatic'
18164 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18168 case $cc_basename in
18170 # Green Hills C++ Compiler
18171 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18175 mingw* | cygwin* | os2* | pw32* | cegcc*)
18176 # This hack is so that the source file can tell whether it is being
18177 # built for inclusion in a dll (and should export symbols for example).
18178 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18181 case $cc_basename in
18183 lt_prog_compiler_pic_CXX='-KPIC'
18186 # Green Hills C++ Compiler
18187 lt_prog_compiler_pic_CXX='-pic'
18193 freebsd* | dragonfly*)
18194 # FreeBSD uses GNU C++
18196 hpux9* | hpux10* | hpux11*)
18197 case $cc_basename in
18199 lt_prog_compiler_wl_CXX='-Wl,'
18200 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18201 if test "$host_cpu" != ia64; then
18202 lt_prog_compiler_pic_CXX='+Z'
18206 lt_prog_compiler_wl_CXX='-Wl,'
18207 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18213 lt_prog_compiler_pic_CXX='+Z'
18222 # This is c89, which is MS Visual C++ (no shared libs)
18223 # Anyone wants to do a port?
18225 irix5* | irix6* | nonstopux*)
18226 case $cc_basename in
18228 lt_prog_compiler_wl_CXX='-Wl,'
18229 lt_prog_compiler_static_CXX='-non_shared'
18230 # CC pic flag -KPIC is the default.
18236 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18237 case $cc_basename in
18240 lt_prog_compiler_wl_CXX='--backend -Wl,'
18241 lt_prog_compiler_pic_CXX='-fPIC'
18244 # old Intel C++ for x86_64 which still supported -KPIC.
18245 lt_prog_compiler_wl_CXX='-Wl,'
18246 lt_prog_compiler_pic_CXX='-KPIC'
18247 lt_prog_compiler_static_CXX='-static'
18250 # Intel C++, used to be incompatible with GCC.
18251 # ICC 10 doesn't accept -KPIC any more.
18252 lt_prog_compiler_wl_CXX='-Wl,'
18253 lt_prog_compiler_pic_CXX='-fPIC'
18254 lt_prog_compiler_static_CXX='-static'
18257 # Portland Group C++ compiler
18258 lt_prog_compiler_wl_CXX='-Wl,'
18259 lt_prog_compiler_pic_CXX='-fpic'
18260 lt_prog_compiler_static_CXX='-Bstatic'
18264 # Make sure the PIC flag is empty. It appears that all Alpha
18265 # Linux and Compaq Tru64 Unix objects are PIC.
18266 lt_prog_compiler_pic_CXX=
18267 lt_prog_compiler_static_CXX='-non_shared'
18269 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18270 # IBM XL 8.0, 9.0 on PPC and BlueGene
18271 lt_prog_compiler_wl_CXX='-Wl,'
18272 lt_prog_compiler_pic_CXX='-qpic'
18273 lt_prog_compiler_static_CXX='-qstaticlink'
18276 case `$CC -V 2>&1 | sed 5q` in
18279 lt_prog_compiler_pic_CXX='-KPIC'
18280 lt_prog_compiler_static_CXX='-Bstatic'
18281 lt_prog_compiler_wl_CXX='-Qoption ld '
18292 case $cc_basename in
18294 lt_prog_compiler_pic_CXX='-W c,exportall'
18303 # QNX uses GNU C++, but need to define -shared option too, otherwise
18304 # it will coredump.
18305 lt_prog_compiler_pic_CXX='-fPIC -shared'
18307 osf3* | osf4* | osf5*)
18308 case $cc_basename in
18310 lt_prog_compiler_wl_CXX='--backend -Wl,'
18313 # Rational C++ 2.4.1
18314 lt_prog_compiler_pic_CXX='-pic'
18317 # Digital/Compaq C++
18318 lt_prog_compiler_wl_CXX='-Wl,'
18319 # Make sure the PIC flag is empty. It appears that all Alpha
18320 # Linux and Compaq Tru64 Unix objects are PIC.
18321 lt_prog_compiler_pic_CXX=
18322 lt_prog_compiler_static_CXX='-non_shared'
18331 case $cc_basename in
18333 # Sun C++ 4.2, 5.x and Centerline C++
18334 lt_prog_compiler_pic_CXX='-KPIC'
18335 lt_prog_compiler_static_CXX='-Bstatic'
18336 lt_prog_compiler_wl_CXX='-Qoption ld '
18339 # Green Hills C++ Compiler
18340 lt_prog_compiler_pic_CXX='-PIC'
18347 case $cc_basename in
18350 lt_prog_compiler_pic_CXX='-pic'
18351 lt_prog_compiler_static_CXX='-Bstatic'
18355 lt_prog_compiler_pic_CXX='-pic'
18361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18362 case $cc_basename in
18364 lt_prog_compiler_wl_CXX='-Wl,'
18365 lt_prog_compiler_pic_CXX='-KPIC'
18366 lt_prog_compiler_static_CXX='-Bstatic'
18371 case $cc_basename in
18373 # NonStop-UX NCC 3.20
18374 lt_prog_compiler_pic_CXX='-KPIC'
18383 lt_prog_compiler_can_build_shared_CXX=no
18389 # For platforms which do not support PIC, -DPIC is meaningless:
18391 lt_prog_compiler_pic_CXX=
18394 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18399 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18400 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18401 $as_echo_n "(cached) " >&6
18403 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18406 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18407 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18410 # Check to make sure the PIC flag actually works.
18412 if test -n "$lt_prog_compiler_pic_CXX"; then
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18414 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18415 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18416 $as_echo_n "(cached) " >&6
18418 lt_cv_prog_compiler_pic_works_CXX=no
18419 ac_outfile=conftest.$ac_objext
18420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18421 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18422 # Insert the option either (1) after the last *FLAGS variable, or
18423 # (2) before a word containing "conftest.", or (3) at the end.
18424 # Note that $ac_compile itself does not contain backslashes and begins
18425 # with a dollar sign (not a hyphen), so the echo should work correctly.
18426 # The option is referenced via a variable to avoid confusing sed.
18427 lt_compile=`echo "$ac_compile" | $SED \
18428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18430 -e 's:$: $lt_compiler_flag:'`
18431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18432 (eval "$lt_compile" 2>conftest.err)
18434 cat conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 if (exit $ac_status) && test -s "$ac_outfile"; then
18437 # The compiler can only warn and ignore the option if not recognized
18438 # So say no if there are warnings other than the usual output.
18439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18442 lt_cv_prog_compiler_pic_works_CXX=yes
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18449 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18451 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18452 case $lt_prog_compiler_pic_CXX in
18454 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18457 lt_prog_compiler_pic_CXX=
18458 lt_prog_compiler_can_build_shared_CXX=no
18468 # Check to make sure the static flag actually works.
18470 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18472 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18473 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18474 $as_echo_n "(cached) " >&6
18476 lt_cv_prog_compiler_static_works_CXX=no
18477 save_LDFLAGS="$LDFLAGS"
18478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18479 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18481 # The linker can only warn and ignore the option if not recognized
18482 # So say no if there are warnings
18483 if test -s conftest.err; then
18484 # Append any errors to the config.log.
18485 cat conftest.err 1>&5
18486 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18488 if diff conftest.exp conftest.er2 >/dev/null; then
18489 lt_cv_prog_compiler_static_works_CXX=yes
18492 lt_cv_prog_compiler_static_works_CXX=yes
18496 LDFLAGS="$save_LDFLAGS"
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18500 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18502 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18505 lt_prog_compiler_static_CXX=
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18512 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18513 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18514 $as_echo_n "(cached) " >&6
18516 lt_cv_prog_compiler_c_o_CXX=no
18517 $RM -r conftest 2>/dev/null
18521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18523 lt_compiler_flag="-o out/conftest2.$ac_objext"
18524 # Insert the option either (1) after the last *FLAGS variable, or
18525 # (2) before a word containing "conftest.", or (3) at the end.
18526 # Note that $ac_compile itself does not contain backslashes and begins
18527 # with a dollar sign (not a hyphen), so the echo should work correctly.
18528 lt_compile=`echo "$ac_compile" | $SED \
18529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18531 -e 's:$: $lt_compiler_flag:'`
18532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18533 (eval "$lt_compile" 2>out/conftest.err)
18535 cat out/conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18539 # The compiler can only warn and ignore the option if not recognized
18540 # So say no if there are warnings
18541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18544 lt_cv_prog_compiler_c_o_CXX=yes
18549 # SGI C++ compiler will create directory out/ii_files/ for
18550 # template instantiation
18551 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18552 $RM out/* && rmdir out
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18559 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18564 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18565 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18566 $as_echo_n "(cached) " >&6
18568 lt_cv_prog_compiler_c_o_CXX=no
18569 $RM -r conftest 2>/dev/null
18573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18575 lt_compiler_flag="-o out/conftest2.$ac_objext"
18576 # Insert the option either (1) after the last *FLAGS variable, or
18577 # (2) before a word containing "conftest.", or (3) at the end.
18578 # Note that $ac_compile itself does not contain backslashes and begins
18579 # with a dollar sign (not a hyphen), so the echo should work correctly.
18580 lt_compile=`echo "$ac_compile" | $SED \
18581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18583 -e 's:$: $lt_compiler_flag:'`
18584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18585 (eval "$lt_compile" 2>out/conftest.err)
18587 cat out/conftest.err >&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18591 # The compiler can only warn and ignore the option if not recognized
18592 # So say no if there are warnings
18593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18596 lt_cv_prog_compiler_c_o_CXX=yes
18601 # SGI C++ compiler will create directory out/ii_files/ for
18602 # template instantiation
18603 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18604 $RM out/* && rmdir out
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18611 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18616 hard_links="nottested"
18617 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18618 # do not overwrite the value of need_locks provided by the user
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18620 $as_echo_n "checking if we can lock with hard links... " >&6; }
18623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18625 ln conftest.a conftest.b 2>&5 || hard_links=no
18626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18628 $as_echo "$hard_links" >&6; }
18629 if test "$hard_links" = no; then
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18631 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18641 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18643 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18644 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18647 # If we're using GNU nm, then we don't want the "-C" option.
18648 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18649 # Also, AIX nm treats weak defined symbols like other global defined
18650 # symbols, whereas GNU nm marks them as "W".
18651 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18652 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18654 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18658 export_symbols_cmds_CXX="$ltdll_cmds"
18660 cygwin* | mingw* | cegcc*)
18661 case $cc_basename in
18663 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18666 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18667 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18672 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18677 $as_echo "$ld_shlibs_CXX" >&6; }
18678 test "$ld_shlibs_CXX" = no && can_build_shared=no
18680 with_gnu_ld_CXX=$with_gnu_ld
18688 # Do we need to explicitly link libc?
18690 case "x$archive_cmds_need_lc_CXX" in
18692 # Assume -lc should be added
18693 archive_cmds_need_lc_CXX=yes
18695 if test "$enable_shared" = yes && test "$GCC" = yes; then
18696 case $archive_cmds_CXX in
18698 # FIXME: we may have to deal with multi-command sequences.
18701 # Test whether the compiler implicitly links with -lc since on some
18702 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18703 # to ld, don't add -lc before -lgcc.
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18705 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18706 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18707 $as_echo_n "(cached) " >&6
18710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18713 (eval $ac_compile) 2>&5
18715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18716 test $ac_status = 0; } 2>conftest.err; then
18719 libobjs=conftest.$ac_objext
18721 wl=$lt_prog_compiler_wl_CXX
18722 pic_flag=$lt_prog_compiler_pic_CXX
18728 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18729 allow_undefined_flag_CXX=
18730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18731 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18734 test $ac_status = 0; }
18736 lt_cv_archive_cmds_need_lc_CXX=no
18738 lt_cv_archive_cmds_need_lc_CXX=yes
18740 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18742 cat conftest.err 1>&5
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18748 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18749 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18818 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18820 library_names_spec=
18821 libname_spec='lib$name'
18825 postuninstall_cmds=
18829 shlibpath_overrides_runpath=unknown
18831 dynamic_linker="$host_os ld.so"
18832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18833 need_lib_prefix=unknown
18834 hardcode_into_libs=no
18836 # when you set need_version to no, make sure it does not cause -set_version
18837 # flags to be left without arguments
18838 need_version=unknown
18842 version_type=linux # correct to gnu/linux during the next big refactor
18843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18844 shlibpath_var=LIBPATH
18846 # AIX 3 has no versioning support, so we append a major version to the name.
18847 soname_spec='${libname}${release}${shared_ext}$major'
18851 version_type=linux # correct to gnu/linux during the next big refactor
18854 hardcode_into_libs=yes
18855 if test "$host_cpu" = ia64; then
18856 # AIX 5 supports IA64
18857 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18858 shlibpath_var=LD_LIBRARY_PATH
18860 # With GCC up to 2.95.x, collect2 would create an import file
18861 # for dependence libraries. The import file would start with
18862 # the line `#! .'. This would cause the generated library to
18863 # depend on `.', always an invalid library. This was fixed in
18864 # development snapshots of GCC prior to 3.0.
18866 aix4 | aix4.[01] | aix4.[01].*)
18867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18869 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18872 can_build_shared=no
18876 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18877 # soname into executable. Probably we can add versioning support to
18878 # collect2, so additional links can be useful in future.
18879 if test "$aix_use_runtimelinking" = yes; then
18880 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18881 # instead of lib<name>.a to let people know that these are not
18882 # typical AIX shared libraries.
18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18885 # We preserve .a as extension for shared libraries through AIX4.2
18886 # and later when we are not doing run time linking.
18887 library_names_spec='${libname}${release}.a $libname.a'
18888 soname_spec='${libname}${release}${shared_ext}$major'
18890 shlibpath_var=LIBPATH
18897 # Since July 2007 AmigaOS4 officially supports .so libraries.
18898 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18902 library_names_spec='$libname.ixlibrary $libname.a'
18903 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18904 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'
18910 library_names_spec='${libname}${shared_ext}'
18911 dynamic_linker="$host_os ld.so"
18912 shlibpath_var=LIBRARY_PATH
18916 version_type=linux # correct to gnu/linux during the next big refactor
18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18919 soname_spec='${libname}${release}${shared_ext}$major'
18920 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18921 shlibpath_var=LD_LIBRARY_PATH
18922 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18923 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18924 # the default ld.so.conf also contains /usr/contrib/lib and
18925 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18926 # libtool to hard-code these into programs
18929 cygwin* | mingw* | pw32* | cegcc*)
18930 version_type=windows
18935 case $GCC,$cc_basename in
18938 library_names_spec='$libname.dll.a'
18939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18940 postinstall_cmds='base_file=`basename \${file}`~
18941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18942 dldir=$destdir/`dirname \$dlpath`~
18943 test -d \$dldir || mkdir -p \$dldir~
18944 $install_prog $dir/$dlname \$dldir/$dlname~
18945 chmod a+x \$dldir/$dlname~
18946 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18947 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18950 dlpath=$dir/\$dldll~
18952 shlibpath_overrides_runpath=yes
18956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18961 # MinGW DLLs use traditional 'lib' prefix
18962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18965 # pw32 DLLs use 'pw' prefix rather than 'lib'
18966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18969 dynamic_linker='Win32 ld.exe'
18974 libname_spec='$name'
18975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18976 library_names_spec='${libname}.dll.lib'
18980 sys_lib_search_path_spec=
18983 for lt_path in $LIB
18986 # Let DOS variable expansion print the short 8.3 style file name.
18987 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18988 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18991 # Convert to MSYS style.
18992 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18995 # Convert to unix form, then to dos form, then back to unix form
18996 # but this time dos style (no spaces!) so that the unix form looks
18997 # like /cygdrive/c/PROGRA~1:/cygdr...
18998 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18999 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19000 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19003 sys_lib_search_path_spec="$LIB"
19004 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19005 # It is most probably a Windows format PATH.
19006 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19008 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19010 # FIXME: find the short name or the path components, as spaces are
19011 # common. (e.g. "Program Files" -> "PROGRA~1")
19015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19016 postinstall_cmds='base_file=`basename \${file}`~
19017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19018 dldir=$destdir/`dirname \$dlpath`~
19019 test -d \$dldir || mkdir -p \$dldir~
19020 $install_prog $dir/$dlname \$dldir/$dlname'
19021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19022 dlpath=$dir/\$dldll~
19024 shlibpath_overrides_runpath=yes
19025 dynamic_linker='Win32 link.exe'
19029 # Assume MSVC wrapper
19030 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19031 dynamic_linker='Win32 ld.exe'
19034 # FIXME: first we should search . and the directory the executable is in
19038 darwin* | rhapsody*)
19039 dynamic_linker="$host_os dyld"
19040 version_type=darwin
19043 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19044 soname_spec='${libname}${release}${major}$shared_ext'
19045 shlibpath_overrides_runpath=yes
19046 shlibpath_var=DYLD_LIBRARY_PATH
19047 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19053 version_type=linux # correct to gnu/linux during the next big refactor
19056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19057 soname_spec='${libname}${release}${shared_ext}$major'
19058 shlibpath_var=LD_LIBRARY_PATH
19061 freebsd* | dragonfly*)
19062 # DragonFly does not have aout. When/if they implement a new
19063 # versioning mechanism, adjust this.
19064 if test -x /usr/bin/objformat; then
19065 objformat=`/usr/bin/objformat`
19068 freebsd[23].*) objformat=aout ;;
19069 *) objformat=elf ;;
19072 version_type=freebsd-$objformat
19073 case $version_type in
19075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19084 shlibpath_var=LD_LIBRARY_PATH
19087 shlibpath_overrides_runpath=yes
19089 freebsd3.[01]* | freebsdelf3.[01]*)
19090 shlibpath_overrides_runpath=yes
19091 hardcode_into_libs=yes
19093 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19094 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19095 shlibpath_overrides_runpath=no
19096 hardcode_into_libs=yes
19098 *) # from 4.6 on, and DragonFly
19099 shlibpath_overrides_runpath=yes
19100 hardcode_into_libs=yes
19106 version_type=linux # correct to gnu/linux during the next big refactor
19109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19110 soname_spec='${libname}${release}${shared_ext}$major'
19111 shlibpath_var=LD_LIBRARY_PATH
19112 shlibpath_overrides_runpath=no
19113 hardcode_into_libs=yes
19117 version_type=linux # correct to gnu/linux during the next big refactor
19120 dynamic_linker="$host_os runtime_loader"
19121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19122 soname_spec='${libname}${release}${shared_ext}$major'
19123 shlibpath_var=LIBRARY_PATH
19124 shlibpath_overrides_runpath=yes
19125 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19126 hardcode_into_libs=yes
19129 hpux9* | hpux10* | hpux11*)
19130 # Give a soname corresponding to the major version so that dld.sl refuses to
19131 # link against other versions.
19138 hardcode_into_libs=yes
19139 dynamic_linker="$host_os dld.so"
19140 shlibpath_var=LD_LIBRARY_PATH
19141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19143 soname_spec='${libname}${release}${shared_ext}$major'
19144 if test "X$HPUX_IA64_MODE" = X32; then
19145 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19147 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19153 hardcode_into_libs=yes
19154 dynamic_linker="$host_os dld.sl"
19155 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19158 soname_spec='${libname}${release}${shared_ext}$major'
19159 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19164 dynamic_linker="$host_os dld.sl"
19165 shlibpath_var=SHLIB_PATH
19166 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19168 soname_spec='${libname}${release}${shared_ext}$major'
19171 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19172 postinstall_cmds='chmod 555 $lib'
19173 # or fails outright, so override atomically:
19174 install_override_mode=555
19178 version_type=linux # correct to gnu/linux during the next big refactor
19181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19182 soname_spec='${libname}${release}${shared_ext}$major'
19183 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19184 shlibpath_var=LD_LIBRARY_PATH
19185 shlibpath_overrides_runpath=no
19186 hardcode_into_libs=yes
19189 irix5* | irix6* | nonstopux*)
19191 nonstopux*) version_type=nonstopux ;;
19193 if test "$lt_cv_prog_gnu_ld" = yes; then
19194 version_type=linux # correct to gnu/linux during the next big refactor
19201 soname_spec='${libname}${release}${shared_ext}$major'
19202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19204 irix5* | nonstopux*)
19205 libsuff= shlibsuff=
19208 case $LD in # libtool.m4 will add one of these switches to LD
19209 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19210 libsuff= shlibsuff= libmagic=32-bit;;
19211 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19212 libsuff=32 shlibsuff=N32 libmagic=N32;;
19213 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19214 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19215 *) libsuff= shlibsuff= libmagic=never-match;;
19219 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19220 shlibpath_overrides_runpath=no
19221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19223 hardcode_into_libs=yes
19226 # No shared lib support for Linux oldld, aout, or coff.
19227 linux*oldld* | linux*aout* | linux*coff*)
19231 # This must be glibc/ELF.
19232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19233 version_type=linux # correct to gnu/linux during the next big refactor
19236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19237 soname_spec='${libname}${release}${shared_ext}$major'
19238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19239 shlibpath_var=LD_LIBRARY_PATH
19240 shlibpath_overrides_runpath=no
19242 # Some binutils ld are patched to set DT_RUNPATH
19243 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19244 $as_echo_n "(cached) " >&6
19246 lt_cv_shlibpath_overrides_runpath=no
19247 save_LDFLAGS=$LDFLAGS
19248 save_libdir=$libdir
19249 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19250 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19252 /* end confdefs.h. */
19262 if ac_fn_cxx_try_link "$LINENO"; then :
19263 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19264 lt_cv_shlibpath_overrides_runpath=yes
19267 rm -f core conftest.err conftest.$ac_objext \
19268 conftest$ac_exeext conftest.$ac_ext
19269 LDFLAGS=$save_LDFLAGS
19270 libdir=$save_libdir
19274 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19276 # This implies no fast_install, which is unacceptable.
19277 # Some rework will be needed to allow for fast_install
19278 # before this can be enabled.
19279 hardcode_into_libs=yes
19281 # Add ABI-specific directories to the system library path.
19282 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19284 # Append ld.so.conf contents to the search path
19285 if test -f /etc/ld.so.conf; then
19286 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' ' '`
19287 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19291 # We used to test for /lib/ld.so.1 and disable shared libraries on
19292 # powerpc, because MkLinux only supported shared libraries with the
19293 # GNU dynamic linker. Since this was broken with cross compilers,
19294 # most powerpc-linux boxes support dynamic linking these days and
19295 # people can always --disable-shared, the test was removed, and we
19296 # assume the GNU/Linux dynamic linker is in use.
19297 dynamic_linker='GNU/Linux ld.so'
19304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19307 dynamic_linker='NetBSD (a.out) ld.so'
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19310 soname_spec='${libname}${release}${shared_ext}$major'
19311 dynamic_linker='NetBSD ld.elf_so'
19313 shlibpath_var=LD_LIBRARY_PATH
19314 shlibpath_overrides_runpath=yes
19315 hardcode_into_libs=yes
19319 version_type=linux # correct to gnu/linux during the next big refactor
19320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19321 shlibpath_var=LD_LIBRARY_PATH
19322 shlibpath_overrides_runpath=yes
19329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19330 soname_spec='${libname}${release}${shared_ext}$major'
19331 shlibpath_var=LD_LIBRARY_PATH
19332 shlibpath_overrides_runpath=no
19333 hardcode_into_libs=yes
19334 dynamic_linker='ldqnx.so'
19339 sys_lib_dlsearch_path_spec="/usr/lib"
19341 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19343 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19344 *) need_version=no ;;
19346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19348 shlibpath_var=LD_LIBRARY_PATH
19349 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19351 openbsd2.[89] | openbsd2.[89].*)
19352 shlibpath_overrides_runpath=no
19355 shlibpath_overrides_runpath=yes
19359 shlibpath_overrides_runpath=yes
19364 libname_spec='$name'
19367 library_names_spec='$libname${shared_ext} $libname.a'
19368 dynamic_linker='OS/2 ld.exe'
19369 shlibpath_var=LIBPATH
19372 osf3* | osf4* | osf5*)
19376 soname_spec='${libname}${release}${shared_ext}$major'
19377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19378 shlibpath_var=LD_LIBRARY_PATH
19379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19388 version_type=linux # correct to gnu/linux during the next big refactor
19391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19392 soname_spec='${libname}${release}${shared_ext}$major'
19393 shlibpath_var=LD_LIBRARY_PATH
19394 shlibpath_overrides_runpath=yes
19395 hardcode_into_libs=yes
19396 # ldd complains unless libraries are executable
19397 postinstall_cmds='chmod +x $lib'
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19404 shlibpath_var=LD_LIBRARY_PATH
19405 shlibpath_overrides_runpath=yes
19406 if test "$with_gnu_ld" = yes; then
19413 version_type=linux # correct to gnu/linux during the next big refactor
19414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19415 soname_spec='${libname}${release}${shared_ext}$major'
19416 shlibpath_var=LD_LIBRARY_PATH
19417 case $host_vendor in
19419 shlibpath_overrides_runpath=no
19421 runpath_var=LD_RUN_PATH
19429 shlibpath_overrides_runpath=no
19430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19436 if test -d /usr/nec ;then
19437 version_type=linux # correct to gnu/linux during the next big refactor
19438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19439 soname_spec='$libname${shared_ext}.$major'
19440 shlibpath_var=LD_LIBRARY_PATH
19444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19445 version_type=freebsd-elf
19448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19449 soname_spec='${libname}${release}${shared_ext}$major'
19450 shlibpath_var=LD_LIBRARY_PATH
19451 shlibpath_overrides_runpath=yes
19452 hardcode_into_libs=yes
19453 if test "$with_gnu_ld" = yes; then
19454 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19456 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19459 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19463 sys_lib_dlsearch_path_spec='/usr/lib'
19467 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19468 version_type=linux # correct to gnu/linux during the next big refactor
19471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19472 shlibpath_var=LD_LIBRARY_PATH
19473 shlibpath_overrides_runpath=no
19474 hardcode_into_libs=yes
19478 version_type=linux # correct to gnu/linux during the next big refactor
19479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19480 soname_spec='${libname}${release}${shared_ext}$major'
19481 shlibpath_var=LD_LIBRARY_PATH
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19489 $as_echo "$dynamic_linker" >&6; }
19490 test "$dynamic_linker" = no && can_build_shared=no
19492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19493 if test "$GCC" = yes; then
19494 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19497 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19498 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19500 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19501 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19542 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19543 hardcode_action_CXX=
19544 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19545 test -n "$runpath_var_CXX" ||
19546 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19548 # We can hardcode non-existent directories.
19549 if test "$hardcode_direct_CXX" != no &&
19550 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19551 # have to relink, otherwise we might link with an installed library
19552 # when we should be linking with a yet-to-be-installed one
19553 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19554 test "$hardcode_minus_L_CXX" != no; then
19555 # Linking always hardcodes the temporary library directory.
19556 hardcode_action_CXX=relink
19558 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19559 hardcode_action_CXX=immediate
19562 # We cannot hardcode anything, or else we can only hardcode existing
19564 hardcode_action_CXX=unsupported
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19567 $as_echo "$hardcode_action_CXX" >&6; }
19569 if test "$hardcode_action_CXX" = relink ||
19570 test "$inherit_rpath_CXX" = yes; then
19571 # Fast installation is not supported
19572 enable_fast_install=no
19573 elif test "$shlibpath_overrides_runpath" = yes ||
19574 test "$enable_shared" = no; then
19575 # Fast installation is not necessary
19576 enable_fast_install=needless
19585 fi # test -n "$compiler"
19588 CFLAGS=$lt_save_CFLAGS
19592 with_gnu_ld=$lt_save_with_gnu_ld
19593 lt_cv_path_LDCXX=$lt_cv_path_LD
19594 lt_cv_path_LD=$lt_save_path_LD
19595 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19596 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19597 fi # test "$_lt_caught_CXX_error" != yes
19600 ac_cpp='$CPP $CPPFLAGS'
19601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19619 ac_config_commands="$ac_config_commands libtool"
19624 # Only expand once:
19627 : ${CONFIG_LT=./config.lt}
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
19629 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
19631 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
19633 # Generated by $as_me.
19634 # Run this file to recreate a libtool stub with the current configuration.
19635 SHELL=\${CONFIG_SHELL-$SHELL}
19638 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
19639 ## -------------------- ##
19640 ## M4sh Initialization. ##
19641 ## -------------------- ##
19643 # Be more Bourne compatible
19644 DUALCASE=1; export DUALCASE # for MKS sh
19645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19649 # is contrary to our usage. Disable this feature.
19650 alias -g '${1+"$@"}'='"$@"'
19651 setopt NO_GLOB_SUBST
19653 case `(set -o) 2>/dev/null` in #(
19665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19669 # Prefer a ksh shell builtin over an external printf program on Solaris,
19670 # but without wasting forks for bash or zsh.
19671 if test -z "$BASH_VERSION$ZSH_VERSION" \
19672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19673 as_echo='print -r --'
19674 as_echo_n='print -rn --'
19675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19676 as_echo='printf %s\n'
19677 as_echo_n='printf %s'
19679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19681 as_echo_n='/usr/ucb/echo -n'
19683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19684 as_echo_n_body='eval
19688 expr "X$arg" : "X\\(.*\\)$as_nl";
19689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19693 export as_echo_n_body
19694 as_echo_n='sh -c $as_echo_n_body as_echo'
19696 export as_echo_body
19697 as_echo='sh -c $as_echo_body as_echo'
19700 # The user is always right.
19701 if test "${PATH_SEPARATOR+set}" != set; then
19703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19711 # We need space, tab and new line, in precisely that order. Quoting is
19712 # there to prevent editors from complaining about space-tab.
19713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19714 # splitting by setting IFS to empty value.)
19717 # Find who we are. Look in the path if we contain no directory separator.
19720 *[\\/]* ) as_myself=$0 ;;
19721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722 for as_dir in $PATH
19725 test -z "$as_dir" && as_dir=.
19726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19732 # We did not find ourselves, most probably we were run as `sh COMMAND'
19733 # in which case we are not to be found in the path.
19734 if test "x$as_myself" = x; then
19737 if test ! -f "$as_myself"; then
19738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19742 # Unset variables that we do not need and which cause bugs (e.g. in
19743 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19744 # suppresses any "Segmentation fault" message there. '((' could
19745 # trigger a bug in pdksh 5.2.14.
19746 for as_var in BASH_ENV ENV MAIL MAILPATH
19747 do eval test x\${$as_var+set} = xset \
19748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19764 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19765 # ----------------------------------------
19766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19768 # script with STATUS, using 1 if that was 0.
19771 as_status=$1; test $as_status -eq 0 && as_status=1
19773 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19776 $as_echo "$as_me: error: $2" >&2
19777 as_fn_exit $as_status
19781 # as_fn_set_status STATUS
19782 # -----------------------
19783 # Set $? to STATUS, without forking.
19784 as_fn_set_status ()
19787 } # as_fn_set_status
19789 # as_fn_exit STATUS
19790 # -----------------
19791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19795 as_fn_set_status $1
19801 # Portably unset VAR.
19804 { eval $1=; unset $1;}
19806 as_unset=as_fn_unset
19807 # as_fn_append VAR VALUE
19808 # ----------------------
19809 # Append the text in VALUE to the end of the definition contained in VAR. Take
19810 # advantage of any shell optimizations that allow amortized linear growth over
19811 # repeated appends, instead of the typical quadratic growth present in naive
19813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19814 eval 'as_fn_append ()
19825 # as_fn_arith ARG...
19826 # ------------------
19827 # Perform arithmetic evaluation on the ARGs, and store the result in the
19828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19829 # must be portable across $(()) and expr.
19830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19831 eval 'as_fn_arith ()
19838 as_val=`expr "$@" || test $? -eq 1`
19843 if expr a : '\(a\)' >/dev/null 2>&1 &&
19844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19851 as_basename=basename
19856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19862 as_me=`$as_basename -- "$0" ||
19863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19864 X"$0" : 'X\(//\)$' \| \
19865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19867 sed '/^.*\/\([^/][^/]*\)\/*$/{
19881 # Avoid depending upon Character Ranges.
19882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19885 as_cr_digits='0123456789'
19886 as_cr_alnum=$as_cr_Letters$as_cr_digits
19888 ECHO_C= ECHO_N= ECHO_T=
19889 case `echo -n x` in #(((((
19891 case `echo 'xy\c'` in
19892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19901 rm -f conf$$ conf$$.exe conf$$.file
19902 if test -d conf$$.dir; then
19903 rm -f conf$$.dir/conf$$.file
19906 mkdir conf$$.dir 2>/dev/null
19908 if (echo >conf$$.file) 2>/dev/null; then
19909 if ln -s conf$$.file conf$$ 2>/dev/null; then
19911 # ... but there are two gotchas:
19912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19914 # In both cases, we have to default to `cp -p'.
19915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19917 elif ln conf$$.file conf$$ 2>/dev/null; then
19925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19926 rmdir conf$$.dir 2>/dev/null
19931 # Create "$as_dir" as a directory, including parents if necessary.
19936 -*) as_dir=./$as_dir;;
19938 test -d "$as_dir" || eval $as_mkdir_p || {
19942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19943 *) as_qdir=$as_dir;;
19945 as_dirs="'$as_qdir' $as_dirs"
19946 as_dir=`$as_dirname -- "$as_dir" ||
19947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19948 X"$as_dir" : 'X\(//\)[^/]' \| \
19949 X"$as_dir" : 'X\(//\)$' \| \
19950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19951 $as_echo X"$as_dir" |
19952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19956 /^X\(\/\/\)[^/].*/{
19969 test -d "$as_dir" && break
19971 test -z "$as_dirs" || eval "mkdir $as_dirs"
19972 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19976 if mkdir -p . 2>/dev/null; then
19977 as_mkdir_p='mkdir -p "$as_dir"'
19979 test -d ./-p && rmdir ./-p
19983 if test -x / >/dev/null 2>&1; then
19984 as_test_x='test -x'
19986 if ls -dL / >/dev/null 2>&1; then
19993 if test -d "$1"; then
19999 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20000 ???[sx]*):;;*)false;;esac;fi
20004 as_executable_p=$as_test_x
20006 # Sed expression to map a string onto a valid CPP name.
20007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20009 # Sed expression to map a string onto a valid variable name.
20010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20014 ## --------------------------------- ##
20015 ## Main body of "$CONFIG_LT" script. ##
20016 ## --------------------------------- ##
20018 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
20020 cat >>"$CONFIG_LT" <<\_LTEOF
20025 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20026 ## Running $as_me. ##
20031 \`$as_me' creates a local libtool stub from the current configuration,
20032 for use in further configure time tests before the real libtool is
20035 Usage: $0 [OPTIONS]
20037 -h, --help print this help, then exit
20038 -V, --version print version number, then exit
20039 -q, --quiet do not print progress messages
20040 -d, --debug don't remove temporary files
20042 Report bugs to <bug-libtool@gnu.org>."
20045 glib config.lt 2.32.3
20046 configured by $0, generated by GNU Autoconf 2.68.
20048 Copyright (C) 2011 Free Software Foundation, Inc.
20049 This config.lt script is free software; the Free Software Foundation
20050 gives unlimited permision to copy, distribute and modify it."
20055 --version | --v* | -V )
20056 echo "$lt_cl_version"; exit 0 ;;
20057 --help | --h* | -h )
20058 echo "$lt_cl_help"; exit 0 ;;
20059 --debug | --d* | -d )
20061 --quiet | --q* | --silent | --s* | -q )
20064 -*) as_fn_error $? "unrecognized option: $1
20065 Try \`$0 --help' for more information." "$LINENO" 5 ;;
20067 *) as_fn_error $? "unrecognized argument: $1
20068 Try \`$0 --help' for more information." "$LINENO" 5 ;;
20073 if $lt_cl_silent; then
20078 cat >>"$CONFIG_LT" <<_LTEOF
20081 # The HP-UX ksh and POSIX shell print the target directory to stdout
20082 # if CDPATH is set.
20083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20085 sed_quote_subst='$sed_quote_subst'
20086 double_quote_subst='$double_quote_subst'
20087 delay_variable_subst='$delay_variable_subst'
20088 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20089 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20090 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20091 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20092 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20093 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20094 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20095 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20096 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20097 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20098 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20099 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20100 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20101 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20102 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20103 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20104 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20105 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20106 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20107 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20108 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20109 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20110 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20111 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20112 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20113 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20114 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20115 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20116 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20117 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20118 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20119 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20120 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20121 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20122 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20123 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20124 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20125 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20126 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20127 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20128 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20129 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20130 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20131 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20132 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20133 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20134 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20135 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20136 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20137 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20138 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20139 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20140 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20141 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20142 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20143 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20144 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20145 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"`'
20146 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20147 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20148 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20149 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20150 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20151 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20152 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20153 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20154 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20155 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20156 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20157 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20158 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20159 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20160 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20161 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20162 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20163 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20164 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20165 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20166 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20167 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20168 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20169 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20170 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20171 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20172 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20173 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20174 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20175 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20176 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20177 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20178 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20179 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20180 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20181 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20182 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20183 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20184 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20185 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20186 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20187 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20188 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20189 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20190 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20191 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20192 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20193 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20194 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20195 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20196 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20197 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20198 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20199 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20200 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20201 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20202 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20203 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20204 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20205 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20206 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20207 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20208 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20209 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20210 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20211 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20212 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20213 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20214 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20215 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20216 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20217 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20218 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20219 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20220 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20221 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20222 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20223 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20224 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20225 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20226 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20227 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20228 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20229 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20230 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20231 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20232 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20233 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20234 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20235 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20236 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20237 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20238 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20239 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20240 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20241 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20242 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20243 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20244 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20245 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20246 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20247 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20248 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20249 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20250 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20251 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20252 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20253 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20254 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20255 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20256 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20257 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20258 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20259 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20260 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20261 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20262 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20263 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20264 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20265 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20266 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20267 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20268 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20269 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20270 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20271 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20272 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20275 LTCFLAGS='$LTCFLAGS'
20276 compiler='$compiler_DEFAULT'
20278 # A function that is used when there is no print builtin or printf.
20279 func_fallback_echo ()
20281 eval 'cat <<_LTECHO_EOF
20286 # Quote evaled strings.
20303 deplibs_check_method \
20307 sharedlib_from_linklib_cmd \
20310 archiver_list_spec \
20316 lt_cv_sys_global_symbol_pipe \
20317 lt_cv_sys_global_symbol_to_cdecl \
20318 lt_cv_sys_global_symbol_to_c_name_address \
20319 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20320 nm_file_list_spec \
20321 lt_prog_compiler_no_builtin_flag \
20322 lt_prog_compiler_pic \
20323 lt_prog_compiler_wl \
20324 lt_prog_compiler_static \
20325 lt_cv_prog_compiler_c_o \
20334 export_dynamic_flag_spec \
20335 whole_archive_flag_spec \
20336 compiler_needs_object \
20338 allow_undefined_flag \
20339 no_undefined_flag \
20340 hardcode_libdir_flag_spec \
20341 hardcode_libdir_separator \
20345 variables_saved_for_relink \
20347 library_names_spec \
20349 install_override_mode \
20353 compiler_lib_search_dirs \
20358 compiler_lib_search_path \
20362 lt_prog_compiler_no_builtin_flag_CXX \
20363 lt_prog_compiler_pic_CXX \
20364 lt_prog_compiler_wl_CXX \
20365 lt_prog_compiler_static_CXX \
20366 lt_cv_prog_compiler_c_o_CXX \
20367 export_dynamic_flag_spec_CXX \
20368 whole_archive_flag_spec_CXX \
20369 compiler_needs_object_CXX \
20371 allow_undefined_flag_CXX \
20372 no_undefined_flag_CXX \
20373 hardcode_libdir_flag_spec_CXX \
20374 hardcode_libdir_separator_CXX \
20375 exclude_expsyms_CXX \
20376 include_expsyms_CXX \
20377 file_list_spec_CXX \
20378 compiler_lib_search_dirs_CXX \
20379 predep_objects_CXX \
20380 postdep_objects_CXX \
20383 compiler_lib_search_path_CXX; do
20384 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20385 *[\\\\\\\`\\"\\\$]*)
20386 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20389 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20394 # Double-quote double-evaled strings.
20395 for var in reload_cmds \
20396 old_postinstall_cmds \
20397 old_postuninstall_cmds \
20399 extract_expsyms_cmds \
20400 old_archive_from_new_cmds \
20401 old_archive_from_expsyms_cmds \
20403 archive_expsym_cmds \
20405 module_expsym_cmds \
20406 export_symbols_cmds \
20410 postuninstall_cmds \
20412 sys_lib_search_path_spec \
20413 sys_lib_dlsearch_path_spec \
20415 old_archive_cmds_CXX \
20416 old_archive_from_new_cmds_CXX \
20417 old_archive_from_expsyms_cmds_CXX \
20419 archive_expsym_cmds_CXX \
20421 module_expsym_cmds_CXX \
20422 export_symbols_cmds_CXX \
20424 postlink_cmds_CXX; do
20425 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20426 *[\\\\\\\`\\"\\\$]*)
20427 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20430 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20435 ac_aux_dir='$ac_aux_dir'
20436 xsi_shell='$xsi_shell'
20437 lt_shell_append='$lt_shell_append'
20439 # See if we are running on zsh, and set the options which allow our
20440 # commands through without removal of \ escapes INIT.
20441 if test -n "\${ZSH_VERSION+set}" ; then
20442 setopt NO_GLOB_SUBST
20448 TIMESTAMP='$TIMESTAMP'
20458 cat >>"$CONFIG_LT" <<\_LTEOF
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
20460 $as_echo "$as_me: creating $ofile" >&6;}
20463 # See if we are running on zsh, and set the options which allow our
20464 # commands through without removal of \ escapes.
20465 if test -n "${ZSH_VERSION+set}" ; then
20466 setopt NO_GLOB_SUBST
20469 cfgfile="${ofile}T"
20470 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20473 cat <<_LT_EOF >> "$cfgfile"
20476 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20477 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20478 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20482 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20484 # Written by Gordon Matzigkeit, 1996
20486 # This file is part of GNU Libtool.
20488 # GNU Libtool is free software; you can redistribute it and/or
20489 # modify it under the terms of the GNU General Public License as
20490 # published by the Free Software Foundation; either version 2 of
20491 # the License, or (at your option) any later version.
20493 # As a special exception to the GNU General Public License,
20494 # if you distribute this file as part of a program or library that
20495 # is built using GNU Libtool, you may include this file under the
20496 # same distribution terms that you use for the rest of that program.
20498 # GNU Libtool is distributed in the hope that it will be useful,
20499 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20500 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20501 # GNU General Public License for more details.
20503 # You should have received a copy of the GNU General Public License
20504 # along with GNU Libtool; see the file COPYING. If not, a copy
20505 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20506 # obtained by writing to the Free Software Foundation, Inc.,
20507 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20510 # The names of the tagged configurations supported by this script.
20511 available_tags="CXX "
20513 # ### BEGIN LIBTOOL CONFIG
20515 # Which release of libtool.m4 was used?
20516 macro_version=$macro_version
20517 macro_revision=$macro_revision
20519 # Whether or not to build static libraries.
20520 build_old_libs=$enable_static
20522 # Assembler program.
20525 # DLL creation program.
20526 DLLTOOL=$lt_DLLTOOL
20528 # Object dumper program.
20529 OBJDUMP=$lt_OBJDUMP
20531 # Whether or not to build shared libraries.
20532 build_libtool_libs=$enable_shared
20534 # What type of objects to build.
20537 # Whether or not to optimize for fast installation.
20538 fast_install=$enable_fast_install
20540 # Shell to use when invoking shell scripts.
20543 # An echo program that protects backslashes.
20546 # The PATH separator for the build system.
20547 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20550 host_alias=$host_alias
20554 # The build system.
20555 build_alias=$build_alias
20559 # A sed program that does not truncate output.
20562 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20563 Xsed="\$SED -e 1s/^X//"
20565 # A grep program that handles long lines.
20571 # A literal string matcher.
20574 # A BSD- or MS-compatible name lister.
20577 # Whether we need soft or hard links.
20580 # What is the maximum length of a command?
20581 max_cmd_len=$max_cmd_len
20583 # Object file suffix (normally "o").
20586 # Executable file suffix (normally "").
20589 # whether the shell understands "unset".
20592 # turn spaces into newlines.
20595 # turn newlines into spaces.
20598 # convert \$build file names to \$host format.
20599 to_host_file_cmd=$lt_cv_to_host_file_cmd
20601 # convert \$build files to toolchain format.
20602 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20604 # Method to check whether dependent libraries are shared objects.
20605 deplibs_check_method=$lt_deplibs_check_method
20607 # Command to use when deplibs_check_method = "file_magic".
20608 file_magic_cmd=$lt_file_magic_cmd
20610 # How to find potential files when deplibs_check_method = "file_magic".
20611 file_magic_glob=$lt_file_magic_glob
20613 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20614 want_nocaseglob=$lt_want_nocaseglob
20616 # Command to associate shared and link libraries.
20617 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20622 # Flags to create an archive.
20623 AR_FLAGS=$lt_AR_FLAGS
20625 # How to feed a file listing to the archiver.
20626 archiver_list_spec=$lt_archiver_list_spec
20628 # A symbol stripping program.
20631 # Commands used to install an old-style archive.
20633 old_postinstall_cmds=$lt_old_postinstall_cmds
20634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20636 # Whether to use a lock for old archive extraction.
20637 lock_old_archive_extraction=$lock_old_archive_extraction
20642 # LTCC compiler flags.
20643 LTCFLAGS=$lt_CFLAGS
20645 # Take the output of nm and produce a listing of raw symbols and C names.
20646 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20648 # Transform the output of nm in a proper C declaration.
20649 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20651 # Transform the output of nm in a C name address pair.
20652 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20654 # Transform the output of nm in a C name address pair when lib prefix is needed.
20655 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20657 # Specify filename containing input files for \$NM.
20658 nm_file_list_spec=$lt_nm_file_list_spec
20660 # The root where to search for dependent libraries,and in which our libraries should be installed.
20661 lt_sysroot=$lt_sysroot
20663 # The name of the directory that contains temporary libtool files.
20666 # Used to examine libraries when file_magic_cmd begins with "file".
20667 MAGIC_CMD=$MAGIC_CMD
20669 # Must we lock files when doing compilation?
20670 need_locks=$lt_need_locks
20673 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20675 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20676 DSYMUTIL=$lt_DSYMUTIL
20678 # Tool to change global to local symbols on Mac OS X.
20681 # Tool to manipulate fat objects and archives on Mac OS X.
20684 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20687 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20688 OTOOL64=$lt_OTOOL64
20690 # Old archive suffix (normally "a").
20693 # Shared library suffix (normally ".so").
20694 shrext_cmds=$lt_shrext_cmds
20696 # The commands to extract the exported symbol list from a shared archive.
20697 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20699 # Variables whose values should be saved in libtool wrapper scripts and
20700 # restored at link time.
20701 variables_saved_for_relink=$lt_variables_saved_for_relink
20703 # Do we need the "lib" prefix for modules?
20704 need_lib_prefix=$need_lib_prefix
20706 # Do we need a version for libraries?
20707 need_version=$need_version
20709 # Library versioning type.
20710 version_type=$version_type
20712 # Shared library runtime path variable.
20713 runpath_var=$runpath_var
20715 # Shared library path variable.
20716 shlibpath_var=$shlibpath_var
20718 # Is shlibpath searched before the hard-coded library search path?
20719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20721 # Format of library name prefix.
20722 libname_spec=$lt_libname_spec
20724 # List of archive names. First name is the real one, the rest are links.
20725 # The last name is the one that the linker finds with -lNAME
20726 library_names_spec=$lt_library_names_spec
20728 # The coded name of the library, if different from the real name.
20729 soname_spec=$lt_soname_spec
20731 # Permission mode override for installation of shared libraries.
20732 install_override_mode=$lt_install_override_mode
20734 # Command to use after installation of a shared archive.
20735 postinstall_cmds=$lt_postinstall_cmds
20737 # Command to use after uninstallation of a shared archive.
20738 postuninstall_cmds=$lt_postuninstall_cmds
20740 # Commands used to finish a libtool library installation in a directory.
20741 finish_cmds=$lt_finish_cmds
20743 # As "finish_cmds", except a single script fragment to be evaled but
20745 finish_eval=$lt_finish_eval
20747 # Whether we should hardcode library paths into libraries.
20748 hardcode_into_libs=$hardcode_into_libs
20750 # Compile-time system search path for libraries.
20751 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20753 # Run-time system search path for libraries.
20754 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20756 # Whether dlopen is supported.
20757 dlopen_support=$enable_dlopen
20759 # Whether dlopen of programs is supported.
20760 dlopen_self=$enable_dlopen_self
20762 # Whether dlopen of statically linked programs is supported.
20763 dlopen_self_static=$enable_dlopen_self_static
20765 # Commands to strip libraries.
20766 old_striplib=$lt_old_striplib
20767 striplib=$lt_striplib
20770 # The linker used to build libraries.
20773 # How to create reloadable object files.
20774 reload_flag=$lt_reload_flag
20775 reload_cmds=$lt_reload_cmds
20777 # Commands used to build an old-style archive.
20778 old_archive_cmds=$lt_old_archive_cmds
20780 # A language specific compiler.
20783 # Is the compiler the GNU compiler?
20786 # Compiler flag to turn off builtin functions.
20787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20789 # Additional compiler flags for building library objects.
20790 pic_flag=$lt_lt_prog_compiler_pic
20792 # How to pass a linker flag through the compiler.
20793 wl=$lt_lt_prog_compiler_wl
20795 # Compiler flag to prevent dynamic linking.
20796 link_static_flag=$lt_lt_prog_compiler_static
20798 # Does compiler simultaneously support -c and -o options?
20799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20801 # Whether or not to add -lc for building shared libraries.
20802 build_libtool_need_lc=$archive_cmds_need_lc
20804 # Whether or not to disallow shared libs when runtime libs are static.
20805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20807 # Compiler flag to allow reflexive dlopens.
20808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20810 # Compiler flag to generate shared objects directly from archives.
20811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20813 # Whether the compiler copes with passing no objects directly.
20814 compiler_needs_object=$lt_compiler_needs_object
20816 # Create an old-style archive from a shared archive.
20817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20819 # Create a temporary old-style archive to link instead of a shared archive.
20820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20822 # Commands used to build a shared archive.
20823 archive_cmds=$lt_archive_cmds
20824 archive_expsym_cmds=$lt_archive_expsym_cmds
20826 # Commands used to build a loadable module if different from building
20827 # a shared archive.
20828 module_cmds=$lt_module_cmds
20829 module_expsym_cmds=$lt_module_expsym_cmds
20831 # Whether we are building with GNU ld or not.
20832 with_gnu_ld=$lt_with_gnu_ld
20834 # Flag that allows shared libraries with undefined symbols to be built.
20835 allow_undefined_flag=$lt_allow_undefined_flag
20837 # Flag that enforces no undefined symbols.
20838 no_undefined_flag=$lt_no_undefined_flag
20840 # Flag to hardcode \$libdir into a binary during linking.
20841 # This must work even if \$libdir does not exist
20842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20844 # Whether we need a single "-rpath" flag with a separated argument.
20845 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20847 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20848 # DIR into the resulting binary.
20849 hardcode_direct=$hardcode_direct
20851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20852 # DIR into the resulting binary and the resulting library dependency is
20853 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20854 # library is relocated.
20855 hardcode_direct_absolute=$hardcode_direct_absolute
20857 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20858 # into the resulting binary.
20859 hardcode_minus_L=$hardcode_minus_L
20861 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20862 # into the resulting binary.
20863 hardcode_shlibpath_var=$hardcode_shlibpath_var
20865 # Set to "yes" if building a shared library automatically hardcodes DIR
20866 # into the library and all subsequent libraries and executables linked
20868 hardcode_automatic=$hardcode_automatic
20870 # Set to yes if linker adds runtime paths of dependent libraries
20871 # to runtime path list.
20872 inherit_rpath=$inherit_rpath
20874 # Whether libtool must link a program against all its dependency libraries.
20875 link_all_deplibs=$link_all_deplibs
20877 # Set to "yes" if exported symbols are required.
20878 always_export_symbols=$always_export_symbols
20880 # The commands to list exported symbols.
20881 export_symbols_cmds=$lt_export_symbols_cmds
20883 # Symbols that should not be listed in the preloaded symbols.
20884 exclude_expsyms=$lt_exclude_expsyms
20886 # Symbols that must always be exported.
20887 include_expsyms=$lt_include_expsyms
20889 # Commands necessary for linking programs (against libraries) with templates.
20890 prelink_cmds=$lt_prelink_cmds
20892 # Commands necessary for finishing linking programs.
20893 postlink_cmds=$lt_postlink_cmds
20895 # Specify filename containing input files.
20896 file_list_spec=$lt_file_list_spec
20898 # How to hardcode a shared library path into an executable.
20899 hardcode_action=$hardcode_action
20901 # The directories searched by this compiler when creating a shared library.
20902 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20904 # Dependencies to place before and after the objects being linked to
20905 # create a shared library.
20906 predep_objects=$lt_predep_objects
20907 postdep_objects=$lt_postdep_objects
20908 predeps=$lt_predeps
20909 postdeps=$lt_postdeps
20911 # The library search path used internally by the compiler when linking
20912 # a shared library.
20913 compiler_lib_search_path=$lt_compiler_lib_search_path
20915 # ### END LIBTOOL CONFIG
20921 cat <<\_LT_EOF >> "$cfgfile"
20922 # AIX sometimes has problems with the GCC collect2 program. For some
20923 # reason, if we set the COLLECT_NAMES environment variable, the problems
20924 # vanish in a puff of smoke.
20925 if test "X${COLLECT_NAMES+set}" != Xset; then
20927 export COLLECT_NAMES
20934 ltmain="$ac_aux_dir/ltmain.sh"
20937 # We use sed instead of cat because bash on DJGPP gets confused if
20938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20939 # text mode, it properly converts lines to CR/LF. This bash problem
20940 # is reportedly fixed, but why not run on old versions too?
20941 sed '$q' "$ltmain" >> "$cfgfile" \
20942 || (rm -f "$cfgfile"; exit 1)
20944 if test x"$xsi_shell" = xyes; then
20945 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20949 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20950 \ * ) func_dirname_result="${3}" ;;\
20952 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20953 && mv -f "$cfgfile.tmp" "$cfgfile" \
20954 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20955 test 0 -eq $? || _lt_function_replace_fail=:
20958 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20961 \ func_basename_result="${1##*/}"\
20962 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20963 && mv -f "$cfgfile.tmp" "$cfgfile" \
20964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20965 test 0 -eq $? || _lt_function_replace_fail=:
20968 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20969 func_dirname_and_basename ()\
20972 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20973 \ * ) func_dirname_result="${3}" ;;\
20975 \ func_basename_result="${1##*/}"\
20976 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20977 && mv -f "$cfgfile.tmp" "$cfgfile" \
20978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20979 test 0 -eq $? || _lt_function_replace_fail=:
20982 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20985 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20986 \ # positional parameters, so assign one to ordinary parameter first.\
20987 \ func_stripname_result=${3}\
20988 \ func_stripname_result=${func_stripname_result#"${1}"}\
20989 \ func_stripname_result=${func_stripname_result%"${2}"}\
20990 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20991 && mv -f "$cfgfile.tmp" "$cfgfile" \
20992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20993 test 0 -eq $? || _lt_function_replace_fail=:
20996 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20997 func_split_long_opt ()\
20999 \ func_split_long_opt_name=${1%%=*}\
21000 \ func_split_long_opt_arg=${1#*=}\
21001 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21002 && mv -f "$cfgfile.tmp" "$cfgfile" \
21003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21004 test 0 -eq $? || _lt_function_replace_fail=:
21007 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21008 func_split_short_opt ()\
21010 \ func_split_short_opt_arg=${1#??}\
21011 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21012 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21013 && mv -f "$cfgfile.tmp" "$cfgfile" \
21014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21015 test 0 -eq $? || _lt_function_replace_fail=:
21018 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21022 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21023 \ *) func_lo2o_result=${1} ;;\
21025 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21026 && mv -f "$cfgfile.tmp" "$cfgfile" \
21027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21028 test 0 -eq $? || _lt_function_replace_fail=:
21031 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21034 func_xform_result=${1%.*}.lo\
21035 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21036 && mv -f "$cfgfile.tmp" "$cfgfile" \
21037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21038 test 0 -eq $? || _lt_function_replace_fail=:
21041 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21044 func_arith_result=$(( $* ))\
21045 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21046 && mv -f "$cfgfile.tmp" "$cfgfile" \
21047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21048 test 0 -eq $? || _lt_function_replace_fail=:
21051 sed -e '/^func_len ()$/,/^} # func_len /c\
21054 func_len_result=${#1}\
21055 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21056 && mv -f "$cfgfile.tmp" "$cfgfile" \
21057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21058 test 0 -eq $? || _lt_function_replace_fail=:
21062 if test x"$lt_shell_append" = xyes; then
21063 sed -e '/^func_append ()$/,/^} # func_append /c\
21066 eval "${1}+=\\${2}"\
21067 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21068 && mv -f "$cfgfile.tmp" "$cfgfile" \
21069 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21070 test 0 -eq $? || _lt_function_replace_fail=:
21073 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21074 func_append_quoted ()\
21076 \ func_quote_for_eval "${2}"\
21077 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21078 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21079 && mv -f "$cfgfile.tmp" "$cfgfile" \
21080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21081 test 0 -eq $? || _lt_function_replace_fail=:
21084 # Save a `func_append' function call where possible by direct use of '+='
21085 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21086 && mv -f "$cfgfile.tmp" "$cfgfile" \
21087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21088 test 0 -eq $? || _lt_function_replace_fail=:
21090 # Save a `func_append' function call even when '+=' is not available
21091 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21092 && mv -f "$cfgfile.tmp" "$cfgfile" \
21093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21094 test 0 -eq $? || _lt_function_replace_fail=:
21097 if test x"$_lt_function_replace_fail" = x":"; then
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21099 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21103 mv -f "$cfgfile" "$ofile" ||
21104 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21108 cat <<_LT_EOF >> "$ofile"
21110 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21112 # The linker used to build libraries.
21115 # How to create reloadable object files.
21116 reload_flag=$lt_reload_flag_CXX
21117 reload_cmds=$lt_reload_cmds_CXX
21119 # Commands used to build an old-style archive.
21120 old_archive_cmds=$lt_old_archive_cmds_CXX
21122 # A language specific compiler.
21123 CC=$lt_compiler_CXX
21125 # Is the compiler the GNU compiler?
21128 # Compiler flag to turn off builtin functions.
21129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21131 # Additional compiler flags for building library objects.
21132 pic_flag=$lt_lt_prog_compiler_pic_CXX
21134 # How to pass a linker flag through the compiler.
21135 wl=$lt_lt_prog_compiler_wl_CXX
21137 # Compiler flag to prevent dynamic linking.
21138 link_static_flag=$lt_lt_prog_compiler_static_CXX
21140 # Does compiler simultaneously support -c and -o options?
21141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21143 # Whether or not to add -lc for building shared libraries.
21144 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21146 # Whether or not to disallow shared libs when runtime libs are static.
21147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21149 # Compiler flag to allow reflexive dlopens.
21150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21152 # Compiler flag to generate shared objects directly from archives.
21153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21155 # Whether the compiler copes with passing no objects directly.
21156 compiler_needs_object=$lt_compiler_needs_object_CXX
21158 # Create an old-style archive from a shared archive.
21159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21161 # Create a temporary old-style archive to link instead of a shared archive.
21162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21164 # Commands used to build a shared archive.
21165 archive_cmds=$lt_archive_cmds_CXX
21166 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21168 # Commands used to build a loadable module if different from building
21169 # a shared archive.
21170 module_cmds=$lt_module_cmds_CXX
21171 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21173 # Whether we are building with GNU ld or not.
21174 with_gnu_ld=$lt_with_gnu_ld_CXX
21176 # Flag that allows shared libraries with undefined symbols to be built.
21177 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21179 # Flag that enforces no undefined symbols.
21180 no_undefined_flag=$lt_no_undefined_flag_CXX
21182 # Flag to hardcode \$libdir into a binary during linking.
21183 # This must work even if \$libdir does not exist
21184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21186 # Whether we need a single "-rpath" flag with a separated argument.
21187 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21190 # DIR into the resulting binary.
21191 hardcode_direct=$hardcode_direct_CXX
21193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21194 # DIR into the resulting binary and the resulting library dependency is
21195 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21196 # library is relocated.
21197 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21199 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21200 # into the resulting binary.
21201 hardcode_minus_L=$hardcode_minus_L_CXX
21203 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21204 # into the resulting binary.
21205 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21207 # Set to "yes" if building a shared library automatically hardcodes DIR
21208 # into the library and all subsequent libraries and executables linked
21210 hardcode_automatic=$hardcode_automatic_CXX
21212 # Set to yes if linker adds runtime paths of dependent libraries
21213 # to runtime path list.
21214 inherit_rpath=$inherit_rpath_CXX
21216 # Whether libtool must link a program against all its dependency libraries.
21217 link_all_deplibs=$link_all_deplibs_CXX
21219 # Set to "yes" if exported symbols are required.
21220 always_export_symbols=$always_export_symbols_CXX
21222 # The commands to list exported symbols.
21223 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21225 # Symbols that should not be listed in the preloaded symbols.
21226 exclude_expsyms=$lt_exclude_expsyms_CXX
21228 # Symbols that must always be exported.
21229 include_expsyms=$lt_include_expsyms_CXX
21231 # Commands necessary for linking programs (against libraries) with templates.
21232 prelink_cmds=$lt_prelink_cmds_CXX
21234 # Commands necessary for finishing linking programs.
21235 postlink_cmds=$lt_postlink_cmds_CXX
21237 # Specify filename containing input files.
21238 file_list_spec=$lt_file_list_spec_CXX
21240 # How to hardcode a shared library path into an executable.
21241 hardcode_action=$hardcode_action_CXX
21243 # The directories searched by this compiler when creating a shared library.
21244 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21246 # Dependencies to place before and after the objects being linked to
21247 # create a shared library.
21248 predep_objects=$lt_predep_objects_CXX
21249 postdep_objects=$lt_postdep_objects_CXX
21250 predeps=$lt_predeps_CXX
21251 postdeps=$lt_postdeps_CXX
21253 # The library search path used internally by the compiler when linking
21254 # a shared library.
21255 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21257 # ### END LIBTOOL TAG CONFIG: CXX
21263 chmod +x "$CONFIG_LT"
21265 # configure is writing to config.log, but config.lt does its own redirection,
21266 # appending to config.log, which fails on DOS, as config.log is still kept
21267 # open by configure. Here we exec the FD to /dev/null, effectively closing
21268 # config.log, so it can be properly (re)opened and appended to by config.lt.
21270 test "$silent" = yes &&
21271 lt_config_lt_args="$lt_config_lt_args --quiet"
21273 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
21275 $lt_cl_success || as_fn_exit 1
21279 if test "x$GCC" = "xyes"; then
21280 case " $CFLAGS " in
21281 *[\ \ ]-Wall[\ \ ]*) ;;
21282 *) CFLAGS="$CFLAGS -Wall" ;;
21286 if test "$glib_native_win32" = "yes"; then
21287 if test x$enable_static = xyes -a x$enable_shared = xyes; then
21288 as_fn_error $? "Can not build both shared and static at the same time on Windows." "$LINENO" 5
21290 if test x$enable_static = xyes; then
21291 glib_win32_static_compilation=yes
21292 GLIB_WIN32_STATIC_COMPILATION_DEFINE="#define GLIB_STATIC_COMPILATION 1
21293 #define GOBJECT_STATIC_COMPILATION 1"
21297 if test x$glib_native_win32 = xyes -a x$glib_win32_static_compilation != xyes; then
21298 OS_WIN32_AND_DLL_COMPILATION_TRUE=
21299 OS_WIN32_AND_DLL_COMPILATION_FALSE='#'
21301 OS_WIN32_AND_DLL_COMPILATION_TRUE='#'
21302 OS_WIN32_AND_DLL_COMPILATION_FALSE=
21306 if test $cross_compiling != yes ; then
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags to get ANSI library prototypes" >&5
21308 $as_echo_n "checking for extra flags to get ANSI library prototypes... " >&6; }
21309 glib_save_LIBS=$LIBS
21311 if test "$cross_compiling" = yes; then :
21312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21314 as_fn_error $? "cannot run test program while cross compiling
21315 See \`config.log' for more details" "$LINENO" 5; }
21317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21318 /* end confdefs.h. */
21320 int main (void) { return (log(1) != log(1.)); }
21322 if ac_fn_c_try_run "$LINENO"; then :
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
21324 $as_echo "none needed" >&6; }
21326 glib_save_CFLAGS=$CFLAGS
21327 CFLAGS="$CFLAGS -std1"
21328 if test "$cross_compiling" = yes; then :
21329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21331 as_fn_error $? "cannot run test program while cross compiling
21332 See \`config.log' for more details" "$LINENO" 5; }
21334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21335 /* end confdefs.h. */
21337 int main (void) { return (log(1) != log(1.)); }
21339 if ac_fn_c_try_run "$LINENO"; then :
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -std1" >&5
21341 $as_echo "-std1" >&6; }
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21345 CFLAGS=$glib_save_CFLAGS
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
21347 $as_echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
21350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21351 conftest.$ac_objext conftest.beam conftest.$ac_ext
21356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21357 conftest.$ac_objext conftest.beam conftest.$ac_ext
21360 LIBS=$glib_save_LIBS
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags for POSIX compliance" >&5
21364 $as_echo_n "checking for extra flags for POSIX compliance... " >&6; }
21365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21366 /* end confdefs.h. */
21367 #include <dirent.h>
21376 if ac_fn_c_try_compile "$LINENO"; then :
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
21378 $as_echo "none needed" >&6; }
21380 glib_save_CFLAGS=$CFLAGS
21381 CFLAGS="$CFLAGS -posix"
21382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21383 /* end confdefs.h. */
21384 #include <dirent.h>
21393 if ac_fn_c_try_compile "$LINENO"; then :
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -posix" >&5
21395 $as_echo "-posix" >&6; }
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21399 CFLAGS=$glib_save_CFLAGS
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
21401 $as_echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
21403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407 # Checks for library functions.
21408 for ac_func in vprintf
21410 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21411 if test "x$ac_cv_func_vprintf" = xyes; then :
21412 cat >>confdefs.h <<_ACEOF
21413 #define HAVE_VPRINTF 1
21416 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21417 if test "x$ac_cv_func__doprnt" = xyes; then :
21419 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21427 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21428 if test "x$ac_cv_type_size_t" = xyes; then :
21432 cat >>confdefs.h <<_ACEOF
21433 #define size_t unsigned int
21438 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21439 # for constant arguments. Useless!
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21441 $as_echo_n "checking for working alloca.h... " >&6; }
21442 if ${ac_cv_working_alloca_h+:} false; then :
21443 $as_echo_n "(cached) " >&6
21445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446 /* end confdefs.h. */
21447 #include <alloca.h>
21451 char *p = (char *) alloca (2 * sizeof (int));
21457 if ac_fn_c_try_link "$LINENO"; then :
21458 ac_cv_working_alloca_h=yes
21460 ac_cv_working_alloca_h=no
21462 rm -f core conftest.err conftest.$ac_objext \
21463 conftest$ac_exeext conftest.$ac_ext
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21466 $as_echo "$ac_cv_working_alloca_h" >&6; }
21467 if test $ac_cv_working_alloca_h = yes; then
21469 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21474 $as_echo_n "checking for alloca... " >&6; }
21475 if ${ac_cv_func_alloca_works+:} false; then :
21476 $as_echo_n "(cached) " >&6
21478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21479 /* end confdefs.h. */
21481 # define alloca __builtin_alloca
21484 # include <malloc.h>
21485 # define alloca _alloca
21487 # ifdef HAVE_ALLOCA_H
21488 # include <alloca.h>
21493 # ifndef alloca /* predefined by HP cc +Olibcalls */
21494 void *alloca (size_t);
21504 char *p = (char *) alloca (1);
21510 if ac_fn_c_try_link "$LINENO"; then :
21511 ac_cv_func_alloca_works=yes
21513 ac_cv_func_alloca_works=no
21515 rm -f core conftest.err conftest.$ac_objext \
21516 conftest$ac_exeext conftest.$ac_ext
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21519 $as_echo "$ac_cv_func_alloca_works" >&6; }
21521 if test $ac_cv_func_alloca_works = yes; then
21523 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21526 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21527 # that cause trouble. Some versions do not even contain alloca or
21528 # contain a buggy version. If you still want to use their alloca,
21529 # use ar to extract alloca.o from them instead of compiling alloca.c.
21531 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21533 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21537 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21538 if ${ac_cv_os_cray+:} false; then :
21539 $as_echo_n "(cached) " >&6
21541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h. */
21543 #if defined CRAY && ! defined CRAY2
21550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21551 $EGREP "webecray" >/dev/null 2>&1; then :
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21560 $as_echo "$ac_cv_os_cray" >&6; }
21561 if test $ac_cv_os_cray = yes; then
21562 for ac_func in _getb67 GETB67 getb67; do
21563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21565 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21567 cat >>confdefs.h <<_ACEOF
21568 #define CRAY_STACKSEG_END $ac_func
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21578 $as_echo_n "checking stack direction for C alloca... " >&6; }
21579 if ${ac_cv_c_stack_direction+:} false; then :
21580 $as_echo_n "(cached) " >&6
21582 if test "$cross_compiling" = yes; then :
21583 ac_cv_c_stack_direction=0
21585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h. */
21587 $ac_includes_default
21589 find_stack_direction ()
21591 static char *addr = 0;
21596 return find_stack_direction ();
21599 return (&dummy > addr) ? 1 : -1;
21605 return find_stack_direction () < 0;
21608 if ac_fn_c_try_run "$LINENO"; then :
21609 ac_cv_c_stack_direction=1
21611 ac_cv_c_stack_direction=-1
21613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21614 conftest.$ac_objext conftest.beam conftest.$ac_ext
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21619 $as_echo "$ac_cv_c_stack_direction" >&6; }
21620 cat >>confdefs.h <<_ACEOF
21621 #define STACK_DIRECTION $ac_cv_c_stack_direction
21627 for ac_func in mmap posix_memalign memalign valloc fsync pipe2
21629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21631 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21632 cat >>confdefs.h <<_ACEOF
21633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21639 for ac_func in atexit on_exit timegm gmtime_r
21641 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21642 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21643 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21644 cat >>confdefs.h <<_ACEOF
21645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21652 # The cast to long int works around a bug in the HP C Compiler
21653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21655 # This bug is HP SR number 8606223364.
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
21657 $as_echo_n "checking size of char... " >&6; }
21658 if ${ac_cv_sizeof_char+:} false; then :
21659 $as_echo_n "(cached) " >&6
21661 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
21664 if test "$ac_cv_type_char" = yes; then
21665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21667 as_fn_error 77 "cannot compute sizeof (char)
21668 See \`config.log' for more details" "$LINENO" 5; }
21670 ac_cv_sizeof_char=0
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
21676 $as_echo "$ac_cv_sizeof_char" >&6; }
21680 cat >>confdefs.h <<_ACEOF
21681 #define SIZEOF_CHAR $ac_cv_sizeof_char
21685 # The cast to long int works around a bug in the HP C Compiler
21686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21688 # This bug is HP SR number 8606223364.
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
21690 $as_echo_n "checking size of short... " >&6; }
21691 if ${ac_cv_sizeof_short+:} false; then :
21692 $as_echo_n "(cached) " >&6
21694 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
21697 if test "$ac_cv_type_short" = yes; then
21698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21700 as_fn_error 77 "cannot compute sizeof (short)
21701 See \`config.log' for more details" "$LINENO" 5; }
21703 ac_cv_sizeof_short=0
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21709 $as_echo "$ac_cv_sizeof_short" >&6; }
21713 cat >>confdefs.h <<_ACEOF
21714 #define SIZEOF_SHORT $ac_cv_sizeof_short
21718 # The cast to long int works around a bug in the HP C Compiler
21719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21721 # This bug is HP SR number 8606223364.
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21723 $as_echo_n "checking size of long... " >&6; }
21724 if ${ac_cv_sizeof_long+:} false; then :
21725 $as_echo_n "(cached) " >&6
21727 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
21730 if test "$ac_cv_type_long" = yes; then
21731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21733 as_fn_error 77 "cannot compute sizeof (long)
21734 See \`config.log' for more details" "$LINENO" 5; }
21736 ac_cv_sizeof_long=0
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21742 $as_echo "$ac_cv_sizeof_long" >&6; }
21746 cat >>confdefs.h <<_ACEOF
21747 #define SIZEOF_LONG $ac_cv_sizeof_long
21751 # The cast to long int works around a bug in the HP C Compiler
21752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21754 # This bug is HP SR number 8606223364.
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21756 $as_echo_n "checking size of int... " >&6; }
21757 if ${ac_cv_sizeof_int+:} false; then :
21758 $as_echo_n "(cached) " >&6
21760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
21763 if test "$ac_cv_type_int" = yes; then
21764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21766 as_fn_error 77 "cannot compute sizeof (int)
21767 See \`config.log' for more details" "$LINENO" 5; }
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21775 $as_echo "$ac_cv_sizeof_int" >&6; }
21779 cat >>confdefs.h <<_ACEOF
21780 #define SIZEOF_INT $ac_cv_sizeof_int
21784 # The cast to long int works around a bug in the HP C Compiler
21785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21787 # This bug is HP SR number 8606223364.
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
21789 $as_echo_n "checking size of void *... " >&6; }
21790 if ${ac_cv_sizeof_void_p+:} false; then :
21791 $as_echo_n "(cached) " >&6
21793 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
21796 if test "$ac_cv_type_void_p" = yes; then
21797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21799 as_fn_error 77 "cannot compute sizeof (void *)
21800 See \`config.log' for more details" "$LINENO" 5; }
21802 ac_cv_sizeof_void_p=0
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
21808 $as_echo "$ac_cv_sizeof_void_p" >&6; }
21812 cat >>confdefs.h <<_ACEOF
21813 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21817 # The cast to long int works around a bug in the HP C Compiler
21818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21820 # This bug is HP SR number 8606223364.
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
21822 $as_echo_n "checking size of long long... " >&6; }
21823 if ${ac_cv_sizeof_long_long+:} false; then :
21824 $as_echo_n "(cached) " >&6
21826 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
21829 if test "$ac_cv_type_long_long" = yes; then
21830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21832 as_fn_error 77 "cannot compute sizeof (long long)
21833 See \`config.log' for more details" "$LINENO" 5; }
21835 ac_cv_sizeof_long_long=0
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
21841 $as_echo "$ac_cv_sizeof_long_long" >&6; }
21845 cat >>confdefs.h <<_ACEOF
21846 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21850 # The cast to long int works around a bug in the HP C Compiler
21851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21853 # This bug is HP SR number 8606223364.
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
21855 $as_echo_n "checking size of __int64... " >&6; }
21856 if ${ac_cv_sizeof___int64+:} false; then :
21857 $as_echo_n "(cached) " >&6
21859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
21862 if test "$ac_cv_type___int64" = yes; then
21863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21865 as_fn_error 77 "cannot compute sizeof (__int64)
21866 See \`config.log' for more details" "$LINENO" 5; }
21868 ac_cv_sizeof___int64=0
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
21874 $as_echo "$ac_cv_sizeof___int64" >&6; }
21878 cat >>confdefs.h <<_ACEOF
21879 #define SIZEOF___INT64 $ac_cv_sizeof___int64
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
21885 $as_echo_n "checking for sig_atomic_t... " >&6; }
21886 if ${ac_cv_type_sig_atomic_t+:} false; then :
21887 $as_echo_n "(cached) " >&6
21889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h. */
21891 #include <signal.h>
21892 #include <sys/types.h>
21893 sig_atomic_t val = 42;
21897 return val == 42 ? 0 : 1
21902 if ac_fn_c_try_link "$LINENO"; then :
21903 ac_cv_type_sig_atomic_t=yes
21905 ac_cv_type_sig_atomic_t=no
21907 rm -f core conftest.err conftest.$ac_objext \
21908 conftest$ac_exeext conftest.$ac_ext
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
21911 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
21912 if test x$ac_cv_type_sig_atomic_t = xyes; then
21914 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
21918 if test x$ac_cv_sizeof_long = x8 || test x$ac_cv_sizeof_long_long = x8 || test x$ac_cv_sizeof___int64 = x8 ; then
21922 *** GLib requires a 64 bit type. You might want to consider
21923 *** using the GNU C compiler.
21927 if test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8; then
21928 # long long is a 64 bit integer.
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
21930 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
21931 if ${glib_cv_long_long_format+:} false; then :
21932 $as_echo_n "(cached) " >&6
21935 for format in ll q I64; do
21936 if test "$cross_compiling" = yes; then :
21939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21940 /* end confdefs.h. */
21944 long long b, a = -0x3AFAFAFAFAFAFAFALL;
21946 sprintf (buffer, "%${format}u", a);
21947 sscanf (buffer, "%${format}u", &b);
21952 if ac_fn_c_try_run "$LINENO"; then :
21953 glib_cv_long_long_format=${format}
21956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21957 conftest.$ac_objext conftest.beam conftest.$ac_ext
21963 if test -n "$glib_cv_long_long_format"; then
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
21965 $as_echo "%${glib_cv_long_long_format}u" >&6; }
21967 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
21969 if test x"$glib_cv_long_long_format" = xI64; then
21971 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
21976 $as_echo "none" >&6; }
21978 elif test x$ac_cv_sizeof___int64 = x8; then
21979 # __int64 is a 64 bit integer.
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
21981 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
21982 # We know this is MSVCRT.DLL, and what the formats are
21983 glib_cv_long_long_format=I64
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
21985 $as_echo "%${glib_cv_long_long_format}u" >&6; }
21987 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
21990 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21995 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21996 if ${ac_cv_c_const+:} false; then :
21997 $as_echo_n "(cached) " >&6
21999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22000 /* end confdefs.h. */
22005 /* FIXME: Include the comments suggested by Paul. */
22006 #ifndef __cplusplus
22007 /* Ultrix mips cc rejects this. */
22008 typedef int charset[2];
22010 /* SunOS 4.1.1 cc rejects this. */
22011 char const *const *pcpcc;
22013 /* NEC SVR4.0.2 mips cc rejects this. */
22014 struct point {int x, y;};
22015 static struct point const zero = {0,0};
22016 /* AIX XL C 1.02.0.0 rejects this.
22017 It does not let you subtract one const X* pointer from another in
22018 an arm of an if-expression whose if-part is not a constant
22020 const char *g = "string";
22021 pcpcc = &g + (g ? g-g : 0);
22022 /* HPUX 7.0 cc rejects these. */
22024 ppc = (char**) pcpcc;
22025 pcpcc = (char const *const *) ppc;
22026 { /* SCO 3.2v4 cc rejects this. */
22028 char const *s = 0 ? (char *) 0 : (char const *) 0;
22033 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22034 int x[] = {25, 17};
22035 const int *foo = &x[0];
22038 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22039 typedef const int *iptr;
22043 { /* AIX XL C 1.02.0.0 rejects this saying
22044 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22045 struct s { int j; const int *ap[3]; };
22046 struct s *b; b->j = 5;
22048 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22049 const int foo = 10;
22050 if (!foo) return 0;
22052 return !cs[0] && !zero.x;
22059 if ac_fn_c_try_compile "$LINENO"; then :
22064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22067 $as_echo "$ac_cv_c_const" >&6; }
22068 if test $ac_cv_c_const = no; then
22070 $as_echo "#define const /**/" >>confdefs.h
22075 SANE_MALLOC_PROTOS=no
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc() and friends prototypes are gmem.h compatible" >&5
22077 $as_echo_n "checking if malloc() and friends prototypes are gmem.h compatible... " >&6; }
22078 glib_save_CFLAGS=$CFLAGS
22079 if test "x$GCC" = "xyes"; then
22080 CFLAGS="$CFLAGS -Werror"
22081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22083 #include <stdlib.h>
22088 void* (*my_calloc_p) (size_t, size_t) = calloc;
22089 void* (*my_malloc_p) (size_t) = malloc;
22090 void (*my_free_p) (void*) = free;
22091 void* (*my_realloc_p) (void*, size_t) = realloc;
22101 if ac_fn_c_try_compile "$LINENO"; then :
22103 $as_echo "#define SANE_MALLOC_PROTOS 1" >>confdefs.h
22105 SANE_MALLOC_PROTOS=yes
22107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_MALLOC_PROTOS" >&5
22110 $as_echo "$SANE_MALLOC_PROTOS" >&6; }
22111 CFLAGS=$glib_save_CFLAGS
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for growing stack pointer" >&5
22114 $as_echo_n "checking for growing stack pointer... " >&6; }
22115 if ${glib_cv_stack_grows+:} false; then :
22116 $as_echo_n "(cached) " >&6
22119 if test "$cross_compiling" = yes; then :
22120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22122 as_fn_error $? "cannot run test program while cross compiling
22123 See \`config.log' for more details" "$LINENO" 5; }
22125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22126 /* end confdefs.h. */
22128 volatile int *a = 0, *b = 0;
22130 int main () { volatile int y = 7; a = &y; foo (); return b > a; }
22131 void foo (void) { volatile int x = 5; b = &x; }
22134 if ac_fn_c_try_run "$LINENO"; then :
22135 glib_cv_stack_grows=no
22138 glib_cv_stack_grows=yes
22141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22142 conftest.$ac_objext conftest.beam conftest.$ac_ext
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_stack_grows" >&5
22148 $as_echo "$glib_cv_stack_grows" >&6; }
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline" >&5
22151 $as_echo_n "checking for __inline... " >&6; }
22152 if ${glib_cv_has__inline+:} false; then :
22153 $as_echo_n "(cached) " >&6
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h. */
22159 __inline int foo () { return 0; }
22160 int main () { return foo (); }
22163 if ac_fn_c_try_compile "$LINENO"; then :
22164 glib_cv_has__inline=yes
22167 glib_cv_has__inline=no
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline" >&5
22174 $as_echo "$glib_cv_has__inline" >&6; }
22175 case x$glib_cv_has__inline in
22177 $as_echo "#define G_HAVE___INLINE 1" >>confdefs.h
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline__" >&5
22181 $as_echo_n "checking for __inline__... " >&6; }
22182 if ${glib_cv_has__inline__+:} false; then :
22183 $as_echo_n "(cached) " >&6
22186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187 /* end confdefs.h. */
22189 __inline__ int foo () { return 0; }
22190 int main () { return foo (); }
22193 if ac_fn_c_try_compile "$LINENO"; then :
22194 glib_cv_has__inline__=yes
22197 glib_cv_has__inline__=no
22200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline__" >&5
22204 $as_echo "$glib_cv_has__inline__" >&6; }
22205 case x$glib_cv_has__inline__ in
22207 $as_echo "#define G_HAVE___INLINE__ 1" >>confdefs.h
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22211 $as_echo_n "checking for inline... " >&6; }
22212 if ${glib_cv_hasinline+:} false; then :
22213 $as_echo_n "(cached) " >&6
22216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22217 /* end confdefs.h. */
22220 inline int foo () { return 0; }
22221 int main () { return foo (); }
22224 if ac_fn_c_try_compile "$LINENO"; then :
22225 glib_cv_hasinline=yes
22228 glib_cv_hasinline=no
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_hasinline" >&5
22235 $as_echo "$glib_cv_hasinline" >&6; }
22236 case x$glib_cv_hasinline in
22238 $as_echo "#define G_HAVE_INLINE 1" >>confdefs.h
22242 # if we can use inline functions in headers
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inline functions in headers work" >&5
22244 $as_echo_n "checking if inline functions in headers work... " >&6; }
22245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22246 /* end confdefs.h. */
22248 #if defined (G_HAVE_INLINE) && defined (__GNUC__) && defined (__STRICT_ANSI__)
22250 # define inline __inline__
22251 #elif !defined (G_HAVE_INLINE)
22253 # if defined (G_HAVE___INLINE__)
22254 # define inline __inline__
22255 # elif defined (G_HAVE___INLINE)
22256 # define inline __inline
22260 int glib_test_func2 (int);
22263 glib_test_func1 (void) {
22264 return glib_test_func2 (1);
22272 if ac_fn_c_try_link "$LINENO"; then :
22277 rm -f core conftest.err conftest.$ac_objext \
22278 conftest$ac_exeext conftest.$ac_ext
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_can_inline" >&5
22280 $as_echo "$g_can_inline" >&6; }
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working do while(0) macros" >&5
22283 $as_echo_n "checking for working do while(0) macros... " >&6; }
22284 if ${g_cv_support_dowhile_macros+:} false; then :
22285 $as_echo_n "(cached) " >&6
22288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289 /* end confdefs.h. */
22295 #define STMT_START do
22296 #define STMT_END while(0)
22297 #define STMT_TEST STMT_START { i = 0; } STMT_END
22298 int main(void) { int i = 1; STMT_TEST; return i; }
22303 if ac_fn_c_try_compile "$LINENO"; then :
22304 g_cv_support_dowhile_macros=yes
22306 g_cv_support_dowhile_macros=no
22308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_cv_support_dowhile_macros" >&5
22312 $as_echo "$g_cv_support_dowhile_macros" >&6; }
22313 if test x$g_cv_support_dowhile_macros = xyes; then
22315 $as_echo "#define HAVE_DOWHILE_MACROS 1" >>confdefs.h
22319 # check for flavours of varargs macros
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5
22321 $as_echo_n "checking for ISO C99 varargs macros in C... " >&6; }
22322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22323 /* end confdefs.h. */
22329 int a(int p1, int p2, int p3);
22330 #define call_a(...) a(1,__VA_ARGS__)
22337 if ac_fn_c_try_compile "$LINENO"; then :
22338 g_have_iso_c_varargs=yes
22340 g_have_iso_c_varargs=no
22342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_c_varargs" >&5
22344 $as_echo "$g_have_iso_c_varargs" >&6; }
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C++" >&5
22347 $as_echo_n "checking for ISO C99 varargs macros in C++... " >&6; }
22348 if test "$CXX" = ""; then
22349 g_have_iso_cxx_varargs=no
22352 ac_cpp='$CXXCPP $CPPFLAGS'
22353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22358 /* end confdefs.h. */
22364 int a(int p1, int p2, int p3);
22365 #define call_a(...) a(1,__VA_ARGS__)
22372 if ac_fn_cxx_try_compile "$LINENO"; then :
22373 g_have_iso_cxx_varargs=yes
22375 g_have_iso_cxx_varargs=no
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 ac_cpp='$CPP $CPPFLAGS'
22380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_cxx_varargs" >&5
22386 $as_echo "$g_have_iso_cxx_varargs" >&6; }
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC varargs macros" >&5
22389 $as_echo_n "checking for GNUC varargs macros... " >&6; }
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391 /* end confdefs.h. */
22397 int a(int p1, int p2, int p3);
22398 #define call_a(params...) a(1,params)
22405 if ac_fn_c_try_compile "$LINENO"; then :
22406 g_have_gnuc_varargs=yes
22408 g_have_gnuc_varargs=no
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_varargs" >&5
22412 $as_echo "$g_have_gnuc_varargs" >&6; }
22414 # check for GNUC visibility support
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC visibility attribute" >&5
22416 $as_echo_n "checking for GNUC visibility attribute... " >&6; }
22417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22418 /* end confdefs.h. */
22421 __attribute__ ((visibility ("hidden")))
22426 __attribute__ ((visibility ("internal")))
22431 __attribute__ ((visibility ("protected")))
22436 __attribute__ ((visibility ("default")))
22440 int main (int argc, char **argv)
22450 rm -f conftest.$ac_objext
22451 glib_ac_compile_save="$ac_compile"
22452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
22453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22454 (eval $ac_compile) 2>conftest.err
22456 if test -s conftest.err; then
22457 grep -v '^ *+' conftest.err >conftest.er1
22458 cat conftest.er1 >&5
22459 mv -f conftest.er1 conftest.err
22461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22462 test $ac_status = 0; } &&
22463 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
22464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22465 (eval $ac_try) 2>&5
22467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22468 test $ac_status = 0; }; }; then :
22469 g_have_gnuc_visibility=yes
22471 echo "$as_me: failed program was:" >&5
22472 cat conftest.$ac_ext >&5
22473 g_have_gnuc_visibility=no
22475 ac_compile="$glib_ac_compile_save"
22476 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_visibility" >&5
22478 $as_echo "$g_have_gnuc_visibility" >&6; }
22479 if test x$g_have_gnuc_visibility = xyes; then
22480 HAVE_GNUC_VISIBILITY_TRUE=
22481 HAVE_GNUC_VISIBILITY_FALSE='#'
22483 HAVE_GNUC_VISIBILITY_TRUE='#'
22484 HAVE_GNUC_VISIBILITY_FALSE=
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Sun Studio C compiler" >&5
22489 $as_echo_n "checking whether using Sun Studio C compiler... " >&6; }
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22492 #if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550)
22494 # include "error: this is not Sun Studio."
22505 if ac_fn_c_try_compile "$LINENO"; then :
22506 g_have_sunstudio_visibility=yes
22508 g_have_sunstudio_visibility=no
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_sunstudio_visibility" >&5
22512 $as_echo "$g_have_sunstudio_visibility" >&6; }
22513 if test x$g_have_sunstudio_visibility = xyes; then
22514 HAVE_SUNSTUDIO_VISIBILITY_TRUE=
22515 HAVE_SUNSTUDIO_VISIBILITY_FALSE='#'
22517 HAVE_SUNSTUDIO_VISIBILITY_TRUE='#'
22518 HAVE_SUNSTUDIO_VISIBILITY_FALSE=
22522 # check for bytesex stuff
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22524 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22525 if ${ac_cv_c_bigendian+:} false; then :
22526 $as_echo_n "(cached) " >&6
22528 ac_cv_c_bigendian=unknown
22529 # See if we're dealing with a universal compiler.
22530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22531 /* end confdefs.h. */
22532 #ifndef __APPLE_CC__
22533 not a universal capable compiler
22538 if ac_fn_c_try_compile "$LINENO"; then :
22540 # Check for potential -arch flags. It is not universal unless
22541 # there are at least two -arch flags with different values.
22544 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22545 if test -n "$ac_prev"; then
22547 i?86 | x86_64 | ppc | ppc64)
22548 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22551 ac_cv_c_bigendian=universal
22557 elif test "x$ac_word" = "x-arch"; then
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 if test $ac_cv_c_bigendian = unknown; then
22564 # See if sys/param.h defines the BYTE_ORDER macro.
22565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22566 /* end confdefs.h. */
22567 #include <sys/types.h>
22568 #include <sys/param.h>
22573 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22574 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22576 bogus endian macros
22583 if ac_fn_c_try_compile "$LINENO"; then :
22584 # It does; now see whether it defined to BIG_ENDIAN or not.
22585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22586 /* end confdefs.h. */
22587 #include <sys/types.h>
22588 #include <sys/param.h>
22593 #if BYTE_ORDER != BIG_ENDIAN
22601 if ac_fn_c_try_compile "$LINENO"; then :
22602 ac_cv_c_bigendian=yes
22604 ac_cv_c_bigendian=no
22606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610 if test $ac_cv_c_bigendian = unknown; then
22611 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22613 /* end confdefs.h. */
22614 #include <limits.h>
22619 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22620 bogus endian macros
22627 if ac_fn_c_try_compile "$LINENO"; then :
22628 # It does; now see whether it defined to _BIG_ENDIAN or not.
22629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22630 /* end confdefs.h. */
22631 #include <limits.h>
22636 #ifndef _BIG_ENDIAN
22644 if ac_fn_c_try_compile "$LINENO"; then :
22645 ac_cv_c_bigendian=yes
22647 ac_cv_c_bigendian=no
22649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22653 if test $ac_cv_c_bigendian = unknown; then
22654 # Compile a test program.
22655 if test "$cross_compiling" = yes; then :
22656 # Try to guess by grepping values from an object file.
22657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22658 /* end confdefs.h. */
22659 short int ascii_mm[] =
22660 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22661 short int ascii_ii[] =
22662 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22663 int use_ascii (int i) {
22664 return ascii_mm[i] + ascii_ii[i];
22666 short int ebcdic_ii[] =
22667 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22668 short int ebcdic_mm[] =
22669 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22670 int use_ebcdic (int i) {
22671 return ebcdic_mm[i] + ebcdic_ii[i];
22678 return use_ascii (foo) == use_ebcdic (foo);
22683 if ac_fn_c_try_compile "$LINENO"; then :
22684 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22685 ac_cv_c_bigendian=yes
22687 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22688 if test "$ac_cv_c_bigendian" = unknown; then
22689 ac_cv_c_bigendian=no
22691 # finding both strings is unlikely to happen, but who knows?
22692 ac_cv_c_bigendian=unknown
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22699 /* end confdefs.h. */
22700 $ac_includes_default
22705 /* Are we little or big endian? From Harbison&Steele. */
22709 char c[sizeof (long int)];
22712 return u.c[sizeof (long int) - 1] == 1;
22718 if ac_fn_c_try_run "$LINENO"; then :
22719 ac_cv_c_bigendian=no
22721 ac_cv_c_bigendian=yes
22723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22724 conftest.$ac_objext conftest.beam conftest.$ac_ext
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22730 $as_echo "$ac_cv_c_bigendian" >&6; }
22731 case $ac_cv_c_bigendian in #(
22733 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22739 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22743 as_fn_error $? "unknown endianness
22744 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22747 if test x$ac_cv_c_bigendian = xuniversal ; then
22748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h. */
22750 #include <endian.h>
22754 #if __BYTE_ORDER == __BIG_ENDIAN
22756 #error Not a big endian.
22762 if ac_fn_c_try_compile "$LINENO"; then :
22763 ac_cv_c_bigendian=yes
22766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h. */
22768 #include <endian.h>
22772 #if __BYTE_ORDER == __LITTLE_ENDIAN
22774 #error Not a little endian.
22780 if ac_fn_c_try_compile "$LINENO"; then :
22781 ac_cv_c_bigendian=no
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine endianness." >&5
22785 $as_echo "$as_me: WARNING: Could not determine endianness." >&2;}
22787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793 # check for header files
22794 for ac_header in dirent.h float.h limits.h pwd.h grp.h sys/param.h sys/poll.h sys/resource.h
22796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22797 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22799 cat >>confdefs.h <<_ACEOF
22800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22807 for ac_header in sys/time.h sys/times.h sys/wait.h unistd.h values.h
22809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22810 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22812 cat >>confdefs.h <<_ACEOF
22813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22820 for ac_header in sys/select.h sys/types.h stdint.h inttypes.h sched.h malloc.h
22822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22823 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22825 cat >>confdefs.h <<_ACEOF
22826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22833 for ac_header in sys/vfs.h sys/vmount.h sys/statfs.h sys/statvfs.h
22835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22836 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22838 cat >>confdefs.h <<_ACEOF
22839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22846 for ac_header in mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h fstab.h
22848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22849 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22850 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22851 cat >>confdefs.h <<_ACEOF
22852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22859 for ac_header in sys/uio.h sys/mkdev.h
22861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22862 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22863 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22864 cat >>confdefs.h <<_ACEOF
22865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22872 for ac_header in linux/magic.h
22874 ac_fn_c_check_header_mongrel "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
22875 if test "x$ac_cv_header_linux_magic_h" = xyes; then :
22876 cat >>confdefs.h <<_ACEOF
22877 #define HAVE_LINUX_MAGIC_H 1
22884 for ac_header in sys/prctl.h
22886 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
22887 if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
22888 cat >>confdefs.h <<_ACEOF
22889 #define HAVE_SYS_PRCTL_H 1
22897 for ac_header in sys/mount.h sys/sysctl.h
22899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22900 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_SYS_PARAM_H
22901 #include <sys/param.h>
22905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22906 cat >>confdefs.h <<_ACEOF
22907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22915 for ac_header in xlocale.h
22917 ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
22918 if test "x$ac_cv_header_xlocale_h" = xyes; then :
22919 cat >>confdefs.h <<_ACEOF
22920 #define HAVE_XLOCALE_H 1
22928 # check for structure fields
22929 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
22930 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
22932 cat >>confdefs.h <<_ACEOF
22933 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
22938 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
22939 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
22941 cat >>confdefs.h <<_ACEOF
22942 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
22947 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
22948 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
22950 cat >>confdefs.h <<_ACEOF
22951 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22956 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default"
22957 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
22959 cat >>confdefs.h <<_ACEOF
22960 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22965 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default"
22966 if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
22968 cat >>confdefs.h <<_ACEOF
22969 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
22974 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "$ac_includes_default"
22975 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
22977 cat >>confdefs.h <<_ACEOF
22978 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
22984 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#include <sys/types.h>
22985 #include <sys/stat.h>
22986 #include <unistd.h>
22987 #ifdef HAVE_SYS_STATFS_H
22988 #include <sys/statfs.h>
22990 #ifdef HAVE_SYS_PARAM_H
22991 #include <sys/param.h>
22993 #ifdef HAVE_SYS_MOUNT_H
22994 #include <sys/mount.h>
22997 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
22999 cat >>confdefs.h <<_ACEOF
23000 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23005 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#include <sys/types.h>
23006 #include <sys/stat.h>
23007 #include <unistd.h>
23008 #ifdef HAVE_SYS_STATFS_H
23009 #include <sys/statfs.h>
23011 #ifdef HAVE_SYS_PARAM_H
23012 #include <sys/param.h>
23014 #ifdef HAVE_SYS_MOUNT_H
23015 #include <sys/mount.h>
23018 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
23020 cat >>confdefs.h <<_ACEOF
23021 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23026 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/types.h>
23027 #include <sys/stat.h>
23028 #include <unistd.h>
23029 #ifdef HAVE_SYS_STATFS_H
23030 #include <sys/statfs.h>
23032 #ifdef HAVE_SYS_PARAM_H
23033 #include <sys/param.h>
23035 #ifdef HAVE_SYS_MOUNT_H
23036 #include <sys/mount.h>
23039 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
23041 cat >>confdefs.h <<_ACEOF
23042 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
23047 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
23048 #include <sys/stat.h>
23049 #include <unistd.h>
23050 #ifdef HAVE_SYS_STATFS_H
23051 #include <sys/statfs.h>
23053 #ifdef HAVE_SYS_PARAM_H
23054 #include <sys/param.h>
23056 #ifdef HAVE_SYS_MOUNT_H
23057 #include <sys/mount.h>
23060 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
23062 cat >>confdefs.h <<_ACEOF
23063 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
23069 # struct statvfs.f_basetype is available on Solaris but not for Linux.
23070 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
23072 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
23074 cat >>confdefs.h <<_ACEOF
23075 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
23081 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
23083 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
23085 cat >>confdefs.h <<_ACEOF
23086 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
23092 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
23094 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
23096 cat >>confdefs.h <<_ACEOF
23097 #define HAVE_STRUCT_TM_TM_GMTOFF 1
23102 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
23104 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
23106 cat >>confdefs.h <<_ACEOF
23107 #define HAVE_STRUCT_TM___TM_GMTOFF 1
23114 ac_header_dirent=no
23115 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23116 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23118 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23119 if eval \${$as_ac_Header+:} false; then :
23120 $as_echo_n "(cached) " >&6
23122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23123 /* end confdefs.h. */
23124 #include <sys/types.h>
23136 if ac_fn_c_try_compile "$LINENO"; then :
23137 eval "$as_ac_Header=yes"
23139 eval "$as_ac_Header=no"
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 eval ac_res=\$$as_ac_Header
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23145 $as_echo "$ac_res" >&6; }
23146 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23147 cat >>confdefs.h <<_ACEOF
23148 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23151 ac_header_dirent=$ac_hdr; break
23155 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23156 if test $ac_header_dirent = dirent.h; then
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23158 $as_echo_n "checking for library containing opendir... " >&6; }
23159 if ${ac_cv_search_opendir+:} false; then :
23160 $as_echo_n "(cached) " >&6
23162 ac_func_search_save_LIBS=$LIBS
23163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23164 /* end confdefs.h. */
23166 /* Override any GCC internal prototype to avoid an error.
23167 Use char because int might match the return type of a GCC
23168 builtin and then its argument prototype would still apply. */
23181 for ac_lib in '' dir; do
23182 if test -z "$ac_lib"; then
23183 ac_res="none required"
23186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23188 if ac_fn_c_try_link "$LINENO"; then :
23189 ac_cv_search_opendir=$ac_res
23191 rm -f core conftest.err conftest.$ac_objext \
23193 if ${ac_cv_search_opendir+:} false; then :
23197 if ${ac_cv_search_opendir+:} false; then :
23200 ac_cv_search_opendir=no
23202 rm conftest.$ac_ext
23203 LIBS=$ac_func_search_save_LIBS
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23206 $as_echo "$ac_cv_search_opendir" >&6; }
23207 ac_res=$ac_cv_search_opendir
23208 if test "$ac_res" != no; then :
23209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23215 $as_echo_n "checking for library containing opendir... " >&6; }
23216 if ${ac_cv_search_opendir+:} false; then :
23217 $as_echo_n "(cached) " >&6
23219 ac_func_search_save_LIBS=$LIBS
23220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221 /* end confdefs.h. */
23223 /* Override any GCC internal prototype to avoid an error.
23224 Use char because int might match the return type of a GCC
23225 builtin and then its argument prototype would still apply. */
23238 for ac_lib in '' x; do
23239 if test -z "$ac_lib"; then
23240 ac_res="none required"
23243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23245 if ac_fn_c_try_link "$LINENO"; then :
23246 ac_cv_search_opendir=$ac_res
23248 rm -f core conftest.err conftest.$ac_objext \
23250 if ${ac_cv_search_opendir+:} false; then :
23254 if ${ac_cv_search_opendir+:} false; then :
23257 ac_cv_search_opendir=no
23259 rm conftest.$ac_ext
23260 LIBS=$ac_func_search_save_LIBS
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23263 $as_echo "$ac_cv_search_opendir" >&6; }
23264 ac_res=$ac_cv_search_opendir
23265 if test "$ac_res" != no; then :
23266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23274 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
23275 #include <sys/types.h>
23276 #ifdef HAVE_DIRENT_H
23277 # include <dirent.h>
23279 # define dirent direct
23280 # ifdef HAVE_SYS_NDIR_H
23281 # include <sys/ndir.h>
23283 # ifdef HAVE_SYS_DIR_H
23284 # include <sys/dir.h>
23286 # ifdef HAVE_NDIR_H
23292 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
23294 cat >>confdefs.h <<_ACEOF
23295 #define HAVE_STRUCT_DIRENT_D_TYPE 1
23303 # Checks for libcharset
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23306 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23307 if ${am_cv_langinfo_codeset+:} false; then :
23308 $as_echo_n "(cached) " >&6
23310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23311 /* end confdefs.h. */
23312 #include <langinfo.h>
23316 char* cs = nl_langinfo(CODESET);
23321 if ac_fn_c_try_link "$LINENO"; then :
23322 am_cv_langinfo_codeset=yes
23324 am_cv_langinfo_codeset=no
23326 rm -f core conftest.err conftest.$ac_objext \
23327 conftest$ac_exeext conftest.$ac_ext
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23331 $as_echo "$am_cv_langinfo_codeset" >&6; }
23332 if test $am_cv_langinfo_codeset = yes; then
23334 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23338 for ac_header in stddef.h stdlib.h string.h
23340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23341 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23343 cat >>confdefs.h <<_ACEOF
23344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23351 for ac_func in setlocale
23353 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
23354 if test "x$ac_cv_func_setlocale" = xyes; then :
23355 cat >>confdefs.h <<_ACEOF
23356 #define HAVE_SETLOCALE 1
23363 # check additional type sizes
23364 # The cast to long int works around a bug in the HP C Compiler
23365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23367 # This bug is HP SR number 8606223364.
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23369 $as_echo_n "checking size of size_t... " >&6; }
23370 if ${ac_cv_sizeof_size_t+:} false; then :
23371 $as_echo_n "(cached) " >&6
23373 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23376 if test "$ac_cv_type_size_t" = yes; then
23377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23379 as_fn_error 77 "cannot compute sizeof (size_t)
23380 See \`config.log' for more details" "$LINENO" 5; }
23382 ac_cv_sizeof_size_t=0
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23388 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23392 cat >>confdefs.h <<_ACEOF
23393 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the appropriate definition for size_t" >&5
23399 $as_echo_n "checking for the appropriate definition for size_t... " >&6; }
23401 case $ac_cv_sizeof_size_t in
23402 $ac_cv_sizeof_short)
23403 glib_size_type=short
23408 $ac_cv_sizeof_long)
23409 glib_size_type=long
23411 $ac_cv_sizeof_long_long)
23412 glib_size_type='long long'
23414 $ac_cv_sizeof__int64)
23415 glib_size_type='__int64'
23417 *) as_fn_error $? "No type matching size_t in size" "$LINENO" 5
23421 if test $ac_cv_sizeof_size_t = $ac_cv_sizeof_int &&
23422 test $ac_cv_sizeof_size_t = $ac_cv_sizeof_long ; then
23423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23424 /* end confdefs.h. */
23426 #if defined(_AIX) && !defined(__GNUC__)
23427 #pragma options langlvl=stdc89
23429 #include <stddef.h>
23433 unsigned int *size_int = &s;
23434 return (int)*size_int;
23438 rm -f conftest.$ac_objext
23439 glib_ac_compile_save="$ac_compile"
23440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
23441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23442 (eval $ac_compile) 2>conftest.err
23444 if test -s conftest.err; then
23445 grep -v '^ *+' conftest.err >conftest.er1
23446 cat conftest.er1 >&5
23447 mv -f conftest.er1 conftest.err
23449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23450 test $ac_status = 0; } &&
23451 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
23452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23453 (eval $ac_try) 2>&5
23455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23456 test $ac_status = 0; }; }; then :
23459 echo "$as_me: failed program was:" >&5
23460 cat conftest.$ac_ext >&5
23461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23462 /* end confdefs.h. */
23464 #if defined(_AIX) && !defined(__GNUC__)
23465 #pragma options langlvl=stdc89
23467 #include <stddef.h>
23471 unsigned long *size_long = &s;
23472 return (int)*size_long;
23476 rm -f conftest.$ac_objext
23477 glib_ac_compile_save="$ac_compile"
23478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
23479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23480 (eval $ac_compile) 2>conftest.err
23482 if test -s conftest.err; then
23483 grep -v '^ *+' conftest.err >conftest.er1
23484 cat conftest.er1 >&5
23485 mv -f conftest.er1 conftest.err
23487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23488 test $ac_status = 0; } &&
23489 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
23490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23491 (eval $ac_try) 2>&5
23493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23494 test $ac_status = 0; }; }; then :
23495 glib_size_type=long
23497 echo "$as_me: failed program was:" >&5
23498 cat conftest.$ac_ext >&5
23500 ac_compile="$glib_ac_compile_save"
23501 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
23503 ac_compile="$glib_ac_compile_save"
23504 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsigned $glib_size_type" >&5
23508 $as_echo "unsigned $glib_size_type" >&6; }
23510 # Check for some functions
23511 for ac_func in lstat strerror strsignal memmove vsnprintf stpcpy strcasecmp strncasecmp poll getcwd vasprintf setenv unsetenv getc_unlocked readlink symlink fdwalk memmem
23513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23515 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23516 cat >>confdefs.h <<_ACEOF
23517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23523 for ac_func in chown lchmod lchown fchmod fchown link utimes getgrgid getpwuid
23525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23526 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23527 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23528 cat >>confdefs.h <<_ACEOF
23529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23535 for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat
23537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23539 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23540 cat >>confdefs.h <<_ACEOF
23541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23547 # Check for high-resolution sleep functions
23548 for ac_func in splice
23550 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
23551 if test "x$ac_cv_func_splice" = xyes; then :
23552 cat >>confdefs.h <<_ACEOF
23553 #define HAVE_SPLICE 1
23559 for ac_func in prlimit
23561 ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
23562 if test "x$ac_cv_func_prlimit" = xyes; then :
23563 cat >>confdefs.h <<_ACEOF
23564 #define HAVE_PRLIMIT 1
23571 # To avoid finding a compatibility unusable statfs, which typically
23572 # successfully compiles, but warns to use the newer statvfs interface:
23573 if test $ac_cv_header_sys_statvfs_h = yes; then :
23574 for ac_func in statvfs
23576 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
23577 if test "x$ac_cv_func_statvfs" = xyes; then :
23578 cat >>confdefs.h <<_ACEOF
23579 #define HAVE_STATVFS 1
23586 if test $ac_cv_header_sys_statfs_h = yes -o $ac_cv_header_sys_mount_h = yes; then :
23587 for ac_func in statfs
23589 ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
23590 if test "x$ac_cv_func_statfs" = xyes; then :
23591 cat >>confdefs.h <<_ACEOF
23592 #define HAVE_STATFS 1
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use statfs or statvfs" >&5
23601 $as_echo_n "checking whether to use statfs or statvfs... " >&6; }
23602 # Some systems have both statfs and statvfs, pick the most "native" for these
23603 if test x$ac_cv_func_statfs = xyes && test x$ac_cv_func_statvfs = xyes; then :
23605 # on solaris and irix, statfs doesn't even have the f_bavail field
23606 if test x$ac_cv_member_struct_statfs_f_bavail = xno; then :
23607 ac_cv_func_statfs=no
23609 # else, at least on linux, statfs is the actual syscall
23610 ac_cv_func_statvfs=no
23615 if test x$ac_cv_func_statfs = xyes; then :
23618 $as_echo "#define USE_STATFS 1" >>confdefs.h
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: statfs" >&5
23621 $as_echo "statfs" >&6; }
23623 elif test x$ac_cv_func_statvfs = xyes; then :
23626 $as_echo "#define USE_STATVFS 1" >>confdefs.h
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: statvfs" >&5
23629 $as_echo "statvfs" >&6; }
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither" >&5
23633 $as_echo "neither" >&6; }
23636 for ac_header in crt_externs.h
23638 ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
23639 if test "x$ac_cv_header_crt_externs_h" = xyes; then :
23640 cat >>confdefs.h <<_ACEOF
23641 #define HAVE_CRT_EXTERNS_H 1
23648 for ac_func in _NSGetEnviron
23650 ac_fn_c_check_func "$LINENO" "_NSGetEnviron" "ac_cv_func__NSGetEnviron"
23651 if test "x$ac_cv_func__NSGetEnviron" = xyes; then :
23652 cat >>confdefs.h <<_ACEOF
23653 #define HAVE__NSGETENVIRON 1
23660 for ac_func in newlocale uselocale strtod_l strtoll_l strtoull_l
23662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23663 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23664 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23665 cat >>confdefs.h <<_ACEOF
23666 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
23674 $as_echo_n "checking for C99 vsnprintf... " >&6; }
23675 if ${ac_cv_func_vsnprintf_c99+:} false; then :
23676 $as_echo_n "(cached) " >&6
23678 if test "$cross_compiling" = yes; then :
23679 ac_cv_func_vsnprintf_c99=no
23681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23682 /* end confdefs.h. */
23684 #include <stdarg.h>
23687 doit(char * s, ...)
23694 r = vsnprintf(buffer, 5, s, args);
23700 /* AIX 5.1 and Solaris seems to have a half-baked vsnprintf()
23701 implementation. The above will return 7 but if you replace
23702 the size of the buffer with 0, it borks! */
23704 r = vsnprintf(buffer, 0, s, args);
23720 if ac_fn_c_try_run "$LINENO"; then :
23721 ac_cv_func_vsnprintf_c99=yes
23723 ac_cv_func_vsnprintf_c99=no
23725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23726 conftest.$ac_objext conftest.beam conftest.$ac_ext
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_c99" >&5
23731 $as_echo "$ac_cv_func_vsnprintf_c99" >&6; }
23732 if test $ac_cv_func_vsnprintf_c99 = yes; then
23734 $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports positional parameters" >&5
23739 $as_echo_n "checking whether printf supports positional parameters... " >&6; }
23740 if ${ac_cv_func_printf_unix98+:} false; then :
23741 $as_echo_n "(cached) " >&6
23743 if test "$cross_compiling" = yes; then :
23744 ac_cv_func_printf_unix98=no
23746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23747 /* end confdefs.h. */
23755 sprintf (buffer, "%2\$d %3\$d %1\$d", 1, 2, 3);
23756 if (strcmp ("2 3 1", buffer) == 0)
23761 if ac_fn_c_try_run "$LINENO"; then :
23762 ac_cv_func_printf_unix98=yes
23764 ac_cv_func_printf_unix98=no
23766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23767 conftest.$ac_objext conftest.beam conftest.$ac_ext
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_printf_unix98" >&5
23772 $as_echo "$ac_cv_func_printf_unix98" >&6; }
23773 if test $ac_cv_func_printf_unix98 = yes; then
23775 $as_echo "#define HAVE_UNIX98_PRINTF 1" >>confdefs.h
23780 # Internet address families
23781 if test $glib_native_win32 = yes; then
23782 glib_inet_includes="
23783 #include <winsock2.h>
23786 glib_inet_includes="
23787 #include <sys/types.h>
23788 #include <sys/socket.h>
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET" >&5
23794 $as_echo_n "checking value of AF_INET... " >&6; }
23795 if ${glib_cv_value_AF_INET+:} false; then :
23796 $as_echo_n "(cached) " >&6
23798 if ac_fn_c_compute_int "$LINENO" "AF_INET" "glib_cv_value_AF_INET" "$glib_inet_includes"; then :
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET" >&5
23807 $as_echo "$glib_cv_value_AF_INET" >&6; }
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET6" >&5
23810 $as_echo_n "checking value of AF_INET6... " >&6; }
23811 if ${glib_cv_value_AF_INET6+:} false; then :
23812 $as_echo_n "(cached) " >&6
23814 if ac_fn_c_compute_int "$LINENO" "AF_INET6" "glib_cv_value_AF_INET6" "$glib_inet_includes"; then :
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET6" >&5
23823 $as_echo "$glib_cv_value_AF_INET6" >&6; }
23825 # winsock defines this even though it doesn't support it
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_UNIX" >&5
23827 $as_echo_n "checking value of AF_UNIX... " >&6; }
23828 if ${glib_cv_value_AF_UNIX+:} false; then :
23829 $as_echo_n "(cached) " >&6
23831 if ac_fn_c_compute_int "$LINENO" "AF_UNIX" "glib_cv_value_AF_UNIX" "$glib_inet_includes"; then :
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_UNIX" >&5
23840 $as_echo "$glib_cv_value_AF_UNIX" >&6; }
23842 if $glib_failed ; then
23843 as_fn_error $? "Could not determine values for AF_INET* constants" "$LINENO" 5
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_PEEK" >&5
23848 $as_echo_n "checking value of MSG_PEEK... " >&6; }
23849 if ${glib_cv_value_MSG_PEEK+:} false; then :
23850 $as_echo_n "(cached) " >&6
23852 if ac_fn_c_compute_int "$LINENO" "MSG_PEEK" "glib_cv_value_MSG_PEEK" "$glib_inet_includes"; then :
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_PEEK" >&5
23861 $as_echo "$glib_cv_value_MSG_PEEK" >&6; }
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_OOB" >&5
23864 $as_echo_n "checking value of MSG_OOB... " >&6; }
23865 if ${glib_cv_value_MSG_OOB+:} false; then :
23866 $as_echo_n "(cached) " >&6
23868 if ac_fn_c_compute_int "$LINENO" "MSG_OOB" "glib_cv_value_MSG_OOB" "$glib_inet_includes"; then :
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_OOB" >&5
23877 $as_echo "$glib_cv_value_MSG_OOB" >&6; }
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_DONTROUTE" >&5
23880 $as_echo_n "checking value of MSG_DONTROUTE... " >&6; }
23881 if ${glib_cv_value_MSG_DONTROUTE+:} false; then :
23882 $as_echo_n "(cached) " >&6
23884 if ac_fn_c_compute_int "$LINENO" "MSG_DONTROUTE" "glib_cv_value_MSG_DONTROUTE" "$glib_inet_includes"; then :
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_DONTROUTE" >&5
23893 $as_echo "$glib_cv_value_MSG_DONTROUTE" >&6; }
23895 if $glib_failed ; then
23896 as_fn_error $? "Could not determine values for MSG_* constants" "$LINENO" 5
23899 for ac_func in getprotobyname_r endservent if_nametoindex
23901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23904 cat >>confdefs.h <<_ACEOF
23905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23911 for ac_header in netdb.h wspiapi.h arpa/nameser_compat.h
23913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23914 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23915 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23916 cat >>confdefs.h <<_ACEOF
23917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23925 if test $glib_native_win32 = no; then
23926 # We can't just use AC_CHECK_FUNC/AC_CHECK_LIB here. Bug 586150
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query" >&5
23929 $as_echo_n "checking for res_query... " >&6; }
23930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h. */
23932 #include <sys/types.h>
23933 #include <netinet/in.h>
23934 #include <arpa/nameser.h>
23935 #include <resolv.h>
23941 res_query("test", 0, 0, (void *)0, 0);
23947 if ac_fn_c_try_link "$LINENO"; then :
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23949 $as_echo "yes" >&6; }
23952 LIBS="-lresolv $LIBS"
23953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23954 /* end confdefs.h. */
23955 #include <sys/types.h>
23956 #include <netinet/in.h>
23957 #include <arpa/nameser.h>
23958 #include <resolv.h>
23964 res_query("test", 0, 0, (void *)0, 0);
23970 if ac_fn_c_try_link "$LINENO"; then :
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lresolv" >&5
23972 $as_echo "in -lresolv" >&6; }
23973 NETWORK_LIBS="-lresolv $NETWORK_LIBS"
23975 LIBS="-lbind $save_libs"
23976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977 /* end confdefs.h. */
23978 #include <resolv.h>
23982 res_query("test", 0, 0, (void *)0, 0);
23987 if ac_fn_c_try_link "$LINENO"; then :
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lbind" >&5
23989 $as_echo "in -lbind" >&6; }
23990 NETWORK_LIBS="-lbind $NETWORK_LIBS"
23992 as_fn_error $? "not found" "$LINENO" 5
23994 rm -f core conftest.err conftest.$ac_objext \
23995 conftest$ac_exeext conftest.$ac_ext
23997 rm -f core conftest.err conftest.$ac_objext \
23998 conftest$ac_exeext conftest.$ac_ext
24001 rm -f core conftest.err conftest.$ac_objext \
24002 conftest$ac_exeext conftest.$ac_ext
24003 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
24004 if test "x$ac_cv_func_socket" = xyes; then :
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
24008 $as_echo_n "checking for socket in -lsocket... " >&6; }
24009 if ${ac_cv_lib_socket_socket+:} false; then :
24010 $as_echo_n "(cached) " >&6
24012 ac_check_lib_save_LIBS=$LIBS
24013 LIBS="-lsocket $LIBS"
24014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24015 /* end confdefs.h. */
24017 /* Override any GCC internal prototype to avoid an error.
24018 Use char because int might match the return type of a GCC
24019 builtin and then its argument prototype would still apply. */
24032 if ac_fn_c_try_link "$LINENO"; then :
24033 ac_cv_lib_socket_socket=yes
24035 ac_cv_lib_socket_socket=no
24037 rm -f core conftest.err conftest.$ac_objext \
24038 conftest$ac_exeext conftest.$ac_ext
24039 LIBS=$ac_check_lib_save_LIBS
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
24042 $as_echo "$ac_cv_lib_socket_socket" >&6; }
24043 if test "x$ac_cv_lib_socket_socket" = xyes; then :
24044 NETWORK_LIBS="-lsocket $NETWORK_LIBS"
24046 as_fn_error $? "Could not find socket()" "$LINENO" 5
24054 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "#include <sys/socket.h>
24056 if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
24058 $as_echo "#define HAVE_NETLINK 1" >>confdefs.h
24063 if test "$ac_cv_header_linux_netlink_h" = "yes"; then
24065 HAVE_NETLINK_FALSE='#'
24067 HAVE_NETLINK_TRUE='#'
24068 HAVE_NETLINK_FALSE=
24072 ac_fn_c_check_type "$LINENO" "struct ip_mreqn" "ac_cv_type_struct_ip_mreqn" "#include <netinet/in.h>
24074 if test "x$ac_cv_type_struct_ip_mreqn" = xyes; then :
24077 $as_echo "#define HAVE_IP_MREQN /**/" >>confdefs.h
24085 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
24088 $as_echo "#define _XOPEN_SOURCE 2" >>confdefs.h
24091 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
24096 if test "$ac_cv_func_statfs" = yes ; then
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to statfs()" >&5
24098 $as_echo_n "checking number of arguments to statfs()... " >&6; }
24099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24100 /* end confdefs.h. */
24101 #include <unistd.h>
24102 #ifdef HAVE_SYS_PARAM_H
24103 #include <sys/param.h>
24105 #ifdef HAVE_SYS_VFS_H
24106 #include <sys/vfs.h>
24108 #ifdef HAVE_SYS_MOUNT_H
24109 #include <sys/mount.h>
24111 #ifdef HAVE_SYS_STATFS_H
24112 #include <sys/statfs.h>
24123 if ac_fn_c_try_compile "$LINENO"; then :
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2" >&5
24126 $as_echo "2" >&6; }
24128 $as_echo "#define STATFS_ARGS 2" >>confdefs.h
24132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133 /* end confdefs.h. */
24134 #include <unistd.h>
24135 #ifdef HAVE_SYS_PARAM_H
24136 #include <sys/param.h>
24138 #ifdef HAVE_SYS_VFS_H
24139 #include <sys/vfs.h>
24141 #ifdef HAVE_SYS_MOUNT_H
24142 #include <sys/mount.h>
24144 #ifdef HAVE_SYS_STATFS_H
24145 #include <sys/statfs.h>
24151 statfs(NULL, &st, sizeof (st), 0);
24156 if ac_fn_c_try_compile "$LINENO"; then :
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4" >&5
24159 $as_echo "4" >&6; }
24161 $as_echo "#define STATFS_ARGS 4" >>confdefs.h
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
24166 $as_echo "unknown" >&6; }
24167 as_fn_error $? "unable to determine number of arguments to statfs()" "$LINENO" 5
24169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 # Check whether to use an included printf
24178 # Check whether --enable-included-printf was given.
24179 if test "${enable_included_printf+set}" = set; then :
24180 enableval=$enable_included_printf; enable_included_printf="$enableval"
24184 need_included_printf=no
24185 if test "x$enable_included_printf" = "xyes" ; then
24186 need_included_printf=yes
24188 if test "$ac_cv_func_vsnprintf_c99" != "yes" ; then
24189 need_included_printf=yes
24191 if test "$ac_cv_func_printf_unix98" != "yes" ; then
24192 need_included_printf=yes
24194 if test "x$ac_cv_sizeof_long_long" = "x8" &&
24195 test -z "$glib_cv_long_long_format" ; then
24196 need_included_printf=yes
24199 if test "x$enable_included_printf" = "xno" &&
24200 test "x$need_included_printf" = "xyes" ; then
24202 *** Your C library's printf doesn't appear to have the features that
24203 *** GLib needs, but you specified --enable-included-printf=no." "$LINENO" 5
24206 enable_included_printf=$need_included_printf
24208 if test "$enable_included_printf" != "yes"; then
24209 HAVE_GOOD_PRINTF_TRUE=
24210 HAVE_GOOD_PRINTF_FALSE='#'
24212 HAVE_GOOD_PRINTF_TRUE='#'
24213 HAVE_GOOD_PRINTF_FALSE=
24216 if test "$enable_included_printf" != "yes" ; then
24218 $as_echo "#define HAVE_GOOD_PRINTF 1" >>confdefs.h
24221 if test -z "$glib_cv_long_long_format" ; then
24222 glib_cv_long_long_format="ll"
24224 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
24228 # Checks needed for gnulib vasnprintf
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
24231 $as_echo_n "checking for signed... " >&6; }
24232 if ${bh_cv_c_signed+:} false; then :
24233 $as_echo_n "(cached) " >&6
24235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24236 /* end confdefs.h. */
24246 if ac_fn_c_try_compile "$LINENO"; then :
24251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
24254 $as_echo "$bh_cv_c_signed" >&6; }
24255 if test $bh_cv_c_signed = no; then
24257 $as_echo "#define signed /**/" >>confdefs.h
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
24263 $as_echo_n "checking for long long... " >&6; }
24264 if ${ac_cv_type_long_long+:} false; then :
24265 $as_echo_n "(cached) " >&6
24267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268 /* end confdefs.h. */
24269 long long ll = 1LL; int i = 63;
24273 long long llmax = (long long) -1;
24274 return ll << i | ll >> i | llmax / ll | llmax % ll;
24279 if ac_fn_c_try_link "$LINENO"; then :
24280 ac_cv_type_long_long=yes
24282 ac_cv_type_long_long=no
24284 rm -f core conftest.err conftest.$ac_objext \
24285 conftest$ac_exeext conftest.$ac_ext
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
24288 $as_echo "$ac_cv_type_long_long" >&6; }
24289 if test $ac_cv_type_long_long = yes; then
24291 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
24297 $as_echo_n "checking for long double... " >&6; }
24298 if ${gt_cv_c_long_double+:} false; then :
24299 $as_echo_n "(cached) " >&6
24301 if test "$GCC" = yes; then
24302 gt_cv_c_long_double=yes
24304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h. */
24307 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
24308 long double foo = 0.0;
24309 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
24310 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
24320 if ac_fn_c_try_compile "$LINENO"; then :
24321 gt_cv_c_long_double=yes
24323 gt_cv_c_long_double=no
24325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
24329 $as_echo "$gt_cv_c_long_double" >&6; }
24330 if test $gt_cv_c_long_double = yes; then
24332 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
24338 $as_echo_n "checking for wchar_t... " >&6; }
24339 if ${gt_cv_c_wchar_t+:} false; then :
24340 $as_echo_n "(cached) " >&6
24342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h. */
24344 #include <stddef.h>
24345 wchar_t foo = (wchar_t)'\0';
24354 if ac_fn_c_try_compile "$LINENO"; then :
24355 gt_cv_c_wchar_t=yes
24359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
24362 $as_echo "$gt_cv_c_wchar_t" >&6; }
24363 if test $gt_cv_c_wchar_t = yes; then
24365 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
24371 $as_echo_n "checking for wint_t... " >&6; }
24372 if ${gt_cv_c_wint_t+:} false; then :
24373 $as_echo_n "(cached) " >&6
24375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h. */
24378 wint_t foo = (wchar_t)'\0';
24387 if ac_fn_c_try_compile "$LINENO"; then :
24392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
24395 $as_echo "$gt_cv_c_wint_t" >&6; }
24396 if test $gt_cv_c_wint_t = yes; then
24398 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
24402 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24403 if test "x$ac_cv_type_size_t" = xyes; then :
24407 cat >>confdefs.h <<_ACEOF
24408 #define size_t unsigned int
24413 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24414 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24416 cat >>confdefs.h <<_ACEOF
24417 #define HAVE_PTRDIFF_T 1
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
24425 $as_echo_n "checking for inttypes.h... " >&6; }
24426 if ${jm_ac_cv_header_inttypes_h+:} false; then :
24427 $as_echo_n "(cached) " >&6
24429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24430 /* end confdefs.h. */
24431 #include <sys/types.h>
24432 #include <inttypes.h>
24436 uintmax_t i = (uintmax_t) -1;
24441 if ac_fn_c_try_compile "$LINENO"; then :
24442 jm_ac_cv_header_inttypes_h=yes
24444 jm_ac_cv_header_inttypes_h=no
24446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
24449 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
24450 if test $jm_ac_cv_header_inttypes_h = yes; then
24452 cat >>confdefs.h <<_ACEOF
24453 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
24460 $as_echo_n "checking for stdint.h... " >&6; }
24461 if ${jm_ac_cv_header_stdint_h+:} false; then :
24462 $as_echo_n "(cached) " >&6
24464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24465 /* end confdefs.h. */
24466 #include <sys/types.h>
24467 #include <stdint.h>
24471 uintmax_t i = (uintmax_t) -1;
24476 if ac_fn_c_try_compile "$LINENO"; then :
24477 jm_ac_cv_header_stdint_h=yes
24479 jm_ac_cv_header_stdint_h=no
24481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
24484 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
24485 if test $jm_ac_cv_header_stdint_h = yes; then
24487 cat >>confdefs.h <<_ACEOF
24488 #define HAVE_STDINT_H_WITH_UINTMAX 1
24496 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
24498 test $ac_cv_type_long_long = yes \
24499 && ac_type='long long' \
24502 cat >>confdefs.h <<_ACEOF
24503 #define intmax_t $ac_type
24508 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
24512 for ac_func in snprintf wcslen
24514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24515 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24516 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24517 cat >>confdefs.h <<_ACEOF
24518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 snprintf" >&5
24525 $as_echo_n "checking for C99 snprintf... " >&6; }
24526 if ${ac_cv_func_snprintf_c99+:} false; then :
24527 $as_echo_n "(cached) " >&6
24529 if test "$cross_compiling" = yes; then :
24530 ac_cv_func_snprintf_c99=no
24532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24533 /* end confdefs.h. */
24535 #include <stdarg.h>
24544 r = snprintf(buffer, 5, "1234567");
24549 r = snprintf(buffer, 0, "1234567");
24554 r = snprintf(NULL, 0, "1234567");
24569 if ac_fn_c_try_run "$LINENO"; then :
24570 ac_cv_func_snprintf_c99=yes
24572 ac_cv_func_snprintf_c99=no
24574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24575 conftest.$ac_objext conftest.beam conftest.$ac_ext
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_c99" >&5
24580 $as_echo "$ac_cv_func_snprintf_c99" >&6; }
24581 if test $ac_cv_func_snprintf_c99 = yes; then
24583 $as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h
24588 # Check if bcopy can be used for overlapping copies, if memmove isn't found.
24589 # The check is borrowed from the PERL Configure script.
24590 if test "$ac_cv_func_memmove" != "yes"; then
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy can handle overlapping copies" >&5
24592 $as_echo_n "checking whether bcopy can handle overlapping copies... " >&6; }
24593 if ${glib_cv_working_bcopy+:} false; then :
24594 $as_echo_n "(cached) " >&6
24596 if test "$cross_compiling" = yes; then :
24597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24599 as_fn_error $? "cannot run test program while cross compiling
24600 See \`config.log' for more details" "$LINENO" 5; }
24602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24603 /* end confdefs.h. */
24606 char buf[128], abc[128], *b;
24607 int len, off, align;
24608 bcopy("abcdefghijklmnopqrstuvwxyz0123456789", abc, 36);
24609 for (align = 7; align >= 0; align--) {
24610 for (len = 36; len; len--) {
24611 b = buf+align; bcopy(abc, b, len);
24612 for (off = 1; off <= len; off++) {
24613 bcopy(b, b+off, len); bcopy(b+off, b, len);
24614 if (bcmp(b, abc, len)) return(1);
24621 if ac_fn_c_try_run "$LINENO"; then :
24622 glib_cv_working_bcopy=yes
24624 glib_cv_working_bcopy=no
24626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24627 conftest.$ac_objext conftest.beam conftest.$ac_ext
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_working_bcopy" >&5
24632 $as_echo "$glib_cv_working_bcopy" >&6; }
24634 if test "x${glib_cv_working_bcopy+set}" != "xset" ; then
24635 as_fn_error $? "glib_cv_working_bcopy must be set in cache file when cross-compiling." "$LINENO" 5
24638 if test "$glib_cv_working_bcopy" = "yes"; then
24640 $as_echo "#define HAVE_WORKING_BCOPY 1" >>confdefs.h
24645 # Check if <sys/select.h> needs to be included for fd_set
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5
24647 $as_echo_n "checking for fd_set... " >&6; }
24648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649 /* end confdefs.h. */
24650 #include <sys/types.h>
24654 fd_set readMask, writeMask;
24659 if ac_fn_c_try_compile "$LINENO"; then :
24664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665 if test "$gtk_ok" = "yes"; then
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/types.h" >&5
24667 $as_echo "yes, found in sys/types.h" >&6; }
24669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24670 /* end confdefs.h. */
24671 #include <sys/select.h>
24674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24675 $EGREP "fd_set" >/dev/null 2>&1; then :
24680 if test "$gtk_ok" = "yes"; then
24681 # *** FIXME: give it a different name
24683 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/select.h" >&5
24686 $as_echo "yes, found in sys/select.h" >&6; }
24689 $as_echo "#define NO_FD_SET 1" >>confdefs.h
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24692 $as_echo "no" >&6; }
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realloc (NULL,) will work" >&5
24697 $as_echo_n "checking whether realloc (NULL,) will work... " >&6; }
24698 if ${glib_cv_sane_realloc+:} false; then :
24699 $as_echo_n "(cached) " >&6
24702 if test "$cross_compiling" = yes; then :
24703 glib_cv_sane_realloc=yes
24705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24706 /* end confdefs.h. */
24707 #include <stdlib.h>
24709 return realloc (0, sizeof (int)) == 0;
24712 if ac_fn_c_try_run "$LINENO"; then :
24713 glib_cv_sane_realloc=yes
24715 glib_cv_sane_realloc=no
24717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24718 conftest.$ac_objext conftest.beam conftest.$ac_ext
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sane_realloc" >&5
24724 $as_echo "$glib_cv_sane_realloc" >&6; }
24725 if test x$glib_cv_sane_realloc = xyes; then
24727 $as_echo "#define REALLOC_0_WORKS 1" >>confdefs.h
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
24732 $as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
24733 if ${glib_cv_langinfo_codeset+:} false; then :
24734 $as_echo_n "(cached) " >&6
24737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24738 /* end confdefs.h. */
24739 #include <langinfo.h>
24743 char *codeset = nl_langinfo (CODESET);
24748 if ac_fn_c_try_compile "$LINENO"; then :
24749 glib_cv_langinfo_codeset=yes
24751 glib_cv_langinfo_codeset=no
24753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_codeset" >&5
24756 $as_echo "$glib_cv_langinfo_codeset" >&6; }
24757 if test x$glib_cv_langinfo_codeset = xyes; then
24759 $as_echo "#define HAVE_CODESET 1" >>confdefs.h
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (PM_STR)" >&5
24764 $as_echo_n "checking for nl_langinfo (PM_STR)... " >&6; }
24765 if ${glib_cv_langinfo_time+:} false; then :
24766 $as_echo_n "(cached) " >&6
24769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24770 /* end confdefs.h. */
24771 #include <langinfo.h>
24776 str = nl_langinfo (PM_STR);
24777 str = nl_langinfo (D_T_FMT);
24778 str = nl_langinfo (D_FMT);
24779 str = nl_langinfo (T_FMT);
24780 str = nl_langinfo (T_FMT_AMPM);
24781 str = nl_langinfo (MON_1);
24782 str = nl_langinfo (ABMON_12);
24783 str = nl_langinfo (DAY_1);
24784 str = nl_langinfo (ABDAY_7);
24789 if ac_fn_c_try_compile "$LINENO"; then :
24790 glib_cv_langinfo_time=yes
24792 glib_cv_langinfo_time=no
24794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_time" >&5
24797 $as_echo "$glib_cv_langinfo_time" >&6; }
24798 if test x$glib_cv_langinfo_time = xyes; then
24800 $as_echo "#define HAVE_LANGINFO_TIME 1" >>confdefs.h
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)" >&5
24805 $as_echo_n "checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)... " >&6; }
24806 if ${glib_cv_langinfo_outdigit+:} false; then :
24807 $as_echo_n "(cached) " >&6
24810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24811 /* end confdefs.h. */
24812 #include <langinfo.h>
24817 str = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
24818 str = nl_langinfo (_NL_CTYPE_OUTDIGIT1_MB);
24819 str = nl_langinfo (_NL_CTYPE_OUTDIGIT2_MB);
24820 str = nl_langinfo (_NL_CTYPE_OUTDIGIT3_MB);
24821 str = nl_langinfo (_NL_CTYPE_OUTDIGIT4_MB);
24822 str = nl_langinfo (_NL_CTYPE_OUTDIGIT5_MB);
24823 str = nl_langinfo (_NL_CTYPE_OUTDIGIT6_MB);
24824 str = nl_langinfo (_NL_CTYPE_OUTDIGIT7_MB);
24825 str = nl_langinfo (_NL_CTYPE_OUTDIGIT8_MB);
24826 str = nl_langinfo (_NL_CTYPE_OUTDIGIT9_MB);
24831 if ac_fn_c_try_compile "$LINENO"; then :
24832 glib_cv_langinfo_outdigit=yes
24834 glib_cv_langinfo_outdigit=no
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_outdigit" >&5
24839 $as_echo "$glib_cv_langinfo_outdigit" >&6; }
24840 if test x$glib_cv_langinfo_outdigit = xyes; then
24842 $as_echo "#define HAVE_LANGINFO_OUTDIGIT 1" >>confdefs.h
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a compliant posix_memalign() implementation" >&5
24847 $as_echo_n "checking for a compliant posix_memalign() implementation... " >&6; }
24848 if ${glib_cv_compliant_posix_memalign+:} false; then :
24849 $as_echo_n "(cached) " >&6
24852 glib_cv_compliant_posix_memalign=0
24853 if test "$ac_cv_func_posix_memalign" = "yes" ; then
24854 if test "$cross_compiling" = yes; then :
24857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h. */
24860 #define _XOPEN_SOURCE 600
24861 #include <stdlib.h> /* posix_memalign() should be defined here */
24862 /* some systems break if #include <malloc.h> used */
24863 static void test_memalign (size_t boundary, size_t size) {
24865 if (posix_memalign (&mem, boundary, size) != 0 || !mem)
24871 test_memalign ( 128, 128 - 2 * sizeof (void*));
24872 test_memalign ( 256, 256 - 2 * sizeof (void*));
24873 test_memalign ( 512, 512 - 2 * sizeof (void*));
24874 test_memalign ( 1024, 1024 - 2 * sizeof (void*));
24875 test_memalign ( 2048, 2048 - 2 * sizeof (void*));
24876 test_memalign ( 4096, 4096 - 2 * sizeof (void*));
24877 test_memalign ( 8192, 8192 - 2 * sizeof (void*));
24878 test_memalign (16384, 16384 - 2 * sizeof (void*));
24879 test_memalign (32768, 32768 - 2 * sizeof (void*));
24880 exit (0); /* success */
24884 if ac_fn_c_try_run "$LINENO"; then :
24885 glib_cv_compliant_posix_memalign=1
24887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24888 conftest.$ac_objext conftest.beam conftest.$ac_ext
24896 if test "$glib_cv_compliant_posix_memalign" = "1"; then
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24898 $as_echo "yes" >&6; }
24900 $as_echo "#define POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS 1" >>confdefs.h
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24904 $as_echo "no" >&6; }
24908 # Check for strlcpy
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD strlcpy/strlcat" >&5
24910 $as_echo_n "checking for OpenBSD strlcpy/strlcat... " >&6; }
24911 if ${glib_cv_have_strlcpy+:} false; then :
24912 $as_echo_n "(cached) " >&6
24915 if test "$cross_compiling" = yes; then :
24916 glib_cv_have_strlcpy=no
24918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24919 /* end confdefs.h. */
24920 #include <stdlib.h>
24921 #include <string.h>
24924 (void) strlcpy (p, "hi", 10);
24925 if (strlcat (p, "bye", 0) != 3)
24930 if ac_fn_c_try_run "$LINENO"; then :
24931 glib_cv_have_strlcpy=yes
24933 glib_cv_have_strlcpy=no
24935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24936 conftest.$ac_objext conftest.beam conftest.$ac_ext
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_strlcpy" >&5
24941 $as_echo "$glib_cv_have_strlcpy" >&6; }
24942 if test "$glib_cv_have_strlcpy" = "yes"; then
24944 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5
24950 $as_echo_n "checking for an implementation of va_copy()... " >&6; }
24951 if ${glib_cv_va_copy+:} false; then :
24952 $as_echo_n "(cached) " >&6
24955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24956 /* end confdefs.h. */
24957 #include <stdarg.h>
24958 #include <stdlib.h>
24959 void f (int i, ...) {
24960 va_list args1, args2;
24961 va_start (args1, i);
24962 va_copy (args2, args1);
24963 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24965 va_end (args1); va_end (args2);
24972 if ac_fn_c_try_link "$LINENO"; then :
24973 glib_cv_va_copy=yes
24977 rm -f core conftest.err conftest.$ac_objext \
24978 conftest$ac_exeext conftest.$ac_ext
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_copy" >&5
24982 $as_echo "$glib_cv_va_copy" >&6; }
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5
24984 $as_echo_n "checking for an implementation of __va_copy()... " >&6; }
24985 if ${glib_cv___va_copy+:} false; then :
24986 $as_echo_n "(cached) " >&6
24989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24990 /* end confdefs.h. */
24991 #include <stdarg.h>
24992 #include <stdlib.h>
24993 void f (int i, ...) {
24994 va_list args1, args2;
24995 va_start (args1, i);
24996 __va_copy (args2, args1);
24997 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24999 va_end (args1); va_end (args2);
25006 if ac_fn_c_try_link "$LINENO"; then :
25007 glib_cv___va_copy=yes
25009 glib_cv___va_copy=no
25011 rm -f core conftest.err conftest.$ac_objext \
25012 conftest$ac_exeext conftest.$ac_ext
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv___va_copy" >&5
25016 $as_echo "$glib_cv___va_copy" >&6; }
25018 if test "x$glib_cv_va_copy" = "xyes"; then
25019 g_va_copy_func=va_copy
25020 else if test "x$glib_cv___va_copy" = "xyes"; then
25021 g_va_copy_func=__va_copy
25025 if test -n "$g_va_copy_func"; then
25027 cat >>confdefs.h <<_ACEOF
25028 #define G_VA_COPY $g_va_copy_func
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5
25034 $as_echo_n "checking whether va_lists can be copied by value... " >&6; }
25035 if ${glib_cv_va_val_copy+:} false; then :
25036 $as_echo_n "(cached) " >&6
25039 if test "$cross_compiling" = yes; then :
25040 glib_cv_va_val_copy=yes
25042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25043 /* end confdefs.h. */
25044 #include <stdarg.h>
25045 #include <stdlib.h>
25046 void f (int i, ...) {
25047 va_list args1, args2;
25048 va_start (args1, i);
25050 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
25052 va_end (args1); va_end (args2);
25059 if ac_fn_c_try_run "$LINENO"; then :
25060 glib_cv_va_val_copy=yes
25062 glib_cv_va_val_copy=no
25064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25065 conftest.$ac_objext conftest.beam conftest.$ac_ext
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_val_copy" >&5
25071 $as_echo "$glib_cv_va_val_copy" >&6; }
25073 if test "x$glib_cv_va_val_copy" = "xno"; then
25075 $as_echo "#define G_VA_COPY_AS_ARRAY 1" >>confdefs.h
25080 G_MODULE_LIBS_EXTRA=
25081 G_MODULE_PLUGIN_LIBS=
25082 if test x"$glib_native_win32" = xyes; then
25086 G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
25088 G_MODULE_NEED_USCORE=0
25089 G_MODULE_BROKEN_RTLD_GLOBAL=0
25090 G_MODULE_HAVE_DLERROR=0
25091 if test -z "$G_MODULE_IMPL"; then
25093 *-*-mingw*|*-*-cygwin*) G_MODULE_IMPL=G_MODULE_IMPL_WIN32 ;;
25096 if test -z "$G_MODULE_IMPL"; then
25098 *-*-aix*) G_MODULE_IMPL=G_MODULE_IMPL_AR ;;
25101 if test -z "$G_MODULE_IMPL"; then
25102 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
25103 if test "x$ac_cv_func_dlopen" = xyes; then :
25104 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
25105 if test "x$ac_cv_func_dlsym" = xyes; then :
25106 G_MODULE_IMPL=G_MODULE_IMPL_DL
25112 if test -z "$G_MODULE_IMPL" && test "x$glib_native_beos" = "xyes"; then
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
25114 $as_echo_n "checking for load_image in -lroot... " >&6; }
25115 if ${ac_cv_lib_root_load_image+:} false; then :
25116 $as_echo_n "(cached) " >&6
25118 ac_check_lib_save_LIBS=$LIBS
25119 LIBS="-lroot $LIBS"
25120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25121 /* end confdefs.h. */
25123 /* Override any GCC internal prototype to avoid an error.
25124 Use char because int might match the return type of a GCC
25125 builtin and then its argument prototype would still apply. */
25129 char load_image ();
25133 return load_image ();
25138 if ac_fn_c_try_link "$LINENO"; then :
25139 ac_cv_lib_root_load_image=yes
25141 ac_cv_lib_root_load_image=no
25143 rm -f core conftest.err conftest.$ac_objext \
25144 conftest$ac_exeext conftest.$ac_ext
25145 LIBS=$ac_check_lib_save_LIBS
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
25148 $as_echo "$ac_cv_lib_root_load_image" >&6; }
25149 if test "x$ac_cv_lib_root_load_image" = xyes; then :
25150 G_MODULE_LIBS="-lbe -lroot -lglib-2.0 "
25151 G_MODULE_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
25152 G_MODULE_PLUGIN_LIBS="-L\$(top_builddir_full)/gmodule/.libs -lgmodule"
25153 G_MODULE_IMPL=G_MODULE_IMPL_BEOS
25157 if test -z "$G_MODULE_IMPL"; then
25158 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
25159 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
25160 G_MODULE_IMPL=G_MODULE_IMPL_DYLD
25161 G_MODULE_NEED_USCORE=1
25165 if test -z "$G_MODULE_IMPL"; then
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
25167 $as_echo_n "checking for dlopen in -ldl... " >&6; }
25168 if ${ac_cv_lib_dl_dlopen+:} false; then :
25169 $as_echo_n "(cached) " >&6
25171 ac_check_lib_save_LIBS=$LIBS
25173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25174 /* end confdefs.h. */
25176 /* Override any GCC internal prototype to avoid an error.
25177 Use char because int might match the return type of a GCC
25178 builtin and then its argument prototype would still apply. */
25191 if ac_fn_c_try_link "$LINENO"; then :
25192 ac_cv_lib_dl_dlopen=yes
25194 ac_cv_lib_dl_dlopen=no
25196 rm -f core conftest.err conftest.$ac_objext \
25197 conftest$ac_exeext conftest.$ac_ext
25198 LIBS=$ac_check_lib_save_LIBS
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
25201 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
25202 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
25204 $as_echo_n "checking for dlsym in -ldl... " >&6; }
25205 if ${ac_cv_lib_dl_dlsym+:} false; then :
25206 $as_echo_n "(cached) " >&6
25208 ac_check_lib_save_LIBS=$LIBS
25210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25211 /* end confdefs.h. */
25213 /* Override any GCC internal prototype to avoid an error.
25214 Use char because int might match the return type of a GCC
25215 builtin and then its argument prototype would still apply. */
25228 if ac_fn_c_try_link "$LINENO"; then :
25229 ac_cv_lib_dl_dlsym=yes
25231 ac_cv_lib_dl_dlsym=no
25233 rm -f core conftest.err conftest.$ac_objext \
25234 conftest$ac_exeext conftest.$ac_ext
25235 LIBS=$ac_check_lib_save_LIBS
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
25238 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
25239 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
25241 G_MODULE_IMPL=G_MODULE_IMPL_DL
25247 if test -z "$G_MODULE_IMPL"; then
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
25249 $as_echo_n "checking for shl_load in -ldld... " >&6; }
25250 if ${ac_cv_lib_dld_shl_load+:} false; then :
25251 $as_echo_n "(cached) " >&6
25253 ac_check_lib_save_LIBS=$LIBS
25255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25256 /* end confdefs.h. */
25258 /* Override any GCC internal prototype to avoid an error.
25259 Use char because int might match the return type of a GCC
25260 builtin and then its argument prototype would still apply. */
25268 return shl_load ();
25273 if ac_fn_c_try_link "$LINENO"; then :
25274 ac_cv_lib_dld_shl_load=yes
25276 ac_cv_lib_dld_shl_load=no
25278 rm -f core conftest.err conftest.$ac_objext \
25279 conftest$ac_exeext conftest.$ac_ext
25280 LIBS=$ac_check_lib_save_LIBS
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
25283 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
25284 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
25285 G_MODULE_LIBS=-ldld
25286 G_MODULE_IMPL=G_MODULE_IMPL_DLD
25290 if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
25292 LDFLAGS_orig="$LDFLAGS"
25293 LIBS="$G_MODULE_LIBS $LIBS"
25294 LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
25295 echo "void glib_plugin_test(void) { }" > plugin.c
25296 ${SHELL} ./libtool --mode=compile --tag=CC ${CC} ${CFLAGS} \
25297 ${CPPFLAGS} -c -o plugin.lo plugin.c >/dev/null 2>&1
25298 ${SHELL} ./libtool --mode=link --tag=CC ${CC} ${CFLAGS} \
25299 ${LDFLAGS} -module -o plugin.la -export-dynamic \
25300 -shrext ".o" -avoid-version plugin.lo \
25301 -rpath /dont/care >/dev/null 2>&1
25302 eval `./libtool --config | grep ^objdir`
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_GLOBAL brokenness" >&5
25304 $as_echo_n "checking for RTLD_GLOBAL brokenness... " >&6; }
25305 if ${glib_cv_rtldglobal_broken+:} false; then :
25306 $as_echo_n "(cached) " >&6
25309 if test "$cross_compiling" = yes; then :
25310 glib_cv_rtldglobal_broken=no
25312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h. */
25316 #ifndef RTLD_GLOBAL
25317 # define RTLD_GLOBAL 0
25320 # define RTLD_LAZY 0
25322 int glib_plugin_test;
25324 void *handle, *global, *local;
25325 global = &glib_plugin_test;
25326 handle = dlopen ("./$objdir/plugin.o", RTLD_GLOBAL | RTLD_LAZY);
25327 if (!handle) return 0;
25328 local = dlsym (handle, "glib_plugin_test");
25329 return global == local;
25332 if ac_fn_c_try_run "$LINENO"; then :
25333 glib_cv_rtldglobal_broken=no
25335 glib_cv_rtldglobal_broken=yes
25337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25338 conftest.$ac_objext conftest.beam conftest.$ac_ext
25341 rm -f plugin.c plugin.o plugin.lo plugin.la ${objdir}/plugin.*
25342 rmdir ${objdir} 2>/dev/null
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_rtldglobal_broken" >&5
25346 $as_echo "$glib_cv_rtldglobal_broken" >&6; }
25347 if test "x$glib_cv_rtldglobal_broken" = "xyes"; then
25348 G_MODULE_BROKEN_RTLD_GLOBAL=1
25350 G_MODULE_BROKEN_RTLD_GLOBAL=0
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preceeding underscore in symbols" >&5
25353 $as_echo_n "checking for preceeding underscore in symbols... " >&6; }
25354 if ${glib_cv_uscore+:} false; then :
25355 $as_echo_n "(cached) " >&6
25358 if test "$cross_compiling" = yes; then :
25359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25361 as_fn_error $? "cannot run test program while cross compiling
25362 See \`config.log' for more details" "$LINENO" 5; }
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h. */
25367 int glib_underscore_test (void) { return 42; }
25369 void *f1 = (void*)0, *f2 = (void*)0, *handle;
25370 handle = dlopen ((void*)0, 0);
25372 f1 = dlsym (handle, "glib_underscore_test");
25373 f2 = dlsym (handle, "_glib_underscore_test");
25374 } return (!f2 || f1);
25377 if ac_fn_c_try_run "$LINENO"; then :
25382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25383 conftest.$ac_objext conftest.beam conftest.$ac_ext
25386 rm -f plugin.c plugin.$ac_objext plugin.lo
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_uscore" >&5
25390 $as_echo "$glib_cv_uscore" >&6; }
25391 if test "x${glib_cv_uscore+set}" != "xset" ; then
25392 as_fn_error $? "glib_cv_uscore must be set in cache file when cross-compiling." "$LINENO" 5
25395 if test "x$glib_cv_uscore" = "xyes"; then
25396 G_MODULE_NEED_USCORE=1
25398 G_MODULE_NEED_USCORE=0
25401 LDFLAGS="$LDFLAGS_orig"
25402 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
25403 if test "x$ac_cv_func_dlerror" = xyes; then :
25404 G_MODULE_HAVE_DLERROR=1
25406 G_MODULE_HAVE_DLERROR=0
25411 if test -z "$G_MODULE_IMPL"; then
25413 G_MODULE_SUPPORTED=false
25415 G_MODULE_SUPPORTED=true
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of module shared libraries" >&5
25419 $as_echo_n "checking for the suffix of module shared libraries... " >&6; }
25421 shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
25423 module=yes eval std_shrext=$shrext_cmds
25424 # chop the initial dot
25425 glib_gmodule_suffix=`echo $std_shrext | sed 's/^\.//'`
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$glib_gmodule_suffix" >&5
25427 $as_echo ".$glib_gmodule_suffix" >&6; }
25428 # any reason it may fail?
25429 if test "x$glib_gmodule_suffix" = x; then
25430 as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gspawn implementation" >&5
25446 $as_echo_n "checking for gspawn implementation... " >&6; }
25449 GSPAWN=gspawn-win32.lo
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPAWN" >&5
25456 $as_echo "$GSPAWN" >&6; }
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIOChannel implementation" >&5
25461 $as_echo_n "checking for GIOChannel implementation... " >&6; }
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIO" >&5
25471 $as_echo "$GIO" >&6; }
25476 # Check whether --with-gio-module-dir was given.
25477 if test "${with_gio_module_dir+set}" = set; then :
25478 withval=$with_gio_module_dir;
25480 with_gio_module_dir='${libdir}/gio/modules'
25483 GIO_MODULE_DIR=$with_gio_module_dir
25486 # Check whether --enable-selinux was given.
25487 if test "${enable_selinux+set}" = set; then :
25488 enableval=$enable_selinux;
25493 if test "x$enable_selinux" != "xno"; then
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
25496 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
25497 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
25498 $as_echo_n "(cached) " >&6
25500 ac_check_lib_save_LIBS=$LIBS
25501 LIBS="-lselinux $LIBS"
25502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25503 /* end confdefs.h. */
25505 /* Override any GCC internal prototype to avoid an error.
25506 Use char because int might match the return type of a GCC
25507 builtin and then its argument prototype would still apply. */
25511 char is_selinux_enabled ();
25515 return is_selinux_enabled ();
25520 if ac_fn_c_try_link "$LINENO"; then :
25521 ac_cv_lib_selinux_is_selinux_enabled=yes
25523 ac_cv_lib_selinux_is_selinux_enabled=no
25525 rm -f core conftest.err conftest.$ac_objext \
25526 conftest$ac_exeext conftest.$ac_ext
25527 LIBS=$ac_check_lib_save_LIBS
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
25530 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
25531 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
25532 for ac_header in selinux/selinux.h
25534 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
25535 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
25536 cat >>confdefs.h <<_ACEOF
25537 #define HAVE_SELINUX_SELINUX_H 1
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon_raw in -lselinux" >&5
25540 $as_echo_n "checking for lgetfilecon_raw in -lselinux... " >&6; }
25541 if ${ac_cv_lib_selinux_lgetfilecon_raw+:} false; then :
25542 $as_echo_n "(cached) " >&6
25544 ac_check_lib_save_LIBS=$LIBS
25545 LIBS="-lselinux $LIBS"
25546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25547 /* end confdefs.h. */
25549 /* Override any GCC internal prototype to avoid an error.
25550 Use char because int might match the return type of a GCC
25551 builtin and then its argument prototype would still apply. */
25555 char lgetfilecon_raw ();
25559 return lgetfilecon_raw ();
25564 if ac_fn_c_try_link "$LINENO"; then :
25565 ac_cv_lib_selinux_lgetfilecon_raw=yes
25567 ac_cv_lib_selinux_lgetfilecon_raw=no
25569 rm -f core conftest.err conftest.$ac_objext \
25570 conftest$ac_exeext conftest.$ac_ext
25571 LIBS=$ac_check_lib_save_LIBS
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon_raw" >&5
25574 $as_echo "$ac_cv_lib_selinux_lgetfilecon_raw" >&6; }
25575 if test "x$ac_cv_lib_selinux_lgetfilecon_raw" = xyes; then :
25577 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
25579 SELINUX_LIBS="-lselinux"
25595 for ac_header in sys/inotify.h
25597 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
25598 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
25599 cat >>confdefs.h <<_ACEOF
25600 #define HAVE_SYS_INOTIFY_H 1
25603 inotify_support=yes
25604 for ac_func in inotify_init1
25606 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
25607 if test "x$ac_cv_func_inotify_init1" = xyes; then :
25608 cat >>confdefs.h <<_ACEOF
25609 #define HAVE_INOTIFY_INIT1 1
25621 if test "$inotify_support" = "yes"; then
25623 HAVE_INOTIFY_FALSE='#'
25625 HAVE_INOTIFY_TRUE='#'
25626 HAVE_INOTIFY_FALSE=
25631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25632 /* end confdefs.h. */
25635 #ifndef PORT_SOURCE_FILE
25636 #error "Please upgrade to Nevada 72 or above to suppoert FEN"
25638 int main() { return 0; }
25640 if ac_fn_c_try_compile "$LINENO"; then :
25645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 if test "$fen_support" = "yes"; then
25657 should_disable_fam=no
25659 # Check whether --enable-fam was given.
25660 if test "${enable_fam+set}" = set; then :
25661 enableval=$enable_fam;
25662 if test "x$enable_fam" = "xno"; then
25663 should_disable_fam=yes
25671 if test "x$should_disable_fam" = "xno"; then
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen in -lfam" >&5
25673 $as_echo_n "checking for FAMOpen in -lfam... " >&6; }
25674 if ${ac_cv_lib_fam_FAMOpen+:} false; then :
25675 $as_echo_n "(cached) " >&6
25677 ac_check_lib_save_LIBS=$LIBS
25679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25680 /* end confdefs.h. */
25682 /* Override any GCC internal prototype to avoid an error.
25683 Use char because int might match the return type of a GCC
25684 builtin and then its argument prototype would still apply. */
25697 if ac_fn_c_try_link "$LINENO"; then :
25698 ac_cv_lib_fam_FAMOpen=yes
25700 ac_cv_lib_fam_FAMOpen=no
25702 rm -f core conftest.err conftest.$ac_objext \
25703 conftest$ac_exeext conftest.$ac_ext
25704 LIBS=$ac_check_lib_save_LIBS
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen" >&5
25707 $as_echo "$ac_cv_lib_fam_FAMOpen" >&6; }
25708 if test "x$ac_cv_lib_fam_FAMOpen" = xyes; then :
25709 for ac_header in fam.h
25711 ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
25712 if test "x$ac_cv_header_fam_h" = xyes; then :
25713 cat >>confdefs.h <<_ACEOF
25714 #define HAVE_FAM_H 1
25717 $as_echo "#define HAVE_FAM /**/" >>confdefs.h
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMNoExists in -lfam" >&5
25720 $as_echo_n "checking for FAMNoExists in -lfam... " >&6; }
25721 if ${ac_cv_lib_fam_FAMNoExists+:} false; then :
25722 $as_echo_n "(cached) " >&6
25724 ac_check_lib_save_LIBS=$LIBS
25726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727 /* end confdefs.h. */
25729 /* Override any GCC internal prototype to avoid an error.
25730 Use char because int might match the return type of a GCC
25731 builtin and then its argument prototype would still apply. */
25735 char FAMNoExists ();
25739 return FAMNoExists ();
25744 if ac_fn_c_try_link "$LINENO"; then :
25745 ac_cv_lib_fam_FAMNoExists=yes
25747 ac_cv_lib_fam_FAMNoExists=no
25749 rm -f core conftest.err conftest.$ac_objext \
25750 conftest$ac_exeext conftest.$ac_ext
25751 LIBS=$ac_check_lib_save_LIBS
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMNoExists" >&5
25754 $as_echo "$ac_cv_lib_fam_FAMNoExists" >&6; }
25755 if test "x$ac_cv_lib_fam_FAMNoExists" = xyes; then :
25757 $as_echo "#define HAVE_FAM_NO_EXISTS /**/" >>confdefs.h
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (header files not found) ***" >&5
25765 $as_echo "$as_me: WARNING: *** FAM support will not be built (header files not found) ***" >&2;}
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (FAM library not found) ***" >&5
25772 $as_echo "$as_me: WARNING: *** FAM support will not be built (FAM library not found) ***" >&2;}
25777 if test "$fam_support" = "yes"; then
25787 # Check whether --enable-xattr was given.
25788 if test "${enable_xattr+set}" = set; then :
25789 enableval=$enable_xattr;
25794 if test "x$enable_xattr" != "xno"; then
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lc" >&5
25799 $as_echo_n "checking for getxattr in -lc... " >&6; }
25800 if ${ac_cv_lib_c_getxattr+:} false; then :
25801 $as_echo_n "(cached) " >&6
25803 ac_check_lib_save_LIBS=$LIBS
25805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25806 /* end confdefs.h. */
25808 /* Override any GCC internal prototype to avoid an error.
25809 Use char because int might match the return type of a GCC
25810 builtin and then its argument prototype would still apply. */
25818 return getxattr ();
25823 if ac_fn_c_try_link "$LINENO"; then :
25824 ac_cv_lib_c_getxattr=yes
25826 ac_cv_lib_c_getxattr=no
25828 rm -f core conftest.err conftest.$ac_objext \
25829 conftest$ac_exeext conftest.$ac_ext
25830 LIBS=$ac_check_lib_save_LIBS
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getxattr" >&5
25833 $as_echo "$ac_cv_lib_c_getxattr" >&6; }
25834 if test "x$ac_cv_lib_c_getxattr" = xyes; then :
25835 for ac_header in sys/xattr.h
25837 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
25838 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
25839 cat >>confdefs.h <<_ACEOF
25840 #define HAVE_SYS_XATTR_H 1
25843 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
25854 if test "x$msg_xattr" != "xyes"; then
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
25856 $as_echo_n "checking for getxattr in -lattr... " >&6; }
25857 if ${ac_cv_lib_attr_getxattr+:} false; then :
25858 $as_echo_n "(cached) " >&6
25860 ac_check_lib_save_LIBS=$LIBS
25861 LIBS="-lattr $LIBS"
25862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h. */
25865 /* Override any GCC internal prototype to avoid an error.
25866 Use char because int might match the return type of a GCC
25867 builtin and then its argument prototype would still apply. */
25875 return getxattr ();
25880 if ac_fn_c_try_link "$LINENO"; then :
25881 ac_cv_lib_attr_getxattr=yes
25883 ac_cv_lib_attr_getxattr=no
25885 rm -f core conftest.err conftest.$ac_objext \
25886 conftest$ac_exeext conftest.$ac_ext
25887 LIBS=$ac_check_lib_save_LIBS
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
25890 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
25891 if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
25892 for ac_header in attr/xattr.h
25894 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
25895 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
25896 cat >>confdefs.h <<_ACEOF
25897 #define HAVE_ATTR_XATTR_H 1
25900 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
25902 XATTR_LIBS="-lattr"
25913 if test "x$msg_xattr" = "xyes"; then
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NOFOLLOW" >&5
25915 $as_echo_n "checking for XATTR_NOFOLLOW... " >&6; }
25916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25917 /* end confdefs.h. */
25920 #ifdef HAVE_SYS_TYPES_H
25921 #include <sys/types.h>
25923 #ifdef HAVE_SYS_XATTR_H
25924 #include <sys/xattr.h>
25925 #elif HAVE_ATTR_XATTR_H
25926 #include <attr/xattr.h>
25932 ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);
25937 if ac_fn_c_try_compile "$LINENO"; then :
25940 $as_echo "#define HAVE_XATTR_NOFOLLOW 1" >>confdefs.h
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25943 $as_echo "yes" >&6; }
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25947 $as_echo "no" >&6; }
25950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBELF" >&5
25960 $as_echo_n "checking for LIBELF... " >&6; }
25962 if test -n "$LIBELF_CFLAGS"; then
25963 pkg_cv_LIBELF_CFLAGS="$LIBELF_CFLAGS"
25964 elif test -n "$PKG_CONFIG"; then
25965 if test -n "$PKG_CONFIG" && \
25966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5
25967 ($PKG_CONFIG --exists --print-errors "libelf") 2>&5
25969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25970 test $ac_status = 0; }; then
25971 pkg_cv_LIBELF_CFLAGS=`$PKG_CONFIG --cflags "libelf" 2>/dev/null`
25978 if test -n "$LIBELF_LIBS"; then
25979 pkg_cv_LIBELF_LIBS="$LIBELF_LIBS"
25980 elif test -n "$PKG_CONFIG"; then
25981 if test -n "$PKG_CONFIG" && \
25982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5
25983 ($PKG_CONFIG --exists --print-errors "libelf") 2>&5
25985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986 test $ac_status = 0; }; then
25987 pkg_cv_LIBELF_LIBS=`$PKG_CONFIG --libs "libelf" 2>/dev/null`
25997 if test $pkg_failed = yes; then
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25999 $as_echo "no" >&6; }
26001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26002 _pkg_short_errors_supported=yes
26004 _pkg_short_errors_supported=no
26006 if test $_pkg_short_errors_supported = yes; then
26007 LIBELF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libelf" 2>&1`
26009 LIBELF_PKG_ERRORS=`$PKG_CONFIG --print-errors "libelf" 2>&1`
26011 # Put the nasty error message in config.log where it belongs
26012 echo "$LIBELF_PKG_ERRORS" >&5
26015 elif test $pkg_failed = untried; then
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26017 $as_echo "no" >&6; }
26020 LIBELF_CFLAGS=$pkg_cv_LIBELF_CFLAGS
26021 LIBELF_LIBS=$pkg_cv_LIBELF_LIBS
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26023 $as_echo "yes" >&6; }
26027 if test $have_libelf = maybe; then
26028 glib_save_LIBS=$LIBS
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
26030 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
26031 if ${ac_cv_lib_elf_elf_begin+:} false; then :
26032 $as_echo_n "(cached) " >&6
26034 ac_check_lib_save_LIBS=$LIBS
26036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26037 /* end confdefs.h. */
26039 /* Override any GCC internal prototype to avoid an error.
26040 Use char because int might match the return type of a GCC
26041 builtin and then its argument prototype would still apply. */
26049 return elf_begin ();
26054 if ac_fn_c_try_link "$LINENO"; then :
26055 ac_cv_lib_elf_elf_begin=yes
26057 ac_cv_lib_elf_elf_begin=no
26059 rm -f core conftest.err conftest.$ac_objext \
26060 conftest$ac_exeext conftest.$ac_ext
26061 LIBS=$ac_check_lib_save_LIBS
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
26064 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
26065 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
26066 cat >>confdefs.h <<_ACEOF
26067 #define HAVE_LIBELF 1
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
26077 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
26078 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
26079 $as_echo_n "(cached) " >&6
26081 ac_check_lib_save_LIBS=$LIBS
26083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26084 /* end confdefs.h. */
26086 /* Override any GCC internal prototype to avoid an error.
26087 Use char because int might match the return type of a GCC
26088 builtin and then its argument prototype would still apply. */
26092 char elf_getshdrstrndx ();
26096 return elf_getshdrstrndx ();
26101 if ac_fn_c_try_link "$LINENO"; then :
26102 ac_cv_lib_elf_elf_getshdrstrndx=yes
26104 ac_cv_lib_elf_elf_getshdrstrndx=no
26106 rm -f core conftest.err conftest.$ac_objext \
26107 conftest$ac_exeext conftest.$ac_ext
26108 LIBS=$ac_check_lib_save_LIBS
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
26111 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
26112 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
26113 cat >>confdefs.h <<_ACEOF
26114 #define HAVE_LIBELF 1
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrnum in -lelf" >&5
26124 $as_echo_n "checking for elf_getshdrnum in -lelf... " >&6; }
26125 if ${ac_cv_lib_elf_elf_getshdrnum+:} false; then :
26126 $as_echo_n "(cached) " >&6
26128 ac_check_lib_save_LIBS=$LIBS
26130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26131 /* end confdefs.h. */
26133 /* Override any GCC internal prototype to avoid an error.
26134 Use char because int might match the return type of a GCC
26135 builtin and then its argument prototype would still apply. */
26139 char elf_getshdrnum ();
26143 return elf_getshdrnum ();
26148 if ac_fn_c_try_link "$LINENO"; then :
26149 ac_cv_lib_elf_elf_getshdrnum=yes
26151 ac_cv_lib_elf_elf_getshdrnum=no
26153 rm -f core conftest.err conftest.$ac_objext \
26154 conftest$ac_exeext conftest.$ac_ext
26155 LIBS=$ac_check_lib_save_LIBS
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrnum" >&5
26158 $as_echo "$ac_cv_lib_elf_elf_getshdrnum" >&6; }
26159 if test "x$ac_cv_lib_elf_elf_getshdrnum" = xyes; then :
26160 cat >>confdefs.h <<_ACEOF
26161 #define HAVE_LIBELF 1
26170 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
26171 if test "x$ac_cv_header_libelf_h" = xyes; then :
26178 LIBS=$glib_save_LIBS
26180 if test $have_libelf != no; then
26186 if test $have_libelf = yes; then
26188 $as_echo "#define HAVE_LIBELF 1" >>confdefs.h
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform-dependent source" >&5
26194 $as_echo_n "checking for platform-dependent source... " >&6; }
26196 *-*-cygwin*|*-*-mingw*)
26197 PLATFORMDEP=gwin32.lo
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORMDEP" >&5
26204 $as_echo "$PLATFORMDEP" >&6; }
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile timeloop" >&5
26208 $as_echo_n "checking whether to compile timeloop... " >&6; }
26210 *-*-cygwin*|*-*-mingw*|*-*-minix)
26214 enable_timeloop=yes
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_timeloop" >&5
26218 $as_echo "$enable_timeloop" >&6; }
26219 if test x$enable_timeloop = xyes; then
26220 ENABLE_TIMELOOP_TRUE=
26221 ENABLE_TIMELOOP_FALSE='#'
26223 ENABLE_TIMELOOP_TRUE='#'
26224 ENABLE_TIMELOOP_FALSE=
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
26229 $as_echo_n "checking if building for some Win32 platform... " >&6; }
26231 *-*-mingw*|*-*-cygwin*)
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
26239 $as_echo "$platform_win32" >&6; }
26240 if test x$platform_win32 = xyes; then
26241 PLATFORM_WIN32_TRUE=
26242 PLATFORM_WIN32_FALSE='#'
26244 PLATFORM_WIN32_TRUE='#'
26245 PLATFORM_WIN32_FALSE=
26251 # Check whether --with-threads was given.
26252 if test "${with_threads+set}" = set; then :
26253 withval=$with_threads;
26260 THREAD_NO_IMPLEMENTATION="No thread implementation found."
26262 FLAG_DOES_NOT_WORK="I can't find the MACRO to enable thread safety on your
26263 platform (normally it's "_REENTRANT"). I'll not use any flag on
26264 compilation now, but then your programs might not work.
26265 Please provide information on how it is done on your system."
26267 LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
26270 LIBS_NOT_FOUND_2=". Please choose another thread implementation or
26271 provide information on your thread implementation."
26273 FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
26274 functions will not be MT-safe during their first call because
26275 there is no working 'getpwuid_r' on your system."
26277 FUNC_NO_LOCALTIME_R="the 'g_date_set_time' function will not be MT-safe
26278 because there is no 'localtime_r' on your system."
26280 AIX_COMPILE_INFO="AIX's C compiler needs to be called by a different name, when
26281 linking threaded applications. As GLib cannot do that
26282 automatically, you will get an linkg error everytime you are
26283 not using the right compiler. In that case you have to relink
26284 with the right compiler. Ususally just '_r' is appended
26285 to the compiler name."
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread implementation" >&5
26289 $as_echo_n "checking for thread implementation... " >&6; }
26292 if test "x$with_threads" = xyes || test "x$with_threads" = xposix; then
26293 # -D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE is for DG/UX
26294 # -U_OSF_SOURCE is for Digital UNIX 4.0d
26295 GTHREAD_COMPILE_IMPL_DEFINES="-D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE -U_OSF_SOURCE"
26296 glib_save_CPPFLAGS="$CPPFLAGS"
26297 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26298 if test "x$have_threads" = xno; then
26299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26300 /* end confdefs.h. */
26301 #include <pthread.h>
26305 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
26310 if ac_fn_c_try_compile "$LINENO"; then :
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26315 # Tru64Unix requires -pthread to find pthread.h. See #103020
26316 CPPFLAGS="$CPPFLAGS -pthread"
26317 if test "x$have_threads" = xno; then
26318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26319 /* end confdefs.h. */
26320 #include <pthread.h>
26324 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
26329 if ac_fn_c_try_compile "$LINENO"; then :
26332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26334 CPPFLAGS="$glib_save_CPPFLAGS"
26336 if test "x$with_threads" = xyes || test "x$with_threads" = xwin32; then
26344 if test "x$have_threads" = xno; then
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none available" >&5
26346 $as_echo "none available" >&6; }
26347 as_fn_error $? "$THREAD_NO_IMPLEMENTATION" "$LINENO" 5
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5
26350 $as_echo "$have_threads" >&6; }
26356 G_THREAD_LIBS_EXTRA=
26361 if test x"$have_threads" = xposix; then
26362 # First we test for posix, whether -pthread or -pthreads do the trick as
26363 # both CPPFLAG and LIBS.
26364 # One of them does for most gcc versions and some other platforms/compilers
26365 # too and could be considered as the canonical way to go.
26367 *-*-cygwin*|*-*-darwin*)
26368 # skip cygwin and darwin -pthread or -pthreads test
26371 # These compiler/linker flags work with both Sun Studio and gcc
26372 # Sun Studio expands -mt to -D_REENTRANT and -lthread
26373 # gcc expands -pthreads to -D_REENTRANT -D_PTHREADS -lpthread
26374 G_THREAD_CFLAGS="-D_REENTRANT -D_PTHREADS"
26375 G_THREAD_LIBS="-lpthread -lthread"
26378 for flag in pthread pthreads mt; do
26379 glib_save_CFLAGS="$CFLAGS"
26380 CFLAGS="$CFLAGS -$flag"
26381 if test "$cross_compiling" = yes; then :
26382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26383 /* end confdefs.h. */
26385 #include <pthread.h>
26387 void* func(void* data) {check_me = 42; return &check_me;}
26391 pthread_create (&t, 0, func, 0);
26392 pthread_join (t, &ret);
26393 return (check_me != 42 || ret != &check_me);
26396 if ac_fn_c_try_link "$LINENO"; then :
26397 glib_flag_works=yes
26401 rm -f core conftest.err conftest.$ac_objext \
26402 conftest$ac_exeext conftest.$ac_ext
26404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26405 /* end confdefs.h. */
26407 #include <pthread.h>
26409 void* func(void* data) {check_me = 42; return &check_me;}
26413 pthread_create (&t, 0, func, 0);
26414 pthread_join (t, &ret);
26415 return (check_me != 42 || ret != &check_me);
26418 if ac_fn_c_try_run "$LINENO"; then :
26419 glib_flag_works=yes
26423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26424 conftest.$ac_objext conftest.beam conftest.$ac_ext
26427 CFLAGS="$glib_save_CFLAGS"
26428 if test $glib_flag_works = yes ; then
26429 G_THREAD_CFLAGS=-$flag
26430 G_THREAD_LIBS=-$flag
26438 if test x"$G_THREAD_CFLAGS" = x; then
26440 # The canonical -pthread[s] does not work. Try something different.
26444 if test x"$GCC" = xyes; then
26445 # GCC 3.0 and above needs -pthread.
26446 # Should be coverd by the case above.
26447 # GCC 2.x and below needs -mthreads
26448 G_THREAD_CFLAGS="-mthreads"
26449 G_THREAD_LIBS=$G_THREAD_CFLAGS
26451 # We are probably using the aix compiler. Normaly a
26452 # program would have to be compiled with the _r variant
26453 # of the corresponding compiler, but we as GLib cannot
26454 # do that: but the good news is that for compiling the
26455 # only difference is the added -D_THREAD_SAFE compile
26456 # option. This is according to the "C for AIX User's
26458 G_THREAD_CFLAGS="-D_THREAD_SAFE"
26461 *-dg-dgux*) # DG/UX
26462 G_THREAD_CFLAGS="-D_REENTRANT -D_POSIX4A_DRAFT10_SOURCE"
26464 *-sysv5uw7*) # UnixWare 7
26465 # We are not using gcc with -pthread. Catched above.
26466 G_THREAD_CFLAGS="-Kthread"
26467 G_THREAD_LIBS=$G_THREAD_CFLAGS
26470 # No flag needed when using MSVCRT.DLL
26474 G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise
26480 # if we are not finding the localtime_r function, then we probably are
26481 # not using the proper multithread flag
26483 glib_save_CPPFLAGS="$CPPFLAGS"
26484 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
26486 # First we test, whether localtime_r is declared in time.h
26487 # directly. Then we test whether a macro localtime_r exists, in
26488 # which case localtime_r in the test program is replaced and thus
26489 # if we still find localtime_r in the output, it is not defined as
26492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26493 /* end confdefs.h. */
26496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26497 $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
26500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26501 /* end confdefs.h. */
26505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26506 $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FLAG_DOES_NOT_WORK" >&5
26508 $as_echo "$as_me: WARNING: $FLAG_DOES_NOT_WORK" >&2;}
26516 CPPFLAGS="$glib_save_CPPFLAGS"
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related cflags" >&5
26519 $as_echo_n "checking thread related cflags... " >&6; }
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_CFLAGS" >&5
26521 $as_echo "$G_THREAD_CFLAGS" >&6; }
26522 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
26525 case $have_threads in
26527 glib_save_CPPFLAGS="$CPPFLAGS"
26528 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26529 if test x"$G_THREAD_LIBS" = x; then
26532 # We are not using gcc (would have set G_THREAD_LIBS) and thus
26533 # probably using the aix compiler.
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $AIX_COMPILE_INFO" >&5
26535 $as_echo "$as_me: WARNING: $AIX_COMPILE_INFO" >&2;}
26538 G_THREAD_LIBS=error
26539 glib_save_LIBS="$LIBS"
26540 for thread_lib in "" pthread pthread32 pthreads thread; do
26541 if test x"$thread_lib" = x; then
26545 add_thread_lib="-l$thread_lib"
26546 IN=" in -l$thread_lib"
26548 if test x"$have_threads" = xposix; then
26551 defattr=pthread_attr_default
26554 LIBS="$add_thread_lib $glib_save_LIBS"
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create/pthread_join$IN" >&5
26557 $as_echo_n "checking for pthread_create/pthread_join$IN... " >&6; }
26558 if test "$cross_compiling" = yes; then :
26559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26560 /* end confdefs.h. */
26562 #include <pthread.h>
26564 void* func(void* data) {check_me = 42; return &check_me;}
26568 pthread_create (&t, $defattr, func, 0);
26569 pthread_join (t, &ret);
26570 return (check_me != 42 || ret != &check_me);
26573 if ac_fn_c_try_link "$LINENO"; then :
26578 rm -f core conftest.err conftest.$ac_objext \
26579 conftest$ac_exeext conftest.$ac_ext
26581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26582 /* end confdefs.h. */
26584 #include <pthread.h>
26586 void* func(void* data) {check_me = 42; return &check_me;}
26590 pthread_create (&t, $defattr, func, 0);
26591 pthread_join (t, &ret);
26592 return (check_me != 42 || ret != &check_me);
26595 if ac_fn_c_try_run "$LINENO"; then :
26600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26601 conftest.$ac_objext conftest.beam conftest.$ac_ext
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_result" >&5
26605 $as_echo "$glib_result" >&6; }
26607 if test "$glib_result" = "yes" ; then
26608 G_THREAD_LIBS="$add_thread_lib"
26612 if test "x$G_THREAD_LIBS" = xerror; then
26613 as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
26615 LIBS="$glib_save_LIBS"
26620 g_threads_impl="POSIX"
26622 CPPFLAGS="$glib_save_CPPFLAGS"
26625 g_threads_impl="WIN32"
26628 g_threads_impl="NONE"
26629 G_THREAD_LIBS=error
26633 if test "x$G_THREAD_LIBS" = xerror; then
26634 as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
26639 G_THREAD_LIBS="-lbe -lroot -lglib-2.0 "
26640 G_THREAD_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related libraries" >&5
26647 $as_echo_n "checking thread related libraries... " >&6; }
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_LIBS" >&5
26649 $as_echo "$G_THREAD_LIBS" >&6; }
26652 glib_save_LIBS="$LIBS"
26653 # we are not doing the following for now, as this might require glib
26654 # to always be linked with the thread libs on some platforms.
26655 # LIBS="$LIBS $G_THREAD_LIBS"
26656 for ac_func in localtime_r gmtime_r
26658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26661 cat >>confdefs.h <<_ACEOF
26662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26668 if test "$ac_cv_header_pwd_h" = "yes"; then
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getpwuid_r" >&5
26670 $as_echo_n "checking for posix getpwuid_r... " >&6; }
26671 if ${ac_cv_func_posix_getpwuid_r+:} false; then :
26672 $as_echo_n "(cached) " >&6
26674 if test "$cross_compiling" = yes; then :
26675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26677 as_fn_error $? "cannot run test program while cross compiling
26678 See \`config.log' for more details" "$LINENO" 5; }
26680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26681 /* end confdefs.h. */
26686 char buffer[10000];
26687 struct passwd pwd, *pwptr = &pwd;
26690 error = getpwuid_r (0, &pwd, buffer,
26691 sizeof (buffer), &pwptr);
26692 return (error < 0 && errno == ENOSYS)
26693 || error == ENOSYS;
26696 if ac_fn_c_try_run "$LINENO"; then :
26697 ac_cv_func_posix_getpwuid_r=yes
26699 ac_cv_func_posix_getpwuid_r=no
26701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26702 conftest.$ac_objext conftest.beam conftest.$ac_ext
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getpwuid_r" >&5
26707 $as_echo "$ac_cv_func_posix_getpwuid_r" >&6; }
26708 if test "x${ac_cv_func_posix_getpwuid_r+set}" != "xset" ; then
26709 as_fn_error $? "ac_cv_func_posix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
26712 if test "$ac_cv_func_posix_getpwuid_r" = yes; then
26714 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getpwuid_r" >&5
26718 $as_echo_n "checking for nonposix getpwuid_r... " >&6; }
26719 if ${ac_cv_func_nonposix_getpwuid_r+:} false; then :
26720 $as_echo_n "(cached) " >&6
26722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26723 /* end confdefs.h. */
26728 char buffer[10000];
26730 getpwuid_r (0, &pwd, buffer,
26736 if ac_fn_c_try_link "$LINENO"; then :
26737 ac_cv_func_nonposix_getpwuid_r=yes
26739 ac_cv_func_nonposix_getpwuid_r=no
26741 rm -f core conftest.err conftest.$ac_objext \
26742 conftest$ac_exeext conftest.$ac_ext
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getpwuid_r" >&5
26745 $as_echo "$ac_cv_func_nonposix_getpwuid_r" >&6; }
26746 if test "x${ac_cv_func_nonposix_getpwuid_r+set}" != "xset" ; then
26747 as_fn_error $? "ac_cv_func_nonposix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
26750 if test "$ac_cv_func_nonposix_getpwuid_r" = yes; then
26752 $as_echo "#define HAVE_NONPOSIX_GETPWUID_R 1" >>confdefs.h
26757 if test "$ac_cv_header_grp_h" = "yes"; then
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getgrgid_r" >&5
26759 $as_echo_n "checking for posix getgrgid_r... " >&6; }
26760 if ${ac_cv_func_posix_getgrgid_r+:} false; then :
26761 $as_echo_n "(cached) " >&6
26763 if test "$cross_compiling" = yes; then :
26764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26766 as_fn_error $? "cannot run test program while cross compiling
26767 See \`config.log' for more details" "$LINENO" 5; }
26769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26770 /* end confdefs.h. */
26775 char buffer[10000];
26776 struct group grp, *grpptr = &grp;
26779 error = getgrgid_r (0, &grp, buffer,
26780 sizeof (buffer), &grpptr);
26781 return (error < 0 && errno == ENOSYS)
26782 || error == ENOSYS;
26785 if ac_fn_c_try_run "$LINENO"; then :
26786 ac_cv_func_posix_getgrgid_r=yes
26788 ac_cv_func_posix_getgrgid_r=no
26790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26791 conftest.$ac_objext conftest.beam conftest.$ac_ext
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getgrgid_r" >&5
26796 $as_echo "$ac_cv_func_posix_getgrgid_r" >&6; }
26797 if test "x${ac_cv_func_posix_getgrgid_r+set}" != "xset" ; then
26798 as_fn_error $? "ac_cv_func_posix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
26801 if test "$ac_cv_func_posix_getgrgid_r" = yes; then
26803 $as_echo "#define HAVE_POSIX_GETGRGID_R 1" >>confdefs.h
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getgrgid_r" >&5
26807 $as_echo_n "checking for nonposix getgrgid_r... " >&6; }
26808 if ${ac_cv_func_nonposix_getgrgid_r+:} false; then :
26809 $as_echo_n "(cached) " >&6
26811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26812 /* end confdefs.h. */
26817 char buffer[10000];
26819 getgrgid_r (0, &grp, buffer,
26825 if ac_fn_c_try_link "$LINENO"; then :
26826 ac_cv_func_nonposix_getgrgid_r=yes
26828 ac_cv_func_nonposix_getgrgid_r=no
26830 rm -f core conftest.err conftest.$ac_objext \
26831 conftest$ac_exeext conftest.$ac_ext
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getgrgid_r" >&5
26834 $as_echo "$ac_cv_func_nonposix_getgrgid_r" >&6; }
26835 if test "x${ac_cv_func_nonposix_getgrgid_r+set}" != "xset" ; then
26836 as_fn_error $? "ac_cv_func_nonposix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
26839 if test "$ac_cv_func_nonposix_getgrgid_r" = yes; then
26841 $as_echo "#define HAVE_NONPOSIX_GETGRGID_R 1" >>confdefs.h
26846 LIBS="$G_THREAD_LIBS $LIBS"
26847 if test x"$have_threads" = xposix; then
26848 glib_save_CPPFLAGS="$CPPFLAGS"
26849 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26850 # This is not AC_CHECK_FUNC to also work with function
26851 # name mangling in header files.
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize" >&5
26853 $as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
26854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26855 /* end confdefs.h. */
26856 #include <pthread.h>
26860 pthread_attr_t t; pthread_attr_setstacksize(&t,0)
26865 if ac_fn_c_try_link "$LINENO"; then :
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26867 $as_echo "yes" >&6; }
26869 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26873 $as_echo "no" >&6; }
26875 rm -f core conftest.err conftest.$ac_objext \
26876 conftest$ac_exeext conftest.$ac_ext
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_condattr_setclock" >&5
26878 $as_echo_n "checking for pthread_condattr_setclock... " >&6; }
26879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26880 /* end confdefs.h. */
26881 #include <pthread.h>
26885 pthread_condattr_t a; pthread_condattr_setclock(&a,0)
26890 if ac_fn_c_try_link "$LINENO"; then :
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26892 $as_echo "yes" >&6; }
26894 $as_echo "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26898 $as_echo "no" >&6; }
26900 rm -f core conftest.err conftest.$ac_objext \
26901 conftest$ac_exeext conftest.$ac_ext
26902 CPPFLAGS="$glib_save_CPPFLAGS"
26905 LIBS="$glib_save_LIBS"
26907 # now spit out all the warnings.
26908 if test "$ac_cv_func_posix_getpwuid_r" != "yes" &&
26909 test "$ac_cv_func_nonposix_getpwuid_r" != "yes"; then
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_GETPWUID_R" >&5
26911 $as_echo "$as_me: WARNING: $FUNC_NO_GETPWUID_R" >&2;}
26913 if test "$ac_cv_func_localtime_r" != "yes"; then
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_LOCALTIME_R" >&5
26915 $as_echo "$as_me: WARNING: $FUNC_NO_LOCALTIME_R" >&2;}
26919 # Hack to deal with:
26921 # a) GCC < 3.3 for Linux doesn't include -lpthread when
26922 # building shared libraries with linux.
26923 # b) FreeBSD doesn't do this either.
26926 *-*-freebsd*|*-*-linux*)
26927 G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
26930 LDFLAGS="$LDFLAGS -pthread"
26933 G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
26942 for ac_func in clock_gettime
26944 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
26945 if test "x$ac_cv_func_clock_gettime" = xyes; then :
26946 cat >>confdefs.h <<_ACEOF
26947 #define HAVE_CLOCK_GETTIME 1
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26953 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26954 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26955 $as_echo_n "(cached) " >&6
26957 ac_check_lib_save_LIBS=$LIBS
26959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26960 /* end confdefs.h. */
26962 /* Override any GCC internal prototype to avoid an error.
26963 Use char because int might match the return type of a GCC
26964 builtin and then its argument prototype would still apply. */
26968 char clock_gettime ();
26972 return clock_gettime ();
26977 if ac_fn_c_try_link "$LINENO"; then :
26978 ac_cv_lib_rt_clock_gettime=yes
26980 ac_cv_lib_rt_clock_gettime=no
26982 rm -f core conftest.err conftest.$ac_objext \
26983 conftest$ac_exeext conftest.$ac_ext
26984 LIBS=$ac_check_lib_save_LIBS
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26987 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26988 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26990 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
26992 G_THREAD_LIBS="$G_THREAD_LIBS -lrt"
26993 G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt"
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock-free atomic intrinsics" >&5
27007 $as_echo_n "checking for lock-free atomic intrinsics... " >&6; }
27008 if ${glib_cv_g_atomic_lock_free+:} false; then :
27009 $as_echo_n "(cached) " >&6
27012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27013 /* end confdefs.h. */
27018 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
27023 if ac_fn_c_try_compile "$LINENO"; then :
27024 glib_cv_g_atomic_lock_free=yes
27026 glib_cv_g_atomic_lock_free=no
27028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_g_atomic_lock_free" >&5
27031 $as_echo "$glib_cv_g_atomic_lock_free" >&6; }
27033 if test "$glib_cv_g_atomic_lock_free" = "no"; then
27034 SAVE_CFLAGS="${CFLAGS}"
27035 CFLAGS="-march=i486"
27036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27037 /* end confdefs.h. */
27042 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
27047 if ac_fn_c_try_compile "$LINENO"; then :
27048 as_fn_error $? "GLib must be build with -march=i486 or later." "$LINENO" 5
27050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27051 CFLAGS="${SAVE_CFLAGS}"
27055 i?86|x86_64|s390|s390x|arm*|crisv32*|etrax*)
27056 glib_memory_barrier_needed=no
27058 sparc*|alpha*|powerpc*|ia64)
27059 glib_memory_barrier_needed=yes
27062 glib_memory_barrier_needed=yes
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futex(2) system call" >&5
27067 $as_echo_n "checking for futex(2) system call... " >&6; }
27068 if ${glib_cv_futex+:} false; then :
27069 $as_echo_n "(cached) " >&6
27071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27072 /* end confdefs.h. */
27074 #include <linux/futex.h>
27075 #include <sys/syscall.h>
27076 #include <unistd.h>
27085 /* it is not like this actually runs or anything... */
27086 syscall (__NR_futex, NULL, FUTEX_WAKE, FUTEX_WAIT);
27094 if ac_fn_c_try_compile "$LINENO"; then :
27099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_futex" >&5
27102 $as_echo "$glib_cv_futex" >&6; }
27103 if test x"$glib_cv_futex" = xyes; then
27105 $as_echo "#define HAVE_FUTEX 1" >>confdefs.h
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd(2) system call" >&5
27110 $as_echo_n "checking for eventfd(2) system call... " >&6; }
27111 if ${glib_cv_eventfd+:} false; then :
27112 $as_echo_n "(cached) " >&6
27114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27115 /* end confdefs.h. */
27117 #include <sys/eventfd.h>
27118 #include <unistd.h>
27127 eventfd (0, EFD_CLOEXEC);
27135 if ac_fn_c_try_compile "$LINENO"; then :
27136 glib_cv_eventfd=yes
27140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_eventfd" >&5
27143 $as_echo "$glib_cv_eventfd" >&6; }
27144 if test x"$glib_cv_eventfd" = x"yes"; then
27146 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
27149 if test "$glib_cv_eventfd" = "yes"; then
27151 HAVE_EVENTFD_FALSE='#'
27153 HAVE_EVENTFD_TRUE='#'
27154 HAVE_EVENTFD_FALSE=
27159 glib_poll_includes="
27160 #include <sys/types.h>
27161 #include <sys/poll.h>
27164 if test $ac_cv_header_sys_types_h = yes &&
27165 test $ac_cv_header_sys_poll_h = yes ; then
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLIN" >&5
27168 $as_echo_n "checking value of POLLIN... " >&6; }
27169 if ${glib_cv_value_POLLIN+:} false; then :
27170 $as_echo_n "(cached) " >&6
27172 if ac_fn_c_compute_int "$LINENO" "POLLIN" "glib_cv_value_POLLIN" "$glib_poll_includes"; then :
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLIN" >&5
27181 $as_echo "$glib_cv_value_POLLIN" >&6; }
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLOUT" >&5
27184 $as_echo_n "checking value of POLLOUT... " >&6; }
27185 if ${glib_cv_value_POLLOUT+:} false; then :
27186 $as_echo_n "(cached) " >&6
27188 if ac_fn_c_compute_int "$LINENO" "POLLOUT" "glib_cv_value_POLLOUT" "$glib_poll_includes"; then :
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLOUT" >&5
27197 $as_echo "$glib_cv_value_POLLOUT" >&6; }
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLPRI" >&5
27200 $as_echo_n "checking value of POLLPRI... " >&6; }
27201 if ${glib_cv_value_POLLPRI+:} false; then :
27202 $as_echo_n "(cached) " >&6
27204 if ac_fn_c_compute_int "$LINENO" "POLLPRI" "glib_cv_value_POLLPRI" "$glib_poll_includes"; then :
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLPRI" >&5
27213 $as_echo "$glib_cv_value_POLLPRI" >&6; }
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLERR" >&5
27216 $as_echo_n "checking value of POLLERR... " >&6; }
27217 if ${glib_cv_value_POLLERR+:} false; then :
27218 $as_echo_n "(cached) " >&6
27220 if ac_fn_c_compute_int "$LINENO" "POLLERR" "glib_cv_value_POLLERR" "$glib_poll_includes"; then :
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLERR" >&5
27229 $as_echo "$glib_cv_value_POLLERR" >&6; }
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLHUP" >&5
27232 $as_echo_n "checking value of POLLHUP... " >&6; }
27233 if ${glib_cv_value_POLLHUP+:} false; then :
27234 $as_echo_n "(cached) " >&6
27236 if ac_fn_c_compute_int "$LINENO" "POLLHUP" "glib_cv_value_POLLHUP" "$glib_poll_includes"; then :
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLHUP" >&5
27245 $as_echo "$glib_cv_value_POLLHUP" >&6; }
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLNVAL" >&5
27248 $as_echo_n "checking value of POLLNVAL... " >&6; }
27249 if ${glib_cv_value_POLLNVAL+:} false; then :
27250 $as_echo_n "(cached) " >&6
27252 if ac_fn_c_compute_int "$LINENO" "POLLNVAL" "glib_cv_value_POLLNVAL" "$glib_poll_includes"; then :
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLNVAL" >&5
27261 $as_echo "$glib_cv_value_POLLNVAL" >&6; }
27263 if $glib_failed ; then
27264 as_fn_error $? "Could not determine values for POLL* constants" "$LINENO" 5
27267 glib_cv_value_POLLIN=1
27268 glib_cv_value_POLLOUT=4
27269 glib_cv_value_POLLPRI=2
27270 glib_cv_value_POLLERR=8
27271 glib_cv_value_POLLHUP=16
27272 glib_cv_value_POLLNVAL=32
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll" >&5
27276 $as_echo_n "checking for broken poll... " >&6; }
27277 if test "$cross_compiling" = yes; then :
27278 broken_poll="no (cross compiling)"
27280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27281 /* end confdefs.h. */
27283 #include <stdlib.h>
27286 #ifdef HAVE_SYS_POLL_H
27287 #include <sys/poll.h>
27290 struct pollfd fds[1];
27292 fd = open("/dev/null", 1);
27294 fds[0].events = POLLIN;
27295 fds[0].revents = 0;
27296 if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
27297 exit(1); /* Does not work for devices -- fail */
27302 if ac_fn_c_try_run "$LINENO"; then :
27307 $as_echo "#define BROKEN_POLL 1" >>confdefs.h
27310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27311 conftest.$ac_objext conftest.beam conftest.$ac_ext
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $broken_poll" >&5
27315 $as_echo "$broken_poll" >&6; }
27318 PCRE_REQUIRED_VERSION=8.11
27320 # Check if we should use the internal or the system-supplied pcre
27322 # Check whether --with-pcre was given.
27323 if test "${with_pcre+set}" = set; then :
27324 withval=$with_pcre;
27328 if test "x$with_pcre" = xsystem; then
27329 USE_SYSTEM_PCRE_TRUE=
27330 USE_SYSTEM_PCRE_FALSE='#'
27332 USE_SYSTEM_PCRE_TRUE='#'
27333 USE_SYSTEM_PCRE_FALSE=
27337 if test "x$with_pcre" = xsystem; then
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
27341 $as_echo_n "checking for PCRE... " >&6; }
27343 if test -n "$PCRE_CFLAGS"; then
27344 pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
27345 elif test -n "$PKG_CONFIG"; then
27346 if test -n "$PKG_CONFIG" && \
27347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5
27348 ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5
27350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27351 test $ac_status = 0; }; then
27352 pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null`
27359 if test -n "$PCRE_LIBS"; then
27360 pkg_cv_PCRE_LIBS="$PCRE_LIBS"
27361 elif test -n "$PKG_CONFIG"; then
27362 if test -n "$PKG_CONFIG" && \
27363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5
27364 ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5
27366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27367 test $ac_status = 0; }; then
27368 pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null`
27378 if test $pkg_failed = yes; then
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27380 $as_echo "no" >&6; }
27382 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27383 _pkg_short_errors_supported=yes
27385 _pkg_short_errors_supported=no
27387 if test $_pkg_short_errors_supported = yes; then
27388 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1`
27390 PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1`
27392 # Put the nasty error message in config.log where it belongs
27393 echo "$PCRE_PKG_ERRORS" >&5
27395 as_fn_error $? "Package requirements (libpcre >= $PCRE_REQUIRED_VERSION) were not met:
27399 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27400 installed software in a non-standard prefix.
27402 Alternatively, you may set the environment variables PCRE_CFLAGS
27403 and PCRE_LIBS to avoid the need to call pkg-config.
27404 See the pkg-config man page for more details." "$LINENO" 5
27406 elif test $pkg_failed = untried; then
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27408 $as_echo "no" >&6; }
27409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27411 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
27412 is in your PATH or set the PKG_CONFIG environment variable to the full
27413 path to pkg-config.
27415 Alternatively, you may set the environment variables PCRE_CFLAGS
27416 and PCRE_LIBS to avoid the need to call pkg-config.
27417 See the pkg-config man page for more details.
27419 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27420 See \`config.log' for more details" "$LINENO" 5; }
27423 PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
27424 PCRE_LIBS=$pkg_cv_PCRE_LIBS
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27426 $as_echo "yes" >&6; }
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Unicode support in PCRE" >&5
27430 $as_echo_n "checking for Unicode support in PCRE... " >&6; }
27431 if ${glib_cv_pcre_has_unicode+:} false; then :
27432 $as_echo_n "(cached) " >&6
27435 glib_save_CFLAGS="$CFLAGS"
27436 glib_save_LIBS="$LIBS"
27437 CFLAGS="$CFLAGS $PCRE_CFLAGS" LIBS="$PCRE_LIBS"
27438 if test "$cross_compiling" = yes; then :
27439 glib_cv_pcre_has_unicode=yes
27441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27442 /* end confdefs.h. */
27446 pcre_config (PCRE_CONFIG_UTF8, &support);
27449 pcre_config (PCRE_CONFIG_UNICODE_PROPERTIES, &support);
27455 if ac_fn_c_try_run "$LINENO"; then :
27456 glib_cv_pcre_has_unicode=yes
27458 glib_cv_pcre_has_unicode=no
27460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27461 conftest.$ac_objext conftest.beam conftest.$ac_ext
27464 CFLAGS="$glib_save_CFLAGS"
27465 LIBS="$glib_save_LIBS"
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_pcre_has_unicode" >&5
27469 $as_echo "$glib_cv_pcre_has_unicode" >&6; }
27470 if test "$glib_cv_pcre_has_unicode" = "no"; then
27471 as_fn_error $? "*** The system-supplied PCRE does not support Unicode properties or UTF-8." "$LINENO" 5
27476 $as_echo "#define USE_SYSTEM_PCRE /**/" >>confdefs.h
27478 PCRE_REQUIRES=libpcre
27481 # If using gcc 4 pass -Wno-pointer-sign when compiling the internal PCRE
27482 if test x"$GCC" = xyes; then
27483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wno-pointer-sign" >&5
27484 $as_echo_n "checking whether compiler understands -Wno-pointer-sign... " >&6; }
27485 save_CFLAGS="$CFLAGS"
27486 CFLAGS="$CFLAGS -Wno-pointer-sign"
27487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27488 /* end confdefs.h. */
27498 if ac_fn_c_try_compile "$LINENO"; then :
27499 PCRE_WARN_CFLAGS="$PCRE_WARN_CFLAGS -Wno-pointer-sign"
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27501 $as_echo "yes" >&6; }
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27504 $as_echo "no" >&6; }
27506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27507 CFLAGS="$save_CFLAGS"
27515 G_LIBS_EXTRA="-luser32 -lkernel32"
27518 G_LIBS_EXTRA="-lws2_32 -lole32 -lwinmm -lshlwapi"
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EILSEQ" >&5
27528 $as_echo_n "checking for EILSEQ... " >&6; }
27529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27530 /* end confdefs.h. */
27538 int error = EILSEQ;
27544 if ac_fn_c_try_compile "$LINENO"; then :
27549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_eilseq" >&5
27551 $as_echo "$have_eilseq" >&6; }
27554 if test $cross_compiling = yes; then
27555 CROSS_COMPILING_TRUE=
27556 CROSS_COMPILING_FALSE='#'
27558 CROSS_COMPILING_TRUE='#'
27559 CROSS_COMPILING_FALSE=
27563 if test $cross_compiling = yes; then
27564 # Extract the first word of "glib-genmarshal", so it can be a program name with args.
27565 set dummy glib-genmarshal; ac_word=$2
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27567 $as_echo_n "checking for $ac_word... " >&6; }
27568 if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
27569 $as_echo_n "(cached) " >&6
27571 case $GLIB_GENMARSHAL in
27573 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
27576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27577 for as_dir in $PATH
27580 test -z "$as_dir" && as_dir=.
27581 for ac_exec_ext in '' $ac_executable_extensions; do
27582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27583 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
27584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27591 test -z "$ac_cv_path_GLIB_GENMARSHAL" && ac_cv_path_GLIB_GENMARSHAL="no"
27595 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
27596 if test -n "$GLIB_GENMARSHAL"; then
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
27598 $as_echo "$GLIB_GENMARSHAL" >&6; }
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27601 $as_echo "no" >&6; }
27605 if test x$GLIB_GENMARSHAL = xno; then
27606 as_fn_error $? "Could not find a glib-genmarshal in your PATH" "$LINENO" 5
27609 # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
27610 set dummy glib-compile-schemas; ac_word=$2
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27612 $as_echo_n "checking for $ac_word... " >&6; }
27613 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
27614 $as_echo_n "(cached) " >&6
27616 case $GLIB_COMPILE_SCHEMAS in
27618 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
27621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27622 for as_dir in $PATH
27625 test -z "$as_dir" && as_dir=.
27626 for ac_exec_ext in '' $ac_executable_extensions; do
27627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27628 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
27629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27636 test -z "$ac_cv_path_GLIB_COMPILE_SCHEMAS" && ac_cv_path_GLIB_COMPILE_SCHEMAS="no"
27640 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
27641 if test -n "$GLIB_COMPILE_SCHEMAS"; then
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
27643 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27646 $as_echo "no" >&6; }
27650 if test x$GLIB_COMPILE_SCHEMAS = xno; then
27651 as_fn_error $? "Could not find a glib-compile-schemas in your PATH" "$LINENO" 5
27654 # Extract the first word of "glib-compile-resources", so it can be a program name with args.
27655 set dummy glib-compile-resources; ac_word=$2
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27657 $as_echo_n "checking for $ac_word... " >&6; }
27658 if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
27659 $as_echo_n "(cached) " >&6
27661 case $GLIB_COMPILE_RESOURCES in
27663 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
27666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27667 for as_dir in $PATH
27670 test -z "$as_dir" && as_dir=.
27671 for ac_exec_ext in '' $ac_executable_extensions; do
27672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27673 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
27674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27681 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
27685 GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
27686 if test -n "$GLIB_COMPILE_RESOURCES"; then
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
27688 $as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27691 $as_echo "no" >&6; }
27695 if test x$GLIB_COMPILE_RESOURCES = xno; then
27696 as_fn_error $? "Could not find a glib-compile-resources in your PATH" "$LINENO" 5
27704 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
27705 set dummy gtkdoc-check; ac_word=$2
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27707 $as_echo_n "checking for $ac_word... " >&6; }
27708 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
27709 $as_echo_n "(cached) " >&6
27711 case $GTKDOC_CHECK in
27713 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
27716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27717 for as_dir in $PATH
27720 test -z "$as_dir" && as_dir=.
27721 for ac_exec_ext in '' $ac_executable_extensions; do
27722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27723 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
27724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27734 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
27735 if test -n "$GTKDOC_CHECK"; then
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
27737 $as_echo "$GTKDOC_CHECK" >&6; }
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27740 $as_echo "no" >&6; }
27744 for ac_prog in gtkdoc-rebase
27746 # Extract the first word of "$ac_prog", so it can be a program name with args.
27747 set dummy $ac_prog; ac_word=$2
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27749 $as_echo_n "checking for $ac_word... " >&6; }
27750 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
27751 $as_echo_n "(cached) " >&6
27753 case $GTKDOC_REBASE in
27755 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
27758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27759 for as_dir in $PATH
27762 test -z "$as_dir" && as_dir=.
27763 for ac_exec_ext in '' $ac_executable_extensions; do
27764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27765 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
27766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27776 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
27777 if test -n "$GTKDOC_REBASE"; then
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
27779 $as_echo "$GTKDOC_REBASE" >&6; }
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27782 $as_echo "no" >&6; }
27786 test -n "$GTKDOC_REBASE" && break
27788 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
27790 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
27791 set dummy gtkdoc-mkpdf; ac_word=$2
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27793 $as_echo_n "checking for $ac_word... " >&6; }
27794 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
27795 $as_echo_n "(cached) " >&6
27797 case $GTKDOC_MKPDF in
27799 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
27802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27803 for as_dir in $PATH
27806 test -z "$as_dir" && as_dir=.
27807 for ac_exec_ext in '' $ac_executable_extensions; do
27808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27809 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
27810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27820 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
27821 if test -n "$GTKDOC_MKPDF"; then
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
27823 $as_echo "$GTKDOC_MKPDF" >&6; }
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27826 $as_echo "no" >&6; }
27832 # Check whether --with-html-dir was given.
27833 if test "${with_html_dir+set}" = set; then :
27834 withval=$with_html_dir;
27836 with_html_dir='${datadir}/gtk-doc/html'
27839 HTML_DIR="$with_html_dir"
27842 # Check whether --enable-gtk-doc was given.
27843 if test "${enable_gtk_doc+set}" = set; then :
27844 enableval=$enable_gtk_doc;
27850 if test x$enable_gtk_doc = xyes; then
27851 if test -n "$PKG_CONFIG" && \
27852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.15\""; } >&5
27853 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.15") 2>&5
27855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27856 test $ac_status = 0; }; then
27859 as_fn_error $? "You need to have gtk-doc >= 1.15 installed to build $PACKAGE_NAME" "$LINENO" 5
27861 if test "x$PACKAGE_NAME" != "xglib"; then
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
27865 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
27867 if test -n "$GTKDOC_DEPS_CFLAGS"; then
27868 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
27869 elif test -n "$PKG_CONFIG"; then
27870 if test -n "$PKG_CONFIG" && \
27871 { { $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
27872 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
27874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27875 test $ac_status = 0; }; then
27876 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
27883 if test -n "$GTKDOC_DEPS_LIBS"; then
27884 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
27885 elif test -n "$PKG_CONFIG"; then
27886 if test -n "$PKG_CONFIG" && \
27887 { { $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
27888 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
27890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27891 test $ac_status = 0; }; then
27892 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
27902 if test $pkg_failed = yes; then
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27904 $as_echo "no" >&6; }
27906 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27907 _pkg_short_errors_supported=yes
27909 _pkg_short_errors_supported=no
27911 if test $_pkg_short_errors_supported = yes; then
27912 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
27914 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
27916 # Put the nasty error message in config.log where it belongs
27917 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
27919 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
27921 $GTKDOC_DEPS_PKG_ERRORS
27923 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27924 installed software in a non-standard prefix.
27926 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
27927 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
27928 See the pkg-config man page for more details." "$LINENO" 5
27930 elif test $pkg_failed = untried; then
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27932 $as_echo "no" >&6; }
27933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27935 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
27936 is in your PATH or set the PKG_CONFIG environment variable to the full
27937 path to pkg-config.
27939 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
27940 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
27941 See the pkg-config man page for more details.
27943 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27944 See \`config.log' for more details" "$LINENO" 5; }
27947 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
27948 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27950 $as_echo "yes" >&6; }
27956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
27957 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
27959 $as_echo "$enable_gtk_doc" >&6; }
27961 # Check whether --enable-gtk-doc-html was given.
27962 if test "${enable_gtk_doc_html+set}" = set; then :
27963 enableval=$enable_gtk_doc_html;
27965 enable_gtk_doc_html=yes
27968 # Check whether --enable-gtk-doc-pdf was given.
27969 if test "${enable_gtk_doc_pdf+set}" = set; then :
27970 enableval=$enable_gtk_doc_pdf;
27972 enable_gtk_doc_pdf=no
27976 if test -z "$GTKDOC_MKPDF"; then
27977 enable_gtk_doc_pdf=no
27981 if test x$enable_gtk_doc = xyes; then
27982 ENABLE_GTK_DOC_TRUE=
27983 ENABLE_GTK_DOC_FALSE='#'
27985 ENABLE_GTK_DOC_TRUE='#'
27986 ENABLE_GTK_DOC_FALSE=
27989 if test x$enable_gtk_doc_html = xyes; then
27990 GTK_DOC_BUILD_HTML_TRUE=
27991 GTK_DOC_BUILD_HTML_FALSE='#'
27993 GTK_DOC_BUILD_HTML_TRUE='#'
27994 GTK_DOC_BUILD_HTML_FALSE=
27997 if test x$enable_gtk_doc_pdf = xyes; then
27998 GTK_DOC_BUILD_PDF_TRUE=
27999 GTK_DOC_BUILD_PDF_FALSE='#'
28001 GTK_DOC_BUILD_PDF_TRUE='#'
28002 GTK_DOC_BUILD_PDF_FALSE=
28005 if test -n "$LIBTOOL"; then
28006 GTK_DOC_USE_LIBTOOL_TRUE=
28007 GTK_DOC_USE_LIBTOOL_FALSE='#'
28009 GTK_DOC_USE_LIBTOOL_TRUE='#'
28010 GTK_DOC_USE_LIBTOOL_FALSE=
28013 if test -n "$GTKDOC_REBASE"; then
28014 GTK_DOC_USE_REBASE_TRUE=
28015 GTK_DOC_USE_REBASE_FALSE='#'
28017 GTK_DOC_USE_REBASE_TRUE='#'
28018 GTK_DOC_USE_REBASE_FALSE=
28023 # Check whether --enable-man was given.
28024 if test "${enable_man+set}" = set; then :
28025 enableval=$enable_man; enable_man=yes
28031 if test "${enable_man}" != no; then
28032 # Extract the first word of "xsltproc", so it can be a program name with args.
28033 set dummy xsltproc; ac_word=$2
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28035 $as_echo_n "checking for $ac_word... " >&6; }
28036 if ${ac_cv_path_XSLTPROC+:} false; then :
28037 $as_echo_n "(cached) " >&6
28041 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
28044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28045 for as_dir in $PATH
28048 test -z "$as_dir" && as_dir=.
28049 for ac_exec_ext in '' $ac_executable_extensions; do
28050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28051 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
28052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28062 XSLTPROC=$ac_cv_path_XSLTPROC
28063 if test -n "$XSLTPROC"; then
28064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
28065 $as_echo "$XSLTPROC" >&6; }
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28068 $as_echo "no" >&6; }
28072 if test -z "$XSLTPROC"; then
28077 # check for the presence of the XML catalog
28079 # Check whether --with-xml-catalog was given.
28080 if test "${with_xml_catalog+set}" = set; then :
28081 withval=$with_xml_catalog;
28083 with_xml_catalog=/etc/xml/catalog
28086 jh_found_xmlcatalog=true
28087 XML_CATALOG_FILE="$with_xml_catalog"
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
28090 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
28091 if test -f "$XML_CATALOG_FILE"; then
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28093 $as_echo "found" >&6; }
28095 jh_found_xmlcatalog=false
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28097 $as_echo "not found" >&6; }
28100 # check for the xmlcatalog program
28101 # Extract the first word of "xmlcatalog", so it can be a program name with args.
28102 set dummy xmlcatalog; ac_word=$2
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28104 $as_echo_n "checking for $ac_word... " >&6; }
28105 if ${ac_cv_path_XMLCATALOG+:} false; then :
28106 $as_echo_n "(cached) " >&6
28108 case $XMLCATALOG in
28110 ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
28113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28114 for as_dir in $PATH
28117 test -z "$as_dir" && as_dir=.
28118 for ac_exec_ext in '' $ac_executable_extensions; do
28119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28120 ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
28121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28128 test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
28132 XMLCATALOG=$ac_cv_path_XMLCATALOG
28133 if test -n "$XMLCATALOG"; then
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
28135 $as_echo "$XMLCATALOG" >&6; }
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28138 $as_echo "no" >&6; }
28142 if test "x$XMLCATALOG" = xno; then
28143 jh_found_xmlcatalog=false
28146 if $jh_found_xmlcatalog; then
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
28154 $as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; }
28155 if $jh_found_xmlcatalog && \
28156 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5
28157 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
28159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28160 test $ac_status = 0; }; then
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28162 $as_echo "found" >&6; }
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28165 $as_echo "not found" >&6; }
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5
28171 $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
28172 if $jh_found_xmlcatalog && \
28173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
28174 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
28176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28177 test $ac_status = 0; }; then
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28179 $as_echo "found" >&6; }
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28182 $as_echo "not found" >&6; }
28188 if test x$enable_man != xno; then
28190 ENABLE_MAN_FALSE='#'
28192 ENABLE_MAN_TRUE='#'
28198 # Check whether --enable-dtrace was given.
28199 if test "${enable_dtrace+set}" = set; then :
28200 enableval=$enable_dtrace;
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include dtrace tracing support" >&5
28205 $as_echo_n "checking whether to include dtrace tracing support... " >&6; }
28206 if test "x$enable_dtrace" != xno; then
28207 if test x$glib_have_carbon = xyes; then
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not yet compatible with MacOS dtrace)" >&5
28209 $as_echo "no (not yet compatible with MacOS dtrace)" >&6; }
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28212 $as_echo "yes" >&6; }
28213 for ac_prog in dtrace
28215 # Extract the first word of "$ac_prog", so it can be a program name with args.
28216 set dummy $ac_prog; ac_word=$2
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28218 $as_echo_n "checking for $ac_word... " >&6; }
28219 if ${ac_cv_prog_DTRACE+:} false; then :
28220 $as_echo_n "(cached) " >&6
28222 if test -n "$DTRACE"; then
28223 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
28225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28226 for as_dir in $PATH
28229 test -z "$as_dir" && as_dir=.
28230 for ac_exec_ext in '' $ac_executable_extensions; do
28231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28232 ac_cv_prog_DTRACE="$ac_prog"
28233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28242 DTRACE=$ac_cv_prog_DTRACE
28243 if test -n "$DTRACE"; then
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
28245 $as_echo "$DTRACE" >&6; }
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28248 $as_echo "no" >&6; }
28252 test -n "$DTRACE" && break
28255 if test -z "$DTRACE"; then
28256 if test "x$enable_dtrace" = xyes; then
28257 as_fn_error $? "dtrace not found" "$LINENO" 5
28260 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
28261 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
28264 if test "x$enable_dtrace" = xyes; then
28265 as_fn_error $? "dtrace support needs sys/sdt.h header" "$LINENO" 5
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28274 $as_echo "no" >&6; }
28276 if test "x$have_dtrace" = xyes; then
28278 $as_echo "#define HAVE_DTRACE 1" >>confdefs.h
28281 if test x$have_dtrace = xyes ; then
28282 ENABLE_DTRACE_TRUE=
28283 ENABLE_DTRACE_FALSE='#'
28285 ENABLE_DTRACE_TRUE='#'
28286 ENABLE_DTRACE_FALSE=
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include systemtap tracing support" >&5
28291 $as_echo_n "checking whether to include systemtap tracing support... " >&6; }
28292 # Check whether --enable-systemtap was given.
28293 if test "${enable_systemtap+set}" = set; then :
28294 enableval=$enable_systemtap;
28298 if test "x$enable_systemtap" != xno -a "x$have_dtrace" = xyes; then
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_systemtap}" >&5
28302 $as_echo "${have_systemtap}" >&6; }
28304 if test x$have_systemtap = xyes; then
28305 ENABLE_SYSTEMTAP_TRUE=
28306 ENABLE_SYSTEMTAP_FALSE='#'
28308 ENABLE_SYSTEMTAP_TRUE='#'
28309 ENABLE_SYSTEMTAP_FALSE=
28314 # Check whether --with-tapset-install-dir was given.
28315 if test "${with_tapset_install_dir+set}" = set; then :
28316 withval=$with_tapset_install_dir; if test "x${withval}" = x; then
28317 ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
28319 ABS_TAPSET_DIR="${withval}"
28322 ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
28328 # Check whether --enable-gcov was given.
28329 if test "${enable_gcov+set}" = set; then :
28330 enableval=$enable_gcov; use_gcov=$enableval
28336 if test "x$use_gcov" = "xyes"; then
28337 if test "$GCC" != "yes"; then
28338 as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
28341 # Extract the first word of "shtool", so it can be a program name with args.
28342 set dummy shtool; ac_word=$2
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28344 $as_echo_n "checking for $ac_word... " >&6; }
28345 if ${ac_cv_prog_SHTOOL+:} false; then :
28346 $as_echo_n "(cached) " >&6
28348 if test -n "$SHTOOL"; then
28349 ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
28351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28352 for as_dir in $PATH
28355 test -z "$as_dir" && as_dir=.
28356 for ac_exec_ext in '' $ac_executable_extensions; do
28357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28358 ac_cv_prog_SHTOOL="shtool"
28359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28368 SHTOOL=$ac_cv_prog_SHTOOL
28369 if test -n "$SHTOOL"; then
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
28371 $as_echo "$SHTOOL" >&6; }
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28374 $as_echo "no" >&6; }
28378 case `$SHTOOL path $CC` in
28379 *ccache*) gcc_ccache=yes;;
28383 if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
28384 as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
28387 ltp_version_list="1.6 1.7 1.8 1.9"
28388 # Extract the first word of "lcov", so it can be a program name with args.
28389 set dummy lcov; ac_word=$2
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28391 $as_echo_n "checking for $ac_word... " >&6; }
28392 if ${ac_cv_prog_LTP+:} false; then :
28393 $as_echo_n "(cached) " >&6
28395 if test -n "$LTP"; then
28396 ac_cv_prog_LTP="$LTP" # Let the user override the test.
28398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28399 for as_dir in $PATH
28402 test -z "$as_dir" && as_dir=.
28403 for ac_exec_ext in '' $ac_executable_extensions; do
28404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28405 ac_cv_prog_LTP="lcov"
28406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28415 LTP=$ac_cv_prog_LTP
28416 if test -n "$LTP"; then
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
28418 $as_echo "$LTP" >&6; }
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28421 $as_echo "no" >&6; }
28425 # Extract the first word of "genhtml", so it can be a program name with args.
28426 set dummy genhtml; ac_word=$2
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28428 $as_echo_n "checking for $ac_word... " >&6; }
28429 if ${ac_cv_prog_LTP_GENHTML+:} false; then :
28430 $as_echo_n "(cached) " >&6
28432 if test -n "$LTP_GENHTML"; then
28433 ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
28435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28436 for as_dir in $PATH
28439 test -z "$as_dir" && as_dir=.
28440 for ac_exec_ext in '' $ac_executable_extensions; do
28441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28442 ac_cv_prog_LTP_GENHTML="genhtml"
28443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28452 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
28453 if test -n "$LTP_GENHTML"; then
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
28455 $as_echo "$LTP_GENHTML" >&6; }
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28458 $as_echo "no" >&6; }
28463 if test "$LTP"; then
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
28465 $as_echo_n "checking for ltp version... " >&6; }
28466 if ${glib_cv_ltp_version+:} false; then :
28467 $as_echo_n "(cached) " >&6
28470 glib_cv_ltp_version=invalid
28471 ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
28472 for ltp_check_version in $ltp_version_list; do
28473 if test "$ltp_version" = "$ltp_check_version"; then
28474 glib_cv_ltp_version="$ltp_check_version (ok)"
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_ltp_version" >&5
28480 $as_echo "$glib_cv_ltp_version" >&6; }
28482 ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
28483 as_fn_error $? "$ltp_msg" "$LINENO" 5
28486 case $glib_cv_ltp_version in
28488 ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
28489 as_fn_error $? "$ltp_msg" "$LINENO" 5
28494 if test -z "$LTP_GENHTML"; then
28495 as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
28499 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
28502 CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
28503 LDFLAGS="$LDFLAGS -lgcov"
28507 ac_config_commands="$ac_config_commands glib/glibconfig.h"
28510 # Redo enough to get guint32 and guint64 for the alignment checks below
28512 $ac_cv_sizeof_short)
28518 $ac_cv_sizeof_long)
28526 $ac_cv_sizeof_long)
28529 $ac_cv_sizeof_long_long)
28532 $ac_cv_sizeof___int64)
28537 ac_fn_c_check_type "$LINENO" "guint32" "ac_cv_type_guint32" "typedef unsigned $gint32 guint32;
28539 if test "x$ac_cv_type_guint32" = xyes; then :
28543 # The cast to long int works around a bug in the HP C Compiler,
28544 # see AC_CHECK_SIZEOF for more information.
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of guint32" >&5
28546 $as_echo_n "checking alignment of guint32... " >&6; }
28547 if ${ac_cv_alignof_guint32+:} false; then :
28548 $as_echo_n "(cached) " >&6
28550 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_guint32" "$ac_includes_default
28551 typedef unsigned $gint32 guint32;
28554 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28556 typedef struct { char x; guint32 y; } ac__type_alignof_;"; then :
28559 if test "$ac_cv_type_guint32" = yes; then
28560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28562 as_fn_error 77 "cannot compute alignment of guint32
28563 See \`config.log' for more details" "$LINENO" 5; }
28565 ac_cv_alignof_guint32=0
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_guint32" >&5
28571 $as_echo "$ac_cv_alignof_guint32" >&6; }
28575 cat >>confdefs.h <<_ACEOF
28576 #define ALIGNOF_GUINT32 $ac_cv_alignof_guint32
28580 ac_fn_c_check_type "$LINENO" "guint64" "ac_cv_type_guint64" "typedef unsigned $gint64 guint64;
28582 if test "x$ac_cv_type_guint64" = xyes; then :
28586 # The cast to long int works around a bug in the HP C Compiler,
28587 # see AC_CHECK_SIZEOF for more information.
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of guint64" >&5
28589 $as_echo_n "checking alignment of guint64... " >&6; }
28590 if ${ac_cv_alignof_guint64+:} false; then :
28591 $as_echo_n "(cached) " >&6
28593 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_guint64" "$ac_includes_default
28594 typedef unsigned $gint64 guint64;
28597 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28599 typedef struct { char x; guint64 y; } ac__type_alignof_;"; then :
28602 if test "$ac_cv_type_guint64" = yes; then
28603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28605 as_fn_error 77 "cannot compute alignment of guint64
28606 See \`config.log' for more details" "$LINENO" 5; }
28608 ac_cv_alignof_guint64=0
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_guint64" >&5
28614 $as_echo "$ac_cv_alignof_guint64" >&6; }
28618 cat >>confdefs.h <<_ACEOF
28619 #define ALIGNOF_GUINT64 $ac_cv_alignof_guint64
28623 ac_fn_c_check_type "$LINENO" "unsigned long" "ac_cv_type_unsigned_long" "$ac_includes_default"
28624 if test "x$ac_cv_type_unsigned_long" = xyes; then :
28628 # The cast to long int works around a bug in the HP C Compiler,
28629 # see AC_CHECK_SIZEOF for more information.
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of unsigned long" >&5
28631 $as_echo_n "checking alignment of unsigned long... " >&6; }
28632 if ${ac_cv_alignof_unsigned_long+:} false; then :
28633 $as_echo_n "(cached) " >&6
28635 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_unsigned_long" "$ac_includes_default
28637 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28639 typedef struct { char x; unsigned long y; } ac__type_alignof_;"; then :
28642 if test "$ac_cv_type_unsigned_long" = yes; then
28643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28645 as_fn_error 77 "cannot compute alignment of unsigned long
28646 See \`config.log' for more details" "$LINENO" 5; }
28648 ac_cv_alignof_unsigned_long=0
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_unsigned_long" >&5
28654 $as_echo "$ac_cv_alignof_unsigned_long" >&6; }
28658 cat >>confdefs.h <<_ACEOF
28659 #define ALIGNOF_UNSIGNED_LONG $ac_cv_alignof_unsigned_long
28664 # Check for libdbus1 - Optional - is only used in the GDBus test cases
28666 # 1.2.14 required for dbus_message_set_serial
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS1" >&5
28670 $as_echo_n "checking for DBUS1... " >&6; }
28672 if test -n "$DBUS1_CFLAGS"; then
28673 pkg_cv_DBUS1_CFLAGS="$DBUS1_CFLAGS"
28674 elif test -n "$PKG_CONFIG"; then
28675 if test -n "$PKG_CONFIG" && \
28676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5
28677 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5
28679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28680 test $ac_status = 0; }; then
28681 pkg_cv_DBUS1_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.14" 2>/dev/null`
28688 if test -n "$DBUS1_LIBS"; then
28689 pkg_cv_DBUS1_LIBS="$DBUS1_LIBS"
28690 elif test -n "$PKG_CONFIG"; then
28691 if test -n "$PKG_CONFIG" && \
28692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5
28693 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5
28695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28696 test $ac_status = 0; }; then
28697 pkg_cv_DBUS1_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.14" 2>/dev/null`
28707 if test $pkg_failed = yes; then
28708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28709 $as_echo "no" >&6; }
28711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28712 _pkg_short_errors_supported=yes
28714 _pkg_short_errors_supported=no
28716 if test $_pkg_short_errors_supported = yes; then
28717 DBUS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 1.2.14" 2>&1`
28719 DBUS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 1.2.14" 2>&1`
28721 # Put the nasty error message in config.log where it belongs
28722 echo "$DBUS1_PKG_ERRORS" >&5
28725 elif test $pkg_failed = untried; then
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28727 $as_echo "no" >&6; }
28730 DBUS1_CFLAGS=$pkg_cv_DBUS1_CFLAGS
28731 DBUS1_LIBS=$pkg_cv_DBUS1_LIBS
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28733 $as_echo "yes" >&6; }
28735 $as_echo "#define HAVE_DBUS1 1" >>confdefs.h
28740 if test "x$have_dbus1" = "xyes"; then
28742 HAVE_DBUS1_FALSE='#'
28744 HAVE_DBUS1_TRUE='#'
28750 # Check whether --enable-Bsymbolic was given.
28751 if test "${enable_Bsymbolic+set}" = set; then :
28752 enableval=$enable_Bsymbolic;
28754 SAVED_LDFLAGS="${LDFLAGS}"
28755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
28756 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
28757 LDFLAGS=-Wl,-Bsymbolic-functions
28758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h. */
28764 int main (void) { return 0; }
28769 if ac_fn_c_try_link "$LINENO"; then :
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28771 $as_echo "yes" >&6; }
28772 enable_Bsymbolic=yes
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28775 $as_echo "no" >&6; }
28776 enable_Bsymbolic=no
28778 rm -f core conftest.err conftest.$ac_objext \
28779 conftest$ac_exeext conftest.$ac_ext
28780 LDFLAGS="${SAVED_LDFLAGS}"
28784 if test "x${enable_Bsymbolic}" = "xyes"; then
28785 GLIB_LINK_FLAGS=-Wl,-Bsymbolic-functions
28791 # Define variables corresponding to the correct include paths to use for
28792 # in-tree building.
28796 config_h_INCLUDES='-I$(top_builddir)'
28801 # $(top_builddir)/glib: for glibconfig.h
28802 # $(top_srcdir)/glib: for glib.h
28803 # $(top_srcdir): for everything
28804 glib_INCLUDES='$(config_h_INCLUDES) -I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_srcdir)'
28809 gthread_INCLUDES='$(glib_INCLUDES)'
28814 gobject_INCLUDES='$(gthread_INCLUDES)'
28819 # $(top_srcdir)/gmodule: for gmodule.h
28820 gmodule_INCLUDES='$(glib_INCLUDES) -I$(top_srcdir)/gmodule'
28825 gio_INCLUDES='$(gmodule_INCLUDES)'
28829 ac_config_files="$ac_config_files glib-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gobject-2.0.pc gio-2.0.pc gio-unix-2.0.pc gio-windows-2.0.pc glib-zip glib-gettextize Makefile build/Makefile build/win32/Makefile build/win32/dirent/Makefile build/win32/vs9/Makefile build/win32/vs10/Makefile glib/Makefile glib/glib.stp glib/libcharset/Makefile glib/gnulib/Makefile glib/pcre/Makefile glib/update-pcre/Makefile glib/tests/Makefile gmodule/Makefile gmodule/gmoduleconf.h gobject/Makefile gobject/gobject.stp gobject/glib-mkenums gobject/tests/Makefile gthread/Makefile gio/Makefile gio/gdbus-2.0/codegen/Makefile gio/gdbus-2.0/codegen/config.py gio/xdgmime/Makefile gio/inotify/Makefile gio/fen/Makefile gio/fam/Makefile gio/win32/Makefile gio/tests/Makefile gio/tests/gdbus-object-manager-example/Makefile po/Makefile.in docs/Makefile docs/reference/Makefile docs/reference/glib/Makefile docs/reference/glib/version.xml docs/reference/gobject/Makefile docs/reference/gobject/version.xml docs/reference/gio/Makefile docs/reference/gio/gdbus-object-manager-example/Makefile docs/reference/gio/version.xml tests/Makefile tests/gobject/Makefile tests/refcount/Makefile m4macros/Makefile"
28832 ac_config_commands="$ac_config_commands chmod-scripts"
28835 # we want to invoke this macro solely so that the config.status script
28836 # and automake generated makefiles know about these generated files.
28837 # They are only needed to distcheck the package
28839 ac_config_files="$ac_config_files INSTALL README config.h.win32 glib/glibconfig.h.win32 glib/makefile.msc glib/glib.rc gmodule/makefile.msc gmodule/gmodule.rc gobject/makefile.msc gobject/gobject.rc gthread/makefile.msc gthread/gthread.rc gio/gio.rc tests/makefile.msc"
28843 cat >confcache <<\_ACEOF
28844 # This file is a shell script that caches the results of configure
28845 # tests run on this system so they can be shared between configure
28846 # scripts and configure runs, see configure's option --config-cache.
28847 # It is not useful on other systems. If it contains results you don't
28848 # want to keep, you may remove or edit it.
28850 # config.status only pays attention to the cache file if you give it
28851 # the --recheck option to rerun configure.
28853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28855 # following values.
28859 # The following way of writing the cache mishandles newlines in values,
28860 # but we know of no workaround that is simple, portable, and efficient.
28861 # So, we kill variables containing newlines.
28862 # Ultrix sh set writes to stderr and can't be redirected directly,
28863 # and sets the high bit in the cache file unless we assign to the vars.
28865 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28866 eval ac_val=\$$ac_var
28870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28874 _ | IFS | as_nl) ;; #(
28875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28876 *) { eval $ac_var=; unset $ac_var;} ;;
28882 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28883 *${as_nl}ac_space=\ *)
28884 # `set' does not quote correctly, so add quotes: double-quote
28885 # substitution turns \\\\ into \\, and sed turns \\ into \.
28888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28891 # `set' quotes correctly as required by POSIX, so do not add quotes.
28892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28903 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28905 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28906 if test -w "$cache_file"; then
28907 if test "x$cache_file" != "x/dev/null"; then
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28909 $as_echo "$as_me: updating cache $cache_file" >&6;}
28910 if test ! -f "$cache_file" || test -h "$cache_file"; then
28911 cat confcache >"$cache_file"
28913 case $cache_file in #(
28915 mv -f confcache "$cache_file"$$ &&
28916 mv -f "$cache_file"$$ "$cache_file" ;; #(
28918 mv -f confcache "$cache_file" ;;
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28930 # Let make expand exec_prefix.
28931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28933 DEFS=-DHAVE_CONFIG_H
28938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28939 # 1. Remove the extension, and $U if already installed.
28940 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28943 # will be set to the directory where LIBOBJS objects are built.
28944 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28945 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28947 LIBOBJS=$ac_libobjs
28949 LTLIBOBJS=$ac_ltlibobjs
28952 if test -n "$EXEEXT"; then
28954 am__EXEEXT_FALSE='#'
28956 am__EXEEXT_TRUE='#'
28960 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28961 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28964 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28965 as_fn_error $? "conditional \"AMDEP\" was never defined.
28966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28968 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28969 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28972 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
28973 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
28974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28976 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
28977 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
28978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28980 if test -z "${OS_WIN32_X64_TRUE}" && test -z "${OS_WIN32_X64_FALSE}"; then
28981 as_fn_error $? "conditional \"OS_WIN32_X64\" was never defined.
28982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28984 if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
28985 as_fn_error $? "conditional \"OS_UNIX\" was never defined.
28986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28988 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
28989 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
28990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28992 if test -z "${OS_CARBON_TRUE}" && test -z "${OS_CARBON_FALSE}"; then
28993 as_fn_error $? "conditional \"OS_CARBON\" was never defined.
28994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28996 if test -z "${OS_COCOA_TRUE}" && test -z "${OS_COCOA_FALSE}"; then
28997 as_fn_error $? "conditional \"OS_COCOA\" was never defined.
28998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29000 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
29001 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
29002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29004 if test -z "${HAVE_GLIB_RUNTIME_LIBDIR_TRUE}" && test -z "${HAVE_GLIB_RUNTIME_LIBDIR_FALSE}"; then
29005 as_fn_error $? "conditional \"HAVE_GLIB_RUNTIME_LIBDIR\" was never defined.
29006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29008 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29009 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
29010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29012 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
29013 as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
29014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29017 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
29018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29020 if test -z "${OS_WIN32_AND_DLL_COMPILATION_TRUE}" && test -z "${OS_WIN32_AND_DLL_COMPILATION_FALSE}"; then
29021 as_fn_error $? "conditional \"OS_WIN32_AND_DLL_COMPILATION\" was never defined.
29022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29024 if test -z "${HAVE_GNUC_VISIBILITY_TRUE}" && test -z "${HAVE_GNUC_VISIBILITY_FALSE}"; then
29025 as_fn_error $? "conditional \"HAVE_GNUC_VISIBILITY\" was never defined.
29026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29028 if test -z "${HAVE_SUNSTUDIO_VISIBILITY_TRUE}" && test -z "${HAVE_SUNSTUDIO_VISIBILITY_FALSE}"; then
29029 as_fn_error $? "conditional \"HAVE_SUNSTUDIO_VISIBILITY\" was never defined.
29030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29033 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
29034 as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
29035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29037 if test -z "${HAVE_GOOD_PRINTF_TRUE}" && test -z "${HAVE_GOOD_PRINTF_FALSE}"; then
29038 as_fn_error $? "conditional \"HAVE_GOOD_PRINTF\" was never defined.
29039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29041 if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
29042 as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined.
29043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29045 if test -z "${HAVE_FEN_TRUE}" && test -z "${HAVE_FEN_FALSE}"; then
29046 as_fn_error $? "conditional \"HAVE_FEN\" was never defined.
29047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29049 if test -z "${HAVE_FAM_TRUE}" && test -z "${HAVE_FAM_FALSE}"; then
29050 as_fn_error $? "conditional \"HAVE_FAM\" was never defined.
29051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29053 if test -z "${ENABLE_TIMELOOP_TRUE}" && test -z "${ENABLE_TIMELOOP_FALSE}"; then
29054 as_fn_error $? "conditional \"ENABLE_TIMELOOP\" was never defined.
29055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29057 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
29058 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
29059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29061 if test -z "${HAVE_EVENTFD_TRUE}" && test -z "${HAVE_EVENTFD_FALSE}"; then
29062 as_fn_error $? "conditional \"HAVE_EVENTFD\" was never defined.
29063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29065 if test -z "${USE_SYSTEM_PCRE_TRUE}" && test -z "${USE_SYSTEM_PCRE_FALSE}"; then
29066 as_fn_error $? "conditional \"USE_SYSTEM_PCRE\" was never defined.
29067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29069 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
29070 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
29071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29073 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
29074 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
29075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29077 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
29078 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
29079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29081 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
29082 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
29083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29085 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
29086 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
29087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29089 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
29090 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
29091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29093 if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
29094 as_fn_error $? "conditional \"ENABLE_MAN\" was never defined.
29095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29097 if test -z "${ENABLE_DTRACE_TRUE}" && test -z "${ENABLE_DTRACE_FALSE}"; then
29098 as_fn_error $? "conditional \"ENABLE_DTRACE\" was never defined.
29099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29101 if test -z "${ENABLE_SYSTEMTAP_TRUE}" && test -z "${ENABLE_SYSTEMTAP_FALSE}"; then
29102 as_fn_error $? "conditional \"ENABLE_SYSTEMTAP\" was never defined.
29103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29105 if test -z "${HAVE_DBUS1_TRUE}" && test -z "${HAVE_DBUS1_FALSE}"; then
29106 as_fn_error $? "conditional \"HAVE_DBUS1\" was never defined.
29107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29110 : "${CONFIG_STATUS=./config.status}"
29112 ac_clean_files_save=$ac_clean_files
29113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29115 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29117 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29119 # Generated by $as_me.
29120 # Run this file to recreate the current configuration.
29121 # Compiler output produced by configure, useful for debugging
29122 # configure, is in config.log if it exists.
29125 ac_cs_recheck=false
29128 SHELL=\${CONFIG_SHELL-$SHELL}
29131 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29132 ## -------------------- ##
29133 ## M4sh Initialization. ##
29134 ## -------------------- ##
29136 # Be more Bourne compatible
29137 DUALCASE=1; export DUALCASE # for MKS sh
29138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29141 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29142 # is contrary to our usage. Disable this feature.
29143 alias -g '${1+"$@"}'='"$@"'
29144 setopt NO_GLOB_SUBST
29146 case `(set -o) 2>/dev/null` in #(
29158 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29159 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29162 # Prefer a ksh shell builtin over an external printf program on Solaris,
29163 # but without wasting forks for bash or zsh.
29164 if test -z "$BASH_VERSION$ZSH_VERSION" \
29165 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29166 as_echo='print -r --'
29167 as_echo_n='print -rn --'
29168 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29169 as_echo='printf %s\n'
29170 as_echo_n='printf %s'
29172 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29173 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29174 as_echo_n='/usr/ucb/echo -n'
29176 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29177 as_echo_n_body='eval
29181 expr "X$arg" : "X\\(.*\\)$as_nl";
29182 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29184 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29186 export as_echo_n_body
29187 as_echo_n='sh -c $as_echo_n_body as_echo'
29189 export as_echo_body
29190 as_echo='sh -c $as_echo_body as_echo'
29193 # The user is always right.
29194 if test "${PATH_SEPARATOR+set}" != set; then
29196 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29197 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29204 # We need space, tab and new line, in precisely that order. Quoting is
29205 # there to prevent editors from complaining about space-tab.
29206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29207 # splitting by setting IFS to empty value.)
29210 # Find who we are. Look in the path if we contain no directory separator.
29213 *[\\/]* ) as_myself=$0 ;;
29214 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29215 for as_dir in $PATH
29218 test -z "$as_dir" && as_dir=.
29219 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29225 # We did not find ourselves, most probably we were run as `sh COMMAND'
29226 # in which case we are not to be found in the path.
29227 if test "x$as_myself" = x; then
29230 if test ! -f "$as_myself"; then
29231 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29235 # Unset variables that we do not need and which cause bugs (e.g. in
29236 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29237 # suppresses any "Segmentation fault" message there. '((' could
29238 # trigger a bug in pdksh 5.2.14.
29239 for as_var in BASH_ENV ENV MAIL MAILPATH
29240 do eval test x\${$as_var+set} = xset \
29241 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29257 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29258 # ----------------------------------------
29259 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29260 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29261 # script with STATUS, using 1 if that was 0.
29264 as_status=$1; test $as_status -eq 0 && as_status=1
29266 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29267 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29269 $as_echo "$as_me: error: $2" >&2
29270 as_fn_exit $as_status
29274 # as_fn_set_status STATUS
29275 # -----------------------
29276 # Set $? to STATUS, without forking.
29277 as_fn_set_status ()
29280 } # as_fn_set_status
29282 # as_fn_exit STATUS
29283 # -----------------
29284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29288 as_fn_set_status $1
29294 # Portably unset VAR.
29297 { eval $1=; unset $1;}
29299 as_unset=as_fn_unset
29300 # as_fn_append VAR VALUE
29301 # ----------------------
29302 # Append the text in VALUE to the end of the definition contained in VAR. Take
29303 # advantage of any shell optimizations that allow amortized linear growth over
29304 # repeated appends, instead of the typical quadratic growth present in naive
29306 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29307 eval 'as_fn_append ()
29318 # as_fn_arith ARG...
29319 # ------------------
29320 # Perform arithmetic evaluation on the ARGs, and store the result in the
29321 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29322 # must be portable across $(()) and expr.
29323 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29324 eval 'as_fn_arith ()
29331 as_val=`expr "$@" || test $? -eq 1`
29336 if expr a : '\(a\)' >/dev/null 2>&1 &&
29337 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29343 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29344 as_basename=basename
29349 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29355 as_me=`$as_basename -- "$0" ||
29356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29357 X"$0" : 'X\(//\)$' \| \
29358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29360 sed '/^.*\/\([^/][^/]*\)\/*$/{
29374 # Avoid depending upon Character Ranges.
29375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29378 as_cr_digits='0123456789'
29379 as_cr_alnum=$as_cr_Letters$as_cr_digits
29381 ECHO_C= ECHO_N= ECHO_T=
29382 case `echo -n x` in #(((((
29384 case `echo 'xy\c'` in
29385 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29387 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29394 rm -f conf$$ conf$$.exe conf$$.file
29395 if test -d conf$$.dir; then
29396 rm -f conf$$.dir/conf$$.file
29399 mkdir conf$$.dir 2>/dev/null
29401 if (echo >conf$$.file) 2>/dev/null; then
29402 if ln -s conf$$.file conf$$ 2>/dev/null; then
29404 # ... but there are two gotchas:
29405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29407 # In both cases, we have to default to `cp -p'.
29408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29410 elif ln conf$$.file conf$$ 2>/dev/null; then
29418 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29419 rmdir conf$$.dir 2>/dev/null
29424 # Create "$as_dir" as a directory, including parents if necessary.
29429 -*) as_dir=./$as_dir;;
29431 test -d "$as_dir" || eval $as_mkdir_p || {
29435 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29436 *) as_qdir=$as_dir;;
29438 as_dirs="'$as_qdir' $as_dirs"
29439 as_dir=`$as_dirname -- "$as_dir" ||
29440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29441 X"$as_dir" : 'X\(//\)[^/]' \| \
29442 X"$as_dir" : 'X\(//\)$' \| \
29443 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29444 $as_echo X"$as_dir" |
29445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29449 /^X\(\/\/\)[^/].*/{
29462 test -d "$as_dir" && break
29464 test -z "$as_dirs" || eval "mkdir $as_dirs"
29465 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29469 if mkdir -p . 2>/dev/null; then
29470 as_mkdir_p='mkdir -p "$as_dir"'
29472 test -d ./-p && rmdir ./-p
29476 if test -x / >/dev/null 2>&1; then
29477 as_test_x='test -x'
29479 if ls -dL / >/dev/null 2>&1; then
29486 if test -d "$1"; then
29492 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29493 ???[sx]*):;;*)false;;esac;fi
29497 as_executable_p=$as_test_x
29499 # Sed expression to map a string onto a valid CPP name.
29500 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29502 # Sed expression to map a string onto a valid variable name.
29503 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29507 ## ----------------------------------- ##
29508 ## Main body of $CONFIG_STATUS script. ##
29509 ## ----------------------------------- ##
29511 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29514 # Save the log message, to keep $0 and so on meaningful, and to
29515 # report actual input values of CONFIG_FILES etc. instead of their
29516 # values after options handling.
29518 This file was extended by glib $as_me 2.32.3, which was
29519 generated by GNU Autoconf 2.68. Invocation command line was
29521 CONFIG_FILES = $CONFIG_FILES
29522 CONFIG_HEADERS = $CONFIG_HEADERS
29523 CONFIG_LINKS = $CONFIG_LINKS
29524 CONFIG_COMMANDS = $CONFIG_COMMANDS
29527 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29532 case $ac_config_files in *"
29533 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29536 case $ac_config_headers in *"
29537 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29542 # Files that config.status was made for.
29543 config_files="$ac_config_files"
29544 config_headers="$ac_config_headers"
29545 config_commands="$ac_config_commands"
29549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29551 \`$as_me' instantiates files and other configuration actions
29552 from templates according to the current configuration. Unless the files
29553 and actions are specified as TAGs, all are instantiated by default.
29555 Usage: $0 [OPTION]... [TAG]...
29557 -h, --help print this help, then exit
29558 -V, --version print version number and configuration settings, then exit
29559 --config print configuration, then exit
29560 -q, --quiet, --silent
29561 do not print progress messages
29562 -d, --debug don't remove temporary files
29563 --recheck update $as_me by reconfiguring in the same conditions
29564 --file=FILE[:TEMPLATE]
29565 instantiate the configuration file FILE
29566 --header=FILE[:TEMPLATE]
29567 instantiate the configuration header FILE
29569 Configuration files:
29572 Configuration headers:
29575 Configuration commands:
29578 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>."
29581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29582 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29584 glib config.status 2.32.3
29585 configured by $0, generated by GNU Autoconf 2.68,
29586 with options \\"\$ac_cs_config\\"
29588 Copyright (C) 2010 Free Software Foundation, Inc.
29589 This config.status script is free software; the Free Software Foundation
29590 gives unlimited permission to copy, distribute and modify it."
29597 test -n "\$AWK" || AWK=awk
29600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29601 # The default lists apply if the user does not specify any file.
29607 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29608 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29624 # Handling of the options.
29625 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29627 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29628 $as_echo "$ac_cs_version"; exit ;;
29629 --config | --confi | --conf | --con | --co | --c )
29630 $as_echo "$ac_cs_config"; exit ;;
29631 --debug | --debu | --deb | --de | --d | -d )
29633 --file | --fil | --fi | --f )
29636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29637 '') as_fn_error $? "missing file argument" ;;
29639 as_fn_append CONFIG_FILES " '$ac_optarg'"
29640 ac_need_defaults=false;;
29641 --header | --heade | --head | --hea )
29644 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29646 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29647 ac_need_defaults=false;;
29649 # Conflict between --help and --header
29650 as_fn_error $? "ambiguous option: \`$1'
29651 Try \`$0 --help' for more information.";;
29652 --help | --hel | -h )
29653 $as_echo "$ac_cs_usage"; exit ;;
29654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29655 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29658 # This is an error.
29659 -*) as_fn_error $? "unrecognized option: \`$1'
29660 Try \`$0 --help' for more information." ;;
29662 *) as_fn_append ac_config_targets " $1"
29663 ac_need_defaults=false ;;
29669 ac_configure_extra_args=
29671 if $ac_cs_silent; then
29673 ac_configure_extra_args="$ac_configure_extra_args --silent"
29677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29678 if \$ac_cs_recheck; then
29679 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29681 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29682 CONFIG_SHELL='$SHELL'
29683 export CONFIG_SHELL
29688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29693 ## Running $as_me. ##
29699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29703 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29707 # The HP-UX ksh and POSIX shell print the target directory to stdout
29708 # if CDPATH is set.
29709 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29711 sed_quote_subst='$sed_quote_subst'
29712 double_quote_subst='$double_quote_subst'
29713 delay_variable_subst='$delay_variable_subst'
29714 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29715 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29716 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29717 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29718 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29719 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29720 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29721 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29722 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29723 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29724 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29725 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29726 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29727 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29728 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29729 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29730 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29731 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29732 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29733 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29734 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29735 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29736 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29737 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29738 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29739 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29740 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29741 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29742 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29743 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29744 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29745 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29746 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29747 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29748 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29749 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29750 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29751 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29752 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29753 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29754 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29755 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29756 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29757 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29758 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29759 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29760 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29761 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29762 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29763 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29764 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29765 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29766 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29767 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29768 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29769 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29770 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29771 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"`'
29772 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29773 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29774 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29775 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29776 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29777 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29778 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29779 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29780 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29781 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29782 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29783 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29784 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29785 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29786 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29787 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29788 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29789 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29790 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29791 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29792 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29793 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29794 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29795 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29796 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29797 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29798 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29799 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29800 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29801 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29802 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29803 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29804 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29805 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29806 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29807 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29808 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29809 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29810 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29811 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29812 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29813 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29814 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29815 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29816 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29817 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29818 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29819 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29820 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29821 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29822 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29823 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29824 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29825 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29826 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29827 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29828 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29829 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29830 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29831 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29832 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29833 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29834 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29835 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29836 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29837 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29838 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29839 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29840 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29841 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29842 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29843 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29844 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29845 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
29846 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
29847 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
29848 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
29849 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
29850 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
29851 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
29852 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
29853 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29854 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29855 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
29856 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
29857 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
29858 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
29859 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
29860 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
29861 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
29862 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
29863 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
29864 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29865 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29866 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
29867 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29868 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29869 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29870 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29871 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29872 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29873 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
29874 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29875 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29876 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29877 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
29878 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
29879 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
29880 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
29881 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
29882 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
29883 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
29884 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
29885 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
29886 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29887 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29888 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29889 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29890 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29891 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
29892 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
29893 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
29894 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29895 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29896 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
29897 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
29898 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
29901 LTCFLAGS='$LTCFLAGS'
29902 compiler='$compiler_DEFAULT'
29904 # A function that is used when there is no print builtin or printf.
29905 func_fallback_echo ()
29907 eval 'cat <<_LTECHO_EOF
29912 # Quote evaled strings.
29929 deplibs_check_method \
29933 sharedlib_from_linklib_cmd \
29936 archiver_list_spec \
29942 lt_cv_sys_global_symbol_pipe \
29943 lt_cv_sys_global_symbol_to_cdecl \
29944 lt_cv_sys_global_symbol_to_c_name_address \
29945 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29946 nm_file_list_spec \
29947 lt_prog_compiler_no_builtin_flag \
29948 lt_prog_compiler_pic \
29949 lt_prog_compiler_wl \
29950 lt_prog_compiler_static \
29951 lt_cv_prog_compiler_c_o \
29960 export_dynamic_flag_spec \
29961 whole_archive_flag_spec \
29962 compiler_needs_object \
29964 allow_undefined_flag \
29965 no_undefined_flag \
29966 hardcode_libdir_flag_spec \
29967 hardcode_libdir_separator \
29971 variables_saved_for_relink \
29973 library_names_spec \
29975 install_override_mode \
29979 compiler_lib_search_dirs \
29984 compiler_lib_search_path \
29988 lt_prog_compiler_no_builtin_flag_CXX \
29989 lt_prog_compiler_pic_CXX \
29990 lt_prog_compiler_wl_CXX \
29991 lt_prog_compiler_static_CXX \
29992 lt_cv_prog_compiler_c_o_CXX \
29993 export_dynamic_flag_spec_CXX \
29994 whole_archive_flag_spec_CXX \
29995 compiler_needs_object_CXX \
29997 allow_undefined_flag_CXX \
29998 no_undefined_flag_CXX \
29999 hardcode_libdir_flag_spec_CXX \
30000 hardcode_libdir_separator_CXX \
30001 exclude_expsyms_CXX \
30002 include_expsyms_CXX \
30003 file_list_spec_CXX \
30004 compiler_lib_search_dirs_CXX \
30005 predep_objects_CXX \
30006 postdep_objects_CXX \
30009 compiler_lib_search_path_CXX; do
30010 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30011 *[\\\\\\\`\\"\\\$]*)
30012 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30015 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30020 # Double-quote double-evaled strings.
30021 for var in reload_cmds \
30022 old_postinstall_cmds \
30023 old_postuninstall_cmds \
30025 extract_expsyms_cmds \
30026 old_archive_from_new_cmds \
30027 old_archive_from_expsyms_cmds \
30029 archive_expsym_cmds \
30031 module_expsym_cmds \
30032 export_symbols_cmds \
30036 postuninstall_cmds \
30038 sys_lib_search_path_spec \
30039 sys_lib_dlsearch_path_spec \
30041 old_archive_cmds_CXX \
30042 old_archive_from_new_cmds_CXX \
30043 old_archive_from_expsyms_cmds_CXX \
30045 archive_expsym_cmds_CXX \
30047 module_expsym_cmds_CXX \
30048 export_symbols_cmds_CXX \
30050 postlink_cmds_CXX; do
30051 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30052 *[\\\\\\\`\\"\\\$]*)
30053 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30056 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30061 ac_aux_dir='$ac_aux_dir'
30062 xsi_shell='$xsi_shell'
30063 lt_shell_append='$lt_shell_append'
30065 # See if we are running on zsh, and set the options which allow our
30066 # commands through without removal of \ escapes INIT.
30067 if test -n "\${ZSH_VERSION+set}" ; then
30068 setopt NO_GLOB_SUBST
30074 TIMESTAMP='$TIMESTAMP'
30080 ac_aux_dir='$ac_aux_dir'
30085 # Note that if two cases are the same, case goes with the first one.
30086 # Note also that this is inside an AC_OUTPUT_COMMAND. We do not depend
30087 # on variable expansion in case labels. Look at the generated config.status
30090 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
30091 glib_header_alloca_h="$ac_cv_working_alloca_h"
30093 glib_header_alloca_h="$ac_cv_header_alloca_h"
30097 x$ac_cv_header_float_h)
30099 glib_mf=FLT_MIN glib_Mf=FLT_MAX
30100 glib_md=DBL_MIN glib_Md=DBL_MAX
30102 x$ac_cv_header_values_h)
30104 glib_mf=MINFLOAT glib_Mf=MAXFLOAT
30105 glib_md=MINDOUBLE glib_Md=MAXDOUBLE
30110 x$ac_cv_header_limits_h)
30112 glib_ms=SHRT_MIN glib_Ms=SHRT_MAX glib_Mus=USHRT_MAX
30113 glib_mi=INT_MIN glib_Mi=INT_MAX glib_Mui=UINT_MAX
30114 glib_ml=LONG_MIN glib_Ml=LONG_MAX glib_Mul=ULONG_MAX
30116 x$ac_cv_header_values_h)
30118 glib_ms=MINSHORT glib_Ms=MAXSHORT glib_Mus="(((gushort)G_MAXSHORT)*2+1)"
30119 glib_mi=MININT glib_Mi=MAXINT glib_Mui="(((guint)G_MAXINT)*2+1)"
30120 glib_ml=MINLONG glib_Ml=MAXLONG glib_Mul="(((gulong)G_MAXLONG)*2+1)"
30124 if test x$ac_cv_header_sys_poll_h = xyes ; then
30125 glib_sys_poll_h=yes
30128 if test x$enable_included_printf = xyes ; then
30129 glib_included_printf=yes
30133 $ac_cv_sizeof_short)
30135 gint16_modifier='"h"'
30136 gint16_format='"hi"'
30137 guint16_format='"hu"'
30141 gint16_modifier='""'
30142 gint16_format='"i"'
30143 guint16_format='"u"'
30147 $ac_cv_sizeof_short)
30149 gint32_modifier='"h"'
30150 gint32_format='"hi"'
30151 guint32_format='"hu"'
30155 gint32_modifier='""'
30156 gint32_format='"i"'
30157 guint32_format='"u"'
30159 $ac_cv_sizeof_long)
30161 gint32_modifier='"l"'
30162 gint32_format='"li"'
30163 guint32_format='"lu"'
30169 gint64_modifier='""'
30170 gint64_format='"i"'
30171 guint64_format='"u"'
30173 gint64_constant='(val)'
30174 guint64_constant='(val)'
30176 $ac_cv_sizeof_long)
30178 gint64_modifier='"l"'
30179 gint64_format='"li"'
30180 guint64_format='"lu"'
30182 gint64_constant='(val##L)'
30183 guint64_constant='(val##UL)'
30185 $ac_cv_sizeof_long_long)
30187 if test -n "$glib_cv_long_long_format"; then
30188 gint64_modifier='"'$glib_cv_long_long_format'"'
30189 gint64_format='"'$glib_cv_long_long_format'i"'
30190 guint64_format='"'$glib_cv_long_long_format'u"'
30192 glib_extension='G_GNUC_EXTENSION '
30193 gint64_constant='(G_GNUC_EXTENSION (val##LL))'
30194 guint64_constant='(G_GNUC_EXTENSION (val##ULL))'
30196 $ac_cv_sizeof___int64)
30198 if test -n "$glib_cv_long_long_format"; then
30199 gint64_modifier='"'$glib_cv_long_long_format'"'
30200 gint64_format='"'$glib_cv_long_long_format'i"'
30201 guint64_format='"'$glib_cv_long_long_format'u"'
30204 gint64_constant='(val##i64)'
30205 guint64_constant='(val##ui64)'
30208 glib_size_t=$ac_cv_sizeof_size_t
30209 glib_size_type_define="$glib_size_type"
30210 glib_void_p=$ac_cv_sizeof_void_p
30211 glib_long=$ac_cv_sizeof_long
30213 case "$glib_size_type" in
30215 gsize_modifier='"h"'
30216 gsize_format='"hu"'
30217 gssize_format='"hi"'
30218 glib_msize_type='SHRT'
30221 gsize_modifier='""'
30223 gssize_format='"i"'
30224 glib_msize_type='INT'
30227 gsize_modifier='"l"'
30228 gsize_format='"lu"'
30229 gssize_format='"li"'
30230 glib_msize_type='LONG'
30232 "long long"|__int64)
30233 gsize_modifier='"I64"'
30234 gsize_format='"I64u"'
30235 gssize_format='"I64i"'
30236 glib_msize_type='INT64'
30240 gintbits=`expr $ac_cv_sizeof_int \* 8`
30241 glongbits=`expr $ac_cv_sizeof_long \* 8`
30242 gsizebits=`expr $ac_cv_sizeof_size_t \* 8`
30244 case $ac_cv_sizeof_void_p in
30246 glib_intptr_type_define=int
30247 gintptr_modifier='""'
30248 gintptr_format='"i"'
30249 guintptr_format='"u"'
30250 glib_gpi_cast='(gint)'
30251 glib_gpui_cast='(guint)'
30253 $ac_cv_sizeof_long)
30254 glib_intptr_type_define=long
30255 gintptr_modifier='"l"'
30256 gintptr_format='"li"'
30257 guintptr_format='"lu"'
30258 glib_gpi_cast='(glong)'
30259 glib_gpui_cast='(gulong)'
30261 $ac_cv_sizeof_long_long)
30262 glib_intptr_type_define='long long'
30263 gintptr_modifier='"I64"'
30264 gintptr_format='"I64i"'
30265 guintptr_format='"I64u"'
30266 glib_gpi_cast='(gint64)'
30267 glib_gpui_cast='(guint64)'
30269 $ac_cv_sizeof___int64)
30270 glib_intptr_type_define=__int64
30271 gintptr_modifier='"I64"'
30272 gintptr_format='"I64i"'
30273 guintptr_format='"I64u"'
30274 glib_gpi_cast='(gint64)'
30275 glib_gpui_cast='(guint64)'
30278 glib_unknown_void_p=yes
30284 x$ac_cv_func_atexit)
30286 #ifdef NeXT /* @#%@! NeXTStep */
30287 # define g_ATEXIT(proc) (!atexit (proc))
30289 # define g_ATEXIT(proc) (atexit (proc))
30292 x$ac_cv_func_on_exit)
30294 #define g_ATEXIT(proc) (on_exit ((void (*)(int, void*))(proc), NULL))"
30299 x$ac_cv_func_memmove)
30301 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END'
30303 x$glib_cv_working_bcopy)
30305 /* memmove isn't available, but bcopy can copy overlapping memory regions */
30306 #define g_memmove(d,s,n) G_STMT_START { bcopy ((s), (d), (n)); } G_STMT_END"
30310 /* memmove isn't found and bcopy can't copy overlapping memory regions,
30311 * so we have to roll our own copy routine. */
30312 void g_memmove (void* dest, const void * src, unsigned long len);"
30317 #define GLIB_MAJOR_VERSION $GLIB_MAJOR_VERSION
30318 #define GLIB_MINOR_VERSION $GLIB_MINOR_VERSION
30319 #define GLIB_MICRO_VERSION $GLIB_MICRO_VERSION
30323 x$glib_cv_va_copy) glib_vacopy='#define G_VA_COPY va_copy' ;;
30324 x$glib_cv___va_copy) glib_vacopy='#define G_VA_COPY __va_copy' ;;
30328 if test x$glib_cv_va_val_copy = xno; then
30329 glib_vacopy="\$glib_vacopy
30330 #define G_VA_COPY_AS_ARRAY 1"
30333 if test x$glib_cv_hasinline = xyes; then
30334 glib_inline='#define G_HAVE_INLINE 1'
30336 if test x$glib_cv_has__inline = xyes; then
30337 glib_inline="\$glib_inline
30338 #define G_HAVE___INLINE 1"
30340 if test x$glib_cv_has__inline__ = xyes; then
30341 glib_inline="\$glib_inline
30342 #define G_HAVE___INLINE__ 1"
30345 g_have_gnuc_varargs=$g_have_gnuc_varargs
30346 g_have_iso_c_varargs=$g_have_iso_c_varargs
30347 g_have_iso_cxx_varargs=$g_have_iso_cxx_varargs
30349 g_can_inline=$g_can_inline
30350 g_have_gnuc_visibility=$g_have_gnuc_visibility
30351 g_have_sunstudio_visibility=$g_have_sunstudio_visibility
30353 if test x$ac_cv_c_bigendian = xyes; then
30354 g_byte_order=G_BIG_ENDIAN
30358 g_byte_order=G_LITTLE_ENDIAN
30363 g_pollin=$glib_cv_value_POLLIN
30364 g_pollout=$glib_cv_value_POLLOUT
30365 g_pollpri=$glib_cv_value_POLLPRI
30366 g_pollhup=$glib_cv_value_POLLHUP
30367 g_pollerr=$glib_cv_value_POLLERR
30368 g_pollnval=$glib_cv_value_POLLNVAL
30370 # If a family is not found on the system, define that family to
30371 # a negative value, picking a different one for each undefined
30372 # family (-1 for AF_UNIX, -2 for the next one, -3 ...)
30373 # This is needed because glib-mkenums doesn't handle optional
30374 # values in enums, and thus we have to have all existing values
30375 # defined in the enum.
30376 if test "x$glib_cv_value_AF_UNIX" != "x"; then
30377 g_af_unix=$glib_cv_value_AF_UNIX
30381 g_af_inet=$glib_cv_value_AF_INET
30382 g_af_inet6=$glib_cv_value_AF_INET6
30384 g_msg_peek=$glib_cv_value_MSG_PEEK
30385 g_msg_oob=$glib_cv_value_MSG_OOB
30386 g_msg_dontroute=$glib_cv_value_MSG_DONTROUTE
30388 g_stack_grows=$glib_cv_stack_grows
30390 g_have_eilseq=$have_eilseq
30392 g_threads_impl_def=$g_threads_impl
30394 g_atomic_lock_free="$glib_cv_g_atomic_lock_free"
30395 g_memory_barrier_needed="$glib_memory_barrier_needed"
30396 g_gcc_atomic_ops="$glib_cv_gcc_has_builtin_atomic_operations"
30398 g_module_suffix="$glib_gmodule_suffix"
30400 g_pid_type="$glib_pid_type"
30403 glib_os="#define G_OS_BEOS"
30406 glib_os="#define G_OS_UNIX
30407 #define G_PLATFORM_WIN32
30408 #define G_WITH_CYGWIN"
30411 glib_os="#define G_OS_WIN32
30412 #define G_PLATFORM_WIN32"
30415 glib_os="#define G_OS_UNIX"
30418 glib_static_compilation=""
30419 if test x$glib_win32_static_compilation = xyes; then
30420 glib_static_compilation="#define GLIB_STATIC_COMPILATION 1
30421 #define GOBJECT_STATIC_COMPILATION 1"
30427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30429 # Handling of arguments.
30430 for ac_config_target in $ac_config_targets
30432 case $ac_config_target in
30433 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30434 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30435 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30436 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30437 "glib/glibconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS glib/glibconfig.h" ;;
30438 "glib-2.0.pc") CONFIG_FILES="$CONFIG_FILES glib-2.0.pc" ;;
30439 "gmodule-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-2.0.pc" ;;
30440 "gmodule-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-export-2.0.pc" ;;
30441 "gmodule-no-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-no-export-2.0.pc" ;;
30442 "gthread-2.0.pc") CONFIG_FILES="$CONFIG_FILES gthread-2.0.pc" ;;
30443 "gobject-2.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-2.0.pc" ;;
30444 "gio-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-2.0.pc" ;;
30445 "gio-unix-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-unix-2.0.pc" ;;
30446 "gio-windows-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-windows-2.0.pc" ;;
30447 "glib-zip") CONFIG_FILES="$CONFIG_FILES glib-zip" ;;
30448 "glib-gettextize") CONFIG_FILES="$CONFIG_FILES glib-gettextize" ;;
30449 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30450 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
30451 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
30452 "build/win32/dirent/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/dirent/Makefile" ;;
30453 "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
30454 "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
30455 "glib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;;
30456 "glib/glib.stp") CONFIG_FILES="$CONFIG_FILES glib/glib.stp" ;;
30457 "glib/libcharset/Makefile") CONFIG_FILES="$CONFIG_FILES glib/libcharset/Makefile" ;;
30458 "glib/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/gnulib/Makefile" ;;
30459 "glib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/pcre/Makefile" ;;
30460 "glib/update-pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/update-pcre/Makefile" ;;
30461 "glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES glib/tests/Makefile" ;;
30462 "gmodule/Makefile") CONFIG_FILES="$CONFIG_FILES gmodule/Makefile" ;;
30463 "gmodule/gmoduleconf.h") CONFIG_FILES="$CONFIG_FILES gmodule/gmoduleconf.h" ;;
30464 "gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/Makefile" ;;
30465 "gobject/gobject.stp") CONFIG_FILES="$CONFIG_FILES gobject/gobject.stp" ;;
30466 "gobject/glib-mkenums") CONFIG_FILES="$CONFIG_FILES gobject/glib-mkenums" ;;
30467 "gobject/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/tests/Makefile" ;;
30468 "gthread/Makefile") CONFIG_FILES="$CONFIG_FILES gthread/Makefile" ;;
30469 "gio/Makefile") CONFIG_FILES="$CONFIG_FILES gio/Makefile" ;;
30470 "gio/gdbus-2.0/codegen/Makefile") CONFIG_FILES="$CONFIG_FILES gio/gdbus-2.0/codegen/Makefile" ;;
30471 "gio/gdbus-2.0/codegen/config.py") CONFIG_FILES="$CONFIG_FILES gio/gdbus-2.0/codegen/config.py" ;;
30472 "gio/xdgmime/Makefile") CONFIG_FILES="$CONFIG_FILES gio/xdgmime/Makefile" ;;
30473 "gio/inotify/Makefile") CONFIG_FILES="$CONFIG_FILES gio/inotify/Makefile" ;;
30474 "gio/fen/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fen/Makefile" ;;
30475 "gio/fam/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fam/Makefile" ;;
30476 "gio/win32/Makefile") CONFIG_FILES="$CONFIG_FILES gio/win32/Makefile" ;;
30477 "gio/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/Makefile" ;;
30478 "gio/tests/gdbus-object-manager-example/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/gdbus-object-manager-example/Makefile" ;;
30479 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30480 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
30481 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
30482 "docs/reference/glib/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/Makefile" ;;
30483 "docs/reference/glib/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/version.xml" ;;
30484 "docs/reference/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/Makefile" ;;
30485 "docs/reference/gobject/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/version.xml" ;;
30486 "docs/reference/gio/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/Makefile" ;;
30487 "docs/reference/gio/gdbus-object-manager-example/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/gdbus-object-manager-example/Makefile" ;;
30488 "docs/reference/gio/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/version.xml" ;;
30489 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30490 "tests/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gobject/Makefile" ;;
30491 "tests/refcount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/refcount/Makefile" ;;
30492 "m4macros/Makefile") CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;;
30493 "chmod-scripts") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod-scripts" ;;
30494 "INSTALL") CONFIG_FILES="$CONFIG_FILES INSTALL" ;;
30495 "README") CONFIG_FILES="$CONFIG_FILES README" ;;
30496 "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
30497 "glib/glibconfig.h.win32") CONFIG_FILES="$CONFIG_FILES glib/glibconfig.h.win32" ;;
30498 "glib/makefile.msc") CONFIG_FILES="$CONFIG_FILES glib/makefile.msc" ;;
30499 "glib/glib.rc") CONFIG_FILES="$CONFIG_FILES glib/glib.rc" ;;
30500 "gmodule/makefile.msc") CONFIG_FILES="$CONFIG_FILES gmodule/makefile.msc" ;;
30501 "gmodule/gmodule.rc") CONFIG_FILES="$CONFIG_FILES gmodule/gmodule.rc" ;;
30502 "gobject/makefile.msc") CONFIG_FILES="$CONFIG_FILES gobject/makefile.msc" ;;
30503 "gobject/gobject.rc") CONFIG_FILES="$CONFIG_FILES gobject/gobject.rc" ;;
30504 "gthread/makefile.msc") CONFIG_FILES="$CONFIG_FILES gthread/makefile.msc" ;;
30505 "gthread/gthread.rc") CONFIG_FILES="$CONFIG_FILES gthread/gthread.rc" ;;
30506 "gio/gio.rc") CONFIG_FILES="$CONFIG_FILES gio/gio.rc" ;;
30507 "tests/makefile.msc") CONFIG_FILES="$CONFIG_FILES tests/makefile.msc" ;;
30509 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30514 # If the user did not use the arguments to specify the items to instantiate,
30515 # then the envvar interface is used. Set only those that are not.
30516 # We use the long form for the default assignment because of an extremely
30517 # bizarre bug on SunOS 4.1.3.
30518 if $ac_need_defaults; then
30519 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30520 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30524 # Have a temporary directory for convenience. Make it in the build tree
30525 # simply because there is no reason against having it here, and in addition,
30526 # creating and moving files from /tmp can sometimes cause problems.
30527 # Hook for its removal unless debugging.
30528 # Note that there is a small window in which the directory will not be cleaned:
30529 # after its creation but before its name has been assigned to `$tmp'.
30533 trap 'exit_status=$?
30534 : "${ac_tmp:=$tmp}"
30535 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30537 trap 'as_fn_exit 1' 1 2 13 15
30539 # Create a (secure) tmp directory for tmp files.
30542 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30546 tmp=./conf$$-$RANDOM
30547 (umask 077 && mkdir "$tmp")
30548 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30551 # Set up the scripts for CONFIG_FILES section.
30552 # No need to generate them if there are no CONFIG_FILES.
30553 # This happens for instance with `./config.status config.h'.
30554 if test -n "$CONFIG_FILES"; then
30557 ac_cr=`echo X | tr X '\015'`
30558 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30559 # But we know of no other shell where ac_cr would be empty at this
30560 # point, so we can use a bashism as a fallback.
30561 if test "x$ac_cr" = x; then
30562 eval ac_cr=\$\'\\r\'
30564 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30565 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30568 ac_cs_awk_cr=$ac_cr
30571 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30576 echo "cat >conf$$subs.awk <<_ACEOF" &&
30577 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30579 } >conf$$subs.sh ||
30580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30581 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30583 for ac_last_try in false false false false false :; do
30584 . ./conf$$subs.sh ||
30585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30587 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30588 if test $ac_delim_n = $ac_delim_num; then
30590 elif $ac_last_try; then
30591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30596 rm -f conf$$subs.sh
30598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30599 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30603 s/^/S["/; s/!.*/"]=/
30613 s/\(.\{148\}\)..*/\1/
30615 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30620 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30627 s/\(.\{148\}\)..*/\1/
30629 s/["\\]/\\&/g; s/^/"/; s/$/"/
30633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30638 ' <conf$$subs.awk | sed '
30643 ' >>$CONFIG_STATUS || ac_write_fail=1
30644 rm -f conf$$subs.awk
30645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30647 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30648 for (key in S) S_is_set[key] = 1
30654 nfields = split(line, field, "@")
30656 len = length(field[1])
30657 for (i = 2; i < nfields; i++) {
30659 keylen = length(key)
30660 if (S_is_set[key]) {
30662 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30663 len += length(value) + length(field[++i])
30674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30675 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30676 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30679 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30680 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30683 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30684 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30685 # trailing colons and then remove the whole line if VPATH becomes empty
30686 # (actually we leave an empty line to preserve line numbers).
30687 if test "x$srcdir" = x.; then
30688 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30707 fi # test -n "$CONFIG_FILES"
30709 # Set up the scripts for CONFIG_HEADERS section.
30710 # No need to generate them if there are no CONFIG_HEADERS.
30711 # This happens for instance with `./config.status Makefile'.
30712 if test -n "$CONFIG_HEADERS"; then
30713 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30717 # Transform confdefs.h into an awk script `defines.awk', embedded as
30718 # here-document in config.status, that substitutes the proper values into
30719 # config.h.in to produce config.h.
30721 # Create a delimiter string that does not exist in confdefs.h, to ease
30722 # handling of long lines.
30724 for ac_last_try in false false :; do
30725 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30726 if test -z "$ac_tt"; then
30728 elif $ac_last_try; then
30729 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30735 # For the awk script, D is an array of macro values keyed by name,
30736 # likewise P contains macro parameters if any. Preserve backslash
30737 # newline sequences.
30739 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30741 s/.\{148\}/&'"$ac_delim"'/g
30744 s/^[ ]*#[ ]*define[ ][ ]*/ /
30751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30753 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30757 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30758 D["\1"]=" \3\\\\\\n"\\/p
30760 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30765 s/.\{148\}/&'"$ac_delim"'/g
30770 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30773 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30775 ' <confdefs.h | sed '
30776 s/'"$ac_delim"'/"\\\
30777 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30780 for (key in D) D_is_set[key] = 1
30783 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30785 split(line, arg, " ")
30786 if (arg[1] == "#") {
30790 defundef = substr(arg[1], 2)
30793 split(mac1, mac2, "(") #)
30795 prefix = substr(line, 1, index(line, defundef) - 1)
30796 if (D_is_set[macro]) {
30797 # Preserve the white space surrounding the "#".
30798 print prefix "define", macro P[macro] D[macro]
30801 # Replace #undef with comments. This is necessary, for example,
30802 # in the case of _POSIX_SOURCE, which is predefined and required
30803 # on some systems where configure will not decide to define it.
30804 if (defundef == "undef") {
30805 print "/*", prefix defundef, macro, "*/"
30813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30814 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30815 fi # test -n "$CONFIG_HEADERS"
30818 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30823 :[FHLC]) ac_mode=$ac_tag; continue;;
30825 case $ac_mode$ac_tag in
30827 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
30828 :[FH]-) ac_tag=-:-;;
30829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30846 -) ac_f="$ac_tmp/stdin";;
30847 *) # Look for the file first in the build tree, then in the source tree
30848 # (if the path is not absolute). The absolute path cannot be DOS-style,
30849 # because $ac_f cannot contain `:'.
30853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30855 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30858 as_fn_append ac_file_inputs " '$ac_f'"
30861 # Let's still pretend it is `configure' which instantiates (i.e., don't
30862 # use $as_me), people would be surprised to read:
30863 # /* config.h. Generated by config.status. */
30864 configure_input='Generated from '`
30865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30867 if test x"$ac_file" != x-; then
30868 configure_input="$ac_file. $configure_input"
30869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30870 $as_echo "$as_me: creating $ac_file" >&6;}
30872 # Neutralize special characters interpreted by sed in replacement strings.
30873 case $configure_input in #(
30874 *\&* | *\|* | *\\* )
30875 ac_sed_conf_input=`$as_echo "$configure_input" |
30876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30877 *) ac_sed_conf_input=$configure_input;;
30881 *:-:* | *:-) cat >"$ac_tmp/stdin" \
30882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30887 ac_dir=`$as_dirname -- "$ac_file" ||
30888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30889 X"$ac_file" : 'X\(//\)[^/]' \| \
30890 X"$ac_file" : 'X\(//\)$' \| \
30891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30892 $as_echo X"$ac_file" |
30893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30897 /^X\(\/\/\)[^/].*/{
30910 as_dir="$ac_dir"; as_fn_mkdir_p
30914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30917 # A ".." for each directory in $ac_dir_suffix.
30918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30919 case $ac_top_builddir_sub in
30920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30924 ac_abs_top_builddir=$ac_pwd
30925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30926 # for backward compatibility:
30927 ac_top_builddir=$ac_top_build_prefix
30930 .) # We are building in place.
30932 ac_top_srcdir=$ac_top_builddir_sub
30933 ac_abs_top_srcdir=$ac_pwd ;;
30934 [\\/]* | ?:[\\/]* ) # Absolute name.
30935 ac_srcdir=$srcdir$ac_dir_suffix;
30936 ac_top_srcdir=$srcdir
30937 ac_abs_top_srcdir=$srcdir ;;
30938 *) # Relative name.
30939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30940 ac_top_srcdir=$ac_top_build_prefix$srcdir
30941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30956 ac_MKDIR_P=$MKDIR_P
30958 [\\/$]* | ?:[\\/]* ) ;;
30959 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30964 # If the template does not know about datarootdir, expand it.
30965 # FIXME: This hack should be removed a few years after 2.60.
30966 ac_datarootdir_hack=; ac_datarootdir_seen=
30977 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30978 *datarootdir*) ac_datarootdir_seen=yes;;
30979 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30981 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30984 ac_datarootdir_hack='
30985 s&@datadir@&$datadir&g
30986 s&@docdir@&$docdir&g
30987 s&@infodir@&$infodir&g
30988 s&@localedir@&$localedir&g
30989 s&@mandir@&$mandir&g
30990 s&\\\${datarootdir}&$datarootdir&g' ;;
30994 # Neutralize VPATH when `$srcdir' = `.'.
30995 # Shell code in configure.ac might set extrasub.
30996 # FIXME: do we really want to maintain this feature?
30997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30998 ac_sed_extra="$ac_vpsub
31001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31004 s|@configure_input@|$ac_sed_conf_input|;t t
31005 s&@top_builddir@&$ac_top_builddir_sub&;t t
31006 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31007 s&@srcdir@&$ac_srcdir&;t t
31008 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31009 s&@top_srcdir@&$ac_top_srcdir&;t t
31010 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31011 s&@builddir@&$ac_builddir&;t t
31012 s&@abs_builddir@&$ac_abs_builddir&;t t
31013 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31014 s&@INSTALL@&$ac_INSTALL&;t t
31015 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31016 $ac_datarootdir_hack
31018 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31019 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31021 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31022 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31024 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31026 which seems to be undefined. Please make sure it is defined" >&5
31027 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31028 which seems to be undefined. Please make sure it is defined" >&2;}
31030 rm -f "$ac_tmp/stdin"
31032 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31033 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31041 if test x"$ac_file" != x-; then
31043 $as_echo "/* $configure_input */" \
31044 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31045 } >"$ac_tmp/config.h" \
31046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31047 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31049 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31052 mv "$ac_tmp/config.h" "$ac_file" \
31053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31056 $as_echo "/* $configure_input */" \
31057 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31058 || as_fn_error $? "could not create -" "$LINENO" 5
31060 # Compute "$ac_file"'s index in $config_headers.
31063 for _am_header in $config_headers :; do
31064 case $_am_header in
31065 $_am_arg | $_am_arg:* )
31068 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31071 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31072 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31073 X"$_am_arg" : 'X\(//\)[^/]' \| \
31074 X"$_am_arg" : 'X\(//\)$' \| \
31075 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31076 $as_echo X"$_am_arg" |
31077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31081 /^X\(\/\/\)[^/].*/{
31093 s/.*/./; q'`/stamp-h$_am_stamp_count
31096 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31097 $as_echo "$as_me: executing $ac_file commands" >&6;}
31102 case $ac_file$ac_mode in
31103 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31104 # Autoconf 2.62 quotes --file arguments for eval, but not when files
31105 # are listed without --file. Let's play safe and only enable the eval
31106 # if we detect the quoting.
31107 case $CONFIG_FILES in
31108 *\'*) eval set x "$CONFIG_FILES" ;;
31109 *) set x $CONFIG_FILES ;;
31114 # Strip MF so we end up with the name of the file.
31115 mf=`echo "$mf" | sed -e 's/:.*$//'`
31116 # Check whether this is an Automake generated Makefile or not.
31117 # We used to match only the files named `Makefile.in', but
31118 # some people rename them; so instead we look at the file content.
31119 # Grep'ing the first line is not enough: some people post-process
31120 # each Makefile.in and add a new line on top of each file to say so.
31121 # Grep'ing the whole file is not good either: AIX grep has a line
31122 # limit of 2048, but all sed's we know have understand at least 4000.
31123 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31124 dirpart=`$as_dirname -- "$mf" ||
31125 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31126 X"$mf" : 'X\(//\)[^/]' \| \
31127 X"$mf" : 'X\(//\)$' \| \
31128 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31134 /^X\(\/\/\)[^/].*/{
31150 # Extract the definition of DEPDIR, am__include, and am__quote
31151 # from the Makefile without running `make'.
31152 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31153 test -z "$DEPDIR" && continue
31154 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31155 test -z "am__include" && continue
31156 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31157 # When using ansi2knr, U may be empty or an underscore; expand it
31158 U=`sed -n 's/^U = //p' < "$mf"`
31159 # Find all dependency output files, they are included files with
31160 # $(DEPDIR) in their names. We invoke sed twice because it is the
31161 # simplest approach to changing $(DEPDIR) to its actual value in the
31163 for file in `sed -n "
31164 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31165 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31166 # Make sure the directory exists.
31167 test -f "$dirpart/$file" && continue
31168 fdir=`$as_dirname -- "$file" ||
31169 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31170 X"$file" : 'X\(//\)[^/]' \| \
31171 X"$file" : 'X\(//\)$' \| \
31172 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31173 $as_echo X"$file" |
31174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31178 /^X\(\/\/\)[^/].*/{
31191 as_dir=$dirpart/$fdir; as_fn_mkdir_p
31192 # echo "creating $dirpart/$file"
31193 echo '# dummy' > "$dirpart/$file"
31198 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
31199 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
31203 # See if we are running on zsh, and set the options which allow our
31204 # commands through without removal of \ escapes.
31205 if test -n "${ZSH_VERSION+set}" ; then
31206 setopt NO_GLOB_SUBST
31209 cfgfile="${ofile}T"
31210 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31213 cat <<_LT_EOF >> "$cfgfile"
31216 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31217 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31218 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31219 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31221 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31222 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
31224 # Written by Gordon Matzigkeit, 1996
31226 # This file is part of GNU Libtool.
31228 # GNU Libtool is free software; you can redistribute it and/or
31229 # modify it under the terms of the GNU General Public License as
31230 # published by the Free Software Foundation; either version 2 of
31231 # the License, or (at your option) any later version.
31233 # As a special exception to the GNU General Public License,
31234 # if you distribute this file as part of a program or library that
31235 # is built using GNU Libtool, you may include this file under the
31236 # same distribution terms that you use for the rest of that program.
31238 # GNU Libtool is distributed in the hope that it will be useful,
31239 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31240 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31241 # GNU General Public License for more details.
31243 # You should have received a copy of the GNU General Public License
31244 # along with GNU Libtool; see the file COPYING. If not, a copy
31245 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31246 # obtained by writing to the Free Software Foundation, Inc.,
31247 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31250 # The names of the tagged configurations supported by this script.
31251 available_tags="CXX "
31253 # ### BEGIN LIBTOOL CONFIG
31255 # Which release of libtool.m4 was used?
31256 macro_version=$macro_version
31257 macro_revision=$macro_revision
31259 # Whether or not to build static libraries.
31260 build_old_libs=$enable_static
31262 # Assembler program.
31265 # DLL creation program.
31266 DLLTOOL=$lt_DLLTOOL
31268 # Object dumper program.
31269 OBJDUMP=$lt_OBJDUMP
31271 # Whether or not to build shared libraries.
31272 build_libtool_libs=$enable_shared
31274 # What type of objects to build.
31277 # Whether or not to optimize for fast installation.
31278 fast_install=$enable_fast_install
31280 # Shell to use when invoking shell scripts.
31283 # An echo program that protects backslashes.
31286 # The PATH separator for the build system.
31287 PATH_SEPARATOR=$lt_PATH_SEPARATOR
31290 host_alias=$host_alias
31294 # The build system.
31295 build_alias=$build_alias
31299 # A sed program that does not truncate output.
31302 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31303 Xsed="\$SED -e 1s/^X//"
31305 # A grep program that handles long lines.
31311 # A literal string matcher.
31314 # A BSD- or MS-compatible name lister.
31317 # Whether we need soft or hard links.
31320 # What is the maximum length of a command?
31321 max_cmd_len=$max_cmd_len
31323 # Object file suffix (normally "o").
31326 # Executable file suffix (normally "").
31329 # whether the shell understands "unset".
31332 # turn spaces into newlines.
31335 # turn newlines into spaces.
31338 # convert \$build file names to \$host format.
31339 to_host_file_cmd=$lt_cv_to_host_file_cmd
31341 # convert \$build files to toolchain format.
31342 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31344 # Method to check whether dependent libraries are shared objects.
31345 deplibs_check_method=$lt_deplibs_check_method
31347 # Command to use when deplibs_check_method = "file_magic".
31348 file_magic_cmd=$lt_file_magic_cmd
31350 # How to find potential files when deplibs_check_method = "file_magic".
31351 file_magic_glob=$lt_file_magic_glob
31353 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
31354 want_nocaseglob=$lt_want_nocaseglob
31356 # Command to associate shared and link libraries.
31357 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31362 # Flags to create an archive.
31363 AR_FLAGS=$lt_AR_FLAGS
31365 # How to feed a file listing to the archiver.
31366 archiver_list_spec=$lt_archiver_list_spec
31368 # A symbol stripping program.
31371 # Commands used to install an old-style archive.
31373 old_postinstall_cmds=$lt_old_postinstall_cmds
31374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31376 # Whether to use a lock for old archive extraction.
31377 lock_old_archive_extraction=$lock_old_archive_extraction
31382 # LTCC compiler flags.
31383 LTCFLAGS=$lt_CFLAGS
31385 # Take the output of nm and produce a listing of raw symbols and C names.
31386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31388 # Transform the output of nm in a proper C declaration.
31389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31391 # Transform the output of nm in a C name address pair.
31392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31394 # Transform the output of nm in a C name address pair when lib prefix is needed.
31395 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31397 # Specify filename containing input files for \$NM.
31398 nm_file_list_spec=$lt_nm_file_list_spec
31400 # The root where to search for dependent libraries,and in which our libraries should be installed.
31401 lt_sysroot=$lt_sysroot
31403 # The name of the directory that contains temporary libtool files.
31406 # Used to examine libraries when file_magic_cmd begins with "file".
31407 MAGIC_CMD=$MAGIC_CMD
31409 # Must we lock files when doing compilation?
31410 need_locks=$lt_need_locks
31413 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31415 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31416 DSYMUTIL=$lt_DSYMUTIL
31418 # Tool to change global to local symbols on Mac OS X.
31421 # Tool to manipulate fat objects and archives on Mac OS X.
31424 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31427 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31428 OTOOL64=$lt_OTOOL64
31430 # Old archive suffix (normally "a").
31433 # Shared library suffix (normally ".so").
31434 shrext_cmds=$lt_shrext_cmds
31436 # The commands to extract the exported symbol list from a shared archive.
31437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31439 # Variables whose values should be saved in libtool wrapper scripts and
31440 # restored at link time.
31441 variables_saved_for_relink=$lt_variables_saved_for_relink
31443 # Do we need the "lib" prefix for modules?
31444 need_lib_prefix=$need_lib_prefix
31446 # Do we need a version for libraries?
31447 need_version=$need_version
31449 # Library versioning type.
31450 version_type=$version_type
31452 # Shared library runtime path variable.
31453 runpath_var=$runpath_var
31455 # Shared library path variable.
31456 shlibpath_var=$shlibpath_var
31458 # Is shlibpath searched before the hard-coded library search path?
31459 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31461 # Format of library name prefix.
31462 libname_spec=$lt_libname_spec
31464 # List of archive names. First name is the real one, the rest are links.
31465 # The last name is the one that the linker finds with -lNAME
31466 library_names_spec=$lt_library_names_spec
31468 # The coded name of the library, if different from the real name.
31469 soname_spec=$lt_soname_spec
31471 # Permission mode override for installation of shared libraries.
31472 install_override_mode=$lt_install_override_mode
31474 # Command to use after installation of a shared archive.
31475 postinstall_cmds=$lt_postinstall_cmds
31477 # Command to use after uninstallation of a shared archive.
31478 postuninstall_cmds=$lt_postuninstall_cmds
31480 # Commands used to finish a libtool library installation in a directory.
31481 finish_cmds=$lt_finish_cmds
31483 # As "finish_cmds", except a single script fragment to be evaled but
31485 finish_eval=$lt_finish_eval
31487 # Whether we should hardcode library paths into libraries.
31488 hardcode_into_libs=$hardcode_into_libs
31490 # Compile-time system search path for libraries.
31491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31493 # Run-time system search path for libraries.
31494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31496 # Whether dlopen is supported.
31497 dlopen_support=$enable_dlopen
31499 # Whether dlopen of programs is supported.
31500 dlopen_self=$enable_dlopen_self
31502 # Whether dlopen of statically linked programs is supported.
31503 dlopen_self_static=$enable_dlopen_self_static
31505 # Commands to strip libraries.
31506 old_striplib=$lt_old_striplib
31507 striplib=$lt_striplib
31510 # The linker used to build libraries.
31513 # How to create reloadable object files.
31514 reload_flag=$lt_reload_flag
31515 reload_cmds=$lt_reload_cmds
31517 # Commands used to build an old-style archive.
31518 old_archive_cmds=$lt_old_archive_cmds
31520 # A language specific compiler.
31523 # Is the compiler the GNU compiler?
31526 # Compiler flag to turn off builtin functions.
31527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31529 # Additional compiler flags for building library objects.
31530 pic_flag=$lt_lt_prog_compiler_pic
31532 # How to pass a linker flag through the compiler.
31533 wl=$lt_lt_prog_compiler_wl
31535 # Compiler flag to prevent dynamic linking.
31536 link_static_flag=$lt_lt_prog_compiler_static
31538 # Does compiler simultaneously support -c and -o options?
31539 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31541 # Whether or not to add -lc for building shared libraries.
31542 build_libtool_need_lc=$archive_cmds_need_lc
31544 # Whether or not to disallow shared libs when runtime libs are static.
31545 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31547 # Compiler flag to allow reflexive dlopens.
31548 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31550 # Compiler flag to generate shared objects directly from archives.
31551 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31553 # Whether the compiler copes with passing no objects directly.
31554 compiler_needs_object=$lt_compiler_needs_object
31556 # Create an old-style archive from a shared archive.
31557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31559 # Create a temporary old-style archive to link instead of a shared archive.
31560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31562 # Commands used to build a shared archive.
31563 archive_cmds=$lt_archive_cmds
31564 archive_expsym_cmds=$lt_archive_expsym_cmds
31566 # Commands used to build a loadable module if different from building
31567 # a shared archive.
31568 module_cmds=$lt_module_cmds
31569 module_expsym_cmds=$lt_module_expsym_cmds
31571 # Whether we are building with GNU ld or not.
31572 with_gnu_ld=$lt_with_gnu_ld
31574 # Flag that allows shared libraries with undefined symbols to be built.
31575 allow_undefined_flag=$lt_allow_undefined_flag
31577 # Flag that enforces no undefined symbols.
31578 no_undefined_flag=$lt_no_undefined_flag
31580 # Flag to hardcode \$libdir into a binary during linking.
31581 # This must work even if \$libdir does not exist
31582 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31584 # Whether we need a single "-rpath" flag with a separated argument.
31585 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31587 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31588 # DIR into the resulting binary.
31589 hardcode_direct=$hardcode_direct
31591 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31592 # DIR into the resulting binary and the resulting library dependency is
31593 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31594 # library is relocated.
31595 hardcode_direct_absolute=$hardcode_direct_absolute
31597 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31598 # into the resulting binary.
31599 hardcode_minus_L=$hardcode_minus_L
31601 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31602 # into the resulting binary.
31603 hardcode_shlibpath_var=$hardcode_shlibpath_var
31605 # Set to "yes" if building a shared library automatically hardcodes DIR
31606 # into the library and all subsequent libraries and executables linked
31608 hardcode_automatic=$hardcode_automatic
31610 # Set to yes if linker adds runtime paths of dependent libraries
31611 # to runtime path list.
31612 inherit_rpath=$inherit_rpath
31614 # Whether libtool must link a program against all its dependency libraries.
31615 link_all_deplibs=$link_all_deplibs
31617 # Set to "yes" if exported symbols are required.
31618 always_export_symbols=$always_export_symbols
31620 # The commands to list exported symbols.
31621 export_symbols_cmds=$lt_export_symbols_cmds
31623 # Symbols that should not be listed in the preloaded symbols.
31624 exclude_expsyms=$lt_exclude_expsyms
31626 # Symbols that must always be exported.
31627 include_expsyms=$lt_include_expsyms
31629 # Commands necessary for linking programs (against libraries) with templates.
31630 prelink_cmds=$lt_prelink_cmds
31632 # Commands necessary for finishing linking programs.
31633 postlink_cmds=$lt_postlink_cmds
31635 # Specify filename containing input files.
31636 file_list_spec=$lt_file_list_spec
31638 # How to hardcode a shared library path into an executable.
31639 hardcode_action=$hardcode_action
31641 # The directories searched by this compiler when creating a shared library.
31642 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31644 # Dependencies to place before and after the objects being linked to
31645 # create a shared library.
31646 predep_objects=$lt_predep_objects
31647 postdep_objects=$lt_postdep_objects
31648 predeps=$lt_predeps
31649 postdeps=$lt_postdeps
31651 # The library search path used internally by the compiler when linking
31652 # a shared library.
31653 compiler_lib_search_path=$lt_compiler_lib_search_path
31655 # ### END LIBTOOL CONFIG
31661 cat <<\_LT_EOF >> "$cfgfile"
31662 # AIX sometimes has problems with the GCC collect2 program. For some
31663 # reason, if we set the COLLECT_NAMES environment variable, the problems
31664 # vanish in a puff of smoke.
31665 if test "X${COLLECT_NAMES+set}" != Xset; then
31667 export COLLECT_NAMES
31674 ltmain="$ac_aux_dir/ltmain.sh"
31677 # We use sed instead of cat because bash on DJGPP gets confused if
31678 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31679 # text mode, it properly converts lines to CR/LF. This bash problem
31680 # is reportedly fixed, but why not run on old versions too?
31681 sed '$q' "$ltmain" >> "$cfgfile" \
31682 || (rm -f "$cfgfile"; exit 1)
31684 if test x"$xsi_shell" = xyes; then
31685 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
31689 \ */*) func_dirname_result="${1%/*}${2}" ;;\
31690 \ * ) func_dirname_result="${3}" ;;\
31692 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
31693 && mv -f "$cfgfile.tmp" "$cfgfile" \
31694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31695 test 0 -eq $? || _lt_function_replace_fail=:
31698 sed -e '/^func_basename ()$/,/^} # func_basename /c\
31701 \ func_basename_result="${1##*/}"\
31702 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
31703 && mv -f "$cfgfile.tmp" "$cfgfile" \
31704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31705 test 0 -eq $? || _lt_function_replace_fail=:
31708 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
31709 func_dirname_and_basename ()\
31712 \ */*) func_dirname_result="${1%/*}${2}" ;;\
31713 \ * ) func_dirname_result="${3}" ;;\
31715 \ func_basename_result="${1##*/}"\
31716 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
31717 && mv -f "$cfgfile.tmp" "$cfgfile" \
31718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31719 test 0 -eq $? || _lt_function_replace_fail=:
31722 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
31725 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
31726 \ # positional parameters, so assign one to ordinary parameter first.\
31727 \ func_stripname_result=${3}\
31728 \ func_stripname_result=${func_stripname_result#"${1}"}\
31729 \ func_stripname_result=${func_stripname_result%"${2}"}\
31730 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
31731 && mv -f "$cfgfile.tmp" "$cfgfile" \
31732 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31733 test 0 -eq $? || _lt_function_replace_fail=:
31736 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
31737 func_split_long_opt ()\
31739 \ func_split_long_opt_name=${1%%=*}\
31740 \ func_split_long_opt_arg=${1#*=}\
31741 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
31742 && mv -f "$cfgfile.tmp" "$cfgfile" \
31743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31744 test 0 -eq $? || _lt_function_replace_fail=:
31747 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
31748 func_split_short_opt ()\
31750 \ func_split_short_opt_arg=${1#??}\
31751 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
31752 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
31753 && mv -f "$cfgfile.tmp" "$cfgfile" \
31754 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31755 test 0 -eq $? || _lt_function_replace_fail=:
31758 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
31762 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
31763 \ *) func_lo2o_result=${1} ;;\
31765 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
31766 && mv -f "$cfgfile.tmp" "$cfgfile" \
31767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31768 test 0 -eq $? || _lt_function_replace_fail=:
31771 sed -e '/^func_xform ()$/,/^} # func_xform /c\
31774 func_xform_result=${1%.*}.lo\
31775 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
31776 && mv -f "$cfgfile.tmp" "$cfgfile" \
31777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31778 test 0 -eq $? || _lt_function_replace_fail=:
31781 sed -e '/^func_arith ()$/,/^} # func_arith /c\
31784 func_arith_result=$(( $* ))\
31785 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
31786 && mv -f "$cfgfile.tmp" "$cfgfile" \
31787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31788 test 0 -eq $? || _lt_function_replace_fail=:
31791 sed -e '/^func_len ()$/,/^} # func_len /c\
31794 func_len_result=${#1}\
31795 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
31796 && mv -f "$cfgfile.tmp" "$cfgfile" \
31797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31798 test 0 -eq $? || _lt_function_replace_fail=:
31802 if test x"$lt_shell_append" = xyes; then
31803 sed -e '/^func_append ()$/,/^} # func_append /c\
31806 eval "${1}+=\\${2}"\
31807 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
31808 && mv -f "$cfgfile.tmp" "$cfgfile" \
31809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31810 test 0 -eq $? || _lt_function_replace_fail=:
31813 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
31814 func_append_quoted ()\
31816 \ func_quote_for_eval "${2}"\
31817 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
31818 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
31819 && mv -f "$cfgfile.tmp" "$cfgfile" \
31820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31821 test 0 -eq $? || _lt_function_replace_fail=:
31824 # Save a `func_append' function call where possible by direct use of '+='
31825 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
31826 && mv -f "$cfgfile.tmp" "$cfgfile" \
31827 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31828 test 0 -eq $? || _lt_function_replace_fail=:
31830 # Save a `func_append' function call even when '+=' is not available
31831 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
31832 && mv -f "$cfgfile.tmp" "$cfgfile" \
31833 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31834 test 0 -eq $? || _lt_function_replace_fail=:
31837 if test x"$_lt_function_replace_fail" = x":"; then
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
31839 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
31843 mv -f "$cfgfile" "$ofile" ||
31844 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31848 cat <<_LT_EOF >> "$ofile"
31850 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31852 # The linker used to build libraries.
31855 # How to create reloadable object files.
31856 reload_flag=$lt_reload_flag_CXX
31857 reload_cmds=$lt_reload_cmds_CXX
31859 # Commands used to build an old-style archive.
31860 old_archive_cmds=$lt_old_archive_cmds_CXX
31862 # A language specific compiler.
31863 CC=$lt_compiler_CXX
31865 # Is the compiler the GNU compiler?
31868 # Compiler flag to turn off builtin functions.
31869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31871 # Additional compiler flags for building library objects.
31872 pic_flag=$lt_lt_prog_compiler_pic_CXX
31874 # How to pass a linker flag through the compiler.
31875 wl=$lt_lt_prog_compiler_wl_CXX
31877 # Compiler flag to prevent dynamic linking.
31878 link_static_flag=$lt_lt_prog_compiler_static_CXX
31880 # Does compiler simultaneously support -c and -o options?
31881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31883 # Whether or not to add -lc for building shared libraries.
31884 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31886 # Whether or not to disallow shared libs when runtime libs are static.
31887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31889 # Compiler flag to allow reflexive dlopens.
31890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31892 # Compiler flag to generate shared objects directly from archives.
31893 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31895 # Whether the compiler copes with passing no objects directly.
31896 compiler_needs_object=$lt_compiler_needs_object_CXX
31898 # Create an old-style archive from a shared archive.
31899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31901 # Create a temporary old-style archive to link instead of a shared archive.
31902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31904 # Commands used to build a shared archive.
31905 archive_cmds=$lt_archive_cmds_CXX
31906 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31908 # Commands used to build a loadable module if different from building
31909 # a shared archive.
31910 module_cmds=$lt_module_cmds_CXX
31911 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31913 # Whether we are building with GNU ld or not.
31914 with_gnu_ld=$lt_with_gnu_ld_CXX
31916 # Flag that allows shared libraries with undefined symbols to be built.
31917 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31919 # Flag that enforces no undefined symbols.
31920 no_undefined_flag=$lt_no_undefined_flag_CXX
31922 # Flag to hardcode \$libdir into a binary during linking.
31923 # This must work even if \$libdir does not exist
31924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31926 # Whether we need a single "-rpath" flag with a separated argument.
31927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31930 # DIR into the resulting binary.
31931 hardcode_direct=$hardcode_direct_CXX
31933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31934 # DIR into the resulting binary and the resulting library dependency is
31935 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31936 # library is relocated.
31937 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31940 # into the resulting binary.
31941 hardcode_minus_L=$hardcode_minus_L_CXX
31943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31944 # into the resulting binary.
31945 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31947 # Set to "yes" if building a shared library automatically hardcodes DIR
31948 # into the library and all subsequent libraries and executables linked
31950 hardcode_automatic=$hardcode_automatic_CXX
31952 # Set to yes if linker adds runtime paths of dependent libraries
31953 # to runtime path list.
31954 inherit_rpath=$inherit_rpath_CXX
31956 # Whether libtool must link a program against all its dependency libraries.
31957 link_all_deplibs=$link_all_deplibs_CXX
31959 # Set to "yes" if exported symbols are required.
31960 always_export_symbols=$always_export_symbols_CXX
31962 # The commands to list exported symbols.
31963 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31965 # Symbols that should not be listed in the preloaded symbols.
31966 exclude_expsyms=$lt_exclude_expsyms_CXX
31968 # Symbols that must always be exported.
31969 include_expsyms=$lt_include_expsyms_CXX
31971 # Commands necessary for linking programs (against libraries) with templates.
31972 prelink_cmds=$lt_prelink_cmds_CXX
31974 # Commands necessary for finishing linking programs.
31975 postlink_cmds=$lt_postlink_cmds_CXX
31977 # Specify filename containing input files.
31978 file_list_spec=$lt_file_list_spec_CXX
31980 # How to hardcode a shared library path into an executable.
31981 hardcode_action=$hardcode_action_CXX
31983 # The directories searched by this compiler when creating a shared library.
31984 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31986 # Dependencies to place before and after the objects being linked to
31987 # create a shared library.
31988 predep_objects=$lt_predep_objects_CXX
31989 postdep_objects=$lt_postdep_objects_CXX
31990 predeps=$lt_predeps_CXX
31991 postdeps=$lt_postdeps_CXX
31993 # The library search path used internally by the compiler when linking
31994 # a shared library.
31995 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31997 # ### END LIBTOOL TAG CONFIG: CXX
32001 "glib/glibconfig.h":C)
32002 outfile=glib/glibconfig.h-tmp
32003 cat > $outfile <<\_______EOF
32006 * This is a generated file. Please modify 'configure.ac'
32009 #ifndef __GLIBCONFIG_H__
32010 #define __GLIBCONFIG_H__
32012 #include <glib/gmacros.h>
32016 if test x$glib_limits_h = xyes; then
32017 echo '#include <limits.h>' >> $outfile
32019 if test x$glib_float_h = xyes; then
32020 echo '#include <float.h>' >> $outfile
32022 if test x$glib_values_h = xyes; then
32023 echo '#include <values.h>' >> $outfile
32025 if test "$glib_header_alloca_h" = "yes"; then
32026 echo '#define GLIB_HAVE_ALLOCA_H' >> $outfile
32028 if test x$glib_sys_poll_h = xyes; then
32029 echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
32031 if test x$glib_included_printf != xyes; then
32033 /* Specifies that GLib's g_print*() functions wrap the
32034 * system printf functions. This is useful to know, for example,
32035 * when using glibc's register_printf_function().
32037 echo '#define GLIB_USING_SYSTEM_PRINTF' >> $outfile
32040 cat >> $outfile <<_______EOF
32044 #define G_MINFLOAT $glib_mf
32045 #define G_MAXFLOAT $glib_Mf
32046 #define G_MINDOUBLE $glib_md
32047 #define G_MAXDOUBLE $glib_Md
32048 #define G_MINSHORT $glib_ms
32049 #define G_MAXSHORT $glib_Ms
32050 #define G_MAXUSHORT $glib_Mus
32051 #define G_MININT $glib_mi
32052 #define G_MAXINT $glib_Mi
32053 #define G_MAXUINT $glib_Mui
32054 #define G_MINLONG $glib_ml
32055 #define G_MAXLONG $glib_Ml
32056 #define G_MAXULONG $glib_Mul
32061 ### this should always be true in a modern C/C++ compiler
32062 cat >>$outfile <<_______EOF
32063 typedef signed char gint8;
32064 typedef unsigned char guint8;
32068 if test -n "$gint16"; then
32069 cat >>$outfile <<_______EOF
32070 typedef signed $gint16 gint16;
32071 typedef unsigned $gint16 guint16;
32072 #define G_GINT16_MODIFIER $gint16_modifier
32073 #define G_GINT16_FORMAT $gint16_format
32074 #define G_GUINT16_FORMAT $guint16_format
32079 if test -n "$gint32"; then
32080 cat >>$outfile <<_______EOF
32081 typedef signed $gint32 gint32;
32082 typedef unsigned $gint32 guint32;
32083 #define G_GINT32_MODIFIER $gint32_modifier
32084 #define G_GINT32_FORMAT $gint32_format
32085 #define G_GUINT32_FORMAT $guint32_format
32089 cat >>$outfile <<_______EOF
32090 #define G_HAVE_GINT64 1 /* deprecated, always true */
32092 ${glib_extension}typedef signed $gint64 gint64;
32093 ${glib_extension}typedef unsigned $gint64 guint64;
32095 #define G_GINT64_CONSTANT(val) $gint64_constant
32096 #define G_GUINT64_CONSTANT(val) $guint64_constant
32099 if test x$gint64_format != x ; then
32100 cat >>$outfile <<_______EOF
32101 #define G_GINT64_MODIFIER $gint64_modifier
32102 #define G_GINT64_FORMAT $gint64_format
32103 #define G_GUINT64_FORMAT $guint64_format
32106 cat >>$outfile <<_______EOF
32107 #undef G_GINT64_MODIFIER
32108 #undef G_GINT64_FORMAT
32109 #undef G_GUINT64_FORMAT
32113 cat >>$outfile <<_______EOF
32115 #define GLIB_SIZEOF_VOID_P $glib_void_p
32116 #define GLIB_SIZEOF_LONG $glib_long
32117 #define GLIB_SIZEOF_SIZE_T $glib_size_t
32121 cat >>$outfile <<_______EOF
32122 typedef signed $glib_size_type_define gssize;
32123 typedef unsigned $glib_size_type_define gsize;
32124 #define G_GSIZE_MODIFIER $gsize_modifier
32125 #define G_GSSIZE_FORMAT $gssize_format
32126 #define G_GSIZE_FORMAT $gsize_format
32128 #define G_MAXSIZE G_MAXU$glib_msize_type
32129 #define G_MINSSIZE G_MIN$glib_msize_type
32130 #define G_MAXSSIZE G_MAX$glib_msize_type
32132 typedef gint64 goffset;
32133 #define G_MINOFFSET G_MININT64
32134 #define G_MAXOFFSET G_MAXINT64
32136 #define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
32137 #define G_GOFFSET_FORMAT G_GINT64_FORMAT
32138 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
32142 if test -z "$glib_unknown_void_p"; then
32143 cat >>$outfile <<_______EOF
32145 #define GPOINTER_TO_INT(p) ((gint) ${glib_gpi_cast} (p))
32146 #define GPOINTER_TO_UINT(p) ((guint) ${glib_gpui_cast} (p))
32148 #define GINT_TO_POINTER(i) ((gpointer) ${glib_gpi_cast} (i))
32149 #define GUINT_TO_POINTER(u) ((gpointer) ${glib_gpui_cast} (u))
32151 typedef signed $glib_intptr_type_define gintptr;
32152 typedef unsigned $glib_intptr_type_define guintptr;
32154 #define G_GINTPTR_MODIFIER $gintptr_modifier
32155 #define G_GINTPTR_FORMAT $gintptr_format
32156 #define G_GUINTPTR_FORMAT $guintptr_format
32159 echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile
32164 cat >>$outfile <<_______EOF
32169 $glib_static_compilation
32174 #define G_HAVE_INLINE 1
32175 #else /* !__cplusplus */
32177 #endif /* !__cplusplus */
32180 #define G_CAN_INLINE 1
32183 if test x$g_can_inline = xyes ; then
32184 cat >>$outfile <<_______EOF
32185 #else /* !__cplusplus */
32186 #define G_CAN_INLINE 1
32190 cat >>$outfile <<_______EOF
32195 if test x$g_have_iso_c_varargs = xyes ; then
32196 cat >>$outfile <<_______EOF
32197 #ifndef __cplusplus
32198 # define G_HAVE_ISO_VARARGS 1
32202 if test x$g_have_iso_cxx_varargs = xyes ; then
32203 cat >>$outfile <<_______EOF
32205 # define G_HAVE_ISO_VARARGS 1
32209 if test x$g_have_gnuc_varargs = xyes ; then
32210 cat >>$outfile <<_______EOF
32212 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
32213 * is passed ISO vararg support is turned off, and there is no work
32214 * around to turn it on, so we unconditionally turn it off.
32216 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
32217 # undef G_HAVE_ISO_VARARGS
32220 #define G_HAVE_GNUC_VARARGS 1
32224 case x$g_stack_grows in
32225 xyes) echo "#define G_HAVE_GROWING_STACK 1" >>$outfile ;;
32226 *) echo "#define G_HAVE_GROWING_STACK 0" >>$outfile ;;
32231 if test x$g_have_eilseq = xno; then
32232 cat >>$outfile <<_______EOF
32234 /* On some systems, like SunOS and NetBSD, EILSEQ is not defined.
32235 * The correspondence between this and the corresponding definition
32236 * in libiconv is essential.
32238 # define EILSEQ ENOENT
32244 if test x$g_have_gnuc_visibility = xyes; then
32245 cat >>$outfile <<_______EOF
32246 #define G_HAVE_GNUC_VISIBILITY 1
32249 cat >>$outfile <<_______EOF
32250 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
32251 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
32252 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
32253 #define G_GNUC_INTERNAL __hidden
32254 #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
32255 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
32257 #define G_GNUC_INTERNAL
32262 cat >>$outfile <<_______EOF
32263 #define G_THREADS_ENABLED
32264 #define G_THREADS_IMPL_$g_threads_impl_def
32267 if test x"$g_memory_barrier_needed" != xno; then
32269 echo "#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1" >>$outfile
32271 if test x"$g_atomic_lock_free" = xyes; then
32273 echo "#define G_ATOMIC_LOCK_FREE" >>$outfile
32276 g_bit_sizes="16 32 64"
32277 for bits in $g_bit_sizes; do
32278 cat >>$outfile <<_______EOF
32279 #define GINT${bits}_TO_${g_bs_native}(val) ((gint${bits}) (val))
32280 #define GUINT${bits}_TO_${g_bs_native}(val) ((guint${bits}) (val))
32281 #define GINT${bits}_TO_${g_bs_alien}(val) ((gint${bits}) GUINT${bits}_SWAP_LE_BE (val))
32282 #define GUINT${bits}_TO_${g_bs_alien}(val) (GUINT${bits}_SWAP_LE_BE (val))
32286 cat >>$outfile <<_______EOF
32287 #define GLONG_TO_LE(val) ((glong) GINT${glongbits}_TO_LE (val))
32288 #define GULONG_TO_LE(val) ((gulong) GUINT${glongbits}_TO_LE (val))
32289 #define GLONG_TO_BE(val) ((glong) GINT${glongbits}_TO_BE (val))
32290 #define GULONG_TO_BE(val) ((gulong) GUINT${glongbits}_TO_BE (val))
32291 #define GINT_TO_LE(val) ((gint) GINT${gintbits}_TO_LE (val))
32292 #define GUINT_TO_LE(val) ((guint) GUINT${gintbits}_TO_LE (val))
32293 #define GINT_TO_BE(val) ((gint) GINT${gintbits}_TO_BE (val))
32294 #define GUINT_TO_BE(val) ((guint) GUINT${gintbits}_TO_BE (val))
32295 #define GSIZE_TO_LE(val) ((gsize) GUINT${gsizebits}_TO_LE (val))
32296 #define GSSIZE_TO_LE(val) ((gssize) GINT${gsizebits}_TO_LE (val))
32297 #define GSIZE_TO_BE(val) ((gsize) GUINT${gsizebits}_TO_BE (val))
32298 #define GSSIZE_TO_BE(val) ((gssize) GINT${gsizebits}_TO_BE (val))
32299 #define G_BYTE_ORDER $g_byte_order
32301 #define GLIB_SYSDEF_POLLIN =$g_pollin
32302 #define GLIB_SYSDEF_POLLOUT =$g_pollout
32303 #define GLIB_SYSDEF_POLLPRI =$g_pollpri
32304 #define GLIB_SYSDEF_POLLHUP =$g_pollhup
32305 #define GLIB_SYSDEF_POLLERR =$g_pollerr
32306 #define GLIB_SYSDEF_POLLNVAL =$g_pollnval
32308 #define G_MODULE_SUFFIX "$g_module_suffix"
32310 typedef $g_pid_type GPid;
32312 #define GLIB_SYSDEF_AF_UNIX $g_af_unix
32313 #define GLIB_SYSDEF_AF_INET $g_af_inet
32314 #define GLIB_SYSDEF_AF_INET6 $g_af_inet6
32316 #define GLIB_SYSDEF_MSG_OOB $g_msg_oob
32317 #define GLIB_SYSDEF_MSG_PEEK $g_msg_peek
32318 #define GLIB_SYSDEF_MSG_DONTROUTE $g_msg_dontroute
32322 #endif /* __GLIBCONFIG_H__ */
32326 if cmp -s $outfile glib/glibconfig.h; then
32327 { $as_echo "$as_me:${as_lineno-$LINENO}: glib/glibconfig.h is unchanged" >&5
32328 $as_echo "$as_me: glib/glibconfig.h is unchanged" >&6;}
32331 mv $outfile glib/glibconfig.h
32334 "chmod-scripts":C) chmod 0755 glib-zip
32335 chmod 0755 glib-gettextize
32336 chmod 0755 gobject/glib-mkenums ;;
32344 ac_clean_files=$ac_clean_files_save
32346 test $ac_write_fail = 0 ||
32347 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32350 # configure is writing to config.log, and then calls config.status.
32351 # config.status does its own redirection, appending to config.log.
32352 # Unfortunately, on DOS this fails, as config.log is still kept open
32353 # by configure, so config.status won't be able to write to it; its
32354 # output is simply discarded. So we exec the FD to /dev/null,
32355 # effectively closing config.log, so it can be properly (re)opened and
32356 # appended to by config.status. When coming back to configure, we
32357 # need to make the FD available again.
32358 if test "$no_create" != yes; then
32360 ac_config_status_args=
32361 test "$silent" = yes &&
32362 ac_config_status_args="$ac_config_status_args --quiet"
32364 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32366 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32367 # would make configure fail if this is the last instruction.
32368 $ac_cs_success || as_fn_exit 1
32370 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32372 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}