2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glib 2.31.20.
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.31.20'
575 PACKAGE_STRING='glib 2.31.20'
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
700 G_MODULE_BROKEN_RTLD_GLOBAL
701 G_MODULE_HAVE_DLERROR
708 HAVE_GOOD_PRINTF_FALSE
709 HAVE_GOOD_PRINTF_TRUE
713 HAVE_SUNSTUDIO_VISIBILITY_FALSE
714 HAVE_SUNSTUDIO_VISIBILITY_TRUE
715 HAVE_GNUC_VISIBILITY_FALSE
716 HAVE_GNUC_VISIBILITY_TRUE
718 OS_WIN32_AND_DLL_COMPILATION_FALSE
719 OS_WIN32_AND_DLL_COMPILATION_TRUE
720 GLIB_WIN32_STATIC_COMPILATION_DEFINE
758 CONFIG_STATUS_DEPENDENCIES
788 HAVE_GLIB_RUNTIME_LIBDIR_FALSE
789 HAVE_GLIB_RUNTIME_LIBDIR_TRUE
790 ABS_GLIB_RUNTIME_LIBDIR
795 LIBTOOL_EXPORT_OPTIONS
796 MS_LIB_AVAILABLE_FALSE
797 MS_LIB_AVAILABLE_TRUE
857 MAINTAINER_MODE_FALSE
867 INSTALL_STRIP_PROGRAM
909 program_transform_name
922 enable_option_checking
923 enable_maintainer_mode
925 enable_dependency_tracking
941 enable_included_printf
956 with_tapset_install_dir
960 ac_precious_vars='build_alias
989 # Initialize some variables set by options.
991 ac_init_version=false
992 ac_unrecognized_opts=
994 # The variables have the same names as the options, with
995 # dashes changed to underlines.
1003 program_transform_name=s,x,x,
1011 # Installation directory options.
1012 # These are left unexpanded so users can "make install exec_prefix=/foo"
1013 # and all the variables that are supposed to be based on exec_prefix
1014 # by default will actually change.
1015 # Use braces instead of parens because sh, perl, etc. also accept them.
1016 # (The list follows the same order as the GNU Coding Standards.)
1017 bindir='${exec_prefix}/bin'
1018 sbindir='${exec_prefix}/sbin'
1019 libexecdir='${exec_prefix}/libexec'
1020 datarootdir='${prefix}/share'
1021 datadir='${datarootdir}'
1022 sysconfdir='${prefix}/etc'
1023 sharedstatedir='${prefix}/com'
1024 localstatedir='${prefix}/var'
1025 includedir='${prefix}/include'
1026 oldincludedir='/usr/include'
1027 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1028 infodir='${datarootdir}/info'
1033 libdir='${exec_prefix}/lib'
1034 localedir='${datarootdir}/locale'
1035 mandir='${datarootdir}/man'
1041 # If the previous option needs an argument, assign it.
1042 if test -n "$ac_prev"; then
1043 eval $ac_prev=\$ac_option
1049 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054 # Accept the important Cygnus configure options, so we can diagnose typos.
1056 case $ac_dashdash$ac_option in
1060 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1062 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1063 bindir=$ac_optarg ;;
1065 -build | --build | --buil | --bui | --bu)
1066 ac_prev=build_alias ;;
1067 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1068 build_alias=$ac_optarg ;;
1070 -cache-file | --cache-file | --cache-fil | --cache-fi \
1071 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1072 ac_prev=cache_file ;;
1073 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1074 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1075 cache_file=$ac_optarg ;;
1077 --config-cache | -C)
1078 cache_file=config.cache ;;
1080 -datadir | --datadir | --datadi | --datad)
1082 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1083 datadir=$ac_optarg ;;
1085 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1086 | --dataroo | --dataro | --datar)
1087 ac_prev=datarootdir ;;
1088 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1089 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1090 datarootdir=$ac_optarg ;;
1092 -disable-* | --disable-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid feature name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "enable_$ac_useropt"
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1106 eval enable_$ac_useropt=no ;;
1108 -docdir | --docdir | --docdi | --doc | --do)
1110 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1111 docdir=$ac_optarg ;;
1113 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1115 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1116 dvidir=$ac_optarg ;;
1118 -enable-* | --enable-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid feature name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "enable_$ac_useropt"
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1132 eval enable_$ac_useropt=\$ac_optarg ;;
1134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136 | --exec | --exe | --ex)
1137 ac_prev=exec_prefix ;;
1138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140 | --exec=* | --exe=* | --ex=*)
1141 exec_prefix=$ac_optarg ;;
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1147 -help | --help | --hel | --he | -h)
1148 ac_init_help=long ;;
1149 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150 ac_init_help=recursive ;;
1151 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152 ac_init_help=short ;;
1154 -host | --host | --hos | --ho)
1155 ac_prev=host_alias ;;
1156 -host=* | --host=* | --hos=* | --ho=*)
1157 host_alias=$ac_optarg ;;
1159 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1161 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1163 htmldir=$ac_optarg ;;
1165 -includedir | --includedir | --includedi | --included | --include \
1166 | --includ | --inclu | --incl | --inc)
1167 ac_prev=includedir ;;
1168 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169 | --includ=* | --inclu=* | --incl=* | --inc=*)
1170 includedir=$ac_optarg ;;
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1175 infodir=$ac_optarg ;;
1177 -libdir | --libdir | --libdi | --libd)
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1180 libdir=$ac_optarg ;;
1182 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183 | --libexe | --libex | --libe)
1184 ac_prev=libexecdir ;;
1185 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186 | --libexe=* | --libex=* | --libe=*)
1187 libexecdir=$ac_optarg ;;
1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
1195 | --localstate | --localstat | --localsta | --localst | --locals)
1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1199 localstatedir=$ac_optarg ;;
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1204 mandir=$ac_optarg ;;
1206 -nfp | --nfp | --nf)
1207 # Obsolete; use --without-fp.
1210 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1211 | --no-cr | --no-c | -n)
1214 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1218 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220 | --oldin | --oldi | --old | --ol | --o)
1221 ac_prev=oldincludedir ;;
1222 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1225 oldincludedir=$ac_optarg ;;
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1230 prefix=$ac_optarg ;;
1232 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233 | --program-pre | --program-pr | --program-p)
1234 ac_prev=program_prefix ;;
1235 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1237 program_prefix=$ac_optarg ;;
1239 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240 | --program-suf | --program-su | --program-s)
1241 ac_prev=program_suffix ;;
1242 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1244 program_suffix=$ac_optarg ;;
1246 -program-transform-name | --program-transform-name \
1247 | --program-transform-nam | --program-transform-na \
1248 | --program-transform-n | --program-transform- \
1249 | --program-transform | --program-transfor \
1250 | --program-transfo | --program-transf \
1251 | --program-trans | --program-tran \
1252 | --progr-tra | --program-tr | --program-t)
1253 ac_prev=program_transform_name ;;
1254 -program-transform-name=* | --program-transform-name=* \
1255 | --program-transform-nam=* | --program-transform-na=* \
1256 | --program-transform-n=* | --program-transform-=* \
1257 | --program-transform=* | --program-transfor=* \
1258 | --program-transfo=* | --program-transf=* \
1259 | --program-trans=* | --program-tran=* \
1260 | --progr-tra=* | --program-tr=* | --program-t=*)
1261 program_transform_name=$ac_optarg ;;
1263 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1265 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266 pdfdir=$ac_optarg ;;
1268 -psdir | --psdir | --psdi | --psd | --ps)
1270 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1277 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1279 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1281 sbindir=$ac_optarg ;;
1283 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1284 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1285 | --sharedst | --shareds | --shared | --share | --shar \
1287 ac_prev=sharedstatedir ;;
1288 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1289 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1290 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1292 sharedstatedir=$ac_optarg ;;
1294 -site | --site | --sit)
1296 -site=* | --site=* | --sit=*)
1299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1302 srcdir=$ac_optarg ;;
1304 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1305 | --syscon | --sysco | --sysc | --sys | --sy)
1306 ac_prev=sysconfdir ;;
1307 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1308 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1309 sysconfdir=$ac_optarg ;;
1311 -target | --target | --targe | --targ | --tar | --ta | --t)
1312 ac_prev=target_alias ;;
1313 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1314 target_alias=$ac_optarg ;;
1316 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1319 -version | --version | --versio | --versi | --vers | -V)
1320 ac_init_version=: ;;
1323 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error $? "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1336 eval with_$ac_useropt=\$ac_optarg ;;
1338 -without-* | --without-*)
1339 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1340 # Reject names that are not valid shell variable names.
1341 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342 as_fn_error $? "invalid package name: $ac_useropt"
1343 ac_useropt_orig=$ac_useropt
1344 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350 ac_unrecognized_sep=', ';;
1352 eval with_$ac_useropt=no ;;
1355 # Obsolete; use --with-x.
1358 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1359 | --x-incl | --x-inc | --x-in | --x-i)
1360 ac_prev=x_includes ;;
1361 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1362 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1363 x_includes=$ac_optarg ;;
1365 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1366 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1367 ac_prev=x_libraries ;;
1368 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1369 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1370 x_libraries=$ac_optarg ;;
1372 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1373 Try \`$0 --help' for more information"
1377 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1378 # Reject names that are not valid shell variable names.
1379 case $ac_envvar in #(
1380 '' | [0-9]* | *[!_$as_cr_alnum]* )
1381 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1383 eval $ac_envvar=\$ac_optarg
1384 export $ac_envvar ;;
1387 # FIXME: should be removed in autoconf 3.0.
1388 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1389 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1391 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1397 if test -n "$ac_prev"; then
1398 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1399 as_fn_error $? "missing argument to $ac_option"
1402 if test -n "$ac_unrecognized_opts"; then
1403 case $enable_option_checking in
1405 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1406 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1410 # Check all directory arguments for consistency.
1411 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412 datadir sysconfdir sharedstatedir localstatedir includedir \
1413 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414 libdir localedir mandir
1416 eval ac_val=\$$ac_var
1417 # Remove trailing slashes.
1420 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421 eval $ac_var=\$ac_val;;
1423 # Be sure to have absolute directory names.
1425 [\\/$]* | ?:[\\/]* ) continue;;
1426 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1428 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1431 # There might be people who depend on the old broken behavior: `$host'
1432 # used to hold the argument of --host etc.
1433 # FIXME: To remove some day.
1436 target=$target_alias
1438 # FIXME: To remove some day.
1439 if test "x$host_alias" != x; then
1440 if test "x$build_alias" = x; then
1441 cross_compiling=maybe
1442 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1443 If a cross compiler is detected then cross compile mode will be used" >&2
1444 elif test "x$build_alias" != "x$host_alias"; then
1450 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1452 test "$silent" = yes && exec 6>/dev/null
1455 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1456 ac_ls_di=`ls -di .` &&
1457 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1458 as_fn_error $? "working directory cannot be determined"
1459 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460 as_fn_error $? "pwd does not report name of working directory"
1463 # Find the source files, if location was not specified.
1464 if test -z "$srcdir"; then
1465 ac_srcdir_defaulted=yes
1466 # Try the directory containing this script, then the parent directory.
1467 ac_confdir=`$as_dirname -- "$as_myself" ||
1468 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469 X"$as_myself" : 'X\(//\)[^/]' \| \
1470 X"$as_myself" : 'X\(//\)$' \| \
1471 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472 $as_echo X"$as_myself" |
1473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1495 ac_srcdir_defaulted=no
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1501 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1503 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1513 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1515 for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523 # Report the --help message.
1525 if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1529 \`configure' configures glib 2.31.20 to adapt to many kinds of systems.
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE. See below for descriptions of some of the useful variables.
1536 Defaults for the options are specified in brackets.
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking ...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1549 Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
1551 [$ac_default_prefix]
1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1560 For better control, use the options below.
1562 Fine tuning of the installation directories:
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/glib]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1592 --build=BUILD configure for building on BUILD [guessed]
1593 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1597 if test -n "$ac_init_help"; then
1598 case $ac_init_help in
1599 short | recursive ) echo "Configuration of glib 2.31.20:";;
1604 --disable-option-checking ignore unrecognized --enable/--with options
1605 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1606 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1607 --disable-maintainer-mode disable make rules and dependencies not useful
1608 (and sometimes confusing) to the casual installer
1609 --enable-silent-rules less verbose build output (undo: `make V=1')
1610 --disable-silent-rules verbose build output (undo: `make V=0')
1611 --disable-dependency-tracking speeds up one-time build
1612 --enable-dependency-tracking do not reject slow dependency extractors
1613 --enable-debug=[no/minimum/yes]
1614 turn on debugging [default=yes]
1615 --enable-gc-friendly turn on garbage collector friendliness [default=no]
1616 --disable-mem-pools disable all glib memory pools
1617 --disable-rebuilds disable all source autogeneration rules
1618 --disable-largefile omit support for large files
1619 --enable-iconv-cache=[yes/no/auto]
1620 cache iconv descriptors [default=auto]
1621 --enable-static[=PKGS] build static libraries [default=no]
1622 --enable-shared[=PKGS] build shared libraries [default=yes]
1623 --enable-fast-install[=PKGS]
1624 optimize for fast installation [default=yes]
1625 --disable-libtool-lock avoid locking (might break parallel builds)
1626 --enable-included-printf
1627 use included printf [default=auto]
1628 --disable-selinux build without selinux support
1629 --disable-fam don't use fam for file system monitoring
1630 --disable-xattr build without xattr support
1631 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1632 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1633 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1634 --enable-man regenerate man pages from Docbook [default=no]
1635 --enable-dtrace include tracing support for dtrace
1636 --enable-systemtap include tracing support for systemtap
1637 --enable-gcov enable coverage testing with gcov
1638 --disable-Bsymbolic avoid linking with -Bsymbolic
1641 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1642 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1643 --with-runtime-libdir=RELPATH
1644 install runtime libraries relative to libdir
1645 --with-libiconv=[no/gnu/native]
1646 use the libiconv library
1647 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1649 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1650 --with-sysroot=DIR Search for dependent libraries within DIR
1651 (or the compiler's sysroot if not specified).
1652 --with-gio-module-dir=DIR
1653 load gio modules from this directory
1654 [LIBDIR/gio/modules]
1655 --with-threads=[posix/win32]
1656 specify a thread implementation to use
1657 --with-pcre=[internal/system]
1658 whether to use system PCRE [default=internal]
1659 --with-html-dir=PATH path to installed docs
1660 --with-xml-catalog=CATALOG
1661 path to xml catalog to use
1662 --with-tapset-install-dir=DIR
1663 path where systemtap tapsets are installed
1664 [DATADIR/systemtap/tapset]
1666 Some influential environment variables:
1667 CC C compiler command
1668 CFLAGS C compiler flags
1669 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1670 nonstandard directory <lib dir>
1671 LIBS libraries to pass to the linker, e.g. -l<library>
1672 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1673 you have headers in a nonstandard directory <include dir>
1675 CXX C++ compiler command
1676 CXXFLAGS C++ compiler flags
1677 PKG_CONFIG path to pkg-config utility
1679 directories to add to pkg-config's search path
1681 path overriding pkg-config's built-in search path
1682 PYTHON the Python interpreter
1683 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1684 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1686 C compiler flags for LIBFFI, overriding pkg-config
1687 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1688 CXXCPP C++ preprocessor
1689 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1690 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1692 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1694 linker flags for GTKDOC_DEPS, overriding pkg-config
1696 C compiler flags for DBUS1, overriding pkg-config
1697 DBUS1_LIBS linker flags for DBUS1, overriding pkg-config
1699 Use these variables to override the choices made by `configure' or to help
1700 it to find libraries and programs with nonstandard names/locations.
1702 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
1707 if test "$ac_init_help" = "recursive"; then
1708 # If there are subdirs, report their specific --help.
1709 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710 test -d "$ac_dir" ||
1711 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1719 # A ".." for each directory in $ac_dir_suffix.
1720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721 case $ac_top_builddir_sub in
1722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1726 ac_abs_top_builddir=$ac_pwd
1727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728 # for backward compatibility:
1729 ac_top_builddir=$ac_top_build_prefix
1732 .) # We are building in place.
1734 ac_top_srcdir=$ac_top_builddir_sub
1735 ac_abs_top_srcdir=$ac_pwd ;;
1736 [\\/]* | ?:[\\/]* ) # Absolute name.
1737 ac_srcdir=$srcdir$ac_dir_suffix;
1738 ac_top_srcdir=$srcdir
1739 ac_abs_top_srcdir=$srcdir ;;
1741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742 ac_top_srcdir=$ac_top_build_prefix$srcdir
1743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747 cd "$ac_dir" || { ac_status=$?; continue; }
1748 # Check for guested configure.
1749 if test -f "$ac_srcdir/configure.gnu"; then
1751 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752 elif test -f "$ac_srcdir/configure"; then
1754 $SHELL "$ac_srcdir/configure" --help=recursive
1756 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758 cd "$ac_pwd" || { ac_status=$?; break; }
1762 test -n "$ac_init_help" && exit $ac_status
1763 if $ac_init_version; then
1765 glib configure 2.31.20
1766 generated by GNU Autoconf 2.68
1768 Copyright (C) 2010 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1775 ## ------------------------ ##
1776 ## Autoconf initialization. ##
1777 ## ------------------------ ##
1779 # ac_fn_c_try_compile LINENO
1780 # --------------------------
1781 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_compile ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext
1786 if { { ac_try="$ac_compile"
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_compile") 2>conftest.err
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest.$ac_objext; then :
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1815 } # ac_fn_c_try_compile
1817 # ac_fn_c_try_cpp LINENO
1818 # ----------------------
1819 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_cpp conftest.$ac_ext"
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } > conftest.i && {
1839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1854 # ac_fn_cxx_try_compile LINENO
1855 # ----------------------------
1856 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_cxx_try_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 rm -f conftest.$ac_objext
1861 if { { ac_try="$ac_compile"
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_compile") 2>conftest.err
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && {
1877 test -z "$ac_cxx_werror_flag" ||
1878 test ! -s conftest.err
1879 } && test -s conftest.$ac_objext; then :
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1890 } # ac_fn_cxx_try_compile
1892 # ac_fn_c_try_link LINENO
1893 # -----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 $as_test_x conftest$ac_exeext
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_c_try_link
1938 # ac_fn_c_check_func LINENO FUNC VAR
1939 # ----------------------------------
1940 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1941 ac_fn_c_check_func ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953 #define $2 innocuous_$2
1955 /* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1961 # include <limits.h>
1963 # include <assert.h>
1968 /* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1975 /* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978 #if defined __stub_$2 || defined __stub___$2
1990 if ac_fn_c_try_link "$LINENO"; then :
1995 rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_func
2005 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2006 # -------------------------------------------------------
2007 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2008 # the include files in INCLUDES and setting the cache variable VAR
2010 ac_fn_c_check_header_mongrel ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if eval \${$3+:} false; then :
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2023 # Is the header compilable?
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2025 $as_echo_n "checking $2 usability... " >&6; }
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_header_compiler=yes
2034 ac_header_compiler=no
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2038 $as_echo "$ac_header_compiler" >&6; }
2040 # Is the header present?
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2042 $as_echo_n "checking $2 presence... " >&6; }
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2047 if ac_fn_c_try_cpp "$LINENO"; then :
2048 ac_header_preproc=yes
2050 ac_header_preproc=no
2052 rm -f conftest.err conftest.i conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2054 $as_echo "$ac_header_preproc" >&6; }
2056 # So? What about this header?
2057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2060 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2066 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2068 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2070 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2072 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2074 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075 ( $as_echo "## ------------------------------------------------------------------- ##
2076 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib ##
2077 ## ------------------------------------------------------------------- ##"
2078 ) | sed "s/^/$as_me: WARNING: /" >&2
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084 $as_echo_n "(cached) " >&6
2086 eval "$3=\$ac_header_compiler"
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 } # ac_fn_c_check_header_mongrel
2096 # ac_fn_c_try_run LINENO
2097 # ----------------------
2098 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2099 # that executables *can* be run.
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_link"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_link") 2>&5
2112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2114 { { case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119 $as_echo "$ac_try_echo"; } >&5
2120 (eval "$ac_try") 2>&5
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; }; }; then :
2126 $as_echo "$as_me: program exited with status $ac_status" >&5
2127 $as_echo "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2130 ac_retval=$ac_status
2132 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 as_fn_set_status $ac_retval
2138 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists and can be compiled using the include files in
2141 # INCLUDES, setting the cache variable VAR accordingly.
2142 ac_fn_c_check_header_compile ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if eval \${$3+:} false; then :
2148 $as_echo_n "(cached) " >&6
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_c_check_header_compile
2169 # ac_fn_cxx_try_cpp LINENO
2170 # ------------------------
2171 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_cxx_try_cpp ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if { { ac_try="$ac_cpp conftest.$ac_ext"
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2184 if test -s conftest.err; then
2185 grep -v '^ *+' conftest.err >conftest.er1
2186 cat conftest.er1 >&5
2187 mv -f conftest.er1 conftest.err
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } > conftest.i && {
2191 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2192 test ! -s conftest.err
2196 $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2204 } # ac_fn_cxx_try_cpp
2206 # ac_fn_cxx_try_link LINENO
2207 # -------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_cxx_try_link ()
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 rm -f conftest.$ac_objext conftest$ac_exeext
2213 if { { ac_try="$ac_link"
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>conftest.err
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && {
2229 test -z "$ac_cxx_werror_flag" ||
2230 test ! -s conftest.err
2231 } && test -s conftest$ac_exeext && {
2232 test "$cross_compiling" = yes ||
2233 $as_test_x conftest$ac_exeext
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2242 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244 # interfere with the next link command; also delete a directory that is
2245 # left behind by Apple's compiler. We do this before executing the actions.
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 as_fn_set_status $ac_retval
2250 } # ac_fn_cxx_try_link
2252 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2253 # -------------------------------------------
2254 # Tests whether TYPE exists after having included INCLUDES, setting cache
2255 # variable VAR accordingly.
2256 ac_fn_c_check_type ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260 $as_echo_n "checking for $2... " >&6; }
2261 if eval \${$3+:} false; then :
2262 $as_echo_n "(cached) " >&6
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2290 if ac_fn_c_try_compile "$LINENO"; then :
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304 } # ac_fn_c_check_type
2306 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2307 # --------------------------------------------
2308 # Tries to find the compile-time value of EXPR in a program that includes
2309 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2311 ac_fn_c_compute_int ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 if test "$cross_compiling" = yes; then
2315 # Depending upon the size, compute the lo and hi bounds.
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2322 static int test_array [1 - 2 * !(($2) >= 0)];
2329 if ac_fn_c_try_compile "$LINENO"; then :
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2338 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 ac_hi=$ac_mid; break
2348 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2349 if test $ac_lo -le $ac_mid; then
2353 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2364 static int test_array [1 - 2 * !(($2) < 0)];
2371 if ac_fn_c_try_compile "$LINENO"; then :
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2380 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2387 if ac_fn_c_try_compile "$LINENO"; then :
2388 ac_lo=$ac_mid; break
2390 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2391 if test $ac_mid -le $ac_hi; then
2395 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 # Binary search between lo and hi bounds.
2406 while test "x$ac_lo" != "x$ac_hi"; do
2407 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2414 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2421 if ac_fn_c_try_compile "$LINENO"; then :
2424 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2436 static long int longval () { return $2; }
2437 static unsigned long int ulongval () { return $2; }
2444 FILE *f = fopen ("conftest.val", "w");
2449 long int i = longval ();
2452 fprintf (f, "%ld", i);
2456 unsigned long int i = ulongval ();
2459 fprintf (f, "%lu", i);
2461 /* Do not output a trailing newline, as this causes \r\n confusion
2462 on some platforms. */
2463 return ferror (f) || fclose (f) != 0;
2469 if ac_fn_c_try_run "$LINENO"; then :
2470 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2475 conftest.$ac_objext conftest.beam conftest.$ac_ext
2479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2480 as_fn_set_status $ac_retval
2482 } # ac_fn_c_compute_int
2484 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2485 # ----------------------------------------------------
2486 # Tries to find if the field MEMBER exists in type AGGR, after including
2487 # INCLUDES, setting cache variable VAR accordingly.
2488 ac_fn_c_check_member ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2492 $as_echo_n "checking for $2.$3... " >&6; }
2493 if eval \${$4+:} false; then :
2494 $as_echo_n "(cached) " >&6
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2509 if ac_fn_c_try_compile "$LINENO"; then :
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2519 if (sizeof ac_aggr.$3)
2525 if ac_fn_c_try_compile "$LINENO"; then :
2530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2539 } # ac_fn_c_check_member
2540 cat >config.log <<_ACEOF
2541 This file contains any messages produced by compilers while
2542 running configure, to aid debugging if configure makes a mistake.
2544 It was created by glib $as_me 2.31.20, which was
2545 generated by GNU Autoconf 2.68. Invocation command line was
2557 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2558 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2559 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2560 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2561 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2563 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2564 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2566 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2567 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2568 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2569 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2570 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2571 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2572 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 $as_echo "PATH: $as_dir"
2597 # Keep a trace of the command line.
2598 # Strip out --no-create and --no-recursion so they do not pile up.
2599 # Strip out --silent because we don't want to record it for future runs.
2600 # Also quote any args containing shell meta-characters.
2601 # Make two passes to allow for proper duplicate-argument suppression.
2605 ac_must_keep_next=false
2611 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2613 | -silent | --silent | --silen | --sile | --sil)
2616 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2621 as_fn_append ac_configure_args1 " '$ac_arg'"
2622 if test $ac_must_keep_next = true; then
2623 ac_must_keep_next=false # Got value, back to normal.
2626 *=* | --config-cache | -C | -disable-* | --disable-* \
2627 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2628 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2629 | -with-* | --with-* | -without-* | --without-* | --x)
2630 case "$ac_configure_args0 " in
2631 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2634 -* ) ac_must_keep_next=true ;;
2637 as_fn_append ac_configure_args " '$ac_arg'"
2642 { ac_configure_args0=; unset ac_configure_args0;}
2643 { ac_configure_args1=; unset ac_configure_args1;}
2645 # When interrupted or exit'd, cleanup temporary files, and complete
2646 # config.log. We remove comments because anyway the quotes in there
2647 # would cause problems or look ugly.
2648 # WARNING: Use '\'' to represent an apostrophe within the trap.
2649 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2650 trap 'exit_status=$?
2651 # Save into config.log some information that might help in debugging.
2655 $as_echo "## ---------------- ##
2656 ## Cache variables. ##
2657 ## ---------------- ##"
2659 # The following way of writing the cache mishandles newlines in values,
2661 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2662 eval ac_val=\$$ac_var
2666 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2667 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2670 _ | IFS | as_nl) ;; #(
2671 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2672 *) { eval $ac_var=; unset $ac_var;} ;;
2677 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2678 *${as_nl}ac_space=\ *)
2680 "s/'\''/'\''\\\\'\'''\''/g;
2681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2684 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2691 $as_echo "## ----------------- ##
2692 ## Output variables. ##
2693 ## ----------------- ##"
2695 for ac_var in $ac_subst_vars
2697 eval ac_val=\$$ac_var
2699 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2701 $as_echo "$ac_var='\''$ac_val'\''"
2705 if test -n "$ac_subst_files"; then
2706 $as_echo "## ------------------- ##
2707 ## File substitutions. ##
2708 ## ------------------- ##"
2710 for ac_var in $ac_subst_files
2712 eval ac_val=\$$ac_var
2714 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2716 $as_echo "$ac_var='\''$ac_val'\''"
2721 if test -s confdefs.h; then
2722 $as_echo "## ----------- ##
2729 test "$ac_signal" != 0 &&
2730 $as_echo "$as_me: caught signal $ac_signal"
2731 $as_echo "$as_me: exit $exit_status"
2733 rm -f core *.core core.conftest.* &&
2734 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2737 for ac_signal in 1 2 13 15; do
2738 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2742 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2743 rm -f -r conftest* confdefs.h
2745 $as_echo "/* confdefs.h */" > confdefs.h
2747 # Predefined preprocessor variables.
2749 cat >>confdefs.h <<_ACEOF
2750 #define PACKAGE_NAME "$PACKAGE_NAME"
2753 cat >>confdefs.h <<_ACEOF
2754 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2757 cat >>confdefs.h <<_ACEOF
2758 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2761 cat >>confdefs.h <<_ACEOF
2762 #define PACKAGE_STRING "$PACKAGE_STRING"
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_URL "$PACKAGE_URL"
2774 # Let the site file select an alternate cache file if it wants to.
2775 # Prefer an explicitly selected file to automatically selected ones.
2778 if test -n "$CONFIG_SITE"; then
2779 # We do not want a PATH search for config.site.
2780 case $CONFIG_SITE in #((
2781 -*) ac_site_file1=./$CONFIG_SITE;;
2782 */*) ac_site_file1=$CONFIG_SITE;;
2783 *) ac_site_file1=./$CONFIG_SITE;;
2785 elif test "x$prefix" != xNONE; then
2786 ac_site_file1=$prefix/share/config.site
2787 ac_site_file2=$prefix/etc/config.site
2789 ac_site_file1=$ac_default_prefix/share/config.site
2790 ac_site_file2=$ac_default_prefix/etc/config.site
2792 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2794 test "x$ac_site_file" = xNONE && continue
2795 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2797 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2798 sed 's/^/| /' "$ac_site_file" >&5
2800 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802 as_fn_error $? "failed to load site script $ac_site_file
2803 See \`config.log' for more details" "$LINENO" 5; }
2807 if test -r "$cache_file"; then
2808 # Some versions of bash will fail to source /dev/null (special files
2809 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2810 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2812 $as_echo "$as_me: loading cache $cache_file" >&6;}
2814 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2815 *) . "./$cache_file";;
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2820 $as_echo "$as_me: creating cache $cache_file" >&6;}
2824 # Check that the precious variables saved in the cache have kept the same
2826 ac_cache_corrupted=false
2827 for ac_var in $ac_precious_vars; do
2828 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2829 eval ac_new_set=\$ac_env_${ac_var}_set
2830 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2831 eval ac_new_val=\$ac_env_${ac_var}_value
2832 case $ac_old_set,$ac_new_set in
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2835 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2836 ac_cache_corrupted=: ;;
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2839 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2840 ac_cache_corrupted=: ;;
2843 if test "x$ac_old_val" != "x$ac_new_val"; then
2844 # differences in whitespace do not lead to failure.
2845 ac_old_val_w=`echo x $ac_old_val`
2846 ac_new_val_w=`echo x $ac_new_val`
2847 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2849 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2850 ac_cache_corrupted=:
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2853 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2854 eval $ac_var=\$ac_old_val
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2857 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2859 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2862 # Pass precious variables to config.status.
2863 if test "$ac_new_set" = set; then
2865 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2866 *) ac_arg=$ac_var=$ac_new_val ;;
2868 case " $ac_configure_args " in
2869 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2870 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2874 if $ac_cache_corrupted; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2878 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2879 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2881 ## -------------------- ##
2882 ## Main body of script. ##
2883 ## -------------------- ##
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 ac_config_headers="$ac_config_headers config.h"
2898 # Save this value here, since automake will set cflags later
2899 cflags_set=${CFLAGS+set}
2901 am__api_version='1.11'
2904 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2905 if test -f "$ac_dir/install-sh"; then
2907 ac_install_sh="$ac_aux_dir/install-sh -c"
2909 elif test -f "$ac_dir/install.sh"; then
2911 ac_install_sh="$ac_aux_dir/install.sh -c"
2913 elif test -f "$ac_dir/shtool"; then
2915 ac_install_sh="$ac_aux_dir/shtool install -c"
2919 if test -z "$ac_aux_dir"; then
2920 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2923 # These three variables are undocumented and unsupported,
2924 # and are intended to be withdrawn in a future Autoconf release.
2925 # They can cause serious problems if a builder's source tree is in a directory
2926 # whose full name contains unusual characters.
2927 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2928 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2929 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2932 # Find a good install program. We prefer a C program (faster),
2933 # so one script is as good as another. But avoid the broken or
2934 # incompatible versions:
2935 # SysV /etc/install, /usr/sbin/install
2936 # SunOS /usr/etc/install
2937 # IRIX /sbin/install
2939 # AmigaOS /C/install, which installs bootblocks on floppy discs
2940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2943 # OS/2's system install, which has a completely different semantic
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 # Reject install programs that cannot install multiple files.
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2947 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2948 if test -z "$INSTALL"; then
2949 if ${ac_cv_path_install+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 # Account for people who put trailing slashes in PATH elements.
2958 case $as_dir/ in #((
2959 ./ | .// | /[cC]/* | \
2960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2961 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2964 # OSF1 and SCO ODT 3.0 have their own names for install.
2965 # Don't use installbsd from OSF since it installs stuff as root
2967 for ac_prog in ginstall scoinst install; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2970 if test $ac_prog = install &&
2971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # AIX install. It has an incompatible calling convention.
2974 elif test $ac_prog = install &&
2975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976 # program-specific install script used by HP pwplus--don't use.
2979 rm -rf conftest.one conftest.two conftest.dir
2980 echo one > conftest.one
2981 echo two > conftest.two
2983 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2984 test -s conftest.one && test -s conftest.two &&
2985 test -s conftest.dir/conftest.one &&
2986 test -s conftest.dir/conftest.two
2988 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3001 rm -rf conftest.one conftest.two conftest.dir
3004 if test "${ac_cv_path_install+set}" = set; then
3005 INSTALL=$ac_cv_path_install
3007 # As a last resort, use the slow shell script. Don't cache a
3008 # value for INSTALL within a source directory, because that will
3009 # break other packages using the cache if that directory is
3010 # removed, or if the value is a relative name.
3011 INSTALL=$ac_install_sh
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3015 $as_echo "$INSTALL" >&6; }
3017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3018 # It thinks the first close brace ends the variable substitution.
3019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3026 $as_echo_n "checking whether build environment is sane... " >&6; }
3029 echo timestamp > conftest.file
3030 # Reject unsafe characters in $srcdir or the absolute working directory
3031 # name. Accept space and tab only in the latter.
3035 *[\\\"\#\$\&\'\`$am_lf]*)
3036 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3039 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3040 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3043 # Do `set' in a subshell so we don't clobber the current shell's
3044 # arguments. Must try -L first in case configure is actually a
3045 # symlink; some systems play weird games with the mod time of symlinks
3046 # (eg FreeBSD returns the mod time of the symlink's containing
3049 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3050 if test "$*" = "X"; then
3052 set X `ls -t "$srcdir/configure" conftest.file`
3055 if test "$*" != "X $srcdir/configure conftest.file" \
3056 && test "$*" != "X conftest.file $srcdir/configure"; then
3058 # If neither matched, then we have a broken ls. This can happen
3059 # if, for instance, CONFIG_SHELL is bash and it inherits a
3060 # broken ls alias from the environment. This has actually
3061 # happened. Such a system could not be considered "sane".
3062 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3063 alias in your environment" "$LINENO" 5
3066 test "$2" = conftest.file
3072 as_fn_error $? "newly created file is older than distributed files!
3073 Check your system clock" "$LINENO" 5
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3077 test "$program_prefix" != NONE &&
3078 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3082 # Double any \ or $.
3083 # By default was `s,x,x', remove it if useless.
3084 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3085 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3087 # expand $ac_aux_dir to an absolute path
3088 am_aux_dir=`cd $ac_aux_dir && pwd`
3090 if test x"${MISSING+set}" != xset; then
3093 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3095 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3098 # Use eval to expand $SHELL
3099 if eval "$MISSING --run true"; then
3100 am_missing_run="$MISSING --run "
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3104 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3107 if test x"${install_sh}" != xset; then
3110 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3112 install_sh="\${SHELL} $am_aux_dir/install-sh"
3116 # Installed binaries are usually stripped using `strip' when the user
3117 # run `make install-strip'. However `strip' might not be the right
3118 # tool to use in cross-compilation environments, therefore Automake
3119 # will honor the `STRIP' environment variable to overrule this program.
3120 if test "$cross_compiling" != no; then
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}strip; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if ${ac_cv_prog_STRIP+:} false; then :
3127 $as_echo_n "(cached) " >&6
3129 if test -n "$STRIP"; then
3130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 STRIP=$ac_cv_prog_STRIP
3150 if test -n "$STRIP"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3152 $as_echo "$STRIP" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3160 if test -z "$ac_cv_prog_STRIP"; then
3162 # Extract the first word of "strip", so it can be a program name with args.
3163 set dummy strip; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$ac_ct_STRIP"; then
3170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_ac_ct_STRIP="strip"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3190 if test -n "$ac_ct_STRIP"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3192 $as_echo "$ac_ct_STRIP" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3198 if test "x$ac_ct_STRIP" = x; then
3201 case $cross_compiling:$ac_tool_warned in
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3210 STRIP="$ac_cv_prog_STRIP"
3214 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3217 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3218 if test -z "$MKDIR_P"; then
3219 if ${ac_cv_path_mkdir+:} false; then :
3220 $as_echo_n "(cached) " >&6
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3226 test -z "$as_dir" && as_dir=.
3227 for ac_prog in mkdir gmkdir; do
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3230 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3231 'mkdir (GNU coreutils) '* | \
3232 'mkdir (coreutils) '* | \
3233 'mkdir (fileutils) '4.1*)
3234 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3244 test -d ./--version && rmdir ./--version
3245 if test "${ac_cv_path_mkdir+set}" = set; then
3246 MKDIR_P="$ac_cv_path_mkdir -p"
3248 # As a last resort, use the slow shell script. Don't cache a
3249 # value for MKDIR_P within a source directory, because that will
3250 # break other packages using the cache if that directory is
3251 # removed, or if the value is a relative name.
3252 MKDIR_P="$ac_install_sh -d"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3256 $as_echo "$MKDIR_P" >&6; }
3260 [\\/$]* | ?:[\\/]*) ;;
3261 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3264 for ac_prog in gawk mawk nawk awk
3266 # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_AWK+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$AWK"; then
3274 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_AWK="$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test -n "$AWK"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3296 $as_echo "$AWK" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3303 test -n "$AWK" && break
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3307 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3309 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3310 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3311 $as_echo_n "(cached) " >&6
3313 cat >conftest.make <<\_ACEOF
3316 @echo '@@@%%%=$(MAKE)=@@@%%%'
3318 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3319 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3321 eval ac_cv_prog_make_${ac_make}_set=yes;;
3323 eval ac_cv_prog_make_${ac_make}_set=no;;
3327 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 SET_MAKE="MAKE=${MAKE-make}"
3337 rm -rf .tst 2>/dev/null
3338 mkdir .tst 2>/dev/null
3339 if test -d .tst; then
3344 rmdir .tst 2>/dev/null
3346 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3347 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3348 # is not polluted with repeated "-I."
3349 am__isrc=' -I$(srcdir)'
3350 # test to see if srcdir already configured
3351 if test -f $srcdir/config.status; then
3352 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3356 # test whether we have cygpath
3357 if test -z "$CYGPATH_W"; then
3358 if (cygpath --version) >/dev/null 2>/dev/null; then
3359 CYGPATH_W='cygpath -w'
3366 # Define the identity of the package.
3371 # Some tools Automake needs.
3373 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3376 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3379 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3382 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3385 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3387 # We need awk for the "check" target. The system "awk" is bad on
3389 # Always define AMTAR for backward compatibility. Yes, it's still used
3390 # in the wild :-( We should find a proper way to deprecate it ...
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3395 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3396 # Loop over all known methods to create a tar archive until one works.
3397 _am_tools='gnutar plaintar pax cpio none'
3398 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3399 # Do not fold the above two line into one, because Tru64 sh and
3400 # Solaris sh will not grok spaces in the rhs of `-'.
3401 for _am_tool in $_am_tools
3405 for _am_tar in tar gnutar gtar;
3407 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3408 ($_am_tar --version) >&5 2>&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } && break
3413 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3414 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3415 am__untar="$_am_tar -xf -"
3418 # Must skip GNU tar: if it does not support --format= it doesn't create
3419 # ustar tarball either.
3420 (tar --version) >/dev/null 2>&1 && continue
3421 am__tar='tar chf - "$$tardir"'
3422 am__tar_='tar chf - "$tardir"'
3423 am__untar='tar xf -'
3426 am__tar='pax -L -x ustar -w "$$tardir"'
3427 am__tar_='pax -L -x ustar -w "$tardir"'
3431 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3432 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3433 am__untar='cpio -i -H ustar -d'
3442 # If the value was cached, stop now. We just wanted to have am__tar
3443 # and am__untar set.
3444 test -n "${am_cv_prog_tar_ustar}" && break
3446 # tar/untar a dummy directory, and stop if the command works
3449 echo GrepMe > conftest.dir/file
3450 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3451 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }
3456 if test -s conftest.tar; then
3457 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3458 ($am__untar <conftest.tar) >&5 2>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }
3462 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3467 if ${am_cv_prog_tar_ustar+:} false; then :
3468 $as_echo_n "(cached) " >&6
3470 am_cv_prog_tar_ustar=$_am_tool
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3474 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3482 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3483 # Check whether --enable-maintainer-mode was given.
3484 if test "${enable_maintainer_mode+set}" = set; then :
3485 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3487 USE_MAINTAINER_MODE=yes
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3491 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3492 if test $USE_MAINTAINER_MODE = yes; then
3493 MAINTAINER_MODE_TRUE=
3494 MAINTAINER_MODE_FALSE='#'
3496 MAINTAINER_MODE_TRUE='#'
3497 MAINTAINER_MODE_FALSE=
3500 MAINT=$MAINTAINER_MODE_TRUE
3504 # Support silent build rules. Disable
3505 # by either passing --disable-silent-rules to configure or passing V=1
3507 # Check whether --enable-silent-rules was given.
3508 if test "${enable_silent_rules+set}" = set; then :
3509 enableval=$enable_silent_rules;
3512 case $enable_silent_rules in
3513 yes) AM_DEFAULT_VERBOSITY=0;;
3514 no) AM_DEFAULT_VERBOSITY=1;;
3515 *) AM_DEFAULT_VERBOSITY=0;;
3517 am_make=${MAKE-make}
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3519 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3520 if ${am_cv_make_support_nested_variables+:} false; then :
3521 $as_echo_n "(cached) " >&6
3523 if $as_echo 'TRUE=$(BAR$(V))
3529 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3530 am_cv_make_support_nested_variables=yes
3532 am_cv_make_support_nested_variables=no
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3536 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3537 if test $am_cv_make_support_nested_variables = yes; then
3539 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3541 AM_V=$AM_DEFAULT_VERBOSITY
3542 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3547 GLIB_MAJOR_VERSION=2
3548 GLIB_MINOR_VERSION=31
3549 GLIB_MICRO_VERSION=20
3550 GLIB_INTERFACE_AGE=0
3551 GLIB_BINARY_AGE=3120
3552 GLIB_VERSION=2.31.20
3562 $as_echo "#define GLIB_MAJOR_VERSION 2" >>confdefs.h
3565 $as_echo "#define GLIB_MINOR_VERSION 31" >>confdefs.h
3568 $as_echo "#define GLIB_MICRO_VERSION 20" >>confdefs.h
3571 $as_echo "#define GLIB_INTERFACE_AGE 0" >>confdefs.h
3574 $as_echo "#define GLIB_BINARY_AGE 3120" >>confdefs.h
3577 # libtool versioning
3582 LT_CURRENT_MINUS_AGE=0
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 if test -n "$ac_tool_prefix"; then
3595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3596 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if ${ac_cv_prog_CC+:} false; then :
3600 $as_echo_n "(cached) " >&6
3602 if test -n "$CC"; then
3603 ac_cv_prog_CC="$CC" # Let the user override the test.
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 if test -n "$CC"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 $as_echo "$CC" >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3633 if test -z "$ac_cv_prog_CC"; then
3635 # Extract the first word of "gcc", so it can be a program name with args.
3636 set dummy gcc; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3640 $as_echo_n "(cached) " >&6
3642 if test -n "$ac_ct_CC"; then
3643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652 ac_cv_prog_ac_ct_CC="gcc"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3663 if test -n "$ac_ct_CC"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3665 $as_echo "$ac_ct_CC" >&6; }
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3671 if test "x$ac_ct_CC" = x; then
3674 case $cross_compiling:$ac_tool_warned in
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3678 ac_tool_warned=yes ;;
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3689 set dummy ${ac_tool_prefix}cc; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if ${ac_cv_prog_CC+:} false; then :
3693 $as_echo_n "(cached) " >&6
3695 if test -n "$CC"; then
3696 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_CC="${ac_tool_prefix}cc"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 if test -n "$CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 $as_echo "$CC" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3727 if test -z "$CC"; then
3728 # Extract the first word of "cc", so it can be a program name with args.
3729 set dummy cc; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if ${ac_cv_prog_CC+:} false; then :
3733 $as_echo_n "(cached) " >&6
3735 if test -n "$CC"; then
3736 ac_cv_prog_CC="$CC" # Let the user override the test.
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3747 ac_prog_rejected=yes
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 if test $ac_prog_rejected = yes; then
3759 # We found a bogon in the path, so make sure we never use it.
3760 set dummy $ac_cv_prog_CC
3762 if test $# != 0; then
3763 # We chose a different compiler from the bogus one.
3764 # However, it has the same basename, so the bogon will be chosen
3765 # first if we set CC to just the basename; use the full file name.
3767 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3773 if test -n "$CC"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3783 if test -z "$CC"; then
3784 if test -n "$ac_tool_prefix"; then
3785 for ac_prog in cl.exe
3787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if ${ac_cv_prog_CC+:} false; then :
3792 $as_echo_n "(cached) " >&6
3794 if test -n "$CC"; then
3795 ac_cv_prog_CC="$CC" # Let the user override the test.
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 if test -n "$CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3817 $as_echo "$CC" >&6; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3824 test -n "$CC" && break
3827 if test -z "$CC"; then
3829 for ac_prog in cl.exe
3831 # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 if test -n "$ac_ct_CC"; then
3839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_prog_ac_ct_CC="$ac_prog"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859 if test -n "$ac_ct_CC"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3861 $as_echo "$ac_ct_CC" >&6; }
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3868 test -n "$ac_ct_CC" && break
3871 if test "x$ac_ct_CC" = x; then
3874 case $cross_compiling:$ac_tool_warned in
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3878 ac_tool_warned=yes ;;
3887 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error $? "no acceptable C compiler found in \$PATH
3890 See \`config.log' for more details" "$LINENO" 5; }
3892 # Provide some information about the compiler.
3893 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3896 for ac_option in --version -v -V -qversion; do
3897 { { ac_try="$ac_compiler $ac_option >&5"
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3906 if test -s conftest.err; then
3908 ... rest of stderr output deleted ...
3909 10q' conftest.err >conftest.er1
3910 cat conftest.er1 >&5
3912 rm -f conftest.er1 conftest.err
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3928 ac_clean_files_save=$ac_clean_files
3929 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3930 # Try to create an executable without -o first, disregard a.out.
3931 # It will help us diagnose broken compilers, and finding out an intuition
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3934 $as_echo_n "checking whether the C compiler works... " >&6; }
3935 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3937 # The possible output files:
3938 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3941 for ac_file in $ac_files
3944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3945 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3950 if { { ac_try="$ac_link_default"
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_link_default") 2>&5
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }; then :
3961 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3962 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3963 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3964 # so that the user can short-circuit this test for compilers unknown to
3966 for ac_file in $ac_files ''
3968 test -f "$ac_file" || continue
3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3973 # We found the default executable, but exeext='' is most
3977 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3979 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3981 # We set ac_cv_exeext here because the later test for it is not
3982 # safe: cross compilers may not add the suffix if given an `-o'
3983 # argument, so we may need to know it at that point already.
3984 # Even if this section looks crufty: it has the advantage of
3991 test "$ac_cv_exeext" = no && ac_cv_exeext=
3996 if test -z "$ac_file"; then :
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
3999 $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error 77 "C compiler cannot create executables
4005 See \`config.log' for more details" "$LINENO" 5; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4008 $as_echo "yes" >&6; }
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4011 $as_echo_n "checking for C compiler default output file name... " >&6; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4013 $as_echo "$ac_file" >&6; }
4014 ac_exeext=$ac_cv_exeext
4016 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4017 ac_clean_files=$ac_clean_files_save
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4019 $as_echo_n "checking for suffix of executables... " >&6; }
4020 if { { ac_try="$ac_link"
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_link") 2>&5
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; then :
4031 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4032 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4033 # work properly (i.e., refer to `conftest.exe'), while it won't with
4035 for ac_file in conftest.exe conftest conftest.*; do
4036 test -f "$ac_file" || continue
4038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4039 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4048 See \`config.log' for more details" "$LINENO" 5; }
4050 rm -f conftest conftest$ac_cv_exeext
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4052 $as_echo "$ac_cv_exeext" >&6; }
4054 rm -f conftest.$ac_ext
4055 EXEEXT=$ac_cv_exeext
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4063 FILE *f = fopen ("conftest.out", "w");
4064 return ferror (f) || fclose (f) != 0;
4070 ac_clean_files="$ac_clean_files conftest.out"
4071 # Check that the compiler produces executables we can run. If not, either
4072 # the compiler is broken, or we cross compile.
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4074 $as_echo_n "checking whether we are cross compiling... " >&6; }
4075 if test "$cross_compiling" != yes; then
4076 { { ac_try="$ac_link"
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082 $as_echo "$ac_try_echo"; } >&5
4083 (eval "$ac_link") 2>&5
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }
4087 if { ac_try='./conftest$ac_cv_exeext'
4088 { { case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_try") 2>&5
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }; }; then
4100 if test "$cross_compiling" = maybe; then
4103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error $? "cannot run C compiled programs.
4106 If you meant to cross compile, use \`--host'.
4107 See \`config.log' for more details" "$LINENO" 5; }
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4112 $as_echo "$cross_compiling" >&6; }
4114 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4115 ac_clean_files=$ac_clean_files_save
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4117 $as_echo_n "checking for suffix of object files... " >&6; }
4118 if ${ac_cv_objext+:} false; then :
4119 $as_echo_n "(cached) " >&6
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4132 rm -f conftest.o conftest.obj
4133 if { { ac_try="$ac_compile"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139 $as_echo "$ac_try_echo"; } >&5
4140 (eval "$ac_compile") 2>&5
4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143 test $ac_status = 0; }; then :
4144 for ac_file in conftest.o conftest.obj conftest.*; do
4145 test -f "$ac_file" || continue;
4147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4148 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error $? "cannot compute suffix of object files: cannot compile
4159 See \`config.log' for more details" "$LINENO" 5; }
4161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4164 $as_echo "$ac_cv_objext" >&6; }
4165 OBJEXT=$ac_cv_objext
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4168 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4169 if ${ac_cv_c_compiler_gnu+:} false; then :
4170 $as_echo_n "(cached) " >&6
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4186 if ac_fn_c_try_compile "$LINENO"; then :
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4196 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4197 if test $ac_compiler_gnu = yes; then
4202 ac_test_CFLAGS=${CFLAGS+set}
4203 ac_save_CFLAGS=$CFLAGS
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4205 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4206 if ${ac_cv_prog_cc_g+:} false; then :
4207 $as_echo_n "(cached) " >&6
4209 ac_save_c_werror_flag=$ac_c_werror_flag
4210 ac_c_werror_flag=yes
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4224 if ac_fn_c_try_compile "$LINENO"; then :
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4239 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_c_werror_flag=$ac_save_c_werror_flag
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4255 if ac_fn_c_try_compile "$LINENO"; then :
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 ac_c_werror_flag=$ac_save_c_werror_flag
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4266 $as_echo "$ac_cv_prog_cc_g" >&6; }
4267 if test "$ac_test_CFLAGS" = set; then
4268 CFLAGS=$ac_save_CFLAGS
4269 elif test $ac_cv_prog_cc_g = yes; then
4270 if test "$GCC" = yes; then
4276 if test "$GCC" = yes; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4283 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4284 if ${ac_cv_prog_cc_c89+:} false; then :
4285 $as_echo_n "(cached) " >&6
4287 ac_cv_prog_cc_c89=no
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4293 #include <sys/types.h>
4294 #include <sys/stat.h>
4295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4296 struct buf { int x; };
4297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4298 static char *e (p, i)
4304 static char *f (char * (*g) (char **, int), char **p, ...)
4309 s = g (p, va_arg (v,int));
4314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4315 function prototypes and stuff, but not '\xHH' hex character constants.
4316 These don't provoke an error unfortunately, instead are silently treated
4317 as 'x'. The following induces an error, until -std is added to get
4318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4319 array size at least. It's necessary to write '\x00'==0 to get something
4320 that's true only with -std. */
4321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4323 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4324 inside strings and character constants. */
4326 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4328 int test (int i, double x);
4329 struct s1 {int (*f) (int a);};
4330 struct s2 {int (*f) (double a);};
4331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4337 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4345 CC="$ac_save_CC $ac_arg"
4346 if ac_fn_c_try_compile "$LINENO"; then :
4347 ac_cv_prog_cc_c89=$ac_arg
4349 rm -f core conftest.err conftest.$ac_objext
4350 test "x$ac_cv_prog_cc_c89" != "xno" && break
4352 rm -f conftest.$ac_ext
4357 case "x$ac_cv_prog_cc_c89" in
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4360 $as_echo "none needed" >&6; } ;;
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4363 $as_echo "unsupported" >&6; } ;;
4365 CC="$CC $ac_cv_prog_cc_c89"
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4367 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4369 if test "x$ac_cv_prog_cc_c89" != xno; then :
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378 DEPDIR="${am__leading_dot}deps"
4380 ac_config_commands="$ac_config_commands depfiles"
4383 am_make=${MAKE-make}
4384 cat > confinc << 'END'
4386 @echo this is the am__doit target
4389 # If we don't find an include directive, just comment out the code.
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4391 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4395 # First try GNU make style include.
4396 echo "include confinc" > confmf
4397 # Ignore all kinds of additional output from `make'.
4398 case `$am_make -s -f confmf 2> /dev/null` in #(
4399 *the\ am__doit\ target*)
4405 # Now try BSD make style include.
4406 if test "$am__include" = "#"; then
4407 echo '.include "confinc"' > confmf
4408 case `$am_make -s -f confmf 2> /dev/null` in #(
4409 *the\ am__doit\ target*)
4410 am__include=.include
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4419 $as_echo "$_am_result" >&6; }
4420 rm -f confinc confmf
4422 # Check whether --enable-dependency-tracking was given.
4423 if test "${enable_dependency_tracking+set}" = set; then :
4424 enableval=$enable_dependency_tracking;
4427 if test "x$enable_dependency_tracking" != xno; then
4428 am_depcomp="$ac_aux_dir/depcomp"
4432 if test "x$enable_dependency_tracking" != xno; then
4442 depcc="$CC" am_compiler_list=
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4445 $as_echo_n "checking dependency style of $depcc... " >&6; }
4446 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4450 # We make a subdir and do the tests there. Otherwise we can end up
4451 # making bogus files that we don't know about and never remove. For
4452 # instance it was reported that on HP-UX the gcc test will end up
4453 # making a dummy file named `D' -- because `-MD' means `put the output
4457 # Copy depcomp to subdir because otherwise we won't find it if we're
4458 # using a relative directory.
4459 cp "$am_depcomp" conftest.dir
4461 # We will build objects and dependencies in a subdirectory because
4462 # it helps to detect inapplicable dependency modes. For instance
4463 # both Tru64's cc and ICC support -MD to output dependencies as a
4464 # side effect of compilation, but ICC will put the dependencies in
4465 # the current directory while Tru64 will put them in the object
4469 am_cv_CC_dependencies_compiler_type=none
4470 if test "$am_compiler_list" = ""; then
4471 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4474 case " $depcc " in #(
4475 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4478 for depmode in $am_compiler_list; do
4479 # Setup a source with many dependencies, because some compilers
4480 # like to wrap large dependency lists on column 80 (with \), and
4481 # we should not choose a depcomp mode which is confused by this.
4483 # We need to recreate these files for each test, as the compiler may
4484 # overwrite some of them when testing with obscure command lines.
4485 # This happens at least with the AIX C compiler.
4487 for i in 1 2 3 4 5 6; do
4488 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4489 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4490 # Solaris 8's {/usr,}/bin/sh.
4491 touch sub/conftst$i.h
4493 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4495 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4496 # mode. It turns out that the SunPro C++ compiler does not properly
4497 # handle `-M -o', and we need to detect this. Also, some Intel
4498 # versions had trouble with output in subdirs
4499 am__obj=sub/conftest.${OBJEXT-o}
4500 am__minus_obj="-o $am__obj"
4503 # This depmode causes a compiler race in universal mode.
4504 test "$am__universal" = false || continue
4507 # after this tag, mechanisms are not by side-effect, so they'll
4508 # only be used when explicitly requested
4509 if test "x$enable_dependency_tracking" = xyes; then
4515 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4516 # This compiler won't grok `-c -o', but also, the minuso test has
4517 # not run yet. These depmodes are late enough in the game, and
4518 # so weak that their functioning should not be impacted.
4519 am__obj=conftest.${OBJEXT-o}
4524 if depmode=$depmode \
4525 source=sub/conftest.c object=$am__obj \
4526 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4527 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4528 >/dev/null 2>conftest.err &&
4529 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4530 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4531 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4532 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4533 # icc doesn't choke on unknown options, it will just issue warnings
4534 # or remarks (even with -Werror). So we grep stderr for any message
4535 # that says an option was ignored or not supported.
4536 # When given -MP, icc 7.0 and 7.1 complain thusly:
4537 # icc: Command line warning: ignoring option '-M'; no argument required
4538 # The diagnosis changed in icc 8.0:
4539 # icc: Command line remark: option '-MP' not supported
4540 if (grep 'ignoring option' conftest.err ||
4541 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4542 am_cv_CC_dependencies_compiler_type=$depmode
4551 am_cv_CC_dependencies_compiler_type=none
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4556 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4557 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4560 test "x$enable_dependency_tracking" != xno \
4561 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4563 am__fastdepCC_FALSE='#'
4565 am__fastdepCC_TRUE='#'
4566 am__fastdepCC_FALSE=
4571 ac_cpp='$CPP $CPPFLAGS'
4572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4576 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4577 # On Suns, sometimes $CPP names a directory.
4578 if test -n "$CPP" && test -d "$CPP"; then
4581 if test -z "$CPP"; then
4582 if ${ac_cv_prog_CPP+:} false; then :
4583 $as_echo_n "(cached) " >&6
4585 # Double quotes because CPP needs to be expanded
4586 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4589 for ac_c_preproc_warn_flag in '' yes
4591 # Use a header file that comes with gcc, so configuring glibc
4592 # with a fresh cross-compiler works.
4593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4594 # <limits.h> exists even on freestanding compilers.
4595 # On the NeXT, cc -E runs the code through the compiler's parser,
4596 # not just through cpp. "Syntax error" is here to catch this case.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4600 # include <limits.h>
4602 # include <assert.h>
4606 if ac_fn_c_try_cpp "$LINENO"; then :
4609 # Broken: fails on valid input.
4612 rm -f conftest.err conftest.i conftest.$ac_ext
4614 # OK, works on sane cases. Now check whether nonexistent headers
4615 # can be detected and how.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 #include <ac_nonexistent.h>
4620 if ac_fn_c_try_cpp "$LINENO"; then :
4621 # Broken: success on invalid input.
4624 # Passes both tests.
4628 rm -f conftest.err conftest.i conftest.$ac_ext
4631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4632 rm -f conftest.i conftest.err conftest.$ac_ext
4633 if $ac_preproc_ok; then :
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4646 $as_echo "$CPP" >&6; }
4648 for ac_c_preproc_warn_flag in '' yes
4650 # Use a header file that comes with gcc, so configuring glibc
4651 # with a fresh cross-compiler works.
4652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4653 # <limits.h> exists even on freestanding compilers.
4654 # On the NeXT, cc -E runs the code through the compiler's parser,
4655 # not just through cpp. "Syntax error" is here to catch this case.
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4659 # include <limits.h>
4661 # include <assert.h>
4665 if ac_fn_c_try_cpp "$LINENO"; then :
4668 # Broken: fails on valid input.
4671 rm -f conftest.err conftest.i conftest.$ac_ext
4673 # OK, works on sane cases. Now check whether nonexistent headers
4674 # can be detected and how.
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 #include <ac_nonexistent.h>
4679 if ac_fn_c_try_cpp "$LINENO"; then :
4680 # Broken: success on invalid input.
4683 # Passes both tests.
4687 rm -f conftest.err conftest.i conftest.$ac_ext
4690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4691 rm -f conftest.i conftest.err conftest.$ac_ext
4692 if $ac_preproc_ok; then :
4695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4697 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4698 See \`config.log' for more details" "$LINENO" 5; }
4702 ac_cpp='$CPP $CPPFLAGS'
4703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4708 if test "$GCC" = "yes"; then
4717 # Make sure we can run config.sub.
4718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4719 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4722 $as_echo_n "checking build system type... " >&6; }
4723 if ${ac_cv_build+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 ac_build_alias=$build_alias
4727 test "x$ac_build_alias" = x &&
4728 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4729 test "x$ac_build_alias" = x &&
4730 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4731 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4732 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4736 $as_echo "$ac_cv_build" >&6; }
4737 case $ac_cv_build in
4739 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4742 ac_save_IFS=$IFS; IFS='-'
4748 # Remember, the first character of IFS is used to create $*,
4749 # except with old shells:
4752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4756 $as_echo_n "checking host system type... " >&6; }
4757 if ${ac_cv_host+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if test "x$host_alias" = x; then
4761 ac_cv_host=$ac_cv_build
4763 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4764 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4769 $as_echo "$ac_cv_host" >&6; }
4772 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4775 ac_save_IFS=$IFS; IFS='-'
4781 # Remember, the first character of IFS is used to create $*,
4782 # except with old shells:
4785 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the BeOS" >&5
4790 $as_echo_n "checking for the BeOS... " >&6; }
4793 glib_native_beos="yes"
4796 glib_native_beos="no"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_beos" >&5
4800 $as_echo "$glib_native_beos" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5
4804 $as_echo_n "checking for Win32... " >&6; }
4805 LIB_EXE_MACHINE_FLAG=X86
4808 glib_native_win32=yes
4809 glib_pid_type='void *'
4810 glib_cv_stack_grows=no
4811 # Unfortunately the mingw implementations of C99-style snprintf and vsnprintf
4812 # don't seem to be quite good enough, at least not in mingw-runtime-3.14.
4813 # (Sorry, I don't know exactly what is the problem, but it is related to
4814 # floating point formatting and decimal point vs. comma.)
4815 # The simple tests in AC_FUNC_VSNPRINTF_C99 and AC_FUNC_SNPRINTF_C99 aren't
4816 # rigorous enough to notice, though.
4817 # So preset the autoconf cache variables.
4818 ac_cv_func_vsnprintf_c99=no
4819 ac_cv_func_snprintf_c99=no
4822 LIB_EXE_MACHINE_FLAG=X64
4827 glib_native_win32=no
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_win32" >&5
4838 $as_echo "$glib_native_win32" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Carbon support" >&5
4844 $as_echo_n "checking for Mac OS X Carbon support... " >&6; }
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4850 #include <Carbon/Carbon.h>
4851 #include <CoreServices/CoreServices.h>
4854 if ac_fn_c_try_cpp "$LINENO"; then :
4855 glib_have_carbon=yes
4857 rm -f conftest.err conftest.i conftest.$ac_ext
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_carbon" >&5
4860 $as_echo "$glib_have_carbon" >&6; }
4862 if test "$glib_native_win32" = "yes"; then
4870 if test "$LIB_EXE_MACHINE_FLAG" = "X64"; then
4872 OS_WIN32_X64_FALSE='#'
4874 OS_WIN32_X64_TRUE='#'
4878 if test "$glib_native_win32" != "yes"; then
4886 if test "$glib_os_linux" = "yes"; then
4894 if test "$glib_have_carbon" = "yes"; then
4903 if test "$glib_native_win32" = "yes"; then
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}windres; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if ${ac_cv_prog_WINDRES+:} false; then :
4910 $as_echo_n "(cached) " >&6
4912 if test -n "$WINDRES"; then
4913 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 WINDRES=$ac_cv_prog_WINDRES
4933 if test -n "$WINDRES"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4935 $as_echo "$WINDRES" >&6; }
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4943 if test -z "$ac_cv_prog_WINDRES"; then
4944 ac_ct_WINDRES=$WINDRES
4945 # Extract the first word of "windres", so it can be a program name with args.
4946 set dummy windres; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
4950 $as_echo_n "(cached) " >&6
4952 if test -n "$ac_ct_WINDRES"; then
4953 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_WINDRES="windres"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4973 if test -n "$ac_ct_WINDRES"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
4975 $as_echo "$ac_ct_WINDRES" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4981 if test "x$ac_ct_WINDRES" = x; then
4984 case $cross_compiling:$ac_tool_warned in
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4988 ac_tool_warned=yes ;;
4990 WINDRES=$ac_ct_WINDRES
4993 WINDRES="$ac_cv_prog_WINDRES"
4996 if test "$WINDRES" = no; then
4997 as_fn_error $? "*** Could not find an implementation of windres in your PATH." "$LINENO" 5
4999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5001 set dummy ${ac_tool_prefix}nm; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_NM+:} false; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -n "$NM"; then
5008 ac_cv_prog_NM="$NM" # Let the user override the test.
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_NM="${ac_tool_prefix}nm"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 if test -n "$NM"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5030 $as_echo "$NM" >&6; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5038 if test -z "$ac_cv_prog_NM"; then
5040 # Extract the first word of "nm", so it can be a program name with args.
5041 set dummy nm; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5045 $as_echo_n "(cached) " >&6
5047 if test -n "$ac_ct_NM"; then
5048 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_ac_ct_NM="nm"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5068 if test -n "$ac_ct_NM"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5070 $as_echo "$ac_ct_NM" >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5076 if test "x$ac_ct_NM" = x; then
5079 case $cross_compiling:$ac_tool_warned in
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083 ac_tool_warned=yes ;;
5091 if test "$NM" = no; then
5092 as_fn_error $? "*** Could not find an implementation of nm in your PATH." "$LINENO" 5
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_RANLIB+:} false; then :
5100 $as_echo_n "(cached) " >&6
5102 if test -n "$RANLIB"; then
5103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 RANLIB=$ac_cv_prog_RANLIB
5123 if test -n "$RANLIB"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5125 $as_echo "$RANLIB" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5133 if test -z "$ac_cv_prog_RANLIB"; then
5134 ac_ct_RANLIB=$RANLIB
5135 # Extract the first word of "ranlib", so it can be a program name with args.
5136 set dummy ranlib; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5140 $as_echo_n "(cached) " >&6
5142 if test -n "$ac_ct_RANLIB"; then
5143 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_RANLIB="ranlib"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5163 if test -n "$ac_ct_RANLIB"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5165 $as_echo "$ac_ct_RANLIB" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5171 if test "x$ac_ct_RANLIB" = x; then
5174 case $cross_compiling:$ac_tool_warned in
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5180 RANLIB=$ac_ct_RANLIB
5183 RANLIB="$ac_cv_prog_RANLIB"
5186 # Extract the first word of "lib.exe", so it can be a program name with args.
5187 set dummy lib.exe; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_ms_librarian+:} false; then :
5191 $as_echo_n "(cached) " >&6
5193 if test -n "$ms_librarian"; then
5194 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_ms_librarian="yes"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
5214 ms_librarian=$ac_cv_prog_ms_librarian
5215 if test -n "$ms_librarian"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
5217 $as_echo "$ms_librarian" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5225 if test x$ms_librarian = xyes; then
5226 MS_LIB_AVAILABLE_TRUE=
5227 MS_LIB_AVAILABLE_FALSE='#'
5229 MS_LIB_AVAILABLE_TRUE='#'
5230 MS_LIB_AVAILABLE_FALSE=
5234 if test "$glib_native_win32" != yes; then
5235 # libtool option to control which symbols are exported
5236 # right now, symbols starting with _ are not exported
5237 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^g.*"'
5239 # We currently use .def files on Windows
5240 LIBTOOL_EXPORT_OPTIONS=
5244 if test "x$glib_have_carbon" = "xyes"; then
5246 $as_echo "#define HAVE_CARBON 1" >>confdefs.h
5248 LDFLAGS="$LDFLAGS -framework Carbon"
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5252 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5253 if ${ac_cv_path_GREP+:} false; then :
5254 $as_echo_n "(cached) " >&6
5256 if test -z "$GREP"; then
5257 ac_path_GREP_found=false
5258 # Loop through the user's path and test for each of PROGNAME-LIST
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5263 test -z "$as_dir" && as_dir=.
5264 for ac_prog in grep ggrep; do
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5267 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5268 # Check for GNU ac_path_GREP and select it if it is found.
5269 # Check for GNU $ac_path_GREP
5270 case `"$ac_path_GREP" --version 2>&1` in
5272 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5275 $as_echo_n 0123456789 >"conftest.in"
5278 cat "conftest.in" "conftest.in" >"conftest.tmp"
5279 mv "conftest.tmp" "conftest.in"
5280 cp "conftest.in" "conftest.nl"
5281 $as_echo 'GREP' >> "conftest.nl"
5282 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284 as_fn_arith $ac_count + 1 && ac_count=$as_val
5285 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5286 # Best one so far, save it but keep looking for a better one
5287 ac_cv_path_GREP="$ac_path_GREP"
5288 ac_path_GREP_max=$ac_count
5290 # 10*(2^10) chars as input seems more than enough
5291 test $ac_count -gt 10 && break
5293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5296 $ac_path_GREP_found && break 3
5301 if test -z "$ac_cv_path_GREP"; then
5302 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5305 ac_cv_path_GREP=$GREP
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5310 $as_echo "$ac_cv_path_GREP" >&6; }
5311 GREP="$ac_cv_path_GREP"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5315 $as_echo_n "checking for egrep... " >&6; }
5316 if ${ac_cv_path_EGREP+:} false; then :
5317 $as_echo_n "(cached) " >&6
5319 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5320 then ac_cv_path_EGREP="$GREP -E"
5322 if test -z "$EGREP"; then
5323 ac_path_EGREP_found=false
5324 # Loop through the user's path and test for each of PROGNAME-LIST
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5329 test -z "$as_dir" && as_dir=.
5330 for ac_prog in egrep; do
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5333 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5334 # Check for GNU ac_path_EGREP and select it if it is found.
5335 # Check for GNU $ac_path_EGREP
5336 case `"$ac_path_EGREP" --version 2>&1` in
5338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5341 $as_echo_n 0123456789 >"conftest.in"
5344 cat "conftest.in" "conftest.in" >"conftest.tmp"
5345 mv "conftest.tmp" "conftest.in"
5346 cp "conftest.in" "conftest.nl"
5347 $as_echo 'EGREP' >> "conftest.nl"
5348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350 as_fn_arith $ac_count + 1 && ac_count=$as_val
5351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5352 # Best one so far, save it but keep looking for a better one
5353 ac_cv_path_EGREP="$ac_path_EGREP"
5354 ac_path_EGREP_max=$ac_count
5356 # 10*(2^10) chars as input seems more than enough
5357 test $ac_count -gt 10 && break
5359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5362 $ac_path_EGREP_found && break 3
5367 if test -z "$ac_cv_path_EGREP"; then
5368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5371 ac_cv_path_EGREP=$EGREP
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5377 $as_echo "$ac_cv_path_EGREP" >&6; }
5378 EGREP="$ac_cv_path_EGREP"
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
5383 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
5384 if ${ac_cv_gnu_library_2_1+:} false; then :
5385 $as_echo_n "(cached) " >&6
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5390 #include <features.h>
5391 #ifdef __GNU_LIBRARY__
5392 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5400 ac_cv_gnu_library_2_1=yes
5402 ac_cv_gnu_library_2_1=no
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
5410 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
5412 GLIBC21="$ac_cv_gnu_library_2_1"
5415 if test "x$GLIBC21" = "xyes"; then
5417 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5421 # Check whether --enable-debug was given.
5422 if test "${enable_debug+set}" = set; then :
5423 enableval=$enable_debug;
5429 # Check whether --enable-gc_friendly was given.
5430 if test "${enable_gc_friendly+set}" = set; then :
5431 enableval=$enable_gc_friendly;
5433 enable_gc_friendly=no
5436 # Check whether --enable-mem_pools was given.
5437 if test "${enable_mem_pools+set}" = set; then :
5438 enableval=$enable_mem_pools;
5440 disable_mem_pools=no
5443 # Check whether --enable-rebuilds was given.
5444 if test "${enable_rebuilds+set}" = set; then :
5445 enableval=$enable_rebuilds;
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable garbage collector friendliness" >&5
5452 $as_echo_n "checking whether to enable garbage collector friendliness... " >&6; }
5453 if test "x$enable_gc_friendly" = "xyes"; then
5455 $as_echo "#define ENABLE_GC_FRIENDLY_DEFAULT 1" >>confdefs.h
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable memory pools" >&5
5465 $as_echo_n "checking whether to disable memory pools... " >&6; }
5466 if test "x$disable_mem_pools" = "xno"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5471 $as_echo "#define DISABLE_MEM_POOLS 1" >>confdefs.h
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5474 $as_echo "yes" >&6; }
5478 # Check whether --with-runtime-libdir was given.
5479 if test "${with_runtime_libdir+set}" = set; then :
5480 withval=$with_runtime_libdir;
5482 with_runtime_libdir=""
5485 GLIB_RUNTIME_LIBDIR="$with_runtime_libdir"
5486 ABS_GLIB_RUNTIME_LIBDIR="`readlink -f $libdir/$with_runtime_libdir`"
5489 if test "x$with_runtime_libdir" != "x"; then
5490 HAVE_GLIB_RUNTIME_LIBDIR_TRUE=
5491 HAVE_GLIB_RUNTIME_LIBDIR_FALSE='#'
5493 HAVE_GLIB_RUNTIME_LIBDIR_TRUE='#'
5494 HAVE_GLIB_RUNTIME_LIBDIR_FALSE=
5498 if test -n "$ac_tool_prefix"; then
5499 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_prog_CXX+:} false; then :
5506 $as_echo_n "(cached) " >&6
5508 if test -n "$CXX"; then
5509 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 if test -n "$CXX"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5531 $as_echo "$CXX" >&6; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5538 test -n "$CXX" && break
5541 if test -z "$CXX"; then
5543 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5545 # Extract the first word of "$ac_prog", so it can be a program name with args.
5546 set dummy $ac_prog; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5550 $as_echo_n "(cached) " >&6
5552 if test -n "$ac_ct_CXX"; then
5553 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562 ac_cv_prog_ac_ct_CXX="$ac_prog"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5573 if test -n "$ac_ct_CXX"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5575 $as_echo "$ac_ct_CXX" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5582 test -n "$ac_ct_CXX" && break
5585 if test "x$ac_ct_CXX" = x; then
5588 case $cross_compiling:$ac_tool_warned in
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592 ac_tool_warned=yes ;;
5600 ac_cpp='$CXXCPP $CPPFLAGS'
5601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5606 ac_cpp='$CXXCPP $CPPFLAGS'
5607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5610 if test -z "$CXX"; then
5611 if test -n "$CCC"; then
5614 if test -n "$ac_tool_prefix"; then
5615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_CXX+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 if test -n "$CXX"; then
5625 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 if test -n "$CXX"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5647 $as_echo "$CXX" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5654 test -n "$CXX" && break
5657 if test -z "$CXX"; then
5659 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5661 # Extract the first word of "$ac_prog", so it can be a program name with args.
5662 set dummy $ac_prog; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5666 $as_echo_n "(cached) " >&6
5668 if test -n "$ac_ct_CXX"; then
5669 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678 ac_cv_prog_ac_ct_CXX="$ac_prog"
5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5689 if test -n "$ac_ct_CXX"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5691 $as_echo "$ac_ct_CXX" >&6; }
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5698 test -n "$ac_ct_CXX" && break
5701 if test "x$ac_ct_CXX" = x; then
5704 case $cross_compiling:$ac_tool_warned in
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708 ac_tool_warned=yes ;;
5716 # Provide some information about the compiler.
5717 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5720 for ac_option in --version -v -V -qversion; do
5721 { { ac_try="$ac_compiler $ac_option >&5"
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5727 $as_echo "$ac_try_echo"; } >&5
5728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5730 if test -s conftest.err; then
5732 ... rest of stderr output deleted ...
5733 10q' conftest.err >conftest.er1
5734 cat conftest.er1 >&5
5736 rm -f conftest.er1 conftest.err
5737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738 test $ac_status = 0; }
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5742 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5743 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5760 if ac_fn_cxx_try_compile "$LINENO"; then :
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5770 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5771 if test $ac_compiler_gnu = yes; then
5776 ac_test_CXXFLAGS=${CXXFLAGS+set}
5777 ac_save_CXXFLAGS=$CXXFLAGS
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5779 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5780 if ${ac_cv_prog_cxx_g+:} false; then :
5781 $as_echo_n "(cached) " >&6
5783 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5784 ac_cxx_werror_flag=yes
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5798 if ac_fn_cxx_try_compile "$LINENO"; then :
5799 ac_cv_prog_cxx_g=yes
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5813 if ac_fn_cxx_try_compile "$LINENO"; then :
5816 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5829 if ac_fn_cxx_try_compile "$LINENO"; then :
5830 ac_cv_prog_cxx_g=yes
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5840 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5841 if test "$ac_test_CXXFLAGS" = set; then
5842 CXXFLAGS=$ac_save_CXXFLAGS
5843 elif test $ac_cv_prog_cxx_g = yes; then
5844 if test "$GXX" = yes; then
5850 if test "$GXX" = yes; then
5857 ac_cpp='$CXXCPP $CPPFLAGS'
5858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5862 depcc="$CXX" am_compiler_list=
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5865 $as_echo_n "checking dependency style of $depcc... " >&6; }
5866 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5867 $as_echo_n "(cached) " >&6
5869 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5870 # We make a subdir and do the tests there. Otherwise we can end up
5871 # making bogus files that we don't know about and never remove. For
5872 # instance it was reported that on HP-UX the gcc test will end up
5873 # making a dummy file named `D' -- because `-MD' means `put the output
5877 # Copy depcomp to subdir because otherwise we won't find it if we're
5878 # using a relative directory.
5879 cp "$am_depcomp" conftest.dir
5881 # We will build objects and dependencies in a subdirectory because
5882 # it helps to detect inapplicable dependency modes. For instance
5883 # both Tru64's cc and ICC support -MD to output dependencies as a
5884 # side effect of compilation, but ICC will put the dependencies in
5885 # the current directory while Tru64 will put them in the object
5889 am_cv_CXX_dependencies_compiler_type=none
5890 if test "$am_compiler_list" = ""; then
5891 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5894 case " $depcc " in #(
5895 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5898 for depmode in $am_compiler_list; do
5899 # Setup a source with many dependencies, because some compilers
5900 # like to wrap large dependency lists on column 80 (with \), and
5901 # we should not choose a depcomp mode which is confused by this.
5903 # We need to recreate these files for each test, as the compiler may
5904 # overwrite some of them when testing with obscure command lines.
5905 # This happens at least with the AIX C compiler.
5907 for i in 1 2 3 4 5 6; do
5908 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5909 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5910 # Solaris 8's {/usr,}/bin/sh.
5911 touch sub/conftst$i.h
5913 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5915 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5916 # mode. It turns out that the SunPro C++ compiler does not properly
5917 # handle `-M -o', and we need to detect this. Also, some Intel
5918 # versions had trouble with output in subdirs
5919 am__obj=sub/conftest.${OBJEXT-o}
5920 am__minus_obj="-o $am__obj"
5923 # This depmode causes a compiler race in universal mode.
5924 test "$am__universal" = false || continue
5927 # after this tag, mechanisms are not by side-effect, so they'll
5928 # only be used when explicitly requested
5929 if test "x$enable_dependency_tracking" = xyes; then
5935 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5936 # This compiler won't grok `-c -o', but also, the minuso test has
5937 # not run yet. These depmodes are late enough in the game, and
5938 # so weak that their functioning should not be impacted.
5939 am__obj=conftest.${OBJEXT-o}
5944 if depmode=$depmode \
5945 source=sub/conftest.c object=$am__obj \
5946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5947 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5948 >/dev/null 2>conftest.err &&
5949 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5950 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5951 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5952 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5953 # icc doesn't choke on unknown options, it will just issue warnings
5954 # or remarks (even with -Werror). So we grep stderr for any message
5955 # that says an option was ignored or not supported.
5956 # When given -MP, icc 7.0 and 7.1 complain thusly:
5957 # icc: Command line warning: ignoring option '-M'; no argument required
5958 # The diagnosis changed in icc 8.0:
5959 # icc: Command line remark: option '-MP' not supported
5960 if (grep 'ignoring option' conftest.err ||
5961 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5962 am_cv_CXX_dependencies_compiler_type=$depmode
5971 am_cv_CXX_dependencies_compiler_type=none
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5976 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5977 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5980 test "x$enable_dependency_tracking" != xno \
5981 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5982 am__fastdepCXX_TRUE=
5983 am__fastdepCXX_FALSE='#'
5985 am__fastdepCXX_TRUE='#'
5986 am__fastdepCXX_FALSE=
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5997 class a { int b; } c;
6002 if ac_fn_cxx_try_compile "$LINENO"; then :
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 if test "$CXX" != ""; then
6017 ac_cpp='$CPP $CPPFLAGS'
6018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6024 ac_cpp='$CPP $CPPFLAGS'
6025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_CC+:} false; then :
6034 $as_echo_n "(cached) " >&6
6036 if test -n "$CC"; then
6037 ac_cv_prog_CC="$CC" # Let the user override the test.
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 if test -n "$CC"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6059 $as_echo "$CC" >&6; }
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6067 if test -z "$ac_cv_prog_CC"; then
6069 # Extract the first word of "gcc", so it can be a program name with args.
6070 set dummy gcc; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6074 $as_echo_n "(cached) " >&6
6076 if test -n "$ac_ct_CC"; then
6077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_CC="gcc"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6097 if test -n "$ac_ct_CC"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6099 $as_echo "$ac_ct_CC" >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6105 if test "x$ac_ct_CC" = x; then
6108 case $cross_compiling:$ac_tool_warned in
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6120 if test -z "$CC"; then
6121 if test -n "$ac_tool_prefix"; then
6122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6123 set dummy ${ac_tool_prefix}cc; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_CC+:} false; then :
6127 $as_echo_n "(cached) " >&6
6129 if test -n "$CC"; then
6130 ac_cv_prog_CC="$CC" # Let the user override the test.
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_prog_CC="${ac_tool_prefix}cc"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 if test -n "$CC"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6152 $as_echo "$CC" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6161 if test -z "$CC"; then
6162 # Extract the first word of "cc", so it can be a program name with args.
6163 set dummy cc; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_CC+:} false; then :
6167 $as_echo_n "(cached) " >&6
6169 if test -n "$CC"; then
6170 ac_cv_prog_CC="$CC" # Let the user override the test.
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6181 ac_prog_rejected=yes
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 if test $ac_prog_rejected = yes; then
6193 # We found a bogon in the path, so make sure we never use it.
6194 set dummy $ac_cv_prog_CC
6196 if test $# != 0; then
6197 # We chose a different compiler from the bogus one.
6198 # However, it has the same basename, so the bogon will be chosen
6199 # first if we set CC to just the basename; use the full file name.
6201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6207 if test -n "$CC"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6209 $as_echo "$CC" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6217 if test -z "$CC"; then
6218 if test -n "$ac_tool_prefix"; then
6219 for ac_prog in cl.exe
6221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if ${ac_cv_prog_CC+:} false; then :
6226 $as_echo_n "(cached) " >&6
6228 if test -n "$CC"; then
6229 ac_cv_prog_CC="$CC" # Let the user override the test.
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 if test -n "$CC"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6251 $as_echo "$CC" >&6; }
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6258 test -n "$CC" && break
6261 if test -z "$CC"; then
6263 for ac_prog in cl.exe
6265 # Extract the first word of "$ac_prog", so it can be a program name with args.
6266 set dummy $ac_prog; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6270 $as_echo_n "(cached) " >&6
6272 if test -n "$ac_ct_CC"; then
6273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_prog_ac_ct_CC="$ac_prog"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6293 if test -n "$ac_ct_CC"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6295 $as_echo "$ac_ct_CC" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6302 test -n "$ac_ct_CC" && break
6305 if test "x$ac_ct_CC" = x; then
6308 case $cross_compiling:$ac_tool_warned in
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6312 ac_tool_warned=yes ;;
6321 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6323 as_fn_error $? "no acceptable C compiler found in \$PATH
6324 See \`config.log' for more details" "$LINENO" 5; }
6326 # Provide some information about the compiler.
6327 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6330 for ac_option in --version -v -V -qversion; do
6331 { { ac_try="$ac_compiler $ac_option >&5"
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6337 $as_echo "$ac_try_echo"; } >&5
6338 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6340 if test -s conftest.err; then
6342 ... rest of stderr output deleted ...
6343 10q' conftest.err >conftest.er1
6344 cat conftest.er1 >&5
6346 rm -f conftest.er1 conftest.err
6347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6348 test $ac_status = 0; }
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6352 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6353 if ${ac_cv_c_compiler_gnu+:} false; then :
6354 $as_echo_n "(cached) " >&6
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6370 if ac_fn_c_try_compile "$LINENO"; then :
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6380 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6381 if test $ac_compiler_gnu = yes; then
6386 ac_test_CFLAGS=${CFLAGS+set}
6387 ac_save_CFLAGS=$CFLAGS
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6389 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6390 if ${ac_cv_prog_cc_g+:} false; then :
6391 $as_echo_n "(cached) " >&6
6393 ac_save_c_werror_flag=$ac_c_werror_flag
6394 ac_c_werror_flag=yes
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6408 if ac_fn_c_try_compile "$LINENO"; then :
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6423 if ac_fn_c_try_compile "$LINENO"; then :
6426 ac_c_werror_flag=$ac_save_c_werror_flag
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6439 if ac_fn_c_try_compile "$LINENO"; then :
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 ac_c_werror_flag=$ac_save_c_werror_flag
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6450 $as_echo "$ac_cv_prog_cc_g" >&6; }
6451 if test "$ac_test_CFLAGS" = set; then
6452 CFLAGS=$ac_save_CFLAGS
6453 elif test $ac_cv_prog_cc_g = yes; then
6454 if test "$GCC" = yes; then
6460 if test "$GCC" = yes; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6467 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6468 if ${ac_cv_prog_cc_c89+:} false; then :
6469 $as_echo_n "(cached) " >&6
6471 ac_cv_prog_cc_c89=no
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6477 #include <sys/types.h>
6478 #include <sys/stat.h>
6479 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6480 struct buf { int x; };
6481 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6482 static char *e (p, i)
6488 static char *f (char * (*g) (char **, int), char **p, ...)
6493 s = g (p, va_arg (v,int));
6498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6499 function prototypes and stuff, but not '\xHH' hex character constants.
6500 These don't provoke an error unfortunately, instead are silently treated
6501 as 'x'. The following induces an error, until -std is added to get
6502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6503 array size at least. It's necessary to write '\x00'==0 to get something
6504 that's true only with -std. */
6505 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6507 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6508 inside strings and character constants. */
6510 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6512 int test (int i, double x);
6513 struct s1 {int (*f) (int a);};
6514 struct s2 {int (*f) (double a);};
6515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6526 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6529 CC="$ac_save_CC $ac_arg"
6530 if ac_fn_c_try_compile "$LINENO"; then :
6531 ac_cv_prog_cc_c89=$ac_arg
6533 rm -f core conftest.err conftest.$ac_objext
6534 test "x$ac_cv_prog_cc_c89" != "xno" && break
6536 rm -f conftest.$ac_ext
6541 case "x$ac_cv_prog_cc_c89" in
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6544 $as_echo "none needed" >&6; } ;;
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6547 $as_echo "unsupported" >&6; } ;;
6549 CC="$CC $ac_cv_prog_cc_c89"
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6551 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6553 if test "x$ac_cv_prog_cc_c89" != xno; then :
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6563 depcc="$CC" am_compiler_list=
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6566 $as_echo_n "checking dependency style of $depcc... " >&6; }
6567 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6568 $as_echo_n "(cached) " >&6
6570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6571 # We make a subdir and do the tests there. Otherwise we can end up
6572 # making bogus files that we don't know about and never remove. For
6573 # instance it was reported that on HP-UX the gcc test will end up
6574 # making a dummy file named `D' -- because `-MD' means `put the output
6578 # Copy depcomp to subdir because otherwise we won't find it if we're
6579 # using a relative directory.
6580 cp "$am_depcomp" conftest.dir
6582 # We will build objects and dependencies in a subdirectory because
6583 # it helps to detect inapplicable dependency modes. For instance
6584 # both Tru64's cc and ICC support -MD to output dependencies as a
6585 # side effect of compilation, but ICC will put the dependencies in
6586 # the current directory while Tru64 will put them in the object
6590 am_cv_CC_dependencies_compiler_type=none
6591 if test "$am_compiler_list" = ""; then
6592 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6595 case " $depcc " in #(
6596 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6599 for depmode in $am_compiler_list; do
6600 # Setup a source with many dependencies, because some compilers
6601 # like to wrap large dependency lists on column 80 (with \), and
6602 # we should not choose a depcomp mode which is confused by this.
6604 # We need to recreate these files for each test, as the compiler may
6605 # overwrite some of them when testing with obscure command lines.
6606 # This happens at least with the AIX C compiler.
6608 for i in 1 2 3 4 5 6; do
6609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6611 # Solaris 8's {/usr,}/bin/sh.
6612 touch sub/conftst$i.h
6614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6616 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6617 # mode. It turns out that the SunPro C++ compiler does not properly
6618 # handle `-M -o', and we need to detect this. Also, some Intel
6619 # versions had trouble with output in subdirs
6620 am__obj=sub/conftest.${OBJEXT-o}
6621 am__minus_obj="-o $am__obj"
6624 # This depmode causes a compiler race in universal mode.
6625 test "$am__universal" = false || continue
6628 # after this tag, mechanisms are not by side-effect, so they'll
6629 # only be used when explicitly requested
6630 if test "x$enable_dependency_tracking" = xyes; then
6636 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6637 # This compiler won't grok `-c -o', but also, the minuso test has
6638 # not run yet. These depmodes are late enough in the game, and
6639 # so weak that their functioning should not be impacted.
6640 am__obj=conftest.${OBJEXT-o}
6645 if depmode=$depmode \
6646 source=sub/conftest.c object=$am__obj \
6647 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6648 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6649 >/dev/null 2>conftest.err &&
6650 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6651 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6652 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6653 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6654 # icc doesn't choke on unknown options, it will just issue warnings
6655 # or remarks (even with -Werror). So we grep stderr for any message
6656 # that says an option was ignored or not supported.
6657 # When given -MP, icc 7.0 and 7.1 complain thusly:
6658 # icc: Command line warning: ignoring option '-M'; no argument required
6659 # The diagnosis changed in icc 8.0:
6660 # icc: Command line remark: option '-MP' not supported
6661 if (grep 'ignoring option' conftest.err ||
6662 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6663 am_cv_CC_dependencies_compiler_type=$depmode
6672 am_cv_CC_dependencies_compiler_type=none
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6677 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6678 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6681 test "x$enable_dependency_tracking" != xno \
6682 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6684 am__fastdepCC_FALSE='#'
6686 am__fastdepCC_TRUE='#'
6687 am__fastdepCC_FALSE=
6692 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6694 if test "x$CC" != xcc; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6696 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6699 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6701 set dummy $CC; ac_cc=`$as_echo "$2" |
6702 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6703 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6704 $as_echo_n "(cached) " >&6
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6717 # Make sure it works both with $CC and with simple cc.
6718 # We do the test twice because some compilers refuse to overwrite an
6719 # existing .o file with -o, though they will create one.
6720 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6722 if { { case "(($ac_try" in
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6727 $as_echo "$ac_try_echo"; } >&5
6728 (eval "$ac_try") 2>&5
6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 test $ac_status = 0; } &&
6732 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6737 $as_echo "$ac_try_echo"; } >&5
6738 (eval "$ac_try") 2>&5
6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 test $ac_status = 0; };
6743 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6744 if test "x$CC" != xcc; then
6745 # Test first that cc exists at all.
6746 if { ac_try='cc -c conftest.$ac_ext >&5'
6747 { { case "(($ac_try" in
6748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6752 $as_echo "$ac_try_echo"; } >&5
6753 (eval "$ac_try") 2>&5
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; }; }; then
6757 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6759 if { { case "(($ac_try" in
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6764 $as_echo "$ac_try_echo"; } >&5
6765 (eval "$ac_try") 2>&5
6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6768 test $ac_status = 0; } &&
6769 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771 *) ac_try_echo=$ac_try;;
6773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6774 $as_echo "$ac_try_echo"; } >&5
6775 (eval "$ac_try") 2>&5
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; };
6783 # cc exists but doesn't like -o.
6784 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6789 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6791 rm -f core conftest*
6794 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6796 $as_echo "yes" >&6; }
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6801 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6805 # FIXME: we rely on the cache variable name because
6806 # there is no other way.
6808 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6809 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6810 if test "$am_t" != yes; then
6811 # Losing compiler, so override with the script.
6812 # FIXME: It is wrong to rewrite CC.
6813 # But if we don't then we get into trouble of one sort or another.
6814 # A longer-term fix would be to have automake use am__CC in this case,
6815 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6816 CC="$am_aux_dir/compile $CC"
6822 # Check whether --enable-largefile was given.
6823 if test "${enable_largefile+set}" = set; then :
6824 enableval=$enable_largefile;
6827 if test "$enable_largefile" != no; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6830 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6831 if ${ac_cv_sys_largefile_CC+:} false; then :
6832 $as_echo_n "(cached) " >&6
6834 ac_cv_sys_largefile_CC=no
6835 if test "$GCC" != yes; then
6838 # IRIX 6.2 and later do not support large files by default,
6839 # so use the C compiler's -n32 option if that helps.
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <sys/types.h>
6843 /* Check that off_t can represent 2**63 - 1 correctly.
6844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6845 since some C++ compilers masquerading as C compilers
6846 incorrectly reject 9223372036854775807. */
6847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6849 && LARGE_OFF_T % 2147483647 == 1)
6859 if ac_fn_c_try_compile "$LINENO"; then :
6862 rm -f core conftest.err conftest.$ac_objext
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 ac_cv_sys_largefile_CC=' -n32'; break
6867 rm -f core conftest.err conftest.$ac_objext
6871 rm -f conftest.$ac_ext
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6875 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6876 if test "$ac_cv_sys_largefile_CC" != no; then
6877 CC=$CC$ac_cv_sys_largefile_CC
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6881 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6882 if ${ac_cv_sys_file_offset_bits+:} false; then :
6883 $as_echo_n "(cached) " >&6
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 #include <sys/types.h>
6889 /* Check that off_t can represent 2**63 - 1 correctly.
6890 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6891 since some C++ compilers masquerading as C compilers
6892 incorrectly reject 9223372036854775807. */
6893 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6894 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6895 && LARGE_OFF_T % 2147483647 == 1)
6905 if ac_fn_c_try_compile "$LINENO"; then :
6906 ac_cv_sys_file_offset_bits=no; break
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 #define _FILE_OFFSET_BITS 64
6912 #include <sys/types.h>
6913 /* Check that off_t can represent 2**63 - 1 correctly.
6914 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6915 since some C++ compilers masquerading as C compilers
6916 incorrectly reject 9223372036854775807. */
6917 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6919 && LARGE_OFF_T % 2147483647 == 1)
6929 if ac_fn_c_try_compile "$LINENO"; then :
6930 ac_cv_sys_file_offset_bits=64; break
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 ac_cv_sys_file_offset_bits=unknown
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6938 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6939 case $ac_cv_sys_file_offset_bits in #(
6942 cat >>confdefs.h <<_ACEOF
6943 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6948 if test $ac_cv_sys_file_offset_bits = unknown; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6950 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6951 if ${ac_cv_sys_large_files+:} false; then :
6952 $as_echo_n "(cached) " >&6
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 #include <sys/types.h>
6958 /* Check that off_t can represent 2**63 - 1 correctly.
6959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6960 since some C++ compilers masquerading as C compilers
6961 incorrectly reject 9223372036854775807. */
6962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6964 && LARGE_OFF_T % 2147483647 == 1)
6974 if ac_fn_c_try_compile "$LINENO"; then :
6975 ac_cv_sys_large_files=no; break
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980 #define _LARGE_FILES 1
6981 #include <sys/types.h>
6982 /* Check that off_t can represent 2**63 - 1 correctly.
6983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6984 since some C++ compilers masquerading as C compilers
6985 incorrectly reject 9223372036854775807. */
6986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6988 && LARGE_OFF_T % 2147483647 == 1)
6998 if ac_fn_c_try_compile "$LINENO"; then :
6999 ac_cv_sys_large_files=1; break
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002 ac_cv_sys_large_files=unknown
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7007 $as_echo "$ac_cv_sys_large_files" >&6; }
7008 case $ac_cv_sys_large_files in #(
7011 cat >>confdefs.h <<_ACEOF
7012 #define _LARGE_FILES $ac_cv_sys_large_files
7027 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7034 $as_echo_n "(cached) " >&6
7038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7060 if test -n "$PKG_CONFIG"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7062 $as_echo "$PKG_CONFIG" >&6; }
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7070 if test -z "$ac_cv_path_PKG_CONFIG"; then
7071 ac_pt_PKG_CONFIG=$PKG_CONFIG
7072 # Extract the first word of "pkg-config", so it can be a program name with args.
7073 set dummy 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_ac_pt_PKG_CONFIG+:} false; then :
7077 $as_echo_n "(cached) " >&6
7079 case $ac_pt_PKG_CONFIG in
7081 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7103 if test -n "$ac_pt_PKG_CONFIG"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7105 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7111 if test "x$ac_pt_PKG_CONFIG" = x; then
7114 case $cross_compiling:$ac_tool_warned in
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118 ac_tool_warned=yes ;;
7120 PKG_CONFIG=$ac_pt_PKG_CONFIG
7123 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7127 if test -n "$PKG_CONFIG"; then
7128 _pkg_min_version=0.16
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7130 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7131 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7133 $as_echo "yes" >&6; }
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7141 if test "x$enable_debug" = "xyes"; then
7142 if test x$cflags_set != xset ; then
7144 *[\ \ ]-g[\ \ ]*) ;;
7145 *) CFLAGS="$CFLAGS -g" ;;
7148 GLIB_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
7150 GLIB_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
7152 if test "x$enable_debug" = "xno"; then
7153 GLIB_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
7157 # Ensure MSVC-compatible struct packing convention is used when
7158 # compiling for Win32 with gcc.
7159 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
7160 # gcc2 uses "-fnative-struct".
7161 if test x"$glib_native_win32" = xyes; then
7162 if test x"$GCC" = xyes; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
7165 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
7166 if test -z "$ac_cv_prog_CC"; then
7169 our_gcc="$ac_cv_prog_CC"
7171 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
7173 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
7174 msnative_struct='-fnative-struct'
7178 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
7179 msnative_struct='-mms-bitfields'
7183 if test x"$msnative_struct" = x ; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
7185 $as_echo "no way" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
7187 $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
7189 CFLAGS="$CFLAGS $msnative_struct"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
7191 $as_echo "${msnative_struct}" >&6; }
7195 GLIB_EXTRA_CFLAGS="${msnative_struct}"
7200 # define a MAINT-like variable REBUILD which is set if Perl
7201 # and awk are found, so autogenerated sources can be rebuilt
7202 for ac_prog in gawk mawk nawk awk
7204 # Extract the first word of "$ac_prog", so it can be a program name with args.
7205 set dummy $ac_prog; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_AWK+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 if test -n "$AWK"; then
7212 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_prog_AWK="$ac_prog"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 if test -n "$AWK"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7234 $as_echo "$AWK" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7241 test -n "$AWK" && break
7244 for ac_prog in perl5 perl
7246 # Extract the first word of "$ac_prog", so it can be a program name with args.
7247 set dummy $ac_prog; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_PERL+:} false; then :
7251 $as_echo_n "(cached) " >&6
7253 if test -n "$PERL"; then
7254 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_prog_PERL="$ac_prog"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 PERL=$ac_cv_prog_PERL
7274 if test -n "$PERL"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7276 $as_echo "$PERL" >&6; }
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7283 test -n "$PERL" && break
7286 # We would like indent, but don't require it.
7287 # Extract the first word of "indent", so it can be a program name with args.
7288 set dummy indent; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_INDENT+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$INDENT"; then
7295 ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_INDENT="indent"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 INDENT=$ac_cv_prog_INDENT
7315 if test -n "$INDENT"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
7317 $as_echo "$INDENT" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7325 if test "x$enable_rebuilds" = "xyes" && \
7326 test -n "$PERL" && \
7327 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
7328 test -n "$AWK" ; then
7333 # Need full path to Perl for glib-mkenums
7335 if test "x$PERL" != x ; then
7336 # Extract the first word of "$PERL", so it can be a program name with args.
7337 set dummy $PERL; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if ${ac_cv_path_PERL_PATH+:} false; then :
7341 $as_echo_n "(cached) " >&6
7345 ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 PERL_PATH=$ac_cv_path_PERL_PATH
7367 if test -n "$PERL_PATH"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_PATH" >&5
7369 $as_echo "$PERL_PATH" >&6; }
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7377 if test "x$PERL_PATH" = x ; then
7378 PERL_PATH="/usr/bin/env perl"
7382 # Need suitable python path for greport
7389 if test -n "$PYTHON"; then
7390 # If the user set $PYTHON, use it and don't search something else.
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
7392 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
7394 # split strings by '.' and convert to numeric. Append some zeros
7395 # because we need at least 4 digits for the hex conversion.
7396 # map returns an iterator in Python 3.0 and a list in 2.x
7397 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7399 # xrange is not present in Python 3.0 and range returns an iterator
7400 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7401 sys.exit(sys.hexversion < minverhex)"
7402 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7403 ($PYTHON -c "$prog") >&5 2>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; then :
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7408 $as_echo "yes" >&6; }
7410 as_fn_error $? "too old" "$LINENO" 5
7412 am_display_PYTHON=$PYTHON
7414 # Otherwise, try each interpreter until we find one that satisfies
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
7417 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
7418 if ${am_cv_pathless_PYTHON+:} false; then :
7419 $as_echo_n "(cached) " >&6
7422 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
7423 test "$am_cv_pathless_PYTHON" = none && break
7425 # split strings by '.' and convert to numeric. Append some zeros
7426 # because we need at least 4 digits for the hex conversion.
7427 # map returns an iterator in Python 3.0 and a list in 2.x
7428 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7430 # xrange is not present in Python 3.0 and range returns an iterator
7431 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7432 sys.exit(sys.hexversion < minverhex)"
7433 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7434 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; then :
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7443 $as_echo "$am_cv_pathless_PYTHON" >&6; }
7444 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7445 if test "$am_cv_pathless_PYTHON" = none; then
7448 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7449 set dummy $am_cv_pathless_PYTHON; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_path_PYTHON+:} false; then :
7453 $as_echo_n "(cached) " >&6
7457 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 PYTHON=$ac_cv_path_PYTHON
7479 if test -n "$PYTHON"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7481 $as_echo "$PYTHON" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7489 am_display_PYTHON=$am_cv_pathless_PYTHON
7493 if test "$PYTHON" = :; then
7494 PYTHON="/usr/bin/env python2.5"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7499 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7500 if ${am_cv_python_version+:} false; then :
7501 $as_echo_n "(cached) " >&6
7503 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7506 $as_echo "$am_cv_python_version" >&6; }
7507 PYTHON_VERSION=$am_cv_python_version
7511 PYTHON_PREFIX='${prefix}'
7513 PYTHON_EXEC_PREFIX='${exec_prefix}'
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7518 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7519 if ${am_cv_python_platform+:} false; then :
7520 $as_echo_n "(cached) " >&6
7522 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7525 $as_echo "$am_cv_python_platform" >&6; }
7526 PYTHON_PLATFORM=$am_cv_python_platform
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7532 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7533 if ${am_cv_python_pythondir+:} false; then :
7534 $as_echo_n "(cached) " >&6
7536 if test "x$prefix" = xNONE
7538 am_py_prefix=$ac_default_prefix
7540 am_py_prefix=$prefix
7542 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`
7543 case $am_cv_python_pythondir in
7545 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7546 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7549 case $am_py_prefix in
7552 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7560 $as_echo "$am_cv_python_pythondir" >&6; }
7561 pythondir=$am_cv_python_pythondir
7565 pkgpythondir=\${pythondir}/$PACKAGE
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
7569 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
7570 if ${am_cv_python_pyexecdir+:} false; then :
7571 $as_echo_n "(cached) " >&6
7573 if test "x$exec_prefix" = xNONE
7575 am_py_exec_prefix=$am_py_prefix
7577 am_py_exec_prefix=$exec_prefix
7579 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`
7580 case $am_cv_python_pyexecdir in
7581 $am_py_exec_prefix*)
7582 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
7583 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
7586 case $am_py_exec_prefix in
7589 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
7597 $as_echo "$am_cv_python_pyexecdir" >&6; }
7598 pyexecdir=$am_cv_python_pyexecdir
7602 pkgpyexecdir=\${pyexecdir}/$PACKAGE
7613 if test x"$glib_native_win32" = xyes; then
7614 with_libiconv=native
7617 # Check whether --with-libiconv was given.
7618 if test "${with_libiconv+set}" = set; then :
7619 withval=$with_libiconv;
7626 case $with_libiconv in
7628 # Check in the C library first
7629 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7630 if test "x$ac_cv_func_iconv_open" = xyes; then :
7631 with_libiconv=no; found_iconv=yes
7634 # Check if we have GNU libiconv
7635 if test $found_iconv = "no"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7637 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7638 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7639 $as_echo_n "(cached) " >&6
7641 ac_check_lib_save_LIBS=$LIBS
7642 LIBS="-liconv $LIBS"
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7646 /* Override any GCC internal prototype to avoid an error.
7647 Use char because int might match the return type of a GCC
7648 builtin and then its argument prototype would still apply. */
7652 char libiconv_open ();
7656 return libiconv_open ();
7661 if ac_fn_c_try_link "$LINENO"; then :
7662 ac_cv_lib_iconv_libiconv_open=yes
7664 ac_cv_lib_iconv_libiconv_open=no
7666 rm -f core conftest.err conftest.$ac_objext \
7667 conftest$ac_exeext conftest.$ac_ext
7668 LIBS=$ac_check_lib_save_LIBS
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7671 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7672 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7673 with_libiconv=gnu; found_iconv=yes
7677 # Check if we have a iconv in -liconv, possibly from vendor
7678 if test $found_iconv = "no"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7680 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7681 if ${ac_cv_lib_iconv_iconv_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. */
7699 return iconv_open ();
7704 if ac_fn_c_try_link "$LINENO"; then :
7705 ac_cv_lib_iconv_iconv_open=yes
7707 ac_cv_lib_iconv_iconv_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_iconv_open" >&5
7714 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7715 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7716 with_libiconv=native; found_iconv=yes
7722 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7723 if test "x$ac_cv_func_iconv_open" = xyes; then :
7724 with_libiconv=no; found_iconv=yes
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7730 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7731 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7732 $as_echo_n "(cached) " >&6
7734 ac_check_lib_save_LIBS=$LIBS
7735 LIBS="-liconv $LIBS"
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7739 /* Override any GCC internal prototype to avoid an error.
7740 Use char because int might match the return type of a GCC
7741 builtin and then its argument prototype would still apply. */
7745 char libiconv_open ();
7749 return libiconv_open ();
7754 if ac_fn_c_try_link "$LINENO"; then :
7755 ac_cv_lib_iconv_libiconv_open=yes
7757 ac_cv_lib_iconv_libiconv_open=no
7759 rm -f core conftest.err conftest.$ac_objext \
7760 conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7764 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7765 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7766 with_libiconv=gnu; found_iconv=yes
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7772 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7773 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 ac_check_lib_save_LIBS=$LIBS
7777 LIBS="-liconv $LIBS"
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7781 /* Override any GCC internal prototype to avoid an error.
7782 Use char because int might match the return type of a GCC
7783 builtin and then its argument prototype would still apply. */
7791 return iconv_open ();
7796 if ac_fn_c_try_link "$LINENO"; then :
7797 ac_cv_lib_iconv_iconv_open=yes
7799 ac_cv_lib_iconv_iconv_open=no
7801 rm -f core conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7803 LIBS=$ac_check_lib_save_LIBS
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7806 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7807 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7808 with_libiconv=native; found_iconv=yes
7814 if test "x$found_iconv" = "xno" ; then
7815 as_fn_error $? "*** No iconv() implementation found in C library or libiconv" "$LINENO" 5
7819 # Check whether --enable-iconv-cache was given.
7820 if test "${enable_iconv_cache+set}" = set; then :
7821 enableval=$enable_iconv_cache;
7823 enable_iconv_cache=auto
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to cache iconv descriptors" >&5
7828 $as_echo_n "checking whether to cache iconv descriptors... " >&6; }
7829 case $enable_iconv_cache in
7831 if test $ac_cv_gnu_library_2_1 = yes; then
7832 enable_iconv_cache=no
7834 enable_iconv_cache=yes
7839 *) as_fn_error $? "Value given to --enable-iconv-cache must be one of yes, no or auto" "$LINENO" 5
7843 if test $enable_iconv_cache = yes; then
7845 $as_echo "#define NEED_ICONV_CACHE 1" >>confdefs.h
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_iconv_cache" >&5
7850 $as_echo "$enable_iconv_cache" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
7856 $as_echo_n "checking for ZLIB... " >&6; }
7858 if test -n "$ZLIB_CFLAGS"; then
7859 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
7860 elif test -n "$PKG_CONFIG"; then
7861 if test -n "$PKG_CONFIG" && \
7862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
7863 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
7865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7866 test $ac_status = 0; }; then
7867 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
7874 if test -n "$ZLIB_LIBS"; then
7875 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
7876 elif test -n "$PKG_CONFIG"; then
7877 if test -n "$PKG_CONFIG" && \
7878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
7879 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
7881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882 test $ac_status = 0; }; then
7883 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
7893 if test $pkg_failed = yes; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7898 _pkg_short_errors_supported=yes
7900 _pkg_short_errors_supported=no
7902 if test $_pkg_short_errors_supported = yes; then
7903 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "zlib" 2>&1`
7905 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "zlib" 2>&1`
7907 # Put the nasty error message in config.log where it belongs
7908 echo "$ZLIB_PKG_ERRORS" >&5
7911 elif test $pkg_failed = untried; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7916 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
7917 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7919 $as_echo "yes" >&6; }
7922 if test "x$found_zlib" = "xno" ; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7924 $as_echo_n "checking for ANSI C header files... " >&6; }
7925 if ${ac_cv_header_stdc+:} false; then :
7926 $as_echo_n "(cached) " >&6
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7943 if ac_fn_c_try_compile "$LINENO"; then :
7944 ac_cv_header_stdc=yes
7946 ac_cv_header_stdc=no
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 if test $ac_cv_header_stdc = yes; then
7951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7958 $EGREP "memchr" >/dev/null 2>&1; then :
7961 ac_cv_header_stdc=no
7967 if test $ac_cv_header_stdc = yes; then
7968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975 $EGREP "free" >/dev/null 2>&1; then :
7978 ac_cv_header_stdc=no
7984 if test $ac_cv_header_stdc = yes; then
7985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7986 if test "$cross_compiling" = yes; then :
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7993 #if ((' ' & 0x0FF) == 0x020)
7994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7997 # define ISLOWER(c) \
7998 (('a' <= (c) && (c) <= 'i') \
7999 || ('j' <= (c) && (c) <= 'r') \
8000 || ('s' <= (c) && (c) <= 'z'))
8001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8009 for (i = 0; i < 256; i++)
8010 if (XOR (islower (i), ISLOWER (i))
8011 || toupper (i) != TOUPPER (i))
8016 if ac_fn_c_try_run "$LINENO"; then :
8019 ac_cv_header_stdc=no
8021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8022 conftest.$ac_objext conftest.beam conftest.$ac_ext
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8028 $as_echo "$ac_cv_header_stdc" >&6; }
8029 if test $ac_cv_header_stdc = yes; then
8031 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8037 inttypes.h stdint.h unistd.h
8039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8043 cat >>confdefs.h <<_ACEOF
8044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8053 $as_echo_n "checking for inflate in -lz... " >&6; }
8054 if ${ac_cv_lib_z_inflate+:} false; then :
8055 $as_echo_n "(cached) " >&6
8057 ac_check_lib_save_LIBS=$LIBS
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8062 /* Override any GCC internal prototype to avoid an error.
8063 Use char because int might match the return type of a GCC
8064 builtin and then its argument prototype would still apply. */
8077 if ac_fn_c_try_link "$LINENO"; then :
8078 ac_cv_lib_z_inflate=yes
8080 ac_cv_lib_z_inflate=no
8082 rm -f core conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
8084 LIBS=$ac_check_lib_save_LIBS
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8087 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8088 if test "x$ac_cv_lib_z_inflate" = xyes; then :
8089 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8090 if test "x$ac_cv_header_zlib_h" = xyes; then :
8097 if test "x$found_zlib" = "xno" ; then
8098 as_fn_error $? "*** Working zlib library and headers not found ***" "$LINENO" 5
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
8107 $as_echo_n "checking for LIBFFI... " >&6; }
8109 if test -n "$LIBFFI_CFLAGS"; then
8110 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
8111 elif test -n "$PKG_CONFIG"; then
8112 if test -n "$PKG_CONFIG" && \
8113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5
8114 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5
8116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117 test $ac_status = 0; }; then
8118 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.0" 2>/dev/null`
8125 if test -n "$LIBFFI_LIBS"; then
8126 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
8127 elif test -n "$PKG_CONFIG"; then
8128 if test -n "$PKG_CONFIG" && \
8129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5
8130 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5
8132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8133 test $ac_status = 0; }; then
8134 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.0" 2>/dev/null`
8144 if test $pkg_failed = yes; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8149 _pkg_short_errors_supported=yes
8151 _pkg_short_errors_supported=no
8153 if test $_pkg_short_errors_supported = yes; then
8154 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi >= 3.0.0" 2>&1`
8156 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi >= 3.0.0" 2>&1`
8158 # Put the nasty error message in config.log where it belongs
8159 echo "$LIBFFI_PKG_ERRORS" >&5
8161 as_fn_error $? "Package requirements (libffi >= 3.0.0) were not met:
8165 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8166 installed software in a non-standard prefix.
8168 Alternatively, you may set the environment variables LIBFFI_CFLAGS
8169 and LIBFFI_LIBS to avoid the need to call pkg-config.
8170 See the pkg-config man page for more details." "$LINENO" 5
8172 elif test $pkg_failed = untried; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8177 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8178 is in your PATH or set the PKG_CONFIG environment variable to the full
8181 Alternatively, you may set the environment variables LIBFFI_CFLAGS
8182 and LIBFFI_LIBS to avoid the need to call pkg-config.
8183 See the pkg-config man page for more details.
8185 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8186 See \`config.log' for more details" "$LINENO" 5; }
8189 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
8190 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8192 $as_echo "yes" >&6; }
8199 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
8200 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/po/LINGUAS'
8203 for ac_header in locale.h
8205 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8206 if test "x$ac_cv_header_locale_h" = xyes; then :
8207 cat >>confdefs.h <<_ACEOF
8208 #define HAVE_LOCALE_H 1
8215 if test $ac_cv_header_locale_h = yes; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8217 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8218 if ${am_cv_val_LC_MESSAGES+:} false; then :
8219 $as_echo_n "(cached) " >&6
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 am_cv_val_LC_MESSAGES=yes
8235 am_cv_val_LC_MESSAGES=no
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8241 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8242 if test $am_cv_val_LC_MESSAGES = yes; then
8244 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8251 gt_cv_have_gettext=no
8257 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
8258 if test "x$ac_cv_header_libintl_h" = xyes; then :
8259 gt_cv_func_dgettext_libintl="no"
8260 libintl_extra_libs=""
8263 # First check in libc
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
8266 $as_echo_n "checking for ngettext in libc... " >&6; }
8267 if ${gt_cv_func_ngettext_libc+:} false; then :
8268 $as_echo_n "(cached) " >&6
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8273 #include <libintl.h>
8278 return !ngettext ("","", 1)
8283 if ac_fn_c_try_link "$LINENO"; then :
8284 gt_cv_func_ngettext_libc=yes
8286 gt_cv_func_ngettext_libc=no
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
8293 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
8295 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
8297 $as_echo_n "checking for dgettext in libc... " >&6; }
8298 if ${gt_cv_func_dgettext_libc+:} false; then :
8299 $as_echo_n "(cached) " >&6
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8304 #include <libintl.h>
8309 return !dgettext ("","")
8314 if ac_fn_c_try_link "$LINENO"; then :
8315 gt_cv_func_dgettext_libc=yes
8317 gt_cv_func_dgettext_libc=no
8319 rm -f core conftest.err conftest.$ac_objext \
8320 conftest$ac_exeext conftest.$ac_ext
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
8324 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
8327 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8328 for ac_func in bind_textdomain_codeset
8330 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8331 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8342 # If we don't have everything we want, check in libintl
8344 if test "$gt_cv_func_dgettext_libc" != "yes" \
8345 || test "$gt_cv_func_ngettext_libc" != "yes" \
8346 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
8349 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
8350 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
8351 $as_echo_n "(cached) " >&6
8353 ac_check_lib_save_LIBS=$LIBS
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8358 /* Override any GCC internal prototype to avoid an error.
8359 Use char because int might match the return type of a GCC
8360 builtin and then its argument prototype would still apply. */
8364 char bindtextdomain ();
8368 return bindtextdomain ();
8373 if ac_fn_c_try_link "$LINENO"; then :
8374 ac_cv_lib_intl_bindtextdomain=yes
8376 ac_cv_lib_intl_bindtextdomain=no
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 LIBS=$ac_check_lib_save_LIBS
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
8383 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
8384 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8386 $as_echo_n "checking for ngettext in -lintl... " >&6; }
8387 if ${ac_cv_lib_intl_ngettext+:} false; then :
8388 $as_echo_n "(cached) " >&6
8390 ac_check_lib_save_LIBS=$LIBS
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8395 /* Override any GCC internal prototype to avoid an error.
8396 Use char because int might match the return type of a GCC
8397 builtin and then its argument prototype would still apply. */
8410 if ac_fn_c_try_link "$LINENO"; then :
8411 ac_cv_lib_intl_ngettext=yes
8413 ac_cv_lib_intl_ngettext=no
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
8420 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
8421 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
8423 $as_echo_n "checking for dgettext in -lintl... " >&6; }
8424 if ${ac_cv_lib_intl_dgettext+:} false; then :
8425 $as_echo_n "(cached) " >&6
8427 ac_check_lib_save_LIBS=$LIBS
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8432 /* Override any GCC internal prototype to avoid an error.
8433 Use char because int might match the return type of a GCC
8434 builtin and then its argument prototype would still apply. */
8447 if ac_fn_c_try_link "$LINENO"; then :
8448 ac_cv_lib_intl_dgettext=yes
8450 ac_cv_lib_intl_dgettext=no
8452 rm -f core conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8454 LIBS=$ac_check_lib_save_LIBS
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
8457 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
8458 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
8459 gt_cv_func_dgettext_libintl=yes
8467 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
8469 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8473 $as_echo_n "checking for ngettext in -lintl... " >&6; }
8474 if ${ac_cv_lib_intl_ngettext+:} false; then :
8475 $as_echo_n "(cached) " >&6
8477 ac_check_lib_save_LIBS=$LIBS
8478 LIBS="-lintl -liconv $LIBS"
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8482 /* Override any GCC internal prototype to avoid an error.
8483 Use char because int might match the return type of a GCC
8484 builtin and then its argument prototype would still apply. */
8497 if ac_fn_c_try_link "$LINENO"; then :
8498 ac_cv_lib_intl_ngettext=yes
8500 ac_cv_lib_intl_ngettext=no
8502 rm -f core conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8504 LIBS=$ac_check_lib_save_LIBS
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
8507 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
8508 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
8510 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
8511 if ${ac_cv_lib_intl_dcgettext+:} false; then :
8512 $as_echo_n "(cached) " >&6
8514 ac_check_lib_save_LIBS=$LIBS
8515 LIBS="-lintl -liconv $LIBS"
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8519 /* Override any GCC internal prototype to avoid an error.
8520 Use char because int might match the return type of a GCC
8521 builtin and then its argument prototype would still apply. */
8529 return dcgettext ();
8534 if ac_fn_c_try_link "$LINENO"; then :
8535 ac_cv_lib_intl_dcgettext=yes
8537 ac_cv_lib_intl_dcgettext=no
8539 rm -f core conftest.err conftest.$ac_objext \
8540 conftest$ac_exeext conftest.$ac_ext
8541 LIBS=$ac_check_lib_save_LIBS
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
8544 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
8545 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
8546 gt_cv_func_dgettext_libintl=yes
8547 libintl_extra_libs=-liconv
8559 # If we found libintl, then check in it for bind_textdomain_codeset();
8560 # we'll prefer libc if neither have bind_textdomain_codeset(),
8561 # and both have dgettext and ngettext
8563 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8564 glib_save_LIBS="$LIBS"
8565 LIBS="$LIBS -lintl $libintl_extra_libs"
8566 unset ac_cv_func_bind_textdomain_codeset
8567 for ac_func in bind_textdomain_codeset
8569 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8570 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8571 cat >>confdefs.h <<_ACEOF
8572 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8578 LIBS="$glib_save_LIBS"
8580 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8581 gt_cv_func_dgettext_libc=no
8583 if test "$gt_cv_func_dgettext_libc" = "yes" \
8584 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8585 gt_cv_func_dgettext_libintl=no
8591 if test "$gt_cv_func_dgettext_libc" = "yes" \
8592 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8593 gt_cv_have_gettext=yes
8596 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8597 INTLLIBS="-lintl $libintl_extra_libs"
8600 if test "$gt_cv_have_gettext" = "yes"; then
8602 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8604 # Extract the first word of "msgfmt", so it can be a program name with args.
8605 set dummy msgfmt; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_path_MSGFMT+:} false; then :
8609 $as_echo_n "(cached) " >&6
8613 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8617 for ac_dir in $PATH; do
8618 test -z "$ac_dir" && ac_dir=.
8619 if test -f $ac_dir/$ac_word; then
8620 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8621 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8627 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8631 MSGFMT="$ac_cv_path_MSGFMT"
8632 if test "$MSGFMT" != "no"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8634 $as_echo "$MSGFMT" >&6; }
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8639 if test "$MSGFMT" != "no"; then
8640 glib_save_LIBS="$LIBS"
8641 LIBS="$LIBS $INTLLIBS"
8642 for ac_func in dcgettext
8644 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
8645 if test "x$ac_cv_func_dcgettext" = xyes; then :
8646 cat >>confdefs.h <<_ACEOF
8647 #define HAVE_DCGETTEXT 1
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
8655 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
8656 cat >conftest.foo <<_ACEOF
8660 "Content-Type: text/plain; charset=UTF-8\n"
8661 "Project-Id-Version: test 1.0\n"
8662 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8663 "Last-Translator: test <foo@bar.xx>\n"
8664 "Language-Team: C <LL@li.org>\n"
8665 "MIME-Version: 1.0\n"
8666 "Content-Transfer-Encoding: 8bit\n"
8669 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
8670 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8673 test $ac_status = 0; }; then
8674 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8675 $as_echo "yes" >&6; }
8676 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 echo "$as_me: failed input was:" >&5
8679 sed 's/^/| /' conftest.foo >&5
8682 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8683 set dummy gmsgfmt; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if ${ac_cv_path_GMSGFMT+:} false; then :
8687 $as_echo_n "(cached) " >&6
8691 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8701 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8713 GMSGFMT=$ac_cv_path_GMSGFMT
8714 if test -n "$GMSGFMT"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8716 $as_echo "$GMSGFMT" >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8723 # Extract the first word of "xgettext", so it can be a program name with args.
8724 set dummy xgettext; ac_word=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if ${ac_cv_path_XGETTEXT+:} false; then :
8728 $as_echo_n "(cached) " >&6
8732 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8736 for ac_dir in $PATH; do
8737 test -z "$ac_dir" && ac_dir=.
8738 if test -f $ac_dir/$ac_word; then
8739 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8740 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8746 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8750 XGETTEXT="$ac_cv_path_XGETTEXT"
8751 if test "$XGETTEXT" != ":"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8753 $as_echo "$XGETTEXT" >&6; }
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8765 extern int _nl_msg_cat_cntr;
8766 return _nl_msg_cat_cntr
8771 if ac_fn_c_try_link "$LINENO"; then :
8777 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8778 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8797 rm -f core conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799 LIBS="$glib_save_LIBS"
8802 gt_cv_have_gettext=no
8810 if test "$gt_cv_have_gettext" = "yes" ; then
8812 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8816 if test "$XGETTEXT" != ":"; then
8817 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
8821 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
8826 # We need to process the po/ directory.
8829 ac_config_commands="$ac_config_commands default-1"
8832 for lang in $ALL_LINGUAS; do
8833 GMOFILES="$GMOFILES $lang.gmo"
8834 POFILES="$POFILES $lang.po"
8849 if test "$gt_cv_have_gettext" = "yes"; then
8850 if test "x$ALL_LINGUAS" = "x"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8854 $as_echo_n "checking for catalogs to be installed... " >&6; }
8856 for presentlang in $ALL_LINGUAS; do
8858 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8859 desiredlanguages="$LINGUAS"
8861 desiredlanguages="$ALL_LINGUAS"
8863 for desiredlang in $desiredlanguages; do
8864 # Use the presentlang catalog if desiredlang is
8865 # a. equal to presentlang, or
8866 # b. a variant of presentlang (because in this case,
8867 # presentlang can be used as a fallback for messages
8868 # which are not translated in the desiredlang catalog).
8869 case "$desiredlang" in
8870 "$presentlang"*) useit=yes;;
8873 if test $useit = yes; then
8874 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8877 LINGUAS=$NEW_LINGUAS
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8879 $as_echo "$LINGUAS" >&6; }
8882 if test -n "$LINGUAS"; then
8883 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8888 if test -n "$ac_aux_dir"; then
8889 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8891 if test -z "$MKINSTALLDIRS"; then
8892 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8896 test -d po || mkdir po
8897 if test "x$srcdir" != "x."; then
8898 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8899 posrcprefix="$srcdir/"
8901 posrcprefix="../$srcdir/"
8907 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8908 < $srcdir/po/POTFILES.in > po/POTFILES
8911 if test "$gt_cv_have_gettext" != "yes" ; then
8913 *** You must have either have gettext support in your C library, or use the
8914 *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
8918 LIBS="$INTLLIBS $LIBS"
8920 GETTEXT_PACKAGE=glib20
8923 cat >>confdefs.h <<_ACEOF
8924 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
8928 glib_save_prefix="$prefix"
8929 glib_save_exec_prefix="$exec_prefix"
8930 glib_save_datarootdir="$datarootdir"
8931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8932 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
8933 datarootdir=`eval echo "${datarootdir}"`
8934 if test "x$CATOBJEXT" = "x.mo" ; then
8935 localedir=`eval echo "${libdir}/locale"`
8937 localedir=`eval echo "${datadir}/locale"`
8939 prefix="$glib_save_prefix"
8940 exec_prefix="$glib_save_exec_prefix"
8941 datarootdir="$glib_save_datarootdir"
8943 cat >>confdefs.h <<_ACEOF
8944 #define GLIB_LOCALE_DIR "$localedir"
8950 if test x"$glib_native_win32" != xyes; then
8951 if test x$with_libiconv != xno ; then
8952 case " $INTLLIBS " in
8953 *[\ \ ]-liconv[\ \ ]*) ;;
8954 *) ICONV_LIBS="-liconv" ;;
8960 case $with_libiconv in
8963 $as_echo "#define USE_LIBICONV_GNU 1" >>confdefs.h
8968 $as_echo "#define USE_LIBICONV_NATIVE 1" >>confdefs.h
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8977 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8982 macro_version='2.4.2'
8983 macro_revision='1.3337'
8997 ltmain="$ac_aux_dir/ltmain.sh"
8999 # Backslashify metacharacters that are still active within
9000 # double-quoted strings.
9001 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9003 # Same as above, but do not quote variable references.
9004 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9006 # Sed substitution to delay expansion of an escaped shell variable in a
9007 # double_quote_subst'ed string.
9008 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9010 # Sed substitution to delay expansion of an escaped single quote.
9011 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9013 # Sed substitution to avoid accidental globbing in evaled expressions
9014 no_glob_subst='s/\*/\\\*/g'
9016 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9017 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9021 $as_echo_n "checking how to print strings... " >&6; }
9022 # Test print first, because it will be a builtin if present.
9023 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9024 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9026 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9029 # Use this function as a fallback that always works.
9030 func_fallback_echo ()
9032 eval 'cat <<_LTECHO_EOF
9036 ECHO='func_fallback_echo'
9039 # func_echo_all arg...
9040 # Invoke $ECHO with all args, space-separated.
9047 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9048 $as_echo "printf" >&6; } ;;
9049 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9050 $as_echo "print -r" >&6; } ;;
9051 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9052 $as_echo "cat" >&6; } ;;
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9069 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9070 if ${ac_cv_path_SED+:} false; then :
9071 $as_echo_n "(cached) " >&6
9073 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9074 for ac_i in 1 2 3 4 5 6 7; do
9075 ac_script="$ac_script$as_nl$ac_script"
9077 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9078 { ac_script=; unset ac_script;}
9079 if test -z "$SED"; then
9080 ac_path_SED_found=false
9081 # Loop through the user's path and test for each of PROGNAME-LIST
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 test -z "$as_dir" && as_dir=.
9087 for ac_prog in sed gsed; do
9088 for ac_exec_ext in '' $ac_executable_extensions; do
9089 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9090 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
9091 # Check for GNU ac_path_SED and select it if it is found.
9092 # Check for GNU $ac_path_SED
9093 case `"$ac_path_SED" --version 2>&1` in
9095 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9098 $as_echo_n 0123456789 >"conftest.in"
9101 cat "conftest.in" "conftest.in" >"conftest.tmp"
9102 mv "conftest.tmp" "conftest.in"
9103 cp "conftest.in" "conftest.nl"
9104 $as_echo '' >> "conftest.nl"
9105 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9107 as_fn_arith $ac_count + 1 && ac_count=$as_val
9108 if test $ac_count -gt ${ac_path_SED_max-0}; then
9109 # Best one so far, save it but keep looking for a better one
9110 ac_cv_path_SED="$ac_path_SED"
9111 ac_path_SED_max=$ac_count
9113 # 10*(2^10) chars as input seems more than enough
9114 test $ac_count -gt 10 && break
9116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9119 $ac_path_SED_found && break 3
9124 if test -z "$ac_cv_path_SED"; then
9125 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9133 $as_echo "$ac_cv_path_SED" >&6; }
9134 SED="$ac_cv_path_SED"
9137 test -z "$SED" && SED=sed
9138 Xsed="$SED -e 1s/^X//"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9151 $as_echo_n "checking for fgrep... " >&6; }
9152 if ${ac_cv_path_FGREP+:} false; then :
9153 $as_echo_n "(cached) " >&6
9155 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9156 then ac_cv_path_FGREP="$GREP -F"
9158 if test -z "$FGREP"; then
9159 ac_path_FGREP_found=false
9160 # Loop through the user's path and test for each of PROGNAME-LIST
9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9165 test -z "$as_dir" && as_dir=.
9166 for ac_prog in fgrep; do
9167 for ac_exec_ext in '' $ac_executable_extensions; do
9168 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9169 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
9170 # Check for GNU ac_path_FGREP and select it if it is found.
9171 # Check for GNU $ac_path_FGREP
9172 case `"$ac_path_FGREP" --version 2>&1` in
9174 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9177 $as_echo_n 0123456789 >"conftest.in"
9180 cat "conftest.in" "conftest.in" >"conftest.tmp"
9181 mv "conftest.tmp" "conftest.in"
9182 cp "conftest.in" "conftest.nl"
9183 $as_echo 'FGREP' >> "conftest.nl"
9184 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9186 as_fn_arith $ac_count + 1 && ac_count=$as_val
9187 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9188 # Best one so far, save it but keep looking for a better one
9189 ac_cv_path_FGREP="$ac_path_FGREP"
9190 ac_path_FGREP_max=$ac_count
9192 # 10*(2^10) chars as input seems more than enough
9193 test $ac_count -gt 10 && break
9195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9198 $ac_path_FGREP_found && break 3
9203 if test -z "$ac_cv_path_FGREP"; then
9204 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9207 ac_cv_path_FGREP=$FGREP
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9213 $as_echo "$ac_cv_path_FGREP" >&6; }
9214 FGREP="$ac_cv_path_FGREP"
9217 test -z "$GREP" && GREP=grep
9237 # Check whether --with-gnu-ld was given.
9238 if test "${with_gnu_ld+set}" = set; then :
9239 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9245 if test "$GCC" = yes; then
9246 # Check if gcc -print-prog-name=ld gives a path.
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9248 $as_echo_n "checking for ld used by $CC... " >&6; }
9251 # gcc leaves a trailing carriage return which upsets mingw
9252 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9254 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9257 # Accept absolute paths.
9259 re_direlt='/[^/][^/]*/\.\./'
9260 # Canonicalize the pathname of ld
9261 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9262 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9263 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9265 test -z "$LD" && LD="$ac_prog"
9268 # If it fails, then pretend we aren't using GCC.
9272 # If it is relative, then search for the first ld in PATH.
9276 elif test "$with_gnu_ld" = yes; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9278 $as_echo_n "checking for GNU ld... " >&6; }
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9281 $as_echo_n "checking for non-GNU ld... " >&6; }
9283 if ${lt_cv_path_LD+:} false; then :
9284 $as_echo_n "(cached) " >&6
9286 if test -z "$LD"; then
9287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9288 for ac_dir in $PATH; do
9290 test -z "$ac_dir" && ac_dir=.
9291 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9292 lt_cv_path_LD="$ac_dir/$ac_prog"
9293 # Check to see if the program is GNU ld. I'd rather use --version,
9294 # but apparently some variants of GNU ld only accept -v.
9295 # Break only if it was the GNU/non-GNU ld that we prefer.
9296 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9297 *GNU* | *'with BFD'*)
9298 test "$with_gnu_ld" != no && break
9301 test "$with_gnu_ld" != yes && break
9308 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9313 if test -n "$LD"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9315 $as_echo "$LD" >&6; }
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9320 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9322 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9323 if ${lt_cv_prog_gnu_ld+:} false; then :
9324 $as_echo_n "(cached) " >&6
9326 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9327 case `$LD -v 2>&1 </dev/null` in
9328 *GNU* | *'with BFD'*)
9329 lt_cv_prog_gnu_ld=yes
9332 lt_cv_prog_gnu_ld=no
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9337 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9338 with_gnu_ld=$lt_cv_prog_gnu_ld
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9349 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9350 if ${lt_cv_path_NM+:} false; then :
9351 $as_echo_n "(cached) " >&6
9353 if test -n "$NM"; then
9354 # Let the user override the test.
9357 lt_nm_to_check="${ac_tool_prefix}nm"
9358 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9359 lt_nm_to_check="$lt_nm_to_check nm"
9361 for lt_tmp_nm in $lt_nm_to_check; do
9362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9363 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9365 test -z "$ac_dir" && ac_dir=.
9366 tmp_nm="$ac_dir/$lt_tmp_nm"
9367 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9368 # Check to see if the nm accepts a BSD-compat flag.
9369 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9370 # nm: unknown option "B" ignored
9371 # Tru64's nm complains that /dev/null is an invalid object file
9372 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9373 */dev/null* | *'Invalid file or object type'*)
9374 lt_cv_path_NM="$tmp_nm -B"
9378 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9380 lt_cv_path_NM="$tmp_nm -p"
9384 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9385 continue # so that we can try to find one that supports BSD flags
9394 : ${lt_cv_path_NM=no}
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9398 $as_echo "$lt_cv_path_NM" >&6; }
9399 if test "$lt_cv_path_NM" != "no"; then
9402 # Didn't find any BSD compatible name lister, look for dumpbin.
9403 if test -n "$DUMPBIN"; then :
9404 # Let the user override the test.
9406 if test -n "$ac_tool_prefix"; then
9407 for ac_prog in dumpbin "link -dump"
9409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9412 $as_echo_n "checking for $ac_word... " >&6; }
9413 if ${ac_cv_prog_DUMPBIN+:} false; then :
9414 $as_echo_n "(cached) " >&6
9416 if test -n "$DUMPBIN"; then
9417 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423 test -z "$as_dir" && as_dir=.
9424 for ac_exec_ext in '' $ac_executable_extensions; do
9425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9426 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436 DUMPBIN=$ac_cv_prog_DUMPBIN
9437 if test -n "$DUMPBIN"; then
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9439 $as_echo "$DUMPBIN" >&6; }
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9442 $as_echo "no" >&6; }
9446 test -n "$DUMPBIN" && break
9449 if test -z "$DUMPBIN"; then
9450 ac_ct_DUMPBIN=$DUMPBIN
9451 for ac_prog in dumpbin "link -dump"
9453 # Extract the first word of "$ac_prog", so it can be a program name with args.
9454 set dummy $ac_prog; ac_word=$2
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 $as_echo_n "checking for $ac_word... " >&6; }
9457 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9458 $as_echo_n "(cached) " >&6
9460 if test -n "$ac_ct_DUMPBIN"; then
9461 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 test -z "$as_dir" && as_dir=.
9468 for ac_exec_ext in '' $ac_executable_extensions; do
9469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9470 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9481 if test -n "$ac_ct_DUMPBIN"; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9483 $as_echo "$ac_ct_DUMPBIN" >&6; }
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9490 test -n "$ac_ct_DUMPBIN" && break
9493 if test "x$ac_ct_DUMPBIN" = x; then
9496 case $cross_compiling:$ac_tool_warned in
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9500 ac_tool_warned=yes ;;
9502 DUMPBIN=$ac_ct_DUMPBIN
9506 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9508 DUMPBIN="$DUMPBIN -symbols"
9516 if test "$DUMPBIN" != ":"; then
9520 test -z "$NM" && NM=nm
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9528 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9529 if ${lt_cv_nm_interface+:} false; then :
9530 $as_echo_n "(cached) " >&6
9532 lt_cv_nm_interface="BSD nm"
9533 echo "int some_variable = 0;" > conftest.$ac_ext
9534 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9535 (eval "$ac_compile" 2>conftest.err)
9536 cat conftest.err >&5
9537 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9538 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9539 cat conftest.err >&5
9540 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9541 cat conftest.out >&5
9542 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9543 lt_cv_nm_interface="MS dumpbin"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9548 $as_echo "$lt_cv_nm_interface" >&6; }
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9551 $as_echo_n "checking whether ln -s works... " >&6; }
9553 if test "$LN_S" = "ln -s"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9555 $as_echo "yes" >&6; }
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9558 $as_echo "no, using $LN_S" >&6; }
9561 # find the maximum length of command line arguments
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9563 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9564 if ${lt_cv_sys_max_cmd_len+:} false; then :
9565 $as_echo_n "(cached) " >&6
9572 # On DJGPP, this test can blow up pretty badly due to problems in libc
9573 # (any single argument exceeding 2000 bytes causes a buffer overrun
9574 # during glob expansion). Even if it were fixed, the result of this
9575 # check would be larger than it should be.
9576 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9580 # Under GNU Hurd, this test is not required because there is
9581 # no limit to the length of command line arguments.
9582 # Libtool will interpret -1 as no limit whatsoever
9583 lt_cv_sys_max_cmd_len=-1;
9586 cygwin* | mingw* | cegcc*)
9587 # On Win9x/ME, this test blows up -- it succeeds, but takes
9588 # about 5 minutes as the teststring grows exponentially.
9589 # Worse, since 9x/ME are not pre-emptively multitasking,
9590 # you end up with a "frozen" computer, even though with patience
9591 # the test eventually succeeds (with a max line length of 256k).
9592 # Instead, let's just punt: use the minimum linelength reported by
9593 # all of the supported platforms: 8192 (on NT/2K/XP).
9594 lt_cv_sys_max_cmd_len=8192;
9598 # On MiNT this can take a long time and run out of memory.
9599 lt_cv_sys_max_cmd_len=8192;
9603 # On AmigaOS with pdksh, this test takes hours, literally.
9604 # So we just punt and use a minimum line length of 8192.
9605 lt_cv_sys_max_cmd_len=8192;
9608 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9609 # This has been around since 386BSD, at least. Likely further.
9610 if test -x /sbin/sysctl; then
9611 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9612 elif test -x /usr/sbin/sysctl; then
9613 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9615 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9617 # And add a safety zone
9618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9623 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9624 lt_cv_sys_max_cmd_len=196608
9628 # The test takes a long time on OS/2.
9629 lt_cv_sys_max_cmd_len=8192
9633 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9634 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9635 # nice to cause kernel panics so lets avoid the loop below.
9636 # First set a reasonable default.
9637 lt_cv_sys_max_cmd_len=16384
9639 if test -x /sbin/sysconfig; then
9640 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9641 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9646 lt_cv_sys_max_cmd_len=102400
9648 sysv5* | sco5v6* | sysv4.2uw2*)
9649 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9650 if test -n "$kargmax"; then
9651 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9653 lt_cv_sys_max_cmd_len=32768
9657 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9658 if test -n "$lt_cv_sys_max_cmd_len"; then
9659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9662 # Make teststring a little bigger before we do anything with it.
9663 # a 1K string should be a reasonable start.
9664 for i in 1 2 3 4 5 6 7 8 ; do
9665 teststring=$teststring$teststring
9667 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9668 # If test is not a shell built-in, we'll probably end up computing a
9669 # maximum length that is only half of the actual maximum length, but
9671 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
9672 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9673 test $i != 17 # 1/2 MB should be enough
9676 teststring=$teststring$teststring
9678 # Only check the string length outside the loop.
9679 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9681 # Add a significant safety factor because C++ compilers can tack on
9682 # massive amounts of additional arguments before passing them to the
9683 # linker. It appears as though 1/2 is a usable value.
9684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9691 if test -n $lt_cv_sys_max_cmd_len ; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9693 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9696 $as_echo "none" >&6; }
9698 max_cmd_len=$lt_cv_sys_max_cmd_len
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9710 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9711 # Try some XSI features
9714 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9716 && eval 'test $(( 1 + 1 )) -eq 2 \
9717 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9720 $as_echo "$xsi_shell" >&6; }
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9724 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9726 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9728 && lt_shell_append=yes
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9730 $as_echo "$lt_shell_append" >&6; }
9733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9743 # test EBCDIC or ASCII
9744 case `echo X|tr X '\101'` in
9745 A) # ASCII based system
9746 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9747 lt_SP2NL='tr \040 \012'
9748 lt_NL2SP='tr \015\012 \040\040'
9750 *) # EBCDIC based system
9751 lt_SP2NL='tr \100 \n'
9752 lt_NL2SP='tr \r\n \100\100'
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9765 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9766 if ${lt_cv_to_host_file_cmd+:} false; then :
9767 $as_echo_n "(cached) " >&6
9772 *-*-mingw* ) # actually msys
9773 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9776 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9778 * ) # otherwise, assume *nix
9779 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9785 *-*-mingw* ) # actually msys
9786 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9789 lt_cv_to_host_file_cmd=func_convert_file_noop
9791 * ) # otherwise, assume *nix
9792 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9796 * ) # unhandled hosts (and "normal" native builds)
9797 lt_cv_to_host_file_cmd=func_convert_file_noop
9803 to_host_file_cmd=$lt_cv_to_host_file_cmd
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9805 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9812 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9813 if ${lt_cv_to_tool_file_cmd+:} false; then :
9814 $as_echo_n "(cached) " >&6
9816 #assume ordinary cross tools, or native build.
9817 lt_cv_to_tool_file_cmd=func_convert_file_noop
9821 *-*-mingw* ) # actually msys
9822 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9830 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9832 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9839 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9840 if ${lt_cv_ld_reload_flag+:} false; then :
9841 $as_echo_n "(cached) " >&6
9843 lt_cv_ld_reload_flag='-r'
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9846 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9847 reload_flag=$lt_cv_ld_reload_flag
9848 case $reload_flag in
9850 *) reload_flag=" $reload_flag" ;;
9852 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9854 cygwin* | mingw* | pw32* | cegcc*)
9855 if test "$GCC" != yes; then
9860 if test "$GCC" = yes; then
9861 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9876 if test -n "$ac_tool_prefix"; then
9877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9878 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_prog_OBJDUMP+:} false; then :
9882 $as_echo_n "(cached) " >&6
9884 if test -n "$OBJDUMP"; then
9885 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 test -z "$as_dir" && as_dir=.
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9894 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9904 OBJDUMP=$ac_cv_prog_OBJDUMP
9905 if test -n "$OBJDUMP"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9907 $as_echo "$OBJDUMP" >&6; }
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9915 if test -z "$ac_cv_prog_OBJDUMP"; then
9916 ac_ct_OBJDUMP=$OBJDUMP
9917 # Extract the first word of "objdump", so it can be a program name with args.
9918 set dummy objdump; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9922 $as_echo_n "(cached) " >&6
9924 if test -n "$ac_ct_OBJDUMP"; then
9925 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9945 if test -n "$ac_ct_OBJDUMP"; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9947 $as_echo "$ac_ct_OBJDUMP" >&6; }
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9953 if test "x$ac_ct_OBJDUMP" = x; then
9956 case $cross_compiling:$ac_tool_warned in
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9960 ac_tool_warned=yes ;;
9962 OBJDUMP=$ac_ct_OBJDUMP
9965 OBJDUMP="$ac_cv_prog_OBJDUMP"
9968 test -z "$OBJDUMP" && OBJDUMP=objdump
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9976 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9977 if ${lt_cv_deplibs_check_method+:} false; then :
9978 $as_echo_n "(cached) " >&6
9980 lt_cv_file_magic_cmd='$MAGIC_CMD'
9981 lt_cv_file_magic_test_file=
9982 lt_cv_deplibs_check_method='unknown'
9983 # Need to set the preceding variable on all platforms that support
9984 # interlibrary dependencies.
9985 # 'none' -- dependencies not supported.
9986 # `unknown' -- same as none, but documents that we really don't know.
9987 # 'pass_all' -- all dependencies passed with no checks.
9988 # 'test_compile' -- check by making test program.
9989 # 'file_magic [[regex]]' -- check by looking for files in library path
9990 # which responds to the $file_magic_cmd with a given extended regex.
9991 # If you have `file' or equivalent on your system and you're not sure
9992 # whether `pass_all' will *always* work, you probably want this one.
9996 lt_cv_deplibs_check_method=pass_all
10000 lt_cv_deplibs_check_method=pass_all
10004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10005 lt_cv_file_magic_cmd='/usr/bin/file -L'
10006 lt_cv_file_magic_test_file=/shlib/libc.so
10010 # func_win32_libid is a shell function defined in ltmain.sh
10011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10012 lt_cv_file_magic_cmd='func_win32_libid'
10016 # Base MSYS/MinGW do not provide the 'file' command needed by
10017 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10018 # unless we find 'file', for example because we are cross-compiling.
10019 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10020 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10022 lt_cv_file_magic_cmd='func_win32_libid'
10024 # Keep this pattern in sync with the one in func_win32_libid.
10025 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10026 lt_cv_file_magic_cmd='$OBJDUMP -f'
10031 # use the weaker test based on 'objdump'. See mingw*.
10032 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10033 lt_cv_file_magic_cmd='$OBJDUMP -f'
10036 darwin* | rhapsody*)
10037 lt_cv_deplibs_check_method=pass_all
10040 freebsd* | dragonfly*)
10041 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10044 # Not sure whether the presence of OpenBSD here was a mistake.
10045 # Let's accept both of them until this is cleared up.
10046 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10047 lt_cv_file_magic_cmd=/usr/bin/file
10048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10052 lt_cv_deplibs_check_method=pass_all
10057 lt_cv_deplibs_check_method=pass_all
10061 lt_cv_deplibs_check_method=pass_all
10064 hpux10.20* | hpux11*)
10065 lt_cv_file_magic_cmd=/usr/bin/file
10068 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10069 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10072 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]'
10073 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10077 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10083 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10087 irix5* | irix6* | nonstopux*)
10089 *-32|*"-32 ") libmagic=32-bit;;
10090 *-n32|*"-n32 ") libmagic=N32;;
10091 *-64|*"-64 ") libmagic=64-bit;;
10092 *) libmagic=never-match;;
10094 lt_cv_deplibs_check_method=pass_all
10097 # This must be glibc/ELF.
10098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10099 lt_cv_deplibs_check_method=pass_all
10103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10112 lt_cv_file_magic_cmd=/usr/bin/file
10113 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10117 lt_cv_deplibs_check_method=pass_all
10121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10128 osf3* | osf4* | osf5*)
10129 lt_cv_deplibs_check_method=pass_all
10133 lt_cv_deplibs_check_method=pass_all
10137 lt_cv_deplibs_check_method=pass_all
10140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10141 lt_cv_deplibs_check_method=pass_all
10145 case $host_vendor in
10147 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]'
10148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10151 lt_cv_deplibs_check_method=pass_all
10154 lt_cv_file_magic_cmd='/bin/file'
10155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10158 lt_cv_file_magic_cmd='/bin/file'
10159 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10160 lt_cv_file_magic_test_file=/lib/libc.so
10163 lt_cv_deplibs_check_method=pass_all
10166 lt_cv_deplibs_check_method=pass_all
10172 lt_cv_deplibs_check_method=pass_all
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10178 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10182 if test "$build" = "$host"; then
10185 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10186 want_nocaseglob=yes
10188 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10194 file_magic_cmd=$lt_cv_file_magic_cmd
10195 deplibs_check_method=$lt_cv_deplibs_check_method
10196 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10219 if test -n "$ac_tool_prefix"; then
10220 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10221 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if ${ac_cv_prog_DLLTOOL+:} false; then :
10225 $as_echo_n "(cached) " >&6
10227 if test -n "$DLLTOOL"; then
10228 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10237 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 DLLTOOL=$ac_cv_prog_DLLTOOL
10248 if test -n "$DLLTOOL"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10250 $as_echo "$DLLTOOL" >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10258 if test -z "$ac_cv_prog_DLLTOOL"; then
10259 ac_ct_DLLTOOL=$DLLTOOL
10260 # Extract the first word of "dlltool", so it can be a program name with args.
10261 set dummy dlltool; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10265 $as_echo_n "(cached) " >&6
10267 if test -n "$ac_ct_DLLTOOL"; then
10268 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in $PATH
10274 test -z "$as_dir" && as_dir=.
10275 for ac_exec_ext in '' $ac_executable_extensions; do
10276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10277 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10288 if test -n "$ac_ct_DLLTOOL"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10290 $as_echo "$ac_ct_DLLTOOL" >&6; }
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293 $as_echo "no" >&6; }
10296 if test "x$ac_ct_DLLTOOL" = x; then
10299 case $cross_compiling:$ac_tool_warned in
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10303 ac_tool_warned=yes ;;
10305 DLLTOOL=$ac_ct_DLLTOOL
10308 DLLTOOL="$ac_cv_prog_DLLTOOL"
10311 test -z "$DLLTOOL" && DLLTOOL=dlltool
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10320 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10321 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10322 $as_echo_n "(cached) " >&6
10324 lt_cv_sharedlib_from_linklib_cmd='unknown'
10327 cygwin* | mingw* | pw32* | cegcc*)
10328 # two different shell functions defined in ltmain.sh
10329 # decide which to use based on capabilities of $DLLTOOL
10330 case `$DLLTOOL --help 2>&1` in
10331 *--identify-strict*)
10332 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10335 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10340 # fallback: assume linklib IS sharedlib
10341 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10347 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10348 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10349 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10357 if test -n "$ac_tool_prefix"; then
10360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_prog_AR+:} false; then :
10365 $as_echo_n "(cached) " >&6
10367 if test -n "$AR"; then
10368 ac_cv_prog_AR="$AR" # Let the user override the test.
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 if test -n "$AR"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10390 $as_echo "$AR" >&6; }
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10397 test -n "$AR" && break
10400 if test -z "$AR"; then
10404 # Extract the first word of "$ac_prog", so it can be a program name with args.
10405 set dummy $ac_prog; ac_word=$2
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407 $as_echo_n "checking for $ac_word... " >&6; }
10408 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10409 $as_echo_n "(cached) " >&6
10411 if test -n "$ac_ct_AR"; then
10412 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10421 ac_cv_prog_ac_ct_AR="$ac_prog"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10432 if test -n "$ac_ct_AR"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10434 $as_echo "$ac_ct_AR" >&6; }
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10441 test -n "$ac_ct_AR" && break
10444 if test "x$ac_ct_AR" = x; then
10447 case $cross_compiling:$ac_tool_warned in
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10451 ac_tool_warned=yes ;;
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10471 $as_echo_n "checking for archiver @FILE support... " >&6; }
10472 if ${lt_cv_ar_at_file+:} false; then :
10473 $as_echo_n "(cached) " >&6
10475 lt_cv_ar_at_file=no
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10487 if ac_fn_c_try_compile "$LINENO"; then :
10488 echo conftest.$ac_objext > conftest.lst
10489 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10491 (eval $lt_ar_try) 2>&5
10493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; }
10495 if test "$ac_status" -eq 0; then
10496 # Ensure the archiver fails upon bogus file names.
10497 rm -f conftest.$ac_objext libconftest.a
10498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10499 (eval $lt_ar_try) 2>&5
10501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10502 test $ac_status = 0; }
10503 if test "$ac_status" -ne 0; then
10507 rm -f conftest.* libconftest.a
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10514 $as_echo "$lt_cv_ar_at_file" >&6; }
10516 if test "x$lt_cv_ar_at_file" = xno; then
10517 archiver_list_spec=
10519 archiver_list_spec=$lt_cv_ar_at_file
10528 if test -n "$ac_tool_prefix"; then
10529 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10530 set dummy ${ac_tool_prefix}strip; ac_word=$2
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 $as_echo_n "checking for $ac_word... " >&6; }
10533 if ${ac_cv_prog_STRIP+:} false; then :
10534 $as_echo_n "(cached) " >&6
10536 if test -n "$STRIP"; then
10537 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 STRIP=$ac_cv_prog_STRIP
10557 if test -n "$STRIP"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10559 $as_echo "$STRIP" >&6; }
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10567 if test -z "$ac_cv_prog_STRIP"; then
10569 # Extract the first word of "strip", so it can be a program name with args.
10570 set dummy strip; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10574 $as_echo_n "(cached) " >&6
10576 if test -n "$ac_ct_STRIP"; then
10577 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10586 ac_cv_prog_ac_ct_STRIP="strip"
10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10597 if test -n "$ac_ct_STRIP"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10599 $as_echo "$ac_ct_STRIP" >&6; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10605 if test "x$ac_ct_STRIP" = x; then
10608 case $cross_compiling:$ac_tool_warned in
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10612 ac_tool_warned=yes ;;
10617 STRIP="$ac_cv_prog_STRIP"
10620 test -z "$STRIP" && STRIP=:
10627 if test -n "$ac_tool_prefix"; then
10628 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10629 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if ${ac_cv_prog_RANLIB+:} false; then :
10633 $as_echo_n "(cached) " >&6
10635 if test -n "$RANLIB"; then
10636 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10645 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 RANLIB=$ac_cv_prog_RANLIB
10656 if test -n "$RANLIB"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10658 $as_echo "$RANLIB" >&6; }
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10666 if test -z "$ac_cv_prog_RANLIB"; then
10667 ac_ct_RANLIB=$RANLIB
10668 # Extract the first word of "ranlib", so it can be a program name with args.
10669 set dummy ranlib; ac_word=$2
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671 $as_echo_n "checking for $ac_word... " >&6; }
10672 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10673 $as_echo_n "(cached) " >&6
10675 if test -n "$ac_ct_RANLIB"; then
10676 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685 ac_cv_prog_ac_ct_RANLIB="ranlib"
10686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10696 if test -n "$ac_ct_RANLIB"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10698 $as_echo "$ac_ct_RANLIB" >&6; }
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10704 if test "x$ac_ct_RANLIB" = x; then
10707 case $cross_compiling:$ac_tool_warned in
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10711 ac_tool_warned=yes ;;
10713 RANLIB=$ac_ct_RANLIB
10716 RANLIB="$ac_cv_prog_RANLIB"
10719 test -z "$RANLIB" && RANLIB=:
10726 # Determine commands to create old-style static archives.
10727 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10728 old_postinstall_cmds='chmod 644 $oldlib'
10729 old_postuninstall_cmds=
10731 if test -n "$RANLIB"; then
10734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10737 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10740 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10745 lock_old_archive_extraction=yes ;;
10747 lock_old_archive_extraction=no ;;
10788 # If no C compiler was specified, use CC.
10791 # If no C compiler flags were specified, use CFLAGS.
10792 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10794 # Allow CC to be a program name with arguments.
10798 # Check for command to grab the raw symbol name followed by C symbol from nm.
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10800 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10801 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10802 $as_echo_n "(cached) " >&6
10805 # These are sane defaults that work on at least a few old systems.
10806 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10808 # Character class describing NM global symbol codes.
10809 symcode='[BCDEGRST]'
10811 # Regexp to match symbols that can be accessed directly from C.
10812 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10814 # Define system-specific variables.
10819 cygwin* | mingw* | pw32* | cegcc*)
10820 symcode='[ABCDGISTW]'
10823 if test "$host_cpu" = ia64; then
10824 symcode='[ABCDEGRST]'
10827 irix* | nonstopux*)
10828 symcode='[BCDEGRST]'
10831 symcode='[BCDEGQRST]'
10842 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10850 # If we're using GNU nm, then use its standard symbol codes.
10851 case `$NM -V 2>&1` in
10852 *GNU* | *'with BFD'*)
10853 symcode='[ABCDGIRSTW]' ;;
10856 # Transform an extracted symbol line into a proper C declaration.
10857 # Some systems (esp. on ia64) link data and code symbols differently,
10858 # so use this general approach.
10859 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10861 # Transform an extracted symbol line into symbol name and symbol address
10862 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10863 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'"
10865 # Handle CRLF in mingw tool chain
10869 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10873 # Try without a prefix underscore, then with it.
10874 for ac_symprfx in "" "_"; do
10876 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10877 symxfrm="\\1 $ac_symprfx\\2 \\2"
10879 # Write the raw and C identifiers.
10880 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10881 # Fake it for dumpbin and say T for any non-static function
10882 # and D for any global variable.
10883 # Also find C++ and __fastcall symbols from MSVC++,
10884 # which start with @ or ?.
10885 lt_cv_sys_global_symbol_pipe="$AWK '"\
10886 " {last_section=section; section=\$ 3};"\
10887 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10888 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10889 " \$ 0!~/External *\|/{next};"\
10890 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10891 " {if(hide[section]) next};"\
10892 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10893 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10894 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10895 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10896 " ' prfx=^$ac_symprfx"
10898 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10900 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10902 # Check to see that the pipe works correctly.
10906 cat > conftest.$ac_ext <<_LT_EOF
10911 void nm_test_func(void);
10912 void nm_test_func(void){}
10916 int main(){nm_test_var='a';nm_test_func();return(0);}
10919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10920 (eval $ac_compile) 2>&5
10922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923 test $ac_status = 0; }; then
10924 # Now try to grab the symbols.
10926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10927 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10930 test $ac_status = 0; } && test -s "$nlist"; then
10931 # Try sorting and uniquifying the output.
10932 if sort "$nlist" | uniq > "$nlist"T; then
10933 mv -f "$nlist"T "$nlist"
10938 # Make sure that we snagged all the symbols we need.
10939 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10940 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10941 cat <<_LT_EOF > conftest.$ac_ext
10942 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10943 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10944 /* DATA imports from DLLs on WIN32 con't be const, because runtime
10945 relocations are performed -- see ld's documentation on pseudo-relocs. */
10946 # define LT_DLSYM_CONST
10947 #elif defined(__osf__)
10948 /* This system does not cope well with relocations in const data. */
10949 # define LT_DLSYM_CONST
10951 # define LT_DLSYM_CONST const
10959 # Now generate the symbol file.
10960 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10962 cat <<_LT_EOF >> conftest.$ac_ext
10964 /* The mapping between symbol names and symbols. */
10965 LT_DLSYM_CONST struct {
10969 lt__PROGRAM__LTX_preloaded_symbols[] =
10971 { "@PROGRAM@", (void *) 0 },
10973 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10974 cat <<\_LT_EOF >> conftest.$ac_ext
10978 /* This works around a problem in FreeBSD linker */
10979 #ifdef FREEBSD_WORKAROUND
10980 static const void *lt_preloaded_setup() {
10981 return lt__PROGRAM__LTX_preloaded_symbols;
10989 # Now try linking the two files.
10990 mv conftest.$ac_objext conftstm.$ac_objext
10991 lt_globsym_save_LIBS=$LIBS
10992 lt_globsym_save_CFLAGS=$CFLAGS
10993 LIBS="conftstm.$ac_objext"
10994 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10996 (eval $ac_link) 2>&5
10998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11002 LIBS=$lt_globsym_save_LIBS
11003 CFLAGS=$lt_globsym_save_CFLAGS
11005 echo "cannot find nm_test_func in $nlist" >&5
11008 echo "cannot find nm_test_var in $nlist" >&5
11011 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11014 echo "$progname: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11017 rm -rf conftest* conftst*
11019 # Do not use the global_symbol_pipe unless it works.
11020 if test "$pipe_works" = yes; then
11023 lt_cv_sys_global_symbol_pipe=
11029 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11030 lt_cv_sys_global_symbol_to_cdecl=
11032 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11034 $as_echo "failed" >&6; }
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11037 $as_echo "ok" >&6; }
11040 # Response file support.
11041 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11042 nm_file_list_spec='@'
11043 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11044 nm_file_list_spec='@'
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11074 $as_echo_n "checking for sysroot... " >&6; }
11076 # Check whether --with-sysroot was given.
11077 if test "${with_sysroot+set}" = set; then :
11078 withval=$with_sysroot;
11085 case ${with_sysroot} in #(
11087 if test "$GCC" = yes; then
11088 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11092 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11098 $as_echo "${with_sysroot}" >&6; }
11099 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11104 $as_echo "${lt_sysroot:-no}" >&6; }
11110 # Check whether --enable-libtool-lock was given.
11111 if test "${enable_libtool_lock+set}" = set; then :
11112 enableval=$enable_libtool_lock;
11115 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11117 # Some flags need to be propagated to the compiler or linker for good
11121 # Find out which ABI we are using.
11122 echo 'int i;' > conftest.$ac_ext
11123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11124 (eval $ac_compile) 2>&5
11126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11127 test $ac_status = 0; }; then
11128 case `/usr/bin/file conftest.$ac_objext` in
11130 HPUX_IA64_MODE="32"
11133 HPUX_IA64_MODE="64"
11140 # Find out which ABI we are using.
11141 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11143 (eval $ac_compile) 2>&5
11145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11146 test $ac_status = 0; }; then
11147 if test "$lt_cv_prog_gnu_ld" = yes; then
11148 case `/usr/bin/file conftest.$ac_objext` in
11150 LD="${LD-ld} -melf32bsmip"
11153 LD="${LD-ld} -melf32bmipn32"
11156 LD="${LD-ld} -melf64bmip"
11160 case `/usr/bin/file conftest.$ac_objext` in
11176 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11177 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11178 # Find out which ABI we are using.
11179 echo 'int i;' > conftest.$ac_ext
11180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11181 (eval $ac_compile) 2>&5
11183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11184 test $ac_status = 0; }; then
11185 case `/usr/bin/file conftest.o` in
11188 x86_64-*kfreebsd*-gnu)
11189 LD="${LD-ld} -m elf_i386_fbsd"
11192 LD="${LD-ld} -m elf_i386"
11194 ppc64-*linux*|powerpc64-*linux*)
11195 LD="${LD-ld} -m elf32ppclinux"
11198 LD="${LD-ld} -m elf_s390"
11201 LD="${LD-ld} -m elf32_sparc"
11207 x86_64-*kfreebsd*-gnu)
11208 LD="${LD-ld} -m elf_x86_64_fbsd"
11211 LD="${LD-ld} -m elf_x86_64"
11213 ppc*-*linux*|powerpc*-*linux*)
11214 LD="${LD-ld} -m elf64ppc"
11216 s390*-*linux*|s390*-*tpf*)
11217 LD="${LD-ld} -m elf64_s390"
11220 LD="${LD-ld} -m elf64_sparc"
11230 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11231 SAVE_CFLAGS="$CFLAGS"
11232 CFLAGS="$CFLAGS -belf"
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11234 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11235 if ${lt_cv_cc_needs_belf+:} false; then :
11236 $as_echo_n "(cached) " >&6
11239 ac_cpp='$CPP $CPPFLAGS'
11240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11255 if ac_fn_c_try_link "$LINENO"; then :
11256 lt_cv_cc_needs_belf=yes
11258 lt_cv_cc_needs_belf=no
11260 rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11263 ac_cpp='$CPP $CPPFLAGS'
11264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11270 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11271 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11272 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11273 CFLAGS="$SAVE_CFLAGS"
11277 # Find out which ABI we are using.
11278 echo 'int i;' > conftest.$ac_ext
11279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11280 (eval $ac_compile) 2>&5
11282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11283 test $ac_status = 0; }; then
11284 case `/usr/bin/file conftest.o` in
11286 case $lt_cv_prog_gnu_ld in
11290 LD="${LD-ld} -m elf_x86_64"
11293 LD="${LD-ld} -m elf64_sparc"
11296 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11297 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11302 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11314 need_locks="$enable_libtool_lock"
11316 if test -n "$ac_tool_prefix"; then
11317 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11318 set dummy ${ac_tool_prefix}mt; ac_word=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320 $as_echo_n "checking for $ac_word... " >&6; }
11321 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11322 $as_echo_n "(cached) " >&6
11324 if test -n "$MANIFEST_TOOL"; then
11325 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
11333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11334 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11345 if test -n "$MANIFEST_TOOL"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11347 $as_echo "$MANIFEST_TOOL" >&6; }
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11355 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11356 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11357 # Extract the first word of "mt", so it can be a program name with args.
11358 set dummy mt; ac_word=$2
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360 $as_echo_n "checking for $ac_word... " >&6; }
11361 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11362 $as_echo_n "(cached) " >&6
11364 if test -n "$ac_ct_MANIFEST_TOOL"; then
11365 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11371 test -z "$as_dir" && as_dir=.
11372 for ac_exec_ext in '' $ac_executable_extensions; do
11373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11374 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11384 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11385 if test -n "$ac_ct_MANIFEST_TOOL"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11387 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11393 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11396 case $cross_compiling:$ac_tool_warned in
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11400 ac_tool_warned=yes ;;
11402 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11405 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11408 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11410 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11411 if ${lt_cv_path_mainfest_tool+:} false; then :
11412 $as_echo_n "(cached) " >&6
11414 lt_cv_path_mainfest_tool=no
11415 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11416 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11417 cat conftest.err >&5
11418 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11419 lt_cv_path_mainfest_tool=yes
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11424 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11425 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11435 rhapsody* | darwin*)
11436 if test -n "$ac_tool_prefix"; then
11437 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11438 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11442 $as_echo_n "(cached) " >&6
11444 if test -n "$DSYMUTIL"; then
11445 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11465 if test -n "$DSYMUTIL"; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11467 $as_echo "$DSYMUTIL" >&6; }
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11475 if test -z "$ac_cv_prog_DSYMUTIL"; then
11476 ac_ct_DSYMUTIL=$DSYMUTIL
11477 # Extract the first word of "dsymutil", so it can be a program name with args.
11478 set dummy dsymutil; ac_word=$2
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 $as_echo_n "checking for $ac_word... " >&6; }
11481 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11482 $as_echo_n "(cached) " >&6
11484 if test -n "$ac_ct_DSYMUTIL"; then
11485 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11494 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11505 if test -n "$ac_ct_DSYMUTIL"; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11507 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11513 if test "x$ac_ct_DSYMUTIL" = x; then
11516 case $cross_compiling:$ac_tool_warned in
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11520 ac_tool_warned=yes ;;
11522 DSYMUTIL=$ac_ct_DSYMUTIL
11525 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11528 if test -n "$ac_tool_prefix"; then
11529 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11530 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532 $as_echo_n "checking for $ac_word... " >&6; }
11533 if ${ac_cv_prog_NMEDIT+:} false; then :
11534 $as_echo_n "(cached) " >&6
11536 if test -n "$NMEDIT"; then
11537 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11543 test -z "$as_dir" && as_dir=.
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11546 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11556 NMEDIT=$ac_cv_prog_NMEDIT
11557 if test -n "$NMEDIT"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11559 $as_echo "$NMEDIT" >&6; }
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562 $as_echo "no" >&6; }
11567 if test -z "$ac_cv_prog_NMEDIT"; then
11568 ac_ct_NMEDIT=$NMEDIT
11569 # Extract the first word of "nmedit", so it can be a program name with args.
11570 set dummy nmedit; ac_word=$2
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 $as_echo_n "checking for $ac_word... " >&6; }
11573 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11574 $as_echo_n "(cached) " >&6
11576 if test -n "$ac_ct_NMEDIT"; then
11577 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11586 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11597 if test -n "$ac_ct_NMEDIT"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11599 $as_echo "$ac_ct_NMEDIT" >&6; }
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11605 if test "x$ac_ct_NMEDIT" = x; then
11608 case $cross_compiling:$ac_tool_warned in
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11612 ac_tool_warned=yes ;;
11614 NMEDIT=$ac_ct_NMEDIT
11617 NMEDIT="$ac_cv_prog_NMEDIT"
11620 if test -n "$ac_tool_prefix"; then
11621 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11622 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if ${ac_cv_prog_LIPO+:} false; then :
11626 $as_echo_n "(cached) " >&6
11628 if test -n "$LIPO"; then
11629 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 LIPO=$ac_cv_prog_LIPO
11649 if test -n "$LIPO"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11651 $as_echo "$LIPO" >&6; }
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11659 if test -z "$ac_cv_prog_LIPO"; then
11661 # Extract the first word of "lipo", so it can be a program name with args.
11662 set dummy lipo; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11666 $as_echo_n "(cached) " >&6
11668 if test -n "$ac_ct_LIPO"; then
11669 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_prog_ac_ct_LIPO="lipo"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11688 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11689 if test -n "$ac_ct_LIPO"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11691 $as_echo "$ac_ct_LIPO" >&6; }
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11697 if test "x$ac_ct_LIPO" = x; then
11700 case $cross_compiling:$ac_tool_warned in
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11704 ac_tool_warned=yes ;;
11709 LIPO="$ac_cv_prog_LIPO"
11712 if test -n "$ac_tool_prefix"; then
11713 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11714 set dummy ${ac_tool_prefix}otool; ac_word=$2
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716 $as_echo_n "checking for $ac_word... " >&6; }
11717 if ${ac_cv_prog_OTOOL+:} false; then :
11718 $as_echo_n "(cached) " >&6
11720 if test -n "$OTOOL"; then
11721 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724 for as_dir in $PATH
11727 test -z "$as_dir" && as_dir=.
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11730 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11740 OTOOL=$ac_cv_prog_OTOOL
11741 if test -n "$OTOOL"; then
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11743 $as_echo "$OTOOL" >&6; }
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11751 if test -z "$ac_cv_prog_OTOOL"; then
11753 # Extract the first word of "otool", so it can be a program name with args.
11754 set dummy otool; ac_word=$2
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756 $as_echo_n "checking for $ac_word... " >&6; }
11757 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11758 $as_echo_n "(cached) " >&6
11760 if test -n "$ac_ct_OTOOL"; then
11761 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11770 ac_cv_prog_ac_ct_OTOOL="otool"
11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11781 if test -n "$ac_ct_OTOOL"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11783 $as_echo "$ac_ct_OTOOL" >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11789 if test "x$ac_ct_OTOOL" = x; then
11792 case $cross_compiling:$ac_tool_warned in
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11796 ac_tool_warned=yes ;;
11801 OTOOL="$ac_cv_prog_OTOOL"
11804 if test -n "$ac_tool_prefix"; then
11805 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11806 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_prog_OTOOL64+:} false; then :
11810 $as_echo_n "(cached) " >&6
11812 if test -n "$OTOOL64"; then
11813 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11822 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 OTOOL64=$ac_cv_prog_OTOOL64
11833 if test -n "$OTOOL64"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11835 $as_echo "$OTOOL64" >&6; }
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11843 if test -z "$ac_cv_prog_OTOOL64"; then
11844 ac_ct_OTOOL64=$OTOOL64
11845 # Extract the first word of "otool64", so it can be a program name with args.
11846 set dummy otool64; ac_word=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11850 $as_echo_n "(cached) " >&6
11852 if test -n "$ac_ct_OTOOL64"; then
11853 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856 for as_dir in $PATH
11859 test -z "$as_dir" && as_dir=.
11860 for ac_exec_ext in '' $ac_executable_extensions; do
11861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11862 ac_cv_prog_ac_ct_OTOOL64="otool64"
11863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11873 if test -n "$ac_ct_OTOOL64"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11875 $as_echo "$ac_ct_OTOOL64" >&6; }
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11881 if test "x$ac_ct_OTOOL64" = x; then
11884 case $cross_compiling:$ac_tool_warned in
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11888 ac_tool_warned=yes ;;
11890 OTOOL64=$ac_ct_OTOOL64
11893 OTOOL64="$ac_cv_prog_OTOOL64"
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11923 $as_echo_n "checking for -single_module linker flag... " >&6; }
11924 if ${lt_cv_apple_cc_single_mod+:} false; then :
11925 $as_echo_n "(cached) " >&6
11927 lt_cv_apple_cc_single_mod=no
11928 if test -z "${LT_MULTI_MODULE}"; then
11929 # By default we will add the -single_module flag. You can override
11930 # by either setting the environment variable LT_MULTI_MODULE
11931 # non-empty at configure time, or by adding -multi_module to the
11933 rm -rf libconftest.dylib*
11934 echo "int foo(void){return 1;}" > conftest.c
11935 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11936 -dynamiclib -Wl,-single_module conftest.c" >&5
11937 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11938 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11940 # If there is a non-empty error log, and "single_module"
11941 # appears in it, assume the flag caused a linker warning
11942 if test -s conftest.err && $GREP single_module conftest.err; then
11943 cat conftest.err >&5
11944 # Otherwise, if the output was created with a 0 exit code from
11945 # the compiler, it worked.
11946 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
11947 lt_cv_apple_cc_single_mod=yes
11949 cat conftest.err >&5
11951 rm -rf libconftest.dylib*
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11956 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11959 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11960 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11961 $as_echo_n "(cached) " >&6
11963 lt_cv_ld_exported_symbols_list=no
11964 save_LDFLAGS=$LDFLAGS
11965 echo "_main" > conftest.sym
11966 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11978 if ac_fn_c_try_link "$LINENO"; then :
11979 lt_cv_ld_exported_symbols_list=yes
11981 lt_cv_ld_exported_symbols_list=no
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 LDFLAGS="$save_LDFLAGS"
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11989 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11992 $as_echo_n "checking for -force_load linker flag... " >&6; }
11993 if ${lt_cv_ld_force_load+:} false; then :
11994 $as_echo_n "(cached) " >&6
11996 lt_cv_ld_force_load=no
11997 cat > conftest.c << _LT_EOF
11998 int forced_loaded() { return 2;}
12000 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12001 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12002 echo "$AR cru libconftest.a conftest.o" >&5
12003 $AR cru libconftest.a conftest.o 2>&5
12004 echo "$RANLIB libconftest.a" >&5
12005 $RANLIB libconftest.a 2>&5
12006 cat > conftest.c << _LT_EOF
12007 int main() { return 0;}
12009 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12010 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12012 if test -s conftest.err && $GREP force_load conftest.err; then
12013 cat conftest.err >&5
12014 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
12015 lt_cv_ld_force_load=yes
12017 cat conftest.err >&5
12019 rm -f conftest.err libconftest.a conftest conftest.c
12020 rm -rf conftest.dSYM
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12024 $as_echo "$lt_cv_ld_force_load" >&6; }
12026 rhapsody* | darwin1.[012])
12027 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12029 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12030 darwin*) # darwin 5.x on
12031 # if running on 10.5 or later, the deployment target defaults
12032 # to the OS version, if on x86, and 10.4, the deployment
12033 # target defaults to 10.4. Don't you love it?
12034 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12035 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12036 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12038 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12040 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12044 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12045 _lt_dar_single_mod='$single_module'
12047 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12048 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12050 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12052 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12053 _lt_dsymutil='~$DSYMUTIL $lib || :'
12060 for ac_header in dlfcn.h
12062 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12064 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12065 cat >>confdefs.h <<_ACEOF
12066 #define HAVE_DLFCN_H 1
12075 func_stripname_cnf ()
12078 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12079 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12081 } # func_stripname_cnf
12088 # Check whether --enable-static was given.
12089 if test "${enable_static+set}" = set; then :
12090 enableval=$enable_static; p=${PACKAGE-default}
12092 yes) enable_static=yes ;;
12093 no) enable_static=no ;;
12096 # Look at the argument we got. We use all the common list separators.
12097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12098 for pkg in $enableval; do
12100 if test "X$pkg" = "X$p"; then
12117 enable_win32_dll=yes
12120 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12121 if test -n "$ac_tool_prefix"; then
12122 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12123 set dummy ${ac_tool_prefix}as; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if ${ac_cv_prog_AS+:} false; then :
12127 $as_echo_n "(cached) " >&6
12129 if test -n "$AS"; then
12130 ac_cv_prog_AS="$AS" # Let the user override the test.
12132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133 for as_dir in $PATH
12136 test -z "$as_dir" && as_dir=.
12137 for ac_exec_ext in '' $ac_executable_extensions; do
12138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12139 ac_cv_prog_AS="${ac_tool_prefix}as"
12140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 if test -n "$AS"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12152 $as_echo "$AS" >&6; }
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12160 if test -z "$ac_cv_prog_AS"; then
12162 # Extract the first word of "as", so it can be a program name with args.
12163 set dummy as; ac_word=$2
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165 $as_echo_n "checking for $ac_word... " >&6; }
12166 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12167 $as_echo_n "(cached) " >&6
12169 if test -n "$ac_ct_AS"; then
12170 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $PATH
12176 test -z "$as_dir" && as_dir=.
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12179 ac_cv_prog_ac_ct_AS="as"
12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12190 if test -n "$ac_ct_AS"; then
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12192 $as_echo "$ac_ct_AS" >&6; }
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12198 if test "x$ac_ct_AS" = x; then
12201 case $cross_compiling:$ac_tool_warned in
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12205 ac_tool_warned=yes ;;
12210 AS="$ac_cv_prog_AS"
12213 if test -n "$ac_tool_prefix"; then
12214 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12215 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if ${ac_cv_prog_DLLTOOL+:} false; then :
12219 $as_echo_n "(cached) " >&6
12221 if test -n "$DLLTOOL"; then
12222 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
12230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12231 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 DLLTOOL=$ac_cv_prog_DLLTOOL
12242 if test -n "$DLLTOOL"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12244 $as_echo "$DLLTOOL" >&6; }
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12252 if test -z "$ac_cv_prog_DLLTOOL"; then
12253 ac_ct_DLLTOOL=$DLLTOOL
12254 # Extract the first word of "dlltool", so it can be a program name with args.
12255 set dummy dlltool; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12259 $as_echo_n "(cached) " >&6
12261 if test -n "$ac_ct_DLLTOOL"; then
12262 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12268 test -z "$as_dir" && as_dir=.
12269 for ac_exec_ext in '' $ac_executable_extensions; do
12270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12282 if test -n "$ac_ct_DLLTOOL"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12284 $as_echo "$ac_ct_DLLTOOL" >&6; }
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12290 if test "x$ac_ct_DLLTOOL" = x; then
12293 case $cross_compiling:$ac_tool_warned in
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12297 ac_tool_warned=yes ;;
12299 DLLTOOL=$ac_ct_DLLTOOL
12302 DLLTOOL="$ac_cv_prog_DLLTOOL"
12305 if test -n "$ac_tool_prefix"; then
12306 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12307 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if ${ac_cv_prog_OBJDUMP+:} false; then :
12311 $as_echo_n "(cached) " >&6
12313 if test -n "$OBJDUMP"; then
12314 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12323 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 OBJDUMP=$ac_cv_prog_OBJDUMP
12334 if test -n "$OBJDUMP"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12336 $as_echo "$OBJDUMP" >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12344 if test -z "$ac_cv_prog_OBJDUMP"; then
12345 ac_ct_OBJDUMP=$OBJDUMP
12346 # Extract the first word of "objdump", so it can be a program name with args.
12347 set dummy objdump; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12351 $as_echo_n "(cached) " >&6
12353 if test -n "$ac_ct_OBJDUMP"; then
12354 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12374 if test -n "$ac_ct_OBJDUMP"; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12376 $as_echo "$ac_ct_OBJDUMP" >&6; }
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12382 if test "x$ac_ct_OBJDUMP" = x; then
12385 case $cross_compiling:$ac_tool_warned in
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12389 ac_tool_warned=yes ;;
12391 OBJDUMP=$ac_ct_OBJDUMP
12394 OBJDUMP="$ac_cv_prog_OBJDUMP"
12400 test -z "$AS" && AS=as
12406 test -z "$DLLTOOL" && DLLTOOL=dlltool
12412 test -z "$OBJDUMP" && OBJDUMP=objdump
12424 # Check whether --enable-shared was given.
12425 if test "${enable_shared+set}" = set; then :
12426 enableval=$enable_shared; p=${PACKAGE-default}
12428 yes) enable_shared=yes ;;
12429 no) enable_shared=no ;;
12432 # Look at the argument we got. We use all the common list separators.
12433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12434 for pkg in $enableval; do
12436 if test "X$pkg" = "X$p"; then
12457 # Check whether --with-pic was given.
12458 if test "${with_pic+set}" = set; then :
12459 withval=$with_pic; lt_p=${PACKAGE-default}
12461 yes|no) pic_mode=$withval ;;
12464 # Look at the argument we got. We use all the common list separators.
12465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12466 for lt_pkg in $withval; do
12468 if test "X$lt_pkg" = "X$lt_p"; then
12480 test -z "$pic_mode" && pic_mode=default
12488 # Check whether --enable-fast-install was given.
12489 if test "${enable_fast_install+set}" = set; then :
12490 enableval=$enable_fast_install; p=${PACKAGE-default}
12492 yes) enable_fast_install=yes ;;
12493 no) enable_fast_install=no ;;
12495 enable_fast_install=no
12496 # Look at the argument we got. We use all the common list separators.
12497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12498 for pkg in $enableval; do
12500 if test "X$pkg" = "X$p"; then
12501 enable_fast_install=yes
12508 enable_fast_install=yes
12521 # This can be used to rebuild libtool when needed
12522 LIBTOOL_DEPS="$ltmain"
12524 # Always use our own libtool.
12525 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12556 test -z "$LN_S" && LN_S="ln -s"
12571 if test -n "${ZSH_VERSION+set}" ; then
12572 setopt NO_GLOB_SUBST
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12576 $as_echo_n "checking for objdir... " >&6; }
12577 if ${lt_cv_objdir+:} false; then :
12578 $as_echo_n "(cached) " >&6
12580 rm -f .libs 2>/dev/null
12581 mkdir .libs 2>/dev/null
12582 if test -d .libs; then
12585 # MS-DOS does not allow filenames that begin with a dot.
12588 rmdir .libs 2>/dev/null
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12591 $as_echo "$lt_cv_objdir" >&6; }
12592 objdir=$lt_cv_objdir
12598 cat >>confdefs.h <<_ACEOF
12599 #define LT_OBJDIR "$lt_cv_objdir/"
12607 # AIX sometimes has problems with the GCC collect2 program. For some
12608 # reason, if we set the COLLECT_NAMES environment variable, the problems
12609 # vanish in a puff of smoke.
12610 if test "X${COLLECT_NAMES+set}" != Xset; then
12612 export COLLECT_NAMES
12617 # Global variables:
12619 can_build_shared=yes
12621 # All known linkers require a `.a' archive for static linking (except MSVC,
12622 # which needs '.lib').
12625 with_gnu_ld="$lt_cv_prog_gnu_ld"
12628 old_CFLAGS="$CFLAGS"
12630 # Set sane defaults for various variables
12631 test -z "$CC" && CC=cc
12632 test -z "$LTCC" && LTCC=$CC
12633 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12634 test -z "$LD" && LD=ld
12635 test -z "$ac_objext" && ac_objext=o
12637 for cc_temp in $compiler""; do
12639 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12640 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12645 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12648 # Only perform the check for file, if the check method requires it
12649 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12650 case $deplibs_check_method in
12652 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12654 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12655 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12656 $as_echo_n "(cached) " >&6
12660 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12663 lt_save_MAGIC_CMD="$MAGIC_CMD"
12664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12665 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12666 for ac_dir in $ac_dummy; do
12668 test -z "$ac_dir" && ac_dir=.
12669 if test -f $ac_dir/${ac_tool_prefix}file; then
12670 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12671 if test -n "$file_magic_test_file"; then
12672 case $deplibs_check_method in
12674 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12676 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12677 $EGREP "$file_magic_regex" > /dev/null; then
12682 *** Warning: the command libtool uses to detect shared libraries,
12683 *** $file_magic_cmd, produces output that libtool cannot recognize.
12684 *** The result is that libtool may fail to recognize shared libraries
12685 *** as such. This will affect the creation of libtool libraries that
12686 *** depend on shared libraries, but programs linked with such libtool
12687 *** libraries will work regardless of this problem. Nevertheless, you
12688 *** may want to report the problem to your system manager and/or to
12689 *** bug-libtool@gnu.org
12699 MAGIC_CMD="$lt_save_MAGIC_CMD"
12704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12705 if test -n "$MAGIC_CMD"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12707 $as_echo "$MAGIC_CMD" >&6; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12717 if test -z "$lt_cv_path_MAGIC_CMD"; then
12718 if test -n "$ac_tool_prefix"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12720 $as_echo_n "checking for file... " >&6; }
12721 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12722 $as_echo_n "(cached) " >&6
12726 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12729 lt_save_MAGIC_CMD="$MAGIC_CMD"
12730 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12731 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12732 for ac_dir in $ac_dummy; do
12734 test -z "$ac_dir" && ac_dir=.
12735 if test -f $ac_dir/file; then
12736 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12737 if test -n "$file_magic_test_file"; then
12738 case $deplibs_check_method in
12740 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12741 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12742 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12743 $EGREP "$file_magic_regex" > /dev/null; then
12748 *** Warning: the command libtool uses to detect shared libraries,
12749 *** $file_magic_cmd, produces output that libtool cannot recognize.
12750 *** The result is that libtool may fail to recognize shared libraries
12751 *** as such. This will affect the creation of libtool libraries that
12752 *** depend on shared libraries, but programs linked with such libtool
12753 *** libraries will work regardless of this problem. Nevertheless, you
12754 *** may want to report the problem to your system manager and/or to
12755 *** bug-libtool@gnu.org
12765 MAGIC_CMD="$lt_save_MAGIC_CMD"
12770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12771 if test -n "$MAGIC_CMD"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12773 $as_echo "$MAGIC_CMD" >&6; }
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12789 # Use C for the default configuration in the libtool script
12793 ac_cpp='$CPP $CPPFLAGS'
12794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12799 # Source file extension for C test sources.
12802 # Object file extension for compiled C test sources.
12806 # Code to be used in simple compile tests
12807 lt_simple_compile_test_code="int some_variable = 0;"
12809 # Code to be used in simple link tests
12810 lt_simple_link_test_code='int main(){return(0);}'
12818 # If no C compiler was specified, use CC.
12821 # If no C compiler flags were specified, use CFLAGS.
12822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12824 # Allow CC to be a program name with arguments.
12827 # Save the default compiler, since it gets overwritten when the other
12828 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12829 compiler_DEFAULT=$CC
12831 # save warnings/boilerplate of simple test code
12832 ac_outfile=conftest.$ac_objext
12833 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12834 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12835 _lt_compiler_boilerplate=`cat conftest.err`
12838 ac_outfile=conftest.$ac_objext
12839 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12840 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12841 _lt_linker_boilerplate=`cat conftest.err`
12846 ## There is no encapsulation within the following macros, do not change
12847 ## the running order or otherwise move them around unless you know exactly
12848 ## what you are doing...
12849 if test -n "$compiler"; then
12851 lt_prog_compiler_no_builtin_flag=
12853 if test "$GCC" = yes; then
12854 case $cc_basename in
12856 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12858 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12862 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12863 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12864 $as_echo_n "(cached) " >&6
12866 lt_cv_prog_compiler_rtti_exceptions=no
12867 ac_outfile=conftest.$ac_objext
12868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12869 lt_compiler_flag="-fno-rtti -fno-exceptions"
12870 # Insert the option either (1) after the last *FLAGS variable, or
12871 # (2) before a word containing "conftest.", or (3) at the end.
12872 # Note that $ac_compile itself does not contain backslashes and begins
12873 # with a dollar sign (not a hyphen), so the echo should work correctly.
12874 # The option is referenced via a variable to avoid confusing sed.
12875 lt_compile=`echo "$ac_compile" | $SED \
12876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12878 -e 's:$: $lt_compiler_flag:'`
12879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12880 (eval "$lt_compile" 2>conftest.err)
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 if (exit $ac_status) && test -s "$ac_outfile"; then
12885 # The compiler can only warn and ignore the option if not recognized
12886 # So say no if there are warnings other than the usual output.
12887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12889 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12890 lt_cv_prog_compiler_rtti_exceptions=yes
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12897 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12899 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12900 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12912 lt_prog_compiler_wl=
12913 lt_prog_compiler_pic=
12914 lt_prog_compiler_static=
12917 if test "$GCC" = yes; then
12918 lt_prog_compiler_wl='-Wl,'
12919 lt_prog_compiler_static='-static'
12923 # All AIX code is PIC.
12924 if test "$host_cpu" = ia64; then
12925 # AIX 5 now supports IA64 processor
12926 lt_prog_compiler_static='-Bstatic'
12933 # see comment about AmigaOS4 .so support
12934 lt_prog_compiler_pic='-fPIC'
12937 # FIXME: we need at least 68020 code to build shared libraries, but
12938 # adding the `-m68020' flag to GCC prevents building anything better,
12940 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12945 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12946 # PIC is the default for these OSes.
12949 mingw* | cygwin* | pw32* | os2* | cegcc*)
12950 # This hack is so that the source file can tell whether it is being
12951 # built for inclusion in a dll (and should export symbols for example).
12952 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12953 # (--disable-auto-import) libraries
12954 lt_prog_compiler_pic='-DDLL_EXPORT'
12957 darwin* | rhapsody*)
12958 # PIC is the default on this platform
12959 # Common symbols not allowed in MH_DYLIB files
12960 lt_prog_compiler_pic='-fno-common'
12964 # PIC is the default for Haiku.
12965 # The "-static" flag exists, but is broken.
12966 lt_prog_compiler_static=
12970 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12971 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12972 # sets the default TLS model and affects inlining.
12978 lt_prog_compiler_pic='-fPIC'
12984 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12985 # Instead, we relocate shared libraries at runtime.
12989 # Just because we use GCC doesn't mean we suddenly get shared libraries
12990 # on systems that don't support them.
12991 lt_prog_compiler_can_build_shared=no
12996 # QNX uses GNU C++, but need to define -shared option too, otherwise
12997 # it will coredump.
12998 lt_prog_compiler_pic='-fPIC -shared'
13002 if test -d /usr/nec; then
13003 lt_prog_compiler_pic=-Kconform_pic
13008 lt_prog_compiler_pic='-fPIC'
13012 case $cc_basename in
13013 nvcc*) # Cuda Compiler Driver 2.2
13014 lt_prog_compiler_wl='-Xlinker '
13015 if test -n "$lt_prog_compiler_pic"; then
13016 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13021 # PORTME Check for flag to pass linker flags through the system compiler.
13024 lt_prog_compiler_wl='-Wl,'
13025 if test "$host_cpu" = ia64; then
13026 # AIX 5 now supports IA64 processor
13027 lt_prog_compiler_static='-Bstatic'
13029 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13033 mingw* | cygwin* | pw32* | os2* | cegcc*)
13034 # This hack is so that the source file can tell whether it is being
13035 # built for inclusion in a dll (and should export symbols for example).
13036 lt_prog_compiler_pic='-DDLL_EXPORT'
13039 hpux9* | hpux10* | hpux11*)
13040 lt_prog_compiler_wl='-Wl,'
13041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13042 # not for PA HP-UX.
13048 lt_prog_compiler_pic='+Z'
13051 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13052 lt_prog_compiler_static='${wl}-a ${wl}archive'
13055 irix5* | irix6* | nonstopux*)
13056 lt_prog_compiler_wl='-Wl,'
13057 # PIC (with -KPIC) is the default.
13058 lt_prog_compiler_static='-non_shared'
13061 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13062 case $cc_basename in
13063 # old Intel for x86_64 which still supported -KPIC.
13065 lt_prog_compiler_wl='-Wl,'
13066 lt_prog_compiler_pic='-KPIC'
13067 lt_prog_compiler_static='-static'
13069 # icc used to be incompatible with GCC.
13070 # ICC 10 doesn't accept -KPIC any more.
13072 lt_prog_compiler_wl='-Wl,'
13073 lt_prog_compiler_pic='-fPIC'
13074 lt_prog_compiler_static='-static'
13076 # Lahey Fortran 8.1.
13078 lt_prog_compiler_wl='-Wl,'
13079 lt_prog_compiler_pic='--shared'
13080 lt_prog_compiler_static='--static'
13083 # NAG Fortran compiler
13084 lt_prog_compiler_wl='-Wl,-Wl,,'
13085 lt_prog_compiler_pic='-PIC'
13086 lt_prog_compiler_static='-Bstatic'
13088 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13089 # Portland Group compilers (*not* the Pentium gcc compiler,
13090 # which looks to be a dead project)
13091 lt_prog_compiler_wl='-Wl,'
13092 lt_prog_compiler_pic='-fpic'
13093 lt_prog_compiler_static='-Bstatic'
13096 lt_prog_compiler_wl='-Wl,'
13097 # All Alpha code is PIC.
13098 lt_prog_compiler_static='-non_shared'
13100 xl* | bgxl* | bgf* | mpixl*)
13101 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13102 lt_prog_compiler_wl='-Wl,'
13103 lt_prog_compiler_pic='-qpic'
13104 lt_prog_compiler_static='-qstaticlink'
13107 case `$CC -V 2>&1 | sed 5q` in
13108 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13109 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13110 lt_prog_compiler_pic='-KPIC'
13111 lt_prog_compiler_static='-Bstatic'
13112 lt_prog_compiler_wl=''
13114 *Sun\ F* | *Sun*Fortran*)
13115 lt_prog_compiler_pic='-KPIC'
13116 lt_prog_compiler_static='-Bstatic'
13117 lt_prog_compiler_wl='-Qoption ld '
13121 lt_prog_compiler_pic='-KPIC'
13122 lt_prog_compiler_static='-Bstatic'
13123 lt_prog_compiler_wl='-Wl,'
13125 *Intel*\ [CF]*Compiler*)
13126 lt_prog_compiler_wl='-Wl,'
13127 lt_prog_compiler_pic='-fPIC'
13128 lt_prog_compiler_static='-static'
13131 lt_prog_compiler_wl='-Wl,'
13132 lt_prog_compiler_pic='-fpic'
13133 lt_prog_compiler_static='-Bstatic'
13141 lt_prog_compiler_pic='-KPIC'
13142 lt_prog_compiler_static='-Bstatic'
13146 # QNX uses GNU C++, but need to define -shared option too, otherwise
13147 # it will coredump.
13148 lt_prog_compiler_pic='-fPIC -shared'
13151 osf3* | osf4* | osf5*)
13152 lt_prog_compiler_wl='-Wl,'
13153 # All OSF/1 code is PIC.
13154 lt_prog_compiler_static='-non_shared'
13158 lt_prog_compiler_static='-non_shared'
13162 lt_prog_compiler_pic='-KPIC'
13163 lt_prog_compiler_static='-Bstatic'
13164 case $cc_basename in
13165 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13166 lt_prog_compiler_wl='-Qoption ld ';;
13168 lt_prog_compiler_wl='-Wl,';;
13173 lt_prog_compiler_wl='-Qoption ld '
13174 lt_prog_compiler_pic='-PIC'
13175 lt_prog_compiler_static='-Bstatic'
13178 sysv4 | sysv4.2uw2* | sysv4.3*)
13179 lt_prog_compiler_wl='-Wl,'
13180 lt_prog_compiler_pic='-KPIC'
13181 lt_prog_compiler_static='-Bstatic'
13185 if test -d /usr/nec ;then
13186 lt_prog_compiler_pic='-Kconform_pic'
13187 lt_prog_compiler_static='-Bstatic'
13191 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13192 lt_prog_compiler_wl='-Wl,'
13193 lt_prog_compiler_pic='-KPIC'
13194 lt_prog_compiler_static='-Bstatic'
13198 lt_prog_compiler_wl='-Wl,'
13199 lt_prog_compiler_can_build_shared=no
13203 lt_prog_compiler_pic='-pic'
13204 lt_prog_compiler_static='-Bstatic'
13208 lt_prog_compiler_can_build_shared=no
13214 # For platforms which do not support PIC, -DPIC is meaningless:
13216 lt_prog_compiler_pic=
13219 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13224 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13225 if ${lt_cv_prog_compiler_pic+:} false; then :
13226 $as_echo_n "(cached) " >&6
13228 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13231 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13232 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13235 # Check to make sure the PIC flag actually works.
13237 if test -n "$lt_prog_compiler_pic"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13239 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13240 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13241 $as_echo_n "(cached) " >&6
13243 lt_cv_prog_compiler_pic_works=no
13244 ac_outfile=conftest.$ac_objext
13245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13246 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13247 # Insert the option either (1) after the last *FLAGS variable, or
13248 # (2) before a word containing "conftest.", or (3) at the end.
13249 # Note that $ac_compile itself does not contain backslashes and begins
13250 # with a dollar sign (not a hyphen), so the echo should work correctly.
13251 # The option is referenced via a variable to avoid confusing sed.
13252 lt_compile=`echo "$ac_compile" | $SED \
13253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13255 -e 's:$: $lt_compiler_flag:'`
13256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13257 (eval "$lt_compile" 2>conftest.err)
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 if (exit $ac_status) && test -s "$ac_outfile"; then
13262 # The compiler can only warn and ignore the option if not recognized
13263 # So say no if there are warnings other than the usual output.
13264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13267 lt_cv_prog_compiler_pic_works=yes
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13274 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13276 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13277 case $lt_prog_compiler_pic in
13279 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13282 lt_prog_compiler_pic=
13283 lt_prog_compiler_can_build_shared=no
13299 # Check to make sure the static flag actually works.
13301 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13303 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13304 if ${lt_cv_prog_compiler_static_works+:} false; then :
13305 $as_echo_n "(cached) " >&6
13307 lt_cv_prog_compiler_static_works=no
13308 save_LDFLAGS="$LDFLAGS"
13309 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13310 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13311 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13312 # The linker can only warn and ignore the option if not recognized
13313 # So say no if there are warnings
13314 if test -s conftest.err; then
13315 # Append any errors to the config.log.
13316 cat conftest.err 1>&5
13317 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13319 if diff conftest.exp conftest.er2 >/dev/null; then
13320 lt_cv_prog_compiler_static_works=yes
13323 lt_cv_prog_compiler_static_works=yes
13327 LDFLAGS="$save_LDFLAGS"
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13331 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13333 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13336 lt_prog_compiler_static=
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13346 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13347 if ${lt_cv_prog_compiler_c_o+:} false; then :
13348 $as_echo_n "(cached) " >&6
13350 lt_cv_prog_compiler_c_o=no
13351 $RM -r conftest 2>/dev/null
13355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13357 lt_compiler_flag="-o out/conftest2.$ac_objext"
13358 # Insert the option either (1) after the last *FLAGS variable, or
13359 # (2) before a word containing "conftest.", or (3) at the end.
13360 # Note that $ac_compile itself does not contain backslashes and begins
13361 # with a dollar sign (not a hyphen), so the echo should work correctly.
13362 lt_compile=`echo "$ac_compile" | $SED \
13363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13365 -e 's:$: $lt_compiler_flag:'`
13366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13367 (eval "$lt_compile" 2>out/conftest.err)
13369 cat out/conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13373 # The compiler can only warn and ignore the option if not recognized
13374 # So say no if there are warnings
13375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13376 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13377 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13378 lt_cv_prog_compiler_c_o=yes
13383 # SGI C++ compiler will create directory out/ii_files/ for
13384 # template instantiation
13385 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13386 $RM out/* && rmdir out
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13393 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13401 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13402 if ${lt_cv_prog_compiler_c_o+:} false; then :
13403 $as_echo_n "(cached) " >&6
13405 lt_cv_prog_compiler_c_o=no
13406 $RM -r conftest 2>/dev/null
13410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13412 lt_compiler_flag="-o out/conftest2.$ac_objext"
13413 # Insert the option either (1) after the last *FLAGS variable, or
13414 # (2) before a word containing "conftest.", or (3) at the end.
13415 # Note that $ac_compile itself does not contain backslashes and begins
13416 # with a dollar sign (not a hyphen), so the echo should work correctly.
13417 lt_compile=`echo "$ac_compile" | $SED \
13418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13420 -e 's:$: $lt_compiler_flag:'`
13421 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13422 (eval "$lt_compile" 2>out/conftest.err)
13424 cat out/conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13428 # The compiler can only warn and ignore the option if not recognized
13429 # So say no if there are warnings
13430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13433 lt_cv_prog_compiler_c_o=yes
13438 # SGI C++ compiler will create directory out/ii_files/ for
13439 # template instantiation
13440 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13441 $RM out/* && rmdir out
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13448 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13453 hard_links="nottested"
13454 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13455 # do not overwrite the value of need_locks provided by the user
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13457 $as_echo_n "checking if we can lock with hard links... " >&6; }
13460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13462 ln conftest.a conftest.b 2>&5 || hard_links=no
13463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13465 $as_echo "$hard_links" >&6; }
13466 if test "$hard_links" = no; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13468 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13484 allow_undefined_flag=
13485 always_export_symbols=no
13487 archive_expsym_cmds=
13488 compiler_needs_object=no
13489 enable_shared_with_static_runtimes=no
13490 export_dynamic_flag_spec=
13491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13492 hardcode_automatic=no
13494 hardcode_direct_absolute=no
13495 hardcode_libdir_flag_spec=
13496 hardcode_libdir_separator=
13497 hardcode_minus_L=no
13498 hardcode_shlibpath_var=unsupported
13500 link_all_deplibs=unknown
13502 module_expsym_cmds=
13503 old_archive_from_new_cmds=
13504 old_archive_from_expsyms_cmds=
13505 thread_safe_flag_spec=
13506 whole_archive_flag_spec=
13507 # include_expsyms should be a list of space-separated symbols to be *always*
13508 # included in the symbol list
13510 # exclude_expsyms can be an extended regexp of symbols to exclude
13511 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13512 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13513 # as well as any symbol that contains `d'.
13514 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13515 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13516 # platforms (ab)use it in PIC code, but their linkers get confused if
13517 # the symbol is explicitly referenced. Since portable code cannot
13518 # rely on this symbol name, it's probably fine to never include it in
13519 # preloaded symbol tables.
13520 # Exclude shared library initialization/finalization symbols.
13521 extract_expsyms_cmds=
13524 cygwin* | mingw* | pw32* | cegcc*)
13525 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13526 # When not using gcc, we currently assume that we are using
13527 # Microsoft Visual C++.
13528 if test "$GCC" != yes; then
13533 # we just hope/assume this is gcc and not c89 (= MSVC++)
13543 # On some targets, GNU ld is compatible enough with the native linker
13544 # that we're better off using the native interface for both.
13545 lt_use_gnu_ld_interface=no
13546 if test "$with_gnu_ld" = yes; then
13549 # The AIX port of GNU ld has always aspired to compatibility
13550 # with the native linker. However, as the warning in the GNU ld
13551 # block says, versions before 2.19.5* couldn't really create working
13552 # shared libraries, regardless of the interface used.
13553 case `$LD -v 2>&1` in
13554 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13555 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13556 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13558 lt_use_gnu_ld_interface=yes
13563 lt_use_gnu_ld_interface=yes
13568 if test "$lt_use_gnu_ld_interface" = yes; then
13569 # If archive_cmds runs LD, not CC, wlarc should be empty
13572 # Set some defaults for GNU ld with shared library support. These
13573 # are reset later if shared libraries are not supported. Putting them
13574 # here allows them to be overridden if necessary.
13575 runpath_var=LD_RUN_PATH
13576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13577 export_dynamic_flag_spec='${wl}--export-dynamic'
13578 # ancient GNU ld didn't support --whole-archive et. al.
13579 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13580 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13582 whole_archive_flag_spec=
13584 supports_anon_versioning=no
13585 case `$LD -v 2>&1` in
13586 *GNU\ gold*) supports_anon_versioning=yes ;;
13587 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13588 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13589 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13590 *\ 2.11.*) ;; # other 2.11 versions
13591 *) supports_anon_versioning=yes ;;
13594 # See if GNU ld supports shared libraries.
13597 # On AIX/PPC, the GNU linker is very broken
13598 if test "$host_cpu" != ia64; then
13602 *** Warning: the GNU linker, at least up to release 2.19, is reported
13603 *** to be unable to reliably create shared libraries on AIX.
13604 *** Therefore, libtool is disabling shared libraries support. If you
13605 *** really care for shared libraries, you may want to install binutils
13606 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13607 *** You will then need to restart the configuration process.
13616 # see comment about AmigaOS4 .so support
13617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618 archive_expsym_cmds=''
13621 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)'
13622 hardcode_libdir_flag_spec='-L$libdir'
13623 hardcode_minus_L=yes
13629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13630 allow_undefined_flag=unsupported
13631 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13632 # support --undefined. This deserves some investigation. FIXME
13633 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639 cygwin* | mingw* | pw32* | cegcc*)
13640 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13641 # as there is no search path for DLLs.
13642 hardcode_libdir_flag_spec='-L$libdir'
13643 export_dynamic_flag_spec='${wl}--export-all-symbols'
13644 allow_undefined_flag=unsupported
13645 always_export_symbols=no
13646 enable_shared_with_static_runtimes=yes
13647 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'
13648 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13650 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13652 # If the export-symbols file already is a .def file (1st line
13653 # is EXPORTS), use it as is; otherwise, prepend...
13654 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13655 cp $export_symbols $output_objdir/$soname.def;
13657 echo EXPORTS > $output_objdir/$soname.def;
13658 cat $export_symbols >> $output_objdir/$soname.def;
13660 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13668 link_all_deplibs=yes
13673 hardcode_shlibpath_var=no
13674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13675 export_dynamic_flag_spec='${wl}-E'
13676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13677 # Instead, shared libraries are loaded at an image base (0x10000000 by
13678 # default) and relocated if they conflict, which is a slow very memory
13679 # consuming and fragmenting process. To avoid this, we pick a random,
13680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13683 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'
13686 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13688 if test "$host_os" = linux-dietlibc; then
13689 case $cc_basename in
13690 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13693 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13694 && test "$tmp_diet" = no
13696 tmp_addflag=' $pic_flag'
13697 tmp_sharedflag='-shared'
13698 case $cc_basename,$host_cpu in
13699 pgcc*) # Portland Group C compiler
13700 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'
13701 tmp_addflag=' $pic_flag'
13703 pgf77* | pgf90* | pgf95* | pgfortran*)
13704 # Portland Group f77 and f90 compilers
13705 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'
13706 tmp_addflag=' $pic_flag -Mnomain' ;;
13707 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13708 tmp_addflag=' -i_dynamic' ;;
13709 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13710 tmp_addflag=' -i_dynamic -nofor_main' ;;
13711 ifc* | ifort*) # Intel Fortran compiler
13712 tmp_addflag=' -nofor_main' ;;
13713 lf95*) # Lahey Fortran 8.1
13714 whole_archive_flag_spec=
13715 tmp_sharedflag='--shared' ;;
13716 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13717 tmp_sharedflag='-qmkshrobj'
13719 nvcc*) # Cuda Compiler Driver 2.2
13720 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'
13721 compiler_needs_object=yes
13724 case `$CC -V 2>&1 | sed 5q` in
13725 *Sun\ C*) # Sun C 5.9
13726 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'
13727 compiler_needs_object=yes
13728 tmp_sharedflag='-G' ;;
13729 *Sun\ F*) # Sun Fortran 8.3
13730 tmp_sharedflag='-G' ;;
13732 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13734 if test "x$supports_anon_versioning" = xyes; then
13735 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13737 echo "local: *; };" >> $output_objdir/$libname.ver~
13738 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13741 case $cc_basename in
13742 xlf* | bgf* | bgxlf* | mpixlf*)
13743 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13744 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13746 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13747 if test "x$supports_anon_versioning" = xyes; then
13748 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13749 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13750 echo "local: *; };" >> $output_objdir/$libname.ver~
13751 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13762 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13766 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13771 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13775 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13776 *** create shared libraries on Solaris systems. Therefore, libtool
13777 *** is disabling shared libraries support. We urge you to upgrade GNU
13778 *** binutils to release 2.9.1 or newer. Another option is to modify
13779 *** your PATH or compiler configuration so that the native linker is
13780 *** used, and then restart.
13783 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13784 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13792 case `$LD -v 2>&1` in
13793 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13797 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13798 *** reliably create shared libraries on SCO systems. Therefore, libtool
13799 *** is disabling shared libraries support. We urge you to upgrade GNU
13800 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13801 *** your PATH or compiler configuration so that the native linker is
13802 *** used, and then restart.
13807 # For security reasons, it is highly recommended that you always
13808 # use absolute paths for naming shared libraries, and exclude the
13809 # DT_RUNPATH tag from executables and libraries. But doing so
13810 # requires that you compile everything twice, which is a pain.
13811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13823 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13825 hardcode_direct=yes
13826 hardcode_shlibpath_var=no
13830 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13832 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13839 if test "$ld_shlibs" = no; then
13841 hardcode_libdir_flag_spec=
13842 export_dynamic_flag_spec=
13843 whole_archive_flag_spec=
13846 # PORTME fill in a description of your system's linker (not GNU ld)
13849 allow_undefined_flag=unsupported
13850 always_export_symbols=yes
13851 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'
13852 # Note: this linker hardcodes the directories in LIBPATH if there
13853 # are no directories specified by -L.
13854 hardcode_minus_L=yes
13855 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13856 # Neither direct hardcoding nor static linking is supported with a
13858 hardcode_direct=unsupported
13863 if test "$host_cpu" = ia64; then
13864 # On IA64, the linker does run time linking by default, so we don't
13865 # have to do anything special.
13866 aix_use_runtimelinking=no
13867 exp_sym_flag='-Bexport'
13870 # If we're using GNU nm, then we don't want the "-C" option.
13871 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13872 # Also, AIX nm treats weak defined symbols like other global
13873 # defined symbols, whereas GNU nm marks them as "W".
13874 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13875 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'
13877 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'
13879 aix_use_runtimelinking=no
13881 # Test if we are trying to use run time linking or normal
13882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13883 # need to do runtime linking.
13884 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13885 for ld_flag in $LDFLAGS; do
13886 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13887 aix_use_runtimelinking=yes
13894 exp_sym_flag='-bexport'
13895 no_entry_flag='-bnoentry'
13898 # When large executables or shared objects are built, AIX ld can
13899 # have problems creating the table of contents. If linking a library
13900 # or program results in "error TOC overflow" add -mminimal-toc to
13901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13905 hardcode_direct=yes
13906 hardcode_direct_absolute=yes
13907 hardcode_libdir_separator=':'
13908 link_all_deplibs=yes
13909 file_list_spec='${wl}-f,'
13911 if test "$GCC" = yes; then
13912 case $host_os in aix4.[012]|aix4.[012].*)
13913 # We only want to do this on AIX 4.2 and lower, the check
13914 # below for broken collect2 doesn't work under 4.3+
13915 collect2name=`${CC} -print-prog-name=collect2`
13916 if test -f "$collect2name" &&
13917 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13919 # We have reworked collect2
13922 # We have old collect2
13923 hardcode_direct=unsupported
13924 # It fails to find uninstalled libraries when the uninstalled
13925 # path is not listed in the libpath. Setting hardcode_minus_L
13926 # to unsupported forces relinking
13927 hardcode_minus_L=yes
13928 hardcode_libdir_flag_spec='-L$libdir'
13929 hardcode_libdir_separator=
13933 shared_flag='-shared'
13934 if test "$aix_use_runtimelinking" = yes; then
13935 shared_flag="$shared_flag "'${wl}-G'
13939 if test "$host_cpu" = ia64; then
13940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13941 # chokes on -Wl,-G. The following line is correct:
13944 if test "$aix_use_runtimelinking" = yes; then
13945 shared_flag='${wl}-G'
13947 shared_flag='${wl}-bM:SRE'
13952 export_dynamic_flag_spec='${wl}-bexpall'
13953 # It seems that -bexpall does not export symbols beginning with
13954 # underscore (_), so it is better to generate a list of symbols to export.
13955 always_export_symbols=yes
13956 if test "$aix_use_runtimelinking" = yes; then
13957 # Warning - without using the other runtime loading flags (-brtl),
13958 # -berok will link without error, but may produce a broken library.
13959 allow_undefined_flag='-berok'
13960 # Determine the default libpath from the value encoded in an
13961 # empty executable.
13962 if test "${lt_cv_aix_libpath+set}" = set; then
13963 aix_libpath=$lt_cv_aix_libpath
13965 if ${lt_cv_aix_libpath_+:} false; then :
13966 $as_echo_n "(cached) " >&6
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13979 if ac_fn_c_try_link "$LINENO"; then :
13981 lt_aix_libpath_sed='
13982 /Import File Strings/,/^$/ {
13984 s/^0 *\([^ ]*\) *$/\1/
13988 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13989 # Check for a 64-bit object if we didn't find anything.
13990 if test -z "$lt_cv_aix_libpath_"; then
13991 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13994 rm -f core conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13996 if test -z "$lt_cv_aix_libpath_"; then
13997 lt_cv_aix_libpath_="/usr/lib:/lib"
14002 aix_libpath=$lt_cv_aix_libpath_
14005 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14006 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"
14008 if test "$host_cpu" = ia64; then
14009 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14010 allow_undefined_flag="-z nodefs"
14011 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"
14013 # Determine the default libpath from the value encoded in an
14014 # empty executable.
14015 if test "${lt_cv_aix_libpath+set}" = set; then
14016 aix_libpath=$lt_cv_aix_libpath
14018 if ${lt_cv_aix_libpath_+:} false; then :
14019 $as_echo_n "(cached) " >&6
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14032 if ac_fn_c_try_link "$LINENO"; then :
14034 lt_aix_libpath_sed='
14035 /Import File Strings/,/^$/ {
14037 s/^0 *\([^ ]*\) *$/\1/
14041 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14042 # Check for a 64-bit object if we didn't find anything.
14043 if test -z "$lt_cv_aix_libpath_"; then
14044 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049 if test -z "$lt_cv_aix_libpath_"; then
14050 lt_cv_aix_libpath_="/usr/lib:/lib"
14055 aix_libpath=$lt_cv_aix_libpath_
14058 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14059 # Warning - without using the other run time loading flags,
14060 # -berok will link without error, but may produce a broken library.
14061 no_undefined_flag=' ${wl}-bernotok'
14062 allow_undefined_flag=' ${wl}-berok'
14063 if test "$with_gnu_ld" = yes; then
14064 # We only use this code for GNU lds that support --whole-archive.
14065 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14067 # Exported symbols can be pulled into shared objects from archives
14068 whole_archive_flag_spec='$convenience'
14070 archive_cmds_need_lc=yes
14071 # This is similar to how AIX traditionally builds its shared libraries.
14072 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'
14080 # see comment about AmigaOS4 .so support
14081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14082 archive_expsym_cmds=''
14085 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)'
14086 hardcode_libdir_flag_spec='-L$libdir'
14087 hardcode_minus_L=yes
14093 export_dynamic_flag_spec=-rdynamic
14096 cygwin* | mingw* | pw32* | cegcc*)
14097 # When not using gcc, we currently assume that we are using
14098 # Microsoft Visual C++.
14099 # hardcode_libdir_flag_spec is actually meaningless, as there is
14100 # no search path for DLLs.
14101 case $cc_basename in
14104 hardcode_libdir_flag_spec=' '
14105 allow_undefined_flag=unsupported
14106 always_export_symbols=yes
14108 # Tell ltmain to make .lib files, not .a files.
14110 # Tell ltmain to make .dll files, not .so files.
14112 # FIXME: Setting linknames here is a bad hack.
14113 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14114 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14115 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14117 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14119 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14121 # The linker will not automatically build a static lib if we build a DLL.
14122 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14123 enable_shared_with_static_runtimes=yes
14124 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14127 old_postinstall_cmds='chmod 644 $oldlib'
14128 postlink_cmds='lt_outputfile="@OUTPUT@"~
14129 lt_tool_outputfile="@TOOL_OUTPUT@"~
14130 case $lt_outputfile in
14133 lt_outputfile="$lt_outputfile.exe"
14134 lt_tool_outputfile="$lt_tool_outputfile.exe"
14137 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14138 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14139 $RM "$lt_outputfile.manifest";
14143 # Assume MSVC wrapper
14144 hardcode_libdir_flag_spec=' '
14145 allow_undefined_flag=unsupported
14146 # Tell ltmain to make .lib files, not .a files.
14148 # Tell ltmain to make .dll files, not .so files.
14150 # FIXME: Setting linknames here is a bad hack.
14151 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14152 # The linker will automatically build a .lib file if we build a DLL.
14153 old_archive_from_new_cmds='true'
14154 # FIXME: Should let the user specify the lib program.
14155 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14156 enable_shared_with_static_runtimes=yes
14161 darwin* | rhapsody*)
14164 archive_cmds_need_lc=no
14166 hardcode_automatic=yes
14167 hardcode_shlibpath_var=unsupported
14168 if test "$lt_cv_ld_force_load" = "yes"; then
14169 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\"`'
14172 whole_archive_flag_spec=''
14174 link_all_deplibs=yes
14175 allow_undefined_flag="$_lt_dar_allow_undefined"
14176 case $cc_basename in
14177 ifort*) _lt_dar_can_shared=yes ;;
14178 *) _lt_dar_can_shared=$GCC ;;
14180 if test "$_lt_dar_can_shared" = "yes"; then
14181 output_verbose_link_cmd=func_echo_all
14182 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14183 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14184 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}"
14185 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}"
14194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14195 hardcode_libdir_flag_spec='-L$libdir'
14196 hardcode_shlibpath_var=no
14199 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14200 # support. Future versions do this automatically, but an explicit c++rt0.o
14201 # does not break anything, and helps significantly (at the cost of a little
14204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14205 hardcode_libdir_flag_spec='-R$libdir'
14206 hardcode_direct=yes
14207 hardcode_shlibpath_var=no
14210 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14213 hardcode_direct=yes
14214 hardcode_minus_L=yes
14215 hardcode_shlibpath_var=no
14218 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14219 freebsd* | dragonfly*)
14220 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14221 hardcode_libdir_flag_spec='-R$libdir'
14222 hardcode_direct=yes
14223 hardcode_shlibpath_var=no
14227 if test "$GCC" = yes; then
14228 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'
14230 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'
14232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14233 hardcode_libdir_separator=:
14234 hardcode_direct=yes
14236 # hardcode_minus_L: Not really in the search PATH,
14237 # but as the default location of the library.
14238 hardcode_minus_L=yes
14239 export_dynamic_flag_spec='${wl}-E'
14243 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14244 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14246 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14248 if test "$with_gnu_ld" = no; then
14249 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14250 hardcode_libdir_separator=:
14251 hardcode_direct=yes
14252 hardcode_direct_absolute=yes
14253 export_dynamic_flag_spec='${wl}-E'
14254 # hardcode_minus_L: Not really in the search PATH,
14255 # but as the default location of the library.
14256 hardcode_minus_L=yes
14261 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14264 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14267 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14270 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14276 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14283 # Older versions of the 11.00 compiler do not understand -b yet
14284 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14286 $as_echo_n "checking if $CC understands -b... " >&6; }
14287 if ${lt_cv_prog_compiler__b+:} false; then :
14288 $as_echo_n "(cached) " >&6
14290 lt_cv_prog_compiler__b=no
14291 save_LDFLAGS="$LDFLAGS"
14292 LDFLAGS="$LDFLAGS -b"
14293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14295 # The linker can only warn and ignore the option if not recognized
14296 # So say no if there are warnings
14297 if test -s conftest.err; then
14298 # Append any errors to the config.log.
14299 cat conftest.err 1>&5
14300 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14302 if diff conftest.exp conftest.er2 >/dev/null; then
14303 lt_cv_prog_compiler__b=yes
14306 lt_cv_prog_compiler__b=yes
14310 LDFLAGS="$save_LDFLAGS"
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14314 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14316 if test x"$lt_cv_prog_compiler__b" = xyes; then
14317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14319 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14325 if test "$with_gnu_ld" = no; then
14326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14327 hardcode_libdir_separator=:
14332 hardcode_shlibpath_var=no
14335 hardcode_direct=yes
14336 hardcode_direct_absolute=yes
14337 export_dynamic_flag_spec='${wl}-E'
14339 # hardcode_minus_L: Not really in the search PATH,
14340 # but as the default location of the library.
14341 hardcode_minus_L=yes
14347 irix5* | irix6* | nonstopux*)
14348 if test "$GCC" = yes; then
14349 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'
14350 # Try to use the -exported_symbol ld option, if it does not
14351 # work, assume that -exports_file does not work either and
14352 # implicitly export all symbols.
14353 # This should be the same for all languages, so no per-tag cache variable.
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14355 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14356 if ${lt_cv_irix_exported_symbol+:} false; then :
14357 $as_echo_n "(cached) " >&6
14359 save_LDFLAGS="$LDFLAGS"
14360 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 int foo (void) { return 0; }
14365 if ac_fn_c_try_link "$LINENO"; then :
14366 lt_cv_irix_exported_symbol=yes
14368 lt_cv_irix_exported_symbol=no
14370 rm -f core conftest.err conftest.$ac_objext \
14371 conftest$ac_exeext conftest.$ac_ext
14372 LDFLAGS="$save_LDFLAGS"
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14375 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14376 if test "$lt_cv_irix_exported_symbol" = yes; then
14377 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'
14380 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'
14381 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'
14383 archive_cmds_need_lc='no'
14384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14385 hardcode_libdir_separator=:
14387 link_all_deplibs=yes
14391 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14394 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14396 hardcode_libdir_flag_spec='-R$libdir'
14397 hardcode_direct=yes
14398 hardcode_shlibpath_var=no
14402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14403 hardcode_direct=yes
14404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14405 hardcode_libdir_separator=:
14406 hardcode_shlibpath_var=no
14413 if test -f /usr/libexec/ld.so; then
14414 hardcode_direct=yes
14415 hardcode_shlibpath_var=no
14416 hardcode_direct_absolute=yes
14417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14419 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14420 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14421 export_dynamic_flag_spec='${wl}-E'
14424 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14426 hardcode_libdir_flag_spec='-R$libdir'
14429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14440 hardcode_libdir_flag_spec='-L$libdir'
14441 hardcode_minus_L=yes
14442 allow_undefined_flag=unsupported
14443 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'
14444 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14448 if test "$GCC" = yes; then
14449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14450 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'
14452 allow_undefined_flag=' -expect_unresolved \*'
14453 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'
14455 archive_cmds_need_lc='no'
14456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14457 hardcode_libdir_separator=:
14460 osf4* | osf5*) # as osf3* with the addition of -msym flag
14461 if test "$GCC" = yes; then
14462 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14463 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'
14464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14466 allow_undefined_flag=' -expect_unresolved \*'
14467 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'
14468 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~
14469 $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'
14471 # Both c and cxx compiler support -rpath directly
14472 hardcode_libdir_flag_spec='-rpath $libdir'
14474 archive_cmds_need_lc='no'
14475 hardcode_libdir_separator=:
14479 no_undefined_flag=' -z defs'
14480 if test "$GCC" = yes; then
14482 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14484 $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'
14486 case `$CC -V 2>&1` in
14489 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14491 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14495 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14496 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14497 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14501 hardcode_libdir_flag_spec='-R$libdir'
14502 hardcode_shlibpath_var=no
14504 solaris2.[0-5] | solaris2.[0-5].*) ;;
14506 # The compiler driver will combine and reorder linker options,
14507 # but understands `-z linker_flag'. GCC discards it without `$wl',
14508 # but is careful enough not to reorder.
14509 # Supported since Solaris 2.6 (maybe 2.5.1?)
14510 if test "$GCC" = yes; then
14511 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14513 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14517 link_all_deplibs=yes
14521 if test "x$host_vendor" = xsequent; then
14522 # Use $CC to link under sequent, because it throws in some extra .o
14523 # files that make .init and .fini sections work.
14524 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14526 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14528 hardcode_libdir_flag_spec='-L$libdir'
14529 hardcode_direct=yes
14530 hardcode_minus_L=yes
14531 hardcode_shlibpath_var=no
14535 case $host_vendor in
14537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14538 hardcode_direct=yes # is this really true???
14541 ## LD is ld it makes a PLAMLIB
14542 ## CC just makes a GrossModule.
14543 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14544 reload_cmds='$CC -r -o $output$reload_objs'
14548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14552 runpath_var='LD_RUN_PATH'
14553 hardcode_shlibpath_var=no
14557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14558 hardcode_shlibpath_var=no
14559 export_dynamic_flag_spec='-Bexport'
14563 if test -d /usr/nec; then
14564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14565 hardcode_shlibpath_var=no
14566 runpath_var=LD_RUN_PATH
14567 hardcode_runpath_var=yes
14572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14573 no_undefined_flag='${wl}-z,text'
14574 archive_cmds_need_lc=no
14575 hardcode_shlibpath_var=no
14576 runpath_var='LD_RUN_PATH'
14578 if test "$GCC" = yes; then
14579 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14582 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14583 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14587 sysv5* | sco3.2v5* | sco5v6*)
14588 # Note: We can NOT use -z defs as we might desire, because we do not
14589 # link with -lc, and that would cause any symbols used from libc to
14590 # always be unresolved, which means just about no library would
14591 # ever link correctly. If we're not using GNU ld we use -z text
14592 # though, which does catch some bad symbols but isn't as heavy-handed
14594 no_undefined_flag='${wl}-z,text'
14595 allow_undefined_flag='${wl}-z,nodefs'
14596 archive_cmds_need_lc=no
14597 hardcode_shlibpath_var=no
14598 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14599 hardcode_libdir_separator=':'
14600 link_all_deplibs=yes
14601 export_dynamic_flag_spec='${wl}-Bexport'
14602 runpath_var='LD_RUN_PATH'
14604 if test "$GCC" = yes; then
14605 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14606 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14608 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14609 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14615 hardcode_libdir_flag_spec='-L$libdir'
14616 hardcode_shlibpath_var=no
14624 if test x$host_vendor = xsni; then
14626 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14627 export_dynamic_flag_spec='${wl}-Blargedynsym'
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14634 $as_echo "$ld_shlibs" >&6; }
14635 test "$ld_shlibs" = no && can_build_shared=no
14637 with_gnu_ld=$with_gnu_ld
14654 # Do we need to explicitly link libc?
14656 case "x$archive_cmds_need_lc" in
14658 # Assume -lc should be added
14659 archive_cmds_need_lc=yes
14661 if test "$enable_shared" = yes && test "$GCC" = yes; then
14662 case $archive_cmds in
14664 # FIXME: we may have to deal with multi-command sequences.
14667 # Test whether the compiler implicitly links with -lc since on some
14668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14669 # to ld, don't add -lc before -lgcc.
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14671 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14672 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14673 $as_echo_n "(cached) " >&6
14676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14679 (eval $ac_compile) 2>&5
14681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14682 test $ac_status = 0; } 2>conftest.err; then
14685 libobjs=conftest.$ac_objext
14687 wl=$lt_prog_compiler_wl
14688 pic_flag=$lt_prog_compiler_pic
14694 lt_save_allow_undefined_flag=$allow_undefined_flag
14695 allow_undefined_flag=
14696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14697 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14700 test $ac_status = 0; }
14702 lt_cv_archive_cmds_need_lc=no
14704 lt_cv_archive_cmds_need_lc=yes
14706 allow_undefined_flag=$lt_save_allow_undefined_flag
14708 cat conftest.err 1>&5
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14714 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14715 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14874 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14876 if test "$GCC" = yes; then
14878 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14879 *) lt_awk_arg="/^libraries:/" ;;
14882 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14883 *) lt_sed_strip_eq="s,=/,/,g" ;;
14885 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14886 case $lt_search_path_spec in
14888 # if the path contains ";" then we assume it to be the separator
14889 # otherwise default to the standard path separator (i.e. ":") - it is
14890 # assumed that no part of a normal pathname contains ";" but that should
14891 # okay in the real world where ";" in dirpaths is itself problematic.
14892 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14895 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14898 # Ok, now we have the path, separated by spaces, we can step through it
14899 # and add multilib dir if necessary.
14900 lt_tmp_lt_search_path_spec=
14901 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14902 for lt_sys_path in $lt_search_path_spec; do
14903 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14904 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14906 test -d "$lt_sys_path" && \
14907 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14910 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14911 BEGIN {RS=" "; FS="/|\n";} {
14914 for (lt_i = NF; lt_i > 0; lt_i--) {
14915 if ($lt_i != "" && $lt_i != ".") {
14916 if ($lt_i == "..") {
14919 if (lt_count == 0) {
14920 lt_foo="/" $lt_i lt_foo;
14927 if (lt_foo != "") { lt_freq[lt_foo]++; }
14928 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14930 # AWK program above erroneously prepends '/' to C:/dos/paths
14933 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14934 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14936 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14938 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14940 library_names_spec=
14941 libname_spec='lib$name'
14945 postuninstall_cmds=
14949 shlibpath_overrides_runpath=unknown
14951 dynamic_linker="$host_os ld.so"
14952 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14953 need_lib_prefix=unknown
14954 hardcode_into_libs=no
14956 # when you set need_version to no, make sure it does not cause -set_version
14957 # flags to be left without arguments
14958 need_version=unknown
14962 version_type=linux # correct to gnu/linux during the next big refactor
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14964 shlibpath_var=LIBPATH
14966 # AIX 3 has no versioning support, so we append a major version to the name.
14967 soname_spec='${libname}${release}${shared_ext}$major'
14971 version_type=linux # correct to gnu/linux during the next big refactor
14974 hardcode_into_libs=yes
14975 if test "$host_cpu" = ia64; then
14976 # AIX 5 supports IA64
14977 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14978 shlibpath_var=LD_LIBRARY_PATH
14980 # With GCC up to 2.95.x, collect2 would create an import file
14981 # for dependence libraries. The import file would start with
14982 # the line `#! .'. This would cause the generated library to
14983 # depend on `.', always an invalid library. This was fixed in
14984 # development snapshots of GCC prior to 3.0.
14986 aix4 | aix4.[01] | aix4.[01].*)
14987 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14989 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14992 can_build_shared=no
14996 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14997 # soname into executable. Probably we can add versioning support to
14998 # collect2, so additional links can be useful in future.
14999 if test "$aix_use_runtimelinking" = yes; then
15000 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15001 # instead of lib<name>.a to let people know that these are not
15002 # typical AIX shared libraries.
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 # We preserve .a as extension for shared libraries through AIX4.2
15006 # and later when we are not doing run time linking.
15007 library_names_spec='${libname}${release}.a $libname.a'
15008 soname_spec='${libname}${release}${shared_ext}$major'
15010 shlibpath_var=LIBPATH
15017 # Since July 2007 AmigaOS4 officially supports .so libraries.
15018 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022 library_names_spec='$libname.ixlibrary $libname.a'
15023 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15024 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'
15030 library_names_spec='${libname}${shared_ext}'
15031 dynamic_linker="$host_os ld.so"
15032 shlibpath_var=LIBRARY_PATH
15036 version_type=linux # correct to gnu/linux during the next big refactor
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039 soname_spec='${libname}${release}${shared_ext}$major'
15040 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15041 shlibpath_var=LD_LIBRARY_PATH
15042 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15043 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15044 # the default ld.so.conf also contains /usr/contrib/lib and
15045 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15046 # libtool to hard-code these into programs
15049 cygwin* | mingw* | pw32* | cegcc*)
15050 version_type=windows
15055 case $GCC,$cc_basename in
15058 library_names_spec='$libname.dll.a'
15059 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15060 postinstall_cmds='base_file=`basename \${file}`~
15061 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15062 dldir=$destdir/`dirname \$dlpath`~
15063 test -d \$dldir || mkdir -p \$dldir~
15064 $install_prog $dir/$dlname \$dldir/$dlname~
15065 chmod a+x \$dldir/$dlname~
15066 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15067 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15070 dlpath=$dir/\$dldll~
15072 shlibpath_overrides_runpath=yes
15076 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15077 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15079 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15082 # MinGW DLLs use traditional 'lib' prefix
15083 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15086 # pw32 DLLs use 'pw' prefix rather than 'lib'
15087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15090 dynamic_linker='Win32 ld.exe'
15095 libname_spec='$name'
15096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15097 library_names_spec='${libname}.dll.lib'
15101 sys_lib_search_path_spec=
15104 for lt_path in $LIB
15107 # Let DOS variable expansion print the short 8.3 style file name.
15108 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15109 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15112 # Convert to MSYS style.
15113 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15116 # Convert to unix form, then to dos form, then back to unix form
15117 # but this time dos style (no spaces!) so that the unix form looks
15118 # like /cygdrive/c/PROGRA~1:/cygdr...
15119 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15120 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15121 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15124 sys_lib_search_path_spec="$LIB"
15125 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15126 # It is most probably a Windows format PATH.
15127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15129 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15131 # FIXME: find the short name or the path components, as spaces are
15132 # common. (e.g. "Program Files" -> "PROGRA~1")
15136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15137 postinstall_cmds='base_file=`basename \${file}`~
15138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15139 dldir=$destdir/`dirname \$dlpath`~
15140 test -d \$dldir || mkdir -p \$dldir~
15141 $install_prog $dir/$dlname \$dldir/$dlname'
15142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15143 dlpath=$dir/\$dldll~
15145 shlibpath_overrides_runpath=yes
15146 dynamic_linker='Win32 link.exe'
15150 # Assume MSVC wrapper
15151 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15152 dynamic_linker='Win32 ld.exe'
15155 # FIXME: first we should search . and the directory the executable is in
15159 darwin* | rhapsody*)
15160 dynamic_linker="$host_os dyld"
15161 version_type=darwin
15164 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15165 soname_spec='${libname}${release}${major}$shared_ext'
15166 shlibpath_overrides_runpath=yes
15167 shlibpath_var=DYLD_LIBRARY_PATH
15168 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15170 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15171 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15175 version_type=linux # correct to gnu/linux during the next big refactor
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 shlibpath_var=LD_LIBRARY_PATH
15183 freebsd* | dragonfly*)
15184 # DragonFly does not have aout. When/if they implement a new
15185 # versioning mechanism, adjust this.
15186 if test -x /usr/bin/objformat; then
15187 objformat=`/usr/bin/objformat`
15190 freebsd[23].*) objformat=aout ;;
15191 *) objformat=elf ;;
15194 version_type=freebsd-$objformat
15195 case $version_type in
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15206 shlibpath_var=LD_LIBRARY_PATH
15209 shlibpath_overrides_runpath=yes
15211 freebsd3.[01]* | freebsdelf3.[01]*)
15212 shlibpath_overrides_runpath=yes
15213 hardcode_into_libs=yes
15215 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15216 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15217 shlibpath_overrides_runpath=no
15218 hardcode_into_libs=yes
15220 *) # from 4.6 on, and DragonFly
15221 shlibpath_overrides_runpath=yes
15222 hardcode_into_libs=yes
15228 version_type=linux # correct to gnu/linux during the next big refactor
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15232 soname_spec='${libname}${release}${shared_ext}$major'
15233 shlibpath_var=LD_LIBRARY_PATH
15234 shlibpath_overrides_runpath=no
15235 hardcode_into_libs=yes
15239 version_type=linux # correct to gnu/linux during the next big refactor
15242 dynamic_linker="$host_os runtime_loader"
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15244 soname_spec='${libname}${release}${shared_ext}$major'
15245 shlibpath_var=LIBRARY_PATH
15246 shlibpath_overrides_runpath=yes
15247 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15248 hardcode_into_libs=yes
15251 hpux9* | hpux10* | hpux11*)
15252 # Give a soname corresponding to the major version so that dld.sl refuses to
15253 # link against other versions.
15260 hardcode_into_libs=yes
15261 dynamic_linker="$host_os dld.so"
15262 shlibpath_var=LD_LIBRARY_PATH
15263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 if test "X$HPUX_IA64_MODE" = X32; then
15267 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15269 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15275 hardcode_into_libs=yes
15276 dynamic_linker="$host_os dld.sl"
15277 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15286 dynamic_linker="$host_os dld.sl"
15287 shlibpath_var=SHLIB_PATH
15288 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15293 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15294 postinstall_cmds='chmod 555 $lib'
15295 # or fails outright, so override atomically:
15296 install_override_mode=555
15300 version_type=linux # correct to gnu/linux during the next big refactor
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15304 soname_spec='${libname}${release}${shared_ext}$major'
15305 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 shlibpath_overrides_runpath=no
15308 hardcode_into_libs=yes
15311 irix5* | irix6* | nonstopux*)
15313 nonstopux*) version_type=nonstopux ;;
15315 if test "$lt_cv_prog_gnu_ld" = yes; then
15316 version_type=linux # correct to gnu/linux during the next big refactor
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15326 irix5* | nonstopux*)
15327 libsuff= shlibsuff=
15330 case $LD in # libtool.m4 will add one of these switches to LD
15331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15332 libsuff= shlibsuff= libmagic=32-bit;;
15333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15334 libsuff=32 shlibsuff=N32 libmagic=N32;;
15335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15336 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15337 *) libsuff= shlibsuff= libmagic=never-match;;
15341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15342 shlibpath_overrides_runpath=no
15343 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15344 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15345 hardcode_into_libs=yes
15348 # No shared lib support for Linux oldld, aout, or coff.
15349 linux*oldld* | linux*aout* | linux*coff*)
15353 # This must be glibc/ELF.
15354 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15355 version_type=linux # correct to gnu/linux during the next big refactor
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 shlibpath_overrides_runpath=no
15364 # Some binutils ld are patched to set DT_RUNPATH
15365 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15366 $as_echo_n "(cached) " >&6
15368 lt_cv_shlibpath_overrides_runpath=no
15369 save_LDFLAGS=$LDFLAGS
15370 save_libdir=$libdir
15371 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15372 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15384 if ac_fn_c_try_link "$LINENO"; then :
15385 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15386 lt_cv_shlibpath_overrides_runpath=yes
15389 rm -f core conftest.err conftest.$ac_objext \
15390 conftest$ac_exeext conftest.$ac_ext
15391 LDFLAGS=$save_LDFLAGS
15392 libdir=$save_libdir
15396 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15398 # This implies no fast_install, which is unacceptable.
15399 # Some rework will be needed to allow for fast_install
15400 # before this can be enabled.
15401 hardcode_into_libs=yes
15403 # Add ABI-specific directories to the system library path.
15404 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15406 # Append ld.so.conf contents to the search path
15407 if test -f /etc/ld.so.conf; then
15408 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' ' '`
15409 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15413 # We used to test for /lib/ld.so.1 and disable shared libraries on
15414 # powerpc, because MkLinux only supported shared libraries with the
15415 # GNU dynamic linker. Since this was broken with cross compilers,
15416 # most powerpc-linux boxes support dynamic linking these days and
15417 # people can always --disable-shared, the test was removed, and we
15418 # assume the GNU/Linux dynamic linker is in use.
15419 dynamic_linker='GNU/Linux ld.so'
15426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15429 dynamic_linker='NetBSD (a.out) ld.so'
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15432 soname_spec='${libname}${release}${shared_ext}$major'
15433 dynamic_linker='NetBSD ld.elf_so'
15435 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes
15437 hardcode_into_libs=yes
15441 version_type=linux # correct to gnu/linux during the next big refactor
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 shlibpath_var=LD_LIBRARY_PATH
15444 shlibpath_overrides_runpath=yes
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452 soname_spec='${libname}${release}${shared_ext}$major'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=no
15455 hardcode_into_libs=yes
15456 dynamic_linker='ldqnx.so'
15461 sys_lib_dlsearch_path_spec="/usr/lib"
15463 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15465 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15466 *) need_version=no ;;
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15470 shlibpath_var=LD_LIBRARY_PATH
15471 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15473 openbsd2.[89] | openbsd2.[89].*)
15474 shlibpath_overrides_runpath=no
15477 shlibpath_overrides_runpath=yes
15481 shlibpath_overrides_runpath=yes
15486 libname_spec='$name'
15489 library_names_spec='$libname${shared_ext} $libname.a'
15490 dynamic_linker='OS/2 ld.exe'
15491 shlibpath_var=LIBPATH
15494 osf3* | osf4* | osf5*)
15498 soname_spec='${libname}${release}${shared_ext}$major'
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500 shlibpath_var=LD_LIBRARY_PATH
15501 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15502 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15510 version_type=linux # correct to gnu/linux during the next big refactor
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15514 soname_spec='${libname}${release}${shared_ext}$major'
15515 shlibpath_var=LD_LIBRARY_PATH
15516 shlibpath_overrides_runpath=yes
15517 hardcode_into_libs=yes
15518 # ldd complains unless libraries are executable
15519 postinstall_cmds='chmod +x $lib'
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15526 shlibpath_var=LD_LIBRARY_PATH
15527 shlibpath_overrides_runpath=yes
15528 if test "$with_gnu_ld" = yes; then
15535 version_type=linux # correct to gnu/linux during the next big refactor
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 shlibpath_var=LD_LIBRARY_PATH
15539 case $host_vendor in
15541 shlibpath_overrides_runpath=no
15543 runpath_var=LD_RUN_PATH
15551 shlibpath_overrides_runpath=no
15552 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15558 if test -d /usr/nec ;then
15559 version_type=linux # correct to gnu/linux during the next big refactor
15560 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15561 soname_spec='$libname${shared_ext}.$major'
15562 shlibpath_var=LD_LIBRARY_PATH
15566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15567 version_type=freebsd-elf
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15571 soname_spec='${libname}${release}${shared_ext}$major'
15572 shlibpath_var=LD_LIBRARY_PATH
15573 shlibpath_overrides_runpath=yes
15574 hardcode_into_libs=yes
15575 if test "$with_gnu_ld" = yes; then
15576 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15578 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15581 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15585 sys_lib_dlsearch_path_spec='/usr/lib'
15589 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15590 version_type=linux # correct to gnu/linux during the next big refactor
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 shlibpath_overrides_runpath=no
15596 hardcode_into_libs=yes
15600 version_type=linux # correct to gnu/linux during the next big refactor
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 shlibpath_var=LD_LIBRARY_PATH
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15611 $as_echo "$dynamic_linker" >&6; }
15612 test "$dynamic_linker" = no && can_build_shared=no
15614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15615 if test "$GCC" = yes; then
15616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15619 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15620 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15622 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15623 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15718 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15720 if test -n "$hardcode_libdir_flag_spec" ||
15721 test -n "$runpath_var" ||
15722 test "X$hardcode_automatic" = "Xyes" ; then
15724 # We can hardcode non-existent directories.
15725 if test "$hardcode_direct" != no &&
15726 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15727 # have to relink, otherwise we might link with an installed library
15728 # when we should be linking with a yet-to-be-installed one
15729 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15730 test "$hardcode_minus_L" != no; then
15731 # Linking always hardcodes the temporary library directory.
15732 hardcode_action=relink
15734 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15735 hardcode_action=immediate
15738 # We cannot hardcode anything, or else we can only hardcode existing
15740 hardcode_action=unsupported
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15743 $as_echo "$hardcode_action" >&6; }
15745 if test "$hardcode_action" = relink ||
15746 test "$inherit_rpath" = yes; then
15747 # Fast installation is not supported
15748 enable_fast_install=no
15749 elif test "$shlibpath_overrides_runpath" = yes ||
15750 test "$enable_shared" = no; then
15751 # Fast installation is not necessary
15752 enable_fast_install=needless
15760 if test "x$enable_dlopen" != xyes; then
15761 enable_dlopen=unknown
15762 enable_dlopen_self=unknown
15763 enable_dlopen_self_static=unknown
15770 lt_cv_dlopen="load_add_on"
15772 lt_cv_dlopen_self=yes
15775 mingw* | pw32* | cegcc*)
15776 lt_cv_dlopen="LoadLibrary"
15781 lt_cv_dlopen="dlopen"
15786 # if libdl is installed we need to link against it
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15789 if ${ac_cv_lib_dl_dlopen+:} false; then :
15790 $as_echo_n "(cached) " >&6
15792 ac_check_lib_save_LIBS=$LIBS
15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h. */
15797 /* Override any GCC internal prototype to avoid an error.
15798 Use char because int might match the return type of a GCC
15799 builtin and then its argument prototype would still apply. */
15812 if ac_fn_c_try_link "$LINENO"; then :
15813 ac_cv_lib_dl_dlopen=yes
15815 ac_cv_lib_dl_dlopen=no
15817 rm -f core conftest.err conftest.$ac_objext \
15818 conftest$ac_exeext conftest.$ac_ext
15819 LIBS=$ac_check_lib_save_LIBS
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15823 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15827 lt_cv_dlopen="dyld"
15829 lt_cv_dlopen_self=yes
15836 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15837 if test "x$ac_cv_func_shl_load" = xyes; then :
15838 lt_cv_dlopen="shl_load"
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15841 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15842 if ${ac_cv_lib_dld_shl_load+:} false; then :
15843 $as_echo_n "(cached) " >&6
15845 ac_check_lib_save_LIBS=$LIBS
15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848 /* end confdefs.h. */
15850 /* Override any GCC internal prototype to avoid an error.
15851 Use char because int might match the return type of a GCC
15852 builtin and then its argument prototype would still apply. */
15860 return shl_load ();
15865 if ac_fn_c_try_link "$LINENO"; then :
15866 ac_cv_lib_dld_shl_load=yes
15868 ac_cv_lib_dld_shl_load=no
15870 rm -f core conftest.err conftest.$ac_objext \
15871 conftest$ac_exeext conftest.$ac_ext
15872 LIBS=$ac_check_lib_save_LIBS
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15875 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15876 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15877 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15879 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15880 if test "x$ac_cv_func_dlopen" = xyes; then :
15881 lt_cv_dlopen="dlopen"
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15884 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15885 if ${ac_cv_lib_dl_dlopen+:} 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. */
15908 if ac_fn_c_try_link "$LINENO"; then :
15909 ac_cv_lib_dl_dlopen=yes
15911 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
15918 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15919 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15923 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15924 if ${ac_cv_lib_svld_dlopen+:} false; then :
15925 $as_echo_n "(cached) " >&6
15927 ac_check_lib_save_LIBS=$LIBS
15928 LIBS="-lsvld $LIBS"
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15932 /* Override any GCC internal prototype to avoid an error.
15933 Use char because int might match the return type of a GCC
15934 builtin and then its argument prototype would still apply. */
15947 if ac_fn_c_try_link "$LINENO"; then :
15948 ac_cv_lib_svld_dlopen=yes
15950 ac_cv_lib_svld_dlopen=no
15952 rm -f core conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
15954 LIBS=$ac_check_lib_save_LIBS
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15957 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15958 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15962 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15963 if ${ac_cv_lib_dld_dld_link+:} false; then :
15964 $as_echo_n "(cached) " >&6
15966 ac_check_lib_save_LIBS=$LIBS
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15971 /* Override any GCC internal prototype to avoid an error.
15972 Use char because int might match the return type of a GCC
15973 builtin and then its argument prototype would still apply. */
15981 return dld_link ();
15986 if ac_fn_c_try_link "$LINENO"; then :
15987 ac_cv_lib_dld_dld_link=yes
15989 ac_cv_lib_dld_dld_link=no
15991 rm -f core conftest.err conftest.$ac_objext \
15992 conftest$ac_exeext conftest.$ac_ext
15993 LIBS=$ac_check_lib_save_LIBS
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15996 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15997 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15998 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16019 if test "x$lt_cv_dlopen" != xno; then
16025 case $lt_cv_dlopen in
16027 save_CPPFLAGS="$CPPFLAGS"
16028 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16030 save_LDFLAGS="$LDFLAGS"
16031 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16034 LIBS="$lt_cv_dlopen_libs $LIBS"
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16037 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16038 if ${lt_cv_dlopen_self+:} false; then :
16039 $as_echo_n "(cached) " >&6
16041 if test "$cross_compiling" = yes; then :
16042 lt_cv_dlopen_self=cross
16044 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16045 lt_status=$lt_dlunknown
16046 cat > conftest.$ac_ext <<_LT_EOF
16047 #line $LINENO "configure"
16048 #include "confdefs.h"
16057 # define LT_DLGLOBAL RTLD_GLOBAL
16060 # define LT_DLGLOBAL DL_GLOBAL
16062 # define LT_DLGLOBAL 0
16066 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16067 find out it does not work in some platform. */
16068 #ifndef LT_DLLAZY_OR_NOW
16070 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16073 # define LT_DLLAZY_OR_NOW DL_LAZY
16076 # define LT_DLLAZY_OR_NOW RTLD_NOW
16079 # define LT_DLLAZY_OR_NOW DL_NOW
16081 # define LT_DLLAZY_OR_NOW 0
16088 /* When -fvisbility=hidden is used, assume the code has been annotated
16089 correspondingly for the symbols needed. */
16090 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16091 int fnord () __attribute__((visibility("default")));
16094 int fnord () { return 42; }
16097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16098 int status = $lt_dlunknown;
16102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16105 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16106 else puts (dlerror ());
16108 /* dlclose (self); */
16116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16117 (eval $ac_link) 2>&5
16119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16120 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16121 (./conftest; exit; ) >&5 2>/dev/null
16123 case x$lt_status in
16124 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16125 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16126 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16129 # compilation failed
16130 lt_cv_dlopen_self=no
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16138 $as_echo "$lt_cv_dlopen_self" >&6; }
16140 if test "x$lt_cv_dlopen_self" = xyes; then
16141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16143 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16144 if ${lt_cv_dlopen_self_static+:} false; then :
16145 $as_echo_n "(cached) " >&6
16147 if test "$cross_compiling" = yes; then :
16148 lt_cv_dlopen_self_static=cross
16150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16151 lt_status=$lt_dlunknown
16152 cat > conftest.$ac_ext <<_LT_EOF
16153 #line $LINENO "configure"
16154 #include "confdefs.h"
16163 # define LT_DLGLOBAL RTLD_GLOBAL
16166 # define LT_DLGLOBAL DL_GLOBAL
16168 # define LT_DLGLOBAL 0
16172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16173 find out it does not work in some platform. */
16174 #ifndef LT_DLLAZY_OR_NOW
16176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16179 # define LT_DLLAZY_OR_NOW DL_LAZY
16182 # define LT_DLLAZY_OR_NOW RTLD_NOW
16185 # define LT_DLLAZY_OR_NOW DL_NOW
16187 # define LT_DLLAZY_OR_NOW 0
16194 /* When -fvisbility=hidden is used, assume the code has been annotated
16195 correspondingly for the symbols needed. */
16196 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16197 int fnord () __attribute__((visibility("default")));
16200 int fnord () { return 42; }
16203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16204 int status = $lt_dlunknown;
16208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16212 else puts (dlerror ());
16214 /* dlclose (self); */
16222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16223 (eval $ac_link) 2>&5
16225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16226 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16227 (./conftest; exit; ) >&5 2>/dev/null
16229 case x$lt_status in
16230 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16231 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16232 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16235 # compilation failed
16236 lt_cv_dlopen_self_static=no
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16244 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16247 CPPFLAGS="$save_CPPFLAGS"
16248 LDFLAGS="$save_LDFLAGS"
16253 case $lt_cv_dlopen_self in
16254 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16255 *) enable_dlopen_self=unknown ;;
16258 case $lt_cv_dlopen_self_static in
16259 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16260 *) enable_dlopen_self_static=unknown ;;
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16283 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16284 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16285 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16286 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16288 $as_echo "yes" >&6; }
16290 # FIXME - insert some real tests, host_os isn't really good enough
16293 if test -n "$STRIP" ; then
16294 striplib="$STRIP -x"
16295 old_striplib="$STRIP -S"
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16297 $as_echo "yes" >&6; }
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16300 $as_echo "no" >&6; }
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305 $as_echo "no" >&6; }
16321 # Report which library types will actually be built
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16323 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16325 $as_echo "$can_build_shared" >&6; }
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16328 $as_echo_n "checking whether to build shared libraries... " >&6; }
16329 test "$can_build_shared" = "no" && enable_shared=no
16331 # On AIX, shared libraries and static libraries use the same namespace, and
16332 # are all built from PIC.
16335 test "$enable_shared" = yes && enable_static=no
16336 if test -n "$RANLIB"; then
16337 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16338 postinstall_cmds='$RANLIB $lib'
16343 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16344 test "$enable_shared" = yes && enable_static=no
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16349 $as_echo "$enable_shared" >&6; }
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16352 $as_echo_n "checking whether to build static libraries... " >&6; }
16353 # Make sure either enable_shared or enable_static is yes.
16354 test "$enable_shared" = yes || enable_static=yes
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16356 $as_echo "$enable_static" >&6; }
16363 ac_cpp='$CPP $CPPFLAGS'
16364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16370 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16371 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16372 (test "X$CXX" != "Xg++"))) ; then
16374 ac_cpp='$CXXCPP $CPPFLAGS'
16375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16379 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16380 if test -z "$CXXCPP"; then
16381 if ${ac_cv_prog_CXXCPP+:} false; then :
16382 $as_echo_n "(cached) " >&6
16384 # Double quotes because CXXCPP needs to be expanded
16385 for CXXCPP in "$CXX -E" "/lib/cpp"
16387 ac_preproc_ok=false
16388 for ac_cxx_preproc_warn_flag in '' yes
16390 # Use a header file that comes with gcc, so configuring glibc
16391 # with a fresh cross-compiler works.
16392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16393 # <limits.h> exists even on freestanding compilers.
16394 # On the NeXT, cc -E runs the code through the compiler's parser,
16395 # not just through cpp. "Syntax error" is here to catch this case.
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16399 # include <limits.h>
16401 # include <assert.h>
16405 if ac_fn_cxx_try_cpp "$LINENO"; then :
16408 # Broken: fails on valid input.
16411 rm -f conftest.err conftest.i conftest.$ac_ext
16413 # OK, works on sane cases. Now check whether nonexistent headers
16414 # can be detected and how.
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 #include <ac_nonexistent.h>
16419 if ac_fn_cxx_try_cpp "$LINENO"; then :
16420 # Broken: success on invalid input.
16423 # Passes both tests.
16427 rm -f conftest.err conftest.i conftest.$ac_ext
16430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16431 rm -f conftest.i conftest.err conftest.$ac_ext
16432 if $ac_preproc_ok; then :
16437 ac_cv_prog_CXXCPP=$CXXCPP
16440 CXXCPP=$ac_cv_prog_CXXCPP
16442 ac_cv_prog_CXXCPP=$CXXCPP
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16445 $as_echo "$CXXCPP" >&6; }
16446 ac_preproc_ok=false
16447 for ac_cxx_preproc_warn_flag in '' yes
16449 # Use a header file that comes with gcc, so configuring glibc
16450 # with a fresh cross-compiler works.
16451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16452 # <limits.h> exists even on freestanding compilers.
16453 # On the NeXT, cc -E runs the code through the compiler's parser,
16454 # not just through cpp. "Syntax error" is here to catch this case.
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16458 # include <limits.h>
16460 # include <assert.h>
16464 if ac_fn_cxx_try_cpp "$LINENO"; then :
16467 # Broken: fails on valid input.
16470 rm -f conftest.err conftest.i conftest.$ac_ext
16472 # OK, works on sane cases. Now check whether nonexistent headers
16473 # can be detected and how.
16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h. */
16476 #include <ac_nonexistent.h>
16478 if ac_fn_cxx_try_cpp "$LINENO"; then :
16479 # Broken: success on invalid input.
16482 # Passes both tests.
16486 rm -f conftest.err conftest.i conftest.$ac_ext
16489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16490 rm -f conftest.i conftest.err conftest.$ac_ext
16491 if $ac_preproc_ok; then :
16494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16496 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16497 See \`config.log' for more details" "$LINENO" 5; }
16501 ac_cpp='$CPP $CPPFLAGS'
16502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16507 _lt_caught_CXX_error=yes
16511 ac_cpp='$CXXCPP $CPPFLAGS'
16512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16516 archive_cmds_need_lc_CXX=no
16517 allow_undefined_flag_CXX=
16518 always_export_symbols_CXX=no
16519 archive_expsym_cmds_CXX=
16520 compiler_needs_object_CXX=no
16521 export_dynamic_flag_spec_CXX=
16522 hardcode_direct_CXX=no
16523 hardcode_direct_absolute_CXX=no
16524 hardcode_libdir_flag_spec_CXX=
16525 hardcode_libdir_separator_CXX=
16526 hardcode_minus_L_CXX=no
16527 hardcode_shlibpath_var_CXX=unsupported
16528 hardcode_automatic_CXX=no
16529 inherit_rpath_CXX=no
16531 module_expsym_cmds_CXX=
16532 link_all_deplibs_CXX=unknown
16533 old_archive_cmds_CXX=$old_archive_cmds
16534 reload_flag_CXX=$reload_flag
16535 reload_cmds_CXX=$reload_cmds
16536 no_undefined_flag_CXX=
16537 whole_archive_flag_spec_CXX=
16538 enable_shared_with_static_runtimes_CXX=no
16540 # Source file extension for C++ test sources.
16543 # Object file extension for compiled C++ test sources.
16547 # No sense in running all these tests if we already determined that
16548 # the CXX compiler isn't working. Some variables (like enable_shared)
16549 # are currently assumed to apply to all compilers on this platform,
16550 # and will be corrupted by setting them based on a non-working compiler.
16551 if test "$_lt_caught_CXX_error" != yes; then
16552 # Code to be used in simple compile tests
16553 lt_simple_compile_test_code="int some_variable = 0;"
16555 # Code to be used in simple link tests
16556 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16558 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16565 # If no C compiler was specified, use CC.
16568 # If no C compiler flags were specified, use CFLAGS.
16569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16571 # Allow CC to be a program name with arguments.
16575 # save warnings/boilerplate of simple test code
16576 ac_outfile=conftest.$ac_objext
16577 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16578 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16579 _lt_compiler_boilerplate=`cat conftest.err`
16582 ac_outfile=conftest.$ac_objext
16583 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16584 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16585 _lt_linker_boilerplate=`cat conftest.err`
16589 # Allow CC to be a program name with arguments.
16591 lt_save_CFLAGS=$CFLAGS
16595 lt_save_with_gnu_ld=$with_gnu_ld
16596 lt_save_path_LD=$lt_cv_path_LD
16597 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16598 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16600 $as_unset lt_cv_prog_gnu_ld
16602 if test -n "${lt_cv_path_LDCXX+set}"; then
16603 lt_cv_path_LD=$lt_cv_path_LDCXX
16605 $as_unset lt_cv_path_LD
16607 test -z "${LDCXX+set}" || LD=$LDCXX
16612 for cc_temp in $compiler""; do
16614 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16615 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16620 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16623 if test -n "$compiler"; then
16624 # We don't want -fno-exception when compiling C++ code, so set the
16625 # no_builtin_flag separately
16626 if test "$GXX" = yes; then
16627 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16629 lt_prog_compiler_no_builtin_flag_CXX=
16632 if test "$GXX" = yes; then
16633 # Set up default GNU C++ configuration
16637 # Check whether --with-gnu-ld was given.
16638 if test "${with_gnu_ld+set}" = set; then :
16639 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16645 if test "$GCC" = yes; then
16646 # Check if gcc -print-prog-name=ld gives a path.
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16648 $as_echo_n "checking for ld used by $CC... " >&6; }
16651 # gcc leaves a trailing carriage return which upsets mingw
16652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16657 # Accept absolute paths.
16659 re_direlt='/[^/][^/]*/\.\./'
16660 # Canonicalize the pathname of ld
16661 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16662 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16663 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16665 test -z "$LD" && LD="$ac_prog"
16668 # If it fails, then pretend we aren't using GCC.
16672 # If it is relative, then search for the first ld in PATH.
16673 with_gnu_ld=unknown
16676 elif test "$with_gnu_ld" = yes; then
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16678 $as_echo_n "checking for GNU ld... " >&6; }
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16681 $as_echo_n "checking for non-GNU ld... " >&6; }
16683 if ${lt_cv_path_LD+:} false; then :
16684 $as_echo_n "(cached) " >&6
16686 if test -z "$LD"; then
16687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16688 for ac_dir in $PATH; do
16690 test -z "$ac_dir" && ac_dir=.
16691 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16692 lt_cv_path_LD="$ac_dir/$ac_prog"
16693 # Check to see if the program is GNU ld. I'd rather use --version,
16694 # but apparently some variants of GNU ld only accept -v.
16695 # Break only if it was the GNU/non-GNU ld that we prefer.
16696 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16697 *GNU* | *'with BFD'*)
16698 test "$with_gnu_ld" != no && break
16701 test "$with_gnu_ld" != yes && break
16708 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16712 LD="$lt_cv_path_LD"
16713 if test -n "$LD"; then
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16715 $as_echo "$LD" >&6; }
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16718 $as_echo "no" >&6; }
16720 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16722 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16723 if ${lt_cv_prog_gnu_ld+:} false; then :
16724 $as_echo_n "(cached) " >&6
16726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16727 case `$LD -v 2>&1 </dev/null` in
16728 *GNU* | *'with BFD'*)
16729 lt_cv_prog_gnu_ld=yes
16732 lt_cv_prog_gnu_ld=no
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16737 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16738 with_gnu_ld=$lt_cv_prog_gnu_ld
16746 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16747 # archiving commands below assume that GNU ld is being used.
16748 if test "$with_gnu_ld" = yes; then
16749 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16750 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'
16752 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16755 # If archive_cmds runs LD, not CC, wlarc should be empty
16756 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16757 # investigate it a little bit more. (MM)
16760 # ancient GNU ld didn't support --whole-archive et. al.
16761 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16762 $GREP 'no-whole-archive' > /dev/null; then
16763 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16765 whole_archive_flag_spec_CXX=
16771 # A generic and very simple default shared library creation
16772 # command for GNU C++ for the case where it uses the native
16773 # linker, instead of GNU ld. If possible, this setting should
16774 # overridden to take advantage of the native linker features on
16775 # the platform it is being used on.
16776 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16779 # Commands to make compiler produce verbose output that lists
16780 # what "hidden" libraries, object files and flags are used when
16781 # linking a shared library.
16782 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16790 # PORTME: fill in a description of your system's C++ link characteristics
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16796 # FIXME: insert proper C++ library support
16800 if test "$host_cpu" = ia64; then
16801 # On IA64, the linker does run time linking by default, so we don't
16802 # have to do anything special.
16803 aix_use_runtimelinking=no
16804 exp_sym_flag='-Bexport'
16807 aix_use_runtimelinking=no
16809 # Test if we are trying to use run time linking or normal
16810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16811 # need to do runtime linking.
16812 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16813 for ld_flag in $LDFLAGS; do
16816 aix_use_runtimelinking=yes
16824 exp_sym_flag='-bexport'
16825 no_entry_flag='-bnoentry'
16828 # When large executables or shared objects are built, AIX ld can
16829 # have problems creating the table of contents. If linking a library
16830 # or program results in "error TOC overflow" add -mminimal-toc to
16831 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16832 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16834 archive_cmds_CXX=''
16835 hardcode_direct_CXX=yes
16836 hardcode_direct_absolute_CXX=yes
16837 hardcode_libdir_separator_CXX=':'
16838 link_all_deplibs_CXX=yes
16839 file_list_spec_CXX='${wl}-f,'
16841 if test "$GXX" = yes; then
16842 case $host_os in aix4.[012]|aix4.[012].*)
16843 # We only want to do this on AIX 4.2 and lower, the check
16844 # below for broken collect2 doesn't work under 4.3+
16845 collect2name=`${CC} -print-prog-name=collect2`
16846 if test -f "$collect2name" &&
16847 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16849 # We have reworked collect2
16852 # We have old collect2
16853 hardcode_direct_CXX=unsupported
16854 # It fails to find uninstalled libraries when the uninstalled
16855 # path is not listed in the libpath. Setting hardcode_minus_L
16856 # to unsupported forces relinking
16857 hardcode_minus_L_CXX=yes
16858 hardcode_libdir_flag_spec_CXX='-L$libdir'
16859 hardcode_libdir_separator_CXX=
16862 shared_flag='-shared'
16863 if test "$aix_use_runtimelinking" = yes; then
16864 shared_flag="$shared_flag "'${wl}-G'
16868 if test "$host_cpu" = ia64; then
16869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16870 # chokes on -Wl,-G. The following line is correct:
16873 if test "$aix_use_runtimelinking" = yes; then
16874 shared_flag='${wl}-G'
16876 shared_flag='${wl}-bM:SRE'
16881 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16882 # It seems that -bexpall does not export symbols beginning with
16883 # underscore (_), so it is better to generate a list of symbols to
16885 always_export_symbols_CXX=yes
16886 if test "$aix_use_runtimelinking" = yes; then
16887 # Warning - without using the other runtime loading flags (-brtl),
16888 # -berok will link without error, but may produce a broken library.
16889 allow_undefined_flag_CXX='-berok'
16890 # Determine the default libpath from the value encoded in an empty
16892 if test "${lt_cv_aix_libpath+set}" = set; then
16893 aix_libpath=$lt_cv_aix_libpath
16895 if ${lt_cv_aix_libpath__CXX+:} false; then :
16896 $as_echo_n "(cached) " >&6
16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899 /* end confdefs.h. */
16909 if ac_fn_cxx_try_link "$LINENO"; then :
16911 lt_aix_libpath_sed='
16912 /Import File Strings/,/^$/ {
16914 s/^0 *\([^ ]*\) *$/\1/
16918 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16919 # Check for a 64-bit object if we didn't find anything.
16920 if test -z "$lt_cv_aix_libpath__CXX"; then
16921 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16924 rm -f core conftest.err conftest.$ac_objext \
16925 conftest$ac_exeext conftest.$ac_ext
16926 if test -z "$lt_cv_aix_libpath__CXX"; then
16927 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16932 aix_libpath=$lt_cv_aix_libpath__CXX
16935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16937 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"
16939 if test "$host_cpu" = ia64; then
16940 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16941 allow_undefined_flag_CXX="-z nodefs"
16942 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"
16944 # Determine the default libpath from the value encoded in an
16945 # empty executable.
16946 if test "${lt_cv_aix_libpath+set}" = set; then
16947 aix_libpath=$lt_cv_aix_libpath
16949 if ${lt_cv_aix_libpath__CXX+:} false; then :
16950 $as_echo_n "(cached) " >&6
16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953 /* end confdefs.h. */
16963 if ac_fn_cxx_try_link "$LINENO"; then :
16965 lt_aix_libpath_sed='
16966 /Import File Strings/,/^$/ {
16968 s/^0 *\([^ ]*\) *$/\1/
16972 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16973 # Check for a 64-bit object if we didn't find anything.
16974 if test -z "$lt_cv_aix_libpath__CXX"; then
16975 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16978 rm -f core conftest.err conftest.$ac_objext \
16979 conftest$ac_exeext conftest.$ac_ext
16980 if test -z "$lt_cv_aix_libpath__CXX"; then
16981 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16986 aix_libpath=$lt_cv_aix_libpath__CXX
16989 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16990 # Warning - without using the other run time loading flags,
16991 # -berok will link without error, but may produce a broken library.
16992 no_undefined_flag_CXX=' ${wl}-bernotok'
16993 allow_undefined_flag_CXX=' ${wl}-berok'
16994 if test "$with_gnu_ld" = yes; then
16995 # We only use this code for GNU lds that support --whole-archive.
16996 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16998 # Exported symbols can be pulled into shared objects from archives
16999 whole_archive_flag_spec_CXX='$convenience'
17001 archive_cmds_need_lc_CXX=yes
17002 # This is similar to how AIX traditionally builds its shared
17004 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'
17010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17011 allow_undefined_flag_CXX=unsupported
17012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17013 # support --undefined. This deserves some investigation. FIXME
17014 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17021 case $cc_basename in
17023 # FIXME: insert proper C++ library support
17029 cygwin* | mingw* | pw32* | cegcc*)
17030 case $GXX,$cc_basename in
17033 # hardcode_libdir_flag_spec is actually meaningless, as there is
17034 # no search path for DLLs.
17035 hardcode_libdir_flag_spec_CXX=' '
17036 allow_undefined_flag_CXX=unsupported
17037 always_export_symbols_CXX=yes
17038 file_list_spec_CXX='@'
17039 # Tell ltmain to make .lib files, not .a files.
17041 # Tell ltmain to make .dll files, not .so files.
17043 # FIXME: Setting linknames here is a bad hack.
17044 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17045 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17046 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17048 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17050 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17052 # The linker will not automatically build a static lib if we build a DLL.
17053 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17054 enable_shared_with_static_runtimes_CXX=yes
17056 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17057 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17058 lt_tool_outputfile="@TOOL_OUTPUT@"~
17059 case $lt_outputfile in
17062 lt_outputfile="$lt_outputfile.exe"
17063 lt_tool_outputfile="$lt_tool_outputfile.exe"
17066 func_to_tool_file "$lt_outputfile"~
17067 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17068 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17069 $RM "$lt_outputfile.manifest";
17074 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17075 # as there is no search path for DLLs.
17076 hardcode_libdir_flag_spec_CXX='-L$libdir'
17077 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17078 allow_undefined_flag_CXX=unsupported
17079 always_export_symbols_CXX=no
17080 enable_shared_with_static_runtimes_CXX=yes
17082 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17083 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'
17084 # If the export-symbols file already is a .def file (1st line
17085 # is EXPORTS), use it as is; otherwise, prepend...
17086 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17087 cp $export_symbols $output_objdir/$soname.def;
17089 echo EXPORTS > $output_objdir/$soname.def;
17090 cat $export_symbols >> $output_objdir/$soname.def;
17092 $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'
17099 darwin* | rhapsody*)
17102 archive_cmds_need_lc_CXX=no
17103 hardcode_direct_CXX=no
17104 hardcode_automatic_CXX=yes
17105 hardcode_shlibpath_var_CXX=unsupported
17106 if test "$lt_cv_ld_force_load" = "yes"; then
17107 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\"`'
17110 whole_archive_flag_spec_CXX=''
17112 link_all_deplibs_CXX=yes
17113 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17114 case $cc_basename in
17115 ifort*) _lt_dar_can_shared=yes ;;
17116 *) _lt_dar_can_shared=$GCC ;;
17118 if test "$_lt_dar_can_shared" = "yes"; then
17119 output_verbose_link_cmd=func_echo_all
17120 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}"
17121 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17122 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}"
17123 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}"
17124 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17125 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}"
17126 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}"
17136 case $cc_basename in
17138 # FIXME: insert proper C++ library support
17142 # Green Hills C++ Compiler
17143 # FIXME: insert proper C++ library support
17147 # FIXME: insert proper C++ library support
17154 # C++ shared libraries reported to be fairly broken before
17160 archive_cmds_need_lc_CXX=no
17163 freebsd* | dragonfly*)
17164 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17173 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17174 link_all_deplibs_CXX=yes
17178 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17179 hardcode_libdir_separator_CXX=:
17180 export_dynamic_flag_spec_CXX='${wl}-E'
17181 hardcode_direct_CXX=yes
17182 hardcode_minus_L_CXX=yes # Not in the search PATH,
17183 # but as the default
17184 # location of the library.
17186 case $cc_basename in
17188 # FIXME: insert proper C++ library support
17192 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'
17193 # Commands to make compiler produce verbose output that lists
17194 # what "hidden" libraries, object files and flags are used when
17195 # linking a shared library.
17197 # There doesn't appear to be a way to prevent this compiler from
17198 # explicitly linking system object files so we need to strip them
17199 # from the output so that they don't get included in the library
17201 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"'
17204 if test "$GXX" = yes; then
17205 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'
17207 # FIXME: insert proper C++ library support
17215 if test $with_gnu_ld = no; then
17216 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17217 hardcode_libdir_separator_CXX=:
17223 export_dynamic_flag_spec_CXX='${wl}-E'
17229 hardcode_direct_CXX=no
17230 hardcode_shlibpath_var_CXX=no
17233 hardcode_direct_CXX=yes
17234 hardcode_direct_absolute_CXX=yes
17235 hardcode_minus_L_CXX=yes # Not in the search PATH,
17236 # but as the default
17237 # location of the library.
17241 case $cc_basename in
17243 # FIXME: insert proper C++ library support
17249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17252 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17255 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17258 # Commands to make compiler produce verbose output that lists
17259 # what "hidden" libraries, object files and flags are used when
17260 # linking a shared library.
17262 # There doesn't appear to be a way to prevent this compiler from
17263 # explicitly linking system object files so we need to strip them
17264 # from the output so that they don't get included in the library
17266 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"'
17269 if test "$GXX" = yes; then
17270 if test $with_gnu_ld = no; then
17273 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17276 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17279 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'
17284 # FIXME: insert proper C++ library support
17292 hardcode_direct_CXX=no
17293 hardcode_shlibpath_var_CXX=no
17294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17295 export_dynamic_flag_spec_CXX='${wl}-E'
17296 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17297 # Instead, shared libraries are loaded at an image base (0x10000000 by
17298 # default) and relocated if they conflict, which is a slow very memory
17299 # consuming and fragmenting process. To avoid this, we pick a random,
17300 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17301 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17302 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'
17303 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'
17306 case $cc_basename in
17309 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'
17311 # Archives containing C++ object files must be created using
17312 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17313 # necessary to make sure instantiated templates are included
17315 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17318 if test "$GXX" = yes; then
17319 if test "$with_gnu_ld" = no; then
17320 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'
17322 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'
17325 link_all_deplibs_CXX=yes
17328 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17329 hardcode_libdir_separator_CXX=:
17330 inherit_rpath_CXX=yes
17333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17334 case $cc_basename in
17336 # Kuck and Associates, Inc. (KAI) C++ Compiler
17338 # KCC will only create a shared library if the output file
17339 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17340 # to its proper name (with version) after linking.
17341 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'
17342 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'
17343 # Commands to make compiler produce verbose output that lists
17344 # what "hidden" libraries, object files and flags are used when
17345 # linking a shared library.
17347 # There doesn't appear to be a way to prevent this compiler from
17348 # explicitly linking system object files so we need to strip them
17349 # from the output so that they don't get included in the library
17351 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"'
17353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17356 # Archives containing C++ object files must be created using
17357 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17358 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17363 # version 8.0 and above of icpc choke on multiply defined symbols
17364 # if we add $predep_objects and $postdep_objects, however 7.1 and
17365 # earlier do not add the objects themselves.
17366 case `$CC -V 2>&1` in
17368 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17369 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'
17371 *) # Version 8.0 or newer
17374 ia64*) tmp_idyn=' -i_dynamic';;
17376 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17377 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'
17380 archive_cmds_need_lc_CXX=no
17381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17383 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17386 # Portland Group C++ compiler
17388 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17389 prelink_cmds_CXX='tpldir=Template.dir~
17391 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17392 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17393 old_archive_cmds_CXX='tpldir=Template.dir~
17395 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17396 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17398 archive_cmds_CXX='tpldir=Template.dir~
17400 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17401 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17402 archive_expsym_cmds_CXX='tpldir=Template.dir~
17404 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17405 $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'
17407 *) # Version 6 and above use weak symbols
17408 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17409 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'
17413 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17415 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'
17419 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420 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'
17422 runpath_var=LD_RUN_PATH
17423 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17424 hardcode_libdir_separator_CXX=:
17426 # Commands to make compiler produce verbose output that lists
17427 # what "hidden" libraries, object files and flags are used when
17428 # linking a shared library.
17430 # There doesn't appear to be a way to prevent this compiler from
17431 # explicitly linking system object files so we need to strip them
17432 # from the output so that they don't get included in the library
17434 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'
17436 xl* | mpixl* | bgxl*)
17437 # IBM XL 8.0 on PPC, with GNU ld
17438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17440 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17441 if test "x$supports_anon_versioning" = xyes; then
17442 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17443 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17444 echo "local: *; };" >> $output_objdir/$libname.ver~
17445 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17449 case `$CC -V 2>&1 | sed 5q` in
17452 no_undefined_flag_CXX=' -zdefs'
17453 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17454 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'
17455 hardcode_libdir_flag_spec_CXX='-R$libdir'
17456 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'
17457 compiler_needs_object_CXX=yes
17459 # Not sure whether something based on
17460 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17462 output_verbose_link_cmd='func_echo_all'
17464 # Archives containing C++ object files must be created using
17465 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17466 # necessary to make sure instantiated templates are included
17468 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17476 # FIXME: insert proper C++ library support
17481 # FIXME: insert proper C++ library support
17486 case $cc_basename in
17488 # FIXME: insert proper C++ library support
17492 # FIXME: insert proper C++ library support
17499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17500 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17502 hardcode_libdir_flag_spec_CXX='-R$libdir'
17503 hardcode_direct_CXX=yes
17504 hardcode_shlibpath_var_CXX=no
17506 # Workaround some broken pre-1.5 toolchains
17507 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17515 # C++ shared libraries are fairly broken
17520 if test -f /usr/libexec/ld.so; then
17521 hardcode_direct_CXX=yes
17522 hardcode_shlibpath_var_CXX=no
17523 hardcode_direct_absolute_CXX=yes
17524 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17527 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17528 export_dynamic_flag_spec_CXX='${wl}-E'
17529 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17531 output_verbose_link_cmd=func_echo_all
17537 osf3* | osf4* | osf5*)
17538 case $cc_basename in
17540 # Kuck and Associates, Inc. (KAI) C++ Compiler
17542 # KCC will only create a shared library if the output file
17543 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17544 # to its proper name (with version) after linking.
17545 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'
17547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17548 hardcode_libdir_separator_CXX=:
17550 # Archives containing C++ object files must be created using
17551 # the KAI C++ compiler.
17553 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17554 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17558 # Rational C++ 2.4.1
17559 # FIXME: insert proper C++ library support
17565 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17566 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'
17567 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17570 allow_undefined_flag_CXX=' -expect_unresolved \*'
17571 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'
17572 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17573 echo "-hidden">> $lib.exp~
17574 $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~
17576 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17580 hardcode_libdir_separator_CXX=:
17582 # Commands to make compiler produce verbose output that lists
17583 # what "hidden" libraries, object files and flags are used when
17584 # linking a shared library.
17586 # There doesn't appear to be a way to prevent this compiler from
17587 # explicitly linking system object files so we need to strip them
17588 # from the output so that they don't get included in the library
17590 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"'
17593 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17594 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17597 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'
17600 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'
17604 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17605 hardcode_libdir_separator_CXX=:
17607 # Commands to make compiler produce verbose output that lists
17608 # what "hidden" libraries, object files and flags are used when
17609 # linking a shared library.
17610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17613 # FIXME: insert proper C++ library support
17621 # FIXME: insert proper C++ library support
17626 case $cc_basename in
17629 # FIXME: insert proper C++ library support
17634 # FIXME: insert proper C++ library support
17638 # FIXME: insert proper C++ library support
17645 case $cc_basename in
17647 # Sun C++ 4.2, 5.x and Centerline C++
17648 archive_cmds_need_lc_CXX=yes
17649 no_undefined_flag_CXX=' -zdefs'
17650 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17651 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17652 $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'
17654 hardcode_libdir_flag_spec_CXX='-R$libdir'
17655 hardcode_shlibpath_var_CXX=no
17657 solaris2.[0-5] | solaris2.[0-5].*) ;;
17659 # The compiler driver will combine and reorder linker options,
17660 # but understands `-z linker_flag'.
17661 # Supported since Solaris 2.6 (maybe 2.5.1?)
17662 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17665 link_all_deplibs_CXX=yes
17667 output_verbose_link_cmd='func_echo_all'
17669 # Archives containing C++ object files must be created using
17670 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17671 # necessary to make sure instantiated templates are included
17673 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17676 # Green Hills C++ Compiler
17677 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17679 # The C++ compiler must be used to create the archive.
17680 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17683 # GNU C++ compiler with Solaris linker
17684 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17685 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17686 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17687 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17688 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17689 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17691 # Commands to make compiler produce verbose output that lists
17692 # what "hidden" libraries, object files and flags are used when
17693 # linking a shared library.
17694 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17696 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17698 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17699 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17700 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17702 # Commands to make compiler produce verbose output that lists
17703 # what "hidden" libraries, object files and flags are used when
17704 # linking a shared library.
17705 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17708 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17710 solaris2.[0-5] | solaris2.[0-5].*) ;;
17712 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17720 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17721 no_undefined_flag_CXX='${wl}-z,text'
17722 archive_cmds_need_lc_CXX=no
17723 hardcode_shlibpath_var_CXX=no
17724 runpath_var='LD_RUN_PATH'
17726 case $cc_basename in
17728 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17729 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17732 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17733 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17738 sysv5* | sco3.2v5* | sco5v6*)
17739 # Note: We can NOT use -z defs as we might desire, because we do not
17740 # link with -lc, and that would cause any symbols used from libc to
17741 # always be unresolved, which means just about no library would
17742 # ever link correctly. If we're not using GNU ld we use -z text
17743 # though, which does catch some bad symbols but isn't as heavy-handed
17745 no_undefined_flag_CXX='${wl}-z,text'
17746 allow_undefined_flag_CXX='${wl}-z,nodefs'
17747 archive_cmds_need_lc_CXX=no
17748 hardcode_shlibpath_var_CXX=no
17749 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17750 hardcode_libdir_separator_CXX=':'
17751 link_all_deplibs_CXX=yes
17752 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17753 runpath_var='LD_RUN_PATH'
17755 case $cc_basename in
17757 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17758 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17760 '"$old_archive_cmds_CXX"
17761 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17762 '"$reload_cmds_CXX"
17765 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17766 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17772 case $cc_basename in
17774 # NonStop-UX NCC 3.20
17775 # FIXME: insert proper C++ library support
17779 # FIXME: insert proper C++ library support
17786 # FIXME: insert proper C++ library support
17791 # FIXME: insert proper C++ library support
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17797 $as_echo "$ld_shlibs_CXX" >&6; }
17798 test "$ld_shlibs_CXX" = no && can_build_shared=no
17804 ## There is no encapsulation within the following macros, do not change
17805 ## the running order or otherwise move them around unless you know exactly
17806 ## what you are doing...
17807 # Dependencies to place before and after the object being linked:
17808 predep_objects_CXX=
17809 postdep_objects_CXX=
17812 compiler_lib_search_path_CXX=
17814 cat > conftest.$ac_ext <<_LT_EOF
17818 Foo (void) { a = 0; }
17825 _lt_libdeps_save_CFLAGS=$CFLAGS
17826 case "$CC $CFLAGS " in #(
17827 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17828 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17829 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17833 (eval $ac_compile) 2>&5
17835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17836 test $ac_status = 0; }; then
17837 # Parse the compiler output and extract the necessary
17838 # objects, libraries and library flags.
17840 # Sentinel used to keep track of whether or not we are before
17841 # the conftest object file.
17842 pre_test_object_deps_done=no
17844 for p in `eval "$output_verbose_link_cmd"`; do
17845 case ${prev}${p} in
17848 # Some compilers place space between "-{L,R}" and the path.
17849 # Remove the space.
17850 if test $p = "-L" ||
17851 test $p = "-R"; then
17856 # Expand the sysroot to ease extracting the directories later.
17857 if test -z "$prev"; then
17859 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17860 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17861 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17865 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17867 if test "$pre_test_object_deps_done" = no; then
17870 # Internal compiler library paths should come after those
17871 # provided the user. The postdeps already come after the
17872 # user supplied libs so there is no need to process them.
17873 if test -z "$compiler_lib_search_path_CXX"; then
17874 compiler_lib_search_path_CXX="${prev}${p}"
17876 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17879 # The "-l" case would never come before the object being
17880 # linked, so don't bother handling this case.
17883 if test -z "$postdeps_CXX"; then
17884 postdeps_CXX="${prev}${p}"
17886 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17892 *.lto.$objext) ;; # Ignore GCC LTO objects
17894 # This assumes that the test object file only shows up
17895 # once in the compiler output.
17896 if test "$p" = "conftest.$objext"; then
17897 pre_test_object_deps_done=yes
17901 if test "$pre_test_object_deps_done" = no; then
17902 if test -z "$predep_objects_CXX"; then
17903 predep_objects_CXX="$p"
17905 predep_objects_CXX="$predep_objects_CXX $p"
17908 if test -z "$postdep_objects_CXX"; then
17909 postdep_objects_CXX="$p"
17911 postdep_objects_CXX="$postdep_objects_CXX $p"
17916 *) ;; # Ignore the rest.
17924 echo "libtool.m4: error: problem compiling CXX test program"
17927 $RM -f confest.$objext
17928 CFLAGS=$_lt_libdeps_save_CFLAGS
17930 # PORTME: override above test on systems where it is broken
17933 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17934 # hack all around it, let's just trust "g++" to DTRT.
17935 predep_objects_CXX=
17936 postdep_objects_CXX=
17941 case `$CC -V 2>&1 | sed 5q` in
17945 # The more standards-conforming stlport4 library is
17946 # incompatible with the Cstd library. Avoid specifying
17947 # it if it's in CXXFLAGS. Ignore libCrun as
17948 # -library=stlport4 depends on it.
17949 case " $CXX $CXXFLAGS " in
17950 *" -library=stlport4 "*)
17951 solaris_use_stlport4=yes
17955 if test "$solaris_use_stlport4" != yes; then
17956 postdeps_CXX='-library=Cstd -library=Crun'
17963 case $cc_basename in
17965 # The more standards-conforming stlport4 library is
17966 # incompatible with the Cstd library. Avoid specifying
17967 # it if it's in CXXFLAGS. Ignore libCrun as
17968 # -library=stlport4 depends on it.
17969 case " $CXX $CXXFLAGS " in
17970 *" -library=stlport4 "*)
17971 solaris_use_stlport4=yes
17975 # Adding this requires a known-good setup of shared libraries for
17976 # Sun compiler versions before 5.6, else PIC objects from an old
17977 # archive will be linked into the output, leading to subtle bugs.
17978 if test "$solaris_use_stlport4" != yes; then
17979 postdeps_CXX='-library=Cstd -library=Crun'
17987 case " $postdeps_CXX " in
17988 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17990 compiler_lib_search_dirs_CXX=
17991 if test -n "${compiler_lib_search_path_CXX}"; then
17992 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18025 lt_prog_compiler_wl_CXX=
18026 lt_prog_compiler_pic_CXX=
18027 lt_prog_compiler_static_CXX=
18030 # C++ specific cases for pic, static, wl, etc.
18031 if test "$GXX" = yes; then
18032 lt_prog_compiler_wl_CXX='-Wl,'
18033 lt_prog_compiler_static_CXX='-static'
18037 # All AIX code is PIC.
18038 if test "$host_cpu" = ia64; then
18039 # AIX 5 now supports IA64 processor
18040 lt_prog_compiler_static_CXX='-Bstatic'
18047 # see comment about AmigaOS4 .so support
18048 lt_prog_compiler_pic_CXX='-fPIC'
18051 # FIXME: we need at least 68020 code to build shared libraries, but
18052 # adding the `-m68020' flag to GCC prevents building anything better,
18054 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18060 # PIC is the default for these OSes.
18062 mingw* | cygwin* | os2* | pw32* | cegcc*)
18063 # This hack is so that the source file can tell whether it is being
18064 # built for inclusion in a dll (and should export symbols for example).
18065 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18066 # (--disable-auto-import) libraries
18067 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18069 darwin* | rhapsody*)
18070 # PIC is the default on this platform
18071 # Common symbols not allowed in MH_DYLIB files
18072 lt_prog_compiler_pic_CXX='-fno-common'
18075 # DJGPP does not support shared libraries at all
18076 lt_prog_compiler_pic_CXX=
18079 # PIC is the default for Haiku.
18080 # The "-static" flag exists, but is broken.
18081 lt_prog_compiler_static_CXX=
18084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18085 # Instead, we relocate shared libraries at runtime.
18088 if test -d /usr/nec; then
18089 lt_prog_compiler_pic_CXX=-Kconform_pic
18093 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18094 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18095 # sets the default TLS model and affects inlining.
18100 lt_prog_compiler_pic_CXX='-fPIC'
18105 # QNX uses GNU C++, but need to define -shared option too, otherwise
18106 # it will coredump.
18107 lt_prog_compiler_pic_CXX='-fPIC -shared'
18110 lt_prog_compiler_pic_CXX='-fPIC'
18116 # All AIX code is PIC.
18117 if test "$host_cpu" = ia64; then
18118 # AIX 5 now supports IA64 processor
18119 lt_prog_compiler_static_CXX='-Bstatic'
18121 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18125 case $cc_basename in
18127 # Green Hills C++ Compiler
18128 # _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"
18132 mingw* | cygwin* | os2* | pw32* | cegcc*)
18133 # This hack is so that the source file can tell whether it is being
18134 # built for inclusion in a dll (and should export symbols for example).
18135 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18138 case $cc_basename in
18140 lt_prog_compiler_pic_CXX='-KPIC'
18143 # Green Hills C++ Compiler
18144 lt_prog_compiler_pic_CXX='-pic'
18150 freebsd* | dragonfly*)
18151 # FreeBSD uses GNU C++
18153 hpux9* | hpux10* | hpux11*)
18154 case $cc_basename in
18156 lt_prog_compiler_wl_CXX='-Wl,'
18157 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18158 if test "$host_cpu" != ia64; then
18159 lt_prog_compiler_pic_CXX='+Z'
18163 lt_prog_compiler_wl_CXX='-Wl,'
18164 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18170 lt_prog_compiler_pic_CXX='+Z'
18179 # This is c89, which is MS Visual C++ (no shared libs)
18180 # Anyone wants to do a port?
18182 irix5* | irix6* | nonstopux*)
18183 case $cc_basename in
18185 lt_prog_compiler_wl_CXX='-Wl,'
18186 lt_prog_compiler_static_CXX='-non_shared'
18187 # CC pic flag -KPIC is the default.
18193 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18194 case $cc_basename in
18197 lt_prog_compiler_wl_CXX='--backend -Wl,'
18198 lt_prog_compiler_pic_CXX='-fPIC'
18201 # old Intel C++ for x86_64 which still supported -KPIC.
18202 lt_prog_compiler_wl_CXX='-Wl,'
18203 lt_prog_compiler_pic_CXX='-KPIC'
18204 lt_prog_compiler_static_CXX='-static'
18207 # Intel C++, used to be incompatible with GCC.
18208 # ICC 10 doesn't accept -KPIC any more.
18209 lt_prog_compiler_wl_CXX='-Wl,'
18210 lt_prog_compiler_pic_CXX='-fPIC'
18211 lt_prog_compiler_static_CXX='-static'
18214 # Portland Group C++ compiler
18215 lt_prog_compiler_wl_CXX='-Wl,'
18216 lt_prog_compiler_pic_CXX='-fpic'
18217 lt_prog_compiler_static_CXX='-Bstatic'
18221 # Make sure the PIC flag is empty. It appears that all Alpha
18222 # Linux and Compaq Tru64 Unix objects are PIC.
18223 lt_prog_compiler_pic_CXX=
18224 lt_prog_compiler_static_CXX='-non_shared'
18226 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18227 # IBM XL 8.0, 9.0 on PPC and BlueGene
18228 lt_prog_compiler_wl_CXX='-Wl,'
18229 lt_prog_compiler_pic_CXX='-qpic'
18230 lt_prog_compiler_static_CXX='-qstaticlink'
18233 case `$CC -V 2>&1 | sed 5q` in
18236 lt_prog_compiler_pic_CXX='-KPIC'
18237 lt_prog_compiler_static_CXX='-Bstatic'
18238 lt_prog_compiler_wl_CXX='-Qoption ld '
18249 case $cc_basename in
18251 lt_prog_compiler_pic_CXX='-W c,exportall'
18260 # QNX uses GNU C++, but need to define -shared option too, otherwise
18261 # it will coredump.
18262 lt_prog_compiler_pic_CXX='-fPIC -shared'
18264 osf3* | osf4* | osf5*)
18265 case $cc_basename in
18267 lt_prog_compiler_wl_CXX='--backend -Wl,'
18270 # Rational C++ 2.4.1
18271 lt_prog_compiler_pic_CXX='-pic'
18274 # Digital/Compaq C++
18275 lt_prog_compiler_wl_CXX='-Wl,'
18276 # Make sure the PIC flag is empty. It appears that all Alpha
18277 # Linux and Compaq Tru64 Unix objects are PIC.
18278 lt_prog_compiler_pic_CXX=
18279 lt_prog_compiler_static_CXX='-non_shared'
18288 case $cc_basename in
18290 # Sun C++ 4.2, 5.x and Centerline C++
18291 lt_prog_compiler_pic_CXX='-KPIC'
18292 lt_prog_compiler_static_CXX='-Bstatic'
18293 lt_prog_compiler_wl_CXX='-Qoption ld '
18296 # Green Hills C++ Compiler
18297 lt_prog_compiler_pic_CXX='-PIC'
18304 case $cc_basename in
18307 lt_prog_compiler_pic_CXX='-pic'
18308 lt_prog_compiler_static_CXX='-Bstatic'
18312 lt_prog_compiler_pic_CXX='-pic'
18318 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18319 case $cc_basename in
18321 lt_prog_compiler_wl_CXX='-Wl,'
18322 lt_prog_compiler_pic_CXX='-KPIC'
18323 lt_prog_compiler_static_CXX='-Bstatic'
18328 case $cc_basename in
18330 # NonStop-UX NCC 3.20
18331 lt_prog_compiler_pic_CXX='-KPIC'
18340 lt_prog_compiler_can_build_shared_CXX=no
18346 # For platforms which do not support PIC, -DPIC is meaningless:
18348 lt_prog_compiler_pic_CXX=
18351 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18356 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18357 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18358 $as_echo_n "(cached) " >&6
18360 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18363 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18364 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18367 # Check to make sure the PIC flag actually works.
18369 if test -n "$lt_prog_compiler_pic_CXX"; then
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18371 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18372 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18373 $as_echo_n "(cached) " >&6
18375 lt_cv_prog_compiler_pic_works_CXX=no
18376 ac_outfile=conftest.$ac_objext
18377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18378 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18379 # Insert the option either (1) after the last *FLAGS variable, or
18380 # (2) before a word containing "conftest.", or (3) at the end.
18381 # Note that $ac_compile itself does not contain backslashes and begins
18382 # with a dollar sign (not a hyphen), so the echo should work correctly.
18383 # The option is referenced via a variable to avoid confusing sed.
18384 lt_compile=`echo "$ac_compile" | $SED \
18385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18387 -e 's:$: $lt_compiler_flag:'`
18388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18389 (eval "$lt_compile" 2>conftest.err)
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 if (exit $ac_status) && test -s "$ac_outfile"; then
18394 # The compiler can only warn and ignore the option if not recognized
18395 # So say no if there are warnings other than the usual output.
18396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18399 lt_cv_prog_compiler_pic_works_CXX=yes
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18406 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18408 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18409 case $lt_prog_compiler_pic_CXX in
18411 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18414 lt_prog_compiler_pic_CXX=
18415 lt_prog_compiler_can_build_shared_CXX=no
18425 # Check to make sure the static flag actually works.
18427 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18429 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18430 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18431 $as_echo_n "(cached) " >&6
18433 lt_cv_prog_compiler_static_works_CXX=no
18434 save_LDFLAGS="$LDFLAGS"
18435 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18436 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18438 # The linker can only warn and ignore the option if not recognized
18439 # So say no if there are warnings
18440 if test -s conftest.err; then
18441 # Append any errors to the config.log.
18442 cat conftest.err 1>&5
18443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18445 if diff conftest.exp conftest.er2 >/dev/null; then
18446 lt_cv_prog_compiler_static_works_CXX=yes
18449 lt_cv_prog_compiler_static_works_CXX=yes
18453 LDFLAGS="$save_LDFLAGS"
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18457 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18459 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18462 lt_prog_compiler_static_CXX=
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18470 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18471 $as_echo_n "(cached) " >&6
18473 lt_cv_prog_compiler_c_o_CXX=no
18474 $RM -r conftest 2>/dev/null
18478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18480 lt_compiler_flag="-o out/conftest2.$ac_objext"
18481 # Insert the option either (1) after the last *FLAGS variable, or
18482 # (2) before a word containing "conftest.", or (3) at the end.
18483 # Note that $ac_compile itself does not contain backslashes and begins
18484 # with a dollar sign (not a hyphen), so the echo should work correctly.
18485 lt_compile=`echo "$ac_compile" | $SED \
18486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18488 -e 's:$: $lt_compiler_flag:'`
18489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18490 (eval "$lt_compile" 2>out/conftest.err)
18492 cat out/conftest.err >&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18496 # The compiler can only warn and ignore the option if not recognized
18497 # So say no if there are warnings
18498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18501 lt_cv_prog_compiler_c_o_CXX=yes
18506 # SGI C++ compiler will create directory out/ii_files/ for
18507 # template instantiation
18508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18509 $RM out/* && rmdir out
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18516 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18522 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18523 $as_echo_n "(cached) " >&6
18525 lt_cv_prog_compiler_c_o_CXX=no
18526 $RM -r conftest 2>/dev/null
18530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18532 lt_compiler_flag="-o out/conftest2.$ac_objext"
18533 # Insert the option either (1) after the last *FLAGS variable, or
18534 # (2) before a word containing "conftest.", or (3) at the end.
18535 # Note that $ac_compile itself does not contain backslashes and begins
18536 # with a dollar sign (not a hyphen), so the echo should work correctly.
18537 lt_compile=`echo "$ac_compile" | $SED \
18538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18540 -e 's:$: $lt_compiler_flag:'`
18541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18542 (eval "$lt_compile" 2>out/conftest.err)
18544 cat out/conftest.err >&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18548 # The compiler can only warn and ignore the option if not recognized
18549 # So say no if there are warnings
18550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18553 lt_cv_prog_compiler_c_o_CXX=yes
18558 # SGI C++ compiler will create directory out/ii_files/ for
18559 # template instantiation
18560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18561 $RM out/* && rmdir out
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18568 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18573 hard_links="nottested"
18574 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18575 # do not overwrite the value of need_locks provided by the user
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18577 $as_echo_n "checking if we can lock with hard links... " >&6; }
18580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18582 ln conftest.a conftest.b 2>&5 || hard_links=no
18583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18585 $as_echo "$hard_links" >&6; }
18586 if test "$hard_links" = no; then
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18588 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18598 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18600 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18601 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18604 # If we're using GNU nm, then we don't want the "-C" option.
18605 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18606 # Also, AIX nm treats weak defined symbols like other global defined
18607 # symbols, whereas GNU nm marks them as "W".
18608 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18609 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'
18611 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'
18615 export_symbols_cmds_CXX="$ltdll_cmds"
18617 cygwin* | mingw* | cegcc*)
18618 case $cc_basename in
18620 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18623 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'
18624 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18629 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18634 $as_echo "$ld_shlibs_CXX" >&6; }
18635 test "$ld_shlibs_CXX" = no && can_build_shared=no
18637 with_gnu_ld_CXX=$with_gnu_ld
18645 # Do we need to explicitly link libc?
18647 case "x$archive_cmds_need_lc_CXX" in
18649 # Assume -lc should be added
18650 archive_cmds_need_lc_CXX=yes
18652 if test "$enable_shared" = yes && test "$GCC" = yes; then
18653 case $archive_cmds_CXX in
18655 # FIXME: we may have to deal with multi-command sequences.
18658 # Test whether the compiler implicitly links with -lc since on some
18659 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18660 # to ld, don't add -lc before -lgcc.
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18662 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18663 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18664 $as_echo_n "(cached) " >&6
18667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18670 (eval $ac_compile) 2>&5
18672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18673 test $ac_status = 0; } 2>conftest.err; then
18676 libobjs=conftest.$ac_objext
18678 wl=$lt_prog_compiler_wl_CXX
18679 pic_flag=$lt_prog_compiler_pic_CXX
18685 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18686 allow_undefined_flag_CXX=
18687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18688 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18691 test $ac_status = 0; }
18693 lt_cv_archive_cmds_need_lc_CXX=no
18695 lt_cv_archive_cmds_need_lc_CXX=yes
18697 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18699 cat conftest.err 1>&5
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18705 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18706 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18775 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18777 library_names_spec=
18778 libname_spec='lib$name'
18782 postuninstall_cmds=
18786 shlibpath_overrides_runpath=unknown
18788 dynamic_linker="$host_os ld.so"
18789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18790 need_lib_prefix=unknown
18791 hardcode_into_libs=no
18793 # when you set need_version to no, make sure it does not cause -set_version
18794 # flags to be left without arguments
18795 need_version=unknown
18799 version_type=linux # correct to gnu/linux during the next big refactor
18800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18801 shlibpath_var=LIBPATH
18803 # AIX 3 has no versioning support, so we append a major version to the name.
18804 soname_spec='${libname}${release}${shared_ext}$major'
18808 version_type=linux # correct to gnu/linux during the next big refactor
18811 hardcode_into_libs=yes
18812 if test "$host_cpu" = ia64; then
18813 # AIX 5 supports IA64
18814 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18815 shlibpath_var=LD_LIBRARY_PATH
18817 # With GCC up to 2.95.x, collect2 would create an import file
18818 # for dependence libraries. The import file would start with
18819 # the line `#! .'. This would cause the generated library to
18820 # depend on `.', always an invalid library. This was fixed in
18821 # development snapshots of GCC prior to 3.0.
18823 aix4 | aix4.[01] | aix4.[01].*)
18824 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18826 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18829 can_build_shared=no
18833 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18834 # soname into executable. Probably we can add versioning support to
18835 # collect2, so additional links can be useful in future.
18836 if test "$aix_use_runtimelinking" = yes; then
18837 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18838 # instead of lib<name>.a to let people know that these are not
18839 # typical AIX shared libraries.
18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18842 # We preserve .a as extension for shared libraries through AIX4.2
18843 # and later when we are not doing run time linking.
18844 library_names_spec='${libname}${release}.a $libname.a'
18845 soname_spec='${libname}${release}${shared_ext}$major'
18847 shlibpath_var=LIBPATH
18854 # Since July 2007 AmigaOS4 officially supports .so libraries.
18855 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18859 library_names_spec='$libname.ixlibrary $libname.a'
18860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18861 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'
18867 library_names_spec='${libname}${shared_ext}'
18868 dynamic_linker="$host_os ld.so"
18869 shlibpath_var=LIBRARY_PATH
18873 version_type=linux # correct to gnu/linux during the next big refactor
18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18876 soname_spec='${libname}${release}${shared_ext}$major'
18877 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18878 shlibpath_var=LD_LIBRARY_PATH
18879 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18880 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18881 # the default ld.so.conf also contains /usr/contrib/lib and
18882 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18883 # libtool to hard-code these into programs
18886 cygwin* | mingw* | pw32* | cegcc*)
18887 version_type=windows
18892 case $GCC,$cc_basename in
18895 library_names_spec='$libname.dll.a'
18896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18897 postinstall_cmds='base_file=`basename \${file}`~
18898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18899 dldir=$destdir/`dirname \$dlpath`~
18900 test -d \$dldir || mkdir -p \$dldir~
18901 $install_prog $dir/$dlname \$dldir/$dlname~
18902 chmod a+x \$dldir/$dlname~
18903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18907 dlpath=$dir/\$dldll~
18909 shlibpath_overrides_runpath=yes
18913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18918 # MinGW DLLs use traditional 'lib' prefix
18919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18922 # pw32 DLLs use 'pw' prefix rather than 'lib'
18923 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18926 dynamic_linker='Win32 ld.exe'
18931 libname_spec='$name'
18932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18933 library_names_spec='${libname}.dll.lib'
18937 sys_lib_search_path_spec=
18940 for lt_path in $LIB
18943 # Let DOS variable expansion print the short 8.3 style file name.
18944 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18945 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18948 # Convert to MSYS style.
18949 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18952 # Convert to unix form, then to dos form, then back to unix form
18953 # but this time dos style (no spaces!) so that the unix form looks
18954 # like /cygdrive/c/PROGRA~1:/cygdr...
18955 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18956 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18957 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18960 sys_lib_search_path_spec="$LIB"
18961 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18962 # It is most probably a Windows format PATH.
18963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18967 # FIXME: find the short name or the path components, as spaces are
18968 # common. (e.g. "Program Files" -> "PROGRA~1")
18972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18973 postinstall_cmds='base_file=`basename \${file}`~
18974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18975 dldir=$destdir/`dirname \$dlpath`~
18976 test -d \$dldir || mkdir -p \$dldir~
18977 $install_prog $dir/$dlname \$dldir/$dlname'
18978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18979 dlpath=$dir/\$dldll~
18981 shlibpath_overrides_runpath=yes
18982 dynamic_linker='Win32 link.exe'
18986 # Assume MSVC wrapper
18987 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18988 dynamic_linker='Win32 ld.exe'
18991 # FIXME: first we should search . and the directory the executable is in
18995 darwin* | rhapsody*)
18996 dynamic_linker="$host_os dyld"
18997 version_type=darwin
19000 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19001 soname_spec='${libname}${release}${major}$shared_ext'
19002 shlibpath_overrides_runpath=yes
19003 shlibpath_var=DYLD_LIBRARY_PATH
19004 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19010 version_type=linux # correct to gnu/linux during the next big refactor
19013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19014 soname_spec='${libname}${release}${shared_ext}$major'
19015 shlibpath_var=LD_LIBRARY_PATH
19018 freebsd* | dragonfly*)
19019 # DragonFly does not have aout. When/if they implement a new
19020 # versioning mechanism, adjust this.
19021 if test -x /usr/bin/objformat; then
19022 objformat=`/usr/bin/objformat`
19025 freebsd[23].*) objformat=aout ;;
19026 *) objformat=elf ;;
19029 version_type=freebsd-$objformat
19030 case $version_type in
19032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19041 shlibpath_var=LD_LIBRARY_PATH
19044 shlibpath_overrides_runpath=yes
19046 freebsd3.[01]* | freebsdelf3.[01]*)
19047 shlibpath_overrides_runpath=yes
19048 hardcode_into_libs=yes
19050 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19051 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19052 shlibpath_overrides_runpath=no
19053 hardcode_into_libs=yes
19055 *) # from 4.6 on, and DragonFly
19056 shlibpath_overrides_runpath=yes
19057 hardcode_into_libs=yes
19063 version_type=linux # correct to gnu/linux during the next big refactor
19066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19067 soname_spec='${libname}${release}${shared_ext}$major'
19068 shlibpath_var=LD_LIBRARY_PATH
19069 shlibpath_overrides_runpath=no
19070 hardcode_into_libs=yes
19074 version_type=linux # correct to gnu/linux during the next big refactor
19077 dynamic_linker="$host_os runtime_loader"
19078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19079 soname_spec='${libname}${release}${shared_ext}$major'
19080 shlibpath_var=LIBRARY_PATH
19081 shlibpath_overrides_runpath=yes
19082 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19083 hardcode_into_libs=yes
19086 hpux9* | hpux10* | hpux11*)
19087 # Give a soname corresponding to the major version so that dld.sl refuses to
19088 # link against other versions.
19095 hardcode_into_libs=yes
19096 dynamic_linker="$host_os dld.so"
19097 shlibpath_var=LD_LIBRARY_PATH
19098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19100 soname_spec='${libname}${release}${shared_ext}$major'
19101 if test "X$HPUX_IA64_MODE" = X32; then
19102 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19104 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19110 hardcode_into_libs=yes
19111 dynamic_linker="$host_os dld.sl"
19112 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19115 soname_spec='${libname}${release}${shared_ext}$major'
19116 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19121 dynamic_linker="$host_os dld.sl"
19122 shlibpath_var=SHLIB_PATH
19123 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125 soname_spec='${libname}${release}${shared_ext}$major'
19128 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19129 postinstall_cmds='chmod 555 $lib'
19130 # or fails outright, so override atomically:
19131 install_override_mode=555
19135 version_type=linux # correct to gnu/linux during the next big refactor
19138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19139 soname_spec='${libname}${release}${shared_ext}$major'
19140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19141 shlibpath_var=LD_LIBRARY_PATH
19142 shlibpath_overrides_runpath=no
19143 hardcode_into_libs=yes
19146 irix5* | irix6* | nonstopux*)
19148 nonstopux*) version_type=nonstopux ;;
19150 if test "$lt_cv_prog_gnu_ld" = yes; then
19151 version_type=linux # correct to gnu/linux during the next big refactor
19158 soname_spec='${libname}${release}${shared_ext}$major'
19159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19161 irix5* | nonstopux*)
19162 libsuff= shlibsuff=
19165 case $LD in # libtool.m4 will add one of these switches to LD
19166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19167 libsuff= shlibsuff= libmagic=32-bit;;
19168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19169 libsuff=32 shlibsuff=N32 libmagic=N32;;
19170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19172 *) libsuff= shlibsuff= libmagic=never-match;;
19176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19177 shlibpath_overrides_runpath=no
19178 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19179 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19180 hardcode_into_libs=yes
19183 # No shared lib support for Linux oldld, aout, or coff.
19184 linux*oldld* | linux*aout* | linux*coff*)
19188 # This must be glibc/ELF.
19189 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19190 version_type=linux # correct to gnu/linux during the next big refactor
19193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19194 soname_spec='${libname}${release}${shared_ext}$major'
19195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19196 shlibpath_var=LD_LIBRARY_PATH
19197 shlibpath_overrides_runpath=no
19199 # Some binutils ld are patched to set DT_RUNPATH
19200 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19201 $as_echo_n "(cached) " >&6
19203 lt_cv_shlibpath_overrides_runpath=no
19204 save_LDFLAGS=$LDFLAGS
19205 save_libdir=$libdir
19206 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19207 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209 /* end confdefs.h. */
19219 if ac_fn_cxx_try_link "$LINENO"; then :
19220 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19221 lt_cv_shlibpath_overrides_runpath=yes
19224 rm -f core conftest.err conftest.$ac_objext \
19225 conftest$ac_exeext conftest.$ac_ext
19226 LDFLAGS=$save_LDFLAGS
19227 libdir=$save_libdir
19231 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19233 # This implies no fast_install, which is unacceptable.
19234 # Some rework will be needed to allow for fast_install
19235 # before this can be enabled.
19236 hardcode_into_libs=yes
19238 # Add ABI-specific directories to the system library path.
19239 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19241 # Append ld.so.conf contents to the search path
19242 if test -f /etc/ld.so.conf; then
19243 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' ' '`
19244 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19248 # We used to test for /lib/ld.so.1 and disable shared libraries on
19249 # powerpc, because MkLinux only supported shared libraries with the
19250 # GNU dynamic linker. Since this was broken with cross compilers,
19251 # most powerpc-linux boxes support dynamic linking these days and
19252 # people can always --disable-shared, the test was removed, and we
19253 # assume the GNU/Linux dynamic linker is in use.
19254 dynamic_linker='GNU/Linux ld.so'
19261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19264 dynamic_linker='NetBSD (a.out) ld.so'
19266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19267 soname_spec='${libname}${release}${shared_ext}$major'
19268 dynamic_linker='NetBSD ld.elf_so'
19270 shlibpath_var=LD_LIBRARY_PATH
19271 shlibpath_overrides_runpath=yes
19272 hardcode_into_libs=yes
19276 version_type=linux # correct to gnu/linux during the next big refactor
19277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19278 shlibpath_var=LD_LIBRARY_PATH
19279 shlibpath_overrides_runpath=yes
19286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19287 soname_spec='${libname}${release}${shared_ext}$major'
19288 shlibpath_var=LD_LIBRARY_PATH
19289 shlibpath_overrides_runpath=no
19290 hardcode_into_libs=yes
19291 dynamic_linker='ldqnx.so'
19296 sys_lib_dlsearch_path_spec="/usr/lib"
19298 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19300 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19301 *) need_version=no ;;
19303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19305 shlibpath_var=LD_LIBRARY_PATH
19306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19308 openbsd2.[89] | openbsd2.[89].*)
19309 shlibpath_overrides_runpath=no
19312 shlibpath_overrides_runpath=yes
19316 shlibpath_overrides_runpath=yes
19321 libname_spec='$name'
19324 library_names_spec='$libname${shared_ext} $libname.a'
19325 dynamic_linker='OS/2 ld.exe'
19326 shlibpath_var=LIBPATH
19329 osf3* | osf4* | osf5*)
19333 soname_spec='${libname}${release}${shared_ext}$major'
19334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19335 shlibpath_var=LD_LIBRARY_PATH
19336 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19337 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19345 version_type=linux # correct to gnu/linux during the next big refactor
19348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19349 soname_spec='${libname}${release}${shared_ext}$major'
19350 shlibpath_var=LD_LIBRARY_PATH
19351 shlibpath_overrides_runpath=yes
19352 hardcode_into_libs=yes
19353 # ldd complains unless libraries are executable
19354 postinstall_cmds='chmod +x $lib'
19359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19361 shlibpath_var=LD_LIBRARY_PATH
19362 shlibpath_overrides_runpath=yes
19363 if test "$with_gnu_ld" = yes; then
19370 version_type=linux # correct to gnu/linux during the next big refactor
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19372 soname_spec='${libname}${release}${shared_ext}$major'
19373 shlibpath_var=LD_LIBRARY_PATH
19374 case $host_vendor in
19376 shlibpath_overrides_runpath=no
19378 runpath_var=LD_RUN_PATH
19386 shlibpath_overrides_runpath=no
19387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19393 if test -d /usr/nec ;then
19394 version_type=linux # correct to gnu/linux during the next big refactor
19395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19396 soname_spec='$libname${shared_ext}.$major'
19397 shlibpath_var=LD_LIBRARY_PATH
19401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19402 version_type=freebsd-elf
19405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19406 soname_spec='${libname}${release}${shared_ext}$major'
19407 shlibpath_var=LD_LIBRARY_PATH
19408 shlibpath_overrides_runpath=yes
19409 hardcode_into_libs=yes
19410 if test "$with_gnu_ld" = yes; then
19411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19416 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19420 sys_lib_dlsearch_path_spec='/usr/lib'
19424 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19425 version_type=linux # correct to gnu/linux during the next big refactor
19428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19429 shlibpath_var=LD_LIBRARY_PATH
19430 shlibpath_overrides_runpath=no
19431 hardcode_into_libs=yes
19435 version_type=linux # correct to gnu/linux during the next big refactor
19436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19437 soname_spec='${libname}${release}${shared_ext}$major'
19438 shlibpath_var=LD_LIBRARY_PATH
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19446 $as_echo "$dynamic_linker" >&6; }
19447 test "$dynamic_linker" = no && can_build_shared=no
19449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19450 if test "$GCC" = yes; then
19451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19454 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19455 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19457 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19458 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19500 hardcode_action_CXX=
19501 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19502 test -n "$runpath_var_CXX" ||
19503 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19505 # We can hardcode non-existent directories.
19506 if test "$hardcode_direct_CXX" != no &&
19507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19508 # have to relink, otherwise we might link with an installed library
19509 # when we should be linking with a yet-to-be-installed one
19510 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19511 test "$hardcode_minus_L_CXX" != no; then
19512 # Linking always hardcodes the temporary library directory.
19513 hardcode_action_CXX=relink
19515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19516 hardcode_action_CXX=immediate
19519 # We cannot hardcode anything, or else we can only hardcode existing
19521 hardcode_action_CXX=unsupported
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19524 $as_echo "$hardcode_action_CXX" >&6; }
19526 if test "$hardcode_action_CXX" = relink ||
19527 test "$inherit_rpath_CXX" = yes; then
19528 # Fast installation is not supported
19529 enable_fast_install=no
19530 elif test "$shlibpath_overrides_runpath" = yes ||
19531 test "$enable_shared" = no; then
19532 # Fast installation is not necessary
19533 enable_fast_install=needless
19542 fi # test -n "$compiler"
19545 CFLAGS=$lt_save_CFLAGS
19549 with_gnu_ld=$lt_save_with_gnu_ld
19550 lt_cv_path_LDCXX=$lt_cv_path_LD
19551 lt_cv_path_LD=$lt_save_path_LD
19552 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19553 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19554 fi # test "$_lt_caught_CXX_error" != yes
19557 ac_cpp='$CPP $CPPFLAGS'
19558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576 ac_config_commands="$ac_config_commands libtool"
19581 # Only expand once:
19584 : ${CONFIG_LT=./config.lt}
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
19586 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
19588 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
19590 # Generated by $as_me.
19591 # Run this file to recreate a libtool stub with the current configuration.
19592 SHELL=\${CONFIG_SHELL-$SHELL}
19595 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
19596 ## -------------------- ##
19597 ## M4sh Initialization. ##
19598 ## -------------------- ##
19600 # Be more Bourne compatible
19601 DUALCASE=1; export DUALCASE # for MKS sh
19602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19605 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19606 # is contrary to our usage. Disable this feature.
19607 alias -g '${1+"$@"}'='"$@"'
19608 setopt NO_GLOB_SUBST
19610 case `(set -o) 2>/dev/null` in #(
19622 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19623 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19626 # Prefer a ksh shell builtin over an external printf program on Solaris,
19627 # but without wasting forks for bash or zsh.
19628 if test -z "$BASH_VERSION$ZSH_VERSION" \
19629 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19630 as_echo='print -r --'
19631 as_echo_n='print -rn --'
19632 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19633 as_echo='printf %s\n'
19634 as_echo_n='printf %s'
19636 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19637 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19638 as_echo_n='/usr/ucb/echo -n'
19640 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19641 as_echo_n_body='eval
19645 expr "X$arg" : "X\\(.*\\)$as_nl";
19646 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19648 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19650 export as_echo_n_body
19651 as_echo_n='sh -c $as_echo_n_body as_echo'
19653 export as_echo_body
19654 as_echo='sh -c $as_echo_body as_echo'
19657 # The user is always right.
19658 if test "${PATH_SEPARATOR+set}" != set; then
19660 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19661 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19668 # We need space, tab and new line, in precisely that order. Quoting is
19669 # there to prevent editors from complaining about space-tab.
19670 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19671 # splitting by setting IFS to empty value.)
19674 # Find who we are. Look in the path if we contain no directory separator.
19677 *[\\/]* ) as_myself=$0 ;;
19678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19679 for as_dir in $PATH
19682 test -z "$as_dir" && as_dir=.
19683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19689 # We did not find ourselves, most probably we were run as `sh COMMAND'
19690 # in which case we are not to be found in the path.
19691 if test "x$as_myself" = x; then
19694 if test ! -f "$as_myself"; then
19695 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19699 # Unset variables that we do not need and which cause bugs (e.g. in
19700 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19701 # suppresses any "Segmentation fault" message there. '((' could
19702 # trigger a bug in pdksh 5.2.14.
19703 for as_var in BASH_ENV ENV MAIL MAILPATH
19704 do eval test x\${$as_var+set} = xset \
19705 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19718 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19721 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19722 # ----------------------------------------
19723 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19724 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19725 # script with STATUS, using 1 if that was 0.
19728 as_status=$1; test $as_status -eq 0 && as_status=1
19730 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19731 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19733 $as_echo "$as_me: error: $2" >&2
19734 as_fn_exit $as_status
19738 # as_fn_set_status STATUS
19739 # -----------------------
19740 # Set $? to STATUS, without forking.
19741 as_fn_set_status ()
19744 } # as_fn_set_status
19746 # as_fn_exit STATUS
19747 # -----------------
19748 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19752 as_fn_set_status $1
19758 # Portably unset VAR.
19761 { eval $1=; unset $1;}
19763 as_unset=as_fn_unset
19764 # as_fn_append VAR VALUE
19765 # ----------------------
19766 # Append the text in VALUE to the end of the definition contained in VAR. Take
19767 # advantage of any shell optimizations that allow amortized linear growth over
19768 # repeated appends, instead of the typical quadratic growth present in naive
19770 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19771 eval 'as_fn_append ()
19782 # as_fn_arith ARG...
19783 # ------------------
19784 # Perform arithmetic evaluation on the ARGs, and store the result in the
19785 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19786 # must be portable across $(()) and expr.
19787 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19788 eval 'as_fn_arith ()
19795 as_val=`expr "$@" || test $? -eq 1`
19800 if expr a : '\(a\)' >/dev/null 2>&1 &&
19801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19807 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19808 as_basename=basename
19813 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19819 as_me=`$as_basename -- "$0" ||
19820 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19821 X"$0" : 'X\(//\)$' \| \
19822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19824 sed '/^.*\/\([^/][^/]*\)\/*$/{
19838 # Avoid depending upon Character Ranges.
19839 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19840 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19841 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19842 as_cr_digits='0123456789'
19843 as_cr_alnum=$as_cr_Letters$as_cr_digits
19845 ECHO_C= ECHO_N= ECHO_T=
19846 case `echo -n x` in #(((((
19848 case `echo 'xy\c'` in
19849 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19851 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19858 rm -f conf$$ conf$$.exe conf$$.file
19859 if test -d conf$$.dir; then
19860 rm -f conf$$.dir/conf$$.file
19863 mkdir conf$$.dir 2>/dev/null
19865 if (echo >conf$$.file) 2>/dev/null; then
19866 if ln -s conf$$.file conf$$ 2>/dev/null; then
19868 # ... but there are two gotchas:
19869 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19870 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19871 # In both cases, we have to default to `cp -p'.
19872 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19874 elif ln conf$$.file conf$$ 2>/dev/null; then
19882 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19883 rmdir conf$$.dir 2>/dev/null
19888 # Create "$as_dir" as a directory, including parents if necessary.
19893 -*) as_dir=./$as_dir;;
19895 test -d "$as_dir" || eval $as_mkdir_p || {
19899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19900 *) as_qdir=$as_dir;;
19902 as_dirs="'$as_qdir' $as_dirs"
19903 as_dir=`$as_dirname -- "$as_dir" ||
19904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19905 X"$as_dir" : 'X\(//\)[^/]' \| \
19906 X"$as_dir" : 'X\(//\)$' \| \
19907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19908 $as_echo X"$as_dir" |
19909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19913 /^X\(\/\/\)[^/].*/{
19926 test -d "$as_dir" && break
19928 test -z "$as_dirs" || eval "mkdir $as_dirs"
19929 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19933 if mkdir -p . 2>/dev/null; then
19934 as_mkdir_p='mkdir -p "$as_dir"'
19936 test -d ./-p && rmdir ./-p
19940 if test -x / >/dev/null 2>&1; then
19941 as_test_x='test -x'
19943 if ls -dL / >/dev/null 2>&1; then
19950 if test -d "$1"; then
19956 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19957 ???[sx]*):;;*)false;;esac;fi
19961 as_executable_p=$as_test_x
19963 # Sed expression to map a string onto a valid CPP name.
19964 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19966 # Sed expression to map a string onto a valid variable name.
19967 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19971 ## --------------------------------- ##
19972 ## Main body of "$CONFIG_LT" script. ##
19973 ## --------------------------------- ##
19975 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
19977 cat >>"$CONFIG_LT" <<\_LTEOF
19982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19983 ## Running $as_me. ##
19988 \`$as_me' creates a local libtool stub from the current configuration,
19989 for use in further configure time tests before the real libtool is
19992 Usage: $0 [OPTIONS]
19994 -h, --help print this help, then exit
19995 -V, --version print version number, then exit
19996 -q, --quiet do not print progress messages
19997 -d, --debug don't remove temporary files
19999 Report bugs to <bug-libtool@gnu.org>."
20002 glib config.lt 2.31.20
20003 configured by $0, generated by GNU Autoconf 2.68.
20005 Copyright (C) 2011 Free Software Foundation, Inc.
20006 This config.lt script is free software; the Free Software Foundation
20007 gives unlimited permision to copy, distribute and modify it."
20012 --version | --v* | -V )
20013 echo "$lt_cl_version"; exit 0 ;;
20014 --help | --h* | -h )
20015 echo "$lt_cl_help"; exit 0 ;;
20016 --debug | --d* | -d )
20018 --quiet | --q* | --silent | --s* | -q )
20021 -*) as_fn_error $? "unrecognized option: $1
20022 Try \`$0 --help' for more information." "$LINENO" 5 ;;
20024 *) as_fn_error $? "unrecognized argument: $1
20025 Try \`$0 --help' for more information." "$LINENO" 5 ;;
20030 if $lt_cl_silent; then
20035 cat >>"$CONFIG_LT" <<_LTEOF
20038 # The HP-UX ksh and POSIX shell print the target directory to stdout
20039 # if CDPATH is set.
20040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20042 sed_quote_subst='$sed_quote_subst'
20043 double_quote_subst='$double_quote_subst'
20044 delay_variable_subst='$delay_variable_subst'
20045 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20046 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20047 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20048 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20049 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20050 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20051 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20052 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20053 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20054 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20055 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20056 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20057 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20058 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20059 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20060 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20061 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20062 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20063 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20064 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20065 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20066 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20067 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20068 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20069 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20070 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20071 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20072 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20073 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20074 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20075 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20076 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20077 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20078 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20079 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20080 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20081 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20082 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20083 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20084 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20085 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20086 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20087 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20088 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20089 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20090 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20091 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20092 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20093 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20094 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20095 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20096 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20097 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20098 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20099 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20100 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20101 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20102 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"`'
20103 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20104 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20105 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20106 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20107 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20108 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20109 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20110 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20111 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20112 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20113 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20114 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20115 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20116 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20117 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20118 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20119 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20120 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20121 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20122 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20123 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20124 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20125 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20126 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20127 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20128 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20129 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20130 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20131 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20132 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20133 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20134 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20135 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20136 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20137 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20138 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20139 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20140 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20141 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20142 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20143 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20144 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20145 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20146 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20147 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20148 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20149 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20150 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20151 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20152 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20153 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20154 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20155 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20156 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20157 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20158 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20159 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20160 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20161 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20162 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20163 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20164 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20165 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20166 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20167 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20168 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20169 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20170 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20171 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20172 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20173 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20174 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20175 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20176 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20177 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20178 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20179 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20180 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20181 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20182 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20183 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20184 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20185 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20186 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20187 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20188 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20189 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20190 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20191 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20192 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20193 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20194 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20195 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20196 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20197 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20198 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20199 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20200 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20201 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20202 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20203 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20204 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20205 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20206 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20207 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20208 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20209 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20210 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20211 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20212 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20213 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20214 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20215 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20216 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20217 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20218 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20219 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20220 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20221 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20222 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20223 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20224 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20225 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20226 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20227 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20228 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20229 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20232 LTCFLAGS='$LTCFLAGS'
20233 compiler='$compiler_DEFAULT'
20235 # A function that is used when there is no print builtin or printf.
20236 func_fallback_echo ()
20238 eval 'cat <<_LTECHO_EOF
20243 # Quote evaled strings.
20260 deplibs_check_method \
20264 sharedlib_from_linklib_cmd \
20267 archiver_list_spec \
20273 lt_cv_sys_global_symbol_pipe \
20274 lt_cv_sys_global_symbol_to_cdecl \
20275 lt_cv_sys_global_symbol_to_c_name_address \
20276 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20277 nm_file_list_spec \
20278 lt_prog_compiler_no_builtin_flag \
20279 lt_prog_compiler_pic \
20280 lt_prog_compiler_wl \
20281 lt_prog_compiler_static \
20282 lt_cv_prog_compiler_c_o \
20291 export_dynamic_flag_spec \
20292 whole_archive_flag_spec \
20293 compiler_needs_object \
20295 allow_undefined_flag \
20296 no_undefined_flag \
20297 hardcode_libdir_flag_spec \
20298 hardcode_libdir_separator \
20302 variables_saved_for_relink \
20304 library_names_spec \
20306 install_override_mode \
20310 compiler_lib_search_dirs \
20315 compiler_lib_search_path \
20319 lt_prog_compiler_no_builtin_flag_CXX \
20320 lt_prog_compiler_pic_CXX \
20321 lt_prog_compiler_wl_CXX \
20322 lt_prog_compiler_static_CXX \
20323 lt_cv_prog_compiler_c_o_CXX \
20324 export_dynamic_flag_spec_CXX \
20325 whole_archive_flag_spec_CXX \
20326 compiler_needs_object_CXX \
20328 allow_undefined_flag_CXX \
20329 no_undefined_flag_CXX \
20330 hardcode_libdir_flag_spec_CXX \
20331 hardcode_libdir_separator_CXX \
20332 exclude_expsyms_CXX \
20333 include_expsyms_CXX \
20334 file_list_spec_CXX \
20335 compiler_lib_search_dirs_CXX \
20336 predep_objects_CXX \
20337 postdep_objects_CXX \
20340 compiler_lib_search_path_CXX; do
20341 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20342 *[\\\\\\\`\\"\\\$]*)
20343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20351 # Double-quote double-evaled strings.
20352 for var in reload_cmds \
20353 old_postinstall_cmds \
20354 old_postuninstall_cmds \
20356 extract_expsyms_cmds \
20357 old_archive_from_new_cmds \
20358 old_archive_from_expsyms_cmds \
20360 archive_expsym_cmds \
20362 module_expsym_cmds \
20363 export_symbols_cmds \
20367 postuninstall_cmds \
20369 sys_lib_search_path_spec \
20370 sys_lib_dlsearch_path_spec \
20372 old_archive_cmds_CXX \
20373 old_archive_from_new_cmds_CXX \
20374 old_archive_from_expsyms_cmds_CXX \
20376 archive_expsym_cmds_CXX \
20378 module_expsym_cmds_CXX \
20379 export_symbols_cmds_CXX \
20381 postlink_cmds_CXX; do
20382 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20383 *[\\\\\\\`\\"\\\$]*)
20384 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20387 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20392 ac_aux_dir='$ac_aux_dir'
20393 xsi_shell='$xsi_shell'
20394 lt_shell_append='$lt_shell_append'
20396 # See if we are running on zsh, and set the options which allow our
20397 # commands through without removal of \ escapes INIT.
20398 if test -n "\${ZSH_VERSION+set}" ; then
20399 setopt NO_GLOB_SUBST
20405 TIMESTAMP='$TIMESTAMP'
20415 cat >>"$CONFIG_LT" <<\_LTEOF
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
20417 $as_echo "$as_me: creating $ofile" >&6;}
20420 # See if we are running on zsh, and set the options which allow our
20421 # commands through without removal of \ escapes.
20422 if test -n "${ZSH_VERSION+set}" ; then
20423 setopt NO_GLOB_SUBST
20426 cfgfile="${ofile}T"
20427 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20430 cat <<_LT_EOF >> "$cfgfile"
20433 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20434 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20435 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20436 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20438 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20439 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20441 # Written by Gordon Matzigkeit, 1996
20443 # This file is part of GNU Libtool.
20445 # GNU Libtool is free software; you can redistribute it and/or
20446 # modify it under the terms of the GNU General Public License as
20447 # published by the Free Software Foundation; either version 2 of
20448 # the License, or (at your option) any later version.
20450 # As a special exception to the GNU General Public License,
20451 # if you distribute this file as part of a program or library that
20452 # is built using GNU Libtool, you may include this file under the
20453 # same distribution terms that you use for the rest of that program.
20455 # GNU Libtool is distributed in the hope that it will be useful,
20456 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20457 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20458 # GNU General Public License for more details.
20460 # You should have received a copy of the GNU General Public License
20461 # along with GNU Libtool; see the file COPYING. If not, a copy
20462 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20463 # obtained by writing to the Free Software Foundation, Inc.,
20464 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20467 # The names of the tagged configurations supported by this script.
20468 available_tags="CXX "
20470 # ### BEGIN LIBTOOL CONFIG
20472 # Which release of libtool.m4 was used?
20473 macro_version=$macro_version
20474 macro_revision=$macro_revision
20476 # Whether or not to build static libraries.
20477 build_old_libs=$enable_static
20479 # Assembler program.
20482 # DLL creation program.
20483 DLLTOOL=$lt_DLLTOOL
20485 # Object dumper program.
20486 OBJDUMP=$lt_OBJDUMP
20488 # Whether or not to build shared libraries.
20489 build_libtool_libs=$enable_shared
20491 # What type of objects to build.
20494 # Whether or not to optimize for fast installation.
20495 fast_install=$enable_fast_install
20497 # Shell to use when invoking shell scripts.
20500 # An echo program that protects backslashes.
20503 # The PATH separator for the build system.
20504 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20507 host_alias=$host_alias
20511 # The build system.
20512 build_alias=$build_alias
20516 # A sed program that does not truncate output.
20519 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20520 Xsed="\$SED -e 1s/^X//"
20522 # A grep program that handles long lines.
20528 # A literal string matcher.
20531 # A BSD- or MS-compatible name lister.
20534 # Whether we need soft or hard links.
20537 # What is the maximum length of a command?
20538 max_cmd_len=$max_cmd_len
20540 # Object file suffix (normally "o").
20543 # Executable file suffix (normally "").
20546 # whether the shell understands "unset".
20549 # turn spaces into newlines.
20552 # turn newlines into spaces.
20555 # convert \$build file names to \$host format.
20556 to_host_file_cmd=$lt_cv_to_host_file_cmd
20558 # convert \$build files to toolchain format.
20559 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20561 # Method to check whether dependent libraries are shared objects.
20562 deplibs_check_method=$lt_deplibs_check_method
20564 # Command to use when deplibs_check_method = "file_magic".
20565 file_magic_cmd=$lt_file_magic_cmd
20567 # How to find potential files when deplibs_check_method = "file_magic".
20568 file_magic_glob=$lt_file_magic_glob
20570 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20571 want_nocaseglob=$lt_want_nocaseglob
20573 # Command to associate shared and link libraries.
20574 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20579 # Flags to create an archive.
20580 AR_FLAGS=$lt_AR_FLAGS
20582 # How to feed a file listing to the archiver.
20583 archiver_list_spec=$lt_archiver_list_spec
20585 # A symbol stripping program.
20588 # Commands used to install an old-style archive.
20590 old_postinstall_cmds=$lt_old_postinstall_cmds
20591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20593 # Whether to use a lock for old archive extraction.
20594 lock_old_archive_extraction=$lock_old_archive_extraction
20599 # LTCC compiler flags.
20600 LTCFLAGS=$lt_CFLAGS
20602 # Take the output of nm and produce a listing of raw symbols and C names.
20603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20605 # Transform the output of nm in a proper C declaration.
20606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20608 # Transform the output of nm in a C name address pair.
20609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20611 # Transform the output of nm in a C name address pair when lib prefix is needed.
20612 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20614 # Specify filename containing input files for \$NM.
20615 nm_file_list_spec=$lt_nm_file_list_spec
20617 # The root where to search for dependent libraries,and in which our libraries should be installed.
20618 lt_sysroot=$lt_sysroot
20620 # The name of the directory that contains temporary libtool files.
20623 # Used to examine libraries when file_magic_cmd begins with "file".
20624 MAGIC_CMD=$MAGIC_CMD
20626 # Must we lock files when doing compilation?
20627 need_locks=$lt_need_locks
20630 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20632 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20633 DSYMUTIL=$lt_DSYMUTIL
20635 # Tool to change global to local symbols on Mac OS X.
20638 # Tool to manipulate fat objects and archives on Mac OS X.
20641 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20644 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20645 OTOOL64=$lt_OTOOL64
20647 # Old archive suffix (normally "a").
20650 # Shared library suffix (normally ".so").
20651 shrext_cmds=$lt_shrext_cmds
20653 # The commands to extract the exported symbol list from a shared archive.
20654 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20656 # Variables whose values should be saved in libtool wrapper scripts and
20657 # restored at link time.
20658 variables_saved_for_relink=$lt_variables_saved_for_relink
20660 # Do we need the "lib" prefix for modules?
20661 need_lib_prefix=$need_lib_prefix
20663 # Do we need a version for libraries?
20664 need_version=$need_version
20666 # Library versioning type.
20667 version_type=$version_type
20669 # Shared library runtime path variable.
20670 runpath_var=$runpath_var
20672 # Shared library path variable.
20673 shlibpath_var=$shlibpath_var
20675 # Is shlibpath searched before the hard-coded library search path?
20676 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20678 # Format of library name prefix.
20679 libname_spec=$lt_libname_spec
20681 # List of archive names. First name is the real one, the rest are links.
20682 # The last name is the one that the linker finds with -lNAME
20683 library_names_spec=$lt_library_names_spec
20685 # The coded name of the library, if different from the real name.
20686 soname_spec=$lt_soname_spec
20688 # Permission mode override for installation of shared libraries.
20689 install_override_mode=$lt_install_override_mode
20691 # Command to use after installation of a shared archive.
20692 postinstall_cmds=$lt_postinstall_cmds
20694 # Command to use after uninstallation of a shared archive.
20695 postuninstall_cmds=$lt_postuninstall_cmds
20697 # Commands used to finish a libtool library installation in a directory.
20698 finish_cmds=$lt_finish_cmds
20700 # As "finish_cmds", except a single script fragment to be evaled but
20702 finish_eval=$lt_finish_eval
20704 # Whether we should hardcode library paths into libraries.
20705 hardcode_into_libs=$hardcode_into_libs
20707 # Compile-time system search path for libraries.
20708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20710 # Run-time system search path for libraries.
20711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20713 # Whether dlopen is supported.
20714 dlopen_support=$enable_dlopen
20716 # Whether dlopen of programs is supported.
20717 dlopen_self=$enable_dlopen_self
20719 # Whether dlopen of statically linked programs is supported.
20720 dlopen_self_static=$enable_dlopen_self_static
20722 # Commands to strip libraries.
20723 old_striplib=$lt_old_striplib
20724 striplib=$lt_striplib
20727 # The linker used to build libraries.
20730 # How to create reloadable object files.
20731 reload_flag=$lt_reload_flag
20732 reload_cmds=$lt_reload_cmds
20734 # Commands used to build an old-style archive.
20735 old_archive_cmds=$lt_old_archive_cmds
20737 # A language specific compiler.
20740 # Is the compiler the GNU compiler?
20743 # Compiler flag to turn off builtin functions.
20744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20746 # Additional compiler flags for building library objects.
20747 pic_flag=$lt_lt_prog_compiler_pic
20749 # How to pass a linker flag through the compiler.
20750 wl=$lt_lt_prog_compiler_wl
20752 # Compiler flag to prevent dynamic linking.
20753 link_static_flag=$lt_lt_prog_compiler_static
20755 # Does compiler simultaneously support -c and -o options?
20756 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20758 # Whether or not to add -lc for building shared libraries.
20759 build_libtool_need_lc=$archive_cmds_need_lc
20761 # Whether or not to disallow shared libs when runtime libs are static.
20762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20764 # Compiler flag to allow reflexive dlopens.
20765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20767 # Compiler flag to generate shared objects directly from archives.
20768 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20770 # Whether the compiler copes with passing no objects directly.
20771 compiler_needs_object=$lt_compiler_needs_object
20773 # Create an old-style archive from a shared archive.
20774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20776 # Create a temporary old-style archive to link instead of a shared archive.
20777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20779 # Commands used to build a shared archive.
20780 archive_cmds=$lt_archive_cmds
20781 archive_expsym_cmds=$lt_archive_expsym_cmds
20783 # Commands used to build a loadable module if different from building
20784 # a shared archive.
20785 module_cmds=$lt_module_cmds
20786 module_expsym_cmds=$lt_module_expsym_cmds
20788 # Whether we are building with GNU ld or not.
20789 with_gnu_ld=$lt_with_gnu_ld
20791 # Flag that allows shared libraries with undefined symbols to be built.
20792 allow_undefined_flag=$lt_allow_undefined_flag
20794 # Flag that enforces no undefined symbols.
20795 no_undefined_flag=$lt_no_undefined_flag
20797 # Flag to hardcode \$libdir into a binary during linking.
20798 # This must work even if \$libdir does not exist
20799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20801 # Whether we need a single "-rpath" flag with a separated argument.
20802 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20804 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20805 # DIR into the resulting binary.
20806 hardcode_direct=$hardcode_direct
20808 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20809 # DIR into the resulting binary and the resulting library dependency is
20810 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20811 # library is relocated.
20812 hardcode_direct_absolute=$hardcode_direct_absolute
20814 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20815 # into the resulting binary.
20816 hardcode_minus_L=$hardcode_minus_L
20818 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20819 # into the resulting binary.
20820 hardcode_shlibpath_var=$hardcode_shlibpath_var
20822 # Set to "yes" if building a shared library automatically hardcodes DIR
20823 # into the library and all subsequent libraries and executables linked
20825 hardcode_automatic=$hardcode_automatic
20827 # Set to yes if linker adds runtime paths of dependent libraries
20828 # to runtime path list.
20829 inherit_rpath=$inherit_rpath
20831 # Whether libtool must link a program against all its dependency libraries.
20832 link_all_deplibs=$link_all_deplibs
20834 # Set to "yes" if exported symbols are required.
20835 always_export_symbols=$always_export_symbols
20837 # The commands to list exported symbols.
20838 export_symbols_cmds=$lt_export_symbols_cmds
20840 # Symbols that should not be listed in the preloaded symbols.
20841 exclude_expsyms=$lt_exclude_expsyms
20843 # Symbols that must always be exported.
20844 include_expsyms=$lt_include_expsyms
20846 # Commands necessary for linking programs (against libraries) with templates.
20847 prelink_cmds=$lt_prelink_cmds
20849 # Commands necessary for finishing linking programs.
20850 postlink_cmds=$lt_postlink_cmds
20852 # Specify filename containing input files.
20853 file_list_spec=$lt_file_list_spec
20855 # How to hardcode a shared library path into an executable.
20856 hardcode_action=$hardcode_action
20858 # The directories searched by this compiler when creating a shared library.
20859 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20861 # Dependencies to place before and after the objects being linked to
20862 # create a shared library.
20863 predep_objects=$lt_predep_objects
20864 postdep_objects=$lt_postdep_objects
20865 predeps=$lt_predeps
20866 postdeps=$lt_postdeps
20868 # The library search path used internally by the compiler when linking
20869 # a shared library.
20870 compiler_lib_search_path=$lt_compiler_lib_search_path
20872 # ### END LIBTOOL CONFIG
20878 cat <<\_LT_EOF >> "$cfgfile"
20879 # AIX sometimes has problems with the GCC collect2 program. For some
20880 # reason, if we set the COLLECT_NAMES environment variable, the problems
20881 # vanish in a puff of smoke.
20882 if test "X${COLLECT_NAMES+set}" != Xset; then
20884 export COLLECT_NAMES
20891 ltmain="$ac_aux_dir/ltmain.sh"
20894 # We use sed instead of cat because bash on DJGPP gets confused if
20895 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20896 # text mode, it properly converts lines to CR/LF. This bash problem
20897 # is reportedly fixed, but why not run on old versions too?
20898 sed '$q' "$ltmain" >> "$cfgfile" \
20899 || (rm -f "$cfgfile"; exit 1)
20901 if test x"$xsi_shell" = xyes; then
20902 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20906 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20907 \ * ) func_dirname_result="${3}" ;;\
20909 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20910 && mv -f "$cfgfile.tmp" "$cfgfile" \
20911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20912 test 0 -eq $? || _lt_function_replace_fail=:
20915 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20918 \ func_basename_result="${1##*/}"\
20919 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20920 && mv -f "$cfgfile.tmp" "$cfgfile" \
20921 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20922 test 0 -eq $? || _lt_function_replace_fail=:
20925 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20926 func_dirname_and_basename ()\
20929 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20930 \ * ) func_dirname_result="${3}" ;;\
20932 \ func_basename_result="${1##*/}"\
20933 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20934 && mv -f "$cfgfile.tmp" "$cfgfile" \
20935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20936 test 0 -eq $? || _lt_function_replace_fail=:
20939 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20942 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20943 \ # positional parameters, so assign one to ordinary parameter first.\
20944 \ func_stripname_result=${3}\
20945 \ func_stripname_result=${func_stripname_result#"${1}"}\
20946 \ func_stripname_result=${func_stripname_result%"${2}"}\
20947 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20948 && mv -f "$cfgfile.tmp" "$cfgfile" \
20949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20950 test 0 -eq $? || _lt_function_replace_fail=:
20953 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20954 func_split_long_opt ()\
20956 \ func_split_long_opt_name=${1%%=*}\
20957 \ func_split_long_opt_arg=${1#*=}\
20958 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20959 && mv -f "$cfgfile.tmp" "$cfgfile" \
20960 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20961 test 0 -eq $? || _lt_function_replace_fail=:
20964 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20965 func_split_short_opt ()\
20967 \ func_split_short_opt_arg=${1#??}\
20968 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20969 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20970 && mv -f "$cfgfile.tmp" "$cfgfile" \
20971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20972 test 0 -eq $? || _lt_function_replace_fail=:
20975 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20979 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20980 \ *) func_lo2o_result=${1} ;;\
20982 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20983 && mv -f "$cfgfile.tmp" "$cfgfile" \
20984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20985 test 0 -eq $? || _lt_function_replace_fail=:
20988 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20991 func_xform_result=${1%.*}.lo\
20992 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20993 && mv -f "$cfgfile.tmp" "$cfgfile" \
20994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20995 test 0 -eq $? || _lt_function_replace_fail=:
20998 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21001 func_arith_result=$(( $* ))\
21002 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21003 && mv -f "$cfgfile.tmp" "$cfgfile" \
21004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21005 test 0 -eq $? || _lt_function_replace_fail=:
21008 sed -e '/^func_len ()$/,/^} # func_len /c\
21011 func_len_result=${#1}\
21012 } # Extended-shell func_len 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=:
21019 if test x"$lt_shell_append" = xyes; then
21020 sed -e '/^func_append ()$/,/^} # func_append /c\
21023 eval "${1}+=\\${2}"\
21024 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21025 && mv -f "$cfgfile.tmp" "$cfgfile" \
21026 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21027 test 0 -eq $? || _lt_function_replace_fail=:
21030 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21031 func_append_quoted ()\
21033 \ func_quote_for_eval "${2}"\
21034 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21035 } # Extended-shell func_append_quoted 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 # Save a `func_append' function call where possible by direct use of '+='
21042 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21043 && mv -f "$cfgfile.tmp" "$cfgfile" \
21044 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21045 test 0 -eq $? || _lt_function_replace_fail=:
21047 # Save a `func_append' function call even when '+=' is not available
21048 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21049 && mv -f "$cfgfile.tmp" "$cfgfile" \
21050 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21051 test 0 -eq $? || _lt_function_replace_fail=:
21054 if test x"$_lt_function_replace_fail" = x":"; then
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21056 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21060 mv -f "$cfgfile" "$ofile" ||
21061 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21065 cat <<_LT_EOF >> "$ofile"
21067 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21069 # The linker used to build libraries.
21072 # How to create reloadable object files.
21073 reload_flag=$lt_reload_flag_CXX
21074 reload_cmds=$lt_reload_cmds_CXX
21076 # Commands used to build an old-style archive.
21077 old_archive_cmds=$lt_old_archive_cmds_CXX
21079 # A language specific compiler.
21080 CC=$lt_compiler_CXX
21082 # Is the compiler the GNU compiler?
21085 # Compiler flag to turn off builtin functions.
21086 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21088 # Additional compiler flags for building library objects.
21089 pic_flag=$lt_lt_prog_compiler_pic_CXX
21091 # How to pass a linker flag through the compiler.
21092 wl=$lt_lt_prog_compiler_wl_CXX
21094 # Compiler flag to prevent dynamic linking.
21095 link_static_flag=$lt_lt_prog_compiler_static_CXX
21097 # Does compiler simultaneously support -c and -o options?
21098 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21100 # Whether or not to add -lc for building shared libraries.
21101 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21103 # Whether or not to disallow shared libs when runtime libs are static.
21104 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21106 # Compiler flag to allow reflexive dlopens.
21107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21109 # Compiler flag to generate shared objects directly from archives.
21110 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21112 # Whether the compiler copes with passing no objects directly.
21113 compiler_needs_object=$lt_compiler_needs_object_CXX
21115 # Create an old-style archive from a shared archive.
21116 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21118 # Create a temporary old-style archive to link instead of a shared archive.
21119 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21121 # Commands used to build a shared archive.
21122 archive_cmds=$lt_archive_cmds_CXX
21123 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21125 # Commands used to build a loadable module if different from building
21126 # a shared archive.
21127 module_cmds=$lt_module_cmds_CXX
21128 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21130 # Whether we are building with GNU ld or not.
21131 with_gnu_ld=$lt_with_gnu_ld_CXX
21133 # Flag that allows shared libraries with undefined symbols to be built.
21134 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21136 # Flag that enforces no undefined symbols.
21137 no_undefined_flag=$lt_no_undefined_flag_CXX
21139 # Flag to hardcode \$libdir into a binary during linking.
21140 # This must work even if \$libdir does not exist
21141 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21143 # Whether we need a single "-rpath" flag with a separated argument.
21144 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21146 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21147 # DIR into the resulting binary.
21148 hardcode_direct=$hardcode_direct_CXX
21150 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21151 # DIR into the resulting binary and the resulting library dependency is
21152 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21153 # library is relocated.
21154 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21156 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21157 # into the resulting binary.
21158 hardcode_minus_L=$hardcode_minus_L_CXX
21160 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21161 # into the resulting binary.
21162 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21164 # Set to "yes" if building a shared library automatically hardcodes DIR
21165 # into the library and all subsequent libraries and executables linked
21167 hardcode_automatic=$hardcode_automatic_CXX
21169 # Set to yes if linker adds runtime paths of dependent libraries
21170 # to runtime path list.
21171 inherit_rpath=$inherit_rpath_CXX
21173 # Whether libtool must link a program against all its dependency libraries.
21174 link_all_deplibs=$link_all_deplibs_CXX
21176 # Set to "yes" if exported symbols are required.
21177 always_export_symbols=$always_export_symbols_CXX
21179 # The commands to list exported symbols.
21180 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21182 # Symbols that should not be listed in the preloaded symbols.
21183 exclude_expsyms=$lt_exclude_expsyms_CXX
21185 # Symbols that must always be exported.
21186 include_expsyms=$lt_include_expsyms_CXX
21188 # Commands necessary for linking programs (against libraries) with templates.
21189 prelink_cmds=$lt_prelink_cmds_CXX
21191 # Commands necessary for finishing linking programs.
21192 postlink_cmds=$lt_postlink_cmds_CXX
21194 # Specify filename containing input files.
21195 file_list_spec=$lt_file_list_spec_CXX
21197 # How to hardcode a shared library path into an executable.
21198 hardcode_action=$hardcode_action_CXX
21200 # The directories searched by this compiler when creating a shared library.
21201 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21203 # Dependencies to place before and after the objects being linked to
21204 # create a shared library.
21205 predep_objects=$lt_predep_objects_CXX
21206 postdep_objects=$lt_postdep_objects_CXX
21207 predeps=$lt_predeps_CXX
21208 postdeps=$lt_postdeps_CXX
21210 # The library search path used internally by the compiler when linking
21211 # a shared library.
21212 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21214 # ### END LIBTOOL TAG CONFIG: CXX
21220 chmod +x "$CONFIG_LT"
21222 # configure is writing to config.log, but config.lt does its own redirection,
21223 # appending to config.log, which fails on DOS, as config.log is still kept
21224 # open by configure. Here we exec the FD to /dev/null, effectively closing
21225 # config.log, so it can be properly (re)opened and appended to by config.lt.
21227 test "$silent" = yes &&
21228 lt_config_lt_args="$lt_config_lt_args --quiet"
21230 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
21232 $lt_cl_success || as_fn_exit 1
21236 if test "x$GCC" = "xyes"; then
21237 case " $CFLAGS " in
21238 *[\ \ ]-Wall[\ \ ]*) ;;
21239 *) CFLAGS="$CFLAGS -Wall" ;;
21243 if test "$glib_native_win32" = "yes"; then
21244 if test x$enable_static = xyes -a x$enable_shared = xyes; then
21245 as_fn_error $? "Can not build both shared and static at the same time on Windows." "$LINENO" 5
21247 if test x$enable_static = xyes; then
21248 glib_win32_static_compilation=yes
21249 GLIB_WIN32_STATIC_COMPILATION_DEFINE="#define GLIB_STATIC_COMPILATION 1
21250 #define GOBJECT_STATIC_COMPILATION 1"
21254 if test x$glib_native_win32 = xyes -a x$glib_win32_static_compilation != xyes; then
21255 OS_WIN32_AND_DLL_COMPILATION_TRUE=
21256 OS_WIN32_AND_DLL_COMPILATION_FALSE='#'
21258 OS_WIN32_AND_DLL_COMPILATION_TRUE='#'
21259 OS_WIN32_AND_DLL_COMPILATION_FALSE=
21263 if test $cross_compiling != yes ; then
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags to get ANSI library prototypes" >&5
21265 $as_echo_n "checking for extra flags to get ANSI library prototypes... " >&6; }
21266 glib_save_LIBS=$LIBS
21268 if test "$cross_compiling" = yes; then :
21269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21271 as_fn_error $? "cannot run test program while cross compiling
21272 See \`config.log' for more details" "$LINENO" 5; }
21274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275 /* end confdefs.h. */
21277 int main (void) { return (log(1) != log(1.)); }
21279 if ac_fn_c_try_run "$LINENO"; then :
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
21281 $as_echo "none needed" >&6; }
21283 glib_save_CFLAGS=$CFLAGS
21284 CFLAGS="$CFLAGS -std1"
21285 if test "$cross_compiling" = yes; then :
21286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21288 as_fn_error $? "cannot run test program while cross compiling
21289 See \`config.log' for more details" "$LINENO" 5; }
21291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21292 /* end confdefs.h. */
21294 int main (void) { return (log(1) != log(1.)); }
21296 if ac_fn_c_try_run "$LINENO"; then :
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -std1" >&5
21298 $as_echo "-std1" >&6; }
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21302 CFLAGS=$glib_save_CFLAGS
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
21304 $as_echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
21307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21308 conftest.$ac_objext conftest.beam conftest.$ac_ext
21313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21314 conftest.$ac_objext conftest.beam conftest.$ac_ext
21317 LIBS=$glib_save_LIBS
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags for POSIX compliance" >&5
21321 $as_echo_n "checking for extra flags for POSIX compliance... " >&6; }
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h. */
21324 #include <dirent.h>
21333 if ac_fn_c_try_compile "$LINENO"; then :
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
21335 $as_echo "none needed" >&6; }
21337 glib_save_CFLAGS=$CFLAGS
21338 CFLAGS="$CFLAGS -posix"
21339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21340 /* end confdefs.h. */
21341 #include <dirent.h>
21350 if ac_fn_c_try_compile "$LINENO"; then :
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -posix" >&5
21352 $as_echo "-posix" >&6; }
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21356 CFLAGS=$glib_save_CFLAGS
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
21358 $as_echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
21360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21364 # Checks for library functions.
21365 for ac_func in vprintf
21367 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21368 if test "x$ac_cv_func_vprintf" = xyes; then :
21369 cat >>confdefs.h <<_ACEOF
21370 #define HAVE_VPRINTF 1
21373 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21374 if test "x$ac_cv_func__doprnt" = xyes; then :
21376 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21384 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21385 if test "x$ac_cv_type_size_t" = xyes; then :
21389 cat >>confdefs.h <<_ACEOF
21390 #define size_t unsigned int
21395 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21396 # for constant arguments. Useless!
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21398 $as_echo_n "checking for working alloca.h... " >&6; }
21399 if ${ac_cv_working_alloca_h+:} false; then :
21400 $as_echo_n "(cached) " >&6
21402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21403 /* end confdefs.h. */
21404 #include <alloca.h>
21408 char *p = (char *) alloca (2 * sizeof (int));
21414 if ac_fn_c_try_link "$LINENO"; then :
21415 ac_cv_working_alloca_h=yes
21417 ac_cv_working_alloca_h=no
21419 rm -f core conftest.err conftest.$ac_objext \
21420 conftest$ac_exeext conftest.$ac_ext
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21423 $as_echo "$ac_cv_working_alloca_h" >&6; }
21424 if test $ac_cv_working_alloca_h = yes; then
21426 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21431 $as_echo_n "checking for alloca... " >&6; }
21432 if ${ac_cv_func_alloca_works+:} false; then :
21433 $as_echo_n "(cached) " >&6
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21438 # define alloca __builtin_alloca
21441 # include <malloc.h>
21442 # define alloca _alloca
21444 # ifdef HAVE_ALLOCA_H
21445 # include <alloca.h>
21450 # ifndef alloca /* predefined by HP cc +Olibcalls */
21451 void *alloca (size_t);
21461 char *p = (char *) alloca (1);
21467 if ac_fn_c_try_link "$LINENO"; then :
21468 ac_cv_func_alloca_works=yes
21470 ac_cv_func_alloca_works=no
21472 rm -f core conftest.err conftest.$ac_objext \
21473 conftest$ac_exeext conftest.$ac_ext
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21476 $as_echo "$ac_cv_func_alloca_works" >&6; }
21478 if test $ac_cv_func_alloca_works = yes; then
21480 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21483 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21484 # that cause trouble. Some versions do not even contain alloca or
21485 # contain a buggy version. If you still want to use their alloca,
21486 # use ar to extract alloca.o from them instead of compiling alloca.c.
21488 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21490 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21494 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21495 if ${ac_cv_os_cray+:} false; then :
21496 $as_echo_n "(cached) " >&6
21498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21499 /* end confdefs.h. */
21500 #if defined CRAY && ! defined CRAY2
21507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21508 $EGREP "webecray" >/dev/null 2>&1; then :
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21517 $as_echo "$ac_cv_os_cray" >&6; }
21518 if test $ac_cv_os_cray = yes; then
21519 for ac_func in _getb67 GETB67 getb67; do
21520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21521 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21522 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21524 cat >>confdefs.h <<_ACEOF
21525 #define CRAY_STACKSEG_END $ac_func
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21535 $as_echo_n "checking stack direction for C alloca... " >&6; }
21536 if ${ac_cv_c_stack_direction+:} false; then :
21537 $as_echo_n "(cached) " >&6
21539 if test "$cross_compiling" = yes; then :
21540 ac_cv_c_stack_direction=0
21542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21544 $ac_includes_default
21546 find_stack_direction ()
21548 static char *addr = 0;
21553 return find_stack_direction ();
21556 return (&dummy > addr) ? 1 : -1;
21562 return find_stack_direction () < 0;
21565 if ac_fn_c_try_run "$LINENO"; then :
21566 ac_cv_c_stack_direction=1
21568 ac_cv_c_stack_direction=-1
21570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21571 conftest.$ac_objext conftest.beam conftest.$ac_ext
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21576 $as_echo "$ac_cv_c_stack_direction" >&6; }
21577 cat >>confdefs.h <<_ACEOF
21578 #define STACK_DIRECTION $ac_cv_c_stack_direction
21584 for ac_func in mmap posix_memalign memalign valloc fsync pipe2
21586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21589 cat >>confdefs.h <<_ACEOF
21590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21596 for ac_func in atexit on_exit timegm gmtime_r
21598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21601 cat >>confdefs.h <<_ACEOF
21602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21609 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
21610 if test "x$ac_cv_func_qsort_r" = xyes; then :
21615 # BSD has a qsort_r with wrong argument order
21616 if test x$ac_cv_func_qsort_r = xyes ; then
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if qsort_r uses glibc compatible argument order" >&5
21618 $as_echo_n "checking if qsort_r uses glibc compatible argument order... " >&6; }
21619 if ${glib_cv_have_qsort_r+:} false; then :
21620 $as_echo_n "(cached) " >&6
21623 if test "$cross_compiling" = yes; then :
21624 glib_cv_have_qsort_r=no
21626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21627 /* end confdefs.h. */
21629 #define _GNU_SOURCE
21630 #include <stdlib.h>
21633 cmp (const void *a, const void *b, void *c)
21640 else if (*ia > *ib)
21647 main (int argc, char **argv)
21649 int arr[3] = { 1, 2, 0 };
21652 qsort_r (arr, 3, sizeof (int), cmp, &d);
21654 if (arr[0] == 0 && arr[1] == 1 && arr[2] == 2)
21660 if ac_fn_c_try_run "$LINENO"; then :
21661 glib_cv_have_qsort_r=yes
21663 glib_cv_have_qsort_r=no
21665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21666 conftest.$ac_objext conftest.beam conftest.$ac_ext
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_qsort_r" >&5
21671 $as_echo "$glib_cv_have_qsort_r" >&6; }
21674 if test x$glib_cv_have_qsort_r = xyes ; then
21676 $as_echo "#define HAVE_QSORT_R 1" >>confdefs.h
21680 # The cast to long int works around a bug in the HP C Compiler
21681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21683 # This bug is HP SR number 8606223364.
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
21685 $as_echo_n "checking size of char... " >&6; }
21686 if ${ac_cv_sizeof_char+:} false; then :
21687 $as_echo_n "(cached) " >&6
21689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
21692 if test "$ac_cv_type_char" = yes; then
21693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21695 as_fn_error 77 "cannot compute sizeof (char)
21696 See \`config.log' for more details" "$LINENO" 5; }
21698 ac_cv_sizeof_char=0
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
21704 $as_echo "$ac_cv_sizeof_char" >&6; }
21708 cat >>confdefs.h <<_ACEOF
21709 #define SIZEOF_CHAR $ac_cv_sizeof_char
21713 # The cast to long int works around a bug in the HP C Compiler
21714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21716 # This bug is HP SR number 8606223364.
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
21718 $as_echo_n "checking size of short... " >&6; }
21719 if ${ac_cv_sizeof_short+:} false; then :
21720 $as_echo_n "(cached) " >&6
21722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
21725 if test "$ac_cv_type_short" = yes; then
21726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21728 as_fn_error 77 "cannot compute sizeof (short)
21729 See \`config.log' for more details" "$LINENO" 5; }
21731 ac_cv_sizeof_short=0
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21737 $as_echo "$ac_cv_sizeof_short" >&6; }
21741 cat >>confdefs.h <<_ACEOF
21742 #define SIZEOF_SHORT $ac_cv_sizeof_short
21746 # The cast to long int works around a bug in the HP C Compiler
21747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21749 # This bug is HP SR number 8606223364.
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21751 $as_echo_n "checking size of long... " >&6; }
21752 if ${ac_cv_sizeof_long+:} false; then :
21753 $as_echo_n "(cached) " >&6
21755 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
21758 if test "$ac_cv_type_long" = yes; then
21759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21761 as_fn_error 77 "cannot compute sizeof (long)
21762 See \`config.log' for more details" "$LINENO" 5; }
21764 ac_cv_sizeof_long=0
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21770 $as_echo "$ac_cv_sizeof_long" >&6; }
21774 cat >>confdefs.h <<_ACEOF
21775 #define SIZEOF_LONG $ac_cv_sizeof_long
21779 # The cast to long int works around a bug in the HP C Compiler
21780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21782 # This bug is HP SR number 8606223364.
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21784 $as_echo_n "checking size of int... " >&6; }
21785 if ${ac_cv_sizeof_int+:} false; then :
21786 $as_echo_n "(cached) " >&6
21788 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
21791 if test "$ac_cv_type_int" = yes; then
21792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21794 as_fn_error 77 "cannot compute sizeof (int)
21795 See \`config.log' for more details" "$LINENO" 5; }
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21803 $as_echo "$ac_cv_sizeof_int" >&6; }
21807 cat >>confdefs.h <<_ACEOF
21808 #define SIZEOF_INT $ac_cv_sizeof_int
21812 # The cast to long int works around a bug in the HP C Compiler
21813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21815 # This bug is HP SR number 8606223364.
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
21817 $as_echo_n "checking size of void *... " >&6; }
21818 if ${ac_cv_sizeof_void_p+:} false; then :
21819 $as_echo_n "(cached) " >&6
21821 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
21824 if test "$ac_cv_type_void_p" = yes; then
21825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21827 as_fn_error 77 "cannot compute sizeof (void *)
21828 See \`config.log' for more details" "$LINENO" 5; }
21830 ac_cv_sizeof_void_p=0
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
21836 $as_echo "$ac_cv_sizeof_void_p" >&6; }
21840 cat >>confdefs.h <<_ACEOF
21841 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21845 # The cast to long int works around a bug in the HP C Compiler
21846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21848 # This bug is HP SR number 8606223364.
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
21850 $as_echo_n "checking size of long long... " >&6; }
21851 if ${ac_cv_sizeof_long_long+:} false; then :
21852 $as_echo_n "(cached) " >&6
21854 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
21857 if test "$ac_cv_type_long_long" = yes; then
21858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21860 as_fn_error 77 "cannot compute sizeof (long long)
21861 See \`config.log' for more details" "$LINENO" 5; }
21863 ac_cv_sizeof_long_long=0
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
21869 $as_echo "$ac_cv_sizeof_long_long" >&6; }
21873 cat >>confdefs.h <<_ACEOF
21874 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21878 # The cast to long int works around a bug in the HP C Compiler
21879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21881 # This bug is HP SR number 8606223364.
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
21883 $as_echo_n "checking size of __int64... " >&6; }
21884 if ${ac_cv_sizeof___int64+:} false; then :
21885 $as_echo_n "(cached) " >&6
21887 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
21890 if test "$ac_cv_type___int64" = yes; then
21891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21893 as_fn_error 77 "cannot compute sizeof (__int64)
21894 See \`config.log' for more details" "$LINENO" 5; }
21896 ac_cv_sizeof___int64=0
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
21902 $as_echo "$ac_cv_sizeof___int64" >&6; }
21906 cat >>confdefs.h <<_ACEOF
21907 #define SIZEOF___INT64 $ac_cv_sizeof___int64
21912 if test x$ac_cv_sizeof_long = x8 || test x$ac_cv_sizeof_long_long = x8 || test x$ac_cv_sizeof___int64 = x8 ; then
21916 *** GLib requires a 64 bit type. You might want to consider
21917 *** using the GNU C compiler.
21921 if test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8; then
21922 # long long is a 64 bit integer.
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
21924 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
21925 if ${glib_cv_long_long_format+:} false; then :
21926 $as_echo_n "(cached) " >&6
21929 for format in ll q I64; do
21930 if test "$cross_compiling" = yes; then :
21933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934 /* end confdefs.h. */
21938 long long b, a = -0x3AFAFAFAFAFAFAFALL;
21940 sprintf (buffer, "%${format}u", a);
21941 sscanf (buffer, "%${format}u", &b);
21946 if ac_fn_c_try_run "$LINENO"; then :
21947 glib_cv_long_long_format=${format}
21950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21951 conftest.$ac_objext conftest.beam conftest.$ac_ext
21957 if test -n "$glib_cv_long_long_format"; then
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
21959 $as_echo "%${glib_cv_long_long_format}u" >&6; }
21961 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
21963 if test x"$glib_cv_long_long_format" = xI64; then
21965 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
21970 $as_echo "none" >&6; }
21972 elif test x$ac_cv_sizeof___int64 = x8; then
21973 # __int64 is a 64 bit integer.
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
21975 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
21976 # We know this is MSVCRT.DLL, and what the formats are
21977 glib_cv_long_long_format=I64
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
21979 $as_echo "%${glib_cv_long_long_format}u" >&6; }
21981 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
21984 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21989 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21990 if ${ac_cv_c_const+:} false; then :
21991 $as_echo_n "(cached) " >&6
21993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21994 /* end confdefs.h. */
21999 /* FIXME: Include the comments suggested by Paul. */
22000 #ifndef __cplusplus
22001 /* Ultrix mips cc rejects this. */
22002 typedef int charset[2];
22004 /* SunOS 4.1.1 cc rejects this. */
22005 char const *const *pcpcc;
22007 /* NEC SVR4.0.2 mips cc rejects this. */
22008 struct point {int x, y;};
22009 static struct point const zero = {0,0};
22010 /* AIX XL C 1.02.0.0 rejects this.
22011 It does not let you subtract one const X* pointer from another in
22012 an arm of an if-expression whose if-part is not a constant
22014 const char *g = "string";
22015 pcpcc = &g + (g ? g-g : 0);
22016 /* HPUX 7.0 cc rejects these. */
22018 ppc = (char**) pcpcc;
22019 pcpcc = (char const *const *) ppc;
22020 { /* SCO 3.2v4 cc rejects this. */
22022 char const *s = 0 ? (char *) 0 : (char const *) 0;
22027 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22028 int x[] = {25, 17};
22029 const int *foo = &x[0];
22032 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22033 typedef const int *iptr;
22037 { /* AIX XL C 1.02.0.0 rejects this saying
22038 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22039 struct s { int j; const int *ap[3]; };
22040 struct s *b; b->j = 5;
22042 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22043 const int foo = 10;
22044 if (!foo) return 0;
22046 return !cs[0] && !zero.x;
22053 if ac_fn_c_try_compile "$LINENO"; then :
22058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22061 $as_echo "$ac_cv_c_const" >&6; }
22062 if test $ac_cv_c_const = no; then
22064 $as_echo "#define const /**/" >>confdefs.h
22069 SANE_MALLOC_PROTOS=no
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc() and friends prototypes are gmem.h compatible" >&5
22071 $as_echo_n "checking if malloc() and friends prototypes are gmem.h compatible... " >&6; }
22072 glib_save_CFLAGS=$CFLAGS
22073 if test "x$GCC" = "xyes"; then
22074 CFLAGS="$CFLAGS -Werror"
22075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076 /* end confdefs.h. */
22077 #include <stdlib.h>
22082 void* (*my_calloc_p) (size_t, size_t) = calloc;
22083 void* (*my_malloc_p) (size_t) = malloc;
22084 void (*my_free_p) (void*) = free;
22085 void* (*my_realloc_p) (void*, size_t) = realloc;
22095 if ac_fn_c_try_compile "$LINENO"; then :
22097 $as_echo "#define SANE_MALLOC_PROTOS 1" >>confdefs.h
22099 SANE_MALLOC_PROTOS=yes
22101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_MALLOC_PROTOS" >&5
22104 $as_echo "$SANE_MALLOC_PROTOS" >&6; }
22105 CFLAGS=$glib_save_CFLAGS
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for growing stack pointer" >&5
22108 $as_echo_n "checking for growing stack pointer... " >&6; }
22109 if ${glib_cv_stack_grows+:} false; then :
22110 $as_echo_n "(cached) " >&6
22113 if test "$cross_compiling" = yes; then :
22114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22116 as_fn_error $? "cannot run test program while cross compiling
22117 See \`config.log' for more details" "$LINENO" 5; }
22119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22120 /* end confdefs.h. */
22122 volatile int *a = 0, *b = 0;
22124 int main () { volatile int y = 7; a = &y; foo (); return b > a; }
22125 void foo (void) { volatile int x = 5; b = &x; }
22128 if ac_fn_c_try_run "$LINENO"; then :
22129 glib_cv_stack_grows=no
22132 glib_cv_stack_grows=yes
22135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22136 conftest.$ac_objext conftest.beam conftest.$ac_ext
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_stack_grows" >&5
22142 $as_echo "$glib_cv_stack_grows" >&6; }
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline" >&5
22145 $as_echo_n "checking for __inline... " >&6; }
22146 if ${glib_cv_has__inline+:} false; then :
22147 $as_echo_n "(cached) " >&6
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h. */
22153 __inline int foo () { return 0; }
22154 int main () { return foo (); }
22157 if ac_fn_c_try_compile "$LINENO"; then :
22158 glib_cv_has__inline=yes
22161 glib_cv_has__inline=no
22164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline" >&5
22168 $as_echo "$glib_cv_has__inline" >&6; }
22169 case x$glib_cv_has__inline in
22171 $as_echo "#define G_HAVE___INLINE 1" >>confdefs.h
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline__" >&5
22175 $as_echo_n "checking for __inline__... " >&6; }
22176 if ${glib_cv_has__inline__+:} false; then :
22177 $as_echo_n "(cached) " >&6
22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h. */
22183 __inline__ int foo () { return 0; }
22184 int main () { return foo (); }
22187 if ac_fn_c_try_compile "$LINENO"; then :
22188 glib_cv_has__inline__=yes
22191 glib_cv_has__inline__=no
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline__" >&5
22198 $as_echo "$glib_cv_has__inline__" >&6; }
22199 case x$glib_cv_has__inline__ in
22201 $as_echo "#define G_HAVE___INLINE__ 1" >>confdefs.h
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22205 $as_echo_n "checking for inline... " >&6; }
22206 if ${glib_cv_hasinline+:} false; then :
22207 $as_echo_n "(cached) " >&6
22210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h. */
22214 inline int foo () { return 0; }
22215 int main () { return foo (); }
22218 if ac_fn_c_try_compile "$LINENO"; then :
22219 glib_cv_hasinline=yes
22222 glib_cv_hasinline=no
22225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_hasinline" >&5
22229 $as_echo "$glib_cv_hasinline" >&6; }
22230 case x$glib_cv_hasinline in
22232 $as_echo "#define G_HAVE_INLINE 1" >>confdefs.h
22236 # if we can use inline functions in headers
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inline functions in headers work" >&5
22238 $as_echo_n "checking if inline functions in headers work... " >&6; }
22239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22240 /* end confdefs.h. */
22242 #if defined (G_HAVE_INLINE) && defined (__GNUC__) && defined (__STRICT_ANSI__)
22244 # define inline __inline__
22245 #elif !defined (G_HAVE_INLINE)
22247 # if defined (G_HAVE___INLINE__)
22248 # define inline __inline__
22249 # elif defined (G_HAVE___INLINE)
22250 # define inline __inline
22254 int glib_test_func2 (int);
22257 glib_test_func1 (void) {
22258 return glib_test_func2 (1);
22266 if ac_fn_c_try_link "$LINENO"; then :
22271 rm -f core conftest.err conftest.$ac_objext \
22272 conftest$ac_exeext conftest.$ac_ext
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_can_inline" >&5
22274 $as_echo "$g_can_inline" >&6; }
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working do while(0) macros" >&5
22277 $as_echo_n "checking for working do while(0) macros... " >&6; }
22278 if ${g_cv_support_dowhile_macros+:} false; then :
22279 $as_echo_n "(cached) " >&6
22282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283 /* end confdefs.h. */
22289 #define STMT_START do
22290 #define STMT_END while(0)
22291 #define STMT_TEST STMT_START { i = 0; } STMT_END
22292 int main(void) { int i = 1; STMT_TEST; return i; }
22297 if ac_fn_c_try_compile "$LINENO"; then :
22298 g_cv_support_dowhile_macros=yes
22300 g_cv_support_dowhile_macros=no
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_cv_support_dowhile_macros" >&5
22306 $as_echo "$g_cv_support_dowhile_macros" >&6; }
22307 if test x$g_cv_support_dowhile_macros = xyes; then
22309 $as_echo "#define HAVE_DOWHILE_MACROS 1" >>confdefs.h
22313 # check for flavours of varargs macros
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5
22315 $as_echo_n "checking for ISO C99 varargs macros in C... " >&6; }
22316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22317 /* end confdefs.h. */
22323 int a(int p1, int p2, int p3);
22324 #define call_a(...) a(1,__VA_ARGS__)
22331 if ac_fn_c_try_compile "$LINENO"; then :
22332 g_have_iso_c_varargs=yes
22334 g_have_iso_c_varargs=no
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_c_varargs" >&5
22338 $as_echo "$g_have_iso_c_varargs" >&6; }
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C++" >&5
22341 $as_echo_n "checking for ISO C99 varargs macros in C++... " >&6; }
22342 if test "$CXX" = ""; then
22343 g_have_iso_cxx_varargs=no
22346 ac_cpp='$CXXCPP $CPPFLAGS'
22347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22352 /* end confdefs.h. */
22358 int a(int p1, int p2, int p3);
22359 #define call_a(...) a(1,__VA_ARGS__)
22366 if ac_fn_cxx_try_compile "$LINENO"; then :
22367 g_have_iso_cxx_varargs=yes
22369 g_have_iso_cxx_varargs=no
22371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22373 ac_cpp='$CPP $CPPFLAGS'
22374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_cxx_varargs" >&5
22380 $as_echo "$g_have_iso_cxx_varargs" >&6; }
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC varargs macros" >&5
22383 $as_echo_n "checking for GNUC varargs macros... " >&6; }
22384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22385 /* end confdefs.h. */
22391 int a(int p1, int p2, int p3);
22392 #define call_a(params...) a(1,params)
22399 if ac_fn_c_try_compile "$LINENO"; then :
22400 g_have_gnuc_varargs=yes
22402 g_have_gnuc_varargs=no
22404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_varargs" >&5
22406 $as_echo "$g_have_gnuc_varargs" >&6; }
22408 # check for GNUC visibility support
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC visibility attribute" >&5
22410 $as_echo_n "checking for GNUC visibility attribute... " >&6; }
22411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22412 /* end confdefs.h. */
22415 __attribute__ ((visibility ("hidden")))
22420 __attribute__ ((visibility ("internal")))
22425 __attribute__ ((visibility ("protected")))
22430 __attribute__ ((visibility ("default")))
22434 int main (int argc, char **argv)
22444 rm -f conftest.$ac_objext
22445 glib_ac_compile_save="$ac_compile"
22446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
22447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22448 (eval $ac_compile) 2>conftest.err
22450 if test -s conftest.err; then
22451 grep -v '^ *+' conftest.err >conftest.er1
22452 cat conftest.er1 >&5
22453 mv -f conftest.er1 conftest.err
22455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22456 test $ac_status = 0; } &&
22457 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
22458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22459 (eval $ac_try) 2>&5
22461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22462 test $ac_status = 0; }; }; then :
22463 g_have_gnuc_visibility=yes
22465 echo "$as_me: failed program was:" >&5
22466 cat conftest.$ac_ext >&5
22467 g_have_gnuc_visibility=no
22469 ac_compile="$glib_ac_compile_save"
22470 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_visibility" >&5
22472 $as_echo "$g_have_gnuc_visibility" >&6; }
22473 if test x$g_have_gnuc_visibility = xyes; then
22474 HAVE_GNUC_VISIBILITY_TRUE=
22475 HAVE_GNUC_VISIBILITY_FALSE='#'
22477 HAVE_GNUC_VISIBILITY_TRUE='#'
22478 HAVE_GNUC_VISIBILITY_FALSE=
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Sun Studio C compiler" >&5
22483 $as_echo_n "checking whether using Sun Studio C compiler... " >&6; }
22484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22485 /* end confdefs.h. */
22486 #if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550)
22488 # include "error: this is not Sun Studio."
22499 if ac_fn_c_try_compile "$LINENO"; then :
22500 g_have_sunstudio_visibility=yes
22502 g_have_sunstudio_visibility=no
22504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_sunstudio_visibility" >&5
22506 $as_echo "$g_have_sunstudio_visibility" >&6; }
22507 if test x$g_have_sunstudio_visibility = xyes; then
22508 HAVE_SUNSTUDIO_VISIBILITY_TRUE=
22509 HAVE_SUNSTUDIO_VISIBILITY_FALSE='#'
22511 HAVE_SUNSTUDIO_VISIBILITY_TRUE='#'
22512 HAVE_SUNSTUDIO_VISIBILITY_FALSE=
22516 # check for bytesex stuff
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22518 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22519 if ${ac_cv_c_bigendian+:} false; then :
22520 $as_echo_n "(cached) " >&6
22522 ac_cv_c_bigendian=unknown
22523 # See if we're dealing with a universal compiler.
22524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22525 /* end confdefs.h. */
22526 #ifndef __APPLE_CC__
22527 not a universal capable compiler
22532 if ac_fn_c_try_compile "$LINENO"; then :
22534 # Check for potential -arch flags. It is not universal unless
22535 # there are at least two -arch flags with different values.
22538 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22539 if test -n "$ac_prev"; then
22541 i?86 | x86_64 | ppc | ppc64)
22542 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22545 ac_cv_c_bigendian=universal
22551 elif test "x$ac_word" = "x-arch"; then
22556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22557 if test $ac_cv_c_bigendian = unknown; then
22558 # See if sys/param.h defines the BYTE_ORDER macro.
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h. */
22561 #include <sys/types.h>
22562 #include <sys/param.h>
22567 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22568 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22570 bogus endian macros
22577 if ac_fn_c_try_compile "$LINENO"; then :
22578 # It does; now see whether it defined to BIG_ENDIAN or not.
22579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22580 /* end confdefs.h. */
22581 #include <sys/types.h>
22582 #include <sys/param.h>
22587 #if BYTE_ORDER != BIG_ENDIAN
22595 if ac_fn_c_try_compile "$LINENO"; then :
22596 ac_cv_c_bigendian=yes
22598 ac_cv_c_bigendian=no
22600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22604 if test $ac_cv_c_bigendian = unknown; then
22605 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22607 /* end confdefs.h. */
22608 #include <limits.h>
22613 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22614 bogus endian macros
22621 if ac_fn_c_try_compile "$LINENO"; then :
22622 # It does; now see whether it defined to _BIG_ENDIAN or not.
22623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22625 #include <limits.h>
22630 #ifndef _BIG_ENDIAN
22638 if ac_fn_c_try_compile "$LINENO"; then :
22639 ac_cv_c_bigendian=yes
22641 ac_cv_c_bigendian=no
22643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647 if test $ac_cv_c_bigendian = unknown; then
22648 # Compile a test program.
22649 if test "$cross_compiling" = yes; then :
22650 # Try to guess by grepping values from an object file.
22651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652 /* end confdefs.h. */
22653 short int ascii_mm[] =
22654 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22655 short int ascii_ii[] =
22656 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22657 int use_ascii (int i) {
22658 return ascii_mm[i] + ascii_ii[i];
22660 short int ebcdic_ii[] =
22661 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22662 short int ebcdic_mm[] =
22663 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22664 int use_ebcdic (int i) {
22665 return ebcdic_mm[i] + ebcdic_ii[i];
22672 return use_ascii (foo) == use_ebcdic (foo);
22677 if ac_fn_c_try_compile "$LINENO"; then :
22678 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22679 ac_cv_c_bigendian=yes
22681 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22682 if test "$ac_cv_c_bigendian" = unknown; then
22683 ac_cv_c_bigendian=no
22685 # finding both strings is unlikely to happen, but who knows?
22686 ac_cv_c_bigendian=unknown
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22693 /* end confdefs.h. */
22694 $ac_includes_default
22699 /* Are we little or big endian? From Harbison&Steele. */
22703 char c[sizeof (long int)];
22706 return u.c[sizeof (long int) - 1] == 1;
22712 if ac_fn_c_try_run "$LINENO"; then :
22713 ac_cv_c_bigendian=no
22715 ac_cv_c_bigendian=yes
22717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22718 conftest.$ac_objext conftest.beam conftest.$ac_ext
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22724 $as_echo "$ac_cv_c_bigendian" >&6; }
22725 case $ac_cv_c_bigendian in #(
22727 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22733 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22737 as_fn_error $? "unknown endianness
22738 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22741 if test x$ac_cv_c_bigendian = xuniversal ; then
22742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743 /* end confdefs.h. */
22744 #include <endian.h>
22748 #if __BYTE_ORDER == __BIG_ENDIAN
22750 #error Not a big endian.
22756 if ac_fn_c_try_compile "$LINENO"; then :
22757 ac_cv_c_bigendian=yes
22760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22761 /* end confdefs.h. */
22762 #include <endian.h>
22766 #if __BYTE_ORDER == __LITTLE_ENDIAN
22768 #error Not a little endian.
22774 if ac_fn_c_try_compile "$LINENO"; then :
22775 ac_cv_c_bigendian=no
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine endianness." >&5
22779 $as_echo "$as_me: WARNING: Could not determine endianness." >&2;}
22781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787 # check for header files
22788 for ac_header in dirent.h float.h limits.h pwd.h grp.h sys/param.h sys/poll.h sys/resource.h
22790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22791 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22793 cat >>confdefs.h <<_ACEOF
22794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22801 for ac_header in sys/time.h sys/times.h sys/wait.h unistd.h values.h
22803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22804 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22806 cat >>confdefs.h <<_ACEOF
22807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22814 for ac_header in sys/select.h sys/types.h stdint.h inttypes.h sched.h malloc.h
22816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22817 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22818 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22819 cat >>confdefs.h <<_ACEOF
22820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22827 for ac_header in sys/vfs.h sys/vmount.h sys/statfs.h sys/statvfs.h
22829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22830 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22832 cat >>confdefs.h <<_ACEOF
22833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22840 for ac_header in mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h fstab.h
22842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22843 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22845 cat >>confdefs.h <<_ACEOF
22846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22853 for ac_header in sys/uio.h sys/mkdev.h
22855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22856 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22858 cat >>confdefs.h <<_ACEOF
22859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22866 for ac_header in linux/magic.h
22868 ac_fn_c_check_header_mongrel "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
22869 if test "x$ac_cv_header_linux_magic_h" = xyes; then :
22870 cat >>confdefs.h <<_ACEOF
22871 #define HAVE_LINUX_MAGIC_H 1
22878 for ac_header in sys/prctl.h
22880 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
22881 if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
22882 cat >>confdefs.h <<_ACEOF
22883 #define HAVE_SYS_PRCTL_H 1
22891 for ac_header in sys/mount.h sys/sysctl.h
22893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22894 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_SYS_PARAM_H
22895 #include <sys/param.h>
22899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22900 cat >>confdefs.h <<_ACEOF
22901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22909 for ac_header in xlocale.h
22911 ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
22912 if test "x$ac_cv_header_xlocale_h" = xyes; then :
22913 cat >>confdefs.h <<_ACEOF
22914 #define HAVE_XLOCALE_H 1
22922 # check for structure fields
22923 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
22924 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
22926 cat >>confdefs.h <<_ACEOF
22927 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
22932 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
22933 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
22935 cat >>confdefs.h <<_ACEOF
22936 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
22941 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
22942 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
22944 cat >>confdefs.h <<_ACEOF
22945 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22950 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default"
22951 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
22953 cat >>confdefs.h <<_ACEOF
22954 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22959 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default"
22960 if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
22962 cat >>confdefs.h <<_ACEOF
22963 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
22968 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "$ac_includes_default"
22969 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
22971 cat >>confdefs.h <<_ACEOF
22972 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
22978 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#include <sys/types.h>
22979 #include <sys/stat.h>
22980 #include <unistd.h>
22981 #ifdef HAVE_SYS_STATFS_H
22982 #include <sys/statfs.h>
22984 #ifdef HAVE_SYS_PARAM_H
22985 #include <sys/param.h>
22987 #ifdef HAVE_SYS_MOUNT_H
22988 #include <sys/mount.h>
22991 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
22993 cat >>confdefs.h <<_ACEOF
22994 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22999 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#include <sys/types.h>
23000 #include <sys/stat.h>
23001 #include <unistd.h>
23002 #ifdef HAVE_SYS_STATFS_H
23003 #include <sys/statfs.h>
23005 #ifdef HAVE_SYS_PARAM_H
23006 #include <sys/param.h>
23008 #ifdef HAVE_SYS_MOUNT_H
23009 #include <sys/mount.h>
23012 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
23014 cat >>confdefs.h <<_ACEOF
23015 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23020 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/types.h>
23021 #include <sys/stat.h>
23022 #include <unistd.h>
23023 #ifdef HAVE_SYS_STATFS_H
23024 #include <sys/statfs.h>
23026 #ifdef HAVE_SYS_PARAM_H
23027 #include <sys/param.h>
23029 #ifdef HAVE_SYS_MOUNT_H
23030 #include <sys/mount.h>
23033 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
23035 cat >>confdefs.h <<_ACEOF
23036 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
23041 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
23042 #include <sys/stat.h>
23043 #include <unistd.h>
23044 #ifdef HAVE_SYS_STATFS_H
23045 #include <sys/statfs.h>
23047 #ifdef HAVE_SYS_PARAM_H
23048 #include <sys/param.h>
23050 #ifdef HAVE_SYS_MOUNT_H
23051 #include <sys/mount.h>
23054 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
23056 cat >>confdefs.h <<_ACEOF
23057 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
23063 # struct statvfs.f_basetype is available on Solaris but not for Linux.
23064 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
23066 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
23068 cat >>confdefs.h <<_ACEOF
23069 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
23075 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
23077 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
23079 cat >>confdefs.h <<_ACEOF
23080 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
23086 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
23088 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
23090 cat >>confdefs.h <<_ACEOF
23091 #define HAVE_STRUCT_TM_TM_GMTOFF 1
23096 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
23098 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
23100 cat >>confdefs.h <<_ACEOF
23101 #define HAVE_STRUCT_TM___TM_GMTOFF 1
23108 ac_header_dirent=no
23109 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23110 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23112 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23113 if eval \${$as_ac_Header+:} false; then :
23114 $as_echo_n "(cached) " >&6
23116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23117 /* end confdefs.h. */
23118 #include <sys/types.h>
23130 if ac_fn_c_try_compile "$LINENO"; then :
23131 eval "$as_ac_Header=yes"
23133 eval "$as_ac_Header=no"
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23137 eval ac_res=\$$as_ac_Header
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23139 $as_echo "$ac_res" >&6; }
23140 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23141 cat >>confdefs.h <<_ACEOF
23142 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23145 ac_header_dirent=$ac_hdr; break
23149 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23150 if test $ac_header_dirent = dirent.h; then
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23152 $as_echo_n "checking for library containing opendir... " >&6; }
23153 if ${ac_cv_search_opendir+:} false; then :
23154 $as_echo_n "(cached) " >&6
23156 ac_func_search_save_LIBS=$LIBS
23157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23158 /* end confdefs.h. */
23160 /* Override any GCC internal prototype to avoid an error.
23161 Use char because int might match the return type of a GCC
23162 builtin and then its argument prototype would still apply. */
23175 for ac_lib in '' dir; do
23176 if test -z "$ac_lib"; then
23177 ac_res="none required"
23180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23182 if ac_fn_c_try_link "$LINENO"; then :
23183 ac_cv_search_opendir=$ac_res
23185 rm -f core conftest.err conftest.$ac_objext \
23187 if ${ac_cv_search_opendir+:} false; then :
23191 if ${ac_cv_search_opendir+:} false; then :
23194 ac_cv_search_opendir=no
23196 rm conftest.$ac_ext
23197 LIBS=$ac_func_search_save_LIBS
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23200 $as_echo "$ac_cv_search_opendir" >&6; }
23201 ac_res=$ac_cv_search_opendir
23202 if test "$ac_res" != no; then :
23203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23209 $as_echo_n "checking for library containing opendir... " >&6; }
23210 if ${ac_cv_search_opendir+:} false; then :
23211 $as_echo_n "(cached) " >&6
23213 ac_func_search_save_LIBS=$LIBS
23214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23215 /* end confdefs.h. */
23217 /* Override any GCC internal prototype to avoid an error.
23218 Use char because int might match the return type of a GCC
23219 builtin and then its argument prototype would still apply. */
23232 for ac_lib in '' x; do
23233 if test -z "$ac_lib"; then
23234 ac_res="none required"
23237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23239 if ac_fn_c_try_link "$LINENO"; then :
23240 ac_cv_search_opendir=$ac_res
23242 rm -f core conftest.err conftest.$ac_objext \
23244 if ${ac_cv_search_opendir+:} false; then :
23248 if ${ac_cv_search_opendir+:} false; then :
23251 ac_cv_search_opendir=no
23253 rm conftest.$ac_ext
23254 LIBS=$ac_func_search_save_LIBS
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23257 $as_echo "$ac_cv_search_opendir" >&6; }
23258 ac_res=$ac_cv_search_opendir
23259 if test "$ac_res" != no; then :
23260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23268 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
23269 #include <sys/types.h>
23270 #ifdef HAVE_DIRENT_H
23271 # include <dirent.h>
23273 # define dirent direct
23274 # ifdef HAVE_SYS_NDIR_H
23275 # include <sys/ndir.h>
23277 # ifdef HAVE_SYS_DIR_H
23278 # include <sys/dir.h>
23280 # ifdef HAVE_NDIR_H
23286 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
23288 cat >>confdefs.h <<_ACEOF
23289 #define HAVE_STRUCT_DIRENT_D_TYPE 1
23297 # Checks for libcharset
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23300 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23301 if ${am_cv_langinfo_codeset+:} false; then :
23302 $as_echo_n "(cached) " >&6
23304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23305 /* end confdefs.h. */
23306 #include <langinfo.h>
23310 char* cs = nl_langinfo(CODESET);
23315 if ac_fn_c_try_link "$LINENO"; then :
23316 am_cv_langinfo_codeset=yes
23318 am_cv_langinfo_codeset=no
23320 rm -f core conftest.err conftest.$ac_objext \
23321 conftest$ac_exeext conftest.$ac_ext
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23325 $as_echo "$am_cv_langinfo_codeset" >&6; }
23326 if test $am_cv_langinfo_codeset = yes; then
23328 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23332 for ac_header in stddef.h stdlib.h string.h
23334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23335 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23337 cat >>confdefs.h <<_ACEOF
23338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23345 for ac_func in setlocale
23347 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
23348 if test "x$ac_cv_func_setlocale" = xyes; then :
23349 cat >>confdefs.h <<_ACEOF
23350 #define HAVE_SETLOCALE 1
23357 # check additional type sizes
23358 # The cast to long int works around a bug in the HP C Compiler
23359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23361 # This bug is HP SR number 8606223364.
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23363 $as_echo_n "checking size of size_t... " >&6; }
23364 if ${ac_cv_sizeof_size_t+:} false; then :
23365 $as_echo_n "(cached) " >&6
23367 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23370 if test "$ac_cv_type_size_t" = yes; then
23371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23373 as_fn_error 77 "cannot compute sizeof (size_t)
23374 See \`config.log' for more details" "$LINENO" 5; }
23376 ac_cv_sizeof_size_t=0
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23382 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23386 cat >>confdefs.h <<_ACEOF
23387 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the appropriate definition for size_t" >&5
23393 $as_echo_n "checking for the appropriate definition for size_t... " >&6; }
23395 case $ac_cv_sizeof_size_t in
23396 $ac_cv_sizeof_short)
23397 glib_size_type=short
23402 $ac_cv_sizeof_long)
23403 glib_size_type=long
23405 $ac_cv_sizeof_long_long)
23406 glib_size_type='long long'
23408 $ac_cv_sizeof__int64)
23409 glib_size_type='__int64'
23411 *) as_fn_error $? "No type matching size_t in size" "$LINENO" 5
23415 if test $ac_cv_sizeof_size_t = $ac_cv_sizeof_int &&
23416 test $ac_cv_sizeof_size_t = $ac_cv_sizeof_long ; then
23417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23418 /* end confdefs.h. */
23420 #if defined(_AIX) && !defined(__GNUC__)
23421 #pragma options langlvl=stdc89
23423 #include <stddef.h>
23427 unsigned int *size_int = &s;
23428 return (int)*size_int;
23432 rm -f conftest.$ac_objext
23433 glib_ac_compile_save="$ac_compile"
23434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
23435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23436 (eval $ac_compile) 2>conftest.err
23438 if test -s conftest.err; then
23439 grep -v '^ *+' conftest.err >conftest.er1
23440 cat conftest.er1 >&5
23441 mv -f conftest.er1 conftest.err
23443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23444 test $ac_status = 0; } &&
23445 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
23446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23447 (eval $ac_try) 2>&5
23449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23450 test $ac_status = 0; }; }; then :
23453 echo "$as_me: failed program was:" >&5
23454 cat conftest.$ac_ext >&5
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h. */
23458 #if defined(_AIX) && !defined(__GNUC__)
23459 #pragma options langlvl=stdc89
23461 #include <stddef.h>
23465 unsigned long *size_long = &s;
23466 return (int)*size_long;
23470 rm -f conftest.$ac_objext
23471 glib_ac_compile_save="$ac_compile"
23472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
23473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23474 (eval $ac_compile) 2>conftest.err
23476 if test -s conftest.err; then
23477 grep -v '^ *+' conftest.err >conftest.er1
23478 cat conftest.er1 >&5
23479 mv -f conftest.er1 conftest.err
23481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23482 test $ac_status = 0; } &&
23483 { ac_try='(if test -s conftest.err; then false ; else true; fi)'
23484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23485 (eval $ac_try) 2>&5
23487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23488 test $ac_status = 0; }; }; then :
23489 glib_size_type=long
23491 echo "$as_me: failed program was:" >&5
23492 cat conftest.$ac_ext >&5
23494 ac_compile="$glib_ac_compile_save"
23495 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
23497 ac_compile="$glib_ac_compile_save"
23498 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsigned $glib_size_type" >&5
23502 $as_echo "unsigned $glib_size_type" >&6; }
23504 # Check for some functions
23505 for ac_func in lstat strerror strsignal memmove vsnprintf stpcpy strcasecmp strncasecmp poll getcwd vasprintf setenv unsetenv getc_unlocked readlink symlink fdwalk memmem
23507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23509 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23510 cat >>confdefs.h <<_ACEOF
23511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23517 for ac_func in chown lchmod lchown fchmod fchown link utimes getgrgid getpwuid
23519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23520 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23521 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23522 cat >>confdefs.h <<_ACEOF
23523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23529 for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat
23531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23532 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23533 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23534 cat >>confdefs.h <<_ACEOF
23535 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23541 # Check for high-resolution sleep functions
23542 for ac_func in splice
23544 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
23545 if test "x$ac_cv_func_splice" = xyes; then :
23546 cat >>confdefs.h <<_ACEOF
23547 #define HAVE_SPLICE 1
23553 for ac_func in prlimit
23555 ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
23556 if test "x$ac_cv_func_prlimit" = xyes; then :
23557 cat >>confdefs.h <<_ACEOF
23558 #define HAVE_PRLIMIT 1
23565 # To avoid finding a compatibility unusable statfs, which typically
23566 # successfully compiles, but warns to use the newer statvfs interface:
23567 if test $ac_cv_header_sys_statvfs_h = yes; then :
23568 for ac_func in statvfs
23570 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
23571 if test "x$ac_cv_func_statvfs" = xyes; then :
23572 cat >>confdefs.h <<_ACEOF
23573 #define HAVE_STATVFS 1
23580 if test $ac_cv_header_sys_statfs_h = yes -o $ac_cv_header_sys_mount_h = yes; then :
23581 for ac_func in statfs
23583 ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
23584 if test "x$ac_cv_func_statfs" = xyes; then :
23585 cat >>confdefs.h <<_ACEOF
23586 #define HAVE_STATFS 1
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use statfs or statvfs" >&5
23595 $as_echo_n "checking whether to use statfs or statvfs... " >&6; }
23596 # Some systems have both statfs and statvfs, pick the most "native" for these
23597 if test x$ac_cv_func_statfs = xyes && test x$ac_cv_func_statvfs = xyes; then :
23599 # on solaris and irix, statfs doesn't even have the f_bavail field
23600 if test x$ac_cv_member_struct_statfs_f_bavail = xno; then :
23601 ac_cv_func_statfs=no
23603 # else, at least on linux, statfs is the actual syscall
23604 ac_cv_func_statvfs=no
23609 if test x$ac_cv_func_statfs = xyes; then :
23612 $as_echo "#define USE_STATFS 1" >>confdefs.h
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: statfs" >&5
23615 $as_echo "statfs" >&6; }
23617 elif test x$ac_cv_func_statvfs = xyes; then :
23620 $as_echo "#define USE_STATVFS 1" >>confdefs.h
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: statvfs" >&5
23623 $as_echo "statvfs" >&6; }
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither" >&5
23627 $as_echo "neither" >&6; }
23630 for ac_header in crt_externs.h
23632 ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
23633 if test "x$ac_cv_header_crt_externs_h" = xyes; then :
23634 cat >>confdefs.h <<_ACEOF
23635 #define HAVE_CRT_EXTERNS_H 1
23642 for ac_func in _NSGetEnviron
23644 ac_fn_c_check_func "$LINENO" "_NSGetEnviron" "ac_cv_func__NSGetEnviron"
23645 if test "x$ac_cv_func__NSGetEnviron" = xyes; then :
23646 cat >>confdefs.h <<_ACEOF
23647 #define HAVE__NSGETENVIRON 1
23654 for ac_func in newlocale uselocale strtod_l strtoll_l strtoull_l
23656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23658 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23659 cat >>confdefs.h <<_ACEOF
23660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
23668 $as_echo_n "checking for C99 vsnprintf... " >&6; }
23669 if ${ac_cv_func_vsnprintf_c99+:} false; then :
23670 $as_echo_n "(cached) " >&6
23672 if test "$cross_compiling" = yes; then :
23673 ac_cv_func_vsnprintf_c99=no
23675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23676 /* end confdefs.h. */
23678 #include <stdarg.h>
23681 doit(char * s, ...)
23688 r = vsnprintf(buffer, 5, s, args);
23694 /* AIX 5.1 and Solaris seems to have a half-baked vsnprintf()
23695 implementation. The above will return 7 but if you replace
23696 the size of the buffer with 0, it borks! */
23698 r = vsnprintf(buffer, 0, s, args);
23714 if ac_fn_c_try_run "$LINENO"; then :
23715 ac_cv_func_vsnprintf_c99=yes
23717 ac_cv_func_vsnprintf_c99=no
23719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23720 conftest.$ac_objext conftest.beam conftest.$ac_ext
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_c99" >&5
23725 $as_echo "$ac_cv_func_vsnprintf_c99" >&6; }
23726 if test $ac_cv_func_vsnprintf_c99 = yes; then
23728 $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports positional parameters" >&5
23733 $as_echo_n "checking whether printf supports positional parameters... " >&6; }
23734 if ${ac_cv_func_printf_unix98+:} false; then :
23735 $as_echo_n "(cached) " >&6
23737 if test "$cross_compiling" = yes; then :
23738 ac_cv_func_printf_unix98=no
23740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23741 /* end confdefs.h. */
23749 sprintf (buffer, "%2\$d %3\$d %1\$d", 1, 2, 3);
23750 if (strcmp ("2 3 1", buffer) == 0)
23755 if ac_fn_c_try_run "$LINENO"; then :
23756 ac_cv_func_printf_unix98=yes
23758 ac_cv_func_printf_unix98=no
23760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23761 conftest.$ac_objext conftest.beam conftest.$ac_ext
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_printf_unix98" >&5
23766 $as_echo "$ac_cv_func_printf_unix98" >&6; }
23767 if test $ac_cv_func_printf_unix98 = yes; then
23769 $as_echo "#define HAVE_UNIX98_PRINTF 1" >>confdefs.h
23774 # Internet address families
23775 if test $glib_native_win32 = yes; then
23776 glib_inet_includes="
23777 #include <winsock2.h>
23780 glib_inet_includes="
23781 #include <sys/types.h>
23782 #include <sys/socket.h>
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET" >&5
23788 $as_echo_n "checking value of AF_INET... " >&6; }
23789 if ${glib_cv_value_AF_INET+:} false; then :
23790 $as_echo_n "(cached) " >&6
23792 if ac_fn_c_compute_int "$LINENO" "AF_INET" "glib_cv_value_AF_INET" "$glib_inet_includes"; then :
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET" >&5
23801 $as_echo "$glib_cv_value_AF_INET" >&6; }
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET6" >&5
23804 $as_echo_n "checking value of AF_INET6... " >&6; }
23805 if ${glib_cv_value_AF_INET6+:} false; then :
23806 $as_echo_n "(cached) " >&6
23808 if ac_fn_c_compute_int "$LINENO" "AF_INET6" "glib_cv_value_AF_INET6" "$glib_inet_includes"; then :
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET6" >&5
23817 $as_echo "$glib_cv_value_AF_INET6" >&6; }
23819 # winsock defines this even though it doesn't support it
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_UNIX" >&5
23821 $as_echo_n "checking value of AF_UNIX... " >&6; }
23822 if ${glib_cv_value_AF_UNIX+:} false; then :
23823 $as_echo_n "(cached) " >&6
23825 if ac_fn_c_compute_int "$LINENO" "AF_UNIX" "glib_cv_value_AF_UNIX" "$glib_inet_includes"; then :
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_UNIX" >&5
23834 $as_echo "$glib_cv_value_AF_UNIX" >&6; }
23836 if $glib_failed ; then
23837 as_fn_error $? "Could not determine values for AF_INET* constants" "$LINENO" 5
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_PEEK" >&5
23842 $as_echo_n "checking value of MSG_PEEK... " >&6; }
23843 if ${glib_cv_value_MSG_PEEK+:} false; then :
23844 $as_echo_n "(cached) " >&6
23846 if ac_fn_c_compute_int "$LINENO" "MSG_PEEK" "glib_cv_value_MSG_PEEK" "$glib_inet_includes"; then :
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_PEEK" >&5
23855 $as_echo "$glib_cv_value_MSG_PEEK" >&6; }
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_OOB" >&5
23858 $as_echo_n "checking value of MSG_OOB... " >&6; }
23859 if ${glib_cv_value_MSG_OOB+:} false; then :
23860 $as_echo_n "(cached) " >&6
23862 if ac_fn_c_compute_int "$LINENO" "MSG_OOB" "glib_cv_value_MSG_OOB" "$glib_inet_includes"; then :
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_OOB" >&5
23871 $as_echo "$glib_cv_value_MSG_OOB" >&6; }
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_DONTROUTE" >&5
23874 $as_echo_n "checking value of MSG_DONTROUTE... " >&6; }
23875 if ${glib_cv_value_MSG_DONTROUTE+:} false; then :
23876 $as_echo_n "(cached) " >&6
23878 if ac_fn_c_compute_int "$LINENO" "MSG_DONTROUTE" "glib_cv_value_MSG_DONTROUTE" "$glib_inet_includes"; then :
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_DONTROUTE" >&5
23887 $as_echo "$glib_cv_value_MSG_DONTROUTE" >&6; }
23889 if $glib_failed ; then
23890 as_fn_error $? "Could not determine values for MSG_* constants" "$LINENO" 5
23893 for ac_func in getprotobyname_r endservent if_nametoindex
23895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23897 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23898 cat >>confdefs.h <<_ACEOF
23899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23905 for ac_header in netdb.h wspiapi.h arpa/nameser_compat.h
23907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23908 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23909 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23910 cat >>confdefs.h <<_ACEOF
23911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23919 if test $glib_native_win32 = no; then
23920 # We can't just use AC_CHECK_FUNC/AC_CHECK_LIB here. Bug 586150
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query" >&5
23923 $as_echo_n "checking for res_query... " >&6; }
23924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23925 /* end confdefs.h. */
23926 #include <sys/types.h>
23927 #include <netinet/in.h>
23928 #include <arpa/nameser.h>
23929 #include <resolv.h>
23935 res_query("test", 0, 0, (void *)0, 0);
23941 if ac_fn_c_try_link "$LINENO"; then :
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23943 $as_echo "yes" >&6; }
23946 LIBS="-lresolv $LIBS"
23947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23948 /* end confdefs.h. */
23949 #include <sys/types.h>
23950 #include <netinet/in.h>
23951 #include <arpa/nameser.h>
23952 #include <resolv.h>
23958 res_query("test", 0, 0, (void *)0, 0);
23964 if ac_fn_c_try_link "$LINENO"; then :
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lresolv" >&5
23966 $as_echo "in -lresolv" >&6; }
23967 NETWORK_LIBS="-lresolv $NETWORK_LIBS"
23969 LIBS="-lbind $save_libs"
23970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23971 /* end confdefs.h. */
23972 #include <resolv.h>
23976 res_query("test", 0, 0, (void *)0, 0);
23981 if ac_fn_c_try_link "$LINENO"; then :
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lbind" >&5
23983 $as_echo "in -lbind" >&6; }
23984 NETWORK_LIBS="-lbind $NETWORK_LIBS"
23986 as_fn_error $? "not found" "$LINENO" 5
23988 rm -f core conftest.err conftest.$ac_objext \
23989 conftest$ac_exeext conftest.$ac_ext
23991 rm -f core conftest.err conftest.$ac_objext \
23992 conftest$ac_exeext conftest.$ac_ext
23995 rm -f core conftest.err conftest.$ac_objext \
23996 conftest$ac_exeext conftest.$ac_ext
23997 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
23998 if test "x$ac_cv_func_socket" = xyes; then :
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
24002 $as_echo_n "checking for socket in -lsocket... " >&6; }
24003 if ${ac_cv_lib_socket_socket+:} false; then :
24004 $as_echo_n "(cached) " >&6
24006 ac_check_lib_save_LIBS=$LIBS
24007 LIBS="-lsocket $LIBS"
24008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h. */
24011 /* Override any GCC internal prototype to avoid an error.
24012 Use char because int might match the return type of a GCC
24013 builtin and then its argument prototype would still apply. */
24026 if ac_fn_c_try_link "$LINENO"; then :
24027 ac_cv_lib_socket_socket=yes
24029 ac_cv_lib_socket_socket=no
24031 rm -f core conftest.err conftest.$ac_objext \
24032 conftest$ac_exeext conftest.$ac_ext
24033 LIBS=$ac_check_lib_save_LIBS
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
24036 $as_echo "$ac_cv_lib_socket_socket" >&6; }
24037 if test "x$ac_cv_lib_socket_socket" = xyes; then :
24038 NETWORK_LIBS="-lsocket $NETWORK_LIBS"
24040 as_fn_error $? "Could not find socket()" "$LINENO" 5
24048 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "#include <sys/socket.h>
24050 if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
24052 $as_echo "#define HAVE_NETLINK 1" >>confdefs.h
24057 if test "$ac_cv_header_linux_netlink_h" = "yes"; then
24059 HAVE_NETLINK_FALSE='#'
24061 HAVE_NETLINK_TRUE='#'
24062 HAVE_NETLINK_FALSE=
24066 ac_fn_c_check_type "$LINENO" "struct ip_mreqn" "ac_cv_type_struct_ip_mreqn" "#include <netinet/in.h>
24068 if test "x$ac_cv_type_struct_ip_mreqn" = xyes; then :
24071 $as_echo "#define HAVE_IP_MREQN /**/" >>confdefs.h
24079 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
24082 $as_echo "#define _XOPEN_SOURCE 2" >>confdefs.h
24085 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
24090 if test "$ac_cv_func_statfs" = yes ; then
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to statfs()" >&5
24092 $as_echo_n "checking number of arguments to statfs()... " >&6; }
24093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24094 /* end confdefs.h. */
24095 #include <unistd.h>
24096 #ifdef HAVE_SYS_PARAM_H
24097 #include <sys/param.h>
24099 #ifdef HAVE_SYS_VFS_H
24100 #include <sys/vfs.h>
24102 #ifdef HAVE_SYS_MOUNT_H
24103 #include <sys/mount.h>
24105 #ifdef HAVE_SYS_STATFS_H
24106 #include <sys/statfs.h>
24117 if ac_fn_c_try_compile "$LINENO"; then :
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2" >&5
24120 $as_echo "2" >&6; }
24122 $as_echo "#define STATFS_ARGS 2" >>confdefs.h
24126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24127 /* end confdefs.h. */
24128 #include <unistd.h>
24129 #ifdef HAVE_SYS_PARAM_H
24130 #include <sys/param.h>
24132 #ifdef HAVE_SYS_VFS_H
24133 #include <sys/vfs.h>
24135 #ifdef HAVE_SYS_MOUNT_H
24136 #include <sys/mount.h>
24138 #ifdef HAVE_SYS_STATFS_H
24139 #include <sys/statfs.h>
24145 statfs(NULL, &st, sizeof (st), 0);
24150 if ac_fn_c_try_compile "$LINENO"; then :
24152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4" >&5
24153 $as_echo "4" >&6; }
24155 $as_echo "#define STATFS_ARGS 4" >>confdefs.h
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
24160 $as_echo "unknown" >&6; }
24161 as_fn_error $? "unable to determine number of arguments to statfs()" "$LINENO" 5
24163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24169 # Check whether to use an included printf
24172 # Check whether --enable-included-printf was given.
24173 if test "${enable_included_printf+set}" = set; then :
24174 enableval=$enable_included_printf; enable_included_printf="$enableval"
24178 need_included_printf=no
24179 if test "x$enable_included_printf" = "xyes" ; then
24180 need_included_printf=yes
24182 if test "$ac_cv_func_vsnprintf_c99" != "yes" ; then
24183 need_included_printf=yes
24185 if test "$ac_cv_func_printf_unix98" != "yes" ; then
24186 need_included_printf=yes
24188 if test "x$ac_cv_sizeof_long_long" = "x8" &&
24189 test -z "$glib_cv_long_long_format" ; then
24190 need_included_printf=yes
24193 if test "x$enable_included_printf" = "xno" &&
24194 test "x$need_included_printf" = "xyes" ; then
24196 *** Your C library's printf doesn't appear to have the features that
24197 *** GLib needs, but you specified --enable-included-printf=no." "$LINENO" 5
24200 enable_included_printf=$need_included_printf
24202 if test "$enable_included_printf" != "yes"; then
24203 HAVE_GOOD_PRINTF_TRUE=
24204 HAVE_GOOD_PRINTF_FALSE='#'
24206 HAVE_GOOD_PRINTF_TRUE='#'
24207 HAVE_GOOD_PRINTF_FALSE=
24210 if test "$enable_included_printf" != "yes" ; then
24212 $as_echo "#define HAVE_GOOD_PRINTF 1" >>confdefs.h
24215 if test -z "$glib_cv_long_long_format" ; then
24216 glib_cv_long_long_format="ll"
24218 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
24222 # Checks needed for gnulib vasnprintf
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
24225 $as_echo_n "checking for signed... " >&6; }
24226 if ${bh_cv_c_signed+:} false; then :
24227 $as_echo_n "(cached) " >&6
24229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24230 /* end confdefs.h. */
24240 if ac_fn_c_try_compile "$LINENO"; then :
24245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
24248 $as_echo "$bh_cv_c_signed" >&6; }
24249 if test $bh_cv_c_signed = no; then
24251 $as_echo "#define signed /**/" >>confdefs.h
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
24257 $as_echo_n "checking for long long... " >&6; }
24258 if ${ac_cv_type_long_long+:} false; then :
24259 $as_echo_n "(cached) " >&6
24261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24262 /* end confdefs.h. */
24263 long long ll = 1LL; int i = 63;
24267 long long llmax = (long long) -1;
24268 return ll << i | ll >> i | llmax / ll | llmax % ll;
24273 if ac_fn_c_try_link "$LINENO"; then :
24274 ac_cv_type_long_long=yes
24276 ac_cv_type_long_long=no
24278 rm -f core conftest.err conftest.$ac_objext \
24279 conftest$ac_exeext conftest.$ac_ext
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
24282 $as_echo "$ac_cv_type_long_long" >&6; }
24283 if test $ac_cv_type_long_long = yes; then
24285 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
24291 $as_echo_n "checking for long double... " >&6; }
24292 if ${gt_cv_c_long_double+:} false; then :
24293 $as_echo_n "(cached) " >&6
24295 if test "$GCC" = yes; then
24296 gt_cv_c_long_double=yes
24298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24299 /* end confdefs.h. */
24301 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
24302 long double foo = 0.0;
24303 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
24304 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
24314 if ac_fn_c_try_compile "$LINENO"; then :
24315 gt_cv_c_long_double=yes
24317 gt_cv_c_long_double=no
24319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
24323 $as_echo "$gt_cv_c_long_double" >&6; }
24324 if test $gt_cv_c_long_double = yes; then
24326 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
24332 $as_echo_n "checking for wchar_t... " >&6; }
24333 if ${gt_cv_c_wchar_t+:} false; then :
24334 $as_echo_n "(cached) " >&6
24336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24337 /* end confdefs.h. */
24338 #include <stddef.h>
24339 wchar_t foo = (wchar_t)'\0';
24348 if ac_fn_c_try_compile "$LINENO"; then :
24349 gt_cv_c_wchar_t=yes
24353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
24356 $as_echo "$gt_cv_c_wchar_t" >&6; }
24357 if test $gt_cv_c_wchar_t = yes; then
24359 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
24365 $as_echo_n "checking for wint_t... " >&6; }
24366 if ${gt_cv_c_wint_t+:} false; then :
24367 $as_echo_n "(cached) " >&6
24369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24370 /* end confdefs.h. */
24372 wint_t foo = (wchar_t)'\0';
24381 if ac_fn_c_try_compile "$LINENO"; then :
24386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
24389 $as_echo "$gt_cv_c_wint_t" >&6; }
24390 if test $gt_cv_c_wint_t = yes; then
24392 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
24396 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24397 if test "x$ac_cv_type_size_t" = xyes; then :
24401 cat >>confdefs.h <<_ACEOF
24402 #define size_t unsigned int
24407 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24408 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24410 cat >>confdefs.h <<_ACEOF
24411 #define HAVE_PTRDIFF_T 1
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
24419 $as_echo_n "checking for inttypes.h... " >&6; }
24420 if ${jm_ac_cv_header_inttypes_h+:} false; then :
24421 $as_echo_n "(cached) " >&6
24423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24424 /* end confdefs.h. */
24425 #include <sys/types.h>
24426 #include <inttypes.h>
24430 uintmax_t i = (uintmax_t) -1;
24435 if ac_fn_c_try_compile "$LINENO"; then :
24436 jm_ac_cv_header_inttypes_h=yes
24438 jm_ac_cv_header_inttypes_h=no
24440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
24443 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
24444 if test $jm_ac_cv_header_inttypes_h = yes; then
24446 cat >>confdefs.h <<_ACEOF
24447 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
24454 $as_echo_n "checking for stdint.h... " >&6; }
24455 if ${jm_ac_cv_header_stdint_h+:} false; then :
24456 $as_echo_n "(cached) " >&6
24458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24459 /* end confdefs.h. */
24460 #include <sys/types.h>
24461 #include <stdint.h>
24465 uintmax_t i = (uintmax_t) -1;
24470 if ac_fn_c_try_compile "$LINENO"; then :
24471 jm_ac_cv_header_stdint_h=yes
24473 jm_ac_cv_header_stdint_h=no
24475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
24478 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
24479 if test $jm_ac_cv_header_stdint_h = yes; then
24481 cat >>confdefs.h <<_ACEOF
24482 #define HAVE_STDINT_H_WITH_UINTMAX 1
24490 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
24492 test $ac_cv_type_long_long = yes \
24493 && ac_type='long long' \
24496 cat >>confdefs.h <<_ACEOF
24497 #define intmax_t $ac_type
24502 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
24506 for ac_func in snprintf wcslen
24508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24509 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24510 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24511 cat >>confdefs.h <<_ACEOF
24512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 snprintf" >&5
24519 $as_echo_n "checking for C99 snprintf... " >&6; }
24520 if ${ac_cv_func_snprintf_c99+:} false; then :
24521 $as_echo_n "(cached) " >&6
24523 if test "$cross_compiling" = yes; then :
24524 ac_cv_func_snprintf_c99=no
24526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24527 /* end confdefs.h. */
24529 #include <stdarg.h>
24538 r = snprintf(buffer, 5, "1234567");
24543 r = snprintf(buffer, 0, "1234567");
24548 r = snprintf(NULL, 0, "1234567");
24563 if ac_fn_c_try_run "$LINENO"; then :
24564 ac_cv_func_snprintf_c99=yes
24566 ac_cv_func_snprintf_c99=no
24568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24569 conftest.$ac_objext conftest.beam conftest.$ac_ext
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_c99" >&5
24574 $as_echo "$ac_cv_func_snprintf_c99" >&6; }
24575 if test $ac_cv_func_snprintf_c99 = yes; then
24577 $as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h
24582 # Check if bcopy can be used for overlapping copies, if memmove isn't found.
24583 # The check is borrowed from the PERL Configure script.
24584 if test "$ac_cv_func_memmove" != "yes"; then
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy can handle overlapping copies" >&5
24586 $as_echo_n "checking whether bcopy can handle overlapping copies... " >&6; }
24587 if ${glib_cv_working_bcopy+:} false; then :
24588 $as_echo_n "(cached) " >&6
24590 if test "$cross_compiling" = yes; then :
24591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24593 as_fn_error $? "cannot run test program while cross compiling
24594 See \`config.log' for more details" "$LINENO" 5; }
24596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24597 /* end confdefs.h. */
24600 char buf[128], abc[128], *b;
24601 int len, off, align;
24602 bcopy("abcdefghijklmnopqrstuvwxyz0123456789", abc, 36);
24603 for (align = 7; align >= 0; align--) {
24604 for (len = 36; len; len--) {
24605 b = buf+align; bcopy(abc, b, len);
24606 for (off = 1; off <= len; off++) {
24607 bcopy(b, b+off, len); bcopy(b+off, b, len);
24608 if (bcmp(b, abc, len)) return(1);
24615 if ac_fn_c_try_run "$LINENO"; then :
24616 glib_cv_working_bcopy=yes
24618 glib_cv_working_bcopy=no
24620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24621 conftest.$ac_objext conftest.beam conftest.$ac_ext
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_working_bcopy" >&5
24626 $as_echo "$glib_cv_working_bcopy" >&6; }
24628 if test "x${glib_cv_working_bcopy+set}" != "xset" ; then
24629 as_fn_error $? "glib_cv_working_bcopy must be set in cache file when cross-compiling." "$LINENO" 5
24632 if test "$glib_cv_working_bcopy" = "yes"; then
24634 $as_echo "#define HAVE_WORKING_BCOPY 1" >>confdefs.h
24639 # Check if <sys/select.h> needs to be included for fd_set
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5
24641 $as_echo_n "checking for fd_set... " >&6; }
24642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643 /* end confdefs.h. */
24644 #include <sys/types.h>
24648 fd_set readMask, writeMask;
24653 if ac_fn_c_try_compile "$LINENO"; then :
24658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24659 if test "$gtk_ok" = "yes"; then
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/types.h" >&5
24661 $as_echo "yes, found in sys/types.h" >&6; }
24663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h. */
24665 #include <sys/select.h>
24668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24669 $EGREP "fd_set" >/dev/null 2>&1; then :
24674 if test "$gtk_ok" = "yes"; then
24675 # *** FIXME: give it a different name
24677 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/select.h" >&5
24680 $as_echo "yes, found in sys/select.h" >&6; }
24683 $as_echo "#define NO_FD_SET 1" >>confdefs.h
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24686 $as_echo "no" >&6; }
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realloc (NULL,) will work" >&5
24691 $as_echo_n "checking whether realloc (NULL,) will work... " >&6; }
24692 if ${glib_cv_sane_realloc+:} false; then :
24693 $as_echo_n "(cached) " >&6
24696 if test "$cross_compiling" = yes; then :
24697 glib_cv_sane_realloc=yes
24699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24700 /* end confdefs.h. */
24701 #include <stdlib.h>
24703 return realloc (0, sizeof (int)) == 0;
24706 if ac_fn_c_try_run "$LINENO"; then :
24707 glib_cv_sane_realloc=yes
24709 glib_cv_sane_realloc=no
24711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24712 conftest.$ac_objext conftest.beam conftest.$ac_ext
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sane_realloc" >&5
24718 $as_echo "$glib_cv_sane_realloc" >&6; }
24719 if test x$glib_cv_sane_realloc = xyes; then
24721 $as_echo "#define REALLOC_0_WORKS 1" >>confdefs.h
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
24726 $as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
24727 if ${glib_cv_langinfo_codeset+:} false; then :
24728 $as_echo_n "(cached) " >&6
24731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24732 /* end confdefs.h. */
24733 #include <langinfo.h>
24737 char *codeset = nl_langinfo (CODESET);
24742 if ac_fn_c_try_compile "$LINENO"; then :
24743 glib_cv_langinfo_codeset=yes
24745 glib_cv_langinfo_codeset=no
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_codeset" >&5
24750 $as_echo "$glib_cv_langinfo_codeset" >&6; }
24751 if test x$glib_cv_langinfo_codeset = xyes; then
24753 $as_echo "#define HAVE_CODESET 1" >>confdefs.h
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (PM_STR)" >&5
24758 $as_echo_n "checking for nl_langinfo (PM_STR)... " >&6; }
24759 if ${glib_cv_langinfo_time+:} false; then :
24760 $as_echo_n "(cached) " >&6
24763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24764 /* end confdefs.h. */
24765 #include <langinfo.h>
24770 str = nl_langinfo (PM_STR);
24771 str = nl_langinfo (D_T_FMT);
24772 str = nl_langinfo (D_FMT);
24773 str = nl_langinfo (T_FMT);
24774 str = nl_langinfo (T_FMT_AMPM);
24775 str = nl_langinfo (MON_1);
24776 str = nl_langinfo (ABMON_12);
24777 str = nl_langinfo (DAY_1);
24778 str = nl_langinfo (ABDAY_7);
24783 if ac_fn_c_try_compile "$LINENO"; then :
24784 glib_cv_langinfo_time=yes
24786 glib_cv_langinfo_time=no
24788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_time" >&5
24791 $as_echo "$glib_cv_langinfo_time" >&6; }
24792 if test x$glib_cv_langinfo_time = xyes; then
24794 $as_echo "#define HAVE_LANGINFO_TIME 1" >>confdefs.h
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)" >&5
24799 $as_echo_n "checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)... " >&6; }
24800 if ${glib_cv_langinfo_outdigit+:} false; then :
24801 $as_echo_n "(cached) " >&6
24804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24805 /* end confdefs.h. */
24806 #include <langinfo.h>
24811 str = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
24812 str = nl_langinfo (_NL_CTYPE_OUTDIGIT1_MB);
24813 str = nl_langinfo (_NL_CTYPE_OUTDIGIT2_MB);
24814 str = nl_langinfo (_NL_CTYPE_OUTDIGIT3_MB);
24815 str = nl_langinfo (_NL_CTYPE_OUTDIGIT4_MB);
24816 str = nl_langinfo (_NL_CTYPE_OUTDIGIT5_MB);
24817 str = nl_langinfo (_NL_CTYPE_OUTDIGIT6_MB);
24818 str = nl_langinfo (_NL_CTYPE_OUTDIGIT7_MB);
24819 str = nl_langinfo (_NL_CTYPE_OUTDIGIT8_MB);
24820 str = nl_langinfo (_NL_CTYPE_OUTDIGIT9_MB);
24825 if ac_fn_c_try_compile "$LINENO"; then :
24826 glib_cv_langinfo_outdigit=yes
24828 glib_cv_langinfo_outdigit=no
24830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_outdigit" >&5
24833 $as_echo "$glib_cv_langinfo_outdigit" >&6; }
24834 if test x$glib_cv_langinfo_outdigit = xyes; then
24836 $as_echo "#define HAVE_LANGINFO_OUTDIGIT 1" >>confdefs.h
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a compliant posix_memalign() implementation" >&5
24841 $as_echo_n "checking for a compliant posix_memalign() implementation... " >&6; }
24842 if ${glib_cv_compliant_posix_memalign+:} false; then :
24843 $as_echo_n "(cached) " >&6
24846 glib_cv_compliant_posix_memalign=0
24847 if test "$ac_cv_func_posix_memalign" = "yes" ; then
24848 if test "$cross_compiling" = yes; then :
24851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h. */
24854 #define _XOPEN_SOURCE 600
24855 #include <stdlib.h> /* posix_memalign() should be defined here */
24856 /* some systems break if #include <malloc.h> used */
24857 static void test_memalign (size_t boundary, size_t size) {
24859 if (posix_memalign (&mem, boundary, size) != 0 || !mem)
24865 test_memalign ( 128, 128 - 2 * sizeof (void*));
24866 test_memalign ( 256, 256 - 2 * sizeof (void*));
24867 test_memalign ( 512, 512 - 2 * sizeof (void*));
24868 test_memalign ( 1024, 1024 - 2 * sizeof (void*));
24869 test_memalign ( 2048, 2048 - 2 * sizeof (void*));
24870 test_memalign ( 4096, 4096 - 2 * sizeof (void*));
24871 test_memalign ( 8192, 8192 - 2 * sizeof (void*));
24872 test_memalign (16384, 16384 - 2 * sizeof (void*));
24873 test_memalign (32768, 32768 - 2 * sizeof (void*));
24874 exit (0); /* success */
24878 if ac_fn_c_try_run "$LINENO"; then :
24879 glib_cv_compliant_posix_memalign=1
24881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24882 conftest.$ac_objext conftest.beam conftest.$ac_ext
24890 if test "$glib_cv_compliant_posix_memalign" = "1"; then
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24892 $as_echo "yes" >&6; }
24894 $as_echo "#define POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS 1" >>confdefs.h
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24898 $as_echo "no" >&6; }
24902 # Check for strlcpy
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD strlcpy/strlcat" >&5
24904 $as_echo_n "checking for OpenBSD strlcpy/strlcat... " >&6; }
24905 if ${glib_cv_have_strlcpy+:} false; then :
24906 $as_echo_n "(cached) " >&6
24909 if test "$cross_compiling" = yes; then :
24910 glib_cv_have_strlcpy=no
24912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24913 /* end confdefs.h. */
24914 #include <stdlib.h>
24915 #include <string.h>
24918 (void) strlcpy (p, "hi", 10);
24919 if (strlcat (p, "bye", 0) != 3)
24924 if ac_fn_c_try_run "$LINENO"; then :
24925 glib_cv_have_strlcpy=yes
24927 glib_cv_have_strlcpy=no
24929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24930 conftest.$ac_objext conftest.beam conftest.$ac_ext
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_strlcpy" >&5
24935 $as_echo "$glib_cv_have_strlcpy" >&6; }
24936 if test "$glib_cv_have_strlcpy" = "yes"; then
24938 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5
24944 $as_echo_n "checking for an implementation of va_copy()... " >&6; }
24945 if ${glib_cv_va_copy+:} false; then :
24946 $as_echo_n "(cached) " >&6
24949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24950 /* end confdefs.h. */
24951 #include <stdarg.h>
24952 #include <stdlib.h>
24953 void f (int i, ...) {
24954 va_list args1, args2;
24955 va_start (args1, i);
24956 va_copy (args2, args1);
24957 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24959 va_end (args1); va_end (args2);
24966 if ac_fn_c_try_link "$LINENO"; then :
24967 glib_cv_va_copy=yes
24971 rm -f core conftest.err conftest.$ac_objext \
24972 conftest$ac_exeext conftest.$ac_ext
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_copy" >&5
24976 $as_echo "$glib_cv_va_copy" >&6; }
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5
24978 $as_echo_n "checking for an implementation of __va_copy()... " >&6; }
24979 if ${glib_cv___va_copy+:} false; then :
24980 $as_echo_n "(cached) " >&6
24983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24984 /* end confdefs.h. */
24985 #include <stdarg.h>
24986 #include <stdlib.h>
24987 void f (int i, ...) {
24988 va_list args1, args2;
24989 va_start (args1, i);
24990 __va_copy (args2, args1);
24991 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24993 va_end (args1); va_end (args2);
25000 if ac_fn_c_try_link "$LINENO"; then :
25001 glib_cv___va_copy=yes
25003 glib_cv___va_copy=no
25005 rm -f core conftest.err conftest.$ac_objext \
25006 conftest$ac_exeext conftest.$ac_ext
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv___va_copy" >&5
25010 $as_echo "$glib_cv___va_copy" >&6; }
25012 if test "x$glib_cv_va_copy" = "xyes"; then
25013 g_va_copy_func=va_copy
25014 else if test "x$glib_cv___va_copy" = "xyes"; then
25015 g_va_copy_func=__va_copy
25019 if test -n "$g_va_copy_func"; then
25021 cat >>confdefs.h <<_ACEOF
25022 #define G_VA_COPY $g_va_copy_func
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5
25028 $as_echo_n "checking whether va_lists can be copied by value... " >&6; }
25029 if ${glib_cv_va_val_copy+:} false; then :
25030 $as_echo_n "(cached) " >&6
25033 if test "$cross_compiling" = yes; then :
25034 glib_cv_va_val_copy=yes
25036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25037 /* end confdefs.h. */
25038 #include <stdarg.h>
25039 #include <stdlib.h>
25040 void f (int i, ...) {
25041 va_list args1, args2;
25042 va_start (args1, i);
25044 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
25046 va_end (args1); va_end (args2);
25053 if ac_fn_c_try_run "$LINENO"; then :
25054 glib_cv_va_val_copy=yes
25056 glib_cv_va_val_copy=no
25058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25059 conftest.$ac_objext conftest.beam conftest.$ac_ext
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_val_copy" >&5
25065 $as_echo "$glib_cv_va_val_copy" >&6; }
25067 if test "x$glib_cv_va_val_copy" = "xno"; then
25069 $as_echo "#define G_VA_COPY_AS_ARRAY 1" >>confdefs.h
25074 G_MODULE_LIBS_EXTRA=
25075 G_MODULE_PLUGIN_LIBS=
25076 if test x"$glib_native_win32" = xyes; then
25080 G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
25082 G_MODULE_NEED_USCORE=0
25083 G_MODULE_BROKEN_RTLD_GLOBAL=0
25084 G_MODULE_HAVE_DLERROR=0
25085 if test -z "$G_MODULE_IMPL"; then
25087 *-*-mingw*|*-*-cygwin*) G_MODULE_IMPL=G_MODULE_IMPL_WIN32 ;;
25090 if test -z "$G_MODULE_IMPL"; then
25092 *-*-aix*) G_MODULE_IMPL=G_MODULE_IMPL_AR ;;
25095 if test -z "$G_MODULE_IMPL"; then
25096 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
25097 if test "x$ac_cv_func_dlopen" = xyes; then :
25098 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
25099 if test "x$ac_cv_func_dlsym" = xyes; then :
25100 G_MODULE_IMPL=G_MODULE_IMPL_DL
25106 if test -z "$G_MODULE_IMPL" && test "x$glib_native_beos" = "xyes"; then
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
25108 $as_echo_n "checking for load_image in -lroot... " >&6; }
25109 if ${ac_cv_lib_root_load_image+:} false; then :
25110 $as_echo_n "(cached) " >&6
25112 ac_check_lib_save_LIBS=$LIBS
25113 LIBS="-lroot $LIBS"
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25117 /* Override any GCC internal prototype to avoid an error.
25118 Use char because int might match the return type of a GCC
25119 builtin and then its argument prototype would still apply. */
25123 char load_image ();
25127 return load_image ();
25132 if ac_fn_c_try_link "$LINENO"; then :
25133 ac_cv_lib_root_load_image=yes
25135 ac_cv_lib_root_load_image=no
25137 rm -f core conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext conftest.$ac_ext
25139 LIBS=$ac_check_lib_save_LIBS
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
25142 $as_echo "$ac_cv_lib_root_load_image" >&6; }
25143 if test "x$ac_cv_lib_root_load_image" = xyes; then :
25144 G_MODULE_LIBS="-lbe -lroot -lglib-2.0 "
25145 G_MODULE_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
25146 G_MODULE_PLUGIN_LIBS="-L\$(top_builddir_full)/gmodule/.libs -lgmodule"
25147 G_MODULE_IMPL=G_MODULE_IMPL_BEOS
25151 if test -z "$G_MODULE_IMPL"; then
25152 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
25153 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
25154 G_MODULE_IMPL=G_MODULE_IMPL_DYLD
25155 G_MODULE_NEED_USCORE=1
25159 if test -z "$G_MODULE_IMPL"; then
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
25161 $as_echo_n "checking for dlopen in -ldl... " >&6; }
25162 if ${ac_cv_lib_dl_dlopen+:} false; then :
25163 $as_echo_n "(cached) " >&6
25165 ac_check_lib_save_LIBS=$LIBS
25167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25168 /* end confdefs.h. */
25170 /* Override any GCC internal prototype to avoid an error.
25171 Use char because int might match the return type of a GCC
25172 builtin and then its argument prototype would still apply. */
25185 if ac_fn_c_try_link "$LINENO"; then :
25186 ac_cv_lib_dl_dlopen=yes
25188 ac_cv_lib_dl_dlopen=no
25190 rm -f core conftest.err conftest.$ac_objext \
25191 conftest$ac_exeext conftest.$ac_ext
25192 LIBS=$ac_check_lib_save_LIBS
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
25195 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
25196 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
25198 $as_echo_n "checking for dlsym in -ldl... " >&6; }
25199 if ${ac_cv_lib_dl_dlsym+:} false; then :
25200 $as_echo_n "(cached) " >&6
25202 ac_check_lib_save_LIBS=$LIBS
25204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25205 /* end confdefs.h. */
25207 /* Override any GCC internal prototype to avoid an error.
25208 Use char because int might match the return type of a GCC
25209 builtin and then its argument prototype would still apply. */
25222 if ac_fn_c_try_link "$LINENO"; then :
25223 ac_cv_lib_dl_dlsym=yes
25225 ac_cv_lib_dl_dlsym=no
25227 rm -f core conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
25229 LIBS=$ac_check_lib_save_LIBS
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
25232 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
25233 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
25235 G_MODULE_IMPL=G_MODULE_IMPL_DL
25241 if test -z "$G_MODULE_IMPL"; then
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
25243 $as_echo_n "checking for shl_load in -ldld... " >&6; }
25244 if ${ac_cv_lib_dld_shl_load+:} false; then :
25245 $as_echo_n "(cached) " >&6
25247 ac_check_lib_save_LIBS=$LIBS
25249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25250 /* end confdefs.h. */
25252 /* Override any GCC internal prototype to avoid an error.
25253 Use char because int might match the return type of a GCC
25254 builtin and then its argument prototype would still apply. */
25262 return shl_load ();
25267 if ac_fn_c_try_link "$LINENO"; then :
25268 ac_cv_lib_dld_shl_load=yes
25270 ac_cv_lib_dld_shl_load=no
25272 rm -f core conftest.err conftest.$ac_objext \
25273 conftest$ac_exeext conftest.$ac_ext
25274 LIBS=$ac_check_lib_save_LIBS
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
25277 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
25278 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
25279 G_MODULE_LIBS=-ldld
25280 G_MODULE_IMPL=G_MODULE_IMPL_DLD
25284 if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
25286 LDFLAGS_orig="$LDFLAGS"
25287 LIBS="$G_MODULE_LIBS $LIBS"
25288 LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
25289 echo "void glib_plugin_test(void) { }" > plugin.c
25290 ${SHELL} ./libtool --mode=compile --tag=CC ${CC} ${CFLAGS} \
25291 ${CPPFLAGS} -c -o plugin.lo plugin.c >/dev/null 2>&1
25292 ${SHELL} ./libtool --mode=link --tag=CC ${CC} ${CFLAGS} \
25293 ${LDFLAGS} -module -o plugin.la -export-dynamic \
25294 -shrext ".o" -avoid-version plugin.lo \
25295 -rpath /dont/care >/dev/null 2>&1
25296 eval `./libtool --config | grep ^objdir`
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_GLOBAL brokenness" >&5
25298 $as_echo_n "checking for RTLD_GLOBAL brokenness... " >&6; }
25299 if ${glib_cv_rtldglobal_broken+:} false; then :
25300 $as_echo_n "(cached) " >&6
25303 if test "$cross_compiling" = yes; then :
25304 glib_cv_rtldglobal_broken=no
25306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h. */
25310 #ifndef RTLD_GLOBAL
25311 # define RTLD_GLOBAL 0
25314 # define RTLD_LAZY 0
25316 int glib_plugin_test;
25318 void *handle, *global, *local;
25319 global = &glib_plugin_test;
25320 handle = dlopen ("./$objdir/plugin.o", RTLD_GLOBAL | RTLD_LAZY);
25321 if (!handle) return 0;
25322 local = dlsym (handle, "glib_plugin_test");
25323 return global == local;
25326 if ac_fn_c_try_run "$LINENO"; then :
25327 glib_cv_rtldglobal_broken=no
25329 glib_cv_rtldglobal_broken=yes
25331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25332 conftest.$ac_objext conftest.beam conftest.$ac_ext
25335 rm -f plugin.c plugin.o plugin.lo plugin.la ${objdir}/plugin.*
25336 rmdir ${objdir} 2>/dev/null
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_rtldglobal_broken" >&5
25340 $as_echo "$glib_cv_rtldglobal_broken" >&6; }
25341 if test "x$glib_cv_rtldglobal_broken" = "xyes"; then
25342 G_MODULE_BROKEN_RTLD_GLOBAL=1
25344 G_MODULE_BROKEN_RTLD_GLOBAL=0
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preceeding underscore in symbols" >&5
25347 $as_echo_n "checking for preceeding underscore in symbols... " >&6; }
25348 if ${glib_cv_uscore+:} false; then :
25349 $as_echo_n "(cached) " >&6
25352 if test "$cross_compiling" = yes; then :
25353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25355 as_fn_error $? "cannot run test program while cross compiling
25356 See \`config.log' for more details" "$LINENO" 5; }
25358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25359 /* end confdefs.h. */
25361 int glib_underscore_test (void) { return 42; }
25363 void *f1 = (void*)0, *f2 = (void*)0, *handle;
25364 handle = dlopen ((void*)0, 0);
25366 f1 = dlsym (handle, "glib_underscore_test");
25367 f2 = dlsym (handle, "_glib_underscore_test");
25368 } return (!f2 || f1);
25371 if ac_fn_c_try_run "$LINENO"; then :
25376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25377 conftest.$ac_objext conftest.beam conftest.$ac_ext
25380 rm -f plugin.c plugin.$ac_objext plugin.lo
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_uscore" >&5
25384 $as_echo "$glib_cv_uscore" >&6; }
25385 if test "x${glib_cv_uscore+set}" != "xset" ; then
25386 as_fn_error $? "glib_cv_uscore must be set in cache file when cross-compiling." "$LINENO" 5
25389 if test "x$glib_cv_uscore" = "xyes"; then
25390 G_MODULE_NEED_USCORE=1
25392 G_MODULE_NEED_USCORE=0
25395 LDFLAGS="$LDFLAGS_orig"
25396 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
25397 if test "x$ac_cv_func_dlerror" = xyes; then :
25398 G_MODULE_HAVE_DLERROR=1
25400 G_MODULE_HAVE_DLERROR=0
25405 if test -z "$G_MODULE_IMPL"; then
25407 G_MODULE_SUPPORTED=false
25409 G_MODULE_SUPPORTED=true
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of module shared libraries" >&5
25413 $as_echo_n "checking for the suffix of module shared libraries... " >&6; }
25415 shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
25417 module=yes eval std_shrext=$shrext_cmds
25418 # chop the initial dot
25419 glib_gmodule_suffix=`echo $std_shrext | sed 's/^\.//'`
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$glib_gmodule_suffix" >&5
25421 $as_echo ".$glib_gmodule_suffix" >&6; }
25422 # any reason it may fail?
25423 if test "x$glib_gmodule_suffix" = x; then
25424 as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gspawn implementation" >&5
25440 $as_echo_n "checking for gspawn implementation... " >&6; }
25443 GSPAWN=gspawn-win32.lo
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPAWN" >&5
25450 $as_echo "$GSPAWN" >&6; }
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIOChannel implementation" >&5
25455 $as_echo_n "checking for GIOChannel implementation... " >&6; }
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIO" >&5
25465 $as_echo "$GIO" >&6; }
25470 # Check whether --with-gio-module-dir was given.
25471 if test "${with_gio_module_dir+set}" = set; then :
25472 withval=$with_gio_module_dir;
25474 with_gio_module_dir='${libdir}/gio/modules'
25477 GIO_MODULE_DIR=$with_gio_module_dir
25480 # Check whether --enable-selinux was given.
25481 if test "${enable_selinux+set}" = set; then :
25482 enableval=$enable_selinux;
25487 if test "x$enable_selinux" != "xno"; then
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
25490 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
25491 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
25492 $as_echo_n "(cached) " >&6
25494 ac_check_lib_save_LIBS=$LIBS
25495 LIBS="-lselinux $LIBS"
25496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25497 /* end confdefs.h. */
25499 /* Override any GCC internal prototype to avoid an error.
25500 Use char because int might match the return type of a GCC
25501 builtin and then its argument prototype would still apply. */
25505 char is_selinux_enabled ();
25509 return is_selinux_enabled ();
25514 if ac_fn_c_try_link "$LINENO"; then :
25515 ac_cv_lib_selinux_is_selinux_enabled=yes
25517 ac_cv_lib_selinux_is_selinux_enabled=no
25519 rm -f core conftest.err conftest.$ac_objext \
25520 conftest$ac_exeext conftest.$ac_ext
25521 LIBS=$ac_check_lib_save_LIBS
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
25524 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
25525 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
25526 for ac_header in selinux/selinux.h
25528 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
25529 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
25530 cat >>confdefs.h <<_ACEOF
25531 #define HAVE_SELINUX_SELINUX_H 1
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon_raw in -lselinux" >&5
25534 $as_echo_n "checking for lgetfilecon_raw in -lselinux... " >&6; }
25535 if ${ac_cv_lib_selinux_lgetfilecon_raw+:} false; then :
25536 $as_echo_n "(cached) " >&6
25538 ac_check_lib_save_LIBS=$LIBS
25539 LIBS="-lselinux $LIBS"
25540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541 /* end confdefs.h. */
25543 /* Override any GCC internal prototype to avoid an error.
25544 Use char because int might match the return type of a GCC
25545 builtin and then its argument prototype would still apply. */
25549 char lgetfilecon_raw ();
25553 return lgetfilecon_raw ();
25558 if ac_fn_c_try_link "$LINENO"; then :
25559 ac_cv_lib_selinux_lgetfilecon_raw=yes
25561 ac_cv_lib_selinux_lgetfilecon_raw=no
25563 rm -f core conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
25565 LIBS=$ac_check_lib_save_LIBS
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon_raw" >&5
25568 $as_echo "$ac_cv_lib_selinux_lgetfilecon_raw" >&6; }
25569 if test "x$ac_cv_lib_selinux_lgetfilecon_raw" = xyes; then :
25571 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
25573 SELINUX_LIBS="-lselinux"
25589 for ac_header in sys/inotify.h
25591 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
25592 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
25593 cat >>confdefs.h <<_ACEOF
25594 #define HAVE_SYS_INOTIFY_H 1
25597 inotify_support=yes
25598 for ac_func in inotify_init1
25600 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
25601 if test "x$ac_cv_func_inotify_init1" = xyes; then :
25602 cat >>confdefs.h <<_ACEOF
25603 #define HAVE_INOTIFY_INIT1 1
25615 if test "$inotify_support" = "yes"; then
25617 HAVE_INOTIFY_FALSE='#'
25619 HAVE_INOTIFY_TRUE='#'
25620 HAVE_INOTIFY_FALSE=
25625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25626 /* end confdefs.h. */
25629 #ifndef PORT_SOURCE_FILE
25630 #error "Please upgrade to Nevada 72 or above to suppoert FEN"
25632 int main() { return 0; }
25634 if ac_fn_c_try_compile "$LINENO"; then :
25639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25641 if test "$fen_support" = "yes"; then
25651 should_disable_fam=no
25653 # Check whether --enable-fam was given.
25654 if test "${enable_fam+set}" = set; then :
25655 enableval=$enable_fam;
25656 if test "x$enable_fam" = "xno"; then
25657 should_disable_fam=yes
25665 if test "x$should_disable_fam" = "xno"; then
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen in -lfam" >&5
25667 $as_echo_n "checking for FAMOpen in -lfam... " >&6; }
25668 if ${ac_cv_lib_fam_FAMOpen+:} false; then :
25669 $as_echo_n "(cached) " >&6
25671 ac_check_lib_save_LIBS=$LIBS
25673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25674 /* end confdefs.h. */
25676 /* Override any GCC internal prototype to avoid an error.
25677 Use char because int might match the return type of a GCC
25678 builtin and then its argument prototype would still apply. */
25691 if ac_fn_c_try_link "$LINENO"; then :
25692 ac_cv_lib_fam_FAMOpen=yes
25694 ac_cv_lib_fam_FAMOpen=no
25696 rm -f core conftest.err conftest.$ac_objext \
25697 conftest$ac_exeext conftest.$ac_ext
25698 LIBS=$ac_check_lib_save_LIBS
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen" >&5
25701 $as_echo "$ac_cv_lib_fam_FAMOpen" >&6; }
25702 if test "x$ac_cv_lib_fam_FAMOpen" = xyes; then :
25703 for ac_header in fam.h
25705 ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
25706 if test "x$ac_cv_header_fam_h" = xyes; then :
25707 cat >>confdefs.h <<_ACEOF
25708 #define HAVE_FAM_H 1
25711 $as_echo "#define HAVE_FAM /**/" >>confdefs.h
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMNoExists in -lfam" >&5
25714 $as_echo_n "checking for FAMNoExists in -lfam... " >&6; }
25715 if ${ac_cv_lib_fam_FAMNoExists+:} false; then :
25716 $as_echo_n "(cached) " >&6
25718 ac_check_lib_save_LIBS=$LIBS
25720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h. */
25723 /* Override any GCC internal prototype to avoid an error.
25724 Use char because int might match the return type of a GCC
25725 builtin and then its argument prototype would still apply. */
25729 char FAMNoExists ();
25733 return FAMNoExists ();
25738 if ac_fn_c_try_link "$LINENO"; then :
25739 ac_cv_lib_fam_FAMNoExists=yes
25741 ac_cv_lib_fam_FAMNoExists=no
25743 rm -f core conftest.err conftest.$ac_objext \
25744 conftest$ac_exeext conftest.$ac_ext
25745 LIBS=$ac_check_lib_save_LIBS
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMNoExists" >&5
25748 $as_echo "$ac_cv_lib_fam_FAMNoExists" >&6; }
25749 if test "x$ac_cv_lib_fam_FAMNoExists" = xyes; then :
25751 $as_echo "#define HAVE_FAM_NO_EXISTS /**/" >>confdefs.h
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (header files not found) ***" >&5
25759 $as_echo "$as_me: WARNING: *** FAM support will not be built (header files not found) ***" >&2;}
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (FAM library not found) ***" >&5
25766 $as_echo "$as_me: WARNING: *** FAM support will not be built (FAM library not found) ***" >&2;}
25771 if test "$fam_support" = "yes"; then
25781 # Check whether --enable-xattr was given.
25782 if test "${enable_xattr+set}" = set; then :
25783 enableval=$enable_xattr;
25788 if test "x$enable_xattr" != "xno"; then
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lc" >&5
25793 $as_echo_n "checking for getxattr in -lc... " >&6; }
25794 if ${ac_cv_lib_c_getxattr+:} false; then :
25795 $as_echo_n "(cached) " >&6
25797 ac_check_lib_save_LIBS=$LIBS
25799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25800 /* end confdefs.h. */
25802 /* Override any GCC internal prototype to avoid an error.
25803 Use char because int might match the return type of a GCC
25804 builtin and then its argument prototype would still apply. */
25812 return getxattr ();
25817 if ac_fn_c_try_link "$LINENO"; then :
25818 ac_cv_lib_c_getxattr=yes
25820 ac_cv_lib_c_getxattr=no
25822 rm -f core conftest.err conftest.$ac_objext \
25823 conftest$ac_exeext conftest.$ac_ext
25824 LIBS=$ac_check_lib_save_LIBS
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getxattr" >&5
25827 $as_echo "$ac_cv_lib_c_getxattr" >&6; }
25828 if test "x$ac_cv_lib_c_getxattr" = xyes; then :
25829 for ac_header in sys/xattr.h
25831 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
25832 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
25833 cat >>confdefs.h <<_ACEOF
25834 #define HAVE_SYS_XATTR_H 1
25837 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
25848 if test "x$msg_xattr" != "xyes"; then
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
25850 $as_echo_n "checking for getxattr in -lattr... " >&6; }
25851 if ${ac_cv_lib_attr_getxattr+:} false; then :
25852 $as_echo_n "(cached) " >&6
25854 ac_check_lib_save_LIBS=$LIBS
25855 LIBS="-lattr $LIBS"
25856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25857 /* end confdefs.h. */
25859 /* Override any GCC internal prototype to avoid an error.
25860 Use char because int might match the return type of a GCC
25861 builtin and then its argument prototype would still apply. */
25869 return getxattr ();
25874 if ac_fn_c_try_link "$LINENO"; then :
25875 ac_cv_lib_attr_getxattr=yes
25877 ac_cv_lib_attr_getxattr=no
25879 rm -f core conftest.err conftest.$ac_objext \
25880 conftest$ac_exeext conftest.$ac_ext
25881 LIBS=$ac_check_lib_save_LIBS
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
25884 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
25885 if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
25886 for ac_header in attr/xattr.h
25888 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
25889 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
25890 cat >>confdefs.h <<_ACEOF
25891 #define HAVE_ATTR_XATTR_H 1
25894 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
25896 XATTR_LIBS="-lattr"
25907 if test "x$msg_xattr" = "xyes"; then
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NOFOLLOW" >&5
25909 $as_echo_n "checking for XATTR_NOFOLLOW... " >&6; }
25910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25911 /* end confdefs.h. */
25914 #ifdef HAVE_SYS_TYPES_H
25915 #include <sys/types.h>
25917 #ifdef HAVE_SYS_XATTR_H
25918 #include <sys/xattr.h>
25919 #elif HAVE_ATTR_XATTR_H
25920 #include <attr/xattr.h>
25926 ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);
25931 if ac_fn_c_try_compile "$LINENO"; then :
25934 $as_echo "#define HAVE_XATTR_NOFOLLOW 1" >>confdefs.h
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25937 $as_echo "yes" >&6; }
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25941 $as_echo "no" >&6; }
25944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
25952 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
25953 if ${ac_cv_lib_elf_elf_begin+:} false; then :
25954 $as_echo_n "(cached) " >&6
25956 ac_check_lib_save_LIBS=$LIBS
25958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25959 /* end confdefs.h. */
25961 /* Override any GCC internal prototype to avoid an error.
25962 Use char because int might match the return type of a GCC
25963 builtin and then its argument prototype would still apply. */
25971 return elf_begin ();
25976 if ac_fn_c_try_link "$LINENO"; then :
25977 ac_cv_lib_elf_elf_begin=yes
25979 ac_cv_lib_elf_elf_begin=no
25981 rm -f core conftest.err conftest.$ac_objext \
25982 conftest$ac_exeext conftest.$ac_ext
25983 LIBS=$ac_check_lib_save_LIBS
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
25986 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
25987 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
25993 if test $have_libelf = yes; then
25995 $as_echo "#define HAVE_LIBELF 1" >>confdefs.h
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform-dependent source" >&5
26003 $as_echo_n "checking for platform-dependent source... " >&6; }
26005 *-*-cygwin*|*-*-mingw*)
26006 PLATFORMDEP=gwin32.lo
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORMDEP" >&5
26013 $as_echo "$PLATFORMDEP" >&6; }
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile timeloop" >&5
26017 $as_echo_n "checking whether to compile timeloop... " >&6; }
26019 *-*-cygwin*|*-*-mingw*|*-*-minix)
26023 enable_timeloop=yes
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_timeloop" >&5
26027 $as_echo "$enable_timeloop" >&6; }
26028 if test x$enable_timeloop = xyes; then
26029 ENABLE_TIMELOOP_TRUE=
26030 ENABLE_TIMELOOP_FALSE='#'
26032 ENABLE_TIMELOOP_TRUE='#'
26033 ENABLE_TIMELOOP_FALSE=
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
26038 $as_echo_n "checking if building for some Win32 platform... " >&6; }
26040 *-*-mingw*|*-*-cygwin*)
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
26048 $as_echo "$platform_win32" >&6; }
26049 if test x$platform_win32 = xyes; then
26050 PLATFORM_WIN32_TRUE=
26051 PLATFORM_WIN32_FALSE='#'
26053 PLATFORM_WIN32_TRUE='#'
26054 PLATFORM_WIN32_FALSE=
26060 # Check whether --with-threads was given.
26061 if test "${with_threads+set}" = set; then :
26062 withval=$with_threads;
26069 THREAD_NO_IMPLEMENTATION="No thread implementation found."
26071 FLAG_DOES_NOT_WORK="I can't find the MACRO to enable thread safety on your
26072 platform (normally it's "_REENTRANT"). I'll not use any flag on
26073 compilation now, but then your programs might not work.
26074 Please provide information on how it is done on your system."
26076 LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
26079 LIBS_NOT_FOUND_2=". Please choose another thread implementation or
26080 provide information on your thread implementation."
26082 FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
26083 functions will not be MT-safe during their first call because
26084 there is no working 'getpwuid_r' on your system."
26086 FUNC_NO_LOCALTIME_R="the 'g_date_set_time' function will not be MT-safe
26087 because there is no 'localtime_r' on your system."
26089 AIX_COMPILE_INFO="AIX's C compiler needs to be called by a different name, when
26090 linking threaded applications. As GLib cannot do that
26091 automatically, you will get an linkg error everytime you are
26092 not using the right compiler. In that case you have to relink
26093 with the right compiler. Ususally just '_r' is appended
26094 to the compiler name."
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread implementation" >&5
26098 $as_echo_n "checking for thread implementation... " >&6; }
26101 if test "x$with_threads" = xyes || test "x$with_threads" = xposix; then
26102 # -D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE is for DG/UX
26103 # -U_OSF_SOURCE is for Digital UNIX 4.0d
26104 GTHREAD_COMPILE_IMPL_DEFINES="-D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE -U_OSF_SOURCE"
26105 glib_save_CPPFLAGS="$CPPFLAGS"
26106 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26107 if test "x$have_threads" = xno; then
26108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26109 /* end confdefs.h. */
26110 #include <pthread.h>
26114 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
26119 if ac_fn_c_try_compile "$LINENO"; then :
26122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26124 # Tru64Unix requires -pthread to find pthread.h. See #103020
26125 CPPFLAGS="$CPPFLAGS -pthread"
26126 if test "x$have_threads" = xno; then
26127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26128 /* end confdefs.h. */
26129 #include <pthread.h>
26133 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
26138 if ac_fn_c_try_compile "$LINENO"; then :
26141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26143 CPPFLAGS="$glib_save_CPPFLAGS"
26145 if test "x$with_threads" = xyes || test "x$with_threads" = xwin32; then
26153 if test "x$have_threads" = xno; then
26154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none available" >&5
26155 $as_echo "none available" >&6; }
26156 as_fn_error $? "$THREAD_NO_IMPLEMENTATION" "$LINENO" 5
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5
26159 $as_echo "$have_threads" >&6; }
26165 G_THREAD_LIBS_EXTRA=
26170 if test x"$have_threads" = xposix; then
26171 # First we test for posix, whether -pthread or -pthreads do the trick as
26172 # both CPPFLAG and LIBS.
26173 # One of them does for most gcc versions and some other platforms/compilers
26174 # too and could be considered as the canonical way to go.
26176 *-*-cygwin*|*-*-darwin*)
26177 # skip cygwin and darwin -pthread or -pthreads test
26180 # These compiler/linker flags work with both Sun Studio and gcc
26181 # Sun Studio expands -mt to -D_REENTRANT and -lthread
26182 # gcc expands -pthreads to -D_REENTRANT -D_PTHREADS -lpthread
26183 G_THREAD_CFLAGS="-D_REENTRANT -D_PTHREADS"
26184 G_THREAD_LIBS="-lpthread -lthread"
26187 for flag in pthread pthreads mt; do
26188 glib_save_CFLAGS="$CFLAGS"
26189 CFLAGS="$CFLAGS -$flag"
26190 if test "$cross_compiling" = yes; then :
26191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26192 /* end confdefs.h. */
26194 #include <pthread.h>
26196 void* func(void* data) {check_me = 42; return &check_me;}
26200 pthread_create (&t, 0, func, 0);
26201 pthread_join (t, &ret);
26202 return (check_me != 42 || ret != &check_me);
26205 if ac_fn_c_try_link "$LINENO"; then :
26206 glib_flag_works=yes
26210 rm -f core conftest.err conftest.$ac_objext \
26211 conftest$ac_exeext conftest.$ac_ext
26213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26214 /* end confdefs.h. */
26216 #include <pthread.h>
26218 void* func(void* data) {check_me = 42; return &check_me;}
26222 pthread_create (&t, 0, func, 0);
26223 pthread_join (t, &ret);
26224 return (check_me != 42 || ret != &check_me);
26227 if ac_fn_c_try_run "$LINENO"; then :
26228 glib_flag_works=yes
26232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26233 conftest.$ac_objext conftest.beam conftest.$ac_ext
26236 CFLAGS="$glib_save_CFLAGS"
26237 if test $glib_flag_works = yes ; then
26238 G_THREAD_CFLAGS=-$flag
26239 G_THREAD_LIBS=-$flag
26247 if test x"$G_THREAD_CFLAGS" = x; then
26249 # The canonical -pthread[s] does not work. Try something different.
26253 if test x"$GCC" = xyes; then
26254 # GCC 3.0 and above needs -pthread.
26255 # Should be coverd by the case above.
26256 # GCC 2.x and below needs -mthreads
26257 G_THREAD_CFLAGS="-mthreads"
26258 G_THREAD_LIBS=$G_THREAD_CFLAGS
26260 # We are probably using the aix compiler. Normaly a
26261 # program would have to be compiled with the _r variant
26262 # of the corresponding compiler, but we as GLib cannot
26263 # do that: but the good news is that for compiling the
26264 # only difference is the added -D_THREAD_SAFE compile
26265 # option. This is according to the "C for AIX User's
26267 G_THREAD_CFLAGS="-D_THREAD_SAFE"
26270 *-dg-dgux*) # DG/UX
26271 G_THREAD_CFLAGS="-D_REENTRANT -D_POSIX4A_DRAFT10_SOURCE"
26273 *-sysv5uw7*) # UnixWare 7
26274 # We are not using gcc with -pthread. Catched above.
26275 G_THREAD_CFLAGS="-Kthread"
26276 G_THREAD_LIBS=$G_THREAD_CFLAGS
26279 # No flag needed when using MSVCRT.DLL
26283 G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise
26289 # if we are not finding the localtime_r function, then we probably are
26290 # not using the proper multithread flag
26292 glib_save_CPPFLAGS="$CPPFLAGS"
26293 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
26295 # First we test, whether localtime_r is declared in time.h
26296 # directly. Then we test whether a macro localtime_r exists, in
26297 # which case localtime_r in the test program is replaced and thus
26298 # if we still find localtime_r in the output, it is not defined as
26301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26302 /* end confdefs.h. */
26305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26306 $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
26309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26310 /* end confdefs.h. */
26314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26315 $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FLAG_DOES_NOT_WORK" >&5
26317 $as_echo "$as_me: WARNING: $FLAG_DOES_NOT_WORK" >&2;}
26325 CPPFLAGS="$glib_save_CPPFLAGS"
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related cflags" >&5
26328 $as_echo_n "checking thread related cflags... " >&6; }
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_CFLAGS" >&5
26330 $as_echo "$G_THREAD_CFLAGS" >&6; }
26331 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
26334 case $have_threads in
26336 glib_save_CPPFLAGS="$CPPFLAGS"
26337 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26338 if test x"$G_THREAD_LIBS" = x; then
26341 # We are not using gcc (would have set G_THREAD_LIBS) and thus
26342 # probably using the aix compiler.
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $AIX_COMPILE_INFO" >&5
26344 $as_echo "$as_me: WARNING: $AIX_COMPILE_INFO" >&2;}
26347 G_THREAD_LIBS=error
26348 glib_save_LIBS="$LIBS"
26349 for thread_lib in "" pthread pthread32 pthreads thread; do
26350 if test x"$thread_lib" = x; then
26354 add_thread_lib="-l$thread_lib"
26355 IN=" in -l$thread_lib"
26357 if test x"$have_threads" = xposix; then
26360 defattr=pthread_attr_default
26363 LIBS="$add_thread_lib $glib_save_LIBS"
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create/pthread_join$IN" >&5
26366 $as_echo_n "checking for pthread_create/pthread_join$IN... " >&6; }
26367 if test "$cross_compiling" = yes; then :
26368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26369 /* end confdefs.h. */
26371 #include <pthread.h>
26373 void* func(void* data) {check_me = 42; return &check_me;}
26377 pthread_create (&t, $defattr, func, 0);
26378 pthread_join (t, &ret);
26379 return (check_me != 42 || ret != &check_me);
26382 if ac_fn_c_try_link "$LINENO"; then :
26387 rm -f core conftest.err conftest.$ac_objext \
26388 conftest$ac_exeext conftest.$ac_ext
26390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26391 /* end confdefs.h. */
26393 #include <pthread.h>
26395 void* func(void* data) {check_me = 42; return &check_me;}
26399 pthread_create (&t, $defattr, func, 0);
26400 pthread_join (t, &ret);
26401 return (check_me != 42 || ret != &check_me);
26404 if ac_fn_c_try_run "$LINENO"; then :
26409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26410 conftest.$ac_objext conftest.beam conftest.$ac_ext
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_result" >&5
26414 $as_echo "$glib_result" >&6; }
26416 if test "$glib_result" = "yes" ; then
26417 G_THREAD_LIBS="$add_thread_lib"
26421 if test "x$G_THREAD_LIBS" = xerror; then
26422 as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
26424 LIBS="$glib_save_LIBS"
26429 g_threads_impl="POSIX"
26431 CPPFLAGS="$glib_save_CPPFLAGS"
26434 g_threads_impl="WIN32"
26437 g_threads_impl="NONE"
26438 G_THREAD_LIBS=error
26442 if test "x$G_THREAD_LIBS" = xerror; then
26443 as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
26448 G_THREAD_LIBS="-lbe -lroot -lglib-2.0 "
26449 G_THREAD_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related libraries" >&5
26456 $as_echo_n "checking thread related libraries... " >&6; }
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_LIBS" >&5
26458 $as_echo "$G_THREAD_LIBS" >&6; }
26461 glib_save_LIBS="$LIBS"
26462 # we are not doing the following for now, as this might require glib
26463 # to always be linked with the thread libs on some platforms.
26464 # LIBS="$LIBS $G_THREAD_LIBS"
26465 for ac_func in localtime_r gmtime_r
26467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26469 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26470 cat >>confdefs.h <<_ACEOF
26471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26477 if test "$ac_cv_header_pwd_h" = "yes"; then
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getpwuid_r" >&5
26479 $as_echo_n "checking for posix getpwuid_r... " >&6; }
26480 if ${ac_cv_func_posix_getpwuid_r+:} false; then :
26481 $as_echo_n "(cached) " >&6
26483 if test "$cross_compiling" = yes; then :
26484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26486 as_fn_error $? "cannot run test program while cross compiling
26487 See \`config.log' for more details" "$LINENO" 5; }
26489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26490 /* end confdefs.h. */
26495 char buffer[10000];
26496 struct passwd pwd, *pwptr = &pwd;
26499 error = getpwuid_r (0, &pwd, buffer,
26500 sizeof (buffer), &pwptr);
26501 return (error < 0 && errno == ENOSYS)
26502 || error == ENOSYS;
26505 if ac_fn_c_try_run "$LINENO"; then :
26506 ac_cv_func_posix_getpwuid_r=yes
26508 ac_cv_func_posix_getpwuid_r=no
26510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26511 conftest.$ac_objext conftest.beam conftest.$ac_ext
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getpwuid_r" >&5
26516 $as_echo "$ac_cv_func_posix_getpwuid_r" >&6; }
26517 if test "x${ac_cv_func_posix_getpwuid_r+set}" != "xset" ; then
26518 as_fn_error $? "ac_cv_func_posix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
26521 if test "$ac_cv_func_posix_getpwuid_r" = yes; then
26523 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getpwuid_r" >&5
26527 $as_echo_n "checking for nonposix getpwuid_r... " >&6; }
26528 if ${ac_cv_func_nonposix_getpwuid_r+:} false; then :
26529 $as_echo_n "(cached) " >&6
26531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532 /* end confdefs.h. */
26537 char buffer[10000];
26539 getpwuid_r (0, &pwd, buffer,
26545 if ac_fn_c_try_link "$LINENO"; then :
26546 ac_cv_func_nonposix_getpwuid_r=yes
26548 ac_cv_func_nonposix_getpwuid_r=no
26550 rm -f core conftest.err conftest.$ac_objext \
26551 conftest$ac_exeext conftest.$ac_ext
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getpwuid_r" >&5
26554 $as_echo "$ac_cv_func_nonposix_getpwuid_r" >&6; }
26555 if test "x${ac_cv_func_nonposix_getpwuid_r+set}" != "xset" ; then
26556 as_fn_error $? "ac_cv_func_nonposix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
26559 if test "$ac_cv_func_nonposix_getpwuid_r" = yes; then
26561 $as_echo "#define HAVE_NONPOSIX_GETPWUID_R 1" >>confdefs.h
26566 if test "$ac_cv_header_grp_h" = "yes"; then
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getgrgid_r" >&5
26568 $as_echo_n "checking for posix getgrgid_r... " >&6; }
26569 if ${ac_cv_func_posix_getgrgid_r+:} false; then :
26570 $as_echo_n "(cached) " >&6
26572 if test "$cross_compiling" = yes; then :
26573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26575 as_fn_error $? "cannot run test program while cross compiling
26576 See \`config.log' for more details" "$LINENO" 5; }
26578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579 /* end confdefs.h. */
26584 char buffer[10000];
26585 struct group grp, *grpptr = &grp;
26588 error = getgrgid_r (0, &grp, buffer,
26589 sizeof (buffer), &grpptr);
26590 return (error < 0 && errno == ENOSYS)
26591 || error == ENOSYS;
26594 if ac_fn_c_try_run "$LINENO"; then :
26595 ac_cv_func_posix_getgrgid_r=yes
26597 ac_cv_func_posix_getgrgid_r=no
26599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26600 conftest.$ac_objext conftest.beam conftest.$ac_ext
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getgrgid_r" >&5
26605 $as_echo "$ac_cv_func_posix_getgrgid_r" >&6; }
26606 if test "x${ac_cv_func_posix_getgrgid_r+set}" != "xset" ; then
26607 as_fn_error $? "ac_cv_func_posix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
26610 if test "$ac_cv_func_posix_getgrgid_r" = yes; then
26612 $as_echo "#define HAVE_POSIX_GETGRGID_R 1" >>confdefs.h
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getgrgid_r" >&5
26616 $as_echo_n "checking for nonposix getgrgid_r... " >&6; }
26617 if ${ac_cv_func_nonposix_getgrgid_r+:} false; then :
26618 $as_echo_n "(cached) " >&6
26620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26621 /* end confdefs.h. */
26626 char buffer[10000];
26628 getgrgid_r (0, &grp, buffer,
26634 if ac_fn_c_try_link "$LINENO"; then :
26635 ac_cv_func_nonposix_getgrgid_r=yes
26637 ac_cv_func_nonposix_getgrgid_r=no
26639 rm -f core conftest.err conftest.$ac_objext \
26640 conftest$ac_exeext conftest.$ac_ext
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getgrgid_r" >&5
26643 $as_echo "$ac_cv_func_nonposix_getgrgid_r" >&6; }
26644 if test "x${ac_cv_func_nonposix_getgrgid_r+set}" != "xset" ; then
26645 as_fn_error $? "ac_cv_func_nonposix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
26648 if test "$ac_cv_func_nonposix_getgrgid_r" = yes; then
26650 $as_echo "#define HAVE_NONPOSIX_GETGRGID_R 1" >>confdefs.h
26655 LIBS="$G_THREAD_LIBS $LIBS"
26656 if test x"$have_threads" = xposix; then
26657 glib_save_CPPFLAGS="$CPPFLAGS"
26658 CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26659 # This is not AC_CHECK_FUNC to also work with function
26660 # name mangling in header files.
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize" >&5
26662 $as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
26663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26664 /* end confdefs.h. */
26665 #include <pthread.h>
26669 pthread_attr_t t; pthread_attr_setstacksize(&t,0)
26674 if ac_fn_c_try_link "$LINENO"; then :
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26676 $as_echo "yes" >&6; }
26678 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26682 $as_echo "no" >&6; }
26684 rm -f core conftest.err conftest.$ac_objext \
26685 conftest$ac_exeext conftest.$ac_ext
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_condattr_setclock" >&5
26687 $as_echo_n "checking for pthread_condattr_setclock... " >&6; }
26688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26689 /* end confdefs.h. */
26690 #include <pthread.h>
26694 pthread_condattr_t a; pthread_condattr_setclock(&a,0)
26699 if ac_fn_c_try_link "$LINENO"; then :
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26701 $as_echo "yes" >&6; }
26703 $as_echo "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26707 $as_echo "no" >&6; }
26709 rm -f core conftest.err conftest.$ac_objext \
26710 conftest$ac_exeext conftest.$ac_ext
26711 CPPFLAGS="$glib_save_CPPFLAGS"
26714 LIBS="$glib_save_LIBS"
26716 # now spit out all the warnings.
26717 if test "$ac_cv_func_posix_getpwuid_r" != "yes" &&
26718 test "$ac_cv_func_nonposix_getpwuid_r" != "yes"; then
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_GETPWUID_R" >&5
26720 $as_echo "$as_me: WARNING: $FUNC_NO_GETPWUID_R" >&2;}
26722 if test "$ac_cv_func_localtime_r" != "yes"; then
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_LOCALTIME_R" >&5
26724 $as_echo "$as_me: WARNING: $FUNC_NO_LOCALTIME_R" >&2;}
26728 # Hack to deal with:
26730 # a) GCC < 3.3 for Linux doesn't include -lpthread when
26731 # building shared libraries with linux.
26732 # b) FreeBSD doesn't do this either.
26735 *-*-freebsd*|*-*-linux*)
26736 G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
26739 LDFLAGS="$LDFLAGS -pthread"
26742 G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
26751 for ac_func in clock_gettime
26753 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
26754 if test "x$ac_cv_func_clock_gettime" = xyes; then :
26755 cat >>confdefs.h <<_ACEOF
26756 #define HAVE_CLOCK_GETTIME 1
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26762 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26763 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26764 $as_echo_n "(cached) " >&6
26766 ac_check_lib_save_LIBS=$LIBS
26768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26769 /* end confdefs.h. */
26771 /* Override any GCC internal prototype to avoid an error.
26772 Use char because int might match the return type of a GCC
26773 builtin and then its argument prototype would still apply. */
26777 char clock_gettime ();
26781 return clock_gettime ();
26786 if ac_fn_c_try_link "$LINENO"; then :
26787 ac_cv_lib_rt_clock_gettime=yes
26789 ac_cv_lib_rt_clock_gettime=no
26791 rm -f core conftest.err conftest.$ac_objext \
26792 conftest$ac_exeext conftest.$ac_ext
26793 LIBS=$ac_check_lib_save_LIBS
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26796 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26797 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26799 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
26801 G_THREAD_LIBS="$G_THREAD_LIBS -lrt"
26802 G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt"
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock-free atomic intrinsics" >&5
26816 $as_echo_n "checking for lock-free atomic intrinsics... " >&6; }
26817 if ${glib_cv_g_atomic_lock_free+:} false; then :
26818 $as_echo_n "(cached) " >&6
26821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26822 /* end confdefs.h. */
26827 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
26832 if ac_fn_c_try_compile "$LINENO"; then :
26833 glib_cv_g_atomic_lock_free=yes
26835 glib_cv_g_atomic_lock_free=no
26837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_g_atomic_lock_free" >&5
26840 $as_echo "$glib_cv_g_atomic_lock_free" >&6; }
26842 if test "$glib_cv_g_atomic_lock_free" = "no"; then
26843 SAVE_CFLAGS="${CFLAGS}"
26844 CFLAGS="-march=i486"
26845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26846 /* end confdefs.h. */
26851 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
26856 if ac_fn_c_try_compile "$LINENO"; then :
26857 as_fn_error $? "GLib must be build with -march=i486 or later." "$LINENO" 5
26859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26860 CFLAGS="${SAVE_CFLAGS}"
26864 i?86|x86_64|s390|s390x|arm*|crisv32*|etrax*)
26865 glib_memory_barrier_needed=no
26867 sparc*|alpha*|powerpc*|ia64)
26868 glib_memory_barrier_needed=yes
26871 glib_memory_barrier_needed=yes
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futex(2) system call" >&5
26876 $as_echo_n "checking for futex(2) system call... " >&6; }
26877 if ${glib_cv_futex+:} false; then :
26878 $as_echo_n "(cached) " >&6
26880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26881 /* end confdefs.h. */
26883 #include <linux/futex.h>
26884 #include <sys/syscall.h>
26885 #include <unistd.h>
26894 /* it is not like this actually runs or anything... */
26895 syscall (__NR_futex, NULL, FUTEX_WAKE, FUTEX_WAIT);
26903 if ac_fn_c_try_compile "$LINENO"; then :
26908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_futex" >&5
26911 $as_echo "$glib_cv_futex" >&6; }
26912 if test x"$glib_cv_futex" = xyes; then
26914 $as_echo "#define HAVE_FUTEX 1" >>confdefs.h
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd(2) system call" >&5
26919 $as_echo_n "checking for eventfd(2) system call... " >&6; }
26920 if ${glib_cv_eventfd+:} false; then :
26921 $as_echo_n "(cached) " >&6
26923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26924 /* end confdefs.h. */
26926 #include <sys/eventfd.h>
26927 #include <unistd.h>
26936 eventfd (0, EFD_CLOEXEC);
26944 if ac_fn_c_try_compile "$LINENO"; then :
26945 glib_cv_eventfd=yes
26949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_eventfd" >&5
26952 $as_echo "$glib_cv_eventfd" >&6; }
26953 if test x"$glib_cv_eventfd" = x"yes"; then
26955 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
26958 if test "$glib_cv_eventfd" = "yes"; then
26960 HAVE_EVENTFD_FALSE='#'
26962 HAVE_EVENTFD_TRUE='#'
26963 HAVE_EVENTFD_FALSE=
26968 glib_poll_includes="
26969 #include <sys/types.h>
26970 #include <sys/poll.h>
26973 if test $ac_cv_header_sys_types_h = yes &&
26974 test $ac_cv_header_sys_poll_h = yes ; then
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLIN" >&5
26977 $as_echo_n "checking value of POLLIN... " >&6; }
26978 if ${glib_cv_value_POLLIN+:} false; then :
26979 $as_echo_n "(cached) " >&6
26981 if ac_fn_c_compute_int "$LINENO" "POLLIN" "glib_cv_value_POLLIN" "$glib_poll_includes"; then :
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLIN" >&5
26990 $as_echo "$glib_cv_value_POLLIN" >&6; }
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLOUT" >&5
26993 $as_echo_n "checking value of POLLOUT... " >&6; }
26994 if ${glib_cv_value_POLLOUT+:} false; then :
26995 $as_echo_n "(cached) " >&6
26997 if ac_fn_c_compute_int "$LINENO" "POLLOUT" "glib_cv_value_POLLOUT" "$glib_poll_includes"; then :
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLOUT" >&5
27006 $as_echo "$glib_cv_value_POLLOUT" >&6; }
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLPRI" >&5
27009 $as_echo_n "checking value of POLLPRI... " >&6; }
27010 if ${glib_cv_value_POLLPRI+:} false; then :
27011 $as_echo_n "(cached) " >&6
27013 if ac_fn_c_compute_int "$LINENO" "POLLPRI" "glib_cv_value_POLLPRI" "$glib_poll_includes"; then :
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLPRI" >&5
27022 $as_echo "$glib_cv_value_POLLPRI" >&6; }
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLERR" >&5
27025 $as_echo_n "checking value of POLLERR... " >&6; }
27026 if ${glib_cv_value_POLLERR+:} false; then :
27027 $as_echo_n "(cached) " >&6
27029 if ac_fn_c_compute_int "$LINENO" "POLLERR" "glib_cv_value_POLLERR" "$glib_poll_includes"; then :
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLERR" >&5
27038 $as_echo "$glib_cv_value_POLLERR" >&6; }
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLHUP" >&5
27041 $as_echo_n "checking value of POLLHUP... " >&6; }
27042 if ${glib_cv_value_POLLHUP+:} false; then :
27043 $as_echo_n "(cached) " >&6
27045 if ac_fn_c_compute_int "$LINENO" "POLLHUP" "glib_cv_value_POLLHUP" "$glib_poll_includes"; then :
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLHUP" >&5
27054 $as_echo "$glib_cv_value_POLLHUP" >&6; }
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLNVAL" >&5
27057 $as_echo_n "checking value of POLLNVAL... " >&6; }
27058 if ${glib_cv_value_POLLNVAL+:} false; then :
27059 $as_echo_n "(cached) " >&6
27061 if ac_fn_c_compute_int "$LINENO" "POLLNVAL" "glib_cv_value_POLLNVAL" "$glib_poll_includes"; then :
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLNVAL" >&5
27070 $as_echo "$glib_cv_value_POLLNVAL" >&6; }
27072 if $glib_failed ; then
27073 as_fn_error $? "Could not determine values for POLL* constants" "$LINENO" 5
27076 glib_cv_value_POLLIN=1
27077 glib_cv_value_POLLOUT=4
27078 glib_cv_value_POLLPRI=2
27079 glib_cv_value_POLLERR=8
27080 glib_cv_value_POLLHUP=16
27081 glib_cv_value_POLLNVAL=32
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll" >&5
27085 $as_echo_n "checking for broken poll... " >&6; }
27086 if test "$cross_compiling" = yes; then :
27087 broken_poll="no (cross compiling)"
27089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27090 /* end confdefs.h. */
27092 #include <stdlib.h>
27095 #ifdef HAVE_SYS_POLL_H
27096 #include <sys/poll.h>
27099 struct pollfd fds[1];
27101 fd = open("/dev/null", 1);
27103 fds[0].events = POLLIN;
27104 fds[0].revents = 0;
27105 if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
27106 exit(1); /* Does not work for devices -- fail */
27111 if ac_fn_c_try_run "$LINENO"; then :
27116 $as_echo "#define BROKEN_POLL 1" >>confdefs.h
27119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27120 conftest.$ac_objext conftest.beam conftest.$ac_ext
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $broken_poll" >&5
27124 $as_echo "$broken_poll" >&6; }
27127 PCRE_REQUIRED_VERSION=8.11
27129 # Check if we should use the internal or the system-supplied pcre
27131 # Check whether --with-pcre was given.
27132 if test "${with_pcre+set}" = set; then :
27133 withval=$with_pcre;
27137 if test "x$with_pcre" = xsystem; then
27138 USE_SYSTEM_PCRE_TRUE=
27139 USE_SYSTEM_PCRE_FALSE='#'
27141 USE_SYSTEM_PCRE_TRUE='#'
27142 USE_SYSTEM_PCRE_FALSE=
27146 if test "x$with_pcre" = xsystem; then
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
27150 $as_echo_n "checking for PCRE... " >&6; }
27152 if test -n "$PCRE_CFLAGS"; then
27153 pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
27154 elif test -n "$PKG_CONFIG"; then
27155 if test -n "$PKG_CONFIG" && \
27156 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5
27157 ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5
27159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27160 test $ac_status = 0; }; then
27161 pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null`
27168 if test -n "$PCRE_LIBS"; then
27169 pkg_cv_PCRE_LIBS="$PCRE_LIBS"
27170 elif test -n "$PKG_CONFIG"; then
27171 if test -n "$PKG_CONFIG" && \
27172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5
27173 ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5
27175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27176 test $ac_status = 0; }; then
27177 pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null`
27187 if test $pkg_failed = yes; then
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27189 $as_echo "no" >&6; }
27191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27192 _pkg_short_errors_supported=yes
27194 _pkg_short_errors_supported=no
27196 if test $_pkg_short_errors_supported = yes; then
27197 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1`
27199 PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1`
27201 # Put the nasty error message in config.log where it belongs
27202 echo "$PCRE_PKG_ERRORS" >&5
27204 as_fn_error $? "Package requirements (libpcre >= $PCRE_REQUIRED_VERSION) were not met:
27208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27209 installed software in a non-standard prefix.
27211 Alternatively, you may set the environment variables PCRE_CFLAGS
27212 and PCRE_LIBS to avoid the need to call pkg-config.
27213 See the pkg-config man page for more details." "$LINENO" 5
27215 elif test $pkg_failed = untried; then
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27217 $as_echo "no" >&6; }
27218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27220 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
27221 is in your PATH or set the PKG_CONFIG environment variable to the full
27222 path to pkg-config.
27224 Alternatively, you may set the environment variables PCRE_CFLAGS
27225 and PCRE_LIBS to avoid the need to call pkg-config.
27226 See the pkg-config man page for more details.
27228 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27229 See \`config.log' for more details" "$LINENO" 5; }
27232 PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
27233 PCRE_LIBS=$pkg_cv_PCRE_LIBS
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27235 $as_echo "yes" >&6; }
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Unicode support in PCRE" >&5
27239 $as_echo_n "checking for Unicode support in PCRE... " >&6; }
27240 if ${glib_cv_pcre_has_unicode+:} false; then :
27241 $as_echo_n "(cached) " >&6
27244 glib_save_CFLAGS="$CFLAGS"
27245 glib_save_LIBS="$LIBS"
27246 CFLAGS="$CFLAGS $PCRE_CFLAGS" LIBS="$PCRE_LIBS"
27247 if test "$cross_compiling" = yes; then :
27248 glib_cv_pcre_has_unicode=yes
27250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27251 /* end confdefs.h. */
27255 pcre_config (PCRE_CONFIG_UTF8, &support);
27258 pcre_config (PCRE_CONFIG_UNICODE_PROPERTIES, &support);
27264 if ac_fn_c_try_run "$LINENO"; then :
27265 glib_cv_pcre_has_unicode=yes
27267 glib_cv_pcre_has_unicode=no
27269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27270 conftest.$ac_objext conftest.beam conftest.$ac_ext
27273 CFLAGS="$glib_save_CFLAGS"
27274 LIBS="$glib_save_LIBS"
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_pcre_has_unicode" >&5
27278 $as_echo "$glib_cv_pcre_has_unicode" >&6; }
27279 if test "$glib_cv_pcre_has_unicode" = "no"; then
27280 as_fn_error $? "*** The system-supplied PCRE does not support Unicode properties or UTF-8." "$LINENO" 5
27285 $as_echo "#define USE_SYSTEM_PCRE /**/" >>confdefs.h
27287 PCRE_REQUIRES=libpcre
27290 # If using gcc 4 pass -Wno-pointer-sign when compiling the internal PCRE
27291 if test x"$GCC" = xyes; then
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wno-pointer-sign" >&5
27293 $as_echo_n "checking whether compiler understands -Wno-pointer-sign... " >&6; }
27294 save_CFLAGS="$CFLAGS"
27295 CFLAGS="$CFLAGS -Wno-pointer-sign"
27296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27297 /* end confdefs.h. */
27307 if ac_fn_c_try_compile "$LINENO"; then :
27308 PCRE_WARN_CFLAGS="$PCRE_WARN_CFLAGS -Wno-pointer-sign"
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27310 $as_echo "yes" >&6; }
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27313 $as_echo "no" >&6; }
27315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27316 CFLAGS="$save_CFLAGS"
27324 G_LIBS_EXTRA="-luser32 -lkernel32"
27327 G_LIBS_EXTRA="-lws2_32 -lole32 -lwinmm -lshlwapi"
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EILSEQ" >&5
27337 $as_echo_n "checking for EILSEQ... " >&6; }
27338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27339 /* end confdefs.h. */
27347 int error = EILSEQ;
27353 if ac_fn_c_try_compile "$LINENO"; then :
27358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_eilseq" >&5
27360 $as_echo "$have_eilseq" >&6; }
27363 if test $cross_compiling = yes; then
27364 CROSS_COMPILING_TRUE=
27365 CROSS_COMPILING_FALSE='#'
27367 CROSS_COMPILING_TRUE='#'
27368 CROSS_COMPILING_FALSE=
27372 if test $cross_compiling = yes; then
27373 # Extract the first word of "glib-genmarshal", so it can be a program name with args.
27374 set dummy glib-genmarshal; ac_word=$2
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27376 $as_echo_n "checking for $ac_word... " >&6; }
27377 if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
27378 $as_echo_n "(cached) " >&6
27380 case $GLIB_GENMARSHAL in
27382 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
27385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27386 for as_dir in $PATH
27389 test -z "$as_dir" && as_dir=.
27390 for ac_exec_ext in '' $ac_executable_extensions; do
27391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27392 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
27393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27400 test -z "$ac_cv_path_GLIB_GENMARSHAL" && ac_cv_path_GLIB_GENMARSHAL="no"
27404 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
27405 if test -n "$GLIB_GENMARSHAL"; then
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
27407 $as_echo "$GLIB_GENMARSHAL" >&6; }
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27410 $as_echo "no" >&6; }
27414 if test x$GLIB_GENMARSHAL = xno; then
27415 as_fn_error $? "Could not find a glib-genmarshal in your PATH" "$LINENO" 5
27418 # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
27419 set dummy glib-compile-schemas; ac_word=$2
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27421 $as_echo_n "checking for $ac_word... " >&6; }
27422 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
27423 $as_echo_n "(cached) " >&6
27425 case $GLIB_COMPILE_SCHEMAS in
27427 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
27430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27431 for as_dir in $PATH
27434 test -z "$as_dir" && as_dir=.
27435 for ac_exec_ext in '' $ac_executable_extensions; do
27436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27437 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
27438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27445 test -z "$ac_cv_path_GLIB_COMPILE_SCHEMAS" && ac_cv_path_GLIB_COMPILE_SCHEMAS="no"
27449 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
27450 if test -n "$GLIB_COMPILE_SCHEMAS"; then
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
27452 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27455 $as_echo "no" >&6; }
27459 if test x$GLIB_COMPILE_SCHEMAS = xno; then
27460 as_fn_error $? "Could not find a glib-compile-schemas in your PATH" "$LINENO" 5
27463 # Extract the first word of "glib-compile-resources", so it can be a program name with args.
27464 set dummy glib-compile-resources; ac_word=$2
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27466 $as_echo_n "checking for $ac_word... " >&6; }
27467 if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
27468 $as_echo_n "(cached) " >&6
27470 case $GLIB_COMPILE_RESOURCES in
27472 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
27475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27476 for as_dir in $PATH
27479 test -z "$as_dir" && as_dir=.
27480 for ac_exec_ext in '' $ac_executable_extensions; do
27481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27482 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
27483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27490 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
27494 GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
27495 if test -n "$GLIB_COMPILE_RESOURCES"; then
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
27497 $as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27500 $as_echo "no" >&6; }
27504 if test x$GLIB_COMPILE_RESOURCES = xno; then
27505 as_fn_error $? "Could not find a glib-compile-resources in your PATH" "$LINENO" 5
27513 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
27514 set dummy gtkdoc-check; ac_word=$2
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27516 $as_echo_n "checking for $ac_word... " >&6; }
27517 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
27518 $as_echo_n "(cached) " >&6
27520 case $GTKDOC_CHECK in
27522 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
27525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27526 for as_dir in $PATH
27529 test -z "$as_dir" && as_dir=.
27530 for ac_exec_ext in '' $ac_executable_extensions; do
27531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27532 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
27533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27543 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
27544 if test -n "$GTKDOC_CHECK"; then
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
27546 $as_echo "$GTKDOC_CHECK" >&6; }
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27549 $as_echo "no" >&6; }
27553 for ac_prog in gtkdoc-rebase
27555 # Extract the first word of "$ac_prog", so it can be a program name with args.
27556 set dummy $ac_prog; ac_word=$2
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27558 $as_echo_n "checking for $ac_word... " >&6; }
27559 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
27560 $as_echo_n "(cached) " >&6
27562 case $GTKDOC_REBASE in
27564 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
27567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27568 for as_dir in $PATH
27571 test -z "$as_dir" && as_dir=.
27572 for ac_exec_ext in '' $ac_executable_extensions; do
27573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27574 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
27575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27585 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
27586 if test -n "$GTKDOC_REBASE"; then
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
27588 $as_echo "$GTKDOC_REBASE" >&6; }
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27591 $as_echo "no" >&6; }
27595 test -n "$GTKDOC_REBASE" && break
27597 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
27599 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
27600 set dummy gtkdoc-mkpdf; ac_word=$2
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27602 $as_echo_n "checking for $ac_word... " >&6; }
27603 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
27604 $as_echo_n "(cached) " >&6
27606 case $GTKDOC_MKPDF in
27608 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
27611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27612 for as_dir in $PATH
27615 test -z "$as_dir" && as_dir=.
27616 for ac_exec_ext in '' $ac_executable_extensions; do
27617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27618 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
27619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27629 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
27630 if test -n "$GTKDOC_MKPDF"; then
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
27632 $as_echo "$GTKDOC_MKPDF" >&6; }
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27635 $as_echo "no" >&6; }
27641 # Check whether --with-html-dir was given.
27642 if test "${with_html_dir+set}" = set; then :
27643 withval=$with_html_dir;
27645 with_html_dir='${datadir}/gtk-doc/html'
27648 HTML_DIR="$with_html_dir"
27651 # Check whether --enable-gtk-doc was given.
27652 if test "${enable_gtk_doc+set}" = set; then :
27653 enableval=$enable_gtk_doc;
27659 if test x$enable_gtk_doc = xyes; then
27660 if test -n "$PKG_CONFIG" && \
27661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.15\""; } >&5
27662 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.15") 2>&5
27664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27665 test $ac_status = 0; }; then
27668 as_fn_error $? "You need to have gtk-doc >= 1.15 installed to build $PACKAGE_NAME" "$LINENO" 5
27670 if test "x$PACKAGE_NAME" != "xglib"; then
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
27674 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
27676 if test -n "$GTKDOC_DEPS_CFLAGS"; then
27677 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
27678 elif test -n "$PKG_CONFIG"; then
27679 if test -n "$PKG_CONFIG" && \
27680 { { $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
27681 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
27683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27684 test $ac_status = 0; }; then
27685 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
27692 if test -n "$GTKDOC_DEPS_LIBS"; then
27693 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
27694 elif test -n "$PKG_CONFIG"; then
27695 if test -n "$PKG_CONFIG" && \
27696 { { $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
27697 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
27699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27700 test $ac_status = 0; }; then
27701 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
27711 if test $pkg_failed = yes; then
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713 $as_echo "no" >&6; }
27715 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27716 _pkg_short_errors_supported=yes
27718 _pkg_short_errors_supported=no
27720 if test $_pkg_short_errors_supported = yes; then
27721 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
27723 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
27725 # Put the nasty error message in config.log where it belongs
27726 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
27728 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
27730 $GTKDOC_DEPS_PKG_ERRORS
27732 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27733 installed software in a non-standard prefix.
27735 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
27736 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
27737 See the pkg-config man page for more details." "$LINENO" 5
27739 elif test $pkg_failed = untried; then
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27741 $as_echo "no" >&6; }
27742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27744 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
27745 is in your PATH or set the PKG_CONFIG environment variable to the full
27746 path to pkg-config.
27748 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
27749 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
27750 See the pkg-config man page for more details.
27752 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27753 See \`config.log' for more details" "$LINENO" 5; }
27756 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
27757 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27759 $as_echo "yes" >&6; }
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
27766 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
27768 $as_echo "$enable_gtk_doc" >&6; }
27770 # Check whether --enable-gtk-doc-html was given.
27771 if test "${enable_gtk_doc_html+set}" = set; then :
27772 enableval=$enable_gtk_doc_html;
27774 enable_gtk_doc_html=yes
27777 # Check whether --enable-gtk-doc-pdf was given.
27778 if test "${enable_gtk_doc_pdf+set}" = set; then :
27779 enableval=$enable_gtk_doc_pdf;
27781 enable_gtk_doc_pdf=no
27785 if test -z "$GTKDOC_MKPDF"; then
27786 enable_gtk_doc_pdf=no
27790 if test x$enable_gtk_doc = xyes; then
27791 ENABLE_GTK_DOC_TRUE=
27792 ENABLE_GTK_DOC_FALSE='#'
27794 ENABLE_GTK_DOC_TRUE='#'
27795 ENABLE_GTK_DOC_FALSE=
27798 if test x$enable_gtk_doc_html = xyes; then
27799 GTK_DOC_BUILD_HTML_TRUE=
27800 GTK_DOC_BUILD_HTML_FALSE='#'
27802 GTK_DOC_BUILD_HTML_TRUE='#'
27803 GTK_DOC_BUILD_HTML_FALSE=
27806 if test x$enable_gtk_doc_pdf = xyes; then
27807 GTK_DOC_BUILD_PDF_TRUE=
27808 GTK_DOC_BUILD_PDF_FALSE='#'
27810 GTK_DOC_BUILD_PDF_TRUE='#'
27811 GTK_DOC_BUILD_PDF_FALSE=
27814 if test -n "$LIBTOOL"; then
27815 GTK_DOC_USE_LIBTOOL_TRUE=
27816 GTK_DOC_USE_LIBTOOL_FALSE='#'
27818 GTK_DOC_USE_LIBTOOL_TRUE='#'
27819 GTK_DOC_USE_LIBTOOL_FALSE=
27822 if test -n "$GTKDOC_REBASE"; then
27823 GTK_DOC_USE_REBASE_TRUE=
27824 GTK_DOC_USE_REBASE_FALSE='#'
27826 GTK_DOC_USE_REBASE_TRUE='#'
27827 GTK_DOC_USE_REBASE_FALSE=
27832 # Check whether --enable-man was given.
27833 if test "${enable_man+set}" = set; then :
27834 enableval=$enable_man; enable_man=yes
27840 if test "${enable_man}" != no; then
27841 # Extract the first word of "xsltproc", so it can be a program name with args.
27842 set dummy xsltproc; ac_word=$2
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27844 $as_echo_n "checking for $ac_word... " >&6; }
27845 if ${ac_cv_path_XSLTPROC+:} false; then :
27846 $as_echo_n "(cached) " >&6
27850 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
27853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27854 for as_dir in $PATH
27857 test -z "$as_dir" && as_dir=.
27858 for ac_exec_ext in '' $ac_executable_extensions; do
27859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27860 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
27861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27871 XSLTPROC=$ac_cv_path_XSLTPROC
27872 if test -n "$XSLTPROC"; then
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
27874 $as_echo "$XSLTPROC" >&6; }
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27877 $as_echo "no" >&6; }
27881 if test -z "$XSLTPROC"; then
27886 # check for the presence of the XML catalog
27888 # Check whether --with-xml-catalog was given.
27889 if test "${with_xml_catalog+set}" = set; then :
27890 withval=$with_xml_catalog;
27892 with_xml_catalog=/etc/xml/catalog
27895 jh_found_xmlcatalog=true
27896 XML_CATALOG_FILE="$with_xml_catalog"
27898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
27899 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
27900 if test -f "$XML_CATALOG_FILE"; then
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27902 $as_echo "found" >&6; }
27904 jh_found_xmlcatalog=false
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27906 $as_echo "not found" >&6; }
27909 # check for the xmlcatalog program
27910 # Extract the first word of "xmlcatalog", so it can be a program name with args.
27911 set dummy xmlcatalog; ac_word=$2
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27913 $as_echo_n "checking for $ac_word... " >&6; }
27914 if ${ac_cv_path_XMLCATALOG+:} false; then :
27915 $as_echo_n "(cached) " >&6
27917 case $XMLCATALOG in
27919 ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
27922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27923 for as_dir in $PATH
27926 test -z "$as_dir" && as_dir=.
27927 for ac_exec_ext in '' $ac_executable_extensions; do
27928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27929 ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
27930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27937 test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
27941 XMLCATALOG=$ac_cv_path_XMLCATALOG
27942 if test -n "$XMLCATALOG"; then
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
27944 $as_echo "$XMLCATALOG" >&6; }
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27947 $as_echo "no" >&6; }
27951 if test "x$XMLCATALOG" = xno; then
27952 jh_found_xmlcatalog=false
27955 if $jh_found_xmlcatalog; then
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
27963 $as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; }
27964 if $jh_found_xmlcatalog && \
27965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5
27966 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
27968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27969 test $ac_status = 0; }; then
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27971 $as_echo "found" >&6; }
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27974 $as_echo "not found" >&6; }
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5
27980 $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
27981 if $jh_found_xmlcatalog && \
27982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
27983 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
27985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27986 test $ac_status = 0; }; then
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27988 $as_echo "found" >&6; }
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27991 $as_echo "not found" >&6; }
27997 if test x$enable_man != xno; then
27999 ENABLE_MAN_FALSE='#'
28001 ENABLE_MAN_TRUE='#'
28007 # Check whether --enable-dtrace was given.
28008 if test "${enable_dtrace+set}" = set; then :
28009 enableval=$enable_dtrace;
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include dtrace tracing support" >&5
28014 $as_echo_n "checking whether to include dtrace tracing support... " >&6; }
28015 if test "x$enable_dtrace" != xno; then
28016 if test x$glib_have_carbon = xyes; then
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not yet compatible with MacOS dtrace)" >&5
28018 $as_echo "no (not yet compatible with MacOS dtrace)" >&6; }
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28021 $as_echo "yes" >&6; }
28022 for ac_prog in dtrace
28024 # Extract the first word of "$ac_prog", so it can be a program name with args.
28025 set dummy $ac_prog; ac_word=$2
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28027 $as_echo_n "checking for $ac_word... " >&6; }
28028 if ${ac_cv_prog_DTRACE+:} false; then :
28029 $as_echo_n "(cached) " >&6
28031 if test -n "$DTRACE"; then
28032 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
28034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28035 for as_dir in $PATH
28038 test -z "$as_dir" && as_dir=.
28039 for ac_exec_ext in '' $ac_executable_extensions; do
28040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28041 ac_cv_prog_DTRACE="$ac_prog"
28042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28051 DTRACE=$ac_cv_prog_DTRACE
28052 if test -n "$DTRACE"; then
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
28054 $as_echo "$DTRACE" >&6; }
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28057 $as_echo "no" >&6; }
28061 test -n "$DTRACE" && break
28064 if test -z "$DTRACE"; then
28065 if test "x$enable_dtrace" = xyes; then
28066 as_fn_error $? "dtrace not found" "$LINENO" 5
28069 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
28070 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
28073 if test "x$enable_dtrace" = xyes; then
28074 as_fn_error $? "dtrace support needs sys/sdt.h header" "$LINENO" 5
28082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28083 $as_echo "no" >&6; }
28085 if test "x$have_dtrace" = xyes; then
28087 $as_echo "#define HAVE_DTRACE 1" >>confdefs.h
28090 if test x$have_dtrace = xyes ; then
28091 ENABLE_DTRACE_TRUE=
28092 ENABLE_DTRACE_FALSE='#'
28094 ENABLE_DTRACE_TRUE='#'
28095 ENABLE_DTRACE_FALSE=
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include systemtap tracing support" >&5
28100 $as_echo_n "checking whether to include systemtap tracing support... " >&6; }
28101 # Check whether --enable-systemtap was given.
28102 if test "${enable_systemtap+set}" = set; then :
28103 enableval=$enable_systemtap;
28107 if test "x$enable_systemtap" != xno -a "x$have_dtrace" = xyes; then
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_systemtap}" >&5
28111 $as_echo "${have_systemtap}" >&6; }
28113 if test x$have_systemtap = xyes; then
28114 ENABLE_SYSTEMTAP_TRUE=
28115 ENABLE_SYSTEMTAP_FALSE='#'
28117 ENABLE_SYSTEMTAP_TRUE='#'
28118 ENABLE_SYSTEMTAP_FALSE=
28123 # Check whether --with-tapset-install-dir was given.
28124 if test "${with_tapset_install_dir+set}" = set; then :
28125 withval=$with_tapset_install_dir; if test "x${withval}" = x; then
28126 ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
28128 ABS_TAPSET_DIR="${withval}"
28131 ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
28137 # Check whether --enable-gcov was given.
28138 if test "${enable_gcov+set}" = set; then :
28139 enableval=$enable_gcov; use_gcov=$enableval
28145 if test "x$use_gcov" = "xyes"; then
28146 if test "$GCC" != "yes"; then
28147 as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
28150 # Extract the first word of "shtool", so it can be a program name with args.
28151 set dummy shtool; ac_word=$2
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28153 $as_echo_n "checking for $ac_word... " >&6; }
28154 if ${ac_cv_prog_SHTOOL+:} false; then :
28155 $as_echo_n "(cached) " >&6
28157 if test -n "$SHTOOL"; then
28158 ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
28160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28161 for as_dir in $PATH
28164 test -z "$as_dir" && as_dir=.
28165 for ac_exec_ext in '' $ac_executable_extensions; do
28166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28167 ac_cv_prog_SHTOOL="shtool"
28168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28177 SHTOOL=$ac_cv_prog_SHTOOL
28178 if test -n "$SHTOOL"; then
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
28180 $as_echo "$SHTOOL" >&6; }
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28183 $as_echo "no" >&6; }
28187 case `$SHTOOL path $CC` in
28188 *ccache*) gcc_ccache=yes;;
28192 if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
28193 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
28196 ltp_version_list="1.6 1.7 1.8 1.9"
28197 # Extract the first word of "lcov", so it can be a program name with args.
28198 set dummy lcov; ac_word=$2
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28200 $as_echo_n "checking for $ac_word... " >&6; }
28201 if ${ac_cv_prog_LTP+:} false; then :
28202 $as_echo_n "(cached) " >&6
28204 if test -n "$LTP"; then
28205 ac_cv_prog_LTP="$LTP" # Let the user override the test.
28207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28208 for as_dir in $PATH
28211 test -z "$as_dir" && as_dir=.
28212 for ac_exec_ext in '' $ac_executable_extensions; do
28213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28214 ac_cv_prog_LTP="lcov"
28215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28224 LTP=$ac_cv_prog_LTP
28225 if test -n "$LTP"; then
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
28227 $as_echo "$LTP" >&6; }
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28230 $as_echo "no" >&6; }
28234 # Extract the first word of "genhtml", so it can be a program name with args.
28235 set dummy genhtml; ac_word=$2
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28237 $as_echo_n "checking for $ac_word... " >&6; }
28238 if ${ac_cv_prog_LTP_GENHTML+:} false; then :
28239 $as_echo_n "(cached) " >&6
28241 if test -n "$LTP_GENHTML"; then
28242 ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
28244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28245 for as_dir in $PATH
28248 test -z "$as_dir" && as_dir=.
28249 for ac_exec_ext in '' $ac_executable_extensions; do
28250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28251 ac_cv_prog_LTP_GENHTML="genhtml"
28252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28261 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
28262 if test -n "$LTP_GENHTML"; then
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
28264 $as_echo "$LTP_GENHTML" >&6; }
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28267 $as_echo "no" >&6; }
28272 if test "$LTP"; then
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
28274 $as_echo_n "checking for ltp version... " >&6; }
28275 if ${glib_cv_ltp_version+:} false; then :
28276 $as_echo_n "(cached) " >&6
28279 glib_cv_ltp_version=invalid
28280 ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
28281 for ltp_check_version in $ltp_version_list; do
28282 if test "$ltp_version" = "$ltp_check_version"; then
28283 glib_cv_ltp_version="$ltp_check_version (ok)"
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_ltp_version" >&5
28289 $as_echo "$glib_cv_ltp_version" >&6; }
28291 ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
28292 as_fn_error $? "$ltp_msg" "$LINENO" 5
28295 case $glib_cv_ltp_version in
28297 ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
28298 as_fn_error $? "$ltp_msg" "$LINENO" 5
28303 if test -z "$LTP_GENHTML"; then
28304 as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
28308 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
28311 CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
28312 LDFLAGS="$LDFLAGS -lgcov"
28316 ac_config_commands="$ac_config_commands glib/glibconfig.h"
28319 # Check for libdbus1 - Optional - is only used in the GDBus test cases
28321 # 1.2.14 required for dbus_message_set_serial
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS1" >&5
28325 $as_echo_n "checking for DBUS1... " >&6; }
28327 if test -n "$DBUS1_CFLAGS"; then
28328 pkg_cv_DBUS1_CFLAGS="$DBUS1_CFLAGS"
28329 elif test -n "$PKG_CONFIG"; then
28330 if test -n "$PKG_CONFIG" && \
28331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5
28332 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5
28334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28335 test $ac_status = 0; }; then
28336 pkg_cv_DBUS1_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.14" 2>/dev/null`
28343 if test -n "$DBUS1_LIBS"; then
28344 pkg_cv_DBUS1_LIBS="$DBUS1_LIBS"
28345 elif test -n "$PKG_CONFIG"; then
28346 if test -n "$PKG_CONFIG" && \
28347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5
28348 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5
28350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28351 test $ac_status = 0; }; then
28352 pkg_cv_DBUS1_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.14" 2>/dev/null`
28362 if test $pkg_failed = yes; then
28363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28364 $as_echo "no" >&6; }
28366 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28367 _pkg_short_errors_supported=yes
28369 _pkg_short_errors_supported=no
28371 if test $_pkg_short_errors_supported = yes; then
28372 DBUS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 1.2.14" 2>&1`
28374 DBUS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 1.2.14" 2>&1`
28376 # Put the nasty error message in config.log where it belongs
28377 echo "$DBUS1_PKG_ERRORS" >&5
28380 elif test $pkg_failed = untried; then
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28382 $as_echo "no" >&6; }
28385 DBUS1_CFLAGS=$pkg_cv_DBUS1_CFLAGS
28386 DBUS1_LIBS=$pkg_cv_DBUS1_LIBS
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28388 $as_echo "yes" >&6; }
28390 $as_echo "#define HAVE_DBUS1 1" >>confdefs.h
28395 if test "x$have_dbus1" = "xyes"; then
28397 HAVE_DBUS1_FALSE='#'
28399 HAVE_DBUS1_TRUE='#'
28405 # Check whether --enable-Bsymbolic was given.
28406 if test "${enable_Bsymbolic+set}" = set; then :
28407 enableval=$enable_Bsymbolic;
28409 SAVED_LDFLAGS="${LDFLAGS}"
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
28411 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
28412 LDFLAGS=-Wl,-Bsymbolic-functions
28413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28414 /* end confdefs.h. */
28419 int main (void) { return 0; }
28424 if ac_fn_c_try_link "$LINENO"; then :
28425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28426 $as_echo "yes" >&6; }
28427 enable_Bsymbolic=yes
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28430 $as_echo "no" >&6; }
28431 enable_Bsymbolic=no
28433 rm -f core conftest.err conftest.$ac_objext \
28434 conftest$ac_exeext conftest.$ac_ext
28435 LDFLAGS="${SAVED_LDFLAGS}"
28439 if test "x${enable_Bsymbolic}" = "xyes"; then
28440 GLIB_LINK_FLAGS=-Wl,-Bsymbolic-functions
28446 # Define variables corresponding to the correct include paths to use for
28447 # in-tree building.
28451 config_h_INCLUDES='-I$(top_builddir)'
28456 # $(top_builddir)/glib: for glibconfig.h
28457 # $(top_srcdir)/glib: for glib.h
28458 # $(top_srcdir): for everything
28459 glib_INCLUDES='$(config_h_INCLUDES) -I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_srcdir)'
28464 gthread_INCLUDES='$(glib_INCLUDES)'
28469 gobject_INCLUDES='$(gthread_INCLUDES)'
28474 # $(top_srcdir)/gmodule: for gmodule.h
28475 gmodule_INCLUDES='$(glib_INCLUDES) -I$(top_srcdir)/gmodule'
28480 gio_INCLUDES='$(gmodule_INCLUDES)'
28484 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"
28487 ac_config_commands="$ac_config_commands chmod-scripts"
28490 # we want to invoke this macro solely so that the config.status script
28491 # and automake generated makefiles know about these generated files.
28492 # They are only needed to distcheck the package
28494 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"
28498 cat >confcache <<\_ACEOF
28499 # This file is a shell script that caches the results of configure
28500 # tests run on this system so they can be shared between configure
28501 # scripts and configure runs, see configure's option --config-cache.
28502 # It is not useful on other systems. If it contains results you don't
28503 # want to keep, you may remove or edit it.
28505 # config.status only pays attention to the cache file if you give it
28506 # the --recheck option to rerun configure.
28508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28510 # following values.
28514 # The following way of writing the cache mishandles newlines in values,
28515 # but we know of no workaround that is simple, portable, and efficient.
28516 # So, we kill variables containing newlines.
28517 # Ultrix sh set writes to stderr and can't be redirected directly,
28518 # and sets the high bit in the cache file unless we assign to the vars.
28520 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28521 eval ac_val=\$$ac_var
28525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28529 _ | IFS | as_nl) ;; #(
28530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28531 *) { eval $ac_var=; unset $ac_var;} ;;
28537 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28538 *${as_nl}ac_space=\ *)
28539 # `set' does not quote correctly, so add quotes: double-quote
28540 # substitution turns \\\\ into \\, and sed turns \\ into \.
28543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28546 # `set' quotes correctly as required by POSIX, so do not add quotes.
28547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28558 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28560 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28561 if test -w "$cache_file"; then
28562 if test "x$cache_file" != "x/dev/null"; then
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28564 $as_echo "$as_me: updating cache $cache_file" >&6;}
28565 if test ! -f "$cache_file" || test -h "$cache_file"; then
28566 cat confcache >"$cache_file"
28568 case $cache_file in #(
28570 mv -f confcache "$cache_file"$$ &&
28571 mv -f "$cache_file"$$ "$cache_file" ;; #(
28573 mv -f confcache "$cache_file" ;;
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28585 # Let make expand exec_prefix.
28586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28588 DEFS=-DHAVE_CONFIG_H
28593 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28594 # 1. Remove the extension, and $U if already installed.
28595 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28596 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28597 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28598 # will be set to the directory where LIBOBJS objects are built.
28599 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28600 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28602 LIBOBJS=$ac_libobjs
28604 LTLIBOBJS=$ac_ltlibobjs
28607 if test -n "$EXEEXT"; then
28609 am__EXEEXT_FALSE='#'
28611 am__EXEEXT_TRUE='#'
28615 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28616 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28619 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28620 as_fn_error $? "conditional \"AMDEP\" was never defined.
28621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28623 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28624 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28627 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
28628 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
28629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28631 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
28632 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
28633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28635 if test -z "${OS_WIN32_X64_TRUE}" && test -z "${OS_WIN32_X64_FALSE}"; then
28636 as_fn_error $? "conditional \"OS_WIN32_X64\" was never defined.
28637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28639 if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
28640 as_fn_error $? "conditional \"OS_UNIX\" was never defined.
28641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28643 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
28644 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
28645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28647 if test -z "${OS_CARBON_TRUE}" && test -z "${OS_CARBON_FALSE}"; then
28648 as_fn_error $? "conditional \"OS_CARBON\" was never defined.
28649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28651 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
28652 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
28653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28655 if test -z "${HAVE_GLIB_RUNTIME_LIBDIR_TRUE}" && test -z "${HAVE_GLIB_RUNTIME_LIBDIR_FALSE}"; then
28656 as_fn_error $? "conditional \"HAVE_GLIB_RUNTIME_LIBDIR\" was never defined.
28657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28659 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28660 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
28661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28663 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
28664 as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
28665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28667 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28668 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28671 if test -z "${OS_WIN32_AND_DLL_COMPILATION_TRUE}" && test -z "${OS_WIN32_AND_DLL_COMPILATION_FALSE}"; then
28672 as_fn_error $? "conditional \"OS_WIN32_AND_DLL_COMPILATION\" was never defined.
28673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28675 if test -z "${HAVE_GNUC_VISIBILITY_TRUE}" && test -z "${HAVE_GNUC_VISIBILITY_FALSE}"; then
28676 as_fn_error $? "conditional \"HAVE_GNUC_VISIBILITY\" was never defined.
28677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28679 if test -z "${HAVE_SUNSTUDIO_VISIBILITY_TRUE}" && test -z "${HAVE_SUNSTUDIO_VISIBILITY_FALSE}"; then
28680 as_fn_error $? "conditional \"HAVE_SUNSTUDIO_VISIBILITY\" was never defined.
28681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28684 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
28685 as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
28686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28688 if test -z "${HAVE_GOOD_PRINTF_TRUE}" && test -z "${HAVE_GOOD_PRINTF_FALSE}"; then
28689 as_fn_error $? "conditional \"HAVE_GOOD_PRINTF\" was never defined.
28690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28692 if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
28693 as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined.
28694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28696 if test -z "${HAVE_FEN_TRUE}" && test -z "${HAVE_FEN_FALSE}"; then
28697 as_fn_error $? "conditional \"HAVE_FEN\" was never defined.
28698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28700 if test -z "${HAVE_FAM_TRUE}" && test -z "${HAVE_FAM_FALSE}"; then
28701 as_fn_error $? "conditional \"HAVE_FAM\" was never defined.
28702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28704 if test -z "${ENABLE_TIMELOOP_TRUE}" && test -z "${ENABLE_TIMELOOP_FALSE}"; then
28705 as_fn_error $? "conditional \"ENABLE_TIMELOOP\" was never defined.
28706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28708 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
28709 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
28710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28712 if test -z "${HAVE_EVENTFD_TRUE}" && test -z "${HAVE_EVENTFD_FALSE}"; then
28713 as_fn_error $? "conditional \"HAVE_EVENTFD\" was never defined.
28714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28716 if test -z "${USE_SYSTEM_PCRE_TRUE}" && test -z "${USE_SYSTEM_PCRE_FALSE}"; then
28717 as_fn_error $? "conditional \"USE_SYSTEM_PCRE\" was never defined.
28718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28720 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
28721 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
28722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28724 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
28725 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
28726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28728 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
28729 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
28730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28732 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
28733 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
28734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28736 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
28737 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
28738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28740 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
28741 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
28742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28744 if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
28745 as_fn_error $? "conditional \"ENABLE_MAN\" was never defined.
28746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28748 if test -z "${ENABLE_DTRACE_TRUE}" && test -z "${ENABLE_DTRACE_FALSE}"; then
28749 as_fn_error $? "conditional \"ENABLE_DTRACE\" was never defined.
28750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28752 if test -z "${ENABLE_SYSTEMTAP_TRUE}" && test -z "${ENABLE_SYSTEMTAP_FALSE}"; then
28753 as_fn_error $? "conditional \"ENABLE_SYSTEMTAP\" was never defined.
28754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28756 if test -z "${HAVE_DBUS1_TRUE}" && test -z "${HAVE_DBUS1_FALSE}"; then
28757 as_fn_error $? "conditional \"HAVE_DBUS1\" was never defined.
28758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28761 : "${CONFIG_STATUS=./config.status}"
28763 ac_clean_files_save=$ac_clean_files
28764 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28766 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28768 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28770 # Generated by $as_me.
28771 # Run this file to recreate the current configuration.
28772 # Compiler output produced by configure, useful for debugging
28773 # configure, is in config.log if it exists.
28776 ac_cs_recheck=false
28779 SHELL=\${CONFIG_SHELL-$SHELL}
28782 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28783 ## -------------------- ##
28784 ## M4sh Initialization. ##
28785 ## -------------------- ##
28787 # Be more Bourne compatible
28788 DUALCASE=1; export DUALCASE # for MKS sh
28789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28792 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28793 # is contrary to our usage. Disable this feature.
28794 alias -g '${1+"$@"}'='"$@"'
28795 setopt NO_GLOB_SUBST
28797 case `(set -o) 2>/dev/null` in #(
28809 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28810 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28813 # Prefer a ksh shell builtin over an external printf program on Solaris,
28814 # but without wasting forks for bash or zsh.
28815 if test -z "$BASH_VERSION$ZSH_VERSION" \
28816 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28817 as_echo='print -r --'
28818 as_echo_n='print -rn --'
28819 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28820 as_echo='printf %s\n'
28821 as_echo_n='printf %s'
28823 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28824 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28825 as_echo_n='/usr/ucb/echo -n'
28827 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28828 as_echo_n_body='eval
28832 expr "X$arg" : "X\\(.*\\)$as_nl";
28833 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28835 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28837 export as_echo_n_body
28838 as_echo_n='sh -c $as_echo_n_body as_echo'
28840 export as_echo_body
28841 as_echo='sh -c $as_echo_body as_echo'
28844 # The user is always right.
28845 if test "${PATH_SEPARATOR+set}" != set; then
28847 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28848 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28855 # We need space, tab and new line, in precisely that order. Quoting is
28856 # there to prevent editors from complaining about space-tab.
28857 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28858 # splitting by setting IFS to empty value.)
28861 # Find who we are. Look in the path if we contain no directory separator.
28864 *[\\/]* ) as_myself=$0 ;;
28865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28866 for as_dir in $PATH
28869 test -z "$as_dir" && as_dir=.
28870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28876 # We did not find ourselves, most probably we were run as `sh COMMAND'
28877 # in which case we are not to be found in the path.
28878 if test "x$as_myself" = x; then
28881 if test ! -f "$as_myself"; then
28882 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28886 # Unset variables that we do not need and which cause bugs (e.g. in
28887 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28888 # suppresses any "Segmentation fault" message there. '((' could
28889 # trigger a bug in pdksh 5.2.14.
28890 for as_var in BASH_ENV ENV MAIL MAILPATH
28891 do eval test x\${$as_var+set} = xset \
28892 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28905 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28908 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28909 # ----------------------------------------
28910 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28911 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28912 # script with STATUS, using 1 if that was 0.
28915 as_status=$1; test $as_status -eq 0 && as_status=1
28917 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28918 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28920 $as_echo "$as_me: error: $2" >&2
28921 as_fn_exit $as_status
28925 # as_fn_set_status STATUS
28926 # -----------------------
28927 # Set $? to STATUS, without forking.
28928 as_fn_set_status ()
28931 } # as_fn_set_status
28933 # as_fn_exit STATUS
28934 # -----------------
28935 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28939 as_fn_set_status $1
28945 # Portably unset VAR.
28948 { eval $1=; unset $1;}
28950 as_unset=as_fn_unset
28951 # as_fn_append VAR VALUE
28952 # ----------------------
28953 # Append the text in VALUE to the end of the definition contained in VAR. Take
28954 # advantage of any shell optimizations that allow amortized linear growth over
28955 # repeated appends, instead of the typical quadratic growth present in naive
28957 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28958 eval 'as_fn_append ()
28969 # as_fn_arith ARG...
28970 # ------------------
28971 # Perform arithmetic evaluation on the ARGs, and store the result in the
28972 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28973 # must be portable across $(()) and expr.
28974 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28975 eval 'as_fn_arith ()
28982 as_val=`expr "$@" || test $? -eq 1`
28987 if expr a : '\(a\)' >/dev/null 2>&1 &&
28988 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28994 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28995 as_basename=basename
29000 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29006 as_me=`$as_basename -- "$0" ||
29007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29008 X"$0" : 'X\(//\)$' \| \
29009 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29011 sed '/^.*\/\([^/][^/]*\)\/*$/{
29025 # Avoid depending upon Character Ranges.
29026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29029 as_cr_digits='0123456789'
29030 as_cr_alnum=$as_cr_Letters$as_cr_digits
29032 ECHO_C= ECHO_N= ECHO_T=
29033 case `echo -n x` in #(((((
29035 case `echo 'xy\c'` in
29036 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29038 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29045 rm -f conf$$ conf$$.exe conf$$.file
29046 if test -d conf$$.dir; then
29047 rm -f conf$$.dir/conf$$.file
29050 mkdir conf$$.dir 2>/dev/null
29052 if (echo >conf$$.file) 2>/dev/null; then
29053 if ln -s conf$$.file conf$$ 2>/dev/null; then
29055 # ... but there are two gotchas:
29056 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29057 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29058 # In both cases, we have to default to `cp -p'.
29059 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29061 elif ln conf$$.file conf$$ 2>/dev/null; then
29069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29070 rmdir conf$$.dir 2>/dev/null
29075 # Create "$as_dir" as a directory, including parents if necessary.
29080 -*) as_dir=./$as_dir;;
29082 test -d "$as_dir" || eval $as_mkdir_p || {
29086 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29087 *) as_qdir=$as_dir;;
29089 as_dirs="'$as_qdir' $as_dirs"
29090 as_dir=`$as_dirname -- "$as_dir" ||
29091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29092 X"$as_dir" : 'X\(//\)[^/]' \| \
29093 X"$as_dir" : 'X\(//\)$' \| \
29094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29095 $as_echo X"$as_dir" |
29096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29100 /^X\(\/\/\)[^/].*/{
29113 test -d "$as_dir" && break
29115 test -z "$as_dirs" || eval "mkdir $as_dirs"
29116 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29120 if mkdir -p . 2>/dev/null; then
29121 as_mkdir_p='mkdir -p "$as_dir"'
29123 test -d ./-p && rmdir ./-p
29127 if test -x / >/dev/null 2>&1; then
29128 as_test_x='test -x'
29130 if ls -dL / >/dev/null 2>&1; then
29137 if test -d "$1"; then
29143 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29144 ???[sx]*):;;*)false;;esac;fi
29148 as_executable_p=$as_test_x
29150 # Sed expression to map a string onto a valid CPP name.
29151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29153 # Sed expression to map a string onto a valid variable name.
29154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29158 ## ----------------------------------- ##
29159 ## Main body of $CONFIG_STATUS script. ##
29160 ## ----------------------------------- ##
29162 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29165 # Save the log message, to keep $0 and so on meaningful, and to
29166 # report actual input values of CONFIG_FILES etc. instead of their
29167 # values after options handling.
29169 This file was extended by glib $as_me 2.31.20, which was
29170 generated by GNU Autoconf 2.68. Invocation command line was
29172 CONFIG_FILES = $CONFIG_FILES
29173 CONFIG_HEADERS = $CONFIG_HEADERS
29174 CONFIG_LINKS = $CONFIG_LINKS
29175 CONFIG_COMMANDS = $CONFIG_COMMANDS
29178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29183 case $ac_config_files in *"
29184 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29187 case $ac_config_headers in *"
29188 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29193 # Files that config.status was made for.
29194 config_files="$ac_config_files"
29195 config_headers="$ac_config_headers"
29196 config_commands="$ac_config_commands"
29200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29202 \`$as_me' instantiates files and other configuration actions
29203 from templates according to the current configuration. Unless the files
29204 and actions are specified as TAGs, all are instantiated by default.
29206 Usage: $0 [OPTION]... [TAG]...
29208 -h, --help print this help, then exit
29209 -V, --version print version number and configuration settings, then exit
29210 --config print configuration, then exit
29211 -q, --quiet, --silent
29212 do not print progress messages
29213 -d, --debug don't remove temporary files
29214 --recheck update $as_me by reconfiguring in the same conditions
29215 --file=FILE[:TEMPLATE]
29216 instantiate the configuration file FILE
29217 --header=FILE[:TEMPLATE]
29218 instantiate the configuration header FILE
29220 Configuration files:
29223 Configuration headers:
29226 Configuration commands:
29229 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>."
29232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29233 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29235 glib config.status 2.31.20
29236 configured by $0, generated by GNU Autoconf 2.68,
29237 with options \\"\$ac_cs_config\\"
29239 Copyright (C) 2010 Free Software Foundation, Inc.
29240 This config.status script is free software; the Free Software Foundation
29241 gives unlimited permission to copy, distribute and modify it."
29248 test -n "\$AWK" || AWK=awk
29251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29252 # The default lists apply if the user does not specify any file.
29258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29275 # Handling of the options.
29276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29279 $as_echo "$ac_cs_version"; exit ;;
29280 --config | --confi | --conf | --con | --co | --c )
29281 $as_echo "$ac_cs_config"; exit ;;
29282 --debug | --debu | --deb | --de | --d | -d )
29284 --file | --fil | --fi | --f )
29287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29288 '') as_fn_error $? "missing file argument" ;;
29290 as_fn_append CONFIG_FILES " '$ac_optarg'"
29291 ac_need_defaults=false;;
29292 --header | --heade | --head | --hea )
29295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29297 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29298 ac_need_defaults=false;;
29300 # Conflict between --help and --header
29301 as_fn_error $? "ambiguous option: \`$1'
29302 Try \`$0 --help' for more information.";;
29303 --help | --hel | -h )
29304 $as_echo "$ac_cs_usage"; exit ;;
29305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29306 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29309 # This is an error.
29310 -*) as_fn_error $? "unrecognized option: \`$1'
29311 Try \`$0 --help' for more information." ;;
29313 *) as_fn_append ac_config_targets " $1"
29314 ac_need_defaults=false ;;
29320 ac_configure_extra_args=
29322 if $ac_cs_silent; then
29324 ac_configure_extra_args="$ac_configure_extra_args --silent"
29328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29329 if \$ac_cs_recheck; then
29330 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29332 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29333 CONFIG_SHELL='$SHELL'
29334 export CONFIG_SHELL
29339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29344 ## Running $as_me. ##
29350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29354 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29358 # The HP-UX ksh and POSIX shell print the target directory to stdout
29359 # if CDPATH is set.
29360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29362 sed_quote_subst='$sed_quote_subst'
29363 double_quote_subst='$double_quote_subst'
29364 delay_variable_subst='$delay_variable_subst'
29365 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29366 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29367 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29368 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29369 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29370 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29371 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29372 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29373 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29374 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29375 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29376 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29377 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29378 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29379 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29380 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29381 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29382 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29383 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29384 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29385 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29386 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29387 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29388 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29389 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29390 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29391 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29392 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29393 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29394 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29395 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29396 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29397 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29398 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29399 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29400 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29401 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29402 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29403 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29404 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29405 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29406 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29407 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29408 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29409 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29410 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29411 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29412 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29413 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29414 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29415 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29416 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29417 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29418 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29419 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29420 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29421 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29422 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"`'
29423 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29424 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29425 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29426 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29427 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29428 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29429 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29430 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29431 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29432 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29433 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29434 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29435 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29436 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29437 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29438 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29439 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29440 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29441 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29442 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29443 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29444 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29445 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29446 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29447 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29448 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29449 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29450 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29451 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29452 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29453 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29454 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29455 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29456 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29457 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29458 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29459 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29460 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29461 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29462 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29463 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29464 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29465 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29466 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29467 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29468 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29469 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29470 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29471 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29472 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29473 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29474 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29475 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29476 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29477 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29478 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29479 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29480 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29481 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29482 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29483 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29484 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29485 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29486 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29487 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29488 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29489 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29490 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29491 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29492 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29493 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29494 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29495 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29496 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
29497 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
29498 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
29499 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
29500 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
29501 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
29502 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
29503 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
29504 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29505 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29506 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
29507 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
29508 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
29509 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
29510 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
29511 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
29512 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
29513 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
29514 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
29515 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29516 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29517 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
29518 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29519 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29520 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29521 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29522 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29523 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29524 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
29525 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29526 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29527 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29528 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
29529 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
29530 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
29531 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
29532 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
29533 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
29534 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
29535 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
29536 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
29537 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29538 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29539 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29540 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29541 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29542 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
29543 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
29544 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
29545 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29546 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29547 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
29548 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
29549 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
29552 LTCFLAGS='$LTCFLAGS'
29553 compiler='$compiler_DEFAULT'
29555 # A function that is used when there is no print builtin or printf.
29556 func_fallback_echo ()
29558 eval 'cat <<_LTECHO_EOF
29563 # Quote evaled strings.
29580 deplibs_check_method \
29584 sharedlib_from_linklib_cmd \
29587 archiver_list_spec \
29593 lt_cv_sys_global_symbol_pipe \
29594 lt_cv_sys_global_symbol_to_cdecl \
29595 lt_cv_sys_global_symbol_to_c_name_address \
29596 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29597 nm_file_list_spec \
29598 lt_prog_compiler_no_builtin_flag \
29599 lt_prog_compiler_pic \
29600 lt_prog_compiler_wl \
29601 lt_prog_compiler_static \
29602 lt_cv_prog_compiler_c_o \
29611 export_dynamic_flag_spec \
29612 whole_archive_flag_spec \
29613 compiler_needs_object \
29615 allow_undefined_flag \
29616 no_undefined_flag \
29617 hardcode_libdir_flag_spec \
29618 hardcode_libdir_separator \
29622 variables_saved_for_relink \
29624 library_names_spec \
29626 install_override_mode \
29630 compiler_lib_search_dirs \
29635 compiler_lib_search_path \
29639 lt_prog_compiler_no_builtin_flag_CXX \
29640 lt_prog_compiler_pic_CXX \
29641 lt_prog_compiler_wl_CXX \
29642 lt_prog_compiler_static_CXX \
29643 lt_cv_prog_compiler_c_o_CXX \
29644 export_dynamic_flag_spec_CXX \
29645 whole_archive_flag_spec_CXX \
29646 compiler_needs_object_CXX \
29648 allow_undefined_flag_CXX \
29649 no_undefined_flag_CXX \
29650 hardcode_libdir_flag_spec_CXX \
29651 hardcode_libdir_separator_CXX \
29652 exclude_expsyms_CXX \
29653 include_expsyms_CXX \
29654 file_list_spec_CXX \
29655 compiler_lib_search_dirs_CXX \
29656 predep_objects_CXX \
29657 postdep_objects_CXX \
29660 compiler_lib_search_path_CXX; do
29661 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29662 *[\\\\\\\`\\"\\\$]*)
29663 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29666 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29671 # Double-quote double-evaled strings.
29672 for var in reload_cmds \
29673 old_postinstall_cmds \
29674 old_postuninstall_cmds \
29676 extract_expsyms_cmds \
29677 old_archive_from_new_cmds \
29678 old_archive_from_expsyms_cmds \
29680 archive_expsym_cmds \
29682 module_expsym_cmds \
29683 export_symbols_cmds \
29687 postuninstall_cmds \
29689 sys_lib_search_path_spec \
29690 sys_lib_dlsearch_path_spec \
29692 old_archive_cmds_CXX \
29693 old_archive_from_new_cmds_CXX \
29694 old_archive_from_expsyms_cmds_CXX \
29696 archive_expsym_cmds_CXX \
29698 module_expsym_cmds_CXX \
29699 export_symbols_cmds_CXX \
29701 postlink_cmds_CXX; do
29702 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29703 *[\\\\\\\`\\"\\\$]*)
29704 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29707 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29712 ac_aux_dir='$ac_aux_dir'
29713 xsi_shell='$xsi_shell'
29714 lt_shell_append='$lt_shell_append'
29716 # See if we are running on zsh, and set the options which allow our
29717 # commands through without removal of \ escapes INIT.
29718 if test -n "\${ZSH_VERSION+set}" ; then
29719 setopt NO_GLOB_SUBST
29725 TIMESTAMP='$TIMESTAMP'
29731 ac_aux_dir='$ac_aux_dir'
29736 # Note that if two cases are the same, case goes with the first one.
29737 # Note also that this is inside an AC_OUTPUT_COMMAND. We do not depend
29738 # on variable expansion in case labels. Look at the generated config.status
29741 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
29742 glib_header_alloca_h="$ac_cv_working_alloca_h"
29744 glib_header_alloca_h="$ac_cv_header_alloca_h"
29748 x$ac_cv_header_float_h)
29750 glib_mf=FLT_MIN glib_Mf=FLT_MAX
29751 glib_md=DBL_MIN glib_Md=DBL_MAX
29753 x$ac_cv_header_values_h)
29755 glib_mf=MINFLOAT glib_Mf=MAXFLOAT
29756 glib_md=MINDOUBLE glib_Md=MAXDOUBLE
29761 x$ac_cv_header_limits_h)
29763 glib_ms=SHRT_MIN glib_Ms=SHRT_MAX glib_Mus=USHRT_MAX
29764 glib_mi=INT_MIN glib_Mi=INT_MAX glib_Mui=UINT_MAX
29765 glib_ml=LONG_MIN glib_Ml=LONG_MAX glib_Mul=ULONG_MAX
29767 x$ac_cv_header_values_h)
29769 glib_ms=MINSHORT glib_Ms=MAXSHORT glib_Mus="(((gushort)G_MAXSHORT)*2+1)"
29770 glib_mi=MININT glib_Mi=MAXINT glib_Mui="(((guint)G_MAXINT)*2+1)"
29771 glib_ml=MINLONG glib_Ml=MAXLONG glib_Mul="(((gulong)G_MAXLONG)*2+1)"
29775 if test x$ac_cv_header_sys_poll_h = xyes ; then
29776 glib_sys_poll_h=yes
29779 if test x$enable_included_printf = xyes ; then
29780 glib_included_printf=yes
29784 $ac_cv_sizeof_short)
29786 gint16_modifier='"h"'
29787 gint16_format='"hi"'
29788 guint16_format='"hu"'
29792 gint16_modifier='""'
29793 gint16_format='"i"'
29794 guint16_format='"u"'
29798 $ac_cv_sizeof_short)
29800 gint32_modifier='"h"'
29801 gint32_format='"hi"'
29802 guint32_format='"hu"'
29806 gint32_modifier='""'
29807 gint32_format='"i"'
29808 guint32_format='"u"'
29810 $ac_cv_sizeof_long)
29812 gint32_modifier='"l"'
29813 gint32_format='"li"'
29814 guint32_format='"lu"'
29820 gint64_modifier='""'
29821 gint64_format='"i"'
29822 guint64_format='"u"'
29824 gint64_constant='(val)'
29825 guint64_constant='(val)'
29827 $ac_cv_sizeof_long)
29829 gint64_modifier='"l"'
29830 gint64_format='"li"'
29831 guint64_format='"lu"'
29833 gint64_constant='(val##L)'
29834 guint64_constant='(val##UL)'
29836 $ac_cv_sizeof_long_long)
29838 if test -n "$glib_cv_long_long_format"; then
29839 gint64_modifier='"'$glib_cv_long_long_format'"'
29840 gint64_format='"'$glib_cv_long_long_format'i"'
29841 guint64_format='"'$glib_cv_long_long_format'u"'
29843 glib_extension='G_GNUC_EXTENSION '
29844 gint64_constant='(G_GNUC_EXTENSION (val##LL))'
29845 guint64_constant='(G_GNUC_EXTENSION (val##ULL))'
29847 $ac_cv_sizeof___int64)
29849 if test -n "$glib_cv_long_long_format"; then
29850 gint64_modifier='"'$glib_cv_long_long_format'"'
29851 gint64_format='"'$glib_cv_long_long_format'i"'
29852 guint64_format='"'$glib_cv_long_long_format'u"'
29855 gint64_constant='(val##i64)'
29856 guint64_constant='(val##ui64)'
29859 glib_size_t=$ac_cv_sizeof_size_t
29860 glib_size_type_define="$glib_size_type"
29861 glib_void_p=$ac_cv_sizeof_void_p
29862 glib_long=$ac_cv_sizeof_long
29864 case "$glib_size_type" in
29866 gsize_modifier='"h"'
29867 gsize_format='"hu"'
29868 gssize_format='"hi"'
29869 glib_msize_type='SHRT'
29872 gsize_modifier='""'
29874 gssize_format='"i"'
29875 glib_msize_type='INT'
29878 gsize_modifier='"l"'
29879 gsize_format='"lu"'
29880 gssize_format='"li"'
29881 glib_msize_type='LONG'
29883 "long long"|__int64)
29884 gsize_modifier='"I64"'
29885 gsize_format='"I64u"'
29886 gssize_format='"I64i"'
29887 glib_msize_type='INT64'
29891 gintbits=`expr $ac_cv_sizeof_int \* 8`
29892 glongbits=`expr $ac_cv_sizeof_long \* 8`
29893 gsizebits=`expr $ac_cv_sizeof_size_t \* 8`
29895 case $ac_cv_sizeof_void_p in
29897 glib_intptr_type_define=int
29898 gintptr_modifier='""'
29899 gintptr_format='"i"'
29900 guintptr_format='"u"'
29901 glib_gpi_cast='(gint)'
29902 glib_gpui_cast='(guint)'
29904 $ac_cv_sizeof_long)
29905 glib_intptr_type_define=long
29906 gintptr_modifier='"l"'
29907 gintptr_format='"li"'
29908 guintptr_format='"lu"'
29909 glib_gpi_cast='(glong)'
29910 glib_gpui_cast='(gulong)'
29912 $ac_cv_sizeof_long_long)
29913 glib_intptr_type_define='long long'
29914 gintptr_modifier='"I64"'
29915 gintptr_format='"I64i"'
29916 guintptr_format='"I64u"'
29917 glib_gpi_cast='(gint64)'
29918 glib_gpui_cast='(guint64)'
29920 $ac_cv_sizeof___int64)
29921 glib_intptr_type_define=__int64
29922 gintptr_modifier='"I64"'
29923 gintptr_format='"I64i"'
29924 guintptr_format='"I64u"'
29925 glib_gpi_cast='(gint64)'
29926 glib_gpui_cast='(guint64)'
29929 glib_unknown_void_p=yes
29935 x$ac_cv_func_atexit)
29937 #ifdef NeXT /* @#%@! NeXTStep */
29938 # define g_ATEXIT(proc) (!atexit (proc))
29940 # define g_ATEXIT(proc) (atexit (proc))
29943 x$ac_cv_func_on_exit)
29945 #define g_ATEXIT(proc) (on_exit ((void (*)(int, void*))(proc), NULL))"
29950 x$ac_cv_func_memmove)
29952 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END'
29954 x$glib_cv_working_bcopy)
29956 /* memmove isn't available, but bcopy can copy overlapping memory regions */
29957 #define g_memmove(d,s,n) G_STMT_START { bcopy ((s), (d), (n)); } G_STMT_END"
29961 /* memmove isn't found and bcopy can't copy overlapping memory regions,
29962 * so we have to roll our own copy routine. */
29963 void g_memmove (void* dest, const void * src, unsigned long len);"
29968 #define GLIB_MAJOR_VERSION $GLIB_MAJOR_VERSION
29969 #define GLIB_MINOR_VERSION $GLIB_MINOR_VERSION
29970 #define GLIB_MICRO_VERSION $GLIB_MICRO_VERSION
29974 x$glib_cv_va_copy) glib_vacopy='#define G_VA_COPY va_copy' ;;
29975 x$glib_cv___va_copy) glib_vacopy='#define G_VA_COPY __va_copy' ;;
29979 if test x$glib_cv_va_val_copy = xno; then
29980 glib_vacopy="\$glib_vacopy
29981 #define G_VA_COPY_AS_ARRAY 1"
29984 if test x$glib_cv_hasinline = xyes; then
29985 glib_inline='#define G_HAVE_INLINE 1'
29987 if test x$glib_cv_has__inline = xyes; then
29988 glib_inline="\$glib_inline
29989 #define G_HAVE___INLINE 1"
29991 if test x$glib_cv_has__inline__ = xyes; then
29992 glib_inline="\$glib_inline
29993 #define G_HAVE___INLINE__ 1"
29996 g_have_gnuc_varargs=$g_have_gnuc_varargs
29997 g_have_iso_c_varargs=$g_have_iso_c_varargs
29998 g_have_iso_cxx_varargs=$g_have_iso_cxx_varargs
30000 g_can_inline=$g_can_inline
30001 g_have_gnuc_visibility=$g_have_gnuc_visibility
30002 g_have_sunstudio_visibility=$g_have_sunstudio_visibility
30004 if test x$ac_cv_c_bigendian = xyes; then
30005 g_byte_order=G_BIG_ENDIAN
30009 g_byte_order=G_LITTLE_ENDIAN
30014 g_pollin=$glib_cv_value_POLLIN
30015 g_pollout=$glib_cv_value_POLLOUT
30016 g_pollpri=$glib_cv_value_POLLPRI
30017 g_pollhup=$glib_cv_value_POLLHUP
30018 g_pollerr=$glib_cv_value_POLLERR
30019 g_pollnval=$glib_cv_value_POLLNVAL
30021 g_af_unix=$glib_cv_value_AF_UNIX
30022 g_af_inet=$glib_cv_value_AF_INET
30023 g_af_inet6=$glib_cv_value_AF_INET6
30025 g_msg_peek=$glib_cv_value_MSG_PEEK
30026 g_msg_oob=$glib_cv_value_MSG_OOB
30027 g_msg_dontroute=$glib_cv_value_MSG_DONTROUTE
30029 g_stack_grows=$glib_cv_stack_grows
30031 g_have_eilseq=$have_eilseq
30033 g_threads_impl_def=$g_threads_impl
30035 g_atomic_lock_free="$glib_cv_g_atomic_lock_free"
30036 g_memory_barrier_needed="$glib_memory_barrier_needed"
30037 g_gcc_atomic_ops="$glib_cv_gcc_has_builtin_atomic_operations"
30039 g_module_suffix="$glib_gmodule_suffix"
30041 g_pid_type="$glib_pid_type"
30044 glib_os="#define G_OS_BEOS"
30047 glib_os="#define G_OS_UNIX
30048 #define G_PLATFORM_WIN32
30049 #define G_WITH_CYGWIN"
30052 glib_os="#define G_OS_WIN32
30053 #define G_PLATFORM_WIN32"
30056 glib_os="#define G_OS_UNIX"
30059 glib_static_compilation=""
30060 if test x$glib_win32_static_compilation = xyes; then
30061 glib_static_compilation="#define GLIB_STATIC_COMPILATION 1
30062 #define GOBJECT_STATIC_COMPILATION 1"
30068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30070 # Handling of arguments.
30071 for ac_config_target in $ac_config_targets
30073 case $ac_config_target in
30074 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30075 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30076 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30077 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30078 "glib/glibconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS glib/glibconfig.h" ;;
30079 "glib-2.0.pc") CONFIG_FILES="$CONFIG_FILES glib-2.0.pc" ;;
30080 "gmodule-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-2.0.pc" ;;
30081 "gmodule-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-export-2.0.pc" ;;
30082 "gmodule-no-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-no-export-2.0.pc" ;;
30083 "gthread-2.0.pc") CONFIG_FILES="$CONFIG_FILES gthread-2.0.pc" ;;
30084 "gobject-2.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-2.0.pc" ;;
30085 "gio-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-2.0.pc" ;;
30086 "gio-unix-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-unix-2.0.pc" ;;
30087 "gio-windows-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-windows-2.0.pc" ;;
30088 "glib-zip") CONFIG_FILES="$CONFIG_FILES glib-zip" ;;
30089 "glib-gettextize") CONFIG_FILES="$CONFIG_FILES glib-gettextize" ;;
30090 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30091 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
30092 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
30093 "build/win32/dirent/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/dirent/Makefile" ;;
30094 "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
30095 "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
30096 "glib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;;
30097 "glib/glib.stp") CONFIG_FILES="$CONFIG_FILES glib/glib.stp" ;;
30098 "glib/libcharset/Makefile") CONFIG_FILES="$CONFIG_FILES glib/libcharset/Makefile" ;;
30099 "glib/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/gnulib/Makefile" ;;
30100 "glib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/pcre/Makefile" ;;
30101 "glib/update-pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/update-pcre/Makefile" ;;
30102 "glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES glib/tests/Makefile" ;;
30103 "gmodule/Makefile") CONFIG_FILES="$CONFIG_FILES gmodule/Makefile" ;;
30104 "gmodule/gmoduleconf.h") CONFIG_FILES="$CONFIG_FILES gmodule/gmoduleconf.h" ;;
30105 "gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/Makefile" ;;
30106 "gobject/gobject.stp") CONFIG_FILES="$CONFIG_FILES gobject/gobject.stp" ;;
30107 "gobject/glib-mkenums") CONFIG_FILES="$CONFIG_FILES gobject/glib-mkenums" ;;
30108 "gobject/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/tests/Makefile" ;;
30109 "gthread/Makefile") CONFIG_FILES="$CONFIG_FILES gthread/Makefile" ;;
30110 "gio/Makefile") CONFIG_FILES="$CONFIG_FILES gio/Makefile" ;;
30111 "gio/gdbus-2.0/codegen/Makefile") CONFIG_FILES="$CONFIG_FILES gio/gdbus-2.0/codegen/Makefile" ;;
30112 "gio/gdbus-2.0/codegen/config.py") CONFIG_FILES="$CONFIG_FILES gio/gdbus-2.0/codegen/config.py" ;;
30113 "gio/xdgmime/Makefile") CONFIG_FILES="$CONFIG_FILES gio/xdgmime/Makefile" ;;
30114 "gio/inotify/Makefile") CONFIG_FILES="$CONFIG_FILES gio/inotify/Makefile" ;;
30115 "gio/fen/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fen/Makefile" ;;
30116 "gio/fam/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fam/Makefile" ;;
30117 "gio/win32/Makefile") CONFIG_FILES="$CONFIG_FILES gio/win32/Makefile" ;;
30118 "gio/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/Makefile" ;;
30119 "gio/tests/gdbus-object-manager-example/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/gdbus-object-manager-example/Makefile" ;;
30120 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30121 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
30122 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
30123 "docs/reference/glib/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/Makefile" ;;
30124 "docs/reference/glib/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/version.xml" ;;
30125 "docs/reference/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/Makefile" ;;
30126 "docs/reference/gobject/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/version.xml" ;;
30127 "docs/reference/gio/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/Makefile" ;;
30128 "docs/reference/gio/gdbus-object-manager-example/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/gdbus-object-manager-example/Makefile" ;;
30129 "docs/reference/gio/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/version.xml" ;;
30130 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30131 "tests/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gobject/Makefile" ;;
30132 "tests/refcount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/refcount/Makefile" ;;
30133 "m4macros/Makefile") CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;;
30134 "chmod-scripts") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod-scripts" ;;
30135 "INSTALL") CONFIG_FILES="$CONFIG_FILES INSTALL" ;;
30136 "README") CONFIG_FILES="$CONFIG_FILES README" ;;
30137 "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
30138 "glib/glibconfig.h.win32") CONFIG_FILES="$CONFIG_FILES glib/glibconfig.h.win32" ;;
30139 "glib/makefile.msc") CONFIG_FILES="$CONFIG_FILES glib/makefile.msc" ;;
30140 "glib/glib.rc") CONFIG_FILES="$CONFIG_FILES glib/glib.rc" ;;
30141 "gmodule/makefile.msc") CONFIG_FILES="$CONFIG_FILES gmodule/makefile.msc" ;;
30142 "gmodule/gmodule.rc") CONFIG_FILES="$CONFIG_FILES gmodule/gmodule.rc" ;;
30143 "gobject/makefile.msc") CONFIG_FILES="$CONFIG_FILES gobject/makefile.msc" ;;
30144 "gobject/gobject.rc") CONFIG_FILES="$CONFIG_FILES gobject/gobject.rc" ;;
30145 "gthread/makefile.msc") CONFIG_FILES="$CONFIG_FILES gthread/makefile.msc" ;;
30146 "gthread/gthread.rc") CONFIG_FILES="$CONFIG_FILES gthread/gthread.rc" ;;
30147 "gio/gio.rc") CONFIG_FILES="$CONFIG_FILES gio/gio.rc" ;;
30148 "tests/makefile.msc") CONFIG_FILES="$CONFIG_FILES tests/makefile.msc" ;;
30150 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30155 # If the user did not use the arguments to specify the items to instantiate,
30156 # then the envvar interface is used. Set only those that are not.
30157 # We use the long form for the default assignment because of an extremely
30158 # bizarre bug on SunOS 4.1.3.
30159 if $ac_need_defaults; then
30160 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30161 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30162 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30165 # Have a temporary directory for convenience. Make it in the build tree
30166 # simply because there is no reason against having it here, and in addition,
30167 # creating and moving files from /tmp can sometimes cause problems.
30168 # Hook for its removal unless debugging.
30169 # Note that there is a small window in which the directory will not be cleaned:
30170 # after its creation but before its name has been assigned to `$tmp'.
30174 trap 'exit_status=$?
30175 : "${ac_tmp:=$tmp}"
30176 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30178 trap 'as_fn_exit 1' 1 2 13 15
30180 # Create a (secure) tmp directory for tmp files.
30183 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30187 tmp=./conf$$-$RANDOM
30188 (umask 077 && mkdir "$tmp")
30189 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30192 # Set up the scripts for CONFIG_FILES section.
30193 # No need to generate them if there are no CONFIG_FILES.
30194 # This happens for instance with `./config.status config.h'.
30195 if test -n "$CONFIG_FILES"; then
30198 ac_cr=`echo X | tr X '\015'`
30199 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30200 # But we know of no other shell where ac_cr would be empty at this
30201 # point, so we can use a bashism as a fallback.
30202 if test "x$ac_cr" = x; then
30203 eval ac_cr=\$\'\\r\'
30205 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30206 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30209 ac_cs_awk_cr=$ac_cr
30212 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30217 echo "cat >conf$$subs.awk <<_ACEOF" &&
30218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30220 } >conf$$subs.sh ||
30221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30224 for ac_last_try in false false false false false :; do
30225 . ./conf$$subs.sh ||
30226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30228 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30229 if test $ac_delim_n = $ac_delim_num; then
30231 elif $ac_last_try; then
30232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30237 rm -f conf$$subs.sh
30239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30240 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30244 s/^/S["/; s/!.*/"]=/
30254 s/\(.\{148\}\)..*/\1/
30256 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30268 s/\(.\{148\}\)..*/\1/
30270 s/["\\]/\\&/g; s/^/"/; s/$/"/
30274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30279 ' <conf$$subs.awk | sed '
30284 ' >>$CONFIG_STATUS || ac_write_fail=1
30285 rm -f conf$$subs.awk
30286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30288 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30289 for (key in S) S_is_set[key] = 1
30295 nfields = split(line, field, "@")
30297 len = length(field[1])
30298 for (i = 2; i < nfields; i++) {
30300 keylen = length(key)
30301 if (S_is_set[key]) {
30303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30304 len += length(value) + length(field[++i])
30315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30316 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30317 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30320 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30321 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30324 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30325 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30326 # trailing colons and then remove the whole line if VPATH becomes empty
30327 # (actually we leave an empty line to preserve line numbers).
30328 if test "x$srcdir" = x.; then
30329 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30348 fi # test -n "$CONFIG_FILES"
30350 # Set up the scripts for CONFIG_HEADERS section.
30351 # No need to generate them if there are no CONFIG_HEADERS.
30352 # This happens for instance with `./config.status Makefile'.
30353 if test -n "$CONFIG_HEADERS"; then
30354 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30358 # Transform confdefs.h into an awk script `defines.awk', embedded as
30359 # here-document in config.status, that substitutes the proper values into
30360 # config.h.in to produce config.h.
30362 # Create a delimiter string that does not exist in confdefs.h, to ease
30363 # handling of long lines.
30365 for ac_last_try in false false :; do
30366 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30367 if test -z "$ac_tt"; then
30369 elif $ac_last_try; then
30370 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30376 # For the awk script, D is an array of macro values keyed by name,
30377 # likewise P contains macro parameters if any. Preserve backslash
30378 # newline sequences.
30380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30382 s/.\{148\}/&'"$ac_delim"'/g
30385 s/^[ ]*#[ ]*define[ ][ ]*/ /
30392 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30399 D["\1"]=" \3\\\\\\n"\\/p
30401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30406 s/.\{148\}/&'"$ac_delim"'/g
30411 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30414 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30416 ' <confdefs.h | sed '
30417 s/'"$ac_delim"'/"\\\
30418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30421 for (key in D) D_is_set[key] = 1
30424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30426 split(line, arg, " ")
30427 if (arg[1] == "#") {
30431 defundef = substr(arg[1], 2)
30434 split(mac1, mac2, "(") #)
30436 prefix = substr(line, 1, index(line, defundef) - 1)
30437 if (D_is_set[macro]) {
30438 # Preserve the white space surrounding the "#".
30439 print prefix "define", macro P[macro] D[macro]
30442 # Replace #undef with comments. This is necessary, for example,
30443 # in the case of _POSIX_SOURCE, which is predefined and required
30444 # on some systems where configure will not decide to define it.
30445 if (defundef == "undef") {
30446 print "/*", prefix defundef, macro, "*/"
30454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30455 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30456 fi # test -n "$CONFIG_HEADERS"
30459 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30464 :[FHLC]) ac_mode=$ac_tag; continue;;
30466 case $ac_mode$ac_tag in
30468 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
30469 :[FH]-) ac_tag=-:-;;
30470 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30487 -) ac_f="$ac_tmp/stdin";;
30488 *) # Look for the file first in the build tree, then in the source tree
30489 # (if the path is not absolute). The absolute path cannot be DOS-style,
30490 # because $ac_f cannot contain `:'.
30494 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30496 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30498 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30499 as_fn_append ac_file_inputs " '$ac_f'"
30502 # Let's still pretend it is `configure' which instantiates (i.e., don't
30503 # use $as_me), people would be surprised to read:
30504 # /* config.h. Generated by config.status. */
30505 configure_input='Generated from '`
30506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30508 if test x"$ac_file" != x-; then
30509 configure_input="$ac_file. $configure_input"
30510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30511 $as_echo "$as_me: creating $ac_file" >&6;}
30513 # Neutralize special characters interpreted by sed in replacement strings.
30514 case $configure_input in #(
30515 *\&* | *\|* | *\\* )
30516 ac_sed_conf_input=`$as_echo "$configure_input" |
30517 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30518 *) ac_sed_conf_input=$configure_input;;
30522 *:-:* | *:-) cat >"$ac_tmp/stdin" \
30523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30528 ac_dir=`$as_dirname -- "$ac_file" ||
30529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30530 X"$ac_file" : 'X\(//\)[^/]' \| \
30531 X"$ac_file" : 'X\(//\)$' \| \
30532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30533 $as_echo X"$ac_file" |
30534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30538 /^X\(\/\/\)[^/].*/{
30551 as_dir="$ac_dir"; as_fn_mkdir_p
30555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30558 # A ".." for each directory in $ac_dir_suffix.
30559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30560 case $ac_top_builddir_sub in
30561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30565 ac_abs_top_builddir=$ac_pwd
30566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30567 # for backward compatibility:
30568 ac_top_builddir=$ac_top_build_prefix
30571 .) # We are building in place.
30573 ac_top_srcdir=$ac_top_builddir_sub
30574 ac_abs_top_srcdir=$ac_pwd ;;
30575 [\\/]* | ?:[\\/]* ) # Absolute name.
30576 ac_srcdir=$srcdir$ac_dir_suffix;
30577 ac_top_srcdir=$srcdir
30578 ac_abs_top_srcdir=$srcdir ;;
30579 *) # Relative name.
30580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30581 ac_top_srcdir=$ac_top_build_prefix$srcdir
30582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30594 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30595 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30597 ac_MKDIR_P=$MKDIR_P
30599 [\\/$]* | ?:[\\/]* ) ;;
30600 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30605 # If the template does not know about datarootdir, expand it.
30606 # FIXME: This hack should be removed a few years after 2.60.
30607 ac_datarootdir_hack=; ac_datarootdir_seen=
30618 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30619 *datarootdir*) ac_datarootdir_seen=yes;;
30620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30622 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30625 ac_datarootdir_hack='
30626 s&@datadir@&$datadir&g
30627 s&@docdir@&$docdir&g
30628 s&@infodir@&$infodir&g
30629 s&@localedir@&$localedir&g
30630 s&@mandir@&$mandir&g
30631 s&\\\${datarootdir}&$datarootdir&g' ;;
30635 # Neutralize VPATH when `$srcdir' = `.'.
30636 # Shell code in configure.ac might set extrasub.
30637 # FIXME: do we really want to maintain this feature?
30638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30639 ac_sed_extra="$ac_vpsub
30642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30645 s|@configure_input@|$ac_sed_conf_input|;t t
30646 s&@top_builddir@&$ac_top_builddir_sub&;t t
30647 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30648 s&@srcdir@&$ac_srcdir&;t t
30649 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30650 s&@top_srcdir@&$ac_top_srcdir&;t t
30651 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30652 s&@builddir@&$ac_builddir&;t t
30653 s&@abs_builddir@&$ac_abs_builddir&;t t
30654 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30655 s&@INSTALL@&$ac_INSTALL&;t t
30656 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30657 $ac_datarootdir_hack
30659 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30660 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30663 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30665 "$ac_tmp/out"`; test -z "$ac_out"; } &&
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30667 which seems to be undefined. Please make sure it is defined" >&5
30668 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30669 which seems to be undefined. Please make sure it is defined" >&2;}
30671 rm -f "$ac_tmp/stdin"
30673 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30674 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30682 if test x"$ac_file" != x-; then
30684 $as_echo "/* $configure_input */" \
30685 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30686 } >"$ac_tmp/config.h" \
30687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30688 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30690 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30693 mv "$ac_tmp/config.h" "$ac_file" \
30694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30697 $as_echo "/* $configure_input */" \
30698 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30699 || as_fn_error $? "could not create -" "$LINENO" 5
30701 # Compute "$ac_file"'s index in $config_headers.
30704 for _am_header in $config_headers :; do
30705 case $_am_header in
30706 $_am_arg | $_am_arg:* )
30709 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30712 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30713 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30714 X"$_am_arg" : 'X\(//\)[^/]' \| \
30715 X"$_am_arg" : 'X\(//\)$' \| \
30716 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30717 $as_echo X"$_am_arg" |
30718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30722 /^X\(\/\/\)[^/].*/{
30734 s/.*/./; q'`/stamp-h$_am_stamp_count
30737 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30738 $as_echo "$as_me: executing $ac_file commands" >&6;}
30743 case $ac_file$ac_mode in
30744 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30745 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30746 # are listed without --file. Let's play safe and only enable the eval
30747 # if we detect the quoting.
30748 case $CONFIG_FILES in
30749 *\'*) eval set x "$CONFIG_FILES" ;;
30750 *) set x $CONFIG_FILES ;;
30755 # Strip MF so we end up with the name of the file.
30756 mf=`echo "$mf" | sed -e 's/:.*$//'`
30757 # Check whether this is an Automake generated Makefile or not.
30758 # We used to match only the files named `Makefile.in', but
30759 # some people rename them; so instead we look at the file content.
30760 # Grep'ing the first line is not enough: some people post-process
30761 # each Makefile.in and add a new line on top of each file to say so.
30762 # Grep'ing the whole file is not good either: AIX grep has a line
30763 # limit of 2048, but all sed's we know have understand at least 4000.
30764 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30765 dirpart=`$as_dirname -- "$mf" ||
30766 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30767 X"$mf" : 'X\(//\)[^/]' \| \
30768 X"$mf" : 'X\(//\)$' \| \
30769 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30775 /^X\(\/\/\)[^/].*/{
30791 # Extract the definition of DEPDIR, am__include, and am__quote
30792 # from the Makefile without running `make'.
30793 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30794 test -z "$DEPDIR" && continue
30795 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30796 test -z "am__include" && continue
30797 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30798 # When using ansi2knr, U may be empty or an underscore; expand it
30799 U=`sed -n 's/^U = //p' < "$mf"`
30800 # Find all dependency output files, they are included files with
30801 # $(DEPDIR) in their names. We invoke sed twice because it is the
30802 # simplest approach to changing $(DEPDIR) to its actual value in the
30804 for file in `sed -n "
30805 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30806 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30807 # Make sure the directory exists.
30808 test -f "$dirpart/$file" && continue
30809 fdir=`$as_dirname -- "$file" ||
30810 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30811 X"$file" : 'X\(//\)[^/]' \| \
30812 X"$file" : 'X\(//\)$' \| \
30813 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30814 $as_echo X"$file" |
30815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30819 /^X\(\/\/\)[^/].*/{
30832 as_dir=$dirpart/$fdir; as_fn_mkdir_p
30833 # echo "creating $dirpart/$file"
30834 echo '# dummy' > "$dirpart/$file"
30839 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
30840 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
30844 # See if we are running on zsh, and set the options which allow our
30845 # commands through without removal of \ escapes.
30846 if test -n "${ZSH_VERSION+set}" ; then
30847 setopt NO_GLOB_SUBST
30850 cfgfile="${ofile}T"
30851 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30854 cat <<_LT_EOF >> "$cfgfile"
30857 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30858 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30859 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30860 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30862 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30863 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
30865 # Written by Gordon Matzigkeit, 1996
30867 # This file is part of GNU Libtool.
30869 # GNU Libtool is free software; you can redistribute it and/or
30870 # modify it under the terms of the GNU General Public License as
30871 # published by the Free Software Foundation; either version 2 of
30872 # the License, or (at your option) any later version.
30874 # As a special exception to the GNU General Public License,
30875 # if you distribute this file as part of a program or library that
30876 # is built using GNU Libtool, you may include this file under the
30877 # same distribution terms that you use for the rest of that program.
30879 # GNU Libtool is distributed in the hope that it will be useful,
30880 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30881 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30882 # GNU General Public License for more details.
30884 # You should have received a copy of the GNU General Public License
30885 # along with GNU Libtool; see the file COPYING. If not, a copy
30886 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30887 # obtained by writing to the Free Software Foundation, Inc.,
30888 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30891 # The names of the tagged configurations supported by this script.
30892 available_tags="CXX "
30894 # ### BEGIN LIBTOOL CONFIG
30896 # Which release of libtool.m4 was used?
30897 macro_version=$macro_version
30898 macro_revision=$macro_revision
30900 # Whether or not to build static libraries.
30901 build_old_libs=$enable_static
30903 # Assembler program.
30906 # DLL creation program.
30907 DLLTOOL=$lt_DLLTOOL
30909 # Object dumper program.
30910 OBJDUMP=$lt_OBJDUMP
30912 # Whether or not to build shared libraries.
30913 build_libtool_libs=$enable_shared
30915 # What type of objects to build.
30918 # Whether or not to optimize for fast installation.
30919 fast_install=$enable_fast_install
30921 # Shell to use when invoking shell scripts.
30924 # An echo program that protects backslashes.
30927 # The PATH separator for the build system.
30928 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30931 host_alias=$host_alias
30935 # The build system.
30936 build_alias=$build_alias
30940 # A sed program that does not truncate output.
30943 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30944 Xsed="\$SED -e 1s/^X//"
30946 # A grep program that handles long lines.
30952 # A literal string matcher.
30955 # A BSD- or MS-compatible name lister.
30958 # Whether we need soft or hard links.
30961 # What is the maximum length of a command?
30962 max_cmd_len=$max_cmd_len
30964 # Object file suffix (normally "o").
30967 # Executable file suffix (normally "").
30970 # whether the shell understands "unset".
30973 # turn spaces into newlines.
30976 # turn newlines into spaces.
30979 # convert \$build file names to \$host format.
30980 to_host_file_cmd=$lt_cv_to_host_file_cmd
30982 # convert \$build files to toolchain format.
30983 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30985 # Method to check whether dependent libraries are shared objects.
30986 deplibs_check_method=$lt_deplibs_check_method
30988 # Command to use when deplibs_check_method = "file_magic".
30989 file_magic_cmd=$lt_file_magic_cmd
30991 # How to find potential files when deplibs_check_method = "file_magic".
30992 file_magic_glob=$lt_file_magic_glob
30994 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30995 want_nocaseglob=$lt_want_nocaseglob
30997 # Command to associate shared and link libraries.
30998 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31003 # Flags to create an archive.
31004 AR_FLAGS=$lt_AR_FLAGS
31006 # How to feed a file listing to the archiver.
31007 archiver_list_spec=$lt_archiver_list_spec
31009 # A symbol stripping program.
31012 # Commands used to install an old-style archive.
31014 old_postinstall_cmds=$lt_old_postinstall_cmds
31015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31017 # Whether to use a lock for old archive extraction.
31018 lock_old_archive_extraction=$lock_old_archive_extraction
31023 # LTCC compiler flags.
31024 LTCFLAGS=$lt_CFLAGS
31026 # Take the output of nm and produce a listing of raw symbols and C names.
31027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31029 # Transform the output of nm in a proper C declaration.
31030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31032 # Transform the output of nm in a C name address pair.
31033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31035 # Transform the output of nm in a C name address pair when lib prefix is needed.
31036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31038 # Specify filename containing input files for \$NM.
31039 nm_file_list_spec=$lt_nm_file_list_spec
31041 # The root where to search for dependent libraries,and in which our libraries should be installed.
31042 lt_sysroot=$lt_sysroot
31044 # The name of the directory that contains temporary libtool files.
31047 # Used to examine libraries when file_magic_cmd begins with "file".
31048 MAGIC_CMD=$MAGIC_CMD
31050 # Must we lock files when doing compilation?
31051 need_locks=$lt_need_locks
31054 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31056 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31057 DSYMUTIL=$lt_DSYMUTIL
31059 # Tool to change global to local symbols on Mac OS X.
31062 # Tool to manipulate fat objects and archives on Mac OS X.
31065 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31068 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31069 OTOOL64=$lt_OTOOL64
31071 # Old archive suffix (normally "a").
31074 # Shared library suffix (normally ".so").
31075 shrext_cmds=$lt_shrext_cmds
31077 # The commands to extract the exported symbol list from a shared archive.
31078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31080 # Variables whose values should be saved in libtool wrapper scripts and
31081 # restored at link time.
31082 variables_saved_for_relink=$lt_variables_saved_for_relink
31084 # Do we need the "lib" prefix for modules?
31085 need_lib_prefix=$need_lib_prefix
31087 # Do we need a version for libraries?
31088 need_version=$need_version
31090 # Library versioning type.
31091 version_type=$version_type
31093 # Shared library runtime path variable.
31094 runpath_var=$runpath_var
31096 # Shared library path variable.
31097 shlibpath_var=$shlibpath_var
31099 # Is shlibpath searched before the hard-coded library search path?
31100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31102 # Format of library name prefix.
31103 libname_spec=$lt_libname_spec
31105 # List of archive names. First name is the real one, the rest are links.
31106 # The last name is the one that the linker finds with -lNAME
31107 library_names_spec=$lt_library_names_spec
31109 # The coded name of the library, if different from the real name.
31110 soname_spec=$lt_soname_spec
31112 # Permission mode override for installation of shared libraries.
31113 install_override_mode=$lt_install_override_mode
31115 # Command to use after installation of a shared archive.
31116 postinstall_cmds=$lt_postinstall_cmds
31118 # Command to use after uninstallation of a shared archive.
31119 postuninstall_cmds=$lt_postuninstall_cmds
31121 # Commands used to finish a libtool library installation in a directory.
31122 finish_cmds=$lt_finish_cmds
31124 # As "finish_cmds", except a single script fragment to be evaled but
31126 finish_eval=$lt_finish_eval
31128 # Whether we should hardcode library paths into libraries.
31129 hardcode_into_libs=$hardcode_into_libs
31131 # Compile-time system search path for libraries.
31132 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31134 # Run-time system search path for libraries.
31135 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31137 # Whether dlopen is supported.
31138 dlopen_support=$enable_dlopen
31140 # Whether dlopen of programs is supported.
31141 dlopen_self=$enable_dlopen_self
31143 # Whether dlopen of statically linked programs is supported.
31144 dlopen_self_static=$enable_dlopen_self_static
31146 # Commands to strip libraries.
31147 old_striplib=$lt_old_striplib
31148 striplib=$lt_striplib
31151 # The linker used to build libraries.
31154 # How to create reloadable object files.
31155 reload_flag=$lt_reload_flag
31156 reload_cmds=$lt_reload_cmds
31158 # Commands used to build an old-style archive.
31159 old_archive_cmds=$lt_old_archive_cmds
31161 # A language specific compiler.
31164 # Is the compiler the GNU compiler?
31167 # Compiler flag to turn off builtin functions.
31168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31170 # Additional compiler flags for building library objects.
31171 pic_flag=$lt_lt_prog_compiler_pic
31173 # How to pass a linker flag through the compiler.
31174 wl=$lt_lt_prog_compiler_wl
31176 # Compiler flag to prevent dynamic linking.
31177 link_static_flag=$lt_lt_prog_compiler_static
31179 # Does compiler simultaneously support -c and -o options?
31180 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31182 # Whether or not to add -lc for building shared libraries.
31183 build_libtool_need_lc=$archive_cmds_need_lc
31185 # Whether or not to disallow shared libs when runtime libs are static.
31186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31188 # Compiler flag to allow reflexive dlopens.
31189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31191 # Compiler flag to generate shared objects directly from archives.
31192 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31194 # Whether the compiler copes with passing no objects directly.
31195 compiler_needs_object=$lt_compiler_needs_object
31197 # Create an old-style archive from a shared archive.
31198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31200 # Create a temporary old-style archive to link instead of a shared archive.
31201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31203 # Commands used to build a shared archive.
31204 archive_cmds=$lt_archive_cmds
31205 archive_expsym_cmds=$lt_archive_expsym_cmds
31207 # Commands used to build a loadable module if different from building
31208 # a shared archive.
31209 module_cmds=$lt_module_cmds
31210 module_expsym_cmds=$lt_module_expsym_cmds
31212 # Whether we are building with GNU ld or not.
31213 with_gnu_ld=$lt_with_gnu_ld
31215 # Flag that allows shared libraries with undefined symbols to be built.
31216 allow_undefined_flag=$lt_allow_undefined_flag
31218 # Flag that enforces no undefined symbols.
31219 no_undefined_flag=$lt_no_undefined_flag
31221 # Flag to hardcode \$libdir into a binary during linking.
31222 # This must work even if \$libdir does not exist
31223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31225 # Whether we need a single "-rpath" flag with a separated argument.
31226 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31228 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31229 # DIR into the resulting binary.
31230 hardcode_direct=$hardcode_direct
31232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31233 # DIR into the resulting binary and the resulting library dependency is
31234 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31235 # library is relocated.
31236 hardcode_direct_absolute=$hardcode_direct_absolute
31238 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31239 # into the resulting binary.
31240 hardcode_minus_L=$hardcode_minus_L
31242 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31243 # into the resulting binary.
31244 hardcode_shlibpath_var=$hardcode_shlibpath_var
31246 # Set to "yes" if building a shared library automatically hardcodes DIR
31247 # into the library and all subsequent libraries and executables linked
31249 hardcode_automatic=$hardcode_automatic
31251 # Set to yes if linker adds runtime paths of dependent libraries
31252 # to runtime path list.
31253 inherit_rpath=$inherit_rpath
31255 # Whether libtool must link a program against all its dependency libraries.
31256 link_all_deplibs=$link_all_deplibs
31258 # Set to "yes" if exported symbols are required.
31259 always_export_symbols=$always_export_symbols
31261 # The commands to list exported symbols.
31262 export_symbols_cmds=$lt_export_symbols_cmds
31264 # Symbols that should not be listed in the preloaded symbols.
31265 exclude_expsyms=$lt_exclude_expsyms
31267 # Symbols that must always be exported.
31268 include_expsyms=$lt_include_expsyms
31270 # Commands necessary for linking programs (against libraries) with templates.
31271 prelink_cmds=$lt_prelink_cmds
31273 # Commands necessary for finishing linking programs.
31274 postlink_cmds=$lt_postlink_cmds
31276 # Specify filename containing input files.
31277 file_list_spec=$lt_file_list_spec
31279 # How to hardcode a shared library path into an executable.
31280 hardcode_action=$hardcode_action
31282 # The directories searched by this compiler when creating a shared library.
31283 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31285 # Dependencies to place before and after the objects being linked to
31286 # create a shared library.
31287 predep_objects=$lt_predep_objects
31288 postdep_objects=$lt_postdep_objects
31289 predeps=$lt_predeps
31290 postdeps=$lt_postdeps
31292 # The library search path used internally by the compiler when linking
31293 # a shared library.
31294 compiler_lib_search_path=$lt_compiler_lib_search_path
31296 # ### END LIBTOOL CONFIG
31302 cat <<\_LT_EOF >> "$cfgfile"
31303 # AIX sometimes has problems with the GCC collect2 program. For some
31304 # reason, if we set the COLLECT_NAMES environment variable, the problems
31305 # vanish in a puff of smoke.
31306 if test "X${COLLECT_NAMES+set}" != Xset; then
31308 export COLLECT_NAMES
31315 ltmain="$ac_aux_dir/ltmain.sh"
31318 # We use sed instead of cat because bash on DJGPP gets confused if
31319 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31320 # text mode, it properly converts lines to CR/LF. This bash problem
31321 # is reportedly fixed, but why not run on old versions too?
31322 sed '$q' "$ltmain" >> "$cfgfile" \
31323 || (rm -f "$cfgfile"; exit 1)
31325 if test x"$xsi_shell" = xyes; then
31326 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
31330 \ */*) func_dirname_result="${1%/*}${2}" ;;\
31331 \ * ) func_dirname_result="${3}" ;;\
31333 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
31334 && mv -f "$cfgfile.tmp" "$cfgfile" \
31335 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31336 test 0 -eq $? || _lt_function_replace_fail=:
31339 sed -e '/^func_basename ()$/,/^} # func_basename /c\
31342 \ func_basename_result="${1##*/}"\
31343 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
31344 && mv -f "$cfgfile.tmp" "$cfgfile" \
31345 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31346 test 0 -eq $? || _lt_function_replace_fail=:
31349 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
31350 func_dirname_and_basename ()\
31353 \ */*) func_dirname_result="${1%/*}${2}" ;;\
31354 \ * ) func_dirname_result="${3}" ;;\
31356 \ func_basename_result="${1##*/}"\
31357 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
31358 && mv -f "$cfgfile.tmp" "$cfgfile" \
31359 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31360 test 0 -eq $? || _lt_function_replace_fail=:
31363 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
31366 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
31367 \ # positional parameters, so assign one to ordinary parameter first.\
31368 \ func_stripname_result=${3}\
31369 \ func_stripname_result=${func_stripname_result#"${1}"}\
31370 \ func_stripname_result=${func_stripname_result%"${2}"}\
31371 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
31372 && mv -f "$cfgfile.tmp" "$cfgfile" \
31373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31374 test 0 -eq $? || _lt_function_replace_fail=:
31377 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
31378 func_split_long_opt ()\
31380 \ func_split_long_opt_name=${1%%=*}\
31381 \ func_split_long_opt_arg=${1#*=}\
31382 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
31383 && mv -f "$cfgfile.tmp" "$cfgfile" \
31384 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31385 test 0 -eq $? || _lt_function_replace_fail=:
31388 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
31389 func_split_short_opt ()\
31391 \ func_split_short_opt_arg=${1#??}\
31392 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
31393 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
31394 && mv -f "$cfgfile.tmp" "$cfgfile" \
31395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31396 test 0 -eq $? || _lt_function_replace_fail=:
31399 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
31403 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
31404 \ *) func_lo2o_result=${1} ;;\
31406 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
31407 && mv -f "$cfgfile.tmp" "$cfgfile" \
31408 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31409 test 0 -eq $? || _lt_function_replace_fail=:
31412 sed -e '/^func_xform ()$/,/^} # func_xform /c\
31415 func_xform_result=${1%.*}.lo\
31416 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
31417 && mv -f "$cfgfile.tmp" "$cfgfile" \
31418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31419 test 0 -eq $? || _lt_function_replace_fail=:
31422 sed -e '/^func_arith ()$/,/^} # func_arith /c\
31425 func_arith_result=$(( $* ))\
31426 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
31427 && mv -f "$cfgfile.tmp" "$cfgfile" \
31428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31429 test 0 -eq $? || _lt_function_replace_fail=:
31432 sed -e '/^func_len ()$/,/^} # func_len /c\
31435 func_len_result=${#1}\
31436 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
31437 && mv -f "$cfgfile.tmp" "$cfgfile" \
31438 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31439 test 0 -eq $? || _lt_function_replace_fail=:
31443 if test x"$lt_shell_append" = xyes; then
31444 sed -e '/^func_append ()$/,/^} # func_append /c\
31447 eval "${1}+=\\${2}"\
31448 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
31449 && mv -f "$cfgfile.tmp" "$cfgfile" \
31450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31451 test 0 -eq $? || _lt_function_replace_fail=:
31454 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
31455 func_append_quoted ()\
31457 \ func_quote_for_eval "${2}"\
31458 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
31459 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
31460 && mv -f "$cfgfile.tmp" "$cfgfile" \
31461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31462 test 0 -eq $? || _lt_function_replace_fail=:
31465 # Save a `func_append' function call where possible by direct use of '+='
31466 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
31467 && mv -f "$cfgfile.tmp" "$cfgfile" \
31468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31469 test 0 -eq $? || _lt_function_replace_fail=:
31471 # Save a `func_append' function call even when '+=' is not available
31472 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
31473 && mv -f "$cfgfile.tmp" "$cfgfile" \
31474 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31475 test 0 -eq $? || _lt_function_replace_fail=:
31478 if test x"$_lt_function_replace_fail" = x":"; then
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
31480 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
31484 mv -f "$cfgfile" "$ofile" ||
31485 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31489 cat <<_LT_EOF >> "$ofile"
31491 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31493 # The linker used to build libraries.
31496 # How to create reloadable object files.
31497 reload_flag=$lt_reload_flag_CXX
31498 reload_cmds=$lt_reload_cmds_CXX
31500 # Commands used to build an old-style archive.
31501 old_archive_cmds=$lt_old_archive_cmds_CXX
31503 # A language specific compiler.
31504 CC=$lt_compiler_CXX
31506 # Is the compiler the GNU compiler?
31509 # Compiler flag to turn off builtin functions.
31510 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31512 # Additional compiler flags for building library objects.
31513 pic_flag=$lt_lt_prog_compiler_pic_CXX
31515 # How to pass a linker flag through the compiler.
31516 wl=$lt_lt_prog_compiler_wl_CXX
31518 # Compiler flag to prevent dynamic linking.
31519 link_static_flag=$lt_lt_prog_compiler_static_CXX
31521 # Does compiler simultaneously support -c and -o options?
31522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31524 # Whether or not to add -lc for building shared libraries.
31525 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31527 # Whether or not to disallow shared libs when runtime libs are static.
31528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31530 # Compiler flag to allow reflexive dlopens.
31531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31533 # Compiler flag to generate shared objects directly from archives.
31534 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31536 # Whether the compiler copes with passing no objects directly.
31537 compiler_needs_object=$lt_compiler_needs_object_CXX
31539 # Create an old-style archive from a shared archive.
31540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31542 # Create a temporary old-style archive to link instead of a shared archive.
31543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31545 # Commands used to build a shared archive.
31546 archive_cmds=$lt_archive_cmds_CXX
31547 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31549 # Commands used to build a loadable module if different from building
31550 # a shared archive.
31551 module_cmds=$lt_module_cmds_CXX
31552 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31554 # Whether we are building with GNU ld or not.
31555 with_gnu_ld=$lt_with_gnu_ld_CXX
31557 # Flag that allows shared libraries with undefined symbols to be built.
31558 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31560 # Flag that enforces no undefined symbols.
31561 no_undefined_flag=$lt_no_undefined_flag_CXX
31563 # Flag to hardcode \$libdir into a binary during linking.
31564 # This must work even if \$libdir does not exist
31565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31567 # Whether we need a single "-rpath" flag with a separated argument.
31568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31570 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31571 # DIR into the resulting binary.
31572 hardcode_direct=$hardcode_direct_CXX
31574 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31575 # DIR into the resulting binary and the resulting library dependency is
31576 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31577 # library is relocated.
31578 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31580 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31581 # into the resulting binary.
31582 hardcode_minus_L=$hardcode_minus_L_CXX
31584 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31585 # into the resulting binary.
31586 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31588 # Set to "yes" if building a shared library automatically hardcodes DIR
31589 # into the library and all subsequent libraries and executables linked
31591 hardcode_automatic=$hardcode_automatic_CXX
31593 # Set to yes if linker adds runtime paths of dependent libraries
31594 # to runtime path list.
31595 inherit_rpath=$inherit_rpath_CXX
31597 # Whether libtool must link a program against all its dependency libraries.
31598 link_all_deplibs=$link_all_deplibs_CXX
31600 # Set to "yes" if exported symbols are required.
31601 always_export_symbols=$always_export_symbols_CXX
31603 # The commands to list exported symbols.
31604 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31606 # Symbols that should not be listed in the preloaded symbols.
31607 exclude_expsyms=$lt_exclude_expsyms_CXX
31609 # Symbols that must always be exported.
31610 include_expsyms=$lt_include_expsyms_CXX
31612 # Commands necessary for linking programs (against libraries) with templates.
31613 prelink_cmds=$lt_prelink_cmds_CXX
31615 # Commands necessary for finishing linking programs.
31616 postlink_cmds=$lt_postlink_cmds_CXX
31618 # Specify filename containing input files.
31619 file_list_spec=$lt_file_list_spec_CXX
31621 # How to hardcode a shared library path into an executable.
31622 hardcode_action=$hardcode_action_CXX
31624 # The directories searched by this compiler when creating a shared library.
31625 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31627 # Dependencies to place before and after the objects being linked to
31628 # create a shared library.
31629 predep_objects=$lt_predep_objects_CXX
31630 postdep_objects=$lt_postdep_objects_CXX
31631 predeps=$lt_predeps_CXX
31632 postdeps=$lt_postdeps_CXX
31634 # The library search path used internally by the compiler when linking
31635 # a shared library.
31636 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31638 # ### END LIBTOOL TAG CONFIG: CXX
31642 "glib/glibconfig.h":C)
31643 outfile=glib/glibconfig.h-tmp
31644 cat > $outfile <<\_______EOF
31647 * This is a generated file. Please modify 'configure.ac'
31650 #ifndef __GLIBCONFIG_H__
31651 #define __GLIBCONFIG_H__
31653 #include <glib/gmacros.h>
31657 if test x$glib_limits_h = xyes; then
31658 echo '#include <limits.h>' >> $outfile
31660 if test x$glib_float_h = xyes; then
31661 echo '#include <float.h>' >> $outfile
31663 if test x$glib_values_h = xyes; then
31664 echo '#include <values.h>' >> $outfile
31666 if test "$glib_header_alloca_h" = "yes"; then
31667 echo '#define GLIB_HAVE_ALLOCA_H' >> $outfile
31669 if test x$glib_sys_poll_h = xyes; then
31670 echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
31672 if test x$glib_included_printf != xyes; then
31674 /* Specifies that GLib's g_print*() functions wrap the
31675 * system printf functions. This is useful to know, for example,
31676 * when using glibc's register_printf_function().
31678 echo '#define GLIB_USING_SYSTEM_PRINTF' >> $outfile
31681 cat >> $outfile <<_______EOF
31685 #define G_MINFLOAT $glib_mf
31686 #define G_MAXFLOAT $glib_Mf
31687 #define G_MINDOUBLE $glib_md
31688 #define G_MAXDOUBLE $glib_Md
31689 #define G_MINSHORT $glib_ms
31690 #define G_MAXSHORT $glib_Ms
31691 #define G_MAXUSHORT $glib_Mus
31692 #define G_MININT $glib_mi
31693 #define G_MAXINT $glib_Mi
31694 #define G_MAXUINT $glib_Mui
31695 #define G_MINLONG $glib_ml
31696 #define G_MAXLONG $glib_Ml
31697 #define G_MAXULONG $glib_Mul
31702 ### this should always be true in a modern C/C++ compiler
31703 cat >>$outfile <<_______EOF
31704 typedef signed char gint8;
31705 typedef unsigned char guint8;
31709 if test -n "$gint16"; then
31710 cat >>$outfile <<_______EOF
31711 typedef signed $gint16 gint16;
31712 typedef unsigned $gint16 guint16;
31713 #define G_GINT16_MODIFIER $gint16_modifier
31714 #define G_GINT16_FORMAT $gint16_format
31715 #define G_GUINT16_FORMAT $guint16_format
31720 if test -n "$gint32"; then
31721 cat >>$outfile <<_______EOF
31722 typedef signed $gint32 gint32;
31723 typedef unsigned $gint32 guint32;
31724 #define G_GINT32_MODIFIER $gint32_modifier
31725 #define G_GINT32_FORMAT $gint32_format
31726 #define G_GUINT32_FORMAT $guint32_format
31730 cat >>$outfile <<_______EOF
31731 #define G_HAVE_GINT64 1 /* deprecated, always true */
31733 ${glib_extension}typedef signed $gint64 gint64;
31734 ${glib_extension}typedef unsigned $gint64 guint64;
31736 #define G_GINT64_CONSTANT(val) $gint64_constant
31737 #define G_GUINT64_CONSTANT(val) $guint64_constant
31740 if test x$gint64_format != x ; then
31741 cat >>$outfile <<_______EOF
31742 #define G_GINT64_MODIFIER $gint64_modifier
31743 #define G_GINT64_FORMAT $gint64_format
31744 #define G_GUINT64_FORMAT $guint64_format
31747 cat >>$outfile <<_______EOF
31748 #undef G_GINT64_MODIFIER
31749 #undef G_GINT64_FORMAT
31750 #undef G_GUINT64_FORMAT
31754 cat >>$outfile <<_______EOF
31756 #define GLIB_SIZEOF_VOID_P $glib_void_p
31757 #define GLIB_SIZEOF_LONG $glib_long
31758 #define GLIB_SIZEOF_SIZE_T $glib_size_t
31762 cat >>$outfile <<_______EOF
31763 typedef signed $glib_size_type_define gssize;
31764 typedef unsigned $glib_size_type_define gsize;
31765 #define G_GSIZE_MODIFIER $gsize_modifier
31766 #define G_GSSIZE_FORMAT $gssize_format
31767 #define G_GSIZE_FORMAT $gsize_format
31769 #define G_MAXSIZE G_MAXU$glib_msize_type
31770 #define G_MINSSIZE G_MIN$glib_msize_type
31771 #define G_MAXSSIZE G_MAX$glib_msize_type
31773 typedef gint64 goffset;
31774 #define G_MINOFFSET G_MININT64
31775 #define G_MAXOFFSET G_MAXINT64
31777 #define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
31778 #define G_GOFFSET_FORMAT G_GINT64_FORMAT
31779 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
31783 if test -z "$glib_unknown_void_p"; then
31784 cat >>$outfile <<_______EOF
31786 #define GPOINTER_TO_INT(p) ((gint) ${glib_gpi_cast} (p))
31787 #define GPOINTER_TO_UINT(p) ((guint) ${glib_gpui_cast} (p))
31789 #define GINT_TO_POINTER(i) ((gpointer) ${glib_gpi_cast} (i))
31790 #define GUINT_TO_POINTER(u) ((gpointer) ${glib_gpui_cast} (u))
31792 typedef signed $glib_intptr_type_define gintptr;
31793 typedef unsigned $glib_intptr_type_define guintptr;
31795 #define G_GINTPTR_MODIFIER $gintptr_modifier
31796 #define G_GINTPTR_FORMAT $gintptr_format
31797 #define G_GUINTPTR_FORMAT $guintptr_format
31800 echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile
31805 cat >>$outfile <<_______EOF
31810 $glib_static_compilation
31815 #define G_HAVE_INLINE 1
31816 #else /* !__cplusplus */
31818 #endif /* !__cplusplus */
31821 #define G_CAN_INLINE 1
31824 if test x$g_can_inline = xyes ; then
31825 cat >>$outfile <<_______EOF
31826 #else /* !__cplusplus */
31827 #define G_CAN_INLINE 1
31831 cat >>$outfile <<_______EOF
31836 if test x$g_have_iso_c_varargs = xyes ; then
31837 cat >>$outfile <<_______EOF
31838 #ifndef __cplusplus
31839 # define G_HAVE_ISO_VARARGS 1
31843 if test x$g_have_iso_cxx_varargs = xyes ; then
31844 cat >>$outfile <<_______EOF
31846 # define G_HAVE_ISO_VARARGS 1
31850 if test x$g_have_gnuc_varargs = xyes ; then
31851 cat >>$outfile <<_______EOF
31853 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
31854 * is passed ISO vararg support is turned off, and there is no work
31855 * around to turn it on, so we unconditionally turn it off.
31857 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
31858 # undef G_HAVE_ISO_VARARGS
31861 #define G_HAVE_GNUC_VARARGS 1
31865 case x$g_stack_grows in
31866 xyes) echo "#define G_HAVE_GROWING_STACK 1" >>$outfile ;;
31867 *) echo "#define G_HAVE_GROWING_STACK 0" >>$outfile ;;
31872 if test x$g_have_eilseq = xno; then
31873 cat >>$outfile <<_______EOF
31875 /* On some systems, like SunOS and NetBSD, EILSEQ is not defined.
31876 * The correspondence between this and the corresponding definition
31877 * in libiconv is essential.
31879 # define EILSEQ ENOENT
31885 if test x$g_have_gnuc_visibility = xyes; then
31886 cat >>$outfile <<_______EOF
31887 #define G_HAVE_GNUC_VISIBILITY 1
31890 cat >>$outfile <<_______EOF
31891 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
31892 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
31893 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
31894 #define G_GNUC_INTERNAL __hidden
31895 #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
31896 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
31898 #define G_GNUC_INTERNAL
31903 cat >>$outfile <<_______EOF
31904 #define G_THREADS_ENABLED
31905 #define G_THREADS_IMPL_$g_threads_impl_def
31908 if test x"$g_memory_barrier_needed" != xno; then
31910 echo "#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1" >>$outfile
31912 if test x"$g_atomic_lock_free" = xyes; then
31914 echo "#define G_ATOMIC_LOCK_FREE" >>$outfile
31917 g_bit_sizes="16 32 64"
31918 for bits in $g_bit_sizes; do
31919 cat >>$outfile <<_______EOF
31920 #define GINT${bits}_TO_${g_bs_native}(val) ((gint${bits}) (val))
31921 #define GUINT${bits}_TO_${g_bs_native}(val) ((guint${bits}) (val))
31922 #define GINT${bits}_TO_${g_bs_alien}(val) ((gint${bits}) GUINT${bits}_SWAP_LE_BE (val))
31923 #define GUINT${bits}_TO_${g_bs_alien}(val) (GUINT${bits}_SWAP_LE_BE (val))
31927 cat >>$outfile <<_______EOF
31928 #define GLONG_TO_LE(val) ((glong) GINT${glongbits}_TO_LE (val))
31929 #define GULONG_TO_LE(val) ((gulong) GUINT${glongbits}_TO_LE (val))
31930 #define GLONG_TO_BE(val) ((glong) GINT${glongbits}_TO_BE (val))
31931 #define GULONG_TO_BE(val) ((gulong) GUINT${glongbits}_TO_BE (val))
31932 #define GINT_TO_LE(val) ((gint) GINT${gintbits}_TO_LE (val))
31933 #define GUINT_TO_LE(val) ((guint) GUINT${gintbits}_TO_LE (val))
31934 #define GINT_TO_BE(val) ((gint) GINT${gintbits}_TO_BE (val))
31935 #define GUINT_TO_BE(val) ((guint) GUINT${gintbits}_TO_BE (val))
31936 #define GSIZE_TO_LE(val) ((gsize) GUINT${gsizebits}_TO_LE (val))
31937 #define GSSIZE_TO_LE(val) ((gssize) GINT${gsizebits}_TO_LE (val))
31938 #define GSIZE_TO_BE(val) ((gsize) GUINT${gsizebits}_TO_BE (val))
31939 #define GSSIZE_TO_BE(val) ((gssize) GINT${gsizebits}_TO_BE (val))
31940 #define G_BYTE_ORDER $g_byte_order
31942 #define GLIB_SYSDEF_POLLIN =$g_pollin
31943 #define GLIB_SYSDEF_POLLOUT =$g_pollout
31944 #define GLIB_SYSDEF_POLLPRI =$g_pollpri
31945 #define GLIB_SYSDEF_POLLHUP =$g_pollhup
31946 #define GLIB_SYSDEF_POLLERR =$g_pollerr
31947 #define GLIB_SYSDEF_POLLNVAL =$g_pollnval
31949 #define G_MODULE_SUFFIX "$g_module_suffix"
31951 typedef $g_pid_type GPid;
31953 #define GLIB_SYSDEF_AF_UNIX $g_af_unix
31954 #define GLIB_SYSDEF_AF_INET $g_af_inet
31955 #define GLIB_SYSDEF_AF_INET6 $g_af_inet6
31957 #define GLIB_SYSDEF_MSG_OOB $g_msg_oob
31958 #define GLIB_SYSDEF_MSG_PEEK $g_msg_peek
31959 #define GLIB_SYSDEF_MSG_DONTROUTE $g_msg_dontroute
31963 #endif /* __GLIBCONFIG_H__ */
31967 if cmp -s $outfile glib/glibconfig.h; then
31968 { $as_echo "$as_me:${as_lineno-$LINENO}: glib/glibconfig.h is unchanged" >&5
31969 $as_echo "$as_me: glib/glibconfig.h is unchanged" >&6;}
31972 mv $outfile glib/glibconfig.h
31975 "chmod-scripts":C) chmod 0755 glib-zip
31976 chmod 0755 glib-gettextize
31977 chmod 0755 gobject/glib-mkenums ;;
31985 ac_clean_files=$ac_clean_files_save
31987 test $ac_write_fail = 0 ||
31988 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31991 # configure is writing to config.log, and then calls config.status.
31992 # config.status does its own redirection, appending to config.log.
31993 # Unfortunately, on DOS this fails, as config.log is still kept open
31994 # by configure, so config.status won't be able to write to it; its
31995 # output is simply discarded. So we exec the FD to /dev/null,
31996 # effectively closing config.log, so it can be properly (re)opened and
31997 # appended to by config.status. When coming back to configure, we
31998 # need to make the FD available again.
31999 if test "$no_create" != yes; then
32001 ac_config_status_args=
32002 test "$silent" = yes &&
32003 ac_config_status_args="$ac_config_status_args --quiet"
32005 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32007 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32008 # would make configure fail if this is the last instruction.
32009 $ac_cs_success || as_fn_exit 1
32011 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32013 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}