2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
595 ac_unique_file="entities.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
651 CYGWIN_EXTRA_PYTHON_LIBADD
653 WIN32_EXTRA_PYTHON_LIBADD
699 WITH_SAX1_SOURCES_FALSE
700 WITH_SAX1_SOURCES_TRUE
722 WITH_TRIO_SOURCES_FALSE
723 WITH_TRIO_SOURCES_TRUE
744 USE_VERSION_SCRIPT_FALSE
745 USE_VERSION_SCRIPT_TRUE
807 INSTALL_STRIP_PROGRAM
823 LIBXML_VERSION_NUMBER
864 program_transform_name
877 enable_option_checking
879 enable_dependency_tracking
908 with_python_install_dir
931 ac_precious_vars='build_alias
947 # Initialize some variables set by options.
949 ac_init_version=false
950 ac_unrecognized_opts=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name=s,x,x,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1007 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1064 eval enable_$ac_useropt=no ;;
1066 -docdir | --docdir | --docdi | --doc | --do)
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 sbindir=$ac_optarg ;;
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 sharedstatedir=$ac_optarg ;;
1252 -site | --site | --sit)
1254 -site=* | --site=* | --sit=*)
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1294 eval with_$ac_useropt=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error $? "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1310 eval with_$ac_useropt=no ;;
1313 # Obsolete; use --with-x.
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1330 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information"
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' | [0-9]* | *[!_$as_cr_alnum]* )
1339 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error $? "missing argument to $ac_option"
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1363 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1381 # Be sure to have absolute directory names.
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1394 target=$target_alias
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 elif test "x$build_alias" != "x$host_alias"; then
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408 test "$silent" = yes && exec 6>/dev/null
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414 as_fn_error $? "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 as_fn_error $? "pwd does not report name of working directory"
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1451 ac_srcdir_defaulted=no
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 # Report the --help message.
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1485 \`configure' configures this package to adapt to many kinds of systems.
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1492 Defaults for the options are specified in brackets.
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking ...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1516 For better control, use the options below.
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 if test -n "$ac_init_help"; then
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-silent-rules less verbose build output (undo: "make V=1")
1562 --disable-silent-rules verbose build output (undo: "make V=0")
1563 --enable-dependency-tracking
1564 do not reject slow dependency extractors
1565 --disable-dependency-tracking
1566 speeds up one-time build
1567 --enable-shared[=PKGS] build shared libraries [default=yes]
1568 --enable-static[=PKGS] build static libraries [default=yes]
1569 --enable-fast-install[=PKGS]
1570 optimize for fast installation [default=yes]
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572 --enable-rebuild-docs[=yes/no] rebuild some generated docs [default=no]
1573 --enable-ipv6[=yes/no] enables compilation of IPv6 code [default=yes]
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1580 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1581 --with-sysroot=DIR Search for dependent libraries within DIR
1582 (or the compiler's sysroot if not specified).
1583 --with-c14n add the Canonicalization support (on)
1584 --with-catalog add the Catalog support (on)
1585 --with-debug add the debugging module (on)
1586 --with-docbook add Docbook SGML support (on)
1587 --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)
1588 --with-ftp add the FTP support (on)
1589 --with-history add history support to xmllint shell(off)
1590 --with-html add the HTML support (on)
1591 --with-html-dir=path path to base html directory, default
1593 --with-html-subdir=path directory used under html-dir, default
1594 $PACKAGE-$VERSION/html
1595 --with-http add the HTTP support (on)
1596 --with-iconv[=DIR] add ICONV support (on)
1597 --with-icu add ICU support (off)
1598 --with-iso8859x add ISO8859X support if no iconv (on)
1599 --with-legacy add deprecated APIs for compatibility (on)
1600 --with-mem-debug add the memory debugging module (off)
1601 --with-minimum build a minimally sized library (off)
1602 --with-output add the serialization support (on)
1603 --with-pattern add the xmlPattern selection interface (on)
1604 --with-push add the PUSH parser interfaces (on)
1605 --with-python[=DIR] build Python bindings if found
1606 --with-python-install-dir=DIR
1607 install Python bindings in DIR
1608 --with-reader add the xmlReader parsing interface (on)
1609 --with-readline=DIR use readline in DIR
1610 --with-regexps add Regular Expressions support (on)
1611 --with-run-debug add the runtime debugging module (off)
1612 --with-sax1 add the older SAX1 interface (on)
1613 --with-schemas add Relax-NG and Schemas support (on)
1614 --with-schematron add Schematron support (on)
1615 --with-threads add multithread support(on)
1616 --with-thread-alloc add per-thread memory(off)
1617 --with-tree add the DOM like tree manipulation APIs (on)
1618 --with-valid add the DTD validation support (on)
1619 --with-writer add the xmlWriter saving interface (on)
1620 --with-xinclude add the XInclude support (on)
1621 --with-xpath add the XPATH support (on)
1622 --with-xptr add the XPointer support (on)
1623 --with-modules add the dynamic modules support (on)
1624 --with-zlib[=DIR] use libz in DIR
1625 --with-lzma[=DIR] use liblzma in DIR
1626 --with-coverage build for code coverage with GCC (off)
1628 Some influential environment variables:
1629 CC C compiler command
1630 CFLAGS C compiler flags
1631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1632 nonstandard directory <lib dir>
1633 LIBS libraries to pass to the linker, e.g. -l<library>
1634 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1635 you have headers in a nonstandard directory <include dir>
1637 PKG_CONFIG path to pkg-config utility
1639 directories to add to pkg-config's search path
1641 path overriding pkg-config's built-in search path
1642 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1643 LZMA_LIBS linker flags for LZMA, overriding pkg-config
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1648 Report bugs to the package provider.
1653 if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1678 .) # We are building in place.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1712 generated by GNU Autoconf 2.69
1714 Copyright (C) 2012 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1721 ## ------------------------ ##
1722 ## Autoconf initialization. ##
1723 ## ------------------------ ##
1725 # ac_fn_c_try_compile LINENO
1726 # --------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_compile ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_c_try_compile
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } > conftest.i && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1800 # ac_fn_c_try_link LINENO
1801 # -----------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded.
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext conftest$ac_exeext
1807 if { { ac_try="$ac_link"
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>conftest.err
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest$ac_exeext && {
1826 test "$cross_compiling" = yes ||
1827 test -x conftest$ac_exeext
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838 # interfere with the next link command; also delete a directory that is
1839 # left behind by Apple's compiler. We do this before executing the actions.
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_c_try_link
1846 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists and can be compiled using the include files in
1849 # INCLUDES, setting the cache variable VAR accordingly.
1850 ac_fn_c_check_header_compile ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1863 if ac_fn_c_try_compile "$LINENO"; then :
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 } # ac_fn_c_check_header_compile
1877 # ac_fn_c_try_run LINENO
1878 # ----------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1880 # that executables *can* be run.
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_link"
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>&5
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1895 { { case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_try") 2>&5
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; }; }; then :
1907 $as_echo "$as_me: program exited with status $ac_status" >&5
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=$ac_status
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1919 # ac_fn_c_check_func LINENO FUNC VAR
1920 # ----------------------------------
1921 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1922 ac_fn_c_check_func ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1934 #define $2 innocuous_$2
1936 /* System header to define __stub macros and hopefully few prototypes,
1937 which can conflict with char $2 (); below.
1938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939 <limits.h> exists even on freestanding compilers. */
1942 # include <limits.h>
1944 # include <assert.h>
1949 /* Override any GCC internal prototype to avoid an error.
1950 Use char because int might match the return type of a GCC
1951 builtin and then its argument prototype would still apply. */
1956 /* The GNU C library defines this for functions which it implements
1957 to always fail with ENOSYS. Some functions are actually named
1958 something starting with __ and the normal name is an alias. */
1959 #if defined __stub_$2 || defined __stub___$2
1971 if ac_fn_c_try_link "$LINENO"; then :
1976 rm -f core conftest.err conftest.$ac_objext \
1977 conftest$ac_exeext conftest.$ac_ext
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 } # ac_fn_c_check_func
1986 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1987 # -------------------------------------------------------
1988 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1989 # the include files in INCLUDES and setting the cache variable VAR
1991 ac_fn_c_check_header_mongrel ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if eval \${$3+:} false; then :
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2004 # Is the header compilable?
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2006 $as_echo_n "checking $2 usability... " >&6; }
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_header_compiler=yes
2015 ac_header_compiler=no
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2019 $as_echo "$ac_header_compiler" >&6; }
2021 # Is the header present?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2023 $as_echo_n "checking $2 presence... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2028 if ac_fn_c_try_cpp "$LINENO"; then :
2029 ac_header_preproc=yes
2031 ac_header_preproc=no
2033 rm -f conftest.err conftest.i conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2035 $as_echo "$ac_header_preproc" >&6; }
2037 # So? What about this header?
2038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2041 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2047 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2049 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2051 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2053 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2055 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2063 eval "$3=\$ac_header_compiler"
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_header_mongrel
2073 # ac_fn_c_find_uintX_t LINENO BITS VAR
2074 # ------------------------------------
2075 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2077 ac_fn_c_find_uintX_t ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2081 $as_echo_n "checking for uint$2_t... " >&6; }
2082 if eval \${$3+:} false; then :
2083 $as_echo_n "(cached) " >&6
2086 # Order is important - never check a type that is potentially smaller
2087 # than half of the expected target width.
2088 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2089 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $ac_includes_default
2096 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2098 return test_array [0];
2104 if ac_fn_c_try_compile "$LINENO"; then :
2109 eval "$3=\$ac_type" ;;
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 if eval test \"x\$"$3"\" = x"no"; then :
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 } # ac_fn_c_find_uintX_t
2126 cat >config.log <<_ACEOF
2127 This file contains any messages produced by compilers while
2128 running configure, to aid debugging if configure makes a mistake.
2130 It was created by $as_me, which was
2131 generated by GNU Autoconf 2.69. Invocation command line was
2143 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2144 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2145 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2146 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2147 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2149 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2150 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2152 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2153 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2154 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2155 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2156 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2157 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2158 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 $as_echo "PATH: $as_dir"
2183 # Keep a trace of the command line.
2184 # Strip out --no-create and --no-recursion so they do not pile up.
2185 # Strip out --silent because we don't want to record it for future runs.
2186 # Also quote any args containing shell meta-characters.
2187 # Make two passes to allow for proper duplicate-argument suppression.
2191 ac_must_keep_next=false
2197 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2199 | -silent | --silent | --silen | --sile | --sil)
2202 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2207 as_fn_append ac_configure_args1 " '$ac_arg'"
2208 if test $ac_must_keep_next = true; then
2209 ac_must_keep_next=false # Got value, back to normal.
2212 *=* | --config-cache | -C | -disable-* | --disable-* \
2213 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2214 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2215 | -with-* | --with-* | -without-* | --without-* | --x)
2216 case "$ac_configure_args0 " in
2217 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2220 -* ) ac_must_keep_next=true ;;
2223 as_fn_append ac_configure_args " '$ac_arg'"
2228 { ac_configure_args0=; unset ac_configure_args0;}
2229 { ac_configure_args1=; unset ac_configure_args1;}
2231 # When interrupted or exit'd, cleanup temporary files, and complete
2232 # config.log. We remove comments because anyway the quotes in there
2233 # would cause problems or look ugly.
2234 # WARNING: Use '\'' to represent an apostrophe within the trap.
2235 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2236 trap 'exit_status=$?
2237 # Save into config.log some information that might help in debugging.
2241 $as_echo "## ---------------- ##
2242 ## Cache variables. ##
2243 ## ---------------- ##"
2245 # The following way of writing the cache mishandles newlines in values,
2247 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2248 eval ac_val=\$$ac_var
2252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2253 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2256 _ | IFS | as_nl) ;; #(
2257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2258 *) { eval $ac_var=; unset $ac_var;} ;;
2263 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2264 *${as_nl}ac_space=\ *)
2266 "s/'\''/'\''\\\\'\'''\''/g;
2267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2270 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2277 $as_echo "## ----------------- ##
2278 ## Output variables. ##
2279 ## ----------------- ##"
2281 for ac_var in $ac_subst_vars
2283 eval ac_val=\$$ac_var
2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287 $as_echo "$ac_var='\''$ac_val'\''"
2291 if test -n "$ac_subst_files"; then
2292 $as_echo "## ------------------- ##
2293 ## File substitutions. ##
2294 ## ------------------- ##"
2296 for ac_var in $ac_subst_files
2298 eval ac_val=\$$ac_var
2300 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2302 $as_echo "$ac_var='\''$ac_val'\''"
2307 if test -s confdefs.h; then
2308 $as_echo "## ----------- ##
2315 test "$ac_signal" != 0 &&
2316 $as_echo "$as_me: caught signal $ac_signal"
2317 $as_echo "$as_me: exit $exit_status"
2319 rm -f core *.core core.conftest.* &&
2320 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2323 for ac_signal in 1 2 13 15; do
2324 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2328 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2329 rm -f -r conftest* confdefs.h
2331 $as_echo "/* confdefs.h */" > confdefs.h
2333 # Predefined preprocessor variables.
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_NAME "$PACKAGE_NAME"
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_STRING "$PACKAGE_STRING"
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_URL "$PACKAGE_URL"
2360 # Let the site file select an alternate cache file if it wants to.
2361 # Prefer an explicitly selected file to automatically selected ones.
2364 if test -n "$CONFIG_SITE"; then
2365 # We do not want a PATH search for config.site.
2366 case $CONFIG_SITE in #((
2367 -*) ac_site_file1=./$CONFIG_SITE;;
2368 */*) ac_site_file1=$CONFIG_SITE;;
2369 *) ac_site_file1=./$CONFIG_SITE;;
2371 elif test "x$prefix" != xNONE; then
2372 ac_site_file1=$prefix/share/config.site
2373 ac_site_file2=$prefix/etc/config.site
2375 ac_site_file1=$ac_default_prefix/share/config.site
2376 ac_site_file2=$ac_default_prefix/etc/config.site
2378 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2380 test "x$ac_site_file" = xNONE && continue
2381 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2383 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2384 sed 's/^/| /' "$ac_site_file" >&5
2386 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388 as_fn_error $? "failed to load site script $ac_site_file
2389 See \`config.log' for more details" "$LINENO" 5; }
2393 if test -r "$cache_file"; then
2394 # Some versions of bash will fail to source /dev/null (special files
2395 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2396 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2398 $as_echo "$as_me: loading cache $cache_file" >&6;}
2400 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2401 *) . "./$cache_file";;
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2406 $as_echo "$as_me: creating cache $cache_file" >&6;}
2410 # Check that the precious variables saved in the cache have kept the same
2412 ac_cache_corrupted=false
2413 for ac_var in $ac_precious_vars; do
2414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2415 eval ac_new_set=\$ac_env_${ac_var}_set
2416 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2417 eval ac_new_val=\$ac_env_${ac_var}_value
2418 case $ac_old_set,$ac_new_set in
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2421 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2422 ac_cache_corrupted=: ;;
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2425 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2426 ac_cache_corrupted=: ;;
2429 if test "x$ac_old_val" != "x$ac_new_val"; then
2430 # differences in whitespace do not lead to failure.
2431 ac_old_val_w=`echo x $ac_old_val`
2432 ac_new_val_w=`echo x $ac_new_val`
2433 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2435 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2436 ac_cache_corrupted=:
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2439 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2440 eval $ac_var=\$ac_old_val
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2443 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2445 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2448 # Pass precious variables to config.status.
2449 if test "$ac_new_set" = set; then
2451 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2452 *) ac_arg=$ac_var=$ac_new_val ;;
2454 case " $ac_configure_args " in
2455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2456 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2460 if $ac_cache_corrupted; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2464 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2465 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2467 ## -------------------- ##
2468 ## Main body of script. ##
2469 ## -------------------- ##
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 ac_config_headers="$ac_config_headers config.h"
2483 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2484 if test -f "$ac_dir/install-sh"; then
2486 ac_install_sh="$ac_aux_dir/install-sh -c"
2488 elif test -f "$ac_dir/install.sh"; then
2490 ac_install_sh="$ac_aux_dir/install.sh -c"
2492 elif test -f "$ac_dir/shtool"; then
2494 ac_install_sh="$ac_aux_dir/shtool install -c"
2498 if test -z "$ac_aux_dir"; then
2499 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2502 # These three variables are undocumented and unsupported,
2503 # and are intended to be withdrawn in a future Autoconf release.
2504 # They can cause serious problems if a builder's source tree is in a directory
2505 # whose full name contains unusual characters.
2506 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2507 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2508 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2511 # Make sure we can run config.sub.
2512 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2513 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2516 $as_echo_n "checking build system type... " >&6; }
2517 if ${ac_cv_build+:} false; then :
2518 $as_echo_n "(cached) " >&6
2520 ac_build_alias=$build_alias
2521 test "x$ac_build_alias" = x &&
2522 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2523 test "x$ac_build_alias" = x &&
2524 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2525 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2526 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2530 $as_echo "$ac_cv_build" >&6; }
2531 case $ac_cv_build in
2533 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2536 ac_save_IFS=$IFS; IFS='-'
2542 # Remember, the first character of IFS is used to create $*,
2543 # except with old shells:
2546 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2550 $as_echo_n "checking host system type... " >&6; }
2551 if ${ac_cv_host+:} false; then :
2552 $as_echo_n "(cached) " >&6
2554 if test "x$host_alias" = x; then
2555 ac_cv_host=$ac_cv_build
2557 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2563 $as_echo "$ac_cv_host" >&6; }
2566 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2569 ac_save_IFS=$IFS; IFS='-'
2575 # Remember, the first character of IFS is used to create $*,
2576 # except with old shells:
2579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2583 LIBXML_MAJOR_VERSION=2
2584 LIBXML_MINOR_VERSION=9
2585 LIBXML_MICRO_VERSION=2
2586 LIBXML_MICRO_VERSION_SUFFIX=
2587 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
2588 LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
2590 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2592 if test -f CVS/Entries ; then
2593 extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
2595 if test "$extra" != ""
2597 LIBXML_VERSION_EXTRA="-CVS$extra"
2599 else if test -d .svn ; then
2600 extra=`svn info | grep Revision | sed 's+Revision: ++'`
2602 if test "$extra" != ""
2604 LIBXML_VERSION_EXTRA="-SVN$extra"
2606 else if test -d .git ; then
2607 extra=`git describe 2>/dev/null | sed 's+LIBXML[0-9.]*-++'`
2609 if test "$extra" != ""
2611 LIBXML_VERSION_EXTRA="-GIT$extra"
2624 VERSION=${LIBXML_VERSION}
2626 am__api_version='1.13'
2628 # Find a good install program. We prefer a C program (faster),
2629 # so one script is as good as another. But avoid the broken or
2630 # incompatible versions:
2631 # SysV /etc/install, /usr/sbin/install
2632 # SunOS /usr/etc/install
2633 # IRIX /sbin/install
2635 # AmigaOS /C/install, which installs bootblocks on floppy discs
2636 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2637 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2638 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2639 # OS/2's system install, which has a completely different semantic
2640 # ./install, which can be erroneously created by make from ./install.sh.
2641 # Reject install programs that cannot install multiple files.
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2643 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2644 if test -z "$INSTALL"; then
2645 if ${ac_cv_path_install+:} false; then :
2646 $as_echo_n "(cached) " >&6
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 # Account for people who put trailing slashes in PATH elements.
2654 case $as_dir/ in #((
2655 ./ | .// | /[cC]/* | \
2656 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2657 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2660 # OSF1 and SCO ODT 3.0 have their own names for install.
2661 # Don't use installbsd from OSF since it installs stuff as root
2663 for ac_prog in ginstall scoinst install; do
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2666 if test $ac_prog = install &&
2667 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2668 # AIX install. It has an incompatible calling convention.
2670 elif test $ac_prog = install &&
2671 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2672 # program-specific install script used by HP pwplus--don't use.
2675 rm -rf conftest.one conftest.two conftest.dir
2676 echo one > conftest.one
2677 echo two > conftest.two
2679 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2680 test -s conftest.one && test -s conftest.two &&
2681 test -s conftest.dir/conftest.one &&
2682 test -s conftest.dir/conftest.two
2684 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2697 rm -rf conftest.one conftest.two conftest.dir
2700 if test "${ac_cv_path_install+set}" = set; then
2701 INSTALL=$ac_cv_path_install
2703 # As a last resort, use the slow shell script. Don't cache a
2704 # value for INSTALL within a source directory, because that will
2705 # break other packages using the cache if that directory is
2706 # removed, or if the value is a relative name.
2707 INSTALL=$ac_install_sh
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2711 $as_echo "$INSTALL" >&6; }
2713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2714 # It thinks the first close brace ends the variable substitution.
2715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2719 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2722 $as_echo_n "checking whether build environment is sane... " >&6; }
2723 # Reject unsafe characters in $srcdir or the absolute working directory
2724 # name. Accept space and tab only in the latter.
2728 *[\\\"\#\$\&\'\`$am_lf]*)
2729 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2732 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2733 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2736 # Do 'set' in a subshell so we don't clobber the current shell's
2737 # arguments. Must try -L first in case configure is actually a
2738 # symlink; some systems play weird games with the mod time of symlinks
2739 # (eg FreeBSD returns the mod time of the symlink's containing
2743 for am_try in 1 2; do
2744 echo "timestamp, slept: $am_has_slept" > conftest.file
2745 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2746 if test "$*" = "X"; then
2748 set X `ls -t "$srcdir/configure" conftest.file`
2750 if test "$*" != "X $srcdir/configure conftest.file" \
2751 && test "$*" != "X conftest.file $srcdir/configure"; then
2753 # If neither matched, then we have a broken ls. This can happen
2754 # if, for instance, CONFIG_SHELL is bash and it inherits a
2755 # broken ls alias from the environment. This has actually
2756 # happened. Such a system could not be considered "sane".
2757 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2758 alias in your environment" "$LINENO" 5
2760 if test "$2" = conftest.file || test $am_try -eq 2; then
2767 test "$2" = conftest.file
2773 as_fn_error $? "newly created file is older than distributed files!
2774 Check your system clock" "$LINENO" 5
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2777 $as_echo "yes" >&6; }
2778 # If we didn't sleep, we still need to ensure time stamps of config.status and
2779 # generated files are strictly newer.
2781 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2788 test "$program_prefix" != NONE &&
2789 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2790 # Use a double $ so make ignores it.
2791 test "$program_suffix" != NONE &&
2792 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2793 # Double any \ or $.
2794 # By default was `s,x,x', remove it if useless.
2795 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2796 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2798 # expand $ac_aux_dir to an absolute path
2799 am_aux_dir=`cd $ac_aux_dir && pwd`
2801 if test x"${MISSING+set}" != xset; then
2804 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2806 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2809 # Use eval to expand $SHELL
2810 if eval "$MISSING --is-lightweight"; then
2811 am_missing_run="$MISSING "
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2815 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2818 if test x"${install_sh}" != xset; then
2821 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2823 install_sh="\${SHELL} $am_aux_dir/install-sh"
2827 # Installed binaries are usually stripped using 'strip' when the user
2828 # run "make install-strip". However 'strip' might not be the right
2829 # tool to use in cross-compilation environments, therefore Automake
2830 # will honor the 'STRIP' environment variable to overrule this program.
2831 if test "$cross_compiling" != no; then
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}strip; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_STRIP+:} false; then :
2838 $as_echo_n "(cached) " >&6
2840 if test -n "$STRIP"; then
2841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 STRIP=$ac_cv_prog_STRIP
2861 if test -n "$STRIP"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2863 $as_echo "$STRIP" >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2871 if test -z "$ac_cv_prog_STRIP"; then
2873 # Extract the first word of "strip", so it can be a program name with args.
2874 set dummy strip; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2878 $as_echo_n "(cached) " >&6
2880 if test -n "$ac_ct_STRIP"; then
2881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_ac_ct_STRIP="strip"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2901 if test -n "$ac_ct_STRIP"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2903 $as_echo "$ac_ct_STRIP" >&6; }
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2909 if test "x$ac_ct_STRIP" = x; then
2912 case $cross_compiling:$ac_tool_warned in
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916 ac_tool_warned=yes ;;
2921 STRIP="$ac_cv_prog_STRIP"
2925 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2928 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2929 if test -z "$MKDIR_P"; then
2930 if ${ac_cv_path_mkdir+:} false; then :
2931 $as_echo_n "(cached) " >&6
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2937 test -z "$as_dir" && as_dir=.
2938 for ac_prog in mkdir gmkdir; do
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2941 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2942 'mkdir (GNU coreutils) '* | \
2943 'mkdir (coreutils) '* | \
2944 'mkdir (fileutils) '4.1*)
2945 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2955 test -d ./--version && rmdir ./--version
2956 if test "${ac_cv_path_mkdir+set}" = set; then
2957 MKDIR_P="$ac_cv_path_mkdir -p"
2959 # As a last resort, use the slow shell script. Don't cache a
2960 # value for MKDIR_P within a source directory, because that will
2961 # break other packages using the cache if that directory is
2962 # removed, or if the value is a relative name.
2963 MKDIR_P="$ac_install_sh -d"
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2967 $as_echo "$MKDIR_P" >&6; }
2969 for ac_prog in gawk mawk nawk awk
2971 # Extract the first word of "$ac_prog", so it can be a program name with args.
2972 set dummy $ac_prog; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_AWK+:} false; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$AWK"; then
2979 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_AWK="$ac_prog"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 if test -n "$AWK"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3001 $as_echo "$AWK" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3008 test -n "$AWK" && break
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3012 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3014 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3015 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3016 $as_echo_n "(cached) " >&6
3018 cat >conftest.make <<\_ACEOF
3021 @echo '@@@%%%=$(MAKE)=@@@%%%'
3023 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3026 eval ac_cv_prog_make_${ac_make}_set=yes;;
3028 eval ac_cv_prog_make_${ac_make}_set=no;;
3032 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 SET_MAKE="MAKE=${MAKE-make}"
3042 rm -rf .tst 2>/dev/null
3043 mkdir .tst 2>/dev/null
3044 if test -d .tst; then
3049 rmdir .tst 2>/dev/null
3051 # Check whether --enable-silent-rules was given.
3052 if test "${enable_silent_rules+set}" = set; then :
3053 enableval=$enable_silent_rules;
3056 case $enable_silent_rules in # (((
3057 yes) AM_DEFAULT_VERBOSITY=0;;
3058 no) AM_DEFAULT_VERBOSITY=1;;
3059 *) AM_DEFAULT_VERBOSITY=1;;
3061 am_make=${MAKE-make}
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3063 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3064 if ${am_cv_make_support_nested_variables+:} false; then :
3065 $as_echo_n "(cached) " >&6
3067 if $as_echo 'TRUE=$(BAR$(V))
3073 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3074 am_cv_make_support_nested_variables=yes
3076 am_cv_make_support_nested_variables=no
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3080 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3081 if test $am_cv_make_support_nested_variables = yes; then
3083 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3085 AM_V=$AM_DEFAULT_VERBOSITY
3086 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3090 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3091 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3092 # is not polluted with repeated "-I."
3093 am__isrc=' -I$(srcdir)'
3094 # test to see if srcdir already configured
3095 if test -f $srcdir/config.status; then
3096 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3100 # test whether we have cygpath
3101 if test -z "$CYGPATH_W"; then
3102 if (cygpath --version) >/dev/null 2>/dev/null; then
3103 CYGPATH_W='cygpath -w'
3110 # Define the identity of the package.
3116 cat >>confdefs.h <<_ACEOF
3117 #define PACKAGE "$PACKAGE"
3121 cat >>confdefs.h <<_ACEOF
3122 #define VERSION "$VERSION"
3125 # Some tools Automake needs.
3127 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3130 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3133 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3136 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3139 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3141 # For better backward compatibility. To be removed once Automake 1.9.x
3142 # dies out for good. For more background, see:
3143 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3144 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3145 mkdir_p='$(MKDIR_P)'
3147 # We need awk for the "check" target. The system "awk" is bad on
3149 # Always define AMTAR for backward compatibility. Yes, it's still used
3150 # in the wild :-( We should find a proper way to deprecate it ...
3154 # We'll loop over all known methods to create a tar archive until one works.
3155 _am_tools='gnutar pax cpio none'
3157 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3165 # Support silent build rules, requires at least automake-1.11. Disable
3166 # by either passing --disable-silent-rules to configure or passing V=1
3168 # Check whether --enable-silent-rules was given.
3169 if test "${enable_silent_rules+set}" = set; then :
3170 enableval=$enable_silent_rules;
3173 case $enable_silent_rules in # (((
3174 yes) AM_DEFAULT_VERBOSITY=0;;
3175 no) AM_DEFAULT_VERBOSITY=1;;
3176 *) AM_DEFAULT_VERBOSITY=0;;
3178 am_make=${MAKE-make}
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3180 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3181 if ${am_cv_make_support_nested_variables+:} false; then :
3182 $as_echo_n "(cached) " >&6
3184 if $as_echo 'TRUE=$(BAR$(V))
3190 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3191 am_cv_make_support_nested_variables=yes
3193 am_cv_make_support_nested_variables=no
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3197 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3198 if test $am_cv_make_support_nested_variables = yes; then
3200 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3202 AM_V=$AM_DEFAULT_VERBOSITY
3203 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3215 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3252 if test -z "$ac_cv_prog_CC"; then
3254 # Extract the first word of "gcc", so it can be a program name with args.
3255 set dummy gcc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3261 if test -n "$ac_ct_CC"; then
3262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_ac_ct_CC="gcc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3282 if test -n "$ac_ct_CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3284 $as_echo "$ac_ct_CC" >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3290 if test "x$ac_ct_CC" = x; then
3293 case $cross_compiling:$ac_tool_warned in
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3305 if test -z "$CC"; then
3306 if test -n "$ac_tool_prefix"; then
3307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3308 set dummy ${ac_tool_prefix}cc; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_CC+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 if test -n "$CC"; then
3315 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_CC="${ac_tool_prefix}cc"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 if test -n "$CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3337 $as_echo "$CC" >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3346 if test -z "$CC"; then
3347 # Extract the first word of "cc", so it can be a program name with args.
3348 set dummy cc; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_CC+:} false; then :
3352 $as_echo_n "(cached) " >&6
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3366 ac_prog_rejected=yes
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 if test $ac_prog_rejected = yes; then
3378 # We found a bogon in the path, so make sure we never use it.
3379 set dummy $ac_cv_prog_CC
3381 if test $# != 0; then
3382 # We chose a different compiler from the bogus one.
3383 # However, it has the same basename, so the bogon will be chosen
3384 # first if we set CC to just the basename; use the full file name.
3386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3402 if test -z "$CC"; then
3403 if test -n "$ac_tool_prefix"; then
3404 for ac_prog in cl.exe
3406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_CC+:} false; then :
3411 $as_echo_n "(cached) " >&6
3413 if test -n "$CC"; then
3414 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 if test -n "$CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3443 test -n "$CC" && break
3446 if test -z "$CC"; then
3448 for ac_prog in cl.exe
3450 # Extract the first word of "$ac_prog", so it can be a program name with args.
3451 set dummy $ac_prog; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3455 $as_echo_n "(cached) " >&6
3457 if test -n "$ac_ct_CC"; then
3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_ac_ct_CC="$ac_prog"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478 if test -n "$ac_ct_CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480 $as_echo "$ac_ct_CC" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3487 test -n "$ac_ct_CC" && break
3490 if test "x$ac_ct_CC" = x; then
3493 case $cross_compiling:$ac_tool_warned in
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497 ac_tool_warned=yes ;;
3506 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $? "no acceptable C compiler found in \$PATH
3509 See \`config.log' for more details" "$LINENO" 5; }
3511 # Provide some information about the compiler.
3512 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3515 for ac_option in --version -v -V -qversion; do
3516 { { ac_try="$ac_compiler $ac_option >&5"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3525 if test -s conftest.err; then
3527 ... rest of stderr output deleted ...
3528 10q' conftest.err >conftest.er1
3529 cat conftest.er1 >&5
3531 rm -f conftest.er1 conftest.err
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3547 ac_clean_files_save=$ac_clean_files
3548 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3549 # Try to create an executable without -o first, disregard a.out.
3550 # It will help us diagnose broken compilers, and finding out an intuition
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3553 $as_echo_n "checking whether the C compiler works... " >&6; }
3554 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3556 # The possible output files:
3557 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3560 for ac_file in $ac_files
3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3564 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3569 if { { ac_try="$ac_link_default"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_link_default") 2>&5
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; then :
3580 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3581 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3582 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3583 # so that the user can short-circuit this test for compilers unknown to
3585 for ac_file in $ac_files ''
3587 test -f "$ac_file" || continue
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3592 # We found the default executable, but exeext='' is most
3596 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600 # We set ac_cv_exeext here because the later test for it is not
3601 # safe: cross compilers may not add the suffix if given an `-o'
3602 # argument, so we may need to know it at that point already.
3603 # Even if this section looks crufty: it has the advantage of
3610 test "$ac_cv_exeext" = no && ac_cv_exeext=
3615 if test -z "$ac_file"; then :
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 as_fn_error 77 "C compiler cannot create executables
3624 See \`config.log' for more details" "$LINENO" 5; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627 $as_echo "yes" >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3630 $as_echo_n "checking for C compiler default output file name... " >&6; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3632 $as_echo "$ac_file" >&6; }
3633 ac_exeext=$ac_cv_exeext
3635 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3636 ac_clean_files=$ac_clean_files_save
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3638 $as_echo_n "checking for suffix of executables... " >&6; }
3639 if { { ac_try="$ac_link"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_link") 2>&5
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3651 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3652 # work properly (i.e., refer to `conftest.exe'), while it won't with
3654 for ac_file in conftest.exe conftest conftest.*; do
3655 test -f "$ac_file" || continue
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3667 See \`config.log' for more details" "$LINENO" 5; }
3669 rm -f conftest conftest$ac_cv_exeext
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3671 $as_echo "$ac_cv_exeext" >&6; }
3673 rm -f conftest.$ac_ext
3674 EXEEXT=$ac_cv_exeext
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3682 FILE *f = fopen ("conftest.out", "w");
3683 return ferror (f) || fclose (f) != 0;
3689 ac_clean_files="$ac_clean_files conftest.out"
3690 # Check that the compiler produces executables we can run. If not, either
3691 # the compiler is broken, or we cross compile.
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3693 $as_echo_n "checking whether we are cross compiling... " >&6; }
3694 if test "$cross_compiling" != yes; then
3695 { { ac_try="$ac_link"
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701 $as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_link") 2>&5
3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705 test $ac_status = 0; }
3706 if { ac_try='./conftest$ac_cv_exeext'
3707 { { case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712 $as_echo "$ac_try_echo"; } >&5
3713 (eval "$ac_try") 2>&5
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }; }; then
3719 if test "$cross_compiling" = maybe; then
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error $? "cannot run C compiled programs.
3725 If you meant to cross compile, use \`--host'.
3726 See \`config.log' for more details" "$LINENO" 5; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3731 $as_echo "$cross_compiling" >&6; }
3733 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3734 ac_clean_files=$ac_clean_files_save
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3736 $as_echo_n "checking for suffix of object files... " >&6; }
3737 if ${ac_cv_objext+:} false; then :
3738 $as_echo_n "(cached) " >&6
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3751 rm -f conftest.o conftest.obj
3752 if { { ac_try="$ac_compile"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_compile") 2>&5
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }; then :
3763 for ac_file in conftest.o conftest.obj conftest.*; do
3764 test -f "$ac_file" || continue;
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3772 $as_echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error $? "cannot compute suffix of object files: cannot compile
3778 See \`config.log' for more details" "$LINENO" 5; }
3780 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3783 $as_echo "$ac_cv_objext" >&6; }
3784 OBJEXT=$ac_cv_objext
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3787 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3788 if ${ac_cv_c_compiler_gnu+:} false; then :
3789 $as_echo_n "(cached) " >&6
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3805 if ac_fn_c_try_compile "$LINENO"; then :
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3815 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3816 if test $ac_compiler_gnu = yes; then
3821 ac_test_CFLAGS=${CFLAGS+set}
3822 ac_save_CFLAGS=$CFLAGS
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3824 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3825 if ${ac_cv_prog_cc_g+:} false; then :
3826 $as_echo_n "(cached) " >&6
3828 ac_save_c_werror_flag=$ac_c_werror_flag
3829 ac_c_werror_flag=yes
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3843 if ac_fn_c_try_compile "$LINENO"; then :
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3858 if ac_fn_c_try_compile "$LINENO"; then :
3861 ac_c_werror_flag=$ac_save_c_werror_flag
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3874 if ac_fn_c_try_compile "$LINENO"; then :
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_c_werror_flag=$ac_save_c_werror_flag
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3885 $as_echo "$ac_cv_prog_cc_g" >&6; }
3886 if test "$ac_test_CFLAGS" = set; then
3887 CFLAGS=$ac_save_CFLAGS
3888 elif test $ac_cv_prog_cc_g = yes; then
3889 if test "$GCC" = yes; then
3895 if test "$GCC" = yes; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3902 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3903 if ${ac_cv_prog_cc_c89+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 ac_cv_prog_cc_c89=no
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3914 struct buf { int x; };
3915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3916 static char *e (p, i)
3922 static char *f (char * (*g) (char **, int), char **p, ...)
3927 s = g (p, va_arg (v,int));
3932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3933 function prototypes and stuff, but not '\xHH' hex character constants.
3934 These don't provoke an error unfortunately, instead are silently treated
3935 as 'x'. The following induces an error, until -std is added to get
3936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3937 array size at least. It's necessary to write '\x00'==0 to get something
3938 that's true only with -std. */
3939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3942 inside strings and character constants. */
3944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3946 int test (int i, double x);
3947 struct s1 {int (*f) (int a);};
3948 struct s2 {int (*f) (double a);};
3949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3955 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3963 CC="$ac_save_CC $ac_arg"
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965 ac_cv_prog_cc_c89=$ac_arg
3967 rm -f core conftest.err conftest.$ac_objext
3968 test "x$ac_cv_prog_cc_c89" != "xno" && break
3970 rm -f conftest.$ac_ext
3975 case "x$ac_cv_prog_cc_c89" in
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3978 $as_echo "none needed" >&6; } ;;
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3981 $as_echo "unsupported" >&6; } ;;
3983 CC="$CC $ac_cv_prog_cc_c89"
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3985 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3987 if test "x$ac_cv_prog_cc_c89" != xno; then :
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996 DEPDIR="${am__leading_dot}deps"
3998 ac_config_commands="$ac_config_commands depfiles"
4001 am_make=${MAKE-make}
4002 cat > confinc << 'END'
4004 @echo this is the am__doit target
4007 # If we don't find an include directive, just comment out the code.
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4009 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4013 # First try GNU make style include.
4014 echo "include confinc" > confmf
4015 # Ignore all kinds of additional output from 'make'.
4016 case `$am_make -s -f confmf 2> /dev/null` in #(
4017 *the\ am__doit\ target*)
4023 # Now try BSD make style include.
4024 if test "$am__include" = "#"; then
4025 echo '.include "confinc"' > confmf
4026 case `$am_make -s -f confmf 2> /dev/null` in #(
4027 *the\ am__doit\ target*)
4028 am__include=.include
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4037 $as_echo "$_am_result" >&6; }
4038 rm -f confinc confmf
4040 # Check whether --enable-dependency-tracking was given.
4041 if test "${enable_dependency_tracking+set}" = set; then :
4042 enableval=$enable_dependency_tracking;
4045 if test "x$enable_dependency_tracking" != xno; then
4046 am_depcomp="$ac_aux_dir/depcomp"
4050 if test "x$enable_dependency_tracking" != xno; then
4060 depcc="$CC" am_compiler_list=
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4063 $as_echo_n "checking dependency style of $depcc... " >&6; }
4064 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4065 $as_echo_n "(cached) " >&6
4067 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4068 # We make a subdir and do the tests there. Otherwise we can end up
4069 # making bogus files that we don't know about and never remove. For
4070 # instance it was reported that on HP-UX the gcc test will end up
4071 # making a dummy file named 'D' -- because '-MD' means "put the output
4075 # Copy depcomp to subdir because otherwise we won't find it if we're
4076 # using a relative directory.
4077 cp "$am_depcomp" conftest.dir
4079 # We will build objects and dependencies in a subdirectory because
4080 # it helps to detect inapplicable dependency modes. For instance
4081 # both Tru64's cc and ICC support -MD to output dependencies as a
4082 # side effect of compilation, but ICC will put the dependencies in
4083 # the current directory while Tru64 will put them in the object
4087 am_cv_CC_dependencies_compiler_type=none
4088 if test "$am_compiler_list" = ""; then
4089 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4092 case " $depcc " in #(
4093 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4096 for depmode in $am_compiler_list; do
4097 # Setup a source with many dependencies, because some compilers
4098 # like to wrap large dependency lists on column 80 (with \), and
4099 # we should not choose a depcomp mode which is confused by this.
4101 # We need to recreate these files for each test, as the compiler may
4102 # overwrite some of them when testing with obscure command lines.
4103 # This happens at least with the AIX C compiler.
4105 for i in 1 2 3 4 5 6; do
4106 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4107 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4108 # Solaris 10 /bin/sh.
4109 echo '/* dummy */' > sub/conftst$i.h
4111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4113 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4114 # mode. It turns out that the SunPro C++ compiler does not properly
4115 # handle '-M -o', and we need to detect this. Also, some Intel
4116 # versions had trouble with output in subdirs.
4117 am__obj=sub/conftest.${OBJEXT-o}
4118 am__minus_obj="-o $am__obj"
4121 # This depmode causes a compiler race in universal mode.
4122 test "$am__universal" = false || continue
4125 # After this tag, mechanisms are not by side-effect, so they'll
4126 # only be used when explicitly requested.
4127 if test "x$enable_dependency_tracking" = xyes; then
4133 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4134 # This compiler won't grok '-c -o', but also, the minuso test has
4135 # not run yet. These depmodes are late enough in the game, and
4136 # so weak that their functioning should not be impacted.
4137 am__obj=conftest.${OBJEXT-o}
4142 if depmode=$depmode \
4143 source=sub/conftest.c object=$am__obj \
4144 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4145 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4146 >/dev/null 2>conftest.err &&
4147 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4149 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4151 # icc doesn't choke on unknown options, it will just issue warnings
4152 # or remarks (even with -Werror). So we grep stderr for any message
4153 # that says an option was ignored or not supported.
4154 # When given -MP, icc 7.0 and 7.1 complain thusly:
4155 # icc: Command line warning: ignoring option '-M'; no argument required
4156 # The diagnosis changed in icc 8.0:
4157 # icc: Command line remark: option '-MP' not supported
4158 if (grep 'ignoring option' conftest.err ||
4159 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4160 am_cv_CC_dependencies_compiler_type=$depmode
4169 am_cv_CC_dependencies_compiler_type=none
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4174 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4175 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4178 test "x$enable_dependency_tracking" != xno \
4179 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4181 am__fastdepCC_FALSE='#'
4183 am__fastdepCC_TRUE='#'
4184 am__fastdepCC_FALSE=
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4190 $as_echo_n "checking whether ln -s works... " >&6; }
4192 if test "$LN_S" = "ln -s"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4194 $as_echo "yes" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4197 $as_echo "no, using $LN_S" >&6; }
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4207 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4208 # On Suns, sometimes $CPP names a directory.
4209 if test -n "$CPP" && test -d "$CPP"; then
4212 if test -z "$CPP"; then
4213 if ${ac_cv_prog_CPP+:} false; then :
4214 $as_echo_n "(cached) " >&6
4216 # Double quotes because CPP needs to be expanded
4217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4220 for ac_c_preproc_warn_flag in '' yes
4222 # Use a header file that comes with gcc, so configuring glibc
4223 # with a fresh cross-compiler works.
4224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225 # <limits.h> exists even on freestanding compilers.
4226 # On the NeXT, cc -E runs the code through the compiler's parser,
4227 # not just through cpp. "Syntax error" is here to catch this case.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4231 # include <limits.h>
4233 # include <assert.h>
4237 if ac_fn_c_try_cpp "$LINENO"; then :
4240 # Broken: fails on valid input.
4243 rm -f conftest.err conftest.i conftest.$ac_ext
4245 # OK, works on sane cases. Now check whether nonexistent headers
4246 # can be detected and how.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <ac_nonexistent.h>
4251 if ac_fn_c_try_cpp "$LINENO"; then :
4252 # Broken: success on invalid input.
4255 # Passes both tests.
4259 rm -f conftest.err conftest.i conftest.$ac_ext
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.i conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then :
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4277 $as_echo "$CPP" >&6; }
4279 for ac_c_preproc_warn_flag in '' yes
4281 # Use a header file that comes with gcc, so configuring glibc
4282 # with a fresh cross-compiler works.
4283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 # <limits.h> exists even on freestanding compilers.
4285 # On the NeXT, cc -E runs the code through the compiler's parser,
4286 # not just through cpp. "Syntax error" is here to catch this case.
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4290 # include <limits.h>
4292 # include <assert.h>
4296 if ac_fn_c_try_cpp "$LINENO"; then :
4299 # Broken: fails on valid input.
4302 rm -f conftest.err conftest.i conftest.$ac_ext
4304 # OK, works on sane cases. Now check whether nonexistent headers
4305 # can be detected and how.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <ac_nonexistent.h>
4310 if ac_fn_c_try_cpp "$LINENO"; then :
4311 # Broken: success on invalid input.
4314 # Passes both tests.
4318 rm -f conftest.err conftest.i conftest.$ac_ext
4321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4322 rm -f conftest.i conftest.err conftest.$ac_ext
4323 if $ac_preproc_ok; then :
4326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4329 See \`config.log' for more details" "$LINENO" 5; }
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 # Extract the first word of "mv", so it can be a program name with args.
4339 set dummy mv; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_path_MV+:} false; then :
4343 $as_echo_n "(cached) " >&6
4347 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4370 if test -n "$MV"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4372 $as_echo "$MV" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4379 # Extract the first word of "tar", so it can be a program name with args.
4380 set dummy tar; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_path_TAR+:} false; then :
4384 $as_echo_n "(cached) " >&6
4388 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4411 if test -n "$TAR"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4413 $as_echo "$TAR" >&6; }
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4420 # Extract the first word of "perl", so it can be a program name with args.
4421 set dummy perl; ac_word=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if ${ac_cv_path_PERL+:} false; then :
4425 $as_echo_n "(cached) " >&6
4429 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
4451 PERL=$ac_cv_path_PERL
4452 if test -n "$PERL"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4454 $as_echo "$PERL" >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4461 # Extract the first word of "wget", so it can be a program name with args.
4462 set dummy wget; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if ${ac_cv_path_WGET+:} false; then :
4466 $as_echo_n "(cached) " >&6
4470 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
4492 WGET=$ac_cv_path_WGET
4493 if test -n "$WGET"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4495 $as_echo "$WGET" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4502 # Extract the first word of "xmllint", so it can be a program name with args.
4503 set dummy xmllint; ac_word=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if ${ac_cv_path_XMLLINT+:} false; then :
4507 $as_echo_n "(cached) " >&6
4511 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4533 XMLLINT=$ac_cv_path_XMLLINT
4534 if test -n "$XMLLINT"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4536 $as_echo "$XMLLINT" >&6; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4543 # Extract the first word of "xsltproc", so it can be a program name with args.
4544 set dummy xsltproc; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_path_XSLTPROC+:} false; then :
4548 $as_echo_n "(cached) " >&6
4552 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
4574 XSLTPROC=$ac_cv_path_XSLTPROC
4575 if test -n "$XSLTPROC"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4577 $as_echo "$XSLTPROC" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4591 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4598 $as_echo_n "(cached) " >&6
4602 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4624 if test -n "$PKG_CONFIG"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4626 $as_echo "$PKG_CONFIG" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4634 if test -z "$ac_cv_path_PKG_CONFIG"; then
4635 ac_pt_PKG_CONFIG=$PKG_CONFIG
4636 # Extract the first word of "pkg-config", so it can be a program name with args.
4637 set dummy pkg-config; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 case $ac_pt_PKG_CONFIG in
4645 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4667 if test -n "$ac_pt_PKG_CONFIG"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4669 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4675 if test "x$ac_pt_PKG_CONFIG" = x; then
4678 case $cross_compiling:$ac_tool_warned in
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4684 PKG_CONFIG=$ac_pt_PKG_CONFIG
4687 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4691 if test -n "$PKG_CONFIG"; then
4692 _pkg_min_version=0.9.0
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4694 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4695 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4697 $as_echo "yes" >&6; }
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4713 macro_version='2.4.2'
4714 macro_revision='1.3337'
4728 ltmain="$ac_aux_dir/ltmain.sh"
4730 # Backslashify metacharacters that are still active within
4731 # double-quoted strings.
4732 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4734 # Same as above, but do not quote variable references.
4735 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4737 # Sed substitution to delay expansion of an escaped shell variable in a
4738 # double_quote_subst'ed string.
4739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4741 # Sed substitution to delay expansion of an escaped single quote.
4742 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4744 # Sed substitution to avoid accidental globbing in evaled expressions
4745 no_glob_subst='s/\*/\\\*/g'
4747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752 $as_echo_n "checking how to print strings... " >&6; }
4753 # Test print first, because it will be a builtin if present.
4754 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4760 # Use this function as a fallback that always works.
4761 func_fallback_echo ()
4763 eval 'cat <<_LTECHO_EOF
4767 ECHO='func_fallback_echo'
4770 # func_echo_all arg...
4771 # Invoke $ECHO with all args, space-separated.
4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779 $as_echo "printf" >&6; } ;;
4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781 $as_echo "print -r" >&6; } ;;
4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783 $as_echo "cat" >&6; } ;;
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4801 if ${ac_cv_path_SED+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805 for ac_i in 1 2 3 4 5 6 7; do
4806 ac_script="$ac_script$as_nl$ac_script"
4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809 { ac_script=; unset ac_script;}
4810 if test -z "$SED"; then
4811 ac_path_SED_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in sed gsed; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p "$ac_path_SED" || continue
4822 # Check for GNU ac_path_SED and select it if it is found.
4823 # Check for GNU $ac_path_SED
4824 case `"$ac_path_SED" --version 2>&1` in
4826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4829 $as_echo_n 0123456789 >"conftest.in"
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo '' >> "conftest.nl"
4836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_SED_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_SED="$ac_path_SED"
4842 ac_path_SED_max=$ac_count
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850 $ac_path_SED_found && break 3
4855 if test -z "$ac_cv_path_SED"; then
4856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864 $as_echo "$ac_cv_path_SED" >&6; }
4865 SED="$ac_cv_path_SED"
4868 test -z "$SED" && SED=sed
4869 Xsed="$SED -e 1s/^X//"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4882 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4883 if ${ac_cv_path_GREP+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 if test -z "$GREP"; then
4887 ac_path_GREP_found=false
4888 # Loop through the user's path and test for each of PROGNAME-LIST
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4893 test -z "$as_dir" && as_dir=.
4894 for ac_prog in grep ggrep; do
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4897 as_fn_executable_p "$ac_path_GREP" || continue
4898 # Check for GNU ac_path_GREP and select it if it is found.
4899 # Check for GNU $ac_path_GREP
4900 case `"$ac_path_GREP" --version 2>&1` in
4902 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4905 $as_echo_n 0123456789 >"conftest.in"
4908 cat "conftest.in" "conftest.in" >"conftest.tmp"
4909 mv "conftest.tmp" "conftest.in"
4910 cp "conftest.in" "conftest.nl"
4911 $as_echo 'GREP' >> "conftest.nl"
4912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4914 as_fn_arith $ac_count + 1 && ac_count=$as_val
4915 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4916 # Best one so far, save it but keep looking for a better one
4917 ac_cv_path_GREP="$ac_path_GREP"
4918 ac_path_GREP_max=$ac_count
4920 # 10*(2^10) chars as input seems more than enough
4921 test $ac_count -gt 10 && break
4923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926 $ac_path_GREP_found && break 3
4931 if test -z "$ac_cv_path_GREP"; then
4932 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4935 ac_cv_path_GREP=$GREP
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4940 $as_echo "$ac_cv_path_GREP" >&6; }
4941 GREP="$ac_cv_path_GREP"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4945 $as_echo_n "checking for egrep... " >&6; }
4946 if ${ac_cv_path_EGREP+:} false; then :
4947 $as_echo_n "(cached) " >&6
4949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4950 then ac_cv_path_EGREP="$GREP -E"
4952 if test -z "$EGREP"; then
4953 ac_path_EGREP_found=false
4954 # Loop through the user's path and test for each of PROGNAME-LIST
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4959 test -z "$as_dir" && as_dir=.
4960 for ac_prog in egrep; do
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4963 as_fn_executable_p "$ac_path_EGREP" || continue
4964 # Check for GNU ac_path_EGREP and select it if it is found.
4965 # Check for GNU $ac_path_EGREP
4966 case `"$ac_path_EGREP" --version 2>&1` in
4968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4971 $as_echo_n 0123456789 >"conftest.in"
4974 cat "conftest.in" "conftest.in" >"conftest.tmp"
4975 mv "conftest.tmp" "conftest.in"
4976 cp "conftest.in" "conftest.nl"
4977 $as_echo 'EGREP' >> "conftest.nl"
4978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980 as_fn_arith $ac_count + 1 && ac_count=$as_val
4981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4982 # Best one so far, save it but keep looking for a better one
4983 ac_cv_path_EGREP="$ac_path_EGREP"
4984 ac_path_EGREP_max=$ac_count
4986 # 10*(2^10) chars as input seems more than enough
4987 test $ac_count -gt 10 && break
4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4992 $ac_path_EGREP_found && break 3
4997 if test -z "$ac_cv_path_EGREP"; then
4998 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5001 ac_cv_path_EGREP=$EGREP
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5007 $as_echo "$ac_cv_path_EGREP" >&6; }
5008 EGREP="$ac_cv_path_EGREP"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5012 $as_echo_n "checking for fgrep... " >&6; }
5013 if ${ac_cv_path_FGREP+:} false; then :
5014 $as_echo_n "(cached) " >&6
5016 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5017 then ac_cv_path_FGREP="$GREP -F"
5019 if test -z "$FGREP"; then
5020 ac_path_FGREP_found=false
5021 # Loop through the user's path and test for each of PROGNAME-LIST
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5026 test -z "$as_dir" && as_dir=.
5027 for ac_prog in fgrep; do
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5030 as_fn_executable_p "$ac_path_FGREP" || continue
5031 # Check for GNU ac_path_FGREP and select it if it is found.
5032 # Check for GNU $ac_path_FGREP
5033 case `"$ac_path_FGREP" --version 2>&1` in
5035 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5038 $as_echo_n 0123456789 >"conftest.in"
5041 cat "conftest.in" "conftest.in" >"conftest.tmp"
5042 mv "conftest.tmp" "conftest.in"
5043 cp "conftest.in" "conftest.nl"
5044 $as_echo 'FGREP' >> "conftest.nl"
5045 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047 as_fn_arith $ac_count + 1 && ac_count=$as_val
5048 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5049 # Best one so far, save it but keep looking for a better one
5050 ac_cv_path_FGREP="$ac_path_FGREP"
5051 ac_path_FGREP_max=$ac_count
5053 # 10*(2^10) chars as input seems more than enough
5054 test $ac_count -gt 10 && break
5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059 $ac_path_FGREP_found && break 3
5064 if test -z "$ac_cv_path_FGREP"; then
5065 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5068 ac_cv_path_FGREP=$FGREP
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5074 $as_echo "$ac_cv_path_FGREP" >&6; }
5075 FGREP="$ac_cv_path_FGREP"
5078 test -z "$GREP" && GREP=grep
5098 # Check whether --with-gnu-ld was given.
5099 if test "${with_gnu_ld+set}" = set; then :
5100 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5106 if test "$GCC" = yes; then
5107 # Check if gcc -print-prog-name=ld gives a path.
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5109 $as_echo_n "checking for ld used by $CC... " >&6; }
5112 # gcc leaves a trailing carriage return which upsets mingw
5113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5118 # Accept absolute paths.
5120 re_direlt='/[^/][^/]*/\.\./'
5121 # Canonicalize the pathname of ld
5122 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5123 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5124 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5126 test -z "$LD" && LD="$ac_prog"
5129 # If it fails, then pretend we aren't using GCC.
5133 # If it is relative, then search for the first ld in PATH.
5137 elif test "$with_gnu_ld" = yes; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5139 $as_echo_n "checking for GNU ld... " >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5142 $as_echo_n "checking for non-GNU ld... " >&6; }
5144 if ${lt_cv_path_LD+:} false; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -z "$LD"; then
5148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5149 for ac_dir in $PATH; do
5151 test -z "$ac_dir" && ac_dir=.
5152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5153 lt_cv_path_LD="$ac_dir/$ac_prog"
5154 # Check to see if the program is GNU ld. I'd rather use --version,
5155 # but apparently some variants of GNU ld only accept -v.
5156 # Break only if it was the GNU/non-GNU ld that we prefer.
5157 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5158 *GNU* | *'with BFD'*)
5159 test "$with_gnu_ld" != no && break
5162 test "$with_gnu_ld" != yes && break
5169 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5174 if test -n "$LD"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5176 $as_echo "$LD" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5181 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5183 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5184 if ${lt_cv_prog_gnu_ld+:} false; then :
5185 $as_echo_n "(cached) " >&6
5187 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5188 case `$LD -v 2>&1 </dev/null` in
5189 *GNU* | *'with BFD'*)
5190 lt_cv_prog_gnu_ld=yes
5193 lt_cv_prog_gnu_ld=no
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5198 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5199 with_gnu_ld=$lt_cv_prog_gnu_ld
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5210 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5211 if ${lt_cv_path_NM+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 if test -n "$NM"; then
5215 # Let the user override the test.
5218 lt_nm_to_check="${ac_tool_prefix}nm"
5219 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5220 lt_nm_to_check="$lt_nm_to_check nm"
5222 for lt_tmp_nm in $lt_nm_to_check; do
5223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5224 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5226 test -z "$ac_dir" && ac_dir=.
5227 tmp_nm="$ac_dir/$lt_tmp_nm"
5228 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5229 # Check to see if the nm accepts a BSD-compat flag.
5230 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5231 # nm: unknown option "B" ignored
5232 # Tru64's nm complains that /dev/null is an invalid object file
5233 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5234 */dev/null* | *'Invalid file or object type'*)
5235 lt_cv_path_NM="$tmp_nm -B"
5239 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5241 lt_cv_path_NM="$tmp_nm -p"
5245 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5246 continue # so that we can try to find one that supports BSD flags
5255 : ${lt_cv_path_NM=no}
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5259 $as_echo "$lt_cv_path_NM" >&6; }
5260 if test "$lt_cv_path_NM" != "no"; then
5263 # Didn't find any BSD compatible name lister, look for dumpbin.
5264 if test -n "$DUMPBIN"; then :
5265 # Let the user override the test.
5267 if test -n "$ac_tool_prefix"; then
5268 for ac_prog in dumpbin "link -dump"
5270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_prog_DUMPBIN+:} false; then :
5275 $as_echo_n "(cached) " >&6
5277 if test -n "$DUMPBIN"; then
5278 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 DUMPBIN=$ac_cv_prog_DUMPBIN
5298 if test -n "$DUMPBIN"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5300 $as_echo "$DUMPBIN" >&6; }
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5307 test -n "$DUMPBIN" && break
5310 if test -z "$DUMPBIN"; then
5311 ac_ct_DUMPBIN=$DUMPBIN
5312 for ac_prog in dumpbin "link -dump"
5314 # Extract the first word of "$ac_prog", so it can be a program name with args.
5315 set dummy $ac_prog; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5319 $as_echo_n "(cached) " >&6
5321 if test -n "$ac_ct_DUMPBIN"; then
5322 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5342 if test -n "$ac_ct_DUMPBIN"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5344 $as_echo "$ac_ct_DUMPBIN" >&6; }
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5351 test -n "$ac_ct_DUMPBIN" && break
5354 if test "x$ac_ct_DUMPBIN" = x; then
5357 case $cross_compiling:$ac_tool_warned in
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361 ac_tool_warned=yes ;;
5363 DUMPBIN=$ac_ct_DUMPBIN
5367 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5369 DUMPBIN="$DUMPBIN -symbols"
5377 if test "$DUMPBIN" != ":"; then
5381 test -z "$NM" && NM=nm
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5389 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5390 if ${lt_cv_nm_interface+:} false; then :
5391 $as_echo_n "(cached) " >&6
5393 lt_cv_nm_interface="BSD nm"
5394 echo "int some_variable = 0;" > conftest.$ac_ext
5395 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5396 (eval "$ac_compile" 2>conftest.err)
5397 cat conftest.err >&5
5398 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5399 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5400 cat conftest.err >&5
5401 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5402 cat conftest.out >&5
5403 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5404 lt_cv_nm_interface="MS dumpbin"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5409 $as_echo "$lt_cv_nm_interface" >&6; }
5411 # find the maximum length of command line arguments
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5413 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5414 if ${lt_cv_sys_max_cmd_len+:} false; then :
5415 $as_echo_n "(cached) " >&6
5422 # On DJGPP, this test can blow up pretty badly due to problems in libc
5423 # (any single argument exceeding 2000 bytes causes a buffer overrun
5424 # during glob expansion). Even if it were fixed, the result of this
5425 # check would be larger than it should be.
5426 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5430 # Under GNU Hurd, this test is not required because there is
5431 # no limit to the length of command line arguments.
5432 # Libtool will interpret -1 as no limit whatsoever
5433 lt_cv_sys_max_cmd_len=-1;
5436 cygwin* | mingw* | cegcc*)
5437 # On Win9x/ME, this test blows up -- it succeeds, but takes
5438 # about 5 minutes as the teststring grows exponentially.
5439 # Worse, since 9x/ME are not pre-emptively multitasking,
5440 # you end up with a "frozen" computer, even though with patience
5441 # the test eventually succeeds (with a max line length of 256k).
5442 # Instead, let's just punt: use the minimum linelength reported by
5443 # all of the supported platforms: 8192 (on NT/2K/XP).
5444 lt_cv_sys_max_cmd_len=8192;
5448 # On MiNT this can take a long time and run out of memory.
5449 lt_cv_sys_max_cmd_len=8192;
5453 # On AmigaOS with pdksh, this test takes hours, literally.
5454 # So we just punt and use a minimum line length of 8192.
5455 lt_cv_sys_max_cmd_len=8192;
5458 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5459 # This has been around since 386BSD, at least. Likely further.
5460 if test -x /sbin/sysctl; then
5461 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5462 elif test -x /usr/sbin/sysctl; then
5463 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5465 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5467 # And add a safety zone
5468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5473 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5474 lt_cv_sys_max_cmd_len=196608
5478 # The test takes a long time on OS/2.
5479 lt_cv_sys_max_cmd_len=8192
5483 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5484 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5485 # nice to cause kernel panics so lets avoid the loop below.
5486 # First set a reasonable default.
5487 lt_cv_sys_max_cmd_len=16384
5489 if test -x /sbin/sysconfig; then
5490 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5491 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5496 lt_cv_sys_max_cmd_len=102400
5498 sysv5* | sco5v6* | sysv4.2uw2*)
5499 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5500 if test -n "$kargmax"; then
5501 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5503 lt_cv_sys_max_cmd_len=32768
5507 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5508 if test -n "$lt_cv_sys_max_cmd_len"; then
5509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5512 # Make teststring a little bigger before we do anything with it.
5513 # a 1K string should be a reasonable start.
5514 for i in 1 2 3 4 5 6 7 8 ; do
5515 teststring=$teststring$teststring
5517 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5518 # If test is not a shell built-in, we'll probably end up computing a
5519 # maximum length that is only half of the actual maximum length, but
5521 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5522 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5523 test $i != 17 # 1/2 MB should be enough
5526 teststring=$teststring$teststring
5528 # Only check the string length outside the loop.
5529 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5531 # Add a significant safety factor because C++ compilers can tack on
5532 # massive amounts of additional arguments before passing them to the
5533 # linker. It appears as though 1/2 is a usable value.
5534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5541 if test -n $lt_cv_sys_max_cmd_len ; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5543 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5546 $as_echo "none" >&6; }
5548 max_cmd_len=$lt_cv_sys_max_cmd_len
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5560 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5561 # Try some XSI features
5564 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5566 && eval 'test $(( 1 + 1 )) -eq 2 \
5567 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5570 $as_echo "$xsi_shell" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5574 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5576 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5578 && lt_shell_append=yes
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5580 $as_echo "$lt_shell_append" >&6; }
5583 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5593 # test EBCDIC or ASCII
5594 case `echo X|tr X '\101'` in
5595 A) # ASCII based system
5596 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5597 lt_SP2NL='tr \040 \012'
5598 lt_NL2SP='tr \015\012 \040\040'
5600 *) # EBCDIC based system
5601 lt_SP2NL='tr \100 \n'
5602 lt_NL2SP='tr \r\n \100\100'
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5615 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5616 if ${lt_cv_to_host_file_cmd+:} false; then :
5617 $as_echo_n "(cached) " >&6
5622 *-*-mingw* ) # actually msys
5623 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5626 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5628 * ) # otherwise, assume *nix
5629 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5635 *-*-mingw* ) # actually msys
5636 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5639 lt_cv_to_host_file_cmd=func_convert_file_noop
5641 * ) # otherwise, assume *nix
5642 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5646 * ) # unhandled hosts (and "normal" native builds)
5647 lt_cv_to_host_file_cmd=func_convert_file_noop
5653 to_host_file_cmd=$lt_cv_to_host_file_cmd
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5655 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5662 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5663 if ${lt_cv_to_tool_file_cmd+:} false; then :
5664 $as_echo_n "(cached) " >&6
5666 #assume ordinary cross tools, or native build.
5667 lt_cv_to_tool_file_cmd=func_convert_file_noop
5671 *-*-mingw* ) # actually msys
5672 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5680 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5682 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5689 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5690 if ${lt_cv_ld_reload_flag+:} false; then :
5691 $as_echo_n "(cached) " >&6
5693 lt_cv_ld_reload_flag='-r'
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5696 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5697 reload_flag=$lt_cv_ld_reload_flag
5698 case $reload_flag in
5700 *) reload_flag=" $reload_flag" ;;
5702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5704 cygwin* | mingw* | pw32* | cegcc*)
5705 if test "$GCC" != yes; then
5710 if test "$GCC" = yes; then
5711 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_OBJDUMP+:} false; then :
5732 $as_echo_n "(cached) " >&6
5734 if test -n "$OBJDUMP"; then
5735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 OBJDUMP=$ac_cv_prog_OBJDUMP
5755 if test -n "$OBJDUMP"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5757 $as_echo "$OBJDUMP" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5765 if test -z "$ac_cv_prog_OBJDUMP"; then
5766 ac_ct_OBJDUMP=$OBJDUMP
5767 # Extract the first word of "objdump", so it can be a program name with args.
5768 set dummy objdump; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5772 $as_echo_n "(cached) " >&6
5774 if test -n "$ac_ct_OBJDUMP"; then
5775 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5795 if test -n "$ac_ct_OBJDUMP"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5797 $as_echo "$ac_ct_OBJDUMP" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5803 if test "x$ac_ct_OBJDUMP" = x; then
5806 case $cross_compiling:$ac_tool_warned in
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5812 OBJDUMP=$ac_ct_OBJDUMP
5815 OBJDUMP="$ac_cv_prog_OBJDUMP"
5818 test -z "$OBJDUMP" && OBJDUMP=objdump
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5829 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5830 if ${lt_cv_deplibs_check_method+:} false; then :
5831 $as_echo_n "(cached) " >&6
5833 lt_cv_file_magic_cmd='$MAGIC_CMD'
5834 lt_cv_file_magic_test_file=
5835 lt_cv_deplibs_check_method='unknown'
5836 # Need to set the preceding variable on all platforms that support
5837 # interlibrary dependencies.
5838 # 'none' -- dependencies not supported.
5839 # `unknown' -- same as none, but documents that we really don't know.
5840 # 'pass_all' -- all dependencies passed with no checks.
5841 # 'test_compile' -- check by making test program.
5842 # 'file_magic [[regex]]' -- check by looking for files in library path
5843 # which responds to the $file_magic_cmd with a given extended regex.
5844 # If you have `file' or equivalent on your system and you're not sure
5845 # whether `pass_all' will *always* work, you probably want this one.
5849 lt_cv_deplibs_check_method=pass_all
5853 lt_cv_deplibs_check_method=pass_all
5857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5858 lt_cv_file_magic_cmd='/usr/bin/file -L'
5859 lt_cv_file_magic_test_file=/shlib/libc.so
5863 # func_win32_libid is a shell function defined in ltmain.sh
5864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5865 lt_cv_file_magic_cmd='func_win32_libid'
5869 # Base MSYS/MinGW do not provide the 'file' command needed by
5870 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5871 # unless we find 'file', for example because we are cross-compiling.
5872 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5873 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5874 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5875 lt_cv_file_magic_cmd='func_win32_libid'
5877 # Keep this pattern in sync with the one in func_win32_libid.
5878 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5879 lt_cv_file_magic_cmd='$OBJDUMP -f'
5884 # use the weaker test based on 'objdump'. See mingw*.
5885 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5886 lt_cv_file_magic_cmd='$OBJDUMP -f'
5889 darwin* | rhapsody*)
5890 lt_cv_deplibs_check_method=pass_all
5893 freebsd* | dragonfly*)
5894 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5897 # Not sure whether the presence of OpenBSD here was a mistake.
5898 # Let's accept both of them until this is cleared up.
5899 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5900 lt_cv_file_magic_cmd=/usr/bin/file
5901 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5905 lt_cv_deplibs_check_method=pass_all
5910 lt_cv_deplibs_check_method=pass_all
5914 lt_cv_deplibs_check_method=pass_all
5917 hpux10.20* | hpux11*)
5918 lt_cv_file_magic_cmd=/usr/bin/file
5921 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5922 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5925 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]'
5926 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5929 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5930 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5936 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5940 irix5* | irix6* | nonstopux*)
5942 *-32|*"-32 ") libmagic=32-bit;;
5943 *-n32|*"-n32 ") libmagic=N32;;
5944 *-64|*"-64 ") libmagic=64-bit;;
5945 *) libmagic=never-match;;
5947 lt_cv_deplibs_check_method=pass_all
5950 # This must be glibc/ELF.
5951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5952 lt_cv_deplibs_check_method=pass_all
5956 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5965 lt_cv_file_magic_cmd=/usr/bin/file
5966 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5970 lt_cv_deplibs_check_method=pass_all
5974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5981 osf3* | osf4* | osf5*)
5982 lt_cv_deplibs_check_method=pass_all
5986 lt_cv_deplibs_check_method=pass_all
5990 lt_cv_deplibs_check_method=pass_all
5993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5994 lt_cv_deplibs_check_method=pass_all
5998 case $host_vendor in
6000 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]'
6001 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6004 lt_cv_deplibs_check_method=pass_all
6007 lt_cv_file_magic_cmd='/bin/file'
6008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6011 lt_cv_file_magic_cmd='/bin/file'
6012 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6013 lt_cv_file_magic_test_file=/lib/libc.so
6016 lt_cv_deplibs_check_method=pass_all
6019 lt_cv_deplibs_check_method=pass_all
6025 lt_cv_deplibs_check_method=pass_all
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6031 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6035 if test "$build" = "$host"; then
6038 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6041 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6047 file_magic_cmd=$lt_cv_file_magic_cmd
6048 deplibs_check_method=$lt_cv_deplibs_check_method
6049 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6072 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_prog_DLLTOOL+:} false; then :
6078 $as_echo_n "(cached) " >&6
6080 if test -n "$DLLTOOL"; then
6081 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 DLLTOOL=$ac_cv_prog_DLLTOOL
6101 if test -n "$DLLTOOL"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6103 $as_echo "$DLLTOOL" >&6; }
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6111 if test -z "$ac_cv_prog_DLLTOOL"; then
6112 ac_ct_DLLTOOL=$DLLTOOL
6113 # Extract the first word of "dlltool", so it can be a program name with args.
6114 set dummy dlltool; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6118 $as_echo_n "(cached) " >&6
6120 if test -n "$ac_ct_DLLTOOL"; then
6121 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6141 if test -n "$ac_ct_DLLTOOL"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6143 $as_echo "$ac_ct_DLLTOOL" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6149 if test "x$ac_ct_DLLTOOL" = x; then
6152 case $cross_compiling:$ac_tool_warned in
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156 ac_tool_warned=yes ;;
6158 DLLTOOL=$ac_ct_DLLTOOL
6161 DLLTOOL="$ac_cv_prog_DLLTOOL"
6164 test -z "$DLLTOOL" && DLLTOOL=dlltool
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6176 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6177 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6178 $as_echo_n "(cached) " >&6
6180 lt_cv_sharedlib_from_linklib_cmd='unknown'
6183 cygwin* | mingw* | pw32* | cegcc*)
6184 # two different shell functions defined in ltmain.sh
6185 # decide which to use based on capabilities of $DLLTOOL
6186 case `$DLLTOOL --help 2>&1` in
6187 *--identify-strict*)
6188 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6191 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6196 # fallback: assume linklib IS sharedlib
6197 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6203 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6204 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6205 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6214 if test -n "$ac_tool_prefix"; then
6217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_prog_AR+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 if test -n "$AR"; then
6225 ac_cv_prog_AR="$AR" # Let the user override the test.
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 if test -n "$AR"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6247 $as_echo "$AR" >&6; }
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6254 test -n "$AR" && break
6257 if test -z "$AR"; then
6261 # Extract the first word of "$ac_prog", so it can be a program name with args.
6262 set dummy $ac_prog; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6266 $as_echo_n "(cached) " >&6
6268 if test -n "$ac_ct_AR"; then
6269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278 ac_cv_prog_ac_ct_AR="$ac_prog"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6289 if test -n "$ac_ct_AR"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6291 $as_echo "$ac_ct_AR" >&6; }
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6298 test -n "$ac_ct_AR" && break
6301 if test "x$ac_ct_AR" = x; then
6304 case $cross_compiling:$ac_tool_warned in
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6308 ac_tool_warned=yes ;;
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6328 $as_echo_n "checking for archiver @FILE support... " >&6; }
6329 if ${lt_cv_ar_at_file+:} false; then :
6330 $as_echo_n "(cached) " >&6
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6344 if ac_fn_c_try_compile "$LINENO"; then :
6345 echo conftest.$ac_objext > conftest.lst
6346 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6348 (eval $lt_ar_try) 2>&5
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; }
6352 if test "$ac_status" -eq 0; then
6353 # Ensure the archiver fails upon bogus file names.
6354 rm -f conftest.$ac_objext libconftest.a
6355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6356 (eval $lt_ar_try) 2>&5
6358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6359 test $ac_status = 0; }
6360 if test "$ac_status" -ne 0; then
6364 rm -f conftest.* libconftest.a
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6371 $as_echo "$lt_cv_ar_at_file" >&6; }
6373 if test "x$lt_cv_ar_at_file" = xno; then
6376 archiver_list_spec=$lt_cv_ar_at_file
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6387 set dummy ${ac_tool_prefix}strip; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_STRIP+:} false; then :
6391 $as_echo_n "(cached) " >&6
6393 if test -n "$STRIP"; then
6394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 STRIP=$ac_cv_prog_STRIP
6414 if test -n "$STRIP"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6416 $as_echo "$STRIP" >&6; }
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6424 if test -z "$ac_cv_prog_STRIP"; then
6426 # Extract the first word of "strip", so it can be a program name with args.
6427 set dummy strip; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6431 $as_echo_n "(cached) " >&6
6433 if test -n "$ac_ct_STRIP"; then
6434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443 ac_cv_prog_ac_ct_STRIP="strip"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6454 if test -n "$ac_ct_STRIP"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6456 $as_echo "$ac_ct_STRIP" >&6; }
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6462 if test "x$ac_ct_STRIP" = x; then
6465 case $cross_compiling:$ac_tool_warned in
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469 ac_tool_warned=yes ;;
6474 STRIP="$ac_cv_prog_STRIP"
6477 test -z "$STRIP" && STRIP=:
6484 if test -n "$ac_tool_prefix"; then
6485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_RANLIB+:} false; then :
6490 $as_echo_n "(cached) " >&6
6492 if test -n "$RANLIB"; then
6493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 RANLIB=$ac_cv_prog_RANLIB
6513 if test -n "$RANLIB"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6515 $as_echo "$RANLIB" >&6; }
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6523 if test -z "$ac_cv_prog_RANLIB"; then
6524 ac_ct_RANLIB=$RANLIB
6525 # Extract the first word of "ranlib", so it can be a program name with args.
6526 set dummy ranlib; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6530 $as_echo_n "(cached) " >&6
6532 if test -n "$ac_ct_RANLIB"; then
6533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_ac_ct_RANLIB="ranlib"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6553 if test -n "$ac_ct_RANLIB"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6555 $as_echo "$ac_ct_RANLIB" >&6; }
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6561 if test "x$ac_ct_RANLIB" = x; then
6564 case $cross_compiling:$ac_tool_warned in
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568 ac_tool_warned=yes ;;
6570 RANLIB=$ac_ct_RANLIB
6573 RANLIB="$ac_cv_prog_RANLIB"
6576 test -z "$RANLIB" && RANLIB=:
6583 # Determine commands to create old-style static archives.
6584 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6585 old_postinstall_cmds='chmod 644 $oldlib'
6586 old_postuninstall_cmds=
6588 if test -n "$RANLIB"; then
6591 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6594 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6597 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6602 lock_old_archive_extraction=yes ;;
6604 lock_old_archive_extraction=no ;;
6645 # If no C compiler was specified, use CC.
6648 # If no C compiler flags were specified, use CFLAGS.
6649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6651 # Allow CC to be a program name with arguments.
6655 # Check for command to grab the raw symbol name followed by C symbol from nm.
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6657 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6658 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6659 $as_echo_n "(cached) " >&6
6662 # These are sane defaults that work on at least a few old systems.
6663 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6665 # Character class describing NM global symbol codes.
6666 symcode='[BCDEGRST]'
6668 # Regexp to match symbols that can be accessed directly from C.
6669 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6671 # Define system-specific variables.
6676 cygwin* | mingw* | pw32* | cegcc*)
6677 symcode='[ABCDGISTW]'
6680 if test "$host_cpu" = ia64; then
6681 symcode='[ABCDEGRST]'
6685 symcode='[BCDEGRST]'
6688 symcode='[BCDEGQRST]'
6699 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6707 # If we're using GNU nm, then use its standard symbol codes.
6708 case `$NM -V 2>&1` in
6709 *GNU* | *'with BFD'*)
6710 symcode='[ABCDGIRSTW]' ;;
6713 # Transform an extracted symbol line into a proper C declaration.
6714 # Some systems (esp. on ia64) link data and code symbols differently,
6715 # so use this general approach.
6716 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6718 # Transform an extracted symbol line into symbol name and symbol address
6719 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6720 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'"
6722 # Handle CRLF in mingw tool chain
6726 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6730 # Try without a prefix underscore, then with it.
6731 for ac_symprfx in "" "_"; do
6733 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6734 symxfrm="\\1 $ac_symprfx\\2 \\2"
6736 # Write the raw and C identifiers.
6737 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6738 # Fake it for dumpbin and say T for any non-static function
6739 # and D for any global variable.
6740 # Also find C++ and __fastcall symbols from MSVC++,
6741 # which start with @ or ?.
6742 lt_cv_sys_global_symbol_pipe="$AWK '"\
6743 " {last_section=section; section=\$ 3};"\
6744 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6745 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6746 " \$ 0!~/External *\|/{next};"\
6747 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6748 " {if(hide[section]) next};"\
6749 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6750 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6751 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6752 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6753 " ' prfx=^$ac_symprfx"
6755 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6757 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6759 # Check to see that the pipe works correctly.
6763 cat > conftest.$ac_ext <<_LT_EOF
6768 void nm_test_func(void);
6769 void nm_test_func(void){}
6773 int main(){nm_test_var='a';nm_test_func();return(0);}
6776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777 (eval $ac_compile) 2>&5
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780 test $ac_status = 0; }; then
6781 # Now try to grab the symbols.
6783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6784 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787 test $ac_status = 0; } && test -s "$nlist"; then
6788 # Try sorting and uniquifying the output.
6789 if sort "$nlist" | uniq > "$nlist"T; then
6790 mv -f "$nlist"T "$nlist"
6795 # Make sure that we snagged all the symbols we need.
6796 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6797 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6798 cat <<_LT_EOF > conftest.$ac_ext
6799 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6800 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6801 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6802 relocations are performed -- see ld's documentation on pseudo-relocs. */
6803 # define LT_DLSYM_CONST
6804 #elif defined(__osf__)
6805 /* This system does not cope well with relocations in const data. */
6806 # define LT_DLSYM_CONST
6808 # define LT_DLSYM_CONST const
6816 # Now generate the symbol file.
6817 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6819 cat <<_LT_EOF >> conftest.$ac_ext
6821 /* The mapping between symbol names and symbols. */
6822 LT_DLSYM_CONST struct {
6826 lt__PROGRAM__LTX_preloaded_symbols[] =
6828 { "@PROGRAM@", (void *) 0 },
6830 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6831 cat <<\_LT_EOF >> conftest.$ac_ext
6835 /* This works around a problem in FreeBSD linker */
6836 #ifdef FREEBSD_WORKAROUND
6837 static const void *lt_preloaded_setup() {
6838 return lt__PROGRAM__LTX_preloaded_symbols;
6846 # Now try linking the two files.
6847 mv conftest.$ac_objext conftstm.$ac_objext
6848 lt_globsym_save_LIBS=$LIBS
6849 lt_globsym_save_CFLAGS=$CFLAGS
6850 LIBS="conftstm.$ac_objext"
6851 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6853 (eval $ac_link) 2>&5
6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6859 LIBS=$lt_globsym_save_LIBS
6860 CFLAGS=$lt_globsym_save_CFLAGS
6862 echo "cannot find nm_test_func in $nlist" >&5
6865 echo "cannot find nm_test_var in $nlist" >&5
6868 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6871 echo "$progname: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6874 rm -rf conftest* conftst*
6876 # Do not use the global_symbol_pipe unless it works.
6877 if test "$pipe_works" = yes; then
6880 lt_cv_sys_global_symbol_pipe=
6886 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6887 lt_cv_sys_global_symbol_to_cdecl=
6889 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6891 $as_echo "failed" >&6; }
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6894 $as_echo "ok" >&6; }
6897 # Response file support.
6898 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6899 nm_file_list_spec='@'
6900 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6901 nm_file_list_spec='@'
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6931 $as_echo_n "checking for sysroot... " >&6; }
6933 # Check whether --with-sysroot was given.
6934 if test "${with_sysroot+set}" = set; then :
6935 withval=$with_sysroot;
6942 case ${with_sysroot} in #(
6944 if test "$GCC" = yes; then
6945 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6949 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6955 $as_echo "${with_sysroot}" >&6; }
6956 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6961 $as_echo "${lt_sysroot:-no}" >&6; }
6967 # Check whether --enable-libtool-lock was given.
6968 if test "${enable_libtool_lock+set}" = set; then :
6969 enableval=$enable_libtool_lock;
6972 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6974 # Some flags need to be propagated to the compiler or linker for good
6978 # Find out which ABI we are using.
6979 echo 'int i;' > conftest.$ac_ext
6980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6981 (eval $ac_compile) 2>&5
6983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984 test $ac_status = 0; }; then
6985 case `/usr/bin/file conftest.$ac_objext` in
6997 # Find out which ABI we are using.
6998 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000 (eval $ac_compile) 2>&5
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; }; then
7004 if test "$lt_cv_prog_gnu_ld" = yes; then
7005 case `/usr/bin/file conftest.$ac_objext` in
7007 LD="${LD-ld} -melf32bsmip"
7010 LD="${LD-ld} -melf32bmipn32"
7013 LD="${LD-ld} -melf64bmip"
7017 case `/usr/bin/file conftest.$ac_objext` in
7033 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7034 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7035 # Find out which ABI we are using.
7036 echo 'int i;' > conftest.$ac_ext
7037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7038 (eval $ac_compile) 2>&5
7040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7041 test $ac_status = 0; }; then
7042 case `/usr/bin/file conftest.o` in
7045 x86_64-*kfreebsd*-gnu)
7046 LD="${LD-ld} -m elf_i386_fbsd"
7049 LD="${LD-ld} -m elf_i386"
7051 powerpc64le-*linux*)
7052 LD="${LD-ld} -m elf32lppclinux"
7055 LD="${LD-ld} -m elf32ppclinux"
7058 LD="${LD-ld} -m elf_s390"
7061 LD="${LD-ld} -m elf32_sparc"
7067 x86_64-*kfreebsd*-gnu)
7068 LD="${LD-ld} -m elf_x86_64_fbsd"
7071 LD="${LD-ld} -m elf_x86_64"
7074 LD="${LD-ld} -m elf64lppc"
7077 LD="${LD-ld} -m elf64ppc"
7079 s390*-*linux*|s390*-*tpf*)
7080 LD="${LD-ld} -m elf64_s390"
7083 LD="${LD-ld} -m elf64_sparc"
7093 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7094 SAVE_CFLAGS="$CFLAGS"
7095 CFLAGS="$CFLAGS -belf"
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7097 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7098 if ${lt_cv_cc_needs_belf+:} false; then :
7099 $as_echo_n "(cached) " >&6
7102 ac_cpp='$CPP $CPPFLAGS'
7103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7118 if ac_fn_c_try_link "$LINENO"; then :
7119 lt_cv_cc_needs_belf=yes
7121 lt_cv_cc_needs_belf=no
7123 rm -f core conftest.err conftest.$ac_objext \
7124 conftest$ac_exeext conftest.$ac_ext
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7133 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7134 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7135 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7136 CFLAGS="$SAVE_CFLAGS"
7140 # Find out which ABI we are using.
7141 echo 'int i;' > conftest.$ac_ext
7142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7143 (eval $ac_compile) 2>&5
7145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7146 test $ac_status = 0; }; then
7147 case `/usr/bin/file conftest.o` in
7149 case $lt_cv_prog_gnu_ld in
7153 LD="${LD-ld} -m elf_x86_64"
7156 LD="${LD-ld} -m elf64_sparc"
7159 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7160 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7165 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7177 need_locks="$enable_libtool_lock"
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}mt; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7185 $as_echo_n "(cached) " >&6
7187 if test -n "$MANIFEST_TOOL"; then
7188 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7208 if test -n "$MANIFEST_TOOL"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7210 $as_echo "$MANIFEST_TOOL" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7218 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7219 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7220 # Extract the first word of "mt", so it can be a program name with args.
7221 set dummy mt; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 if test -n "$ac_ct_MANIFEST_TOOL"; then
7228 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7248 if test -n "$ac_ct_MANIFEST_TOOL"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7250 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7256 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7259 case $cross_compiling:$ac_tool_warned in
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7265 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7268 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7271 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7273 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7274 if ${lt_cv_path_mainfest_tool+:} false; then :
7275 $as_echo_n "(cached) " >&6
7277 lt_cv_path_mainfest_tool=no
7278 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7279 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7280 cat conftest.err >&5
7281 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7282 lt_cv_path_mainfest_tool=yes
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7287 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7288 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7298 rhapsody* | darwin*)
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7305 $as_echo_n "(cached) " >&6
7307 if test -n "$DSYMUTIL"; then
7308 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7328 if test -n "$DSYMUTIL"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7330 $as_echo "$DSYMUTIL" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7338 if test -z "$ac_cv_prog_DSYMUTIL"; then
7339 ac_ct_DSYMUTIL=$DSYMUTIL
7340 # Extract the first word of "dsymutil", so it can be a program name with args.
7341 set dummy dsymutil; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7345 $as_echo_n "(cached) " >&6
7347 if test -n "$ac_ct_DSYMUTIL"; then
7348 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7368 if test -n "$ac_ct_DSYMUTIL"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7370 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7376 if test "x$ac_ct_DSYMUTIL" = x; then
7379 case $cross_compiling:$ac_tool_warned in
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7385 DSYMUTIL=$ac_ct_DSYMUTIL
7388 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7391 if test -n "$ac_tool_prefix"; then
7392 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7393 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_NMEDIT+:} false; then :
7397 $as_echo_n "(cached) " >&6
7399 if test -n "$NMEDIT"; then
7400 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 NMEDIT=$ac_cv_prog_NMEDIT
7420 if test -n "$NMEDIT"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7422 $as_echo "$NMEDIT" >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7430 if test -z "$ac_cv_prog_NMEDIT"; then
7431 ac_ct_NMEDIT=$NMEDIT
7432 # Extract the first word of "nmedit", so it can be a program name with args.
7433 set dummy nmedit; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 if test -n "$ac_ct_NMEDIT"; then
7440 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7460 if test -n "$ac_ct_NMEDIT"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7462 $as_echo "$ac_ct_NMEDIT" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7468 if test "x$ac_ct_NMEDIT" = x; then
7471 case $cross_compiling:$ac_tool_warned in
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475 ac_tool_warned=yes ;;
7477 NMEDIT=$ac_ct_NMEDIT
7480 NMEDIT="$ac_cv_prog_NMEDIT"
7483 if test -n "$ac_tool_prefix"; then
7484 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7485 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_LIPO+:} false; then :
7489 $as_echo_n "(cached) " >&6
7491 if test -n "$LIPO"; then
7492 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 LIPO=$ac_cv_prog_LIPO
7512 if test -n "$LIPO"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7514 $as_echo "$LIPO" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7522 if test -z "$ac_cv_prog_LIPO"; then
7524 # Extract the first word of "lipo", so it can be a program name with args.
7525 set dummy lipo; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7529 $as_echo_n "(cached) " >&6
7531 if test -n "$ac_ct_LIPO"; then
7532 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_ac_ct_LIPO="lipo"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7552 if test -n "$ac_ct_LIPO"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7554 $as_echo "$ac_ct_LIPO" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7560 if test "x$ac_ct_LIPO" = x; then
7563 case $cross_compiling:$ac_tool_warned in
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567 ac_tool_warned=yes ;;
7572 LIPO="$ac_cv_prog_LIPO"
7575 if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}otool; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_OTOOL+:} false; then :
7581 $as_echo_n "(cached) " >&6
7583 if test -n "$OTOOL"; then
7584 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 OTOOL=$ac_cv_prog_OTOOL
7604 if test -n "$OTOOL"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7606 $as_echo "$OTOOL" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7614 if test -z "$ac_cv_prog_OTOOL"; then
7616 # Extract the first word of "otool", so it can be a program name with args.
7617 set dummy otool; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$ac_ct_OTOOL"; then
7624 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_ac_ct_OTOOL="otool"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7644 if test -n "$ac_ct_OTOOL"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7646 $as_echo "$ac_ct_OTOOL" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7652 if test "x$ac_ct_OTOOL" = x; then
7655 case $cross_compiling:$ac_tool_warned in
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7664 OTOOL="$ac_cv_prog_OTOOL"
7667 if test -n "$ac_tool_prefix"; then
7668 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7669 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if ${ac_cv_prog_OTOOL64+:} false; then :
7673 $as_echo_n "(cached) " >&6
7675 if test -n "$OTOOL64"; then
7676 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 OTOOL64=$ac_cv_prog_OTOOL64
7696 if test -n "$OTOOL64"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7698 $as_echo "$OTOOL64" >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7706 if test -z "$ac_cv_prog_OTOOL64"; then
7707 ac_ct_OTOOL64=$OTOOL64
7708 # Extract the first word of "otool64", so it can be a program name with args.
7709 set dummy otool64; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7713 $as_echo_n "(cached) " >&6
7715 if test -n "$ac_ct_OTOOL64"; then
7716 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725 ac_cv_prog_ac_ct_OTOOL64="otool64"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7736 if test -n "$ac_ct_OTOOL64"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7738 $as_echo "$ac_ct_OTOOL64" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7744 if test "x$ac_ct_OTOOL64" = x; then
7747 case $cross_compiling:$ac_tool_warned in
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751 ac_tool_warned=yes ;;
7753 OTOOL64=$ac_ct_OTOOL64
7756 OTOOL64="$ac_cv_prog_OTOOL64"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7786 $as_echo_n "checking for -single_module linker flag... " >&6; }
7787 if ${lt_cv_apple_cc_single_mod+:} false; then :
7788 $as_echo_n "(cached) " >&6
7790 lt_cv_apple_cc_single_mod=no
7791 if test -z "${LT_MULTI_MODULE}"; then
7792 # By default we will add the -single_module flag. You can override
7793 # by either setting the environment variable LT_MULTI_MODULE
7794 # non-empty at configure time, or by adding -multi_module to the
7796 rm -rf libconftest.dylib*
7797 echo "int foo(void){return 1;}" > conftest.c
7798 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7799 -dynamiclib -Wl,-single_module conftest.c" >&5
7800 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7801 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7803 # If there is a non-empty error log, and "single_module"
7804 # appears in it, assume the flag caused a linker warning
7805 if test -s conftest.err && $GREP single_module conftest.err; then
7806 cat conftest.err >&5
7807 # Otherwise, if the output was created with a 0 exit code from
7808 # the compiler, it worked.
7809 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7810 lt_cv_apple_cc_single_mod=yes
7812 cat conftest.err >&5
7814 rm -rf libconftest.dylib*
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7819 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7822 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7823 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7824 $as_echo_n "(cached) " >&6
7826 lt_cv_ld_exported_symbols_list=no
7827 save_LDFLAGS=$LDFLAGS
7828 echo "_main" > conftest.sym
7829 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7841 if ac_fn_c_try_link "$LINENO"; then :
7842 lt_cv_ld_exported_symbols_list=yes
7844 lt_cv_ld_exported_symbols_list=no
7846 rm -f core conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 LDFLAGS="$save_LDFLAGS"
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7852 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7855 $as_echo_n "checking for -force_load linker flag... " >&6; }
7856 if ${lt_cv_ld_force_load+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 lt_cv_ld_force_load=no
7860 cat > conftest.c << _LT_EOF
7861 int forced_loaded() { return 2;}
7863 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7864 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7865 echo "$AR cru libconftest.a conftest.o" >&5
7866 $AR cru libconftest.a conftest.o 2>&5
7867 echo "$RANLIB libconftest.a" >&5
7868 $RANLIB libconftest.a 2>&5
7869 cat > conftest.c << _LT_EOF
7870 int main() { return 0;}
7872 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7873 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7875 if test -s conftest.err && $GREP force_load conftest.err; then
7876 cat conftest.err >&5
7877 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7878 lt_cv_ld_force_load=yes
7880 cat conftest.err >&5
7882 rm -f conftest.err libconftest.a conftest conftest.c
7883 rm -rf conftest.dSYM
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7887 $as_echo "$lt_cv_ld_force_load" >&6; }
7889 rhapsody* | darwin1.[012])
7890 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7892 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7893 darwin*) # darwin 5.x on
7894 # if running on 10.5 or later, the deployment target defaults
7895 # to the OS version, if on x86, and 10.4, the deployment
7896 # target defaults to 10.4. Don't you love it?
7897 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7898 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7899 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7901 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7903 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7907 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7908 _lt_dar_single_mod='$single_module'
7910 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7911 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7913 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7915 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7916 _lt_dsymutil='~$DSYMUTIL $lib || :'
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7925 $as_echo_n "checking for ANSI C header files... " >&6; }
7926 if ${ac_cv_header_stdc+:} false; then :
7927 $as_echo_n "(cached) " >&6
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 ac_cv_header_stdc=yes
7947 ac_cv_header_stdc=no
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 if test $ac_cv_header_stdc = yes; then
7952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7959 $EGREP "memchr" >/dev/null 2>&1; then :
7962 ac_cv_header_stdc=no
7968 if test $ac_cv_header_stdc = yes; then
7969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7976 $EGREP "free" >/dev/null 2>&1; then :
7979 ac_cv_header_stdc=no
7985 if test $ac_cv_header_stdc = yes; then
7986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7987 if test "$cross_compiling" = yes; then :
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7994 #if ((' ' & 0x0FF) == 0x020)
7995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7998 # define ISLOWER(c) \
7999 (('a' <= (c) && (c) <= 'i') \
8000 || ('j' <= (c) && (c) <= 'r') \
8001 || ('s' <= (c) && (c) <= 'z'))
8002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8010 for (i = 0; i < 256; i++)
8011 if (XOR (islower (i), ISLOWER (i))
8012 || toupper (i) != TOUPPER (i))
8017 if ac_fn_c_try_run "$LINENO"; then :
8020 ac_cv_header_stdc=no
8022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8023 conftest.$ac_objext conftest.beam conftest.$ac_ext
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8029 $as_echo "$ac_cv_header_stdc" >&6; }
8030 if test $ac_cv_header_stdc = yes; then
8032 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8037 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8038 inttypes.h stdint.h unistd.h
8040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8044 cat >>confdefs.h <<_ACEOF
8045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8053 for ac_header in dlfcn.h
8055 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8057 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8058 cat >>confdefs.h <<_ACEOF
8059 #define HAVE_DLFCN_H 1
8080 # Check whether --enable-shared was given.
8081 if test "${enable_shared+set}" = set; then :
8082 enableval=$enable_shared; p=${PACKAGE-default}
8084 yes) enable_shared=yes ;;
8085 no) enable_shared=no ;;
8088 # Look at the argument we got. We use all the common list separators.
8089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8090 for pkg in $enableval; do
8092 if test "X$pkg" = "X$p"; then
8111 # Check whether --enable-static was given.
8112 if test "${enable_static+set}" = set; then :
8113 enableval=$enable_static; p=${PACKAGE-default}
8115 yes) enable_static=yes ;;
8116 no) enable_static=no ;;
8119 # Look at the argument we got. We use all the common list separators.
8120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8121 for pkg in $enableval; do
8123 if test "X$pkg" = "X$p"; then
8143 # Check whether --with-pic was given.
8144 if test "${with_pic+set}" = set; then :
8145 withval=$with_pic; lt_p=${PACKAGE-default}
8147 yes|no) pic_mode=$withval ;;
8150 # Look at the argument we got. We use all the common list separators.
8151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8152 for lt_pkg in $withval; do
8154 if test "X$lt_pkg" = "X$lt_p"; then
8166 test -z "$pic_mode" && pic_mode=default
8174 # Check whether --enable-fast-install was given.
8175 if test "${enable_fast_install+set}" = set; then :
8176 enableval=$enable_fast_install; p=${PACKAGE-default}
8178 yes) enable_fast_install=yes ;;
8179 no) enable_fast_install=no ;;
8181 enable_fast_install=no
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8186 if test "X$pkg" = "X$p"; then
8187 enable_fast_install=yes
8194 enable_fast_install=yes
8207 # This can be used to rebuild libtool when needed
8208 LIBTOOL_DEPS="$ltmain"
8210 # Always use our own libtool.
8211 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8242 test -z "$LN_S" && LN_S="ln -s"
8257 if test -n "${ZSH_VERSION+set}" ; then
8258 setopt NO_GLOB_SUBST
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8262 $as_echo_n "checking for objdir... " >&6; }
8263 if ${lt_cv_objdir+:} false; then :
8264 $as_echo_n "(cached) " >&6
8266 rm -f .libs 2>/dev/null
8267 mkdir .libs 2>/dev/null
8268 if test -d .libs; then
8271 # MS-DOS does not allow filenames that begin with a dot.
8274 rmdir .libs 2>/dev/null
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8277 $as_echo "$lt_cv_objdir" >&6; }
8278 objdir=$lt_cv_objdir
8284 cat >>confdefs.h <<_ACEOF
8285 #define LT_OBJDIR "$lt_cv_objdir/"
8293 # AIX sometimes has problems with the GCC collect2 program. For some
8294 # reason, if we set the COLLECT_NAMES environment variable, the problems
8295 # vanish in a puff of smoke.
8296 if test "X${COLLECT_NAMES+set}" != Xset; then
8298 export COLLECT_NAMES
8305 can_build_shared=yes
8307 # All known linkers require a `.a' archive for static linking (except MSVC,
8308 # which needs '.lib').
8311 with_gnu_ld="$lt_cv_prog_gnu_ld"
8314 old_CFLAGS="$CFLAGS"
8316 # Set sane defaults for various variables
8317 test -z "$CC" && CC=cc
8318 test -z "$LTCC" && LTCC=$CC
8319 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8320 test -z "$LD" && LD=ld
8321 test -z "$ac_objext" && ac_objext=o
8323 for cc_temp in $compiler""; do
8325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8331 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8334 # Only perform the check for file, if the check method requires it
8335 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8336 case $deplibs_check_method in
8338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8340 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8341 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8342 $as_echo_n "(cached) " >&6
8346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8349 lt_save_MAGIC_CMD="$MAGIC_CMD"
8350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8352 for ac_dir in $ac_dummy; do
8354 test -z "$ac_dir" && ac_dir=.
8355 if test -f $ac_dir/${ac_tool_prefix}file; then
8356 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8357 if test -n "$file_magic_test_file"; then
8358 case $deplibs_check_method in
8360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8363 $EGREP "$file_magic_regex" > /dev/null; then
8368 *** Warning: the command libtool uses to detect shared libraries,
8369 *** $file_magic_cmd, produces output that libtool cannot recognize.
8370 *** The result is that libtool may fail to recognize shared libraries
8371 *** as such. This will affect the creation of libtool libraries that
8372 *** depend on shared libraries, but programs linked with such libtool
8373 *** libraries will work regardless of this problem. Nevertheless, you
8374 *** may want to report the problem to your system manager and/or to
8375 *** bug-libtool@gnu.org
8385 MAGIC_CMD="$lt_save_MAGIC_CMD"
8390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8391 if test -n "$MAGIC_CMD"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8393 $as_echo "$MAGIC_CMD" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8403 if test -z "$lt_cv_path_MAGIC_CMD"; then
8404 if test -n "$ac_tool_prefix"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8406 $as_echo_n "checking for file... " >&6; }
8407 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8408 $as_echo_n "(cached) " >&6
8412 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8415 lt_save_MAGIC_CMD="$MAGIC_CMD"
8416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8417 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8418 for ac_dir in $ac_dummy; do
8420 test -z "$ac_dir" && ac_dir=.
8421 if test -f $ac_dir/file; then
8422 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8423 if test -n "$file_magic_test_file"; then
8424 case $deplibs_check_method in
8426 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8428 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8429 $EGREP "$file_magic_regex" > /dev/null; then
8434 *** Warning: the command libtool uses to detect shared libraries,
8435 *** $file_magic_cmd, produces output that libtool cannot recognize.
8436 *** The result is that libtool may fail to recognize shared libraries
8437 *** as such. This will affect the creation of libtool libraries that
8438 *** depend on shared libraries, but programs linked with such libtool
8439 *** libraries will work regardless of this problem. Nevertheless, you
8440 *** may want to report the problem to your system manager and/or to
8441 *** bug-libtool@gnu.org
8451 MAGIC_CMD="$lt_save_MAGIC_CMD"
8456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8457 if test -n "$MAGIC_CMD"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8459 $as_echo "$MAGIC_CMD" >&6; }
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8475 # Use C for the default configuration in the libtool script
8479 ac_cpp='$CPP $CPPFLAGS'
8480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8485 # Source file extension for C test sources.
8488 # Object file extension for compiled C test sources.
8492 # Code to be used in simple compile tests
8493 lt_simple_compile_test_code="int some_variable = 0;"
8495 # Code to be used in simple link tests
8496 lt_simple_link_test_code='int main(){return(0);}'
8504 # If no C compiler was specified, use CC.
8507 # If no C compiler flags were specified, use CFLAGS.
8508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8510 # Allow CC to be a program name with arguments.
8513 # Save the default compiler, since it gets overwritten when the other
8514 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8515 compiler_DEFAULT=$CC
8517 # save warnings/boilerplate of simple test code
8518 ac_outfile=conftest.$ac_objext
8519 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8520 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8521 _lt_compiler_boilerplate=`cat conftest.err`
8524 ac_outfile=conftest.$ac_objext
8525 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8526 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8527 _lt_linker_boilerplate=`cat conftest.err`
8532 ## There is no encapsulation within the following macros, do not change
8533 ## the running order or otherwise move them around unless you know exactly
8534 ## what you are doing...
8535 if test -n "$compiler"; then
8537 lt_prog_compiler_no_builtin_flag=
8539 if test "$GCC" = yes; then
8540 case $cc_basename in
8542 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8544 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8548 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8549 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8550 $as_echo_n "(cached) " >&6
8552 lt_cv_prog_compiler_rtti_exceptions=no
8553 ac_outfile=conftest.$ac_objext
8554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8555 lt_compiler_flag="-fno-rtti -fno-exceptions"
8556 # Insert the option either (1) after the last *FLAGS variable, or
8557 # (2) before a word containing "conftest.", or (3) at the end.
8558 # Note that $ac_compile itself does not contain backslashes and begins
8559 # with a dollar sign (not a hyphen), so the echo should work correctly.
8560 # The option is referenced via a variable to avoid confusing sed.
8561 lt_compile=`echo "$ac_compile" | $SED \
8562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8564 -e 's:$: $lt_compiler_flag:'`
8565 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8566 (eval "$lt_compile" 2>conftest.err)
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 if (exit $ac_status) && test -s "$ac_outfile"; then
8571 # The compiler can only warn and ignore the option if not recognized
8572 # So say no if there are warnings other than the usual output.
8573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8575 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8576 lt_cv_prog_compiler_rtti_exceptions=yes
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8583 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8585 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8586 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8598 lt_prog_compiler_wl=
8599 lt_prog_compiler_pic=
8600 lt_prog_compiler_static=
8603 if test "$GCC" = yes; then
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_static='-static'
8609 # All AIX code is PIC.
8610 if test "$host_cpu" = ia64; then
8611 # AIX 5 now supports IA64 processor
8612 lt_prog_compiler_static='-Bstatic'
8619 # see comment about AmigaOS4 .so support
8620 lt_prog_compiler_pic='-fPIC'
8623 # FIXME: we need at least 68020 code to build shared libraries, but
8624 # adding the `-m68020' flag to GCC prevents building anything better,
8626 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8631 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8632 # PIC is the default for these OSes.
8635 mingw* | cygwin* | pw32* | os2* | cegcc*)
8636 # This hack is so that the source file can tell whether it is being
8637 # built for inclusion in a dll (and should export symbols for example).
8638 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8639 # (--disable-auto-import) libraries
8640 lt_prog_compiler_pic='-DDLL_EXPORT'
8643 darwin* | rhapsody*)
8644 # PIC is the default on this platform
8645 # Common symbols not allowed in MH_DYLIB files
8646 lt_prog_compiler_pic='-fno-common'
8650 # PIC is the default for Haiku.
8651 # The "-static" flag exists, but is broken.
8652 lt_prog_compiler_static=
8656 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8657 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8658 # sets the default TLS model and affects inlining.
8664 lt_prog_compiler_pic='-fPIC'
8670 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8671 # Instead, we relocate shared libraries at runtime.
8675 # Just because we use GCC doesn't mean we suddenly get shared libraries
8676 # on systems that don't support them.
8677 lt_prog_compiler_can_build_shared=no
8682 # QNX uses GNU C++, but need to define -shared option too, otherwise
8684 lt_prog_compiler_pic='-fPIC -shared'
8688 if test -d /usr/nec; then
8689 lt_prog_compiler_pic=-Kconform_pic
8694 lt_prog_compiler_pic='-fPIC'
8698 case $cc_basename in
8699 nvcc*) # Cuda Compiler Driver 2.2
8700 lt_prog_compiler_wl='-Xlinker '
8701 if test -n "$lt_prog_compiler_pic"; then
8702 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8707 # PORTME Check for flag to pass linker flags through the system compiler.
8710 lt_prog_compiler_wl='-Wl,'
8711 if test "$host_cpu" = ia64; then
8712 # AIX 5 now supports IA64 processor
8713 lt_prog_compiler_static='-Bstatic'
8715 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8719 mingw* | cygwin* | pw32* | os2* | cegcc*)
8720 # This hack is so that the source file can tell whether it is being
8721 # built for inclusion in a dll (and should export symbols for example).
8722 lt_prog_compiler_pic='-DDLL_EXPORT'
8725 hpux9* | hpux10* | hpux11*)
8726 lt_prog_compiler_wl='-Wl,'
8727 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8734 lt_prog_compiler_pic='+Z'
8737 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8738 lt_prog_compiler_static='${wl}-a ${wl}archive'
8741 irix5* | irix6* | nonstopux*)
8742 lt_prog_compiler_wl='-Wl,'
8743 # PIC (with -KPIC) is the default.
8744 lt_prog_compiler_static='-non_shared'
8747 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8748 case $cc_basename in
8749 # old Intel for x86_64 which still supported -KPIC.
8751 lt_prog_compiler_wl='-Wl,'
8752 lt_prog_compiler_pic='-KPIC'
8753 lt_prog_compiler_static='-static'
8755 # icc used to be incompatible with GCC.
8756 # ICC 10 doesn't accept -KPIC any more.
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-fPIC'
8760 lt_prog_compiler_static='-static'
8762 # Lahey Fortran 8.1.
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_pic='--shared'
8766 lt_prog_compiler_static='--static'
8769 # NAG Fortran compiler
8770 lt_prog_compiler_wl='-Wl,-Wl,,'
8771 lt_prog_compiler_pic='-PIC'
8772 lt_prog_compiler_static='-Bstatic'
8774 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8775 # Portland Group compilers (*not* the Pentium gcc compiler,
8776 # which looks to be a dead project)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-fpic'
8779 lt_prog_compiler_static='-Bstatic'
8782 lt_prog_compiler_wl='-Wl,'
8783 # All Alpha code is PIC.
8784 lt_prog_compiler_static='-non_shared'
8786 xl* | bgxl* | bgf* | mpixl*)
8787 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-qpic'
8790 lt_prog_compiler_static='-qstaticlink'
8793 case `$CC -V 2>&1 | sed 5q` in
8794 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8795 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 lt_prog_compiler_wl=''
8800 *Sun\ F* | *Sun*Fortran*)
8801 lt_prog_compiler_pic='-KPIC'
8802 lt_prog_compiler_static='-Bstatic'
8803 lt_prog_compiler_wl='-Qoption ld '
8807 lt_prog_compiler_pic='-KPIC'
8808 lt_prog_compiler_static='-Bstatic'
8809 lt_prog_compiler_wl='-Wl,'
8811 *Intel*\ [CF]*Compiler*)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-fPIC'
8814 lt_prog_compiler_static='-static'
8817 lt_prog_compiler_wl='-Wl,'
8818 lt_prog_compiler_pic='-fpic'
8819 lt_prog_compiler_static='-Bstatic'
8827 lt_prog_compiler_pic='-KPIC'
8828 lt_prog_compiler_static='-Bstatic'
8832 # QNX uses GNU C++, but need to define -shared option too, otherwise
8834 lt_prog_compiler_pic='-fPIC -shared'
8837 osf3* | osf4* | osf5*)
8838 lt_prog_compiler_wl='-Wl,'
8839 # All OSF/1 code is PIC.
8840 lt_prog_compiler_static='-non_shared'
8844 lt_prog_compiler_static='-non_shared'
8848 lt_prog_compiler_pic='-KPIC'
8849 lt_prog_compiler_static='-Bstatic'
8850 case $cc_basename in
8851 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8852 lt_prog_compiler_wl='-Qoption ld ';;
8854 lt_prog_compiler_wl='-Wl,';;
8859 lt_prog_compiler_wl='-Qoption ld '
8860 lt_prog_compiler_pic='-PIC'
8861 lt_prog_compiler_static='-Bstatic'
8864 sysv4 | sysv4.2uw2* | sysv4.3*)
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8871 if test -d /usr/nec ;then
8872 lt_prog_compiler_pic='-Kconform_pic'
8873 lt_prog_compiler_static='-Bstatic'
8877 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8878 lt_prog_compiler_wl='-Wl,'
8879 lt_prog_compiler_pic='-KPIC'
8880 lt_prog_compiler_static='-Bstatic'
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_can_build_shared=no
8889 lt_prog_compiler_pic='-pic'
8890 lt_prog_compiler_static='-Bstatic'
8894 lt_prog_compiler_can_build_shared=no
8900 # For platforms which do not support PIC, -DPIC is meaningless:
8902 lt_prog_compiler_pic=
8905 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8910 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8911 if ${lt_cv_prog_compiler_pic+:} false; then :
8912 $as_echo_n "(cached) " >&6
8914 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8917 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8918 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8921 # Check to make sure the PIC flag actually works.
8923 if test -n "$lt_prog_compiler_pic"; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8925 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8926 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8927 $as_echo_n "(cached) " >&6
8929 lt_cv_prog_compiler_pic_works=no
8930 ac_outfile=conftest.$ac_objext
8931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8932 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8933 # Insert the option either (1) after the last *FLAGS variable, or
8934 # (2) before a word containing "conftest.", or (3) at the end.
8935 # Note that $ac_compile itself does not contain backslashes and begins
8936 # with a dollar sign (not a hyphen), so the echo should work correctly.
8937 # The option is referenced via a variable to avoid confusing sed.
8938 lt_compile=`echo "$ac_compile" | $SED \
8939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8941 -e 's:$: $lt_compiler_flag:'`
8942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8943 (eval "$lt_compile" 2>conftest.err)
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 if (exit $ac_status) && test -s "$ac_outfile"; then
8948 # The compiler can only warn and ignore the option if not recognized
8949 # So say no if there are warnings other than the usual output.
8950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8953 lt_cv_prog_compiler_pic_works=yes
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8960 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8962 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8963 case $lt_prog_compiler_pic in
8965 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8968 lt_prog_compiler_pic=
8969 lt_prog_compiler_can_build_shared=no
8985 # Check to make sure the static flag actually works.
8987 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8989 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8990 if ${lt_cv_prog_compiler_static_works+:} false; then :
8991 $as_echo_n "(cached) " >&6
8993 lt_cv_prog_compiler_static_works=no
8994 save_LDFLAGS="$LDFLAGS"
8995 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8996 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8997 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8998 # The linker can only warn and ignore the option if not recognized
8999 # So say no if there are warnings
9000 if test -s conftest.err; then
9001 # Append any errors to the config.log.
9002 cat conftest.err 1>&5
9003 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9005 if diff conftest.exp conftest.er2 >/dev/null; then
9006 lt_cv_prog_compiler_static_works=yes
9009 lt_cv_prog_compiler_static_works=yes
9013 LDFLAGS="$save_LDFLAGS"
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9017 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9019 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9022 lt_prog_compiler_static=
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9032 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9033 if ${lt_cv_prog_compiler_c_o+:} false; then :
9034 $as_echo_n "(cached) " >&6
9036 lt_cv_prog_compiler_c_o=no
9037 $RM -r conftest 2>/dev/null
9041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9043 lt_compiler_flag="-o out/conftest2.$ac_objext"
9044 # Insert the option either (1) after the last *FLAGS variable, or
9045 # (2) before a word containing "conftest.", or (3) at the end.
9046 # Note that $ac_compile itself does not contain backslashes and begins
9047 # with a dollar sign (not a hyphen), so the echo should work correctly.
9048 lt_compile=`echo "$ac_compile" | $SED \
9049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9051 -e 's:$: $lt_compiler_flag:'`
9052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9053 (eval "$lt_compile" 2>out/conftest.err)
9055 cat out/conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9059 # The compiler can only warn and ignore the option if not recognized
9060 # So say no if there are warnings
9061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9064 lt_cv_prog_compiler_c_o=yes
9069 # SGI C++ compiler will create directory out/ii_files/ for
9070 # template instantiation
9071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9072 $RM out/* && rmdir out
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9079 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9088 if ${lt_cv_prog_compiler_c_o+:} false; then :
9089 $as_echo_n "(cached) " >&6
9091 lt_cv_prog_compiler_c_o=no
9092 $RM -r conftest 2>/dev/null
9096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9098 lt_compiler_flag="-o out/conftest2.$ac_objext"
9099 # Insert the option either (1) after the last *FLAGS variable, or
9100 # (2) before a word containing "conftest.", or (3) at the end.
9101 # Note that $ac_compile itself does not contain backslashes and begins
9102 # with a dollar sign (not a hyphen), so the echo should work correctly.
9103 lt_compile=`echo "$ac_compile" | $SED \
9104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9106 -e 's:$: $lt_compiler_flag:'`
9107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9108 (eval "$lt_compile" 2>out/conftest.err)
9110 cat out/conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9114 # The compiler can only warn and ignore the option if not recognized
9115 # So say no if there are warnings
9116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9119 lt_cv_prog_compiler_c_o=yes
9124 # SGI C++ compiler will create directory out/ii_files/ for
9125 # template instantiation
9126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9127 $RM out/* && rmdir out
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9134 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9139 hard_links="nottested"
9140 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9141 # do not overwrite the value of need_locks provided by the user
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9143 $as_echo_n "checking if we can lock with hard links... " >&6; }
9146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9148 ln conftest.a conftest.b 2>&5 || hard_links=no
9149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9151 $as_echo "$hard_links" >&6; }
9152 if test "$hard_links" = no; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9154 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9167 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9170 allow_undefined_flag=
9171 always_export_symbols=no
9173 archive_expsym_cmds=
9174 compiler_needs_object=no
9175 enable_shared_with_static_runtimes=no
9176 export_dynamic_flag_spec=
9177 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9178 hardcode_automatic=no
9180 hardcode_direct_absolute=no
9181 hardcode_libdir_flag_spec=
9182 hardcode_libdir_separator=
9184 hardcode_shlibpath_var=unsupported
9186 link_all_deplibs=unknown
9189 old_archive_from_new_cmds=
9190 old_archive_from_expsyms_cmds=
9191 thread_safe_flag_spec=
9192 whole_archive_flag_spec=
9193 # include_expsyms should be a list of space-separated symbols to be *always*
9194 # included in the symbol list
9196 # exclude_expsyms can be an extended regexp of symbols to exclude
9197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9199 # as well as any symbol that contains `d'.
9200 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9202 # platforms (ab)use it in PIC code, but their linkers get confused if
9203 # the symbol is explicitly referenced. Since portable code cannot
9204 # rely on this symbol name, it's probably fine to never include it in
9205 # preloaded symbol tables.
9206 # Exclude shared library initialization/finalization symbols.
9207 extract_expsyms_cmds=
9210 cygwin* | mingw* | pw32* | cegcc*)
9211 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9212 # When not using gcc, we currently assume that we are using
9213 # Microsoft Visual C++.
9214 if test "$GCC" != yes; then
9219 # we just hope/assume this is gcc and not c89 (= MSVC++)
9229 # On some targets, GNU ld is compatible enough with the native linker
9230 # that we're better off using the native interface for both.
9231 lt_use_gnu_ld_interface=no
9232 if test "$with_gnu_ld" = yes; then
9235 # The AIX port of GNU ld has always aspired to compatibility
9236 # with the native linker. However, as the warning in the GNU ld
9237 # block says, versions before 2.19.5* couldn't really create working
9238 # shared libraries, regardless of the interface used.
9239 case `$LD -v 2>&1` in
9240 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9241 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9242 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9244 lt_use_gnu_ld_interface=yes
9249 lt_use_gnu_ld_interface=yes
9254 if test "$lt_use_gnu_ld_interface" = yes; then
9255 # If archive_cmds runs LD, not CC, wlarc should be empty
9258 # Set some defaults for GNU ld with shared library support. These
9259 # are reset later if shared libraries are not supported. Putting them
9260 # here allows them to be overridden if necessary.
9261 runpath_var=LD_RUN_PATH
9262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9263 export_dynamic_flag_spec='${wl}--export-dynamic'
9264 # ancient GNU ld didn't support --whole-archive et. al.
9265 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9266 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9268 whole_archive_flag_spec=
9270 supports_anon_versioning=no
9271 case `$LD -v 2>&1` in
9272 *GNU\ gold*) supports_anon_versioning=yes ;;
9273 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9274 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9275 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9276 *\ 2.11.*) ;; # other 2.11 versions
9277 *) supports_anon_versioning=yes ;;
9280 # See if GNU ld supports shared libraries.
9283 # On AIX/PPC, the GNU linker is very broken
9284 if test "$host_cpu" != ia64; then
9288 *** Warning: the GNU linker, at least up to release 2.19, is reported
9289 *** to be unable to reliably create shared libraries on AIX.
9290 *** Therefore, libtool is disabling shared libraries support. If you
9291 *** really care for shared libraries, you may want to install binutils
9292 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9293 *** You will then need to restart the configuration process.
9302 # see comment about AmigaOS4 .so support
9303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9304 archive_expsym_cmds=''
9307 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)'
9308 hardcode_libdir_flag_spec='-L$libdir'
9309 hardcode_minus_L=yes
9315 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9316 allow_undefined_flag=unsupported
9317 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9318 # support --undefined. This deserves some investigation. FIXME
9319 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325 cygwin* | mingw* | pw32* | cegcc*)
9326 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9327 # as there is no search path for DLLs.
9328 hardcode_libdir_flag_spec='-L$libdir'
9329 export_dynamic_flag_spec='${wl}--export-all-symbols'
9330 allow_undefined_flag=unsupported
9331 always_export_symbols=no
9332 enable_shared_with_static_runtimes=yes
9333 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'
9334 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9336 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9338 # If the export-symbols file already is a .def file (1st line
9339 # is EXPORTS), use it as is; otherwise, prepend...
9340 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9341 cp $export_symbols $output_objdir/$soname.def;
9343 echo EXPORTS > $output_objdir/$soname.def;
9344 cat $export_symbols >> $output_objdir/$soname.def;
9346 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354 link_all_deplibs=yes
9359 hardcode_shlibpath_var=no
9360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9361 export_dynamic_flag_spec='${wl}-E'
9362 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9363 # Instead, shared libraries are loaded at an image base (0x10000000 by
9364 # default) and relocated if they conflict, which is a slow very memory
9365 # consuming and fragmenting process. To avoid this, we pick a random,
9366 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9367 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9369 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'
9372 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9374 if test "$host_os" = linux-dietlibc; then
9375 case $cc_basename in
9376 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9379 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9380 && test "$tmp_diet" = no
9382 tmp_addflag=' $pic_flag'
9383 tmp_sharedflag='-shared'
9384 case $cc_basename,$host_cpu in
9385 pgcc*) # Portland Group C compiler
9386 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'
9387 tmp_addflag=' $pic_flag'
9389 pgf77* | pgf90* | pgf95* | pgfortran*)
9390 # Portland Group f77 and f90 compilers
9391 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'
9392 tmp_addflag=' $pic_flag -Mnomain' ;;
9393 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9394 tmp_addflag=' -i_dynamic' ;;
9395 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9396 tmp_addflag=' -i_dynamic -nofor_main' ;;
9397 ifc* | ifort*) # Intel Fortran compiler
9398 tmp_addflag=' -nofor_main' ;;
9399 lf95*) # Lahey Fortran 8.1
9400 whole_archive_flag_spec=
9401 tmp_sharedflag='--shared' ;;
9402 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9403 tmp_sharedflag='-qmkshrobj'
9405 nvcc*) # Cuda Compiler Driver 2.2
9406 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'
9407 compiler_needs_object=yes
9410 case `$CC -V 2>&1 | sed 5q` in
9411 *Sun\ C*) # Sun C 5.9
9412 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'
9413 compiler_needs_object=yes
9414 tmp_sharedflag='-G' ;;
9415 *Sun\ F*) # Sun Fortran 8.3
9416 tmp_sharedflag='-G' ;;
9418 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 if test "x$supports_anon_versioning" = xyes; then
9421 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9423 echo "local: *; };" >> $output_objdir/$libname.ver~
9424 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9427 case $cc_basename in
9428 xlf* | bgf* | bgxlf* | mpixlf*)
9429 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9430 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9432 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9433 if test "x$supports_anon_versioning" = xyes; then
9434 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9435 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9436 echo "local: *; };" >> $output_objdir/$libname.ver~
9437 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9448 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9451 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9457 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9461 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9462 *** create shared libraries on Solaris systems. Therefore, libtool
9463 *** is disabling shared libraries support. We urge you to upgrade GNU
9464 *** binutils to release 2.9.1 or newer. Another option is to modify
9465 *** your PATH or compiler configuration so that the native linker is
9466 *** used, and then restart.
9469 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9478 case `$LD -v 2>&1` in
9479 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9483 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9484 *** reliably create shared libraries on SCO systems. Therefore, libtool
9485 *** is disabling shared libraries support. We urge you to upgrade GNU
9486 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9487 *** your PATH or compiler configuration so that the native linker is
9488 *** used, and then restart.
9493 # For security reasons, it is highly recommended that you always
9494 # use absolute paths for naming shared libraries, and exclude the
9495 # DT_RUNPATH tag from executables and libraries. But doing so
9496 # requires that you compile everything twice, which is a pain.
9497 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9500 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9509 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9512 hardcode_shlibpath_var=no
9516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9517 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9525 if test "$ld_shlibs" = no; then
9527 hardcode_libdir_flag_spec=
9528 export_dynamic_flag_spec=
9529 whole_archive_flag_spec=
9532 # PORTME fill in a description of your system's linker (not GNU ld)
9535 allow_undefined_flag=unsupported
9536 always_export_symbols=yes
9537 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'
9538 # Note: this linker hardcodes the directories in LIBPATH if there
9539 # are no directories specified by -L.
9540 hardcode_minus_L=yes
9541 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9542 # Neither direct hardcoding nor static linking is supported with a
9544 hardcode_direct=unsupported
9549 if test "$host_cpu" = ia64; then
9550 # On IA64, the linker does run time linking by default, so we don't
9551 # have to do anything special.
9552 aix_use_runtimelinking=no
9553 exp_sym_flag='-Bexport'
9556 # If we're using GNU nm, then we don't want the "-C" option.
9557 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9558 # Also, AIX nm treats weak defined symbols like other global
9559 # defined symbols, whereas GNU nm marks them as "W".
9560 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9561 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'
9563 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'
9565 aix_use_runtimelinking=no
9567 # Test if we are trying to use run time linking or normal
9568 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9569 # need to do runtime linking.
9570 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9571 for ld_flag in $LDFLAGS; do
9572 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9573 aix_use_runtimelinking=yes
9580 exp_sym_flag='-bexport'
9581 no_entry_flag='-bnoentry'
9584 # When large executables or shared objects are built, AIX ld can
9585 # have problems creating the table of contents. If linking a library
9586 # or program results in "error TOC overflow" add -mminimal-toc to
9587 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9588 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9592 hardcode_direct_absolute=yes
9593 hardcode_libdir_separator=':'
9594 link_all_deplibs=yes
9595 file_list_spec='${wl}-f,'
9597 if test "$GCC" = yes; then
9598 case $host_os in aix4.[012]|aix4.[012].*)
9599 # We only want to do this on AIX 4.2 and lower, the check
9600 # below for broken collect2 doesn't work under 4.3+
9601 collect2name=`${CC} -print-prog-name=collect2`
9602 if test -f "$collect2name" &&
9603 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9605 # We have reworked collect2
9608 # We have old collect2
9609 hardcode_direct=unsupported
9610 # It fails to find uninstalled libraries when the uninstalled
9611 # path is not listed in the libpath. Setting hardcode_minus_L
9612 # to unsupported forces relinking
9613 hardcode_minus_L=yes
9614 hardcode_libdir_flag_spec='-L$libdir'
9615 hardcode_libdir_separator=
9619 shared_flag='-shared'
9620 if test "$aix_use_runtimelinking" = yes; then
9621 shared_flag="$shared_flag "'${wl}-G'
9625 if test "$host_cpu" = ia64; then
9626 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9627 # chokes on -Wl,-G. The following line is correct:
9630 if test "$aix_use_runtimelinking" = yes; then
9631 shared_flag='${wl}-G'
9633 shared_flag='${wl}-bM:SRE'
9638 export_dynamic_flag_spec='${wl}-bexpall'
9639 # It seems that -bexpall does not export symbols beginning with
9640 # underscore (_), so it is better to generate a list of symbols to export.
9641 always_export_symbols=yes
9642 if test "$aix_use_runtimelinking" = yes; then
9643 # Warning - without using the other runtime loading flags (-brtl),
9644 # -berok will link without error, but may produce a broken library.
9645 allow_undefined_flag='-berok'
9646 # Determine the default libpath from the value encoded in an
9648 if test "${lt_cv_aix_libpath+set}" = set; then
9649 aix_libpath=$lt_cv_aix_libpath
9651 if ${lt_cv_aix_libpath_+:} false; then :
9652 $as_echo_n "(cached) " >&6
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9665 if ac_fn_c_try_link "$LINENO"; then :
9667 lt_aix_libpath_sed='
9668 /Import File Strings/,/^$/ {
9670 s/^0 *\([^ ]*\) *$/\1/
9674 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675 # Check for a 64-bit object if we didn't find anything.
9676 if test -z "$lt_cv_aix_libpath_"; then
9677 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 if test -z "$lt_cv_aix_libpath_"; then
9683 lt_cv_aix_libpath_="/usr/lib:/lib"
9688 aix_libpath=$lt_cv_aix_libpath_
9691 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9692 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"
9694 if test "$host_cpu" = ia64; then
9695 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9696 allow_undefined_flag="-z nodefs"
9697 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"
9699 # Determine the default libpath from the value encoded in an
9701 if test "${lt_cv_aix_libpath+set}" = set; then
9702 aix_libpath=$lt_cv_aix_libpath
9704 if ${lt_cv_aix_libpath_+:} false; then :
9705 $as_echo_n "(cached) " >&6
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9718 if ac_fn_c_try_link "$LINENO"; then :
9720 lt_aix_libpath_sed='
9721 /Import File Strings/,/^$/ {
9723 s/^0 *\([^ ]*\) *$/\1/
9727 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728 # Check for a 64-bit object if we didn't find anything.
9729 if test -z "$lt_cv_aix_libpath_"; then
9730 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9733 rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 if test -z "$lt_cv_aix_libpath_"; then
9736 lt_cv_aix_libpath_="/usr/lib:/lib"
9741 aix_libpath=$lt_cv_aix_libpath_
9744 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9745 # Warning - without using the other run time loading flags,
9746 # -berok will link without error, but may produce a broken library.
9747 no_undefined_flag=' ${wl}-bernotok'
9748 allow_undefined_flag=' ${wl}-berok'
9749 if test "$with_gnu_ld" = yes; then
9750 # We only use this code for GNU lds that support --whole-archive.
9751 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9753 # Exported symbols can be pulled into shared objects from archives
9754 whole_archive_flag_spec='$convenience'
9756 archive_cmds_need_lc=yes
9757 # This is similar to how AIX traditionally builds its shared libraries.
9758 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'
9766 # see comment about AmigaOS4 .so support
9767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9768 archive_expsym_cmds=''
9771 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)'
9772 hardcode_libdir_flag_spec='-L$libdir'
9773 hardcode_minus_L=yes
9779 export_dynamic_flag_spec=-rdynamic
9782 cygwin* | mingw* | pw32* | cegcc*)
9783 # When not using gcc, we currently assume that we are using
9784 # Microsoft Visual C++.
9785 # hardcode_libdir_flag_spec is actually meaningless, as there is
9786 # no search path for DLLs.
9787 case $cc_basename in
9790 hardcode_libdir_flag_spec=' '
9791 allow_undefined_flag=unsupported
9792 always_export_symbols=yes
9794 # Tell ltmain to make .lib files, not .a files.
9796 # Tell ltmain to make .dll files, not .so files.
9798 # FIXME: Setting linknames here is a bad hack.
9799 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9800 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9801 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9803 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9805 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9807 # The linker will not automatically build a static lib if we build a DLL.
9808 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9809 enable_shared_with_static_runtimes=yes
9810 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9813 old_postinstall_cmds='chmod 644 $oldlib'
9814 postlink_cmds='lt_outputfile="@OUTPUT@"~
9815 lt_tool_outputfile="@TOOL_OUTPUT@"~
9816 case $lt_outputfile in
9819 lt_outputfile="$lt_outputfile.exe"
9820 lt_tool_outputfile="$lt_tool_outputfile.exe"
9823 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9824 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9825 $RM "$lt_outputfile.manifest";
9829 # Assume MSVC wrapper
9830 hardcode_libdir_flag_spec=' '
9831 allow_undefined_flag=unsupported
9832 # Tell ltmain to make .lib files, not .a files.
9834 # Tell ltmain to make .dll files, not .so files.
9836 # FIXME: Setting linknames here is a bad hack.
9837 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9838 # The linker will automatically build a .lib file if we build a DLL.
9839 old_archive_from_new_cmds='true'
9840 # FIXME: Should let the user specify the lib program.
9841 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9842 enable_shared_with_static_runtimes=yes
9847 darwin* | rhapsody*)
9850 archive_cmds_need_lc=no
9852 hardcode_automatic=yes
9853 hardcode_shlibpath_var=unsupported
9854 if test "$lt_cv_ld_force_load" = "yes"; then
9855 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\"`'
9858 whole_archive_flag_spec=''
9860 link_all_deplibs=yes
9861 allow_undefined_flag="$_lt_dar_allow_undefined"
9862 case $cc_basename in
9863 ifort*) _lt_dar_can_shared=yes ;;
9864 *) _lt_dar_can_shared=$GCC ;;
9866 if test "$_lt_dar_can_shared" = "yes"; then
9867 output_verbose_link_cmd=func_echo_all
9868 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9869 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9870 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}"
9871 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}"
9880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_libdir_flag_spec='-L$libdir'
9882 hardcode_shlibpath_var=no
9885 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9886 # support. Future versions do this automatically, but an explicit c++rt0.o
9887 # does not break anything, and helps significantly (at the cost of a little
9890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9891 hardcode_libdir_flag_spec='-R$libdir'
9893 hardcode_shlibpath_var=no
9896 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9900 hardcode_minus_L=yes
9901 hardcode_shlibpath_var=no
9904 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9905 freebsd* | dragonfly*)
9906 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9907 hardcode_libdir_flag_spec='-R$libdir'
9909 hardcode_shlibpath_var=no
9913 if test "$GCC" = yes; then
9914 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'
9916 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'
9918 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9919 hardcode_libdir_separator=:
9922 # hardcode_minus_L: Not really in the search PATH,
9923 # but as the default location of the library.
9924 hardcode_minus_L=yes
9925 export_dynamic_flag_spec='${wl}-E'
9929 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9930 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9932 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9934 if test "$with_gnu_ld" = no; then
9935 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9936 hardcode_libdir_separator=:
9938 hardcode_direct_absolute=yes
9939 export_dynamic_flag_spec='${wl}-E'
9940 # hardcode_minus_L: Not really in the search PATH,
9941 # but as the default location of the library.
9942 hardcode_minus_L=yes
9947 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9950 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9953 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9956 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9969 # Older versions of the 11.00 compiler do not understand -b yet
9970 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9972 $as_echo_n "checking if $CC understands -b... " >&6; }
9973 if ${lt_cv_prog_compiler__b+:} false; then :
9974 $as_echo_n "(cached) " >&6
9976 lt_cv_prog_compiler__b=no
9977 save_LDFLAGS="$LDFLAGS"
9978 LDFLAGS="$LDFLAGS -b"
9979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9981 # The linker can only warn and ignore the option if not recognized
9982 # So say no if there are warnings
9983 if test -s conftest.err; then
9984 # Append any errors to the config.log.
9985 cat conftest.err 1>&5
9986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9988 if diff conftest.exp conftest.er2 >/dev/null; then
9989 lt_cv_prog_compiler__b=yes
9992 lt_cv_prog_compiler__b=yes
9996 LDFLAGS="$save_LDFLAGS"
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10000 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10002 if test x"$lt_cv_prog_compiler__b" = xyes; then
10003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10011 if test "$with_gnu_ld" = no; then
10012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10013 hardcode_libdir_separator=:
10018 hardcode_shlibpath_var=no
10021 hardcode_direct=yes
10022 hardcode_direct_absolute=yes
10023 export_dynamic_flag_spec='${wl}-E'
10025 # hardcode_minus_L: Not really in the search PATH,
10026 # but as the default location of the library.
10027 hardcode_minus_L=yes
10033 irix5* | irix6* | nonstopux*)
10034 if test "$GCC" = yes; then
10035 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'
10036 # Try to use the -exported_symbol ld option, if it does not
10037 # work, assume that -exports_file does not work either and
10038 # implicitly export all symbols.
10039 # This should be the same for all languages, so no per-tag cache variable.
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10041 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10042 if ${lt_cv_irix_exported_symbol+:} false; then :
10043 $as_echo_n "(cached) " >&6
10045 save_LDFLAGS="$LDFLAGS"
10046 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 int foo (void) { return 0; }
10051 if ac_fn_c_try_link "$LINENO"; then :
10052 lt_cv_irix_exported_symbol=yes
10054 lt_cv_irix_exported_symbol=no
10056 rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058 LDFLAGS="$save_LDFLAGS"
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10061 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10062 if test "$lt_cv_irix_exported_symbol" = yes; then
10063 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'
10066 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'
10067 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'
10069 archive_cmds_need_lc='no'
10070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10071 hardcode_libdir_separator=:
10073 link_all_deplibs=yes
10077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10080 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10082 hardcode_libdir_flag_spec='-R$libdir'
10083 hardcode_direct=yes
10084 hardcode_shlibpath_var=no
10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_direct=yes
10090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10091 hardcode_libdir_separator=:
10092 hardcode_shlibpath_var=no
10099 if test -f /usr/libexec/ld.so; then
10100 hardcode_direct=yes
10101 hardcode_shlibpath_var=no
10102 hardcode_direct_absolute=yes
10103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10107 export_dynamic_flag_spec='${wl}-E'
10110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10112 hardcode_libdir_flag_spec='-R$libdir'
10115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_minus_L=yes
10128 allow_undefined_flag=unsupported
10129 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'
10130 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10134 if test "$GCC" = yes; then
10135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10136 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'
10138 allow_undefined_flag=' -expect_unresolved \*'
10139 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'
10141 archive_cmds_need_lc='no'
10142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143 hardcode_libdir_separator=:
10146 osf4* | osf5*) # as osf3* with the addition of -msym flag
10147 if test "$GCC" = yes; then
10148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10149 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'
10150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10152 allow_undefined_flag=' -expect_unresolved \*'
10153 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'
10154 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~
10155 $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'
10157 # Both c and cxx compiler support -rpath directly
10158 hardcode_libdir_flag_spec='-rpath $libdir'
10160 archive_cmds_need_lc='no'
10161 hardcode_libdir_separator=:
10165 no_undefined_flag=' -z defs'
10166 if test "$GCC" = yes; then
10168 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10170 $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'
10172 case `$CC -V 2>&1` in
10175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10181 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10183 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10187 hardcode_libdir_flag_spec='-R$libdir'
10188 hardcode_shlibpath_var=no
10190 solaris2.[0-5] | solaris2.[0-5].*) ;;
10192 # The compiler driver will combine and reorder linker options,
10193 # but understands `-z linker_flag'. GCC discards it without `$wl',
10194 # but is careful enough not to reorder.
10195 # Supported since Solaris 2.6 (maybe 2.5.1?)
10196 if test "$GCC" = yes; then
10197 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10199 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10203 link_all_deplibs=yes
10207 if test "x$host_vendor" = xsequent; then
10208 # Use $CC to link under sequent, because it throws in some extra .o
10209 # files that make .init and .fini sections work.
10210 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10212 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_libdir_flag_spec='-L$libdir'
10215 hardcode_direct=yes
10216 hardcode_minus_L=yes
10217 hardcode_shlibpath_var=no
10221 case $host_vendor in
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_direct=yes # is this really true???
10227 ## LD is ld it makes a PLAMLIB
10228 ## CC just makes a GrossModule.
10229 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10230 reload_cmds='$CC -r -o $output$reload_objs'
10234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10238 runpath_var='LD_RUN_PATH'
10239 hardcode_shlibpath_var=no
10243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244 hardcode_shlibpath_var=no
10245 export_dynamic_flag_spec='-Bexport'
10249 if test -d /usr/nec; then
10250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10251 hardcode_shlibpath_var=no
10252 runpath_var=LD_RUN_PATH
10253 hardcode_runpath_var=yes
10258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10259 no_undefined_flag='${wl}-z,text'
10260 archive_cmds_need_lc=no
10261 hardcode_shlibpath_var=no
10262 runpath_var='LD_RUN_PATH'
10264 if test "$GCC" = yes; then
10265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 sysv5* | sco3.2v5* | sco5v6*)
10274 # Note: We can NOT use -z defs as we might desire, because we do not
10275 # link with -lc, and that would cause any symbols used from libc to
10276 # always be unresolved, which means just about no library would
10277 # ever link correctly. If we're not using GNU ld we use -z text
10278 # though, which does catch some bad symbols but isn't as heavy-handed
10280 no_undefined_flag='${wl}-z,text'
10281 allow_undefined_flag='${wl}-z,nodefs'
10282 archive_cmds_need_lc=no
10283 hardcode_shlibpath_var=no
10284 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10285 hardcode_libdir_separator=':'
10286 link_all_deplibs=yes
10287 export_dynamic_flag_spec='${wl}-Bexport'
10288 runpath_var='LD_RUN_PATH'
10290 if test "$GCC" = yes; then
10291 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301 hardcode_libdir_flag_spec='-L$libdir'
10302 hardcode_shlibpath_var=no
10310 if test x$host_vendor = xsni; then
10312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10313 export_dynamic_flag_spec='${wl}-Blargedynsym'
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10320 $as_echo "$ld_shlibs" >&6; }
10321 test "$ld_shlibs" = no && can_build_shared=no
10323 with_gnu_ld=$with_gnu_ld
10340 # Do we need to explicitly link libc?
10342 case "x$archive_cmds_need_lc" in
10344 # Assume -lc should be added
10345 archive_cmds_need_lc=yes
10347 if test "$enable_shared" = yes && test "$GCC" = yes; then
10348 case $archive_cmds in
10350 # FIXME: we may have to deal with multi-command sequences.
10353 # Test whether the compiler implicitly links with -lc since on some
10354 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10355 # to ld, don't add -lc before -lgcc.
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10357 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10358 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10359 $as_echo_n "(cached) " >&6
10362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10365 (eval $ac_compile) 2>&5
10367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10368 test $ac_status = 0; } 2>conftest.err; then
10371 libobjs=conftest.$ac_objext
10373 wl=$lt_prog_compiler_wl
10374 pic_flag=$lt_prog_compiler_pic
10380 lt_save_allow_undefined_flag=$allow_undefined_flag
10381 allow_undefined_flag=
10382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10383 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10386 test $ac_status = 0; }
10388 lt_cv_archive_cmds_need_lc=no
10390 lt_cv_archive_cmds_need_lc=yes
10392 allow_undefined_flag=$lt_save_allow_undefined_flag
10394 cat conftest.err 1>&5
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10400 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10401 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10560 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10562 if test "$GCC" = yes; then
10564 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10565 *) lt_awk_arg="/^libraries:/" ;;
10568 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10569 *) lt_sed_strip_eq="s,=/,/,g" ;;
10571 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10572 case $lt_search_path_spec in
10574 # if the path contains ";" then we assume it to be the separator
10575 # otherwise default to the standard path separator (i.e. ":") - it is
10576 # assumed that no part of a normal pathname contains ";" but that should
10577 # okay in the real world where ";" in dirpaths is itself problematic.
10578 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10584 # Ok, now we have the path, separated by spaces, we can step through it
10585 # and add multilib dir if necessary.
10586 lt_tmp_lt_search_path_spec=
10587 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10588 for lt_sys_path in $lt_search_path_spec; do
10589 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10590 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10592 test -d "$lt_sys_path" && \
10593 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10596 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10597 BEGIN {RS=" "; FS="/|\n";} {
10600 for (lt_i = NF; lt_i > 0; lt_i--) {
10601 if ($lt_i != "" && $lt_i != ".") {
10602 if ($lt_i == "..") {
10605 if (lt_count == 0) {
10606 lt_foo="/" $lt_i lt_foo;
10613 if (lt_foo != "") { lt_freq[lt_foo]++; }
10614 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10616 # AWK program above erroneously prepends '/' to C:/dos/paths
10619 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10620 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10622 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10626 library_names_spec=
10627 libname_spec='lib$name'
10631 postuninstall_cmds=
10635 shlibpath_overrides_runpath=unknown
10637 dynamic_linker="$host_os ld.so"
10638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10639 need_lib_prefix=unknown
10640 hardcode_into_libs=no
10642 # when you set need_version to no, make sure it does not cause -set_version
10643 # flags to be left without arguments
10644 need_version=unknown
10648 version_type=linux # correct to gnu/linux during the next big refactor
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10650 shlibpath_var=LIBPATH
10652 # AIX 3 has no versioning support, so we append a major version to the name.
10653 soname_spec='${libname}${release}${shared_ext}$major'
10657 version_type=linux # correct to gnu/linux during the next big refactor
10660 hardcode_into_libs=yes
10661 if test "$host_cpu" = ia64; then
10662 # AIX 5 supports IA64
10663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10664 shlibpath_var=LD_LIBRARY_PATH
10666 # With GCC up to 2.95.x, collect2 would create an import file
10667 # for dependence libraries. The import file would start with
10668 # the line `#! .'. This would cause the generated library to
10669 # depend on `.', always an invalid library. This was fixed in
10670 # development snapshots of GCC prior to 3.0.
10672 aix4 | aix4.[01] | aix4.[01].*)
10673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10675 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10678 can_build_shared=no
10682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10683 # soname into executable. Probably we can add versioning support to
10684 # collect2, so additional links can be useful in future.
10685 if test "$aix_use_runtimelinking" = yes; then
10686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10687 # instead of lib<name>.a to let people know that these are not
10688 # typical AIX shared libraries.
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 # We preserve .a as extension for shared libraries through AIX4.2
10692 # and later when we are not doing run time linking.
10693 library_names_spec='${libname}${release}.a $libname.a'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10696 shlibpath_var=LIBPATH
10703 # Since July 2007 AmigaOS4 officially supports .so libraries.
10704 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708 library_names_spec='$libname.ixlibrary $libname.a'
10709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10710 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'
10716 library_names_spec='${libname}${shared_ext}'
10717 dynamic_linker="$host_os ld.so"
10718 shlibpath_var=LIBRARY_PATH
10722 version_type=linux # correct to gnu/linux during the next big refactor
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10730 # the default ld.so.conf also contains /usr/contrib/lib and
10731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10732 # libtool to hard-code these into programs
10735 cygwin* | mingw* | pw32* | cegcc*)
10736 version_type=windows
10741 case $GCC,$cc_basename in
10744 library_names_spec='$libname.dll.a'
10745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10746 postinstall_cmds='base_file=`basename \${file}`~
10747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10748 dldir=$destdir/`dirname \$dlpath`~
10749 test -d \$dldir || mkdir -p \$dldir~
10750 $install_prog $dir/$dlname \$dldir/$dlname~
10751 chmod a+x \$dldir/$dlname~
10752 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10753 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10756 dlpath=$dir/\$dldll~
10758 shlibpath_overrides_runpath=yes
10762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10765 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10768 # MinGW DLLs use traditional 'lib' prefix
10769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772 # pw32 DLLs use 'pw' prefix rather than 'lib'
10773 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10776 dynamic_linker='Win32 ld.exe'
10781 libname_spec='$name'
10782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10783 library_names_spec='${libname}.dll.lib'
10787 sys_lib_search_path_spec=
10790 for lt_path in $LIB
10793 # Let DOS variable expansion print the short 8.3 style file name.
10794 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10795 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10798 # Convert to MSYS style.
10799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10802 # Convert to unix form, then to dos form, then back to unix form
10803 # but this time dos style (no spaces!) so that the unix form looks
10804 # like /cygdrive/c/PROGRA~1:/cygdr...
10805 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10806 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10807 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10810 sys_lib_search_path_spec="$LIB"
10811 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10812 # It is most probably a Windows format PATH.
10813 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10815 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10817 # FIXME: find the short name or the path components, as spaces are
10818 # common. (e.g. "Program Files" -> "PROGRA~1")
10822 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10823 postinstall_cmds='base_file=`basename \${file}`~
10824 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10825 dldir=$destdir/`dirname \$dlpath`~
10826 test -d \$dldir || mkdir -p \$dldir~
10827 $install_prog $dir/$dlname \$dldir/$dlname'
10828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10829 dlpath=$dir/\$dldll~
10831 shlibpath_overrides_runpath=yes
10832 dynamic_linker='Win32 link.exe'
10836 # Assume MSVC wrapper
10837 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10838 dynamic_linker='Win32 ld.exe'
10841 # FIXME: first we should search . and the directory the executable is in
10845 darwin* | rhapsody*)
10846 dynamic_linker="$host_os dyld"
10847 version_type=darwin
10850 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10851 soname_spec='${libname}${release}${major}$shared_ext'
10852 shlibpath_overrides_runpath=yes
10853 shlibpath_var=DYLD_LIBRARY_PATH
10854 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10856 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10861 version_type=linux # correct to gnu/linux during the next big refactor
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10865 soname_spec='${libname}${release}${shared_ext}$major'
10866 shlibpath_var=LD_LIBRARY_PATH
10869 freebsd* | dragonfly*)
10870 # DragonFly does not have aout. When/if they implement a new
10871 # versioning mechanism, adjust this.
10872 if test -x /usr/bin/objformat; then
10873 objformat=`/usr/bin/objformat`
10876 freebsd[23].*) objformat=aout ;;
10877 *) objformat=elf ;;
10880 version_type=freebsd-$objformat
10881 case $version_type in
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10892 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=yes
10897 freebsd3.[01]* | freebsdelf3.[01]*)
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10903 shlibpath_overrides_runpath=no
10904 hardcode_into_libs=yes
10906 *) # from 4.6 on, and DragonFly
10907 shlibpath_overrides_runpath=yes
10908 hardcode_into_libs=yes
10914 version_type=linux # correct to gnu/linux during the next big refactor
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 shlibpath_var=LD_LIBRARY_PATH
10920 shlibpath_overrides_runpath=no
10921 hardcode_into_libs=yes
10925 version_type=linux # correct to gnu/linux during the next big refactor
10928 dynamic_linker="$host_os runtime_loader"
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 shlibpath_var=LIBRARY_PATH
10932 shlibpath_overrides_runpath=yes
10933 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10934 hardcode_into_libs=yes
10937 hpux9* | hpux10* | hpux11*)
10938 # Give a soname corresponding to the major version so that dld.sl refuses to
10939 # link against other versions.
10946 hardcode_into_libs=yes
10947 dynamic_linker="$host_os dld.so"
10948 shlibpath_var=LD_LIBRARY_PATH
10949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 if test "X$HPUX_IA64_MODE" = X32; then
10953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10961 hardcode_into_libs=yes
10962 dynamic_linker="$host_os dld.sl"
10963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10972 dynamic_linker="$host_os dld.sl"
10973 shlibpath_var=SHLIB_PATH
10974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10979 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10980 postinstall_cmds='chmod 555 $lib'
10981 # or fails outright, so override atomically:
10982 install_override_mode=555
10986 version_type=linux # correct to gnu/linux during the next big refactor
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=no
10994 hardcode_into_libs=yes
10997 irix5* | irix6* | nonstopux*)
10999 nonstopux*) version_type=nonstopux ;;
11001 if test "$lt_cv_prog_gnu_ld" = yes; then
11002 version_type=linux # correct to gnu/linux during the next big refactor
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11012 irix5* | nonstopux*)
11013 libsuff= shlibsuff=
11016 case $LD in # libtool.m4 will add one of these switches to LD
11017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11018 libsuff= shlibsuff= libmagic=32-bit;;
11019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11020 libsuff=32 shlibsuff=N32 libmagic=N32;;
11021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11022 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11023 *) libsuff= shlibsuff= libmagic=never-match;;
11027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11028 shlibpath_overrides_runpath=no
11029 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11030 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11031 hardcode_into_libs=yes
11034 # No shared lib support for Linux oldld, aout, or coff.
11035 linux*oldld* | linux*aout* | linux*coff*)
11039 # This must be glibc/ELF.
11040 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11041 version_type=linux # correct to gnu/linux during the next big refactor
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=no
11050 # Some binutils ld are patched to set DT_RUNPATH
11051 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11052 $as_echo_n "(cached) " >&6
11054 lt_cv_shlibpath_overrides_runpath=no
11055 save_LDFLAGS=$LDFLAGS
11056 save_libdir=$libdir
11057 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11058 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11070 if ac_fn_c_try_link "$LINENO"; then :
11071 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11072 lt_cv_shlibpath_overrides_runpath=yes
11075 rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LDFLAGS=$save_LDFLAGS
11078 libdir=$save_libdir
11082 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11084 # This implies no fast_install, which is unacceptable.
11085 # Some rework will be needed to allow for fast_install
11086 # before this can be enabled.
11087 hardcode_into_libs=yes
11089 # Add ABI-specific directories to the system library path.
11090 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11092 # Append ld.so.conf contents to the search path
11093 if test -f /etc/ld.so.conf; then
11094 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' ' '`
11095 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11099 # We used to test for /lib/ld.so.1 and disable shared libraries on
11100 # powerpc, because MkLinux only supported shared libraries with the
11101 # GNU dynamic linker. Since this was broken with cross compilers,
11102 # most powerpc-linux boxes support dynamic linking these days and
11103 # people can always --disable-shared, the test was removed, and we
11104 # assume the GNU/Linux dynamic linker is in use.
11105 dynamic_linker='GNU/Linux ld.so'
11112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11115 dynamic_linker='NetBSD (a.out) ld.so'
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 dynamic_linker='NetBSD ld.elf_so'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 hardcode_into_libs=yes
11127 version_type=linux # correct to gnu/linux during the next big refactor
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=yes
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138 soname_spec='${libname}${release}${shared_ext}$major'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=no
11141 hardcode_into_libs=yes
11142 dynamic_linker='ldqnx.so'
11147 sys_lib_dlsearch_path_spec="/usr/lib"
11149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11152 *) need_version=no ;;
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11159 openbsd2.[89] | openbsd2.[89].*)
11160 shlibpath_overrides_runpath=no
11163 shlibpath_overrides_runpath=yes
11167 shlibpath_overrides_runpath=yes
11172 libname_spec='$name'
11175 library_names_spec='$libname${shared_ext} $libname.a'
11176 dynamic_linker='OS/2 ld.exe'
11177 shlibpath_var=LIBPATH
11180 osf3* | osf4* | osf5*)
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11196 version_type=linux # correct to gnu/linux during the next big refactor
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 shlibpath_overrides_runpath=yes
11203 hardcode_into_libs=yes
11204 # ldd complains unless libraries are executable
11205 postinstall_cmds='chmod +x $lib'
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=yes
11214 if test "$with_gnu_ld" = yes; then
11221 version_type=linux # correct to gnu/linux during the next big refactor
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 case $host_vendor in
11227 shlibpath_overrides_runpath=no
11229 runpath_var=LD_RUN_PATH
11237 shlibpath_overrides_runpath=no
11238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11244 if test -d /usr/nec ;then
11245 version_type=linux # correct to gnu/linux during the next big refactor
11246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11247 soname_spec='$libname${shared_ext}.$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11253 version_type=freebsd-elf
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260 hardcode_into_libs=yes
11261 if test "$with_gnu_ld" = yes; then
11262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11267 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11271 sys_lib_dlsearch_path_spec='/usr/lib'
11275 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11276 version_type=linux # correct to gnu/linux during the next big refactor
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 shlibpath_overrides_runpath=no
11282 hardcode_into_libs=yes
11286 version_type=linux # correct to gnu/linux during the next big refactor
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288 soname_spec='${libname}${release}${shared_ext}$major'
11289 shlibpath_var=LD_LIBRARY_PATH
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11297 $as_echo "$dynamic_linker" >&6; }
11298 test "$dynamic_linker" = no && can_build_shared=no
11300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11301 if test "$GCC" = yes; then
11302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11305 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11306 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11308 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11309 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11404 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11406 if test -n "$hardcode_libdir_flag_spec" ||
11407 test -n "$runpath_var" ||
11408 test "X$hardcode_automatic" = "Xyes" ; then
11410 # We can hardcode non-existent directories.
11411 if test "$hardcode_direct" != no &&
11412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11413 # have to relink, otherwise we might link with an installed library
11414 # when we should be linking with a yet-to-be-installed one
11415 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11416 test "$hardcode_minus_L" != no; then
11417 # Linking always hardcodes the temporary library directory.
11418 hardcode_action=relink
11420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11421 hardcode_action=immediate
11424 # We cannot hardcode anything, or else we can only hardcode existing
11426 hardcode_action=unsupported
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11429 $as_echo "$hardcode_action" >&6; }
11431 if test "$hardcode_action" = relink ||
11432 test "$inherit_rpath" = yes; then
11433 # Fast installation is not supported
11434 enable_fast_install=no
11435 elif test "$shlibpath_overrides_runpath" = yes ||
11436 test "$enable_shared" = no; then
11437 # Fast installation is not necessary
11438 enable_fast_install=needless
11446 if test "x$enable_dlopen" != xyes; then
11447 enable_dlopen=unknown
11448 enable_dlopen_self=unknown
11449 enable_dlopen_self_static=unknown
11456 lt_cv_dlopen="load_add_on"
11458 lt_cv_dlopen_self=yes
11461 mingw* | pw32* | cegcc*)
11462 lt_cv_dlopen="LoadLibrary"
11467 lt_cv_dlopen="dlopen"
11472 # if libdl is installed we need to link against it
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11475 if ${ac_cv_lib_dl_dlopen+:} false; then :
11476 $as_echo_n "(cached) " >&6
11478 ac_check_lib_save_LIBS=$LIBS
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11483 /* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11498 if ac_fn_c_try_link "$LINENO"; then :
11499 ac_cv_lib_dl_dlopen=yes
11501 ac_cv_lib_dl_dlopen=no
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11508 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11509 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11513 lt_cv_dlopen="dyld"
11515 lt_cv_dlopen_self=yes
11522 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11523 if test "x$ac_cv_func_shl_load" = xyes; then :
11524 lt_cv_dlopen="shl_load"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11527 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11528 if ${ac_cv_lib_dld_shl_load+:} false; then :
11529 $as_echo_n "(cached) " >&6
11531 ac_check_lib_save_LIBS=$LIBS
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11536 /* Override any GCC internal prototype to avoid an error.
11537 Use char because int might match the return type of a GCC
11538 builtin and then its argument prototype would still apply. */
11546 return shl_load ();
11551 if ac_fn_c_try_link "$LINENO"; then :
11552 ac_cv_lib_dld_shl_load=yes
11554 ac_cv_lib_dld_shl_load=no
11556 rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11561 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11562 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11563 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11565 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11566 if test "x$ac_cv_func_dlopen" = xyes; then :
11567 lt_cv_dlopen="dlopen"
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11570 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11571 if ${ac_cv_lib_dl_dlopen+:} false; then :
11572 $as_echo_n "(cached) " >&6
11574 ac_check_lib_save_LIBS=$LIBS
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_dl_dlopen=yes
11597 ac_cv_lib_dl_dlopen=no
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LIBS=$ac_check_lib_save_LIBS
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11604 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11605 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11609 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11610 if ${ac_cv_lib_svld_dlopen+:} false; then :
11611 $as_echo_n "(cached) " >&6
11613 ac_check_lib_save_LIBS=$LIBS
11614 LIBS="-lsvld $LIBS"
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11633 if ac_fn_c_try_link "$LINENO"; then :
11634 ac_cv_lib_svld_dlopen=yes
11636 ac_cv_lib_svld_dlopen=no
11638 rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640 LIBS=$ac_check_lib_save_LIBS
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11643 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11644 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11648 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11649 if ${ac_cv_lib_dld_dld_link+:} false; then :
11650 $as_echo_n "(cached) " >&6
11652 ac_check_lib_save_LIBS=$LIBS
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11667 return dld_link ();
11672 if ac_fn_c_try_link "$LINENO"; then :
11673 ac_cv_lib_dld_dld_link=yes
11675 ac_cv_lib_dld_dld_link=no
11677 rm -f core conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_check_lib_save_LIBS
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11682 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11683 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11684 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11705 if test "x$lt_cv_dlopen" != xno; then
11711 case $lt_cv_dlopen in
11713 save_CPPFLAGS="$CPPFLAGS"
11714 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11716 save_LDFLAGS="$LDFLAGS"
11717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11720 LIBS="$lt_cv_dlopen_libs $LIBS"
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11723 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11724 if ${lt_cv_dlopen_self+:} false; then :
11725 $as_echo_n "(cached) " >&6
11727 if test "$cross_compiling" = yes; then :
11728 lt_cv_dlopen_self=cross
11730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11731 lt_status=$lt_dlunknown
11732 cat > conftest.$ac_ext <<_LT_EOF
11733 #line $LINENO "configure"
11734 #include "confdefs.h"
11743 # define LT_DLGLOBAL RTLD_GLOBAL
11746 # define LT_DLGLOBAL DL_GLOBAL
11748 # define LT_DLGLOBAL 0
11752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11753 find out it does not work in some platform. */
11754 #ifndef LT_DLLAZY_OR_NOW
11756 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11759 # define LT_DLLAZY_OR_NOW DL_LAZY
11762 # define LT_DLLAZY_OR_NOW RTLD_NOW
11765 # define LT_DLLAZY_OR_NOW DL_NOW
11767 # define LT_DLLAZY_OR_NOW 0
11774 /* When -fvisbility=hidden is used, assume the code has been annotated
11775 correspondingly for the symbols needed. */
11776 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11777 int fnord () __attribute__((visibility("default")));
11780 int fnord () { return 42; }
11783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11784 int status = $lt_dlunknown;
11788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11791 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11792 else puts (dlerror ());
11794 /* dlclose (self); */
11802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11803 (eval $ac_link) 2>&5
11805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11807 (./conftest; exit; ) >&5 2>/dev/null
11809 case x$lt_status in
11810 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11815 # compilation failed
11816 lt_cv_dlopen_self=no
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11824 $as_echo "$lt_cv_dlopen_self" >&6; }
11826 if test "x$lt_cv_dlopen_self" = xyes; then
11827 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11829 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11830 if ${lt_cv_dlopen_self_static+:} false; then :
11831 $as_echo_n "(cached) " >&6
11833 if test "$cross_compiling" = yes; then :
11834 lt_cv_dlopen_self_static=cross
11836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837 lt_status=$lt_dlunknown
11838 cat > conftest.$ac_ext <<_LT_EOF
11839 #line $LINENO "configure"
11840 #include "confdefs.h"
11849 # define LT_DLGLOBAL RTLD_GLOBAL
11852 # define LT_DLGLOBAL DL_GLOBAL
11854 # define LT_DLGLOBAL 0
11858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859 find out it does not work in some platform. */
11860 #ifndef LT_DLLAZY_OR_NOW
11862 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11865 # define LT_DLLAZY_OR_NOW DL_LAZY
11868 # define LT_DLLAZY_OR_NOW RTLD_NOW
11871 # define LT_DLLAZY_OR_NOW DL_NOW
11873 # define LT_DLLAZY_OR_NOW 0
11880 /* When -fvisbility=hidden is used, assume the code has been annotated
11881 correspondingly for the symbols needed. */
11882 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11883 int fnord () __attribute__((visibility("default")));
11886 int fnord () { return 42; }
11889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11890 int status = $lt_dlunknown;
11894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11897 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11898 else puts (dlerror ());
11900 /* dlclose (self); */
11908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11909 (eval $ac_link) 2>&5
11911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11912 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11913 (./conftest; exit; ) >&5 2>/dev/null
11915 case x$lt_status in
11916 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11917 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11918 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11921 # compilation failed
11922 lt_cv_dlopen_self_static=no
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11930 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11933 CPPFLAGS="$save_CPPFLAGS"
11934 LDFLAGS="$save_LDFLAGS"
11939 case $lt_cv_dlopen_self in
11940 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11941 *) enable_dlopen_self=unknown ;;
11944 case $lt_cv_dlopen_self_static in
11945 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11946 *) enable_dlopen_self_static=unknown ;;
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11969 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11970 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11971 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11972 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11974 $as_echo "yes" >&6; }
11976 # FIXME - insert some real tests, host_os isn't really good enough
11979 if test -n "$STRIP" ; then
11980 striplib="$STRIP -x"
11981 old_striplib="$STRIP -S"
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983 $as_echo "yes" >&6; }
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
12007 # Report which library types will actually be built
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12009 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12011 $as_echo "$can_build_shared" >&6; }
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12014 $as_echo_n "checking whether to build shared libraries... " >&6; }
12015 test "$can_build_shared" = "no" && enable_shared=no
12017 # On AIX, shared libraries and static libraries use the same namespace, and
12018 # are all built from PIC.
12021 test "$enable_shared" = yes && enable_static=no
12022 if test -n "$RANLIB"; then
12023 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12024 postinstall_cmds='$RANLIB $lib'
12029 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12030 test "$enable_shared" = yes && enable_static=no
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12035 $as_echo "$enable_shared" >&6; }
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12038 $as_echo_n "checking whether to build static libraries... " >&6; }
12039 # Make sure either enable_shared or enable_static is yes.
12040 test "$enable_shared" = yes || enable_static=yes
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12042 $as_echo "$enable_static" >&6; }
12049 ac_cpp='$CPP $CPPFLAGS'
12050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12070 ac_config_commands="$ac_config_commands libtool"
12075 # Only expand once:
12079 VERSION_SCRIPT_FLAGS=
12080 # lt_cv_prog_gnu_ld is from libtool 2.+
12081 if test "$lt_cv_prog_gnu_ld" = yes; then
12082 VERSION_SCRIPT_FLAGS=-Wl,--version-script=
12085 *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
12089 if test -n "$VERSION_SCRIPT_FLAGS"; then
12090 USE_VERSION_SCRIPT_TRUE=
12091 USE_VERSION_SCRIPT_FALSE='#'
12093 USE_VERSION_SCRIPT_TRUE='#'
12094 USE_VERSION_SCRIPT_FALSE=
12099 _cppflags="${CPPFLAGS}"
12103 # Check whether --with-c14n was given.
12104 if test "${with_c14n+set}" = set; then :
12105 withval=$with_c14n;
12109 # Check whether --with-catalog was given.
12110 if test "${with_catalog+set}" = set; then :
12111 withval=$with_catalog;
12115 # Check whether --with-debug was given.
12116 if test "${with_debug+set}" = set; then :
12117 withval=$with_debug;
12121 # Check whether --with-docbook was given.
12122 if test "${with_docbook+set}" = set; then :
12123 withval=$with_docbook;
12127 # Check whether --with-fexceptions was given.
12128 if test "${with_fexceptions+set}" = set; then :
12129 withval=$with_fexceptions;
12133 # Check whether --with-ftp was given.
12134 if test "${with_ftp+set}" = set; then :
12139 # Check whether --with-history was given.
12140 if test "${with_history+set}" = set; then :
12141 withval=$with_history;
12145 # Check whether --with-html was given.
12146 if test "${with_html+set}" = set; then :
12147 withval=$with_html;
12151 # Check whether --with-html-dir was given.
12152 if test "${with_html_dir+set}" = set; then :
12153 withval=$with_html_dir; HTML_DIR=$withval
12155 HTML_DIR='$(datadir)/doc'
12160 # Check whether --with-html-subdir was given.
12161 if test "${with_html_subdir+set}" = set; then :
12162 withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"
12164 HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"
12169 # Check whether --with-http was given.
12170 if test "${with_http+set}" = set; then :
12171 withval=$with_http;
12175 # Check whether --with-iconv was given.
12176 if test "${with_iconv+set}" = set; then :
12177 withval=$with_iconv;
12181 # Check whether --with-icu was given.
12182 if test "${with_icu+set}" = set; then :
12187 # Check whether --with-iso8859x was given.
12188 if test "${with_iso8859x+set}" = set; then :
12189 withval=$with_iso8859x;
12193 # Check whether --with-legacy was given.
12194 if test "${with_legacy+set}" = set; then :
12195 withval=$with_legacy;
12199 # Check whether --with-mem_debug was given.
12200 if test "${with_mem_debug+set}" = set; then :
12201 withval=$with_mem_debug;
12205 # Check whether --with-minimum was given.
12206 if test "${with_minimum+set}" = set; then :
12207 withval=$with_minimum;
12211 # Check whether --with-output was given.
12212 if test "${with_output+set}" = set; then :
12213 withval=$with_output;
12217 # Check whether --with-pattern was given.
12218 if test "${with_pattern+set}" = set; then :
12219 withval=$with_pattern;
12223 # Check whether --with-push was given.
12224 if test "${with_push+set}" = set; then :
12225 withval=$with_push;
12229 # Check whether --with-python was given.
12230 if test "${with_python+set}" = set; then :
12231 withval=$with_python;
12235 # Check whether --with-python_install_dir was given.
12236 if test "${with_python_install_dir+set}" = set; then :
12237 withval=$with_python_install_dir;
12241 # Check whether --with-reader was given.
12242 if test "${with_reader+set}" = set; then :
12243 withval=$with_reader;
12247 # Check whether --with-readline was given.
12248 if test "${with_readline+set}" = set; then :
12249 withval=$with_readline;
12250 if test "$withval" != "no" -a "$withval" != "yes"; then
12252 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12253 LIBS="${LIBS} -L$withval/lib"
12259 # Check whether --with-regexps was given.
12260 if test "${with_regexps+set}" = set; then :
12261 withval=$with_regexps;
12265 # Check whether --with-run_debug was given.
12266 if test "${with_run_debug+set}" = set; then :
12267 withval=$with_run_debug;
12271 # Check whether --with-sax1 was given.
12272 if test "${with_sax1+set}" = set; then :
12273 withval=$with_sax1;
12277 # Check whether --with-schemas was given.
12278 if test "${with_schemas+set}" = set; then :
12279 withval=$with_schemas;
12283 # Check whether --with-schematron was given.
12284 if test "${with_schematron+set}" = set; then :
12285 withval=$with_schematron;
12289 # Check whether --with-threads was given.
12290 if test "${with_threads+set}" = set; then :
12291 withval=$with_threads;
12295 # Check whether --with-thread-alloc was given.
12296 if test "${with_thread_alloc+set}" = set; then :
12297 withval=$with_thread_alloc;
12301 # Check whether --with-tree was given.
12302 if test "${with_tree+set}" = set; then :
12303 withval=$with_tree;
12307 # Check whether --with-valid was given.
12308 if test "${with_valid+set}" = set; then :
12309 withval=$with_valid;
12313 # Check whether --with-writer was given.
12314 if test "${with_writer+set}" = set; then :
12315 withval=$with_writer;
12319 # Check whether --with-xinclude was given.
12320 if test "${with_xinclude+set}" = set; then :
12321 withval=$with_xinclude;
12325 # Check whether --with-xpath was given.
12326 if test "${with_xpath+set}" = set; then :
12327 withval=$with_xpath;
12331 # Check whether --with-xptr was given.
12332 if test "${with_xptr+set}" = set; then :
12333 withval=$with_xptr;
12337 # Check whether --with-modules was given.
12338 if test "${with_modules+set}" = set; then :
12339 withval=$with_modules;
12343 # Check whether --with-zlib was given.
12344 if test "${with_zlib+set}" = set; then :
12345 withval=$with_zlib;
12346 if test "$withval" != "no" -a "$withval" != "yes"; then
12348 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12349 LIBS="${LIBS} -L$withval/lib"
12355 # Check whether --with-lzma was given.
12356 if test "${with_lzma+set}" = set; then :
12357 withval=$with_lzma;
12358 if test "$withval" != "no" -a "$withval" != "yes"; then
12360 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12361 LIBS="${LIBS} -L$withval/lib"
12367 # Check whether --with-coverage was given.
12368 if test "${with_coverage+set}" = set; then :
12369 withval=$with_coverage;
12373 # Check whether --enable-rebuild-docs was given.
12374 if test "${enable_rebuild_docs+set}" = set; then :
12375 enableval=$enable_rebuild_docs;
12378 if test "$enable_rebuild_docs" = "yes" -a "$srcdir" != "."; then
12379 as_fn_error $? "cannot rebuild docs when builddir != srcdir" "$LINENO" 5
12381 if test "$enable_rebuild_docs" = "yes" -o "$USER" = "veillard"; then
12383 REBUILD_DOCS_FALSE='#'
12385 REBUILD_DOCS_TRUE='#'
12386 REBUILD_DOCS_FALSE=
12390 if test "$with_schemas" = "yes"
12395 if test "$with_schematron" = "yes"
12401 if test "$with_reader" = "yes"
12405 if test "$with_xptr" = "yes"
12409 if test "$with_minimum" = "yes"
12411 echo "Configuring for a minimal library"
12412 if test "$with_c14n" = ""
12416 if test "$with_catalog" = ""
12420 echo So far so good!
12421 if test "$with_debug" = ""
12425 if test "$with_docbook" = ""
12429 if test "$with_fexceptions" = ""
12431 with_fexceptions=no
12433 if test "$with_ftp" = ""
12437 if test "$with_history" = ""
12441 if test "$with_html" = ""
12445 if test "$with_http" = ""
12449 if test "$with_iconv" = ""
12453 if test "$with_iso8859x" = ""
12457 if test "$with_legacy" = ""
12461 if test "$with_mem_debug" = ""
12465 if test "$with_output" = ""
12469 if test "$with_pattern" = ""
12473 if test "$with_push" = ""
12477 if test "$with_python" = ""
12481 if test "$with_reader" = ""
12485 if test "$with_readline" = ""
12489 if test "$with_regexps" = ""
12493 if test "$with_run_debug" = ""
12497 if test "$with_sax1" = ""
12501 if test "$with_schemas" = ""
12505 if test "$with_schematron" = ""
12509 if test "$with_threads" = ""
12513 if test "$with_thread_alloc" = ""
12515 with_thread_alloc=no
12517 if test "$with_tree" = ""
12521 if test "$with_valid" = ""
12525 if test "$with_writer" = ""
12529 if test "$with_xinclude" = ""
12533 if test "$with_xpath" = ""
12537 if test "$with_xptr" = ""
12541 if test "$with_zlib" = ""
12545 if test "$with_modules" = ""
12555 if test "$with_zlib" = "no"; then
12556 echo "Disabling compression support"
12558 for ac_header in zlib.h
12560 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12561 if test "x$ac_cv_header_zlib_h" = xyes; then :
12562 cat >>confdefs.h <<_ACEOF
12563 #define HAVE_ZLIB_H 1
12565 SAVE_LDFLAGS="${LDFLAGS}"
12566 LDFLAGS="-L${Z_DIR}/lib"
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
12568 $as_echo_n "checking for gzread in -lz... " >&6; }
12569 if ${ac_cv_lib_z_gzread+:} false; then :
12570 $as_echo_n "(cached) " >&6
12572 ac_check_lib_save_LIBS=$LIBS
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12577 /* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12592 if ac_fn_c_try_link "$LINENO"; then :
12593 ac_cv_lib_z_gzread=yes
12595 ac_cv_lib_z_gzread=no
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599 LIBS=$ac_check_lib_save_LIBS
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
12602 $as_echo "$ac_cv_lib_z_gzread" >&6; }
12603 if test "x$ac_cv_lib_z_gzread" = xyes; then :
12606 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12609 if test "x${Z_DIR}" != "x"; then
12610 Z_CFLAGS="-I${Z_DIR}/include"
12611 Z_LIBS="-L${Z_DIR}/lib -lz"
12614 Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
12622 LDFLAGS="${SAVE_LDFLAGS}"
12637 if test "$with_lzma" = "no"; then
12638 echo "Disabling compression support"
12640 # Try pkg-config first so that static linking works.
12641 # If this succeeeds, we ignore the WITH_LZMA directory.
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
12645 $as_echo_n "checking for LZMA... " >&6; }
12647 if test -n "$LZMA_CFLAGS"; then
12648 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
12649 elif test -n "$PKG_CONFIG"; then
12650 if test -n "$PKG_CONFIG" && \
12651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
12652 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655 test $ac_status = 0; }; then
12656 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
12657 test "x$?" != "x0" && pkg_failed=yes
12664 if test -n "$LZMA_LIBS"; then
12665 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
12666 elif test -n "$PKG_CONFIG"; then
12667 if test -n "$PKG_CONFIG" && \
12668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
12669 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12672 test $ac_status = 0; }; then
12673 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
12674 test "x$?" != "x0" && pkg_failed=yes
12684 if test $pkg_failed = yes; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12689 _pkg_short_errors_supported=yes
12691 _pkg_short_errors_supported=no
12693 if test $_pkg_short_errors_supported = yes; then
12694 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
12696 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
12698 # Put the nasty error message in config.log where it belongs
12699 echo "$LZMA_PKG_ERRORS" >&5
12702 elif test $pkg_failed = untried; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12707 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
12708 LZMA_LIBS=$pkg_cv_LZMA_LIBS
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12710 $as_echo "yes" >&6; }
12714 # If pkg-config failed, fall back to AC_CHECK_LIB. This
12715 # will not pick up the necessary LIBS flags for liblzma's
12716 # private dependencies, though, so static linking may fail.
12717 if test "x$have_liblzma" = "xno"; then
12718 for ac_header in lzma.h
12720 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
12721 if test "x$ac_cv_header_lzma_h" = xyes; then :
12722 cat >>confdefs.h <<_ACEOF
12723 #define HAVE_LZMA_H 1
12725 SAVE_LDFLAGS="${LDFLAGS}"
12726 LDFLAGS="-L${LZMA_DIR}/lib"
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
12728 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
12729 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
12730 $as_echo_n "(cached) " >&6
12732 ac_check_lib_save_LIBS=$LIBS
12733 LIBS="-llzma $LIBS"
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735 /* end confdefs.h. */
12737 /* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
12747 return lzma_code ();
12752 if ac_fn_c_try_link "$LINENO"; then :
12753 ac_cv_lib_lzma_lzma_code=yes
12755 ac_cv_lib_lzma_lzma_code=no
12757 rm -f core conftest.err conftest.$ac_objext \
12758 conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
12762 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
12763 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
12766 if test "x${LZMA_DIR}" != "x"; then
12767 LZMA_CFLAGS="-I${LZMA_DIR}/include"
12768 LZMA_LIBS="-L${LZMA_DIR}/lib -llzma"
12776 LDFLAGS="${SAVE_LDFLAGS}"
12783 # Found the library via either method?
12784 if test "x$have_liblzma" = "xyes"; then
12786 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
12796 CPPFLAGS=${_cppflags}
12799 echo Checking headers
12801 ac_header_dirent=no
12802 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12803 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12805 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12806 if eval \${$as_ac_Header+:} false; then :
12807 $as_echo_n "(cached) " >&6
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811 #include <sys/types.h>
12823 if ac_fn_c_try_compile "$LINENO"; then :
12824 eval "$as_ac_Header=yes"
12826 eval "$as_ac_Header=no"
12828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 eval ac_res=\$$as_ac_Header
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12832 $as_echo "$ac_res" >&6; }
12833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12834 cat >>confdefs.h <<_ACEOF
12835 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12838 ac_header_dirent=$ac_hdr; break
12842 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12843 if test $ac_header_dirent = dirent.h; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12845 $as_echo_n "checking for library containing opendir... " >&6; }
12846 if ${ac_cv_search_opendir+:} false; then :
12847 $as_echo_n "(cached) " >&6
12849 ac_func_search_save_LIBS=$LIBS
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 /* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12868 for ac_lib in '' dir; do
12869 if test -z "$ac_lib"; then
12870 ac_res="none required"
12873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12875 if ac_fn_c_try_link "$LINENO"; then :
12876 ac_cv_search_opendir=$ac_res
12878 rm -f core conftest.err conftest.$ac_objext \
12880 if ${ac_cv_search_opendir+:} false; then :
12884 if ${ac_cv_search_opendir+:} false; then :
12887 ac_cv_search_opendir=no
12889 rm conftest.$ac_ext
12890 LIBS=$ac_func_search_save_LIBS
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12893 $as_echo "$ac_cv_search_opendir" >&6; }
12894 ac_res=$ac_cv_search_opendir
12895 if test "$ac_res" != no; then :
12896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12902 $as_echo_n "checking for library containing opendir... " >&6; }
12903 if ${ac_cv_search_opendir+:} false; then :
12904 $as_echo_n "(cached) " >&6
12906 ac_func_search_save_LIBS=$LIBS
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12910 /* Override any GCC internal prototype to avoid an error.
12911 Use char because int might match the return type of a GCC
12912 builtin and then its argument prototype would still apply. */
12925 for ac_lib in '' x; do
12926 if test -z "$ac_lib"; then
12927 ac_res="none required"
12930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12932 if ac_fn_c_try_link "$LINENO"; then :
12933 ac_cv_search_opendir=$ac_res
12935 rm -f core conftest.err conftest.$ac_objext \
12937 if ${ac_cv_search_opendir+:} false; then :
12941 if ${ac_cv_search_opendir+:} false; then :
12944 ac_cv_search_opendir=no
12946 rm conftest.$ac_ext
12947 LIBS=$ac_func_search_save_LIBS
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12950 $as_echo "$ac_cv_search_opendir" >&6; }
12951 ac_res=$ac_cv_search_opendir
12952 if test "$ac_res" != no; then :
12953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12960 $as_echo_n "checking for ANSI C header files... " >&6; }
12961 if ${ac_cv_header_stdc+:} false; then :
12962 $as_echo_n "(cached) " >&6
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966 #include <stdlib.h>
12967 #include <stdarg.h>
12968 #include <string.h>
12979 if ac_fn_c_try_compile "$LINENO"; then :
12980 ac_cv_header_stdc=yes
12982 ac_cv_header_stdc=no
12984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12986 if test $ac_cv_header_stdc = yes; then
12987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h. */
12990 #include <string.h>
12993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12994 $EGREP "memchr" >/dev/null 2>&1; then :
12997 ac_cv_header_stdc=no
13003 if test $ac_cv_header_stdc = yes; then
13004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007 #include <stdlib.h>
13010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13011 $EGREP "free" >/dev/null 2>&1; then :
13014 ac_cv_header_stdc=no
13020 if test $ac_cv_header_stdc = yes; then
13021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13022 if test "$cross_compiling" = yes; then :
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13028 #include <stdlib.h>
13029 #if ((' ' & 0x0FF) == 0x020)
13030 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13031 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13033 # define ISLOWER(c) \
13034 (('a' <= (c) && (c) <= 'i') \
13035 || ('j' <= (c) && (c) <= 'r') \
13036 || ('s' <= (c) && (c) <= 'z'))
13037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13045 for (i = 0; i < 256; i++)
13046 if (XOR (islower (i), ISLOWER (i))
13047 || toupper (i) != TOUPPER (i))
13052 if ac_fn_c_try_run "$LINENO"; then :
13055 ac_cv_header_stdc=no
13057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13058 conftest.$ac_objext conftest.beam conftest.$ac_ext
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13064 $as_echo "$ac_cv_header_stdc" >&6; }
13065 if test $ac_cv_header_stdc = yes; then
13067 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13071 for ac_header in fcntl.h
13073 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13074 if test "x$ac_cv_header_fcntl_h" = xyes; then :
13075 cat >>confdefs.h <<_ACEOF
13076 #define HAVE_FCNTL_H 1
13083 for ac_header in unistd.h
13085 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13086 if test "x$ac_cv_header_unistd_h" = xyes; then :
13087 cat >>confdefs.h <<_ACEOF
13088 #define HAVE_UNISTD_H 1
13095 for ac_header in ctype.h
13097 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
13098 if test "x$ac_cv_header_ctype_h" = xyes; then :
13099 cat >>confdefs.h <<_ACEOF
13100 #define HAVE_CTYPE_H 1
13107 for ac_header in dirent.h
13109 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
13110 if test "x$ac_cv_header_dirent_h" = xyes; then :
13111 cat >>confdefs.h <<_ACEOF
13112 #define HAVE_DIRENT_H 1
13119 for ac_header in errno.h
13121 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
13122 if test "x$ac_cv_header_errno_h" = xyes; then :
13123 cat >>confdefs.h <<_ACEOF
13124 #define HAVE_ERRNO_H 1
13131 for ac_header in malloc.h
13133 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
13134 if test "x$ac_cv_header_malloc_h" = xyes; then :
13135 cat >>confdefs.h <<_ACEOF
13136 #define HAVE_MALLOC_H 1
13143 for ac_header in stdarg.h
13145 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13146 if test "x$ac_cv_header_stdarg_h" = xyes; then :
13147 cat >>confdefs.h <<_ACEOF
13148 #define HAVE_STDARG_H 1
13155 for ac_header in sys/stat.h
13157 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
13158 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
13159 cat >>confdefs.h <<_ACEOF
13160 #define HAVE_SYS_STAT_H 1
13167 for ac_header in sys/types.h
13169 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13170 if test "x$ac_cv_header_sys_types_h" = xyes; then :
13171 cat >>confdefs.h <<_ACEOF
13172 #define HAVE_SYS_TYPES_H 1
13179 for ac_header in stdint.h
13181 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13182 if test "x$ac_cv_header_stdint_h" = xyes; then :
13183 cat >>confdefs.h <<_ACEOF
13184 #define HAVE_STDINT_H 1
13191 for ac_header in inttypes.h
13193 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13194 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13195 cat >>confdefs.h <<_ACEOF
13196 #define HAVE_INTTYPES_H 1
13203 for ac_header in time.h
13205 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
13206 if test "x$ac_cv_header_time_h" = xyes; then :
13207 cat >>confdefs.h <<_ACEOF
13208 #define HAVE_TIME_H 1
13215 for ac_header in ansidecl.h
13217 ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
13218 if test "x$ac_cv_header_ansidecl_h" = xyes; then :
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_ANSIDECL_H 1
13227 for ac_header in ieeefp.h
13229 ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
13230 if test "x$ac_cv_header_ieeefp_h" = xyes; then :
13231 cat >>confdefs.h <<_ACEOF
13232 #define HAVE_IEEEFP_H 1
13239 for ac_header in nan.h
13241 ac_fn_c_check_header_mongrel "$LINENO" "nan.h" "ac_cv_header_nan_h" "$ac_includes_default"
13242 if test "x$ac_cv_header_nan_h" = xyes; then :
13243 cat >>confdefs.h <<_ACEOF
13244 #define HAVE_NAN_H 1
13251 for ac_header in math.h
13253 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
13254 if test "x$ac_cv_header_math_h" = xyes; then :
13255 cat >>confdefs.h <<_ACEOF
13256 #define HAVE_MATH_H 1
13263 for ac_header in limits.h
13265 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
13266 if test "x$ac_cv_header_limits_h" = xyes; then :
13267 cat >>confdefs.h <<_ACEOF
13268 #define HAVE_LIMITS_H 1
13275 for ac_header in fp_class.h
13277 ac_fn_c_check_header_mongrel "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "$ac_includes_default"
13278 if test "x$ac_cv_header_fp_class_h" = xyes; then :
13279 cat >>confdefs.h <<_ACEOF
13280 #define HAVE_FP_CLASS_H 1
13287 for ac_header in float.h
13289 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
13290 if test "x$ac_cv_header_float_h" = xyes; then :
13291 cat >>confdefs.h <<_ACEOF
13292 #define HAVE_FLOAT_H 1
13299 for ac_header in stdlib.h
13301 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13302 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13303 cat >>confdefs.h <<_ACEOF
13304 #define HAVE_STDLIB_H 1
13311 for ac_header in sys/socket.h
13313 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_SYS_TYPES_H
13314 # include <sys/types.h>
13318 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13319 cat >>confdefs.h <<_ACEOF
13320 #define HAVE_SYS_SOCKET_H 1
13327 for ac_header in netinet/in.h
13329 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_SYS_TYPES_H
13330 # include <sys/types.h>
13334 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
13335 cat >>confdefs.h <<_ACEOF
13336 #define HAVE_NETINET_IN_H 1
13343 for ac_header in arpa/inet.h
13345 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_SYS_TYPES_H
13346 # include <sys/types.h>
13348 #if HAVE_ARPA_INET_H
13349 # include <arpa/inet.h>
13353 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
13354 cat >>confdefs.h <<_ACEOF
13355 #define HAVE_ARPA_INET_H 1
13362 for ac_header in netdb.h
13364 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
13365 if test "x$ac_cv_header_netdb_h" = xyes; then :
13366 cat >>confdefs.h <<_ACEOF
13367 #define HAVE_NETDB_H 1
13374 for ac_header in sys/time.h
13376 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13377 if test "x$ac_cv_header_sys_time_h" = xyes; then :
13378 cat >>confdefs.h <<_ACEOF
13379 #define HAVE_SYS_TIME_H 1
13386 for ac_header in sys/select.h
13388 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
13389 if test "x$ac_cv_header_sys_select_h" = xyes; then :
13390 cat >>confdefs.h <<_ACEOF
13391 #define HAVE_SYS_SELECT_H 1
13398 for ac_header in poll.h
13400 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13401 if test "x$ac_cv_header_poll_h" = xyes; then :
13402 cat >>confdefs.h <<_ACEOF
13403 #define HAVE_POLL_H 1
13410 for ac_header in sys/mman.h
13412 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13413 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13414 cat >>confdefs.h <<_ACEOF
13415 #define HAVE_SYS_MMAN_H 1
13422 for ac_header in sys/timeb.h
13424 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13425 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
13426 cat >>confdefs.h <<_ACEOF
13427 #define HAVE_SYS_TIMEB_H 1
13434 for ac_header in signal.h
13436 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
13437 if test "x$ac_cv_header_signal_h" = xyes; then :
13438 cat >>confdefs.h <<_ACEOF
13439 #define HAVE_SIGNAL_H 1
13446 for ac_header in arpa/nameser.h
13448 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#if HAVE_SYS_TYPES_H
13449 # include <sys/types.h>
13453 if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
13454 cat >>confdefs.h <<_ACEOF
13455 #define HAVE_ARPA_NAMESER_H 1
13462 for ac_header in resolv.h
13464 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
13465 # include <sys/types.h>
13467 #if HAVE_NETINET_IN_H
13468 # include <netinet/in.h>
13470 #if HAVE_ARPA_NAMESER_H
13471 # include <arpa/nameser.h>
13475 if test "x$ac_cv_header_resolv_h" = xyes; then :
13476 cat >>confdefs.h <<_ACEOF
13477 #define HAVE_RESOLV_H 1
13484 for ac_header in dl.h
13486 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13487 if test "x$ac_cv_header_dl_h" = xyes; then :
13488 cat >>confdefs.h <<_ACEOF
13489 #define HAVE_DL_H 1
13496 for ac_header in dlfcn.h
13498 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13499 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13500 cat >>confdefs.h <<_ACEOF
13501 #define HAVE_DLFCN_H 1
13510 echo Checking types
13512 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13513 case $ac_cv_c_uint32_t in #(
13517 $as_echo "#define _UINT32_T 1" >>confdefs.h
13520 cat >>confdefs.h <<_ACEOF
13521 #define uint32_t $ac_cv_c_uint32_t
13528 echo Checking libraries
13530 for ac_func in strftime
13532 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13533 if test "x$ac_cv_func_strftime" = xyes; then :
13534 cat >>confdefs.h <<_ACEOF
13535 #define HAVE_STRFTIME 1
13539 # strftime is in -lintl on SCO UNIX.
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13541 $as_echo_n "checking for strftime in -lintl... " >&6; }
13542 if ${ac_cv_lib_intl_strftime+:} false; then :
13543 $as_echo_n "(cached) " >&6
13545 ac_check_lib_save_LIBS=$LIBS
13546 LIBS="-lintl $LIBS"
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13550 /* Override any GCC internal prototype to avoid an error.
13551 Use char because int might match the return type of a GCC
13552 builtin and then its argument prototype would still apply. */
13560 return strftime ();
13565 if ac_fn_c_try_link "$LINENO"; then :
13566 ac_cv_lib_intl_strftime=yes
13568 ac_cv_lib_intl_strftime=no
13570 rm -f core conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572 LIBS=$ac_check_lib_save_LIBS
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13575 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
13576 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13577 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13579 LIBS="-lintl $LIBS"
13585 for ac_func in strdup strndup strerror
13587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13589 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13590 cat >>confdefs.h <<_ACEOF
13591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13597 for ac_func in finite isnand fp_class class fpclass
13599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13600 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13601 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13602 cat >>confdefs.h <<_ACEOF
13603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13609 for ac_func in strftime localtime gettimeofday ftime
13611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13613 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13614 cat >>confdefs.h <<_ACEOF
13615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13621 for ac_func in stat _stat signal
13623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13624 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13625 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13626 cat >>confdefs.h <<_ACEOF
13627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13633 for ac_func in rand rand_r srand time
13635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13637 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13638 cat >>confdefs.h <<_ACEOF
13639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13645 for ac_func in isascii mmap munmap putenv
13647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13648 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13649 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13650 cat >>confdefs.h <<_ACEOF
13651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
13661 $as_echo_n "checking for va_copy... " >&6; }
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 #include <stdarg.h>
13674 if ac_fn_c_try_link "$LINENO"; then :
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
13682 $as_echo "$have_va_copy" >&6; }
13683 if test x"$have_va_copy" = x"yes"; then
13685 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
13689 $as_echo_n "checking for __va_copy... " >&6; }
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692 #include <stdarg.h>
13697 __va_copy(ap1,ap2);
13702 if ac_fn_c_try_link "$LINENO"; then :
13707 rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
13710 $as_echo "$have___va_copy" >&6; }
13711 if test x"$have___va_copy" = x"yes"; then
13713 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array type" >&5
13719 $as_echo_n "checking whether va_list is an array type... " >&6; }
13720 cat > conftest.$ac_ext <<EOF
13721 #line 13721 "configure"
13722 #include "confdefs.h"
13724 #include <stdarg.h>
13725 void a(va_list * ap) {}
13728 va_list ap1, ap2; a(&ap1); ap2 = (va_list) ap1
13731 if { (eval echo configure:13731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13737 echo "configure: failed program was:" >&5
13738 cat conftest.$ac_ext >&5
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13742 $as_echo "yes" >&6; }
13744 $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
13750 $as_echo_n "checking for library containing gethostent... " >&6; }
13751 if ${ac_cv_search_gethostent+:} false; then :
13752 $as_echo_n "(cached) " >&6
13754 ac_func_search_save_LIBS=$LIBS
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13758 /* Override any GCC internal prototype to avoid an error.
13759 Use char because int might match the return type of a GCC
13760 builtin and then its argument prototype would still apply. */
13764 char gethostent ();
13768 return gethostent ();
13773 for ac_lib in '' nsl; do
13774 if test -z "$ac_lib"; then
13775 ac_res="none required"
13778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13780 if ac_fn_c_try_link "$LINENO"; then :
13781 ac_cv_search_gethostent=$ac_res
13783 rm -f core conftest.err conftest.$ac_objext \
13785 if ${ac_cv_search_gethostent+:} false; then :
13789 if ${ac_cv_search_gethostent+:} false; then :
13792 ac_cv_search_gethostent=no
13794 rm conftest.$ac_ext
13795 LIBS=$ac_func_search_save_LIBS
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
13798 $as_echo "$ac_cv_search_gethostent" >&6; }
13799 ac_res=$ac_cv_search_gethostent
13800 if test "$ac_res" != no; then :
13801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
13806 $as_echo_n "checking for library containing setsockopt... " >&6; }
13807 if ${ac_cv_search_setsockopt+:} false; then :
13808 $as_echo_n "(cached) " >&6
13810 ac_func_search_save_LIBS=$LIBS
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13814 /* Override any GCC internal prototype to avoid an error.
13815 Use char because int might match the return type of a GCC
13816 builtin and then its argument prototype would still apply. */
13820 char setsockopt ();
13824 return setsockopt ();
13829 for ac_lib in '' socket net network; do
13830 if test -z "$ac_lib"; then
13831 ac_res="none required"
13834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13836 if ac_fn_c_try_link "$LINENO"; then :
13837 ac_cv_search_setsockopt=$ac_res
13839 rm -f core conftest.err conftest.$ac_objext \
13841 if ${ac_cv_search_setsockopt+:} false; then :
13845 if ${ac_cv_search_setsockopt+:} false; then :
13848 ac_cv_search_setsockopt=no
13850 rm conftest.$ac_ext
13851 LIBS=$ac_func_search_save_LIBS
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
13854 $as_echo "$ac_cv_search_setsockopt" >&6; }
13855 ac_res=$ac_cv_search_setsockopt
13856 if test "$ac_res" != no; then :
13857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13862 $as_echo_n "checking for library containing connect... " >&6; }
13863 if ${ac_cv_search_connect+:} false; then :
13864 $as_echo_n "(cached) " >&6
13866 ac_func_search_save_LIBS=$LIBS
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13870 /* Override any GCC internal prototype to avoid an error.
13871 Use char because int might match the return type of a GCC
13872 builtin and then its argument prototype would still apply. */
13885 for ac_lib in '' inet; do
13886 if test -z "$ac_lib"; then
13887 ac_res="none required"
13890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 ac_cv_search_connect=$ac_res
13895 rm -f core conftest.err conftest.$ac_objext \
13897 if ${ac_cv_search_connect+:} false; then :
13901 if ${ac_cv_search_connect+:} false; then :
13904 ac_cv_search_connect=no
13906 rm conftest.$ac_ext
13907 LIBS=$ac_func_search_save_LIBS
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13910 $as_echo "$ac_cv_search_connect" >&6; }
13911 ac_res=$ac_cv_search_connect
13912 if test "$ac_res" != no; then :
13913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5
13919 $as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
13920 cat > conftest.$ac_ext <<EOF
13921 #line 13921 "configure"
13922 #include "confdefs.h"
13924 #include <stddef.h>
13925 #include <sys/types.h>
13926 #include <sys/socket.h>
13929 (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
13932 if { (eval echo configure:13932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
13936 $as_echo "socklen_t *" >&6; }
13937 XML_SOCKLEN_T=socklen_t
13939 echo "configure: failed program was:" >&5
13940 cat conftest.$ac_ext >&5
13943 cat > conftest.$ac_ext <<EOF
13944 #line 13944 "configure"
13945 #include "confdefs.h"
13947 #include <stddef.h>
13948 #include <sys/types.h>
13949 #include <sys/socket.h>
13952 (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
13955 if { (eval echo configure:13955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
13959 $as_echo "size_t *" >&6; }
13960 XML_SOCKLEN_T=size_t
13962 echo "configure: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13967 "configure"
13968 #include "confdefs.h"
13970 #include <stddef.h>
13971 #include <sys/types.h>
13972 #include <sys/socket.h>
13975 (void)getsockopt (1, 1, 1, NULL, (int *)NULL)
13978 if { (eval echo configure:13978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
13982 $as_echo "int *" >&6; }
13985 echo "configure: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
13990 $as_echo "$as_me: WARNING: could not determine" >&2;}
13991 XML_SOCKLEN_T="int"
13999 cat >>confdefs.h <<_ACEOF
14000 #define XML_SOCKLEN_T $XML_SOCKLEN_T
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const gethostbyname() argument" >&5
14005 $as_echo_n "checking for const gethostbyname() argument... " >&6; }
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14012 (void)gethostbyname((const char *)"");
14017 if ac_fn_c_try_link "$LINENO"; then :
14018 have_gethostbyname_const_arg=yes
14020 have_gethostbyname_const_arg=no
14022 rm -f core conftest.err conftest.$ac_objext \
14023 conftest$ac_exeext conftest.$ac_ext
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gethostbyname_const_arg" >&5
14025 $as_echo "$have_gethostbyname_const_arg" >&6; }
14026 if test x"$have_gethostbyname_const_arg" = x"yes"; then
14028 $as_echo "#define GETHOSTBYNAME_ARG_CAST /**/" >>confdefs.h
14032 $as_echo "#define GETHOSTBYNAME_ARG_CAST (char *)" >>confdefs.h
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const send() second argument" >&5
14037 $as_echo_n "checking for const send() second argument... " >&6; }
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14040 #include <sys/types.h>
14041 #include <sys/socket.h>
14045 (void)send(1,(const char *)"",1,1);
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 have_send_const_arg2=yes
14053 have_send_const_arg2=no
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_send_const_arg2" >&5
14058 $as_echo "$have_send_const_arg2" >&6; }
14059 if test x"$have_send_const_arg2" = x"yes"; then
14061 $as_echo "#define SEND_ARG2_CAST /**/" >>confdefs.h
14065 $as_echo "#define SEND_ARG2_CAST (char *)" >>confdefs.h
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
14071 $as_echo_n "checking whether to enable IPv6... " >&6; }
14072 # Check whether --enable-ipv6 was given.
14073 if test "${enable_ipv6+set}" = set; then :
14074 enableval=$enable_ipv6;
14079 if test "$with_minimum" = "yes"
14083 if test $enable_ipv6 = yes; then
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14088 # include <sys/types.h>
14089 # include <sys/socket.h>
14095 struct sockaddr_storage ss;
14096 socket(AF_INET6, SOCK_STREAM, 0)
14102 if ac_fn_c_try_compile "$LINENO"; then :
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
14110 $as_echo "$have_ipv6" >&6; }
14112 if test $have_ipv6 = yes; then
14114 $as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
14116 have_broken_ss_family=no
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr::ss_family" >&5
14119 $as_echo_n "checking struct sockaddr::ss_family... " >&6; }
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14123 # include <sys/types.h>
14124 # include <sys/socket.h>
14130 struct sockaddr_storage ss ;
14137 if ac_fn_c_try_compile "$LINENO"; then :
14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
14145 $as_echo "$have_ss_family" >&6; }
14146 if test x$have_ss_family = xno ; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr::ss_family" >&5
14148 $as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14152 # include <sys/types.h>
14153 # include <sys/socket.h>
14159 struct sockaddr_storage ss ;
14160 ss.__ss_family = 0 ;
14166 if ac_fn_c_try_compile "$LINENO"; then :
14167 have_broken_ss_family=yes
14169 have_broken_ss_family=no
14172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" >&5
14174 $as_echo "$have_broken_ss_family" >&6; }
14175 if test x$have_broken_ss_family = xyes ; then
14177 $as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
14180 $as_echo "#define ss_family __ss_family" >>confdefs.h
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_family not found" >&5
14184 $as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
14188 have_getaddrinfo=no
14189 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
14190 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
14191 have_getaddrinfo=yes
14194 if test $have_getaddrinfo != yes; then
14195 for lib in bsd socket inet; do
14196 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
14198 $as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
14199 if eval \${$as_ac_Lib+:} false; then :
14200 $as_echo_n "(cached) " >&6
14202 ac_check_lib_save_LIBS=$LIBS
14203 LIBS="-l$lib $LIBS"
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14207 /* Override any GCC internal prototype to avoid an error.
14208 Use char because int might match the return type of a GCC
14209 builtin and then its argument prototype would still apply. */
14213 char getaddrinfo ();
14217 return getaddrinfo ();
14222 if ac_fn_c_try_link "$LINENO"; then :
14223 eval "$as_ac_Lib=yes"
14225 eval "$as_ac_Lib=no"
14227 rm -f core conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229 LIBS=$ac_check_lib_save_LIBS
14231 eval ac_res=\$$as_ac_Lib
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14233 $as_echo "$ac_res" >&6; }
14234 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14235 LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
14241 if test $have_getaddrinfo = yes; then
14243 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
14250 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
14251 if test "x$ac_cv_func_isnan" = xyes; then :
14253 $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
14257 $as_echo_n "checking for isnan in -lm... " >&6; }
14258 if ${ac_cv_lib_m_isnan+:} false; then :
14259 $as_echo_n "(cached) " >&6
14261 ac_check_lib_save_LIBS=$LIBS
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14266 /* Override any GCC internal prototype to avoid an error.
14267 Use char because int might match the return type of a GCC
14268 builtin and then its argument prototype would still apply. */
14281 if ac_fn_c_try_link "$LINENO"; then :
14282 ac_cv_lib_m_isnan=yes
14284 ac_cv_lib_m_isnan=no
14286 rm -f core conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 LIBS=$ac_check_lib_save_LIBS
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
14291 $as_echo "$ac_cv_lib_m_isnan" >&6; }
14292 if test "x$ac_cv_lib_m_isnan" = xyes; then :
14294 $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
14301 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
14302 if test "x$ac_cv_func_isinf" = xyes; then :
14304 $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
14308 $as_echo_n "checking for isinf in -lm... " >&6; }
14309 if ${ac_cv_lib_m_isinf+:} false; then :
14310 $as_echo_n "(cached) " >&6
14312 ac_check_lib_save_LIBS=$LIBS
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14317 /* Override any GCC internal prototype to avoid an error.
14318 Use char because int might match the return type of a GCC
14319 builtin and then its argument prototype would still apply. */
14332 if ac_fn_c_try_link "$LINENO"; then :
14333 ac_cv_lib_m_isinf=yes
14335 ac_cv_lib_m_isinf=no
14337 rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext conftest.$ac_ext
14339 LIBS=$ac_check_lib_save_LIBS
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
14342 $as_echo "$ac_cv_lib_m_isinf" >&6; }
14343 if test "x$ac_cv_lib_m_isinf" = xyes; then :
14345 $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
14352 XML_LIBDIR='-L${libdir}'
14353 XML_INCLUDEDIR='-I${includedir}/libxml2'
14358 if test "${GCC}" != "yes" ; then
14361 CFLAGS="${CFLAGS} -Wp,-H30000"
14364 CFLAGS="${CFLAGS} -ieee"
14367 CFLAGS="${CFLAGS} -ieee"
14371 if test "$with_fexceptions" = "yes"
14374 # Not activated by default because this inflates the code size
14375 # Used to allow propagation of C++ exceptions through the library
14377 CFLAGS="${CFLAGS} -fexceptions"
14380 # warnings we'd like to see
14381 CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
14382 # warnings we'd like to supress
14383 CFLAGS="${CFLAGS} -Wno-long-long"
14386 CFLAGS="${CFLAGS} -mieee"
14389 CFLAGS="${CFLAGS} -mieee"
14395 XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
14400 *-*-mingw* | *-*-cygwin* | *-*-msvc* )
14401 # If the host is Windows, and shared libraries are disabled, we
14402 # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
14403 # work properly (without it, xmlexports.h would force the use of
14404 # DLL imports, which obviously aren't present in a static
14406 if test "x$enable_shared" = "xno"; then
14407 XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
14408 CFLAGS="$CFLAGS -DLIBXML_STATIC"
14417 PYTHON_SITE_PACKAGES=
14420 if test "$with_python" != "no" ; then
14421 if test -x "$with_python/bin/python"
14423 echo Found python in $with_python/bin/python
14424 PYTHON="$with_python/bin/python"
14426 if test -x "$with_python/python.exe"
14428 echo Found python in $with_python/python.exe
14429 PYTHON="$with_python/python.exe"
14431 if test -x "$with_python"
14433 echo Found python in $with_python
14434 PYTHON="$with_python"
14436 if test -x "$PYTHON"
14438 echo Found python in environment PYTHON=$PYTHON
14439 with_python=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
14441 # Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
14442 set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444 $as_echo_n "checking for $ac_word... " >&6; }
14445 if ${ac_cv_path_PYTHON+:} false; then :
14446 $as_echo_n "(cached) " >&6
14450 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454 for as_dir in $PATH
14457 test -z "$as_dir" && as_dir=.
14458 for ac_exec_ext in '' $ac_executable_extensions; do
14459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14460 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14471 PYTHON=$ac_cv_path_PYTHON
14472 if test -n "$PYTHON"; then
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14474 $as_echo "$PYTHON" >&6; }
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477 $as_echo "no" >&6; }
14485 if test "$PYTHON" != ""
14487 PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_version())"`
14488 PYTHON_INCLUDES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_inc())"`
14489 # does not work as it produce a /usr/lib/python path instead of/usr/lib64/python
14491 # PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
14492 echo Found Python version $PYTHON_VERSION
14494 if test "$PYTHON_VERSION" != "" -a "$PYTHON_INCLUDES" = ""
14496 if test -r $with_python/include/python$PYTHON_VERSION/Python.h
14498 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
14500 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
14502 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
14504 if test -r /usr/include/python$PYTHON_VERSION/Python.h
14506 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
14508 if test -r $with_python/include/Python.h
14510 PYTHON_INCLUDES=$with_python/include
14512 echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h
14518 if test "$with_python_install_dir" != ""
14520 PYTHON_SITE_PACKAGES="$with_python_install_dir"
14522 if test "$PYTHON_VERSION" != "" -a "$PYTHON_SITE_PACKAGES" = ""
14524 if test -d $libdir/python$PYTHON_VERSION/site-packages
14526 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
14528 if test -d $with_python/lib/site-packages
14530 PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
14532 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
14536 pythondir='$(PYTHON_SITE_PACKAGES)'
14537 PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
14541 if test "$PYTHON_INCLUDES" != ""; then
14543 WITH_PYTHON_FALSE='#'
14545 WITH_PYTHON_TRUE='#'
14549 if test "$PYTHON_INCLUDES" != ""
14551 PYTHON_SUBDIR=python
14562 if test "$with_modules" != "no" ; then
14565 MODULE_EXTENSION=".dll"
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
14567 $as_echo_n "checking for dlopen in -lcygwin... " >&6; }
14568 if ${ac_cv_lib_cygwin_dlopen+:} false; then :
14569 $as_echo_n "(cached) " >&6
14571 ac_check_lib_save_LIBS=$LIBS
14572 LIBS="-lcygwin $LIBS"
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14576 /* Override any GCC internal prototype to avoid an error.
14577 Use char because int might match the return type of a GCC
14578 builtin and then its argument prototype would still apply. */
14591 if ac_fn_c_try_link "$LINENO"; then :
14592 ac_cv_lib_cygwin_dlopen=yes
14594 ac_cv_lib_cygwin_dlopen=no
14596 rm -f core conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14598 LIBS=$ac_check_lib_save_LIBS
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
14601 $as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
14602 if test "x$ac_cv_lib_cygwin_dlopen" = xyes; then :
14605 MODULE_PLATFORM_LIBS=
14607 $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
14614 MODULE_EXTENSION=".dll"
14618 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14619 if test "x$ac_cv_func_shl_load" = xyes; then :
14620 libxml_have_shl_load=yes
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14624 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14625 if ${ac_cv_lib_dld_shl_load+:} false; then :
14626 $as_echo_n "(cached) " >&6
14628 ac_check_lib_save_LIBS=$LIBS
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14633 /* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14643 return shl_load ();
14648 if ac_fn_c_try_link "$LINENO"; then :
14649 ac_cv_lib_dld_shl_load=yes
14651 ac_cv_lib_dld_shl_load=no
14653 rm -f core conftest.err conftest.$ac_objext \
14654 conftest$ac_exeext conftest.$ac_ext
14655 LIBS=$ac_check_lib_save_LIBS
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14658 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14659 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14661 MODULE_PLATFORM_LIBS="-ldld"
14662 libxml_have_shl_load=yes
14665 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14666 if test "x$ac_cv_func_dlopen" = xyes; then :
14667 libxml_have_dlopen=yes
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14671 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14672 if ${ac_cv_lib_dl_dlopen+:} false; then :
14673 $as_echo_n "(cached) " >&6
14675 ac_check_lib_save_LIBS=$LIBS
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14680 /* Override any GCC internal prototype to avoid an error.
14681 Use char because int might match the return type of a GCC
14682 builtin and then its argument prototype would still apply. */
14695 if ac_fn_c_try_link "$LINENO"; then :
14696 ac_cv_lib_dl_dlopen=yes
14698 ac_cv_lib_dl_dlopen=no
14700 rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14702 LIBS=$ac_check_lib_save_LIBS
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14705 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14706 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14708 MODULE_PLATFORM_LIBS="-ldl"
14709 libxml_have_dlopen=yes
14719 if test "${libxml_have_shl_load}" = "yes"; then
14720 MODULE_EXTENSION=".sl"
14723 $as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
14727 if test "${libxml_have_dlopen}" = "yes"; then
14730 MODULE_EXTENSION=".sl"
14733 MODULE_EXTENSION=".so"
14739 $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
14746 if test "${WITH_MODULES}" = "1"; then
14747 TEST_MODULES="ModuleTests"
14756 if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
14757 [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
14758 [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
14760 if test "$with_minimum" != "yes"
14762 if test "${with_mem_debug}" = "" ; then
14763 echo Activating memory debugging
14764 with_mem_debug="yes"
14765 with_run_debug="yes"
14767 if test "${with_docbook}" = "" ; then
14771 if test "${GCC}" = "yes" ; then
14772 CFLAGS="-g -O -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall"
14774 STATIC_BINARIES="-static"
14781 if test "${NEED_TRIO}" = "1" ; then
14782 echo Adding trio library for string functions
14787 if test "${NEED_TRIO}" = "1"; then
14788 WITH_TRIO_SOURCES_TRUE=
14789 WITH_TRIO_SOURCES_FALSE='#'
14791 WITH_TRIO_SOURCES_TRUE='#'
14792 WITH_TRIO_SOURCES_FALSE=
14797 echo Checking configuration requirements
14800 BASE_THREAD_LIBS=""
14805 WITH_THREAD_ALLOC=0
14807 if test "$with_threads" = "no" ; then
14808 echo Disabling multithreaded support
14810 echo Enabling multithreaded support
14813 *mingw32*) if test "$with_threads" != "pthread" && test "$with_threads" != "no"; then
14816 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
14821 if test -z "$THREADS_W32"; then
14822 if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
14823 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14824 if test "x$ac_cv_header_pthread_h" = xyes; then :
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
14826 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
14827 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
14828 $as_echo_n "(cached) " >&6
14830 ac_check_lib_save_LIBS=$LIBS
14831 LIBS="-lpthread $LIBS"
14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14835 /* Override any GCC internal prototype to avoid an error.
14836 Use char because int might match the return type of a GCC
14837 builtin and then its argument prototype would still apply. */
14841 char pthread_join ();
14845 return pthread_join ();
14850 if ac_fn_c_try_link "$LINENO"; then :
14851 ac_cv_lib_pthread_pthread_join=yes
14853 ac_cv_lib_pthread_pthread_join=no
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LIBS=$ac_check_lib_save_LIBS
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
14860 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
14861 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
14863 THREAD_LIBS="-lpthread"
14865 $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
14868 $as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
14880 *cygwin*) THREAD_LIBS=""
14882 *beos*) WITH_THREADS="1"
14883 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
14886 if test "${GCC}" = "yes" ; then
14887 GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
14888 GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
14889 GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\..*++'`
14890 if test "${THREAD_LIBS}" = "-lpthread" ; then
14891 if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
14894 BASE_THREAD_LIBS="-lpthread"
14896 if expr ${GCC_MAJOR} \> 3 > /dev/null
14899 BASE_THREAD_LIBS="-lpthread"
14901 echo old GCC disabling weak symbols for pthread
14908 if test "$WITH_THREADS" = "1" ; then
14909 THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
14910 TEST_THREADS="Threadtests"
14913 if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
14914 WITH_THREAD_ALLOC=1
14923 if test -n "$THREADS_W32"; then
14925 THREADS_W32_FALSE='#'
14927 THREADS_W32_TRUE='#'
14932 if test "$with_history" = "yes" ; then
14933 echo Enabling xmllint shell history
14935 for termlib in ncurses curses termcap terminfo termlib; do
14936 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
14938 $as_echo_n "checking for tputs in -l${termlib}... " >&6; }
14939 if eval \${$as_ac_Lib+:} false; then :
14940 $as_echo_n "(cached) " >&6
14942 ac_check_lib_save_LIBS=$LIBS
14943 LIBS="-l${termlib} $LIBS"
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14947 /* Override any GCC internal prototype to avoid an error.
14948 Use char because int might match the return type of a GCC
14949 builtin and then its argument prototype would still apply. */
14962 if ac_fn_c_try_link "$LINENO"; then :
14963 eval "$as_ac_Lib=yes"
14965 eval "$as_ac_Lib=no"
14967 rm -f core conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext conftest.$ac_ext
14969 LIBS=$ac_check_lib_save_LIBS
14971 eval ac_res=\$$as_ac_Lib
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14973 $as_echo "$ac_res" >&6; }
14974 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14978 test -n "$tcap" && break
14981 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
14982 if test "x$ac_cv_header_readline_history_h" = xyes; then :
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
14984 $as_echo_n "checking for append_history in -lhistory... " >&6; }
14985 if ${ac_cv_lib_history_append_history+:} false; then :
14986 $as_echo_n "(cached) " >&6
14988 ac_check_lib_save_LIBS=$LIBS
14989 LIBS="-lhistory $LIBS"
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14993 /* Override any GCC internal prototype to avoid an error.
14994 Use char because int might match the return type of a GCC
14995 builtin and then its argument prototype would still apply. */
14999 char append_history ();
15003 return append_history ();
15008 if ac_fn_c_try_link "$LINENO"; then :
15009 ac_cv_lib_history_append_history=yes
15011 ac_cv_lib_history_append_history=no
15013 rm -f core conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15015 LIBS=$ac_check_lib_save_LIBS
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
15018 $as_echo "$ac_cv_lib_history_append_history" >&6; }
15019 if test "x$ac_cv_lib_history_append_history" = xyes; then :
15021 RDL_LIBS="-lhistory"
15023 $as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
15030 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
15031 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15033 $as_echo_n "checking for readline in -lreadline... " >&6; }
15034 if ${ac_cv_lib_readline_readline+:} false; then :
15035 $as_echo_n "(cached) " >&6
15037 ac_check_lib_save_LIBS=$LIBS
15038 LIBS="-lreadline $tcap $LIBS"
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040 /* end confdefs.h. */
15042 /* Override any GCC internal prototype to avoid an error.
15043 Use char because int might match the return type of a GCC
15044 builtin and then its argument prototype would still apply. */
15052 return readline ();
15057 if ac_fn_c_try_link "$LINENO"; then :
15058 ac_cv_lib_readline_readline=yes
15060 ac_cv_lib_readline_readline=no
15062 rm -f core conftest.err conftest.$ac_objext \
15063 conftest$ac_exeext conftest.$ac_ext
15064 LIBS=$ac_check_lib_save_LIBS
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15067 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15068 if test "x$ac_cv_lib_readline_readline" = xyes; then :
15070 RDL_LIBS="-lreadline $RDL_LIBS $tcap"
15072 $as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
15079 if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
15080 CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
15081 RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
15085 if test "$with_tree" = "no" ; then
15086 echo Disabling DOM like tree manipulation APIs
15093 if test "$with_ftp" = "no" ; then
15094 echo Disabling FTP support
15104 if test "$with_http" = "no" ; then
15105 echo Disabling HTTP support
15110 HTTP_OBJ=nanohttp.o
15115 if test "$with_legacy" = "no" ; then
15116 echo Disabling deprecated APIs
15123 if test "$with_reader" = "no" ; then
15124 echo Disabling the xmlReader parsing interface
15129 READER_TEST=Readertests
15130 if test "$with_push" = "no" ; then
15131 echo xmlReader requires Push interface - enabling it
15138 if test "$with_writer" = "no" ; then
15139 echo Disabling the xmlWriter saving interface
15144 # WRITER_TEST=Writertests
15145 if test "$with_push" = "no" ; then
15146 echo xmlWriter requires Push interface - enabling it
15149 if test "$with_output" = "no" ; then
15150 echo xmlWriter requires Output interface - enabling it
15155 #AC_SUBST(WRITER_TEST)
15157 if test "$with_pattern" = "no" ; then
15158 echo Disabling the xmlPattern parsing interface
15163 TEST_PATTERN=Patterntests
15168 if test "$with_sax1" = "no" ; then
15169 echo Disabling the older SAX1 interface
15177 if test "${WITH_TRIO}" = "1"; then
15178 WITH_SAX1_SOURCES_TRUE=
15179 WITH_SAX1_SOURCES_FALSE='#'
15181 WITH_SAX1_SOURCES_TRUE='#'
15182 WITH_SAX1_SOURCES_FALSE=
15187 if test "$with_push" = "no" ; then
15188 echo Disabling the PUSH parser interfaces
15193 TEST_PUSH="XMLPushtests"
15198 if test "$with_html" = "no" ; then
15199 echo Disabling HTML support
15205 HTML_OBJ="HTMLparser.o HTMLtree.o"
15206 TEST_HTML=HTMLtests
15207 if test "$with_push" != "no" ; then
15208 TEST_PHTML=HTMLPushtests
15218 if test "$with_valid" = "no" ; then
15219 echo Disabling DTD validation support
15225 TEST_VALID=Validtests
15226 TEST_VTIME=VTimingtests
15232 if test "$with_catalog" = "no" ; then
15233 echo Disabling Catalog support
15239 CATALOG_OBJ="catalog.o"
15240 TEST_CATALOG=Catatests
15246 if test "$with_docbook" = "no" ; then
15247 echo Disabling Docbook support
15252 DOCB_OBJ="DOCBparser.o"
15258 if test "$with_xptr" = "no" ; then
15259 echo Disabling XPointer support
15265 XPTR_OBJ=xpointer.o
15266 TEST_XPTR=XPtrtests
15267 if test "$with_xpath" = "no" ; then
15268 echo XPointer requires XPath support - enabling it
15276 if test "$with_c14n" = "no" ; then
15277 echo Disabling C14N support
15284 TEST_C14N=C14Ntests
15285 if test "$with_xpath" = "no" ; then
15286 echo C14N requires XPath support - enabling it
15294 if test "$with_xinclude" = "no" ; then
15295 echo Disabling XInclude support
15302 XINCLUDE_OBJ=xinclude.o
15303 TEST_XINCLUDE=XIncludetests
15304 if test "$with_xpath" = "no" ; then
15305 echo XInclude requires XPath support - enabling it
15313 if test "$with_xptr" = "" -a "$with_xpath" = "no" ; then
15317 if test "$with_schematron" = "" -a "$with_xpath" = "no" ; then
15321 if test "$with_schematron" = "no" ; then
15322 echo "Disabling Schematron support"
15326 echo "Enabled Schematron support"
15328 TEST_SCHEMATRON="Schematrontests"
15331 with_schematron=yes
15336 if test "$with_xpath" = "no" ; then
15337 echo Disabling XPATH support
15344 TEST_XPATH=XPathtests
15350 if test "$with_output" = "no" ; then
15351 echo Disabling serialization/saving support
15359 if test "$with_iconv" = "no" ; then
15360 echo Disabling ICONV support
15362 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
15363 CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
15364 # Export this since our headers include iconv.h
15365 XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
15366 ICONV_LIBS="-L$with_iconv/lib"
15369 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
15370 if test "x$ac_cv_header_iconv_h" = xyes; then :
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15372 $as_echo_n "checking for iconv... " >&6; }
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 #include <stdlib.h>
15381 iconv_t cd = iconv_open ("","");
15382 iconv (cd, NULL, NULL, NULL, NULL);
15387 if ac_fn_c_try_link "$LINENO"; then :
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15390 $as_echo "yes" >&6; }
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15395 $as_echo "no" >&6; }
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
15397 $as_echo_n "checking for iconv in -liconv... " >&6; }
15399 _ldflags="${LDFLAGS}"
15401 LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
15402 LIBS="${LIBS} -liconv"
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15406 #include <stdlib.h>
15412 iconv_t cd = iconv_open ("","");
15413 iconv (cd, NULL, NULL, NULL, NULL);
15418 if ac_fn_c_try_link "$LINENO"; then :
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15421 $as_echo "yes" >&6; }
15423 ICONV_LIBS="${ICONV_LIBS} -liconv"
15425 LDFLAGS="${_ldflags}"
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15429 $as_echo "no" >&6; }
15431 LDFLAGS="${_ldflags}"
15433 rm -f core conftest.err conftest.$ac_objext \
15434 conftest$ac_exeext conftest.$ac_ext
15436 rm -f core conftest.err conftest.$ac_objext \
15437 conftest$ac_exeext conftest.$ac_ext
15442 if test "$WITH_ICONV" = "1" ; then
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15444 $as_echo_n "checking for iconv declaration... " >&6; }
15445 if ${xml_cv_iconv_arg2+:} false; then :
15446 $as_echo_n "(cached) " >&6
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451 #include <stdlib.h>
15457 #if defined(__STDC__) || defined(__cplusplus)
15458 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15471 if ac_fn_c_try_compile "$LINENO"; then :
15472 xml_cv_iconv_arg2=""
15474 xml_cv_iconv_arg2="const"
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15480 xml_cv_iconv_decl="extern size_t iconv (iconv_t cd, $xml_cv_iconv_arg2 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
15482 }$xml_cv_iconv_decl" >&5
15483 $as_echo "${xml_xxx:-
15484 }$xml_cv_iconv_decl" >&6; }
15486 cat >>confdefs.h <<_ACEOF
15487 #define ICONV_CONST $xml_cv_iconv_arg2
15502 XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
15503 XML_LIBTOOLLIBS="libxml2.la"
15508 if test "$with_icu" != "yes" ; then
15509 echo Disabling ICU support
15511 ICU_CONFIG=icu-config
15512 if ${ICU_CONFIG} --cflags >/dev/null 2>&1
15514 ICU_LIBS=`${ICU_CONFIG} --ldflags`
15516 echo Enabling ICU support
15518 as_fn_error $? "libicu config program icu-config not found" "$LINENO" 5
15525 if test "$WITH_ICONV" != "1" ; then
15526 if test "$with_iso8859x" = "no" ; then
15527 echo Disabling ISO8859X support
15533 if test "$with_schemas" = "no" ; then
15534 echo "Disabling Schemas/Relax-NG support"
15538 echo "Enabled Schemas/Relax-NG support"
15540 TEST_SCHEMAS="Schemastests Relaxtests"
15541 if test "$PYTHON_INCLUDES" != "" ; then
15542 PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
15549 if test "$with_regexps" = "no" ; then
15550 echo Disabling Regexps support
15555 TEST_REGEXPS="Regexptests Automatatests"
15560 if test "$with_debug" = "no" ; then
15561 echo Disabling DEBUG support
15567 DEBUG_OBJ=debugXML.o
15568 TEST_DEBUG=Scripttests
15574 if test "$with_mem_debug" = "yes" ; then
15575 if test "$with_thread_alloc" = "yes" ; then
15576 echo Disabling memory debug - cannot use mem-debug with thread-alloc!
15579 echo Enabling memory debug support
15587 if test "$with_run_debug" = "yes" ; then
15588 echo Enabling runtime debug support
15595 WIN32_EXTRA_LIBADD=
15596 WIN32_EXTRA_LDFLAGS=
15597 CYGWIN_EXTRA_LDFLAGS=
15598 CYGWIN_EXTRA_PYTHON_LIBADD=
15599 WIN32_EXTRA_PYTHON_LIBADD=
15602 CPPFLAGS="$CPPFLAGS -DWIN32"
15603 WIN32_EXTRA_LIBADD="-lws2_32"
15604 WIN32_EXTRA_LDFLAGS="-no-undefined"
15606 $as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
15608 if test "${PYTHON}" != ""
15610 WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_VERSION} | tr -d .)"
15614 CYGWIN_EXTRA_LDFLAGS="-no-undefined"
15615 if test "${PYTHON}" != ""
15617 CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
15627 for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
15629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15631 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15632 cat >>confdefs.h <<_ACEOF
15633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15642 if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
15644 echo Enabling code coverage for GCC
15645 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
15646 LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
15648 echo Disabling code coverage for GCC
15672 RELDATE=`date +'%a %b %e %Y'`
15676 rm -f COPYING.LIB COPYING
15677 ln -s $srcdir/Copyright COPYING
15679 # keep on one line for cygwin c.f. #130896
15680 ac_config_files="$ac_config_files libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h libxml-2.0.pc libxml-2.0-uninstalled.pc libxml2-config.cmake"
15682 ac_config_files="$ac_config_files python/setup.py"
15684 ac_config_files="$ac_config_files xml2-config"
15686 cat >confcache <<\_ACEOF
15687 # This file is a shell script that caches the results of configure
15688 # tests run on this system so they can be shared between configure
15689 # scripts and configure runs, see configure's option --config-cache.
15690 # It is not useful on other systems. If it contains results you don't
15691 # want to keep, you may remove or edit it.
15693 # config.status only pays attention to the cache file if you give it
15694 # the --recheck option to rerun configure.
15696 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15697 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15698 # following values.
15702 # The following way of writing the cache mishandles newlines in values,
15703 # but we know of no workaround that is simple, portable, and efficient.
15704 # So, we kill variables containing newlines.
15705 # Ultrix sh set writes to stderr and can't be redirected directly,
15706 # and sets the high bit in the cache file unless we assign to the vars.
15708 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15709 eval ac_val=\$$ac_var
15713 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15714 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15717 _ | IFS | as_nl) ;; #(
15718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15719 *) { eval $ac_var=; unset $ac_var;} ;;
15725 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15726 *${as_nl}ac_space=\ *)
15727 # `set' does not quote correctly, so add quotes: double-quote
15728 # substitution turns \\\\ into \\, and sed turns \\ into \.
15731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15734 # `set' quotes correctly as required by POSIX, so do not add quotes.
15735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15746 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15748 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15749 if test -w "$cache_file"; then
15750 if test "x$cache_file" != "x/dev/null"; then
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15752 $as_echo "$as_me: updating cache $cache_file" >&6;}
15753 if test ! -f "$cache_file" || test -h "$cache_file"; then
15754 cat confcache >"$cache_file"
15756 case $cache_file in #(
15758 mv -f confcache "$cache_file"$$ &&
15759 mv -f "$cache_file"$$ "$cache_file" ;; #(
15761 mv -f confcache "$cache_file" ;;
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15767 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15773 # Let make expand exec_prefix.
15774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15776 DEFS=-DHAVE_CONFIG_H
15781 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15782 # 1. Remove the extension, and $U if already installed.
15783 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15784 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15785 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15786 # will be set to the directory where LIBOBJS objects are built.
15787 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15788 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15790 LIBOBJS=$ac_libobjs
15792 LTLIBOBJS=$ac_ltlibobjs
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15796 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15797 if test -n "$am_sleep_pid"; then
15798 # Hide warnings about reused PIDs.
15799 wait $am_sleep_pid 2>/dev/null
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15802 $as_echo "done" >&6; }
15803 if test -n "$EXEEXT"; then
15805 am__EXEEXT_FALSE='#'
15807 am__EXEEXT_TRUE='#'
15811 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15812 as_fn_error $? "conditional \"AMDEP\" was never defined.
15813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15815 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15816 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15819 if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
15820 as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
15821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15823 if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
15824 as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined.
15825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15827 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
15828 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
15829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15831 if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
15832 as_fn_error $? "conditional \"WITH_TRIO_SOURCES\" was never defined.
15833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15835 if test -z "${THREADS_W32_TRUE}" && test -z "${THREADS_W32_FALSE}"; then
15836 as_fn_error $? "conditional \"THREADS_W32\" was never defined.
15837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15839 if test -z "${WITH_SAX1_SOURCES_TRUE}" && test -z "${WITH_SAX1_SOURCES_FALSE}"; then
15840 as_fn_error $? "conditional \"WITH_SAX1_SOURCES\" was never defined.
15841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15844 : "${CONFIG_STATUS=./config.status}"
15846 ac_clean_files_save=$ac_clean_files
15847 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15849 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15851 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15853 # Generated by $as_me.
15854 # Run this file to recreate the current configuration.
15855 # Compiler output produced by configure, useful for debugging
15856 # configure, is in config.log if it exists.
15859 ac_cs_recheck=false
15862 SHELL=\${CONFIG_SHELL-$SHELL}
15865 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15866 ## -------------------- ##
15867 ## M4sh Initialization. ##
15868 ## -------------------- ##
15870 # Be more Bourne compatible
15871 DUALCASE=1; export DUALCASE # for MKS sh
15872 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15875 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15876 # is contrary to our usage. Disable this feature.
15877 alias -g '${1+"$@"}'='"$@"'
15878 setopt NO_GLOB_SUBST
15880 case `(set -o) 2>/dev/null` in #(
15892 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15893 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15894 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15895 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15896 # Prefer a ksh shell builtin over an external printf program on Solaris,
15897 # but without wasting forks for bash or zsh.
15898 if test -z "$BASH_VERSION$ZSH_VERSION" \
15899 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15900 as_echo='print -r --'
15901 as_echo_n='print -rn --'
15902 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15903 as_echo='printf %s\n'
15904 as_echo_n='printf %s'
15906 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15907 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15908 as_echo_n='/usr/ucb/echo -n'
15910 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15911 as_echo_n_body='eval
15915 expr "X$arg" : "X\\(.*\\)$as_nl";
15916 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15918 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15920 export as_echo_n_body
15921 as_echo_n='sh -c $as_echo_n_body as_echo'
15923 export as_echo_body
15924 as_echo='sh -c $as_echo_body as_echo'
15927 # The user is always right.
15928 if test "${PATH_SEPARATOR+set}" != set; then
15930 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15931 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15938 # We need space, tab and new line, in precisely that order. Quoting is
15939 # there to prevent editors from complaining about space-tab.
15940 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15941 # splitting by setting IFS to empty value.)
15944 # Find who we are. Look in the path if we contain no directory separator.
15947 *[\\/]* ) as_myself=$0 ;;
15948 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15949 for as_dir in $PATH
15952 test -z "$as_dir" && as_dir=.
15953 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15959 # We did not find ourselves, most probably we were run as `sh COMMAND'
15960 # in which case we are not to be found in the path.
15961 if test "x$as_myself" = x; then
15964 if test ! -f "$as_myself"; then
15965 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15969 # Unset variables that we do not need and which cause bugs (e.g. in
15970 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15971 # suppresses any "Segmentation fault" message there. '((' could
15972 # trigger a bug in pdksh 5.2.14.
15973 for as_var in BASH_ENV ENV MAIL MAILPATH
15974 do eval test x\${$as_var+set} = xset \
15975 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15988 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15991 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15992 # ----------------------------------------
15993 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15994 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15995 # script with STATUS, using 1 if that was 0.
15998 as_status=$1; test $as_status -eq 0 && as_status=1
16000 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16001 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16003 $as_echo "$as_me: error: $2" >&2
16004 as_fn_exit $as_status
16008 # as_fn_set_status STATUS
16009 # -----------------------
16010 # Set $? to STATUS, without forking.
16011 as_fn_set_status ()
16014 } # as_fn_set_status
16016 # as_fn_exit STATUS
16017 # -----------------
16018 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16022 as_fn_set_status $1
16028 # Portably unset VAR.
16031 { eval $1=; unset $1;}
16033 as_unset=as_fn_unset
16034 # as_fn_append VAR VALUE
16035 # ----------------------
16036 # Append the text in VALUE to the end of the definition contained in VAR. Take
16037 # advantage of any shell optimizations that allow amortized linear growth over
16038 # repeated appends, instead of the typical quadratic growth present in naive
16040 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16041 eval 'as_fn_append ()
16052 # as_fn_arith ARG...
16053 # ------------------
16054 # Perform arithmetic evaluation on the ARGs, and store the result in the
16055 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16056 # must be portable across $(()) and expr.
16057 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16058 eval 'as_fn_arith ()
16065 as_val=`expr "$@" || test $? -eq 1`
16070 if expr a : '\(a\)' >/dev/null 2>&1 &&
16071 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16077 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16078 as_basename=basename
16083 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16089 as_me=`$as_basename -- "$0" ||
16090 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16091 X"$0" : 'X\(//\)$' \| \
16092 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16094 sed '/^.*\/\([^/][^/]*\)\/*$/{
16108 # Avoid depending upon Character Ranges.
16109 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16110 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16111 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16112 as_cr_digits='0123456789'
16113 as_cr_alnum=$as_cr_Letters$as_cr_digits
16115 ECHO_C= ECHO_N= ECHO_T=
16116 case `echo -n x` in #(((((
16118 case `echo 'xy\c'` in
16119 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16121 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16128 rm -f conf$$ conf$$.exe conf$$.file
16129 if test -d conf$$.dir; then
16130 rm -f conf$$.dir/conf$$.file
16133 mkdir conf$$.dir 2>/dev/null
16135 if (echo >conf$$.file) 2>/dev/null; then
16136 if ln -s conf$$.file conf$$ 2>/dev/null; then
16138 # ... but there are two gotchas:
16139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16141 # In both cases, we have to default to `cp -pR'.
16142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16144 elif ln conf$$.file conf$$ 2>/dev/null; then
16152 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16153 rmdir conf$$.dir 2>/dev/null
16158 # Create "$as_dir" as a directory, including parents if necessary.
16163 -*) as_dir=./$as_dir;;
16165 test -d "$as_dir" || eval $as_mkdir_p || {
16169 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16170 *) as_qdir=$as_dir;;
16172 as_dirs="'$as_qdir' $as_dirs"
16173 as_dir=`$as_dirname -- "$as_dir" ||
16174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16175 X"$as_dir" : 'X\(//\)[^/]' \| \
16176 X"$as_dir" : 'X\(//\)$' \| \
16177 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16178 $as_echo X"$as_dir" |
16179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16183 /^X\(\/\/\)[^/].*/{
16196 test -d "$as_dir" && break
16198 test -z "$as_dirs" || eval "mkdir $as_dirs"
16199 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16203 if mkdir -p . 2>/dev/null; then
16204 as_mkdir_p='mkdir -p "$as_dir"'
16206 test -d ./-p && rmdir ./-p
16211 # as_fn_executable_p FILE
16212 # -----------------------
16213 # Test if FILE is an executable regular file.
16214 as_fn_executable_p ()
16216 test -f "$1" && test -x "$1"
16217 } # as_fn_executable_p
16218 as_test_x='test -x'
16219 as_executable_p=as_fn_executable_p
16221 # Sed expression to map a string onto a valid CPP name.
16222 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16224 # Sed expression to map a string onto a valid variable name.
16225 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16229 ## ----------------------------------- ##
16230 ## Main body of $CONFIG_STATUS script. ##
16231 ## ----------------------------------- ##
16233 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 # Save the log message, to keep $0 and so on meaningful, and to
16237 # report actual input values of CONFIG_FILES etc. instead of their
16238 # values after options handling.
16240 This file was extended by $as_me, which was
16241 generated by GNU Autoconf 2.69. Invocation command line was
16243 CONFIG_FILES = $CONFIG_FILES
16244 CONFIG_HEADERS = $CONFIG_HEADERS
16245 CONFIG_LINKS = $CONFIG_LINKS
16246 CONFIG_COMMANDS = $CONFIG_COMMANDS
16249 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16254 case $ac_config_files in *"
16255 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16258 case $ac_config_headers in *"
16259 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16264 # Files that config.status was made for.
16265 config_files="$ac_config_files"
16266 config_headers="$ac_config_headers"
16267 config_commands="$ac_config_commands"
16271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16273 \`$as_me' instantiates files and other configuration actions
16274 from templates according to the current configuration. Unless the files
16275 and actions are specified as TAGs, all are instantiated by default.
16277 Usage: $0 [OPTION]... [TAG]...
16279 -h, --help print this help, then exit
16280 -V, --version print version number and configuration settings, then exit
16281 --config print configuration, then exit
16282 -q, --quiet, --silent
16283 do not print progress messages
16284 -d, --debug don't remove temporary files
16285 --recheck update $as_me by reconfiguring in the same conditions
16286 --file=FILE[:TEMPLATE]
16287 instantiate the configuration file FILE
16288 --header=FILE[:TEMPLATE]
16289 instantiate the configuration header FILE
16291 Configuration files:
16294 Configuration headers:
16297 Configuration commands:
16300 Report bugs to the package provider."
16303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16304 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16307 configured by $0, generated by GNU Autoconf 2.69,
16308 with options \\"\$ac_cs_config\\"
16310 Copyright (C) 2012 Free Software Foundation, Inc.
16311 This config.status script is free software; the Free Software Foundation
16312 gives unlimited permission to copy, distribute and modify it."
16319 test -n "\$AWK" || AWK=awk
16322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323 # The default lists apply if the user does not specify any file.
16329 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16330 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16346 # Handling of the options.
16347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16350 $as_echo "$ac_cs_version"; exit ;;
16351 --config | --confi | --conf | --con | --co | --c )
16352 $as_echo "$ac_cs_config"; exit ;;
16353 --debug | --debu | --deb | --de | --d | -d )
16355 --file | --fil | --fi | --f )
16358 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16359 '') as_fn_error $? "missing file argument" ;;
16361 as_fn_append CONFIG_FILES " '$ac_optarg'"
16362 ac_need_defaults=false;;
16363 --header | --heade | --head | --hea )
16366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16368 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16369 ac_need_defaults=false;;
16371 # Conflict between --help and --header
16372 as_fn_error $? "ambiguous option: \`$1'
16373 Try \`$0 --help' for more information.";;
16374 --help | --hel | -h )
16375 $as_echo "$ac_cs_usage"; exit ;;
16376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16380 # This is an error.
16381 -*) as_fn_error $? "unrecognized option: \`$1'
16382 Try \`$0 --help' for more information." ;;
16384 *) as_fn_append ac_config_targets " $1"
16385 ac_need_defaults=false ;;
16391 ac_configure_extra_args=
16393 if $ac_cs_silent; then
16395 ac_configure_extra_args="$ac_configure_extra_args --silent"
16399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16400 if \$ac_cs_recheck; then
16401 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16403 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16404 CONFIG_SHELL='$SHELL'
16405 export CONFIG_SHELL
16410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16415 ## Running $as_me. ##
16421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16425 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16428 # The HP-UX ksh and POSIX shell print the target directory to stdout
16429 # if CDPATH is set.
16430 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16432 sed_quote_subst='$sed_quote_subst'
16433 double_quote_subst='$double_quote_subst'
16434 delay_variable_subst='$delay_variable_subst'
16435 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16436 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16437 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16438 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16439 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16440 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16441 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16442 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16443 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16444 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16445 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16446 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16447 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16448 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16449 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16450 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16451 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16452 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16453 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16454 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16455 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16456 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16457 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16458 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16459 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16460 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16461 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16462 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16463 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16464 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16465 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16466 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16467 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16468 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16469 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16470 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16471 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16472 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16473 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16474 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16475 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16476 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16477 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16478 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16479 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16480 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16481 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16482 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16483 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16484 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16485 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16486 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16487 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16488 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16489 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16490 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16491 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"`'
16492 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16493 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16494 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16495 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16496 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16497 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16498 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16499 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16500 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16501 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16502 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16503 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16504 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16505 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16506 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16507 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16508 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16509 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16510 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16511 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16512 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16513 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16514 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16515 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16516 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16517 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16518 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16519 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16520 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16521 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16522 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16523 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16524 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16525 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16526 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16527 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16528 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16529 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16530 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16531 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16532 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16533 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16534 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16535 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16536 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16537 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16538 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16539 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16540 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16541 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16542 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16543 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16544 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16545 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16546 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16547 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16548 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16549 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16550 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16551 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16552 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16553 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16554 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16555 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16556 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16557 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16558 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16559 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16560 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16561 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16562 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16563 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16564 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16567 LTCFLAGS='$LTCFLAGS'
16568 compiler='$compiler_DEFAULT'
16570 # A function that is used when there is no print builtin or printf.
16571 func_fallback_echo ()
16573 eval 'cat <<_LTECHO_EOF
16578 # Quote evaled strings.
16593 deplibs_check_method \
16598 sharedlib_from_linklib_cmd \
16601 archiver_list_spec \
16607 lt_cv_sys_global_symbol_pipe \
16608 lt_cv_sys_global_symbol_to_cdecl \
16609 lt_cv_sys_global_symbol_to_c_name_address \
16610 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16611 nm_file_list_spec \
16612 lt_prog_compiler_no_builtin_flag \
16613 lt_prog_compiler_pic \
16614 lt_prog_compiler_wl \
16615 lt_prog_compiler_static \
16616 lt_cv_prog_compiler_c_o \
16625 export_dynamic_flag_spec \
16626 whole_archive_flag_spec \
16627 compiler_needs_object \
16629 allow_undefined_flag \
16630 no_undefined_flag \
16631 hardcode_libdir_flag_spec \
16632 hardcode_libdir_separator \
16636 variables_saved_for_relink \
16638 library_names_spec \
16640 install_override_mode \
16644 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16645 *[\\\\\\\`\\"\\\$]*)
16646 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16649 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16654 # Double-quote double-evaled strings.
16655 for var in reload_cmds \
16656 old_postinstall_cmds \
16657 old_postuninstall_cmds \
16659 extract_expsyms_cmds \
16660 old_archive_from_new_cmds \
16661 old_archive_from_expsyms_cmds \
16663 archive_expsym_cmds \
16665 module_expsym_cmds \
16666 export_symbols_cmds \
16670 postuninstall_cmds \
16672 sys_lib_search_path_spec \
16673 sys_lib_dlsearch_path_spec; do
16674 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16675 *[\\\\\\\`\\"\\\$]*)
16676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16684 ac_aux_dir='$ac_aux_dir'
16685 xsi_shell='$xsi_shell'
16686 lt_shell_append='$lt_shell_append'
16688 # See if we are running on zsh, and set the options which allow our
16689 # commands through without removal of \ escapes INIT.
16690 if test -n "\${ZSH_VERSION+set}" ; then
16691 setopt NO_GLOB_SUBST
16697 TIMESTAMP='$TIMESTAMP'
16706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16708 # Handling of arguments.
16709 for ac_config_target in $ac_config_targets
16711 case $ac_config_target in
16712 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16713 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16714 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16715 "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
16716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16717 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16718 "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
16719 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16720 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
16721 "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
16722 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
16723 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16724 "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
16725 "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
16726 "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
16727 "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
16728 "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstalled.pc" ;;
16729 "libxml2-config.cmake") CONFIG_FILES="$CONFIG_FILES libxml2-config.cmake" ;;
16730 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
16731 "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
16733 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16738 # If the user did not use the arguments to specify the items to instantiate,
16739 # then the envvar interface is used. Set only those that are not.
16740 # We use the long form for the default assignment because of an extremely
16741 # bizarre bug on SunOS 4.1.3.
16742 if $ac_need_defaults; then
16743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16748 # Have a temporary directory for convenience. Make it in the build tree
16749 # simply because there is no reason against having it here, and in addition,
16750 # creating and moving files from /tmp can sometimes cause problems.
16751 # Hook for its removal unless debugging.
16752 # Note that there is a small window in which the directory will not be cleaned:
16753 # after its creation but before its name has been assigned to `$tmp'.
16757 trap 'exit_status=$?
16758 : "${ac_tmp:=$tmp}"
16759 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16761 trap 'as_fn_exit 1' 1 2 13 15
16763 # Create a (secure) tmp directory for tmp files.
16766 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16770 tmp=./conf$$-$RANDOM
16771 (umask 077 && mkdir "$tmp")
16772 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16775 # Set up the scripts for CONFIG_FILES section.
16776 # No need to generate them if there are no CONFIG_FILES.
16777 # This happens for instance with `./config.status config.h'.
16778 if test -n "$CONFIG_FILES"; then
16781 ac_cr=`echo X | tr X '\015'`
16782 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16783 # But we know of no other shell where ac_cr would be empty at this
16784 # point, so we can use a bashism as a fallback.
16785 if test "x$ac_cr" = x; then
16786 eval ac_cr=\$\'\\r\'
16788 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16789 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16792 ac_cs_awk_cr=$ac_cr
16795 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16800 echo "cat >conf$$subs.awk <<_ACEOF" &&
16801 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16803 } >conf$$subs.sh ||
16804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16805 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16807 for ac_last_try in false false false false false :; do
16808 . ./conf$$subs.sh ||
16809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16811 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16812 if test $ac_delim_n = $ac_delim_num; then
16814 elif $ac_last_try; then
16815 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16820 rm -f conf$$subs.sh
16822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16823 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16827 s/^/S["/; s/!.*/"]=/
16837 s/\(.\{148\}\)..*/\1/
16839 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16844 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16851 s/\(.\{148\}\)..*/\1/
16853 s/["\\]/\\&/g; s/^/"/; s/$/"/
16857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16862 ' <conf$$subs.awk | sed '
16867 ' >>$CONFIG_STATUS || ac_write_fail=1
16868 rm -f conf$$subs.awk
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16871 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16872 for (key in S) S_is_set[key] = 1
16878 nfields = split(line, field, "@")
16880 len = length(field[1])
16881 for (i = 2; i < nfields; i++) {
16883 keylen = length(key)
16884 if (S_is_set[key]) {
16886 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16887 len += length(value) + length(field[++i])
16898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16899 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16900 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16903 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16904 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16907 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16908 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16909 # trailing colons and then remove the whole line if VPATH becomes empty
16910 # (actually we leave an empty line to preserve line numbers).
16911 if test "x$srcdir" = x.; then
16912 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16931 fi # test -n "$CONFIG_FILES"
16933 # Set up the scripts for CONFIG_HEADERS section.
16934 # No need to generate them if there are no CONFIG_HEADERS.
16935 # This happens for instance with `./config.status Makefile'.
16936 if test -n "$CONFIG_HEADERS"; then
16937 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16941 # Transform confdefs.h into an awk script `defines.awk', embedded as
16942 # here-document in config.status, that substitutes the proper values into
16943 # config.h.in to produce config.h.
16945 # Create a delimiter string that does not exist in confdefs.h, to ease
16946 # handling of long lines.
16948 for ac_last_try in false false :; do
16949 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16950 if test -z "$ac_tt"; then
16952 elif $ac_last_try; then
16953 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16959 # For the awk script, D is an array of macro values keyed by name,
16960 # likewise P contains macro parameters if any. Preserve backslash
16961 # newline sequences.
16963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16965 s/.\{148\}/&'"$ac_delim"'/g
16968 s/^[ ]*#[ ]*define[ ][ ]*/ /
16975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16977 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16982 D["\1"]=" \3\\\\\\n"\\/p
16984 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16989 s/.\{148\}/&'"$ac_delim"'/g
16994 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16997 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16999 ' <confdefs.h | sed '
17000 s/'"$ac_delim"'/"\\\
17001 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17004 for (key in D) D_is_set[key] = 1
17007 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17009 split(line, arg, " ")
17010 if (arg[1] == "#") {
17014 defundef = substr(arg[1], 2)
17017 split(mac1, mac2, "(") #)
17019 prefix = substr(line, 1, index(line, defundef) - 1)
17020 if (D_is_set[macro]) {
17021 # Preserve the white space surrounding the "#".
17022 print prefix "define", macro P[macro] D[macro]
17025 # Replace #undef with comments. This is necessary, for example,
17026 # in the case of _POSIX_SOURCE, which is predefined and required
17027 # on some systems where configure will not decide to define it.
17028 if (defundef == "undef") {
17029 print "/*", prefix defundef, macro, "*/"
17037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17038 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17039 fi # test -n "$CONFIG_HEADERS"
17042 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17047 :[FHLC]) ac_mode=$ac_tag; continue;;
17049 case $ac_mode$ac_tag in
17051 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17052 :[FH]-) ac_tag=-:-;;
17053 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17070 -) ac_f="$ac_tmp/stdin";;
17071 *) # Look for the file first in the build tree, then in the source tree
17072 # (if the path is not absolute). The absolute path cannot be DOS-style,
17073 # because $ac_f cannot contain `:'.
17077 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17079 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17081 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17082 as_fn_append ac_file_inputs " '$ac_f'"
17085 # Let's still pretend it is `configure' which instantiates (i.e., don't
17086 # use $as_me), people would be surprised to read:
17087 # /* config.h. Generated by config.status. */
17088 configure_input='Generated from '`
17089 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17091 if test x"$ac_file" != x-; then
17092 configure_input="$ac_file. $configure_input"
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17094 $as_echo "$as_me: creating $ac_file" >&6;}
17096 # Neutralize special characters interpreted by sed in replacement strings.
17097 case $configure_input in #(
17098 *\&* | *\|* | *\\* )
17099 ac_sed_conf_input=`$as_echo "$configure_input" |
17100 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17101 *) ac_sed_conf_input=$configure_input;;
17105 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17111 ac_dir=`$as_dirname -- "$ac_file" ||
17112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17113 X"$ac_file" : 'X\(//\)[^/]' \| \
17114 X"$ac_file" : 'X\(//\)$' \| \
17115 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17116 $as_echo X"$ac_file" |
17117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17121 /^X\(\/\/\)[^/].*/{
17134 as_dir="$ac_dir"; as_fn_mkdir_p
17138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17140 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17141 # A ".." for each directory in $ac_dir_suffix.
17142 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17143 case $ac_top_builddir_sub in
17144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17148 ac_abs_top_builddir=$ac_pwd
17149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17150 # for backward compatibility:
17151 ac_top_builddir=$ac_top_build_prefix
17154 .) # We are building in place.
17156 ac_top_srcdir=$ac_top_builddir_sub
17157 ac_abs_top_srcdir=$ac_pwd ;;
17158 [\\/]* | ?:[\\/]* ) # Absolute name.
17159 ac_srcdir=$srcdir$ac_dir_suffix;
17160 ac_top_srcdir=$srcdir
17161 ac_abs_top_srcdir=$srcdir ;;
17162 *) # Relative name.
17163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17164 ac_top_srcdir=$ac_top_build_prefix$srcdir
17165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17177 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17178 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17180 ac_MKDIR_P=$MKDIR_P
17182 [\\/$]* | ?:[\\/]* ) ;;
17183 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17188 # If the template does not know about datarootdir, expand it.
17189 # FIXME: This hack should be removed a few years after 2.60.
17190 ac_datarootdir_hack=; ac_datarootdir_seen=
17201 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17202 *datarootdir*) ac_datarootdir_seen=yes;;
17203 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17205 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17208 ac_datarootdir_hack='
17209 s&@datadir@&$datadir&g
17210 s&@docdir@&$docdir&g
17211 s&@infodir@&$infodir&g
17212 s&@localedir@&$localedir&g
17213 s&@mandir@&$mandir&g
17214 s&\\\${datarootdir}&$datarootdir&g' ;;
17218 # Neutralize VPATH when `$srcdir' = `.'.
17219 # Shell code in configure.ac might set extrasub.
17220 # FIXME: do we really want to maintain this feature?
17221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17222 ac_sed_extra="$ac_vpsub
17225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17228 s|@configure_input@|$ac_sed_conf_input|;t t
17229 s&@top_builddir@&$ac_top_builddir_sub&;t t
17230 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17231 s&@srcdir@&$ac_srcdir&;t t
17232 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17233 s&@top_srcdir@&$ac_top_srcdir&;t t
17234 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17235 s&@builddir@&$ac_builddir&;t t
17236 s&@abs_builddir@&$ac_abs_builddir&;t t
17237 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17238 s&@INSTALL@&$ac_INSTALL&;t t
17239 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17240 $ac_datarootdir_hack
17242 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17243 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17245 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17246 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17247 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17248 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17250 which seems to be undefined. Please make sure it is defined" >&5
17251 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17252 which seems to be undefined. Please make sure it is defined" >&2;}
17254 rm -f "$ac_tmp/stdin"
17256 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17257 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17265 if test x"$ac_file" != x-; then
17267 $as_echo "/* $configure_input */" \
17268 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17269 } >"$ac_tmp/config.h" \
17270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17271 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17273 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17276 mv "$ac_tmp/config.h" "$ac_file" \
17277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17280 $as_echo "/* $configure_input */" \
17281 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17282 || as_fn_error $? "could not create -" "$LINENO" 5
17284 # Compute "$ac_file"'s index in $config_headers.
17287 for _am_header in $config_headers :; do
17288 case $_am_header in
17289 $_am_arg | $_am_arg:* )
17292 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17295 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17296 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17297 X"$_am_arg" : 'X\(//\)[^/]' \| \
17298 X"$_am_arg" : 'X\(//\)$' \| \
17299 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17300 $as_echo X"$_am_arg" |
17301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17305 /^X\(\/\/\)[^/].*/{
17317 s/.*/./; q'`/stamp-h$_am_stamp_count
17320 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17321 $as_echo "$as_me: executing $ac_file commands" >&6;}
17326 case $ac_file$ac_mode in
17327 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17328 # Older Autoconf quotes --file arguments for eval, but not when files
17329 # are listed without --file. Let's play safe and only enable the eval
17330 # if we detect the quoting.
17331 case $CONFIG_FILES in
17332 *\'*) eval set x "$CONFIG_FILES" ;;
17333 *) set x $CONFIG_FILES ;;
17338 # Strip MF so we end up with the name of the file.
17339 mf=`echo "$mf" | sed -e 's/:.*$//'`
17340 # Check whether this is an Automake generated Makefile or not.
17341 # We used to match only the files named 'Makefile.in', but
17342 # some people rename them; so instead we look at the file content.
17343 # Grep'ing the first line is not enough: some people post-process
17344 # each Makefile.in and add a new line on top of each file to say so.
17345 # Grep'ing the whole file is not good either: AIX grep has a line
17346 # limit of 2048, but all sed's we know have understand at least 4000.
17347 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17348 dirpart=`$as_dirname -- "$mf" ||
17349 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17350 X"$mf" : 'X\(//\)[^/]' \| \
17351 X"$mf" : 'X\(//\)$' \| \
17352 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17358 /^X\(\/\/\)[^/].*/{
17374 # Extract the definition of DEPDIR, am__include, and am__quote
17375 # from the Makefile without running 'make'.
17376 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17377 test -z "$DEPDIR" && continue
17378 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17379 test -z "$am__include" && continue
17380 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17381 # Find all dependency output files, they are included files with
17382 # $(DEPDIR) in their names. We invoke sed twice because it is the
17383 # simplest approach to changing $(DEPDIR) to its actual value in the
17385 for file in `sed -n "
17386 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17387 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17388 # Make sure the directory exists.
17389 test -f "$dirpart/$file" && continue
17390 fdir=`$as_dirname -- "$file" ||
17391 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17392 X"$file" : 'X\(//\)[^/]' \| \
17393 X"$file" : 'X\(//\)$' \| \
17394 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17395 $as_echo X"$file" |
17396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17400 /^X\(\/\/\)[^/].*/{
17413 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17414 # echo "creating $dirpart/$file"
17415 echo '# dummy' > "$dirpart/$file"
17422 # See if we are running on zsh, and set the options which allow our
17423 # commands through without removal of \ escapes.
17424 if test -n "${ZSH_VERSION+set}" ; then
17425 setopt NO_GLOB_SUBST
17428 cfgfile="${ofile}T"
17429 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17432 cat <<_LT_EOF >> "$cfgfile"
17435 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17436 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17437 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17438 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17440 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17441 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17443 # Written by Gordon Matzigkeit, 1996
17445 # This file is part of GNU Libtool.
17447 # GNU Libtool is free software; you can redistribute it and/or
17448 # modify it under the terms of the GNU General Public License as
17449 # published by the Free Software Foundation; either version 2 of
17450 # the License, or (at your option) any later version.
17452 # As a special exception to the GNU General Public License,
17453 # if you distribute this file as part of a program or library that
17454 # is built using GNU Libtool, you may include this file under the
17455 # same distribution terms that you use for the rest of that program.
17457 # GNU Libtool is distributed in the hope that it will be useful,
17458 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17459 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17460 # GNU General Public License for more details.
17462 # You should have received a copy of the GNU General Public License
17463 # along with GNU Libtool; see the file COPYING. If not, a copy
17464 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17465 # obtained by writing to the Free Software Foundation, Inc.,
17466 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17469 # The names of the tagged configurations supported by this script.
17472 # ### BEGIN LIBTOOL CONFIG
17474 # Which release of libtool.m4 was used?
17475 macro_version=$macro_version
17476 macro_revision=$macro_revision
17478 # Whether or not to build shared libraries.
17479 build_libtool_libs=$enable_shared
17481 # Whether or not to build static libraries.
17482 build_old_libs=$enable_static
17484 # What type of objects to build.
17487 # Whether or not to optimize for fast installation.
17488 fast_install=$enable_fast_install
17490 # Shell to use when invoking shell scripts.
17493 # An echo program that protects backslashes.
17496 # The PATH separator for the build system.
17497 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17500 host_alias=$host_alias
17504 # The build system.
17505 build_alias=$build_alias
17509 # A sed program that does not truncate output.
17512 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17513 Xsed="\$SED -e 1s/^X//"
17515 # A grep program that handles long lines.
17521 # A literal string matcher.
17524 # A BSD- or MS-compatible name lister.
17527 # Whether we need soft or hard links.
17530 # What is the maximum length of a command?
17531 max_cmd_len=$max_cmd_len
17533 # Object file suffix (normally "o").
17536 # Executable file suffix (normally "").
17539 # whether the shell understands "unset".
17542 # turn spaces into newlines.
17545 # turn newlines into spaces.
17548 # convert \$build file names to \$host format.
17549 to_host_file_cmd=$lt_cv_to_host_file_cmd
17551 # convert \$build files to toolchain format.
17552 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17554 # An object symbol dumper.
17555 OBJDUMP=$lt_OBJDUMP
17557 # Method to check whether dependent libraries are shared objects.
17558 deplibs_check_method=$lt_deplibs_check_method
17560 # Command to use when deplibs_check_method = "file_magic".
17561 file_magic_cmd=$lt_file_magic_cmd
17563 # How to find potential files when deplibs_check_method = "file_magic".
17564 file_magic_glob=$lt_file_magic_glob
17566 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17567 want_nocaseglob=$lt_want_nocaseglob
17569 # DLL creation program.
17570 DLLTOOL=$lt_DLLTOOL
17572 # Command to associate shared and link libraries.
17573 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17578 # Flags to create an archive.
17579 AR_FLAGS=$lt_AR_FLAGS
17581 # How to feed a file listing to the archiver.
17582 archiver_list_spec=$lt_archiver_list_spec
17584 # A symbol stripping program.
17587 # Commands used to install an old-style archive.
17589 old_postinstall_cmds=$lt_old_postinstall_cmds
17590 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17592 # Whether to use a lock for old archive extraction.
17593 lock_old_archive_extraction=$lock_old_archive_extraction
17598 # LTCC compiler flags.
17599 LTCFLAGS=$lt_CFLAGS
17601 # Take the output of nm and produce a listing of raw symbols and C names.
17602 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17604 # Transform the output of nm in a proper C declaration.
17605 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17607 # Transform the output of nm in a C name address pair.
17608 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17610 # Transform the output of nm in a C name address pair when lib prefix is needed.
17611 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17613 # Specify filename containing input files for \$NM.
17614 nm_file_list_spec=$lt_nm_file_list_spec
17616 # The root where to search for dependent libraries,and in which our libraries should be installed.
17617 lt_sysroot=$lt_sysroot
17619 # The name of the directory that contains temporary libtool files.
17622 # Used to examine libraries when file_magic_cmd begins with "file".
17623 MAGIC_CMD=$MAGIC_CMD
17625 # Must we lock files when doing compilation?
17626 need_locks=$lt_need_locks
17629 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17631 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17632 DSYMUTIL=$lt_DSYMUTIL
17634 # Tool to change global to local symbols on Mac OS X.
17637 # Tool to manipulate fat objects and archives on Mac OS X.
17640 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17643 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17644 OTOOL64=$lt_OTOOL64
17646 # Old archive suffix (normally "a").
17649 # Shared library suffix (normally ".so").
17650 shrext_cmds=$lt_shrext_cmds
17652 # The commands to extract the exported symbol list from a shared archive.
17653 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17655 # Variables whose values should be saved in libtool wrapper scripts and
17656 # restored at link time.
17657 variables_saved_for_relink=$lt_variables_saved_for_relink
17659 # Do we need the "lib" prefix for modules?
17660 need_lib_prefix=$need_lib_prefix
17662 # Do we need a version for libraries?
17663 need_version=$need_version
17665 # Library versioning type.
17666 version_type=$version_type
17668 # Shared library runtime path variable.
17669 runpath_var=$runpath_var
17671 # Shared library path variable.
17672 shlibpath_var=$shlibpath_var
17674 # Is shlibpath searched before the hard-coded library search path?
17675 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17677 # Format of library name prefix.
17678 libname_spec=$lt_libname_spec
17680 # List of archive names. First name is the real one, the rest are links.
17681 # The last name is the one that the linker finds with -lNAME
17682 library_names_spec=$lt_library_names_spec
17684 # The coded name of the library, if different from the real name.
17685 soname_spec=$lt_soname_spec
17687 # Permission mode override for installation of shared libraries.
17688 install_override_mode=$lt_install_override_mode
17690 # Command to use after installation of a shared archive.
17691 postinstall_cmds=$lt_postinstall_cmds
17693 # Command to use after uninstallation of a shared archive.
17694 postuninstall_cmds=$lt_postuninstall_cmds
17696 # Commands used to finish a libtool library installation in a directory.
17697 finish_cmds=$lt_finish_cmds
17699 # As "finish_cmds", except a single script fragment to be evaled but
17701 finish_eval=$lt_finish_eval
17703 # Whether we should hardcode library paths into libraries.
17704 hardcode_into_libs=$hardcode_into_libs
17706 # Compile-time system search path for libraries.
17707 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17709 # Run-time system search path for libraries.
17710 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17712 # Whether dlopen is supported.
17713 dlopen_support=$enable_dlopen
17715 # Whether dlopen of programs is supported.
17716 dlopen_self=$enable_dlopen_self
17718 # Whether dlopen of statically linked programs is supported.
17719 dlopen_self_static=$enable_dlopen_self_static
17721 # Commands to strip libraries.
17722 old_striplib=$lt_old_striplib
17723 striplib=$lt_striplib
17726 # The linker used to build libraries.
17729 # How to create reloadable object files.
17730 reload_flag=$lt_reload_flag
17731 reload_cmds=$lt_reload_cmds
17733 # Commands used to build an old-style archive.
17734 old_archive_cmds=$lt_old_archive_cmds
17736 # A language specific compiler.
17739 # Is the compiler the GNU compiler?
17742 # Compiler flag to turn off builtin functions.
17743 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17745 # Additional compiler flags for building library objects.
17746 pic_flag=$lt_lt_prog_compiler_pic
17748 # How to pass a linker flag through the compiler.
17749 wl=$lt_lt_prog_compiler_wl
17751 # Compiler flag to prevent dynamic linking.
17752 link_static_flag=$lt_lt_prog_compiler_static
17754 # Does compiler simultaneously support -c and -o options?
17755 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17757 # Whether or not to add -lc for building shared libraries.
17758 build_libtool_need_lc=$archive_cmds_need_lc
17760 # Whether or not to disallow shared libs when runtime libs are static.
17761 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17763 # Compiler flag to allow reflexive dlopens.
17764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17766 # Compiler flag to generate shared objects directly from archives.
17767 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17769 # Whether the compiler copes with passing no objects directly.
17770 compiler_needs_object=$lt_compiler_needs_object
17772 # Create an old-style archive from a shared archive.
17773 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17775 # Create a temporary old-style archive to link instead of a shared archive.
17776 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17778 # Commands used to build a shared archive.
17779 archive_cmds=$lt_archive_cmds
17780 archive_expsym_cmds=$lt_archive_expsym_cmds
17782 # Commands used to build a loadable module if different from building
17783 # a shared archive.
17784 module_cmds=$lt_module_cmds
17785 module_expsym_cmds=$lt_module_expsym_cmds
17787 # Whether we are building with GNU ld or not.
17788 with_gnu_ld=$lt_with_gnu_ld
17790 # Flag that allows shared libraries with undefined symbols to be built.
17791 allow_undefined_flag=$lt_allow_undefined_flag
17793 # Flag that enforces no undefined symbols.
17794 no_undefined_flag=$lt_no_undefined_flag
17796 # Flag to hardcode \$libdir into a binary during linking.
17797 # This must work even if \$libdir does not exist
17798 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17800 # Whether we need a single "-rpath" flag with a separated argument.
17801 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17803 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17804 # DIR into the resulting binary.
17805 hardcode_direct=$hardcode_direct
17807 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17808 # DIR into the resulting binary and the resulting library dependency is
17809 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17810 # library is relocated.
17811 hardcode_direct_absolute=$hardcode_direct_absolute
17813 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17814 # into the resulting binary.
17815 hardcode_minus_L=$hardcode_minus_L
17817 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17818 # into the resulting binary.
17819 hardcode_shlibpath_var=$hardcode_shlibpath_var
17821 # Set to "yes" if building a shared library automatically hardcodes DIR
17822 # into the library and all subsequent libraries and executables linked
17824 hardcode_automatic=$hardcode_automatic
17826 # Set to yes if linker adds runtime paths of dependent libraries
17827 # to runtime path list.
17828 inherit_rpath=$inherit_rpath
17830 # Whether libtool must link a program against all its dependency libraries.
17831 link_all_deplibs=$link_all_deplibs
17833 # Set to "yes" if exported symbols are required.
17834 always_export_symbols=$always_export_symbols
17836 # The commands to list exported symbols.
17837 export_symbols_cmds=$lt_export_symbols_cmds
17839 # Symbols that should not be listed in the preloaded symbols.
17840 exclude_expsyms=$lt_exclude_expsyms
17842 # Symbols that must always be exported.
17843 include_expsyms=$lt_include_expsyms
17845 # Commands necessary for linking programs (against libraries) with templates.
17846 prelink_cmds=$lt_prelink_cmds
17848 # Commands necessary for finishing linking programs.
17849 postlink_cmds=$lt_postlink_cmds
17851 # Specify filename containing input files.
17852 file_list_spec=$lt_file_list_spec
17854 # How to hardcode a shared library path into an executable.
17855 hardcode_action=$hardcode_action
17857 # ### END LIBTOOL CONFIG
17863 cat <<\_LT_EOF >> "$cfgfile"
17864 # AIX sometimes has problems with the GCC collect2 program. For some
17865 # reason, if we set the COLLECT_NAMES environment variable, the problems
17866 # vanish in a puff of smoke.
17867 if test "X${COLLECT_NAMES+set}" != Xset; then
17869 export COLLECT_NAMES
17876 ltmain="$ac_aux_dir/ltmain.sh"
17879 # We use sed instead of cat because bash on DJGPP gets confused if
17880 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17881 # text mode, it properly converts lines to CR/LF. This bash problem
17882 # is reportedly fixed, but why not run on old versions too?
17883 sed '$q' "$ltmain" >> "$cfgfile" \
17884 || (rm -f "$cfgfile"; exit 1)
17886 if test x"$xsi_shell" = xyes; then
17887 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17891 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17892 \ * ) func_dirname_result="${3}" ;;\
17894 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17895 && mv -f "$cfgfile.tmp" "$cfgfile" \
17896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17897 test 0 -eq $? || _lt_function_replace_fail=:
17900 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17903 \ func_basename_result="${1##*/}"\
17904 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17905 && mv -f "$cfgfile.tmp" "$cfgfile" \
17906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17907 test 0 -eq $? || _lt_function_replace_fail=:
17910 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17911 func_dirname_and_basename ()\
17914 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17915 \ * ) func_dirname_result="${3}" ;;\
17917 \ func_basename_result="${1##*/}"\
17918 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17919 && mv -f "$cfgfile.tmp" "$cfgfile" \
17920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17921 test 0 -eq $? || _lt_function_replace_fail=:
17924 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17927 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17928 \ # positional parameters, so assign one to ordinary parameter first.\
17929 \ func_stripname_result=${3}\
17930 \ func_stripname_result=${func_stripname_result#"${1}"}\
17931 \ func_stripname_result=${func_stripname_result%"${2}"}\
17932 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17933 && mv -f "$cfgfile.tmp" "$cfgfile" \
17934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17935 test 0 -eq $? || _lt_function_replace_fail=:
17938 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17939 func_split_long_opt ()\
17941 \ func_split_long_opt_name=${1%%=*}\
17942 \ func_split_long_opt_arg=${1#*=}\
17943 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17944 && mv -f "$cfgfile.tmp" "$cfgfile" \
17945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17946 test 0 -eq $? || _lt_function_replace_fail=:
17949 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17950 func_split_short_opt ()\
17952 \ func_split_short_opt_arg=${1#??}\
17953 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17954 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17955 && mv -f "$cfgfile.tmp" "$cfgfile" \
17956 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17957 test 0 -eq $? || _lt_function_replace_fail=:
17960 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17964 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17965 \ *) func_lo2o_result=${1} ;;\
17967 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17968 && mv -f "$cfgfile.tmp" "$cfgfile" \
17969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17970 test 0 -eq $? || _lt_function_replace_fail=:
17973 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17976 func_xform_result=${1%.*}.lo\
17977 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17978 && mv -f "$cfgfile.tmp" "$cfgfile" \
17979 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17980 test 0 -eq $? || _lt_function_replace_fail=:
17983 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17986 func_arith_result=$(( $* ))\
17987 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17988 && mv -f "$cfgfile.tmp" "$cfgfile" \
17989 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17990 test 0 -eq $? || _lt_function_replace_fail=:
17993 sed -e '/^func_len ()$/,/^} # func_len /c\
17996 func_len_result=${#1}\
17997 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17998 && mv -f "$cfgfile.tmp" "$cfgfile" \
17999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18000 test 0 -eq $? || _lt_function_replace_fail=:
18004 if test x"$lt_shell_append" = xyes; then
18005 sed -e '/^func_append ()$/,/^} # func_append /c\
18008 eval "${1}+=\\${2}"\
18009 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18010 && mv -f "$cfgfile.tmp" "$cfgfile" \
18011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18012 test 0 -eq $? || _lt_function_replace_fail=:
18015 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18016 func_append_quoted ()\
18018 \ func_quote_for_eval "${2}"\
18019 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18020 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18021 && mv -f "$cfgfile.tmp" "$cfgfile" \
18022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18023 test 0 -eq $? || _lt_function_replace_fail=:
18026 # Save a `func_append' function call where possible by direct use of '+='
18027 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18028 && mv -f "$cfgfile.tmp" "$cfgfile" \
18029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18030 test 0 -eq $? || _lt_function_replace_fail=:
18032 # Save a `func_append' function call even when '+=' is not available
18033 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18034 && mv -f "$cfgfile.tmp" "$cfgfile" \
18035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18036 test 0 -eq $? || _lt_function_replace_fail=:
18039 if test x"$_lt_function_replace_fail" = x":"; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18041 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18045 mv -f "$cfgfile" "$ofile" ||
18046 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18050 "python/setup.py":F) chmod +x python/setup.py ;;
18051 "xml2-config":F) chmod +x xml2-config ;;
18059 ac_clean_files=$ac_clean_files_save
18061 test $ac_write_fail = 0 ||
18062 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18065 # configure is writing to config.log, and then calls config.status.
18066 # config.status does its own redirection, appending to config.log.
18067 # Unfortunately, on DOS this fails, as config.log is still kept open
18068 # by configure, so config.status won't be able to write to it; its
18069 # output is simply discarded. So we exec the FD to /dev/null,
18070 # effectively closing config.log, so it can be properly (re)opened and
18071 # appended to by config.status. When coming back to configure, we
18072 # need to make the FD available again.
18073 if test "$no_create" != yes; then
18075 ac_config_status_args=
18076 test "$silent" = yes &&
18077 ac_config_status_args="$ac_config_status_args --quiet"
18079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18082 # would make configure fail if this is the last instruction.
18083 $ac_cs_success || as_fn_exit 1
18085 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18087 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18091 echo Done configuring