2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for expat 2.2.5.
5 # Report bugs to <expat-bugs@libexpat.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: expat-bugs@libexpat.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='expat'
593 PACKAGE_VERSION='2.2.5'
594 PACKAGE_STRING='expat 2.2.5'
595 PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
598 ac_unique_file="Makefile.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
721 INSTALL_STRIP_PROGRAM
763 program_transform_name
776 enable_option_checking
783 enable_dependency_tracking
792 ac_precious_vars='build_alias
809 # Initialize some variables set by options.
811 ac_init_version=false
812 ac_unrecognized_opts=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
823 program_transform_name=s,x,x,
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 # Accept the important Cygnus configure options, so we can diagnose typos.
876 case $ac_dashdash$ac_option in
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
898 cache_file=config.cache ;;
900 -datadir | --datadir | --datadi | --datad)
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
926 eval enable_$ac_useropt=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
952 eval enable_$ac_useropt=\$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
967 -help | --help | --hel | --he | -h)
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 htmldir=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 sbindir=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 sharedstatedir=$ac_optarg ;;
1114 -site | --site | --sit)
1116 -site=* | --site=* | --sit=*)
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1156 eval with_$ac_useropt=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval with_$ac_useropt=no ;;
1175 # Obsolete; use --with-x.
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1243 # Be sure to have absolute directory names.
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1256 target=$target_alias
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270 test "$silent" = yes && exec 6>/dev/null
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1313 ac_srcdir_defaulted=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 # Report the --help message.
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1347 \`configure' configures expat 2.2.5 to adapt to many kinds of systems.
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1354 Defaults for the options are specified in brackets.
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1378 For better control, use the options below.
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 if test -n "$ac_init_help"; then
1416 case $ac_init_help in
1417 short | recursive ) echo "Configuration of expat 2.2.5:";;
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --enable-silent-rules less verbose build output (undo: "make V=1")
1426 --disable-silent-rules verbose build output (undo: "make V=0")
1427 --enable-shared[=PKGS] build shared libraries [default=yes]
1428 --enable-static[=PKGS] build static libraries [default=yes]
1429 --enable-fast-install[=PKGS]
1430 optimize for fast installation [default=yes]
1431 --enable-dependency-tracking
1432 do not reject slow dependency extractors
1433 --disable-dependency-tracking
1434 speeds up one-time build
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1436 --enable-xml-context [COUNT]
1437 Retain context around the current parse point;
1438 default is enabled and a size of 1024 bytes
1439 --disable-xml-context Do not retain context around the current parse point
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1446 --with-aix-soname=aix|svr4|both
1447 shared library versioning (aka "SONAME") variant to
1448 provide on AIX, [default=aix].
1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1451 compiler's sysroot if not specified).
1453 --without-xmlwf do not build xmlwf
1455 --with-libbsd utilize libbsd (for arc4random_buf)
1457 --with-docbook enforce XML to man page compilation [default=check]
1458 --without-docbook skip XML to man page compilation [default=check]
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1469 User-defined run-time library search path.
1471 CXX C++ compiler command
1472 CXXFLAGS C++ compiler flags
1473 CXXCPP C++ preprocessor
1475 docbook2x-man command
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1480 Report bugs to <expat-bugs@libexpat.org>.
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1510 .) # We are building in place.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1543 expat configure 2.2.5
1544 generated by GNU Autoconf 2.69
1546 Copyright (C) 2012 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1593 } # ac_fn_c_try_compile
1595 # ac_fn_c_try_link LINENO
1596 # -----------------------
1597 # Try to link conftest.$ac_ext, and return whether this succeeded.
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext conftest$ac_exeext
1602 if { { ac_try="$ac_link"
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>conftest.err
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest$ac_exeext && {
1621 test "$cross_compiling" = yes ||
1622 test -x conftest$ac_exeext
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633 # interfere with the next link command; also delete a directory that is
1634 # left behind by Apple's compiler. We do this before executing the actions.
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_c_try_link
1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists and can be compiled using the include files in
1644 # INCLUDES, setting the cache variable VAR accordingly.
1645 ac_fn_c_check_header_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1658 if ac_fn_c_try_compile "$LINENO"; then :
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 } # ac_fn_c_check_header_compile
1672 # ac_fn_c_try_cpp LINENO
1673 # ----------------------
1674 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } > conftest.i && {
1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=$ac_status
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1751 # ac_fn_c_check_func LINENO FUNC VAR
1752 # ----------------------------------
1753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1754 ac_fn_c_check_func ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1766 #define $2 innocuous_$2
1768 /* System header to define __stub macros and hopefully few prototypes,
1769 which can conflict with char $2 (); below.
1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1771 <limits.h> exists even on freestanding compilers. */
1774 # include <limits.h>
1776 # include <assert.h>
1781 /* Override any GCC internal prototype to avoid an error.
1782 Use char because int might match the return type of a GCC
1783 builtin and then its argument prototype would still apply. */
1788 /* The GNU C library defines this for functions which it implements
1789 to always fail with ENOSYS. Some functions are actually named
1790 something starting with __ and the normal name is an alias. */
1791 #if defined __stub_$2 || defined __stub___$2
1803 if ac_fn_c_try_link "$LINENO"; then :
1808 rm -f core conftest.err conftest.$ac_objext \
1809 conftest$ac_exeext conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 } # ac_fn_c_check_func
1818 # ac_fn_cxx_try_compile LINENO
1819 # ----------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_compile ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext
1825 if { { ac_try="$ac_compile"
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_cxx_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext; then :
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1854 } # ac_fn_cxx_try_compile
1856 # ac_fn_cxx_try_cpp LINENO
1857 # ------------------------
1858 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_cxx_try_cpp ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_cpp conftest.$ac_ext"
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } > conftest.i && {
1878 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1879 test ! -s conftest.err
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_cxx_try_cpp
1893 # ac_fn_cxx_try_link LINENO
1894 # -------------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_link ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest$ac_exeext
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1937 } # ac_fn_cxx_try_link
1939 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1940 # -------------------------------------------
1941 # Tests whether TYPE exists after having included INCLUDES, setting cache
1942 # variable VAR accordingly.
1943 ac_fn_c_check_type ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1977 if ac_fn_c_try_compile "$LINENO"; then :
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 } # ac_fn_c_check_type
1993 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1994 # -------------------------------------------------------
1995 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1996 # the include files in INCLUDES and setting the cache variable VAR
1998 ac_fn_c_check_header_mongrel ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 if eval \${$3+:} false; then :
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 # Is the header compilable?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2013 $as_echo_n "checking $2 usability... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_header_compiler=yes
2022 ac_header_compiler=no
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2026 $as_echo "$ac_header_compiler" >&6; }
2028 # Is the header present?
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2030 $as_echo_n "checking $2 presence... " >&6; }
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 if ac_fn_c_try_cpp "$LINENO"; then :
2036 ac_header_preproc=yes
2038 ac_header_preproc=no
2040 rm -f conftest.err conftest.i conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2042 $as_echo "$ac_header_preproc" >&6; }
2044 # So? What about this header?
2045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2048 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2054 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2056 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2058 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2060 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 ( $as_echo "## -------------------------------------- ##
2064 ## Report this to expat-bugs@libexpat.org ##
2065 ## -------------------------------------- ##"
2066 ) | sed "s/^/$as_me: WARNING: /" >&2
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2074 eval "$3=\$ac_header_compiler"
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_header_mongrel
2083 cat >config.log <<_ACEOF
2084 This file contains any messages produced by compilers while
2085 running configure, to aid debugging if configure makes a mistake.
2087 It was created by expat $as_me 2.2.5, which was
2088 generated by GNU Autoconf 2.69. Invocation command line was
2100 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2101 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2102 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2103 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2104 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2106 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2107 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2109 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2110 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2111 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2112 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2113 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2114 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2115 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 $as_echo "PATH: $as_dir"
2140 # Keep a trace of the command line.
2141 # Strip out --no-create and --no-recursion so they do not pile up.
2142 # Strip out --silent because we don't want to record it for future runs.
2143 # Also quote any args containing shell meta-characters.
2144 # Make two passes to allow for proper duplicate-argument suppression.
2148 ac_must_keep_next=false
2154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2156 | -silent | --silent | --silen | --sile | --sil)
2159 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2162 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2164 as_fn_append ac_configure_args1 " '$ac_arg'"
2165 if test $ac_must_keep_next = true; then
2166 ac_must_keep_next=false # Got value, back to normal.
2169 *=* | --config-cache | -C | -disable-* | --disable-* \
2170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2172 | -with-* | --with-* | -without-* | --without-* | --x)
2173 case "$ac_configure_args0 " in
2174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2177 -* ) ac_must_keep_next=true ;;
2180 as_fn_append ac_configure_args " '$ac_arg'"
2185 { ac_configure_args0=; unset ac_configure_args0;}
2186 { ac_configure_args1=; unset ac_configure_args1;}
2188 # When interrupted or exit'd, cleanup temporary files, and complete
2189 # config.log. We remove comments because anyway the quotes in there
2190 # would cause problems or look ugly.
2191 # WARNING: Use '\'' to represent an apostrophe within the trap.
2192 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2193 trap 'exit_status=$?
2194 # Save into config.log some information that might help in debugging.
2198 $as_echo "## ---------------- ##
2199 ## Cache variables. ##
2200 ## ---------------- ##"
2202 # The following way of writing the cache mishandles newlines in values,
2204 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2205 eval ac_val=\$$ac_var
2209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2210 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2213 _ | IFS | as_nl) ;; #(
2214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2215 *) { eval $ac_var=; unset $ac_var;} ;;
2220 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2221 *${as_nl}ac_space=\ *)
2223 "s/'\''/'\''\\\\'\'''\''/g;
2224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2234 $as_echo "## ----------------- ##
2235 ## Output variables. ##
2236 ## ----------------- ##"
2238 for ac_var in $ac_subst_vars
2240 eval ac_val=\$$ac_var
2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244 $as_echo "$ac_var='\''$ac_val'\''"
2248 if test -n "$ac_subst_files"; then
2249 $as_echo "## ------------------- ##
2250 ## File substitutions. ##
2251 ## ------------------- ##"
2253 for ac_var in $ac_subst_files
2255 eval ac_val=\$$ac_var
2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259 $as_echo "$ac_var='\''$ac_val'\''"
2264 if test -s confdefs.h; then
2265 $as_echo "## ----------- ##
2272 test "$ac_signal" != 0 &&
2273 $as_echo "$as_me: caught signal $ac_signal"
2274 $as_echo "$as_me: exit $exit_status"
2276 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2280 for ac_signal in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2286 rm -f -r conftest* confdefs.h
2288 $as_echo "/* confdefs.h */" > confdefs.h
2290 # Predefined preprocessor variables.
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_NAME "$PACKAGE_NAME"
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_STRING "$PACKAGE_STRING"
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_URL "$PACKAGE_URL"
2317 # Let the site file select an alternate cache file if it wants to.
2318 # Prefer an explicitly selected file to automatically selected ones.
2321 if test -n "$CONFIG_SITE"; then
2322 # We do not want a PATH search for config.site.
2323 case $CONFIG_SITE in #((
2324 -*) ac_site_file1=./$CONFIG_SITE;;
2325 */*) ac_site_file1=$CONFIG_SITE;;
2326 *) ac_site_file1=./$CONFIG_SITE;;
2328 elif test "x$prefix" != xNONE; then
2329 ac_site_file1=$prefix/share/config.site
2330 ac_site_file2=$prefix/etc/config.site
2332 ac_site_file1=$ac_default_prefix/share/config.site
2333 ac_site_file2=$ac_default_prefix/etc/config.site
2335 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2337 test "x$ac_site_file" = xNONE && continue
2338 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2340 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2341 sed 's/^/| /' "$ac_site_file" >&5
2343 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2345 as_fn_error $? "failed to load site script $ac_site_file
2346 See \`config.log' for more details" "$LINENO" 5; }
2350 if test -r "$cache_file"; then
2351 # Some versions of bash will fail to source /dev/null (special files
2352 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2355 $as_echo "$as_me: loading cache $cache_file" >&6;}
2357 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2358 *) . "./$cache_file";;
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2363 $as_echo "$as_me: creating cache $cache_file" >&6;}
2367 as_fn_append ac_header_list " stdlib.h"
2368 as_fn_append ac_header_list " unistd.h"
2369 as_fn_append ac_header_list " sys/param.h"
2370 # Check that the precious variables saved in the cache have kept the same
2372 ac_cache_corrupted=false
2373 for ac_var in $ac_precious_vars; do
2374 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2375 eval ac_new_set=\$ac_env_${ac_var}_set
2376 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2377 eval ac_new_val=\$ac_env_${ac_var}_value
2378 case $ac_old_set,$ac_new_set in
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2381 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2382 ac_cache_corrupted=: ;;
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2386 ac_cache_corrupted=: ;;
2389 if test "x$ac_old_val" != "x$ac_new_val"; then
2390 # differences in whitespace do not lead to failure.
2391 ac_old_val_w=`echo x $ac_old_val`
2392 ac_new_val_w=`echo x $ac_new_val`
2393 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2395 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2396 ac_cache_corrupted=:
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2399 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2400 eval $ac_var=\$ac_old_val
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2403 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2405 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2408 # Pass precious variables to config.status.
2409 if test "$ac_new_set" = set; then
2411 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2412 *) ac_arg=$ac_var=$ac_new_val ;;
2414 case " $ac_configure_args " in
2415 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2416 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2420 if $ac_cache_corrupted; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2424 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2425 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2427 ## -------------------- ##
2428 ## Main body of script. ##
2429 ## -------------------- ##
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442 for ac_dir in conftools "$srcdir"/conftools; do
2443 if test -f "$ac_dir/install-sh"; then
2445 ac_install_sh="$ac_aux_dir/install-sh -c"
2447 elif test -f "$ac_dir/install.sh"; then
2449 ac_install_sh="$ac_aux_dir/install.sh -c"
2451 elif test -f "$ac_dir/shtool"; then
2453 ac_install_sh="$ac_aux_dir/shtool install -c"
2457 if test -z "$ac_aux_dir"; then
2458 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2461 # These three variables are undocumented and unsupported,
2462 # and are intended to be withdrawn in a future Autoconf release.
2463 # They can cause serious problems if a builder's source tree is in a directory
2464 # whose full name contains unusual characters.
2465 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2466 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2467 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470 am__api_version='1.15'
2472 # Find a good install program. We prefer a C program (faster),
2473 # so one script is as good as another. But avoid the broken or
2474 # incompatible versions:
2475 # SysV /etc/install, /usr/sbin/install
2476 # SunOS /usr/etc/install
2477 # IRIX /sbin/install
2479 # AmigaOS /C/install, which installs bootblocks on floppy discs
2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483 # OS/2's system install, which has a completely different semantic
2484 # ./install, which can be erroneously created by make from ./install.sh.
2485 # Reject install programs that cannot install multiple files.
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2488 if test -z "$INSTALL"; then
2489 if ${ac_cv_path_install+:} false; then :
2490 $as_echo_n "(cached) " >&6
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 # Account for people who put trailing slashes in PATH elements.
2498 case $as_dir/ in #((
2499 ./ | .// | /[cC]/* | \
2500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2504 # OSF1 and SCO ODT 3.0 have their own names for install.
2505 # Don't use installbsd from OSF since it installs stuff as root
2507 for ac_prog in ginstall scoinst install; do
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2510 if test $ac_prog = install &&
2511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512 # AIX install. It has an incompatible calling convention.
2514 elif test $ac_prog = install &&
2515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516 # program-specific install script used by HP pwplus--don't use.
2519 rm -rf conftest.one conftest.two conftest.dir
2520 echo one > conftest.one
2521 echo two > conftest.two
2523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2524 test -s conftest.one && test -s conftest.two &&
2525 test -s conftest.dir/conftest.one &&
2526 test -s conftest.dir/conftest.two
2528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541 rm -rf conftest.one conftest.two conftest.dir
2544 if test "${ac_cv_path_install+set}" = set; then
2545 INSTALL=$ac_cv_path_install
2547 # As a last resort, use the slow shell script. Don't cache a
2548 # value for INSTALL within a source directory, because that will
2549 # break other packages using the cache if that directory is
2550 # removed, or if the value is a relative name.
2551 INSTALL=$ac_install_sh
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555 $as_echo "$INSTALL" >&6; }
2557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558 # It thinks the first close brace ends the variable substitution.
2559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2566 $as_echo_n "checking whether build environment is sane... " >&6; }
2567 # Reject unsafe characters in $srcdir or the absolute working directory
2568 # name. Accept space and tab only in the latter.
2572 *[\\\"\#\$\&\'\`$am_lf]*)
2573 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2576 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2577 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2580 # Do 'set' in a subshell so we don't clobber the current shell's
2581 # arguments. Must try -L first in case configure is actually a
2582 # symlink; some systems play weird games with the mod time of symlinks
2583 # (eg FreeBSD returns the mod time of the symlink's containing
2587 for am_try in 1 2; do
2588 echo "timestamp, slept: $am_has_slept" > conftest.file
2589 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2590 if test "$*" = "X"; then
2592 set X `ls -t "$srcdir/configure" conftest.file`
2594 if test "$*" != "X $srcdir/configure conftest.file" \
2595 && test "$*" != "X conftest.file $srcdir/configure"; then
2597 # If neither matched, then we have a broken ls. This can happen
2598 # if, for instance, CONFIG_SHELL is bash and it inherits a
2599 # broken ls alias from the environment. This has actually
2600 # happened. Such a system could not be considered "sane".
2601 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2602 alias in your environment" "$LINENO" 5
2604 if test "$2" = conftest.file || test $am_try -eq 2; then
2611 test "$2" = conftest.file
2617 as_fn_error $? "newly created file is older than distributed files!
2618 Check your system clock" "$LINENO" 5
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 # If we didn't sleep, we still need to ensure time stamps of config.status and
2623 # generated files are strictly newer.
2625 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2632 test "$program_prefix" != NONE &&
2633 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2634 # Use a double $ so make ignores it.
2635 test "$program_suffix" != NONE &&
2636 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2637 # Double any \ or $.
2638 # By default was `s,x,x', remove it if useless.
2639 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2640 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2642 # Expand $ac_aux_dir to an absolute path.
2643 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2645 if test x"${MISSING+set}" != xset; then
2648 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2650 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2653 # Use eval to expand $SHELL
2654 if eval "$MISSING --is-lightweight"; then
2655 am_missing_run="$MISSING "
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2659 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2662 if test x"${install_sh+set}" != xset; then
2665 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2667 install_sh="\${SHELL} $am_aux_dir/install-sh"
2671 # Installed binaries are usually stripped using 'strip' when the user
2672 # run "make install-strip". However 'strip' might not be the right
2673 # tool to use in cross-compilation environments, therefore Automake
2674 # will honor the 'STRIP' environment variable to overrule this program.
2675 if test "$cross_compiling" != no; then
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}strip; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_STRIP+:} false; then :
2682 $as_echo_n "(cached) " >&6
2684 if test -n "$STRIP"; then
2685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 STRIP=$ac_cv_prog_STRIP
2705 if test -n "$STRIP"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2707 $as_echo "$STRIP" >&6; }
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2715 if test -z "$ac_cv_prog_STRIP"; then
2717 # Extract the first word of "strip", so it can be a program name with args.
2718 set dummy strip; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$ac_ct_STRIP"; then
2725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_ac_ct_STRIP="strip"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2745 if test -n "$ac_ct_STRIP"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2747 $as_echo "$ac_ct_STRIP" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2753 if test "x$ac_ct_STRIP" = x; then
2756 case $cross_compiling:$ac_tool_warned in
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned=yes ;;
2765 STRIP="$ac_cv_prog_STRIP"
2769 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2772 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2773 if test -z "$MKDIR_P"; then
2774 if ${ac_cv_path_mkdir+:} false; then :
2775 $as_echo_n "(cached) " >&6
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2781 test -z "$as_dir" && as_dir=.
2782 for ac_prog in mkdir gmkdir; do
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2785 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2786 'mkdir (GNU coreutils) '* | \
2787 'mkdir (coreutils) '* | \
2788 'mkdir (fileutils) '4.1*)
2789 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2799 test -d ./--version && rmdir ./--version
2800 if test "${ac_cv_path_mkdir+set}" = set; then
2801 MKDIR_P="$ac_cv_path_mkdir -p"
2803 # As a last resort, use the slow shell script. Don't cache a
2804 # value for MKDIR_P within a source directory, because that will
2805 # break other packages using the cache if that directory is
2806 # removed, or if the value is a relative name.
2807 MKDIR_P="$ac_install_sh -d"
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2811 $as_echo "$MKDIR_P" >&6; }
2813 for ac_prog in gawk mawk nawk awk
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_AWK+:} false; then :
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$AWK"; then
2823 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_AWK="$ac_prog"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 if test -n "$AWK"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2845 $as_echo "$AWK" >&6; }
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2852 test -n "$AWK" && break
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2856 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2858 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2859 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 cat >conftest.make <<\_ACEOF
2865 @echo '@@@%%%=$(MAKE)=@@@%%%'
2867 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2868 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2870 eval ac_cv_prog_make_${ac_make}_set=yes;;
2872 eval ac_cv_prog_make_${ac_make}_set=no;;
2876 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878 $as_echo "yes" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 SET_MAKE="MAKE=${MAKE-make}"
2886 rm -rf .tst 2>/dev/null
2887 mkdir .tst 2>/dev/null
2888 if test -d .tst; then
2893 rmdir .tst 2>/dev/null
2895 # Check whether --enable-silent-rules was given.
2896 if test "${enable_silent_rules+set}" = set; then :
2897 enableval=$enable_silent_rules;
2900 case $enable_silent_rules in # (((
2901 yes) AM_DEFAULT_VERBOSITY=0;;
2902 no) AM_DEFAULT_VERBOSITY=1;;
2903 *) AM_DEFAULT_VERBOSITY=1;;
2905 am_make=${MAKE-make}
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2907 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2908 if ${am_cv_make_support_nested_variables+:} false; then :
2909 $as_echo_n "(cached) " >&6
2911 if $as_echo 'TRUE=$(BAR$(V))
2917 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2918 am_cv_make_support_nested_variables=yes
2920 am_cv_make_support_nested_variables=no
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2924 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2925 if test $am_cv_make_support_nested_variables = yes; then
2927 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2929 AM_V=$AM_DEFAULT_VERBOSITY
2930 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2934 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2935 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2936 # is not polluted with repeated "-I."
2937 am__isrc=' -I$(srcdir)'
2938 # test to see if srcdir already configured
2939 if test -f $srcdir/config.status; then
2940 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2944 # test whether we have cygpath
2945 if test -z "$CYGPATH_W"; then
2946 if (cygpath --version) >/dev/null 2>/dev/null; then
2947 CYGPATH_W='cygpath -w'
2954 # Define the identity of the package.
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE "$PACKAGE"
2964 cat >>confdefs.h <<_ACEOF
2965 #define VERSION "$VERSION"
2968 # Some tools Automake needs.
2970 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2973 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2976 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2979 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2982 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2984 # For better backward compatibility. To be removed once Automake 1.9.x
2985 # dies out for good. For more background, see:
2986 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2987 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2988 mkdir_p='$(MKDIR_P)'
2990 # We need awk for the "check" target (and possibly the TAP driver). The
2991 # system "awk" is bad on some platforms.
2992 # Always define AMTAR for backward compatibility. Yes, it's still used
2993 # in the wild :-( We should find a proper way to deprecate it ...
2997 # We'll loop over all known methods to create a tar archive until one works.
2998 _am_tools='gnutar pax cpio none'
3000 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3007 # POSIX will say in a future version that running "rm -f" with no argument
3008 # is OK; and we want to be able to make that assumption in our Makefile
3009 # recipes. So use an aggressive probe to check that the usage we want is
3010 # actually supported "in the wild" to an acceptable degree.
3011 # See automake bug#10828.
3012 # To make any issue more visible, cause the running configure to be aborted
3013 # by default if the 'rm' program in use doesn't match our expectations; the
3014 # user can still override this though.
3015 if rm -f && rm -fr && rm -rf; then : OK; else
3019 Your 'rm' program seems unable to run without file operands specified
3020 on the command line, even when the '-f' option is present. This is contrary
3021 to the behaviour of most rm programs out there, and not conforming with
3022 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3024 Please tell bug-automake@gnu.org about your system, including the value
3025 of your $PATH and any error possibly output before this message. This
3026 can help us improve future automake versions.
3029 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3030 echo 'Configuration will proceed anyway, since you have set the' >&2
3031 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3035 Aborting the configuration process, to ensure you take notice of the issue.
3037 You can download and install GNU coreutils to get an 'rm' implementation
3038 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3040 If you want to complete the configuration process using your problematic
3041 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3042 to "yes", and re-run configure.
3045 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3054 LIBREVISION=7 # with
3055 LIBAGE=6 # CMakeLists.txt!
3057 CPPFLAGS="${CPPFLAGS} -DHAVE_EXPAT_CONFIG_H"
3058 ac_config_headers="$ac_config_headers expat_config.h"
3064 # Make sure we can run config.sub.
3065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3066 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3069 $as_echo_n "checking build system type... " >&6; }
3070 if ${ac_cv_build+:} false; then :
3071 $as_echo_n "(cached) " >&6
3073 ac_build_alias=$build_alias
3074 test "x$ac_build_alias" = x &&
3075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3076 test "x$ac_build_alias" = x &&
3077 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3079 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3083 $as_echo "$ac_cv_build" >&6; }
3084 case $ac_cv_build in
3086 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3089 ac_save_IFS=$IFS; IFS='-'
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3099 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3103 $as_echo_n "checking host system type... " >&6; }
3104 if ${ac_cv_host+:} false; then :
3105 $as_echo_n "(cached) " >&6
3107 if test "x$host_alias" = x; then
3108 ac_cv_host=$ac_cv_build
3110 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3111 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3116 $as_echo "$ac_cv_host" >&6; }
3119 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3122 ac_save_IFS=$IFS; IFS='-'
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3135 enable_win32_dll=yes
3138 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}as; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_AS+:} false; then :
3145 $as_echo_n "(cached) " >&6
3147 if test -n "$AS"; then
3148 ac_cv_prog_AS="$AS" # Let the user override the test.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_AS="${ac_tool_prefix}as"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 if test -n "$AS"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3170 $as_echo "$AS" >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3178 if test -z "$ac_cv_prog_AS"; then
3180 # Extract the first word of "as", so it can be a program name with args.
3181 set dummy as; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 if test -n "$ac_ct_AS"; then
3188 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_AS="as"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3208 if test -n "$ac_ct_AS"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3210 $as_echo "$ac_ct_AS" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3216 if test "x$ac_ct_AS" = x; then
3219 case $cross_compiling:$ac_tool_warned in
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3231 if test -n "$ac_tool_prefix"; then
3232 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3233 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_DLLTOOL+:} false; then :
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$DLLTOOL"; then
3240 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 DLLTOOL=$ac_cv_prog_DLLTOOL
3260 if test -n "$DLLTOOL"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3262 $as_echo "$DLLTOOL" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3270 if test -z "$ac_cv_prog_DLLTOOL"; then
3271 ac_ct_DLLTOOL=$DLLTOOL
3272 # Extract the first word of "dlltool", so it can be a program name with args.
3273 set dummy dlltool; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
3277 $as_echo_n "(cached) " >&6
3279 if test -n "$ac_ct_DLLTOOL"; then
3280 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3300 if test -n "$ac_ct_DLLTOOL"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3302 $as_echo "$ac_ct_DLLTOOL" >&6; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3308 if test "x$ac_ct_DLLTOOL" = x; then
3311 case $cross_compiling:$ac_tool_warned in
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3315 ac_tool_warned=yes ;;
3317 DLLTOOL=$ac_ct_DLLTOOL
3320 DLLTOOL="$ac_cv_prog_DLLTOOL"
3323 if test -n "$ac_tool_prefix"; then
3324 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3325 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if ${ac_cv_prog_OBJDUMP+:} false; then :
3329 $as_echo_n "(cached) " >&6
3331 if test -n "$OBJDUMP"; then
3332 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 OBJDUMP=$ac_cv_prog_OBJDUMP
3352 if test -n "$OBJDUMP"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3354 $as_echo "$OBJDUMP" >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3362 if test -z "$ac_cv_prog_OBJDUMP"; then
3363 ac_ct_OBJDUMP=$OBJDUMP
3364 # Extract the first word of "objdump", so it can be a program name with args.
3365 set dummy objdump; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
3369 $as_echo_n "(cached) " >&6
3371 if test -n "$ac_ct_OBJDUMP"; then
3372 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3392 if test -n "$ac_ct_OBJDUMP"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3394 $as_echo "$ac_ct_OBJDUMP" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3400 if test "x$ac_ct_OBJDUMP" = x; then
3403 case $cross_compiling:$ac_tool_warned in
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3407 ac_tool_warned=yes ;;
3409 OBJDUMP=$ac_ct_OBJDUMP
3412 OBJDUMP="$ac_cv_prog_OBJDUMP"
3418 test -z "$AS" && AS=as
3424 test -z "$DLLTOOL" && DLLTOOL=dlltool
3430 test -z "$OBJDUMP" && OBJDUMP=objdump
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3441 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3446 macro_version='2.4.6'
3447 macro_revision='2.4.6'
3461 ltmain=$ac_aux_dir/ltmain.sh
3463 # Backslashify metacharacters that are still active within
3464 # double-quoted strings.
3465 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3467 # Same as above, but do not quote variable references.
3468 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3470 # Sed substitution to delay expansion of an escaped shell variable in a
3471 # double_quote_subst'ed string.
3472 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3474 # Sed substitution to delay expansion of an escaped single quote.
3475 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3477 # Sed substitution to avoid accidental globbing in evaled expressions
3478 no_glob_subst='s/\*/\\\*/g'
3480 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3481 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3482 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3485 $as_echo_n "checking how to print strings... " >&6; }
3486 # Test print first, because it will be a builtin if present.
3487 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3488 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3490 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3493 # Use this function as a fallback that always works.
3494 func_fallback_echo ()
3496 eval 'cat <<_LTECHO_EOF
3500 ECHO='func_fallback_echo'
3503 # func_echo_all arg...
3504 # Invoke $ECHO with all args, space-separated.
3511 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3512 $as_echo "printf" >&6; } ;;
3513 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3514 $as_echo "print -r" >&6; } ;;
3515 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3516 $as_echo "cat" >&6; } ;;
3532 DEPDIR="${am__leading_dot}deps"
3534 ac_config_commands="$ac_config_commands depfiles"
3537 am_make=${MAKE-make}
3538 cat > confinc << 'END'
3540 @echo this is the am__doit target
3543 # If we don't find an include directive, just comment out the code.
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3545 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3549 # First try GNU make style include.
3550 echo "include confinc" > confmf
3551 # Ignore all kinds of additional output from 'make'.
3552 case `$am_make -s -f confmf 2> /dev/null` in #(
3553 *the\ am__doit\ target*)
3559 # Now try BSD make style include.
3560 if test "$am__include" = "#"; then
3561 echo '.include "confinc"' > confmf
3562 case `$am_make -s -f confmf 2> /dev/null` in #(
3563 *the\ am__doit\ target*)
3564 am__include=.include
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3573 $as_echo "$_am_result" >&6; }
3574 rm -f confinc confmf
3576 # Check whether --enable-dependency-tracking was given.
3577 if test "${enable_dependency_tracking+set}" = set; then :
3578 enableval=$enable_dependency_tracking;
3581 if test "x$enable_dependency_tracking" != xno; then
3582 am_depcomp="$ac_aux_dir/depcomp"
3586 if test "x$enable_dependency_tracking" != xno; then
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_CC+:} false; then :
3606 $as_echo_n "(cached) " >&6
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 if test -n "$CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3639 if test -z "$ac_cv_prog_CC"; then
3641 # Extract the first word of "gcc", so it can be a program name with args.
3642 set dummy gcc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$ac_ct_CC"; then
3649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_ac_ct_CC="gcc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3669 if test -n "$ac_ct_CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3671 $as_echo "$ac_ct_CC" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3677 if test "x$ac_ct_CC" = x; then
3680 case $cross_compiling:$ac_tool_warned in
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3684 ac_tool_warned=yes ;;
3692 if test -z "$CC"; then
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}cc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_CC+:} false; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_CC="${ac_tool_prefix}cc"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3733 if test -z "$CC"; then
3734 # Extract the first word of "cc", so it can be a program name with args.
3735 set dummy cc; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_CC+:} false; then :
3739 $as_echo_n "(cached) " >&6
3741 if test -n "$CC"; then
3742 ac_cv_prog_CC="$CC" # Let the user override the test.
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3753 ac_prog_rejected=yes
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 if test $ac_prog_rejected = yes; then
3765 # We found a bogon in the path, so make sure we never use it.
3766 set dummy $ac_cv_prog_CC
3768 if test $# != 0; then
3769 # We chose a different compiler from the bogus one.
3770 # However, it has the same basename, so the bogon will be chosen
3771 # first if we set CC to just the basename; use the full file name.
3773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3779 if test -n "$CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781 $as_echo "$CC" >&6; }
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3789 if test -z "$CC"; then
3790 if test -n "$ac_tool_prefix"; then
3791 for ac_prog in cl.exe
3793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_CC+:} false; then :
3798 $as_echo_n "(cached) " >&6
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 if test -n "$CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3830 test -n "$CC" && break
3833 if test -z "$CC"; then
3835 for ac_prog in cl.exe
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3842 $as_echo_n "(cached) " >&6
3844 if test -n "$ac_ct_CC"; then
3845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854 ac_cv_prog_ac_ct_CC="$ac_prog"
3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3865 if test -n "$ac_ct_CC"; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3867 $as_echo "$ac_ct_CC" >&6; }
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3874 test -n "$ac_ct_CC" && break
3877 if test "x$ac_ct_CC" = x; then
3880 case $cross_compiling:$ac_tool_warned in
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3884 ac_tool_warned=yes ;;
3893 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error $? "no acceptable C compiler found in \$PATH
3896 See \`config.log' for more details" "$LINENO" 5; }
3898 # Provide some information about the compiler.
3899 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3902 for ac_option in --version -v -V -qversion; do
3903 { { ac_try="$ac_compiler $ac_option >&5"
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3912 if test -s conftest.err; then
3914 ... rest of stderr output deleted ...
3915 10q' conftest.err >conftest.er1
3916 cat conftest.er1 >&5
3918 rm -f conftest.er1 conftest.err
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3934 ac_clean_files_save=$ac_clean_files
3935 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3936 # Try to create an executable without -o first, disregard a.out.
3937 # It will help us diagnose broken compilers, and finding out an intuition
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3940 $as_echo_n "checking whether the C compiler works... " >&6; }
3941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3943 # The possible output files:
3944 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3947 for ac_file in $ac_files
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3951 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3956 if { { ac_try="$ac_link_default"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_link_default") 2>&5
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; then :
3967 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3968 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3969 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3970 # so that the user can short-circuit this test for compilers unknown to
3972 for ac_file in $ac_files ''
3974 test -f "$ac_file" || continue
3976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3979 # We found the default executable, but exeext='' is most
3983 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987 # We set ac_cv_exeext here because the later test for it is not
3988 # safe: cross compilers may not add the suffix if given an `-o'
3989 # argument, so we may need to know it at that point already.
3990 # Even if this section looks crufty: it has the advantage of
3997 test "$ac_cv_exeext" = no && ac_cv_exeext=
4002 if test -z "$ac_file"; then :
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4005 $as_echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error 77 "C compiler cannot create executables
4011 See \`config.log' for more details" "$LINENO" 5; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4014 $as_echo "yes" >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4017 $as_echo_n "checking for C compiler default output file name... " >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4019 $as_echo "$ac_file" >&6; }
4020 ac_exeext=$ac_cv_exeext
4022 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4023 ac_clean_files=$ac_clean_files_save
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4025 $as_echo_n "checking for suffix of executables... " >&6; }
4026 if { { ac_try="$ac_link"
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_link") 2>&5
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }; then :
4037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4038 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4039 # work properly (i.e., refer to `conftest.exe'), while it won't with
4041 for ac_file in conftest.exe conftest conftest.*; do
4042 test -f "$ac_file" || continue
4044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4054 See \`config.log' for more details" "$LINENO" 5; }
4056 rm -f conftest conftest$ac_cv_exeext
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4058 $as_echo "$ac_cv_exeext" >&6; }
4060 rm -f conftest.$ac_ext
4061 EXEEXT=$ac_cv_exeext
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4069 FILE *f = fopen ("conftest.out", "w");
4070 return ferror (f) || fclose (f) != 0;
4076 ac_clean_files="$ac_clean_files conftest.out"
4077 # Check that the compiler produces executables we can run. If not, either
4078 # the compiler is broken, or we cross compile.
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4080 $as_echo_n "checking whether we are cross compiling... " >&6; }
4081 if test "$cross_compiling" != yes; then
4082 { { ac_try="$ac_link"
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088 $as_echo "$ac_try_echo"; } >&5
4089 (eval "$ac_link") 2>&5
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }
4093 if { ac_try='./conftest$ac_cv_exeext'
4094 { { case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100 (eval "$ac_try") 2>&5
4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }; }; then
4106 if test "$cross_compiling" = maybe; then
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot run C compiled programs.
4112 If you meant to cross compile, use \`--host'.
4113 See \`config.log' for more details" "$LINENO" 5; }
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4118 $as_echo "$cross_compiling" >&6; }
4120 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4121 ac_clean_files=$ac_clean_files_save
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4123 $as_echo_n "checking for suffix of object files... " >&6; }
4124 if ${ac_cv_objext+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4138 rm -f conftest.o conftest.obj
4139 if { { ac_try="$ac_compile"
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145 $as_echo "$ac_try_echo"; } >&5
4146 (eval "$ac_compile") 2>&5
4148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149 test $ac_status = 0; }; then :
4150 for ac_file in conftest.o conftest.obj conftest.*; do
4151 test -f "$ac_file" || continue;
4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "cannot compute suffix of object files: cannot compile
4165 See \`config.log' for more details" "$LINENO" 5; }
4167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4170 $as_echo "$ac_cv_objext" >&6; }
4171 OBJEXT=$ac_cv_objext
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4174 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4175 if ${ac_cv_c_compiler_gnu+:} false; then :
4176 $as_echo_n "(cached) " >&6
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4192 if ac_fn_c_try_compile "$LINENO"; then :
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4202 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4203 if test $ac_compiler_gnu = yes; then
4208 ac_test_CFLAGS=${CFLAGS+set}
4209 ac_save_CFLAGS=$CFLAGS
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4211 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4212 if ${ac_cv_prog_cc_g+:} false; then :
4213 $as_echo_n "(cached) " >&6
4215 ac_save_c_werror_flag=$ac_c_werror_flag
4216 ac_c_werror_flag=yes
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4230 if ac_fn_c_try_compile "$LINENO"; then :
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4245 if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4261 if ac_fn_c_try_compile "$LINENO"; then :
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 ac_c_werror_flag=$ac_save_c_werror_flag
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4272 $as_echo "$ac_cv_prog_cc_g" >&6; }
4273 if test "$ac_test_CFLAGS" = set; then
4274 CFLAGS=$ac_save_CFLAGS
4275 elif test $ac_cv_prog_cc_g = yes; then
4276 if test "$GCC" = yes; then
4282 if test "$GCC" = yes; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4289 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4290 if ${ac_cv_prog_cc_c89+:} false; then :
4291 $as_echo_n "(cached) " >&6
4293 ac_cv_prog_cc_c89=no
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4301 struct buf { int x; };
4302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4303 static char *e (p, i)
4309 static char *f (char * (*g) (char **, int), char **p, ...)
4314 s = g (p, va_arg (v,int));
4319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4320 function prototypes and stuff, but not '\xHH' hex character constants.
4321 These don't provoke an error unfortunately, instead are silently treated
4322 as 'x'. The following induces an error, until -std is added to get
4323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4324 array size at least. It's necessary to write '\x00'==0 to get something
4325 that's true only with -std. */
4326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4329 inside strings and character constants. */
4331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4333 int test (int i, double x);
4334 struct s1 {int (*f) (int a);};
4335 struct s2 {int (*f) (double a);};
4336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4350 CC="$ac_save_CC $ac_arg"
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_prog_cc_c89=$ac_arg
4354 rm -f core conftest.err conftest.$ac_objext
4355 test "x$ac_cv_prog_cc_c89" != "xno" && break
4357 rm -f conftest.$ac_ext
4362 case "x$ac_cv_prog_cc_c89" in
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4365 $as_echo "none needed" >&6; } ;;
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4368 $as_echo "unsupported" >&6; } ;;
4370 CC="$CC $ac_cv_prog_cc_c89"
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4372 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4374 if test "x$ac_cv_prog_cc_c89" != xno; then :
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4390 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4391 if ${am_cv_prog_cc_c_o+:} false; then :
4392 $as_echo_n "(cached) " >&6
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4405 # Make sure it works both with $CC and with simple cc.
4406 # Following AC_PROG_CC_C_O, we do the test twice because some
4407 # compilers refuse to overwrite an existing .o file with -o,
4408 # though they will create one.
4409 am_cv_prog_cc_c_o=yes
4411 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4412 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } \
4416 && test -f conftest2.$ac_objext; then
4419 am_cv_prog_cc_c_o=no
4423 rm -f core conftest*
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4427 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4428 if test "$am_cv_prog_cc_c_o" != yes; then
4429 # Losing compiler, so override with the script.
4430 # FIXME: It is wrong to rewrite CC.
4431 # But if we don't then we get into trouble of one sort or another.
4432 # A longer-term fix would be to have automake use am__CC in this case,
4433 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4434 CC="$am_aux_dir/compile $CC"
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 depcc="$CC" am_compiler_list=
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4446 $as_echo_n "checking dependency style of $depcc... " >&6; }
4447 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4448 $as_echo_n "(cached) " >&6
4450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4451 # We make a subdir and do the tests there. Otherwise we can end up
4452 # making bogus files that we don't know about and never remove. For
4453 # instance it was reported that on HP-UX the gcc test will end up
4454 # making a dummy file named 'D' -- because '-MD' means "put the output
4458 # Copy depcomp to subdir because otherwise we won't find it if we're
4459 # using a relative directory.
4460 cp "$am_depcomp" conftest.dir
4462 # We will build objects and dependencies in a subdirectory because
4463 # it helps to detect inapplicable dependency modes. For instance
4464 # both Tru64's cc and ICC support -MD to output dependencies as a
4465 # side effect of compilation, but ICC will put the dependencies in
4466 # the current directory while Tru64 will put them in the object
4470 am_cv_CC_dependencies_compiler_type=none
4471 if test "$am_compiler_list" = ""; then
4472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4475 case " $depcc " in #(
4476 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4479 for depmode in $am_compiler_list; do
4480 # Setup a source with many dependencies, because some compilers
4481 # like to wrap large dependency lists on column 80 (with \), and
4482 # we should not choose a depcomp mode which is confused by this.
4484 # We need to recreate these files for each test, as the compiler may
4485 # overwrite some of them when testing with obscure command lines.
4486 # This happens at least with the AIX C compiler.
4488 for i in 1 2 3 4 5 6; do
4489 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4490 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4491 # Solaris 10 /bin/sh.
4492 echo '/* dummy */' > sub/conftst$i.h
4494 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4496 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4497 # mode. It turns out that the SunPro C++ compiler does not properly
4498 # handle '-M -o', and we need to detect this. Also, some Intel
4499 # versions had trouble with output in subdirs.
4500 am__obj=sub/conftest.${OBJEXT-o}
4501 am__minus_obj="-o $am__obj"
4504 # This depmode causes a compiler race in universal mode.
4505 test "$am__universal" = false || continue
4508 # After this tag, mechanisms are not by side-effect, so they'll
4509 # only be used when explicitly requested.
4510 if test "x$enable_dependency_tracking" = xyes; then
4516 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4517 # This compiler won't grok '-c -o', but also, the minuso test has
4518 # not run yet. These depmodes are late enough in the game, and
4519 # so weak that their functioning should not be impacted.
4520 am__obj=conftest.${OBJEXT-o}
4525 if depmode=$depmode \
4526 source=sub/conftest.c object=$am__obj \
4527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4528 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4529 >/dev/null 2>conftest.err &&
4530 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4532 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4534 # icc doesn't choke on unknown options, it will just issue warnings
4535 # or remarks (even with -Werror). So we grep stderr for any message
4536 # that says an option was ignored or not supported.
4537 # When given -MP, icc 7.0 and 7.1 complain thusly:
4538 # icc: Command line warning: ignoring option '-M'; no argument required
4539 # The diagnosis changed in icc 8.0:
4540 # icc: Command line remark: option '-MP' not supported
4541 if (grep 'ignoring option' conftest.err ||
4542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4543 am_cv_CC_dependencies_compiler_type=$depmode
4552 am_cv_CC_dependencies_compiler_type=none
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4557 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4561 test "x$enable_dependency_tracking" != xno \
4562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4564 am__fastdepCC_FALSE='#'
4566 am__fastdepCC_TRUE='#'
4567 am__fastdepCC_FALSE=
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4572 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4573 if ${ac_cv_path_SED+:} false; then :
4574 $as_echo_n "(cached) " >&6
4576 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4577 for ac_i in 1 2 3 4 5 6 7; do
4578 ac_script="$ac_script$as_nl$ac_script"
4580 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4581 { ac_script=; unset ac_script;}
4582 if test -z "$SED"; then
4583 ac_path_SED_found=false
4584 # Loop through the user's path and test for each of PROGNAME-LIST
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_prog in sed gsed; do
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4593 as_fn_executable_p "$ac_path_SED" || continue
4594 # Check for GNU ac_path_SED and select it if it is found.
4595 # Check for GNU $ac_path_SED
4596 case `"$ac_path_SED" --version 2>&1` in
4598 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4601 $as_echo_n 0123456789 >"conftest.in"
4604 cat "conftest.in" "conftest.in" >"conftest.tmp"
4605 mv "conftest.tmp" "conftest.in"
4606 cp "conftest.in" "conftest.nl"
4607 $as_echo '' >> "conftest.nl"
4608 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610 as_fn_arith $ac_count + 1 && ac_count=$as_val
4611 if test $ac_count -gt ${ac_path_SED_max-0}; then
4612 # Best one so far, save it but keep looking for a better one
4613 ac_cv_path_SED="$ac_path_SED"
4614 ac_path_SED_max=$ac_count
4616 # 10*(2^10) chars as input seems more than enough
4617 test $ac_count -gt 10 && break
4619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622 $ac_path_SED_found && break 3
4627 if test -z "$ac_cv_path_SED"; then
4628 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4636 $as_echo "$ac_cv_path_SED" >&6; }
4637 SED="$ac_cv_path_SED"
4640 test -z "$SED" && SED=sed
4641 Xsed="$SED -e 1s/^X//"
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4654 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4655 if ${ac_cv_path_GREP+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -z "$GREP"; then
4659 ac_path_GREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 test -z "$as_dir" && as_dir=.
4666 for ac_prog in grep ggrep; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4669 as_fn_executable_p "$ac_path_GREP" || continue
4670 # Check for GNU ac_path_GREP and select it if it is found.
4671 # Check for GNU $ac_path_GREP
4672 case `"$ac_path_GREP" --version 2>&1` in
4674 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4677 $as_echo_n 0123456789 >"conftest.in"
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'GREP' >> "conftest.nl"
4684 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686 as_fn_arith $ac_count + 1 && ac_count=$as_val
4687 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_GREP="$ac_path_GREP"
4690 ac_path_GREP_max=$ac_count
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 $ac_path_GREP_found && break 3
4703 if test -z "$ac_cv_path_GREP"; then
4704 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707 ac_cv_path_GREP=$GREP
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4712 $as_echo "$ac_cv_path_GREP" >&6; }
4713 GREP="$ac_cv_path_GREP"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4717 $as_echo_n "checking for egrep... " >&6; }
4718 if ${ac_cv_path_EGREP+:} false; then :
4719 $as_echo_n "(cached) " >&6
4721 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4722 then ac_cv_path_EGREP="$GREP -E"
4724 if test -z "$EGREP"; then
4725 ac_path_EGREP_found=false
4726 # Loop through the user's path and test for each of PROGNAME-LIST
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4731 test -z "$as_dir" && as_dir=.
4732 for ac_prog in egrep; do
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4735 as_fn_executable_p "$ac_path_EGREP" || continue
4736 # Check for GNU ac_path_EGREP and select it if it is found.
4737 # Check for GNU $ac_path_EGREP
4738 case `"$ac_path_EGREP" --version 2>&1` in
4740 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4743 $as_echo_n 0123456789 >"conftest.in"
4746 cat "conftest.in" "conftest.in" >"conftest.tmp"
4747 mv "conftest.tmp" "conftest.in"
4748 cp "conftest.in" "conftest.nl"
4749 $as_echo 'EGREP' >> "conftest.nl"
4750 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4752 as_fn_arith $ac_count + 1 && ac_count=$as_val
4753 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4754 # Best one so far, save it but keep looking for a better one
4755 ac_cv_path_EGREP="$ac_path_EGREP"
4756 ac_path_EGREP_max=$ac_count
4758 # 10*(2^10) chars as input seems more than enough
4759 test $ac_count -gt 10 && break
4761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4764 $ac_path_EGREP_found && break 3
4769 if test -z "$ac_cv_path_EGREP"; then
4770 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4773 ac_cv_path_EGREP=$EGREP
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4779 $as_echo "$ac_cv_path_EGREP" >&6; }
4780 EGREP="$ac_cv_path_EGREP"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4784 $as_echo_n "checking for fgrep... " >&6; }
4785 if ${ac_cv_path_FGREP+:} false; then :
4786 $as_echo_n "(cached) " >&6
4788 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4789 then ac_cv_path_FGREP="$GREP -F"
4791 if test -z "$FGREP"; then
4792 ac_path_FGREP_found=false
4793 # Loop through the user's path and test for each of PROGNAME-LIST
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4798 test -z "$as_dir" && as_dir=.
4799 for ac_prog in fgrep; do
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4802 as_fn_executable_p "$ac_path_FGREP" || continue
4803 # Check for GNU ac_path_FGREP and select it if it is found.
4804 # Check for GNU $ac_path_FGREP
4805 case `"$ac_path_FGREP" --version 2>&1` in
4807 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4810 $as_echo_n 0123456789 >"conftest.in"
4813 cat "conftest.in" "conftest.in" >"conftest.tmp"
4814 mv "conftest.tmp" "conftest.in"
4815 cp "conftest.in" "conftest.nl"
4816 $as_echo 'FGREP' >> "conftest.nl"
4817 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4819 as_fn_arith $ac_count + 1 && ac_count=$as_val
4820 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4821 # Best one so far, save it but keep looking for a better one
4822 ac_cv_path_FGREP="$ac_path_FGREP"
4823 ac_path_FGREP_max=$ac_count
4825 # 10*(2^10) chars as input seems more than enough
4826 test $ac_count -gt 10 && break
4828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831 $ac_path_FGREP_found && break 3
4836 if test -z "$ac_cv_path_FGREP"; then
4837 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840 ac_cv_path_FGREP=$FGREP
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4846 $as_echo "$ac_cv_path_FGREP" >&6; }
4847 FGREP="$ac_cv_path_FGREP"
4850 test -z "$GREP" && GREP=grep
4870 # Check whether --with-gnu-ld was given.
4871 if test "${with_gnu_ld+set}" = set; then :
4872 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4878 if test yes = "$GCC"; then
4879 # Check if gcc -print-prog-name=ld gives a path.
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4881 $as_echo_n "checking for ld used by $CC... " >&6; }
4884 # gcc leaves a trailing carriage return, which upsets mingw
4885 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4887 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4890 # Accept absolute paths.
4892 re_direlt='/[^/][^/]*/\.\./'
4893 # Canonicalize the pathname of ld
4894 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4895 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4896 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4898 test -z "$LD" && LD=$ac_prog
4901 # If it fails, then pretend we aren't using GCC.
4905 # If it is relative, then search for the first ld in PATH.
4909 elif test yes = "$with_gnu_ld"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4911 $as_echo_n "checking for GNU ld... " >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4914 $as_echo_n "checking for non-GNU ld... " >&6; }
4916 if ${lt_cv_path_LD+:} false; then :
4917 $as_echo_n "(cached) " >&6
4919 if test -z "$LD"; then
4920 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4921 for ac_dir in $PATH; do
4923 test -z "$ac_dir" && ac_dir=.
4924 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4925 lt_cv_path_LD=$ac_dir/$ac_prog
4926 # Check to see if the program is GNU ld. I'd rather use --version,
4927 # but apparently some variants of GNU ld only accept -v.
4928 # Break only if it was the GNU/non-GNU ld that we prefer.
4929 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4930 *GNU* | *'with BFD'*)
4931 test no != "$with_gnu_ld" && break
4934 test yes != "$with_gnu_ld" && break
4941 lt_cv_path_LD=$LD # Let the user override the test with a path.
4946 if test -n "$LD"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4948 $as_echo "$LD" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4953 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4956 if ${lt_cv_prog_gnu_ld+:} false; then :
4957 $as_echo_n "(cached) " >&6
4959 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4960 case `$LD -v 2>&1 </dev/null` in
4961 *GNU* | *'with BFD'*)
4962 lt_cv_prog_gnu_ld=yes
4965 lt_cv_prog_gnu_ld=no
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4970 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4971 with_gnu_ld=$lt_cv_prog_gnu_ld
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4982 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4983 if ${lt_cv_path_NM+:} false; then :
4984 $as_echo_n "(cached) " >&6
4986 if test -n "$NM"; then
4987 # Let the user override the test.
4990 lt_nm_to_check=${ac_tool_prefix}nm
4991 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4992 lt_nm_to_check="$lt_nm_to_check nm"
4994 for lt_tmp_nm in $lt_nm_to_check; do
4995 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4996 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4998 test -z "$ac_dir" && ac_dir=.
4999 tmp_nm=$ac_dir/$lt_tmp_nm
5000 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5001 # Check to see if the nm accepts a BSD-compat flag.
5002 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5003 # nm: unknown option "B" ignored
5004 # Tru64's nm complains that /dev/null is an invalid object file
5005 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5007 mingw*) lt_bad_file=conftest.nm/nofile ;;
5008 *) lt_bad_file=/dev/null ;;
5010 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5011 *$lt_bad_file* | *'Invalid file or object type'*)
5012 lt_cv_path_NM="$tmp_nm -B"
5016 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5018 lt_cv_path_NM="$tmp_nm -p"
5022 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5023 continue # so that we can try to find one that supports BSD flags
5032 : ${lt_cv_path_NM=no}
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5036 $as_echo "$lt_cv_path_NM" >&6; }
5037 if test no != "$lt_cv_path_NM"; then
5040 # Didn't find any BSD compatible name lister, look for dumpbin.
5041 if test -n "$DUMPBIN"; then :
5042 # Let the user override the test.
5044 if test -n "$ac_tool_prefix"; then
5045 for ac_prog in dumpbin "link -dump"
5047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_DUMPBIN+:} false; then :
5052 $as_echo_n "(cached) " >&6
5054 if test -n "$DUMPBIN"; then
5055 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 DUMPBIN=$ac_cv_prog_DUMPBIN
5075 if test -n "$DUMPBIN"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5077 $as_echo "$DUMPBIN" >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5084 test -n "$DUMPBIN" && break
5087 if test -z "$DUMPBIN"; then
5088 ac_ct_DUMPBIN=$DUMPBIN
5089 for ac_prog in dumpbin "link -dump"
5091 # Extract the first word of "$ac_prog", so it can be a program name with args.
5092 set dummy $ac_prog; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5096 $as_echo_n "(cached) " >&6
5098 if test -n "$ac_ct_DUMPBIN"; then
5099 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5119 if test -n "$ac_ct_DUMPBIN"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5121 $as_echo "$ac_ct_DUMPBIN" >&6; }
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5128 test -n "$ac_ct_DUMPBIN" && break
5131 if test "x$ac_ct_DUMPBIN" = x; then
5134 case $cross_compiling:$ac_tool_warned in
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5138 ac_tool_warned=yes ;;
5140 DUMPBIN=$ac_ct_DUMPBIN
5144 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5146 DUMPBIN="$DUMPBIN -symbols -headers"
5154 if test : != "$DUMPBIN"; then
5158 test -z "$NM" && NM=nm
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5166 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5167 if ${lt_cv_nm_interface+:} false; then :
5168 $as_echo_n "(cached) " >&6
5170 lt_cv_nm_interface="BSD nm"
5171 echo "int some_variable = 0;" > conftest.$ac_ext
5172 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5173 (eval "$ac_compile" 2>conftest.err)
5174 cat conftest.err >&5
5175 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5176 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5177 cat conftest.err >&5
5178 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5179 cat conftest.out >&5
5180 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5181 lt_cv_nm_interface="MS dumpbin"
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5186 $as_echo "$lt_cv_nm_interface" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5189 $as_echo_n "checking whether ln -s works... " >&6; }
5191 if test "$LN_S" = "ln -s"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193 $as_echo "yes" >&6; }
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5196 $as_echo "no, using $LN_S" >&6; }
5199 # find the maximum length of command line arguments
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5201 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5202 if ${lt_cv_sys_max_cmd_len+:} false; then :
5203 $as_echo_n "(cached) " >&6
5210 # On DJGPP, this test can blow up pretty badly due to problems in libc
5211 # (any single argument exceeding 2000 bytes causes a buffer overrun
5212 # during glob expansion). Even if it were fixed, the result of this
5213 # check would be larger than it should be.
5214 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5218 # Under GNU Hurd, this test is not required because there is
5219 # no limit to the length of command line arguments.
5220 # Libtool will interpret -1 as no limit whatsoever
5221 lt_cv_sys_max_cmd_len=-1;
5224 cygwin* | mingw* | cegcc*)
5225 # On Win9x/ME, this test blows up -- it succeeds, but takes
5226 # about 5 minutes as the teststring grows exponentially.
5227 # Worse, since 9x/ME are not pre-emptively multitasking,
5228 # you end up with a "frozen" computer, even though with patience
5229 # the test eventually succeeds (with a max line length of 256k).
5230 # Instead, let's just punt: use the minimum linelength reported by
5231 # all of the supported platforms: 8192 (on NT/2K/XP).
5232 lt_cv_sys_max_cmd_len=8192;
5236 # On MiNT this can take a long time and run out of memory.
5237 lt_cv_sys_max_cmd_len=8192;
5241 # On MiNT this can take a long time and run out of memory.
5242 lt_cv_sys_max_cmd_len=8192;
5246 # On AmigaOS with pdksh, this test takes hours, literally.
5247 # So we just punt and use a minimum line length of 8192.
5248 lt_cv_sys_max_cmd_len=8192;
5251 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5252 # This has been around since 386BSD, at least. Likely further.
5253 if test -x /sbin/sysctl; then
5254 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5255 elif test -x /usr/sbin/sysctl; then
5256 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5258 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5260 # And add a safety zone
5261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5266 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5267 lt_cv_sys_max_cmd_len=196608
5271 # The test takes a long time on OS/2.
5272 lt_cv_sys_max_cmd_len=8192
5276 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5277 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5278 # nice to cause kernel panics so lets avoid the loop below.
5279 # First set a reasonable default.
5280 lt_cv_sys_max_cmd_len=16384
5282 if test -x /sbin/sysconfig; then
5283 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5284 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5289 lt_cv_sys_max_cmd_len=102400
5291 sysv5* | sco5v6* | sysv4.2uw2*)
5292 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5293 if test -n "$kargmax"; then
5294 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5296 lt_cv_sys_max_cmd_len=32768
5300 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5301 if test -n "$lt_cv_sys_max_cmd_len" && \
5302 test undefined != "$lt_cv_sys_max_cmd_len"; then
5303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5306 # Make teststring a little bigger before we do anything with it.
5307 # a 1K string should be a reasonable start.
5308 for i in 1 2 3 4 5 6 7 8; do
5309 teststring=$teststring$teststring
5311 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5312 # If test is not a shell built-in, we'll probably end up computing a
5313 # maximum length that is only half of the actual maximum length, but
5315 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5316 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5317 test 17 != "$i" # 1/2 MB should be enough
5320 teststring=$teststring$teststring
5322 # Only check the string length outside the loop.
5323 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5325 # Add a significant safety factor because C++ compilers can tack on
5326 # massive amounts of additional arguments before passing them to the
5327 # linker. It appears as though 1/2 is a usable value.
5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5335 if test -n "$lt_cv_sys_max_cmd_len"; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5337 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5340 $as_echo "none" >&6; }
5342 max_cmd_len=$lt_cv_sys_max_cmd_len
5353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5363 # test EBCDIC or ASCII
5364 case `echo X|tr X '\101'` in
5365 A) # ASCII based system
5366 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5367 lt_SP2NL='tr \040 \012'
5368 lt_NL2SP='tr \015\012 \040\040'
5370 *) # EBCDIC based system
5371 lt_SP2NL='tr \100 \n'
5372 lt_NL2SP='tr \r\n \100\100'
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5385 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5386 if ${lt_cv_to_host_file_cmd+:} false; then :
5387 $as_echo_n "(cached) " >&6
5392 *-*-mingw* ) # actually msys
5393 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5396 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5398 * ) # otherwise, assume *nix
5399 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5405 *-*-mingw* ) # actually msys
5406 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5409 lt_cv_to_host_file_cmd=func_convert_file_noop
5411 * ) # otherwise, assume *nix
5412 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5416 * ) # unhandled hosts (and "normal" native builds)
5417 lt_cv_to_host_file_cmd=func_convert_file_noop
5423 to_host_file_cmd=$lt_cv_to_host_file_cmd
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5425 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5432 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5433 if ${lt_cv_to_tool_file_cmd+:} false; then :
5434 $as_echo_n "(cached) " >&6
5436 #assume ordinary cross tools, or native build.
5437 lt_cv_to_tool_file_cmd=func_convert_file_noop
5441 *-*-mingw* ) # actually msys
5442 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5450 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5452 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5459 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5460 if ${lt_cv_ld_reload_flag+:} false; then :
5461 $as_echo_n "(cached) " >&6
5463 lt_cv_ld_reload_flag='-r'
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5466 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5467 reload_flag=$lt_cv_ld_reload_flag
5468 case $reload_flag in
5470 *) reload_flag=" $reload_flag" ;;
5472 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5474 cygwin* | mingw* | pw32* | cegcc*)
5475 if test yes != "$GCC"; then
5480 if test yes = "$GCC"; then
5481 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5483 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5496 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_OBJDUMP+:} false; then :
5502 $as_echo_n "(cached) " >&6
5504 if test -n "$OBJDUMP"; then
5505 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 OBJDUMP=$ac_cv_prog_OBJDUMP
5525 if test -n "$OBJDUMP"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5527 $as_echo "$OBJDUMP" >&6; }
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5535 if test -z "$ac_cv_prog_OBJDUMP"; then
5536 ac_ct_OBJDUMP=$OBJDUMP
5537 # Extract the first word of "objdump", so it can be a program name with args.
5538 set dummy objdump; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5542 $as_echo_n "(cached) " >&6
5544 if test -n "$ac_ct_OBJDUMP"; then
5545 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5565 if test -n "$ac_ct_OBJDUMP"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5567 $as_echo "$ac_ct_OBJDUMP" >&6; }
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5573 if test "x$ac_ct_OBJDUMP" = x; then
5576 case $cross_compiling:$ac_tool_warned in
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5582 OBJDUMP=$ac_ct_OBJDUMP
5585 OBJDUMP="$ac_cv_prog_OBJDUMP"
5588 test -z "$OBJDUMP" && OBJDUMP=objdump
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5596 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5597 if ${lt_cv_deplibs_check_method+:} false; then :
5598 $as_echo_n "(cached) " >&6
5600 lt_cv_file_magic_cmd='$MAGIC_CMD'
5601 lt_cv_file_magic_test_file=
5602 lt_cv_deplibs_check_method='unknown'
5603 # Need to set the preceding variable on all platforms that support
5604 # interlibrary dependencies.
5605 # 'none' -- dependencies not supported.
5606 # 'unknown' -- same as none, but documents that we really don't know.
5607 # 'pass_all' -- all dependencies passed with no checks.
5608 # 'test_compile' -- check by making test program.
5609 # 'file_magic [[regex]]' -- check by looking for files in library path
5610 # that responds to the $file_magic_cmd with a given extended regex.
5611 # If you have 'file' or equivalent on your system and you're not sure
5612 # whether 'pass_all' will *always* work, you probably want this one.
5616 lt_cv_deplibs_check_method=pass_all
5620 lt_cv_deplibs_check_method=pass_all
5624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5625 lt_cv_file_magic_cmd='/usr/bin/file -L'
5626 lt_cv_file_magic_test_file=/shlib/libc.so
5630 # func_win32_libid is a shell function defined in ltmain.sh
5631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5632 lt_cv_file_magic_cmd='func_win32_libid'
5636 # Base MSYS/MinGW do not provide the 'file' command needed by
5637 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5638 # unless we find 'file', for example because we are cross-compiling.
5639 if ( file / ) >/dev/null 2>&1; then
5640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5641 lt_cv_file_magic_cmd='func_win32_libid'
5643 # Keep this pattern in sync with the one in func_win32_libid.
5644 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5645 lt_cv_file_magic_cmd='$OBJDUMP -f'
5650 # use the weaker test based on 'objdump'. See mingw*.
5651 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5652 lt_cv_file_magic_cmd='$OBJDUMP -f'
5655 darwin* | rhapsody*)
5656 lt_cv_deplibs_check_method=pass_all
5659 freebsd* | dragonfly*)
5660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5663 # Not sure whether the presence of OpenBSD here was a mistake.
5664 # Let's accept both of them until this is cleared up.
5665 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5666 lt_cv_file_magic_cmd=/usr/bin/file
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5671 lt_cv_deplibs_check_method=pass_all
5676 lt_cv_deplibs_check_method=pass_all
5679 hpux10.20* | hpux11*)
5680 lt_cv_file_magic_cmd=/usr/bin/file
5683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5684 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5687 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]'
5688 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5692 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5698 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5702 irix5* | irix6* | nonstopux*)
5704 *-32|*"-32 ") libmagic=32-bit;;
5705 *-n32|*"-n32 ") libmagic=N32;;
5706 *-64|*"-64 ") libmagic=64-bit;;
5707 *) libmagic=never-match;;
5709 lt_cv_deplibs_check_method=pass_all
5712 # This must be glibc/ELF.
5713 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5714 lt_cv_deplibs_check_method=pass_all
5718 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5727 lt_cv_file_magic_cmd=/usr/bin/file
5728 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5732 lt_cv_deplibs_check_method=pass_all
5736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5743 osf3* | osf4* | osf5*)
5744 lt_cv_deplibs_check_method=pass_all
5748 lt_cv_deplibs_check_method=pass_all
5752 lt_cv_deplibs_check_method=pass_all
5755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5756 lt_cv_deplibs_check_method=pass_all
5760 case $host_vendor in
5762 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]'
5763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5766 lt_cv_deplibs_check_method=pass_all
5769 lt_cv_file_magic_cmd='/bin/file'
5770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5773 lt_cv_file_magic_cmd='/bin/file'
5774 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5775 lt_cv_file_magic_test_file=/lib/libc.so
5778 lt_cv_deplibs_check_method=pass_all
5781 lt_cv_deplibs_check_method=pass_all
5787 lt_cv_deplibs_check_method=pass_all
5790 lt_cv_deplibs_check_method=pass_all
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5796 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5800 if test "$build" = "$host"; then
5803 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5806 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5812 file_magic_cmd=$lt_cv_file_magic_cmd
5813 deplibs_check_method=$lt_cv_deplibs_check_method
5814 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5837 if test -n "$ac_tool_prefix"; then
5838 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5839 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_DLLTOOL+:} false; then :
5843 $as_echo_n "(cached) " >&6
5845 if test -n "$DLLTOOL"; then
5846 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 DLLTOOL=$ac_cv_prog_DLLTOOL
5866 if test -n "$DLLTOOL"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5868 $as_echo "$DLLTOOL" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5876 if test -z "$ac_cv_prog_DLLTOOL"; then
5877 ac_ct_DLLTOOL=$DLLTOOL
5878 # Extract the first word of "dlltool", so it can be a program name with args.
5879 set dummy dlltool; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5883 $as_echo_n "(cached) " >&6
5885 if test -n "$ac_ct_DLLTOOL"; then
5886 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5906 if test -n "$ac_ct_DLLTOOL"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5908 $as_echo "$ac_ct_DLLTOOL" >&6; }
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5914 if test "x$ac_ct_DLLTOOL" = x; then
5917 case $cross_compiling:$ac_tool_warned in
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5923 DLLTOOL=$ac_ct_DLLTOOL
5926 DLLTOOL="$ac_cv_prog_DLLTOOL"
5929 test -z "$DLLTOOL" && DLLTOOL=dlltool
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5938 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5939 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5940 $as_echo_n "(cached) " >&6
5942 lt_cv_sharedlib_from_linklib_cmd='unknown'
5945 cygwin* | mingw* | pw32* | cegcc*)
5946 # two different shell functions defined in ltmain.sh;
5947 # decide which one to use based on capabilities of $DLLTOOL
5948 case `$DLLTOOL --help 2>&1` in
5949 *--identify-strict*)
5950 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5953 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5958 # fallback: assume linklib IS sharedlib
5959 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5965 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5966 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5967 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5976 if test -n "$ac_tool_prefix"; then
5979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if ${ac_cv_prog_AR+:} false; then :
5984 $as_echo_n "(cached) " >&6
5986 if test -n "$AR"; then
5987 ac_cv_prog_AR="$AR" # Let the user override the test.
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 if test -n "$AR"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6009 $as_echo "$AR" >&6; }
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6016 test -n "$AR" && break
6019 if test -z "$AR"; then
6023 # Extract the first word of "$ac_prog", so it can be a program name with args.
6024 set dummy $ac_prog; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6028 $as_echo_n "(cached) " >&6
6030 if test -n "$ac_ct_AR"; then
6031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_AR="$ac_prog"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6051 if test -n "$ac_ct_AR"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6053 $as_echo "$ac_ct_AR" >&6; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6060 test -n "$ac_ct_AR" && break
6063 if test "x$ac_ct_AR" = x; then
6066 case $cross_compiling:$ac_tool_warned in
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 ac_tool_warned=yes ;;
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6090 $as_echo_n "checking for archiver @FILE support... " >&6; }
6091 if ${lt_cv_ar_at_file+:} false; then :
6092 $as_echo_n "(cached) " >&6
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107 echo conftest.$ac_objext > conftest.lst
6108 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6110 (eval $lt_ar_try) 2>&5
6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6113 test $ac_status = 0; }
6114 if test 0 -eq "$ac_status"; then
6115 # Ensure the archiver fails upon bogus file names.
6116 rm -f conftest.$ac_objext libconftest.a
6117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6118 (eval $lt_ar_try) 2>&5
6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6121 test $ac_status = 0; }
6122 if test 0 -ne "$ac_status"; then
6126 rm -f conftest.* libconftest.a
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6133 $as_echo "$lt_cv_ar_at_file" >&6; }
6135 if test no = "$lt_cv_ar_at_file"; then
6138 archiver_list_spec=$lt_cv_ar_at_file
6147 if test -n "$ac_tool_prefix"; then
6148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6149 set dummy ${ac_tool_prefix}strip; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_prog_STRIP+:} false; then :
6153 $as_echo_n "(cached) " >&6
6155 if test -n "$STRIP"; then
6156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 STRIP=$ac_cv_prog_STRIP
6176 if test -n "$STRIP"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6178 $as_echo "$STRIP" >&6; }
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6186 if test -z "$ac_cv_prog_STRIP"; then
6188 # Extract the first word of "strip", so it can be a program name with args.
6189 set dummy strip; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6193 $as_echo_n "(cached) " >&6
6195 if test -n "$ac_ct_STRIP"; then
6196 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_ac_ct_STRIP="strip"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6216 if test -n "$ac_ct_STRIP"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6218 $as_echo "$ac_ct_STRIP" >&6; }
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 $as_echo "no" >&6; }
6224 if test "x$ac_ct_STRIP" = x; then
6227 case $cross_compiling:$ac_tool_warned in
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6231 ac_tool_warned=yes ;;
6236 STRIP="$ac_cv_prog_STRIP"
6239 test -z "$STRIP" && STRIP=:
6246 if test -n "$ac_tool_prefix"; then
6247 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6248 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_prog_RANLIB+:} false; then :
6252 $as_echo_n "(cached) " >&6
6254 if test -n "$RANLIB"; then
6255 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 RANLIB=$ac_cv_prog_RANLIB
6275 if test -n "$RANLIB"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6277 $as_echo "$RANLIB" >&6; }
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6285 if test -z "$ac_cv_prog_RANLIB"; then
6286 ac_ct_RANLIB=$RANLIB
6287 # Extract the first word of "ranlib", so it can be a program name with args.
6288 set dummy ranlib; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6292 $as_echo_n "(cached) " >&6
6294 if test -n "$ac_ct_RANLIB"; then
6295 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_ac_ct_RANLIB="ranlib"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6315 if test -n "$ac_ct_RANLIB"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6317 $as_echo "$ac_ct_RANLIB" >&6; }
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6323 if test "x$ac_ct_RANLIB" = x; then
6326 case $cross_compiling:$ac_tool_warned in
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6330 ac_tool_warned=yes ;;
6332 RANLIB=$ac_ct_RANLIB
6335 RANLIB="$ac_cv_prog_RANLIB"
6338 test -z "$RANLIB" && RANLIB=:
6345 # Determine commands to create old-style static archives.
6346 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6347 old_postinstall_cmds='chmod 644 $oldlib'
6348 old_postuninstall_cmds=
6350 if test -n "$RANLIB"; then
6353 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6359 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6364 lock_old_archive_extraction=yes ;;
6366 lock_old_archive_extraction=no ;;
6407 # If no C compiler was specified, use CC.
6410 # If no C compiler flags were specified, use CFLAGS.
6411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6413 # Allow CC to be a program name with arguments.
6417 # Check for command to grab the raw symbol name followed by C symbol from nm.
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6419 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6420 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6421 $as_echo_n "(cached) " >&6
6424 # These are sane defaults that work on at least a few old systems.
6425 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6427 # Character class describing NM global symbol codes.
6428 symcode='[BCDEGRST]'
6430 # Regexp to match symbols that can be accessed directly from C.
6431 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6433 # Define system-specific variables.
6438 cygwin* | mingw* | pw32* | cegcc*)
6439 symcode='[ABCDGISTW]'
6442 if test ia64 = "$host_cpu"; then
6443 symcode='[ABCDEGRST]'
6447 symcode='[BCDEGRST]'
6450 symcode='[BCDEGQRST]'
6461 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6469 # If we're using GNU nm, then use its standard symbol codes.
6470 case `$NM -V 2>&1` in
6471 *GNU* | *'with BFD'*)
6472 symcode='[ABCDGIRSTW]' ;;
6475 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6476 # Gets list of data symbols to import.
6477 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6478 # Adjust the below global symbol transforms to fixup imported variables.
6479 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6480 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6481 lt_c_name_lib_hook="\
6482 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6483 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6485 # Disable hooks by default.
6486 lt_cv_sys_global_symbol_to_import=
6492 # Transform an extracted symbol line into a proper C declaration.
6493 # Some systems (esp. on ia64) link data and code symbols differently,
6494 # so use this general approach.
6495 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6497 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6498 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6500 # Transform an extracted symbol line into symbol name and symbol address
6501 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6503 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6504 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6506 # Transform an extracted symbol line into symbol name with lib prefix and
6508 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6509 $lt_c_name_lib_hook\
6510 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6511 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6512 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6514 # Handle CRLF in mingw tool chain
6518 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6522 # Try without a prefix underscore, then with it.
6523 for ac_symprfx in "" "_"; do
6525 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6526 symxfrm="\\1 $ac_symprfx\\2 \\2"
6528 # Write the raw and C identifiers.
6529 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6530 # Fake it for dumpbin and say T for any non-static function,
6531 # D for any global variable and I for any imported variable.
6532 # Also find C++ and __fastcall symbols from MSVC++,
6533 # which start with @ or ?.
6534 lt_cv_sys_global_symbol_pipe="$AWK '"\
6535 " {last_section=section; section=\$ 3};"\
6536 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6537 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6538 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6539 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6540 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6541 " \$ 0!~/External *\|/{next};"\
6542 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6543 " {if(hide[section]) next};"\
6544 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6545 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6546 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6547 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6548 " ' prfx=^$ac_symprfx"
6550 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6552 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6554 # Check to see that the pipe works correctly.
6558 cat > conftest.$ac_ext <<_LT_EOF
6563 void nm_test_func(void);
6564 void nm_test_func(void){}
6568 int main(){nm_test_var='a';nm_test_func();return(0);}
6571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6572 (eval $ac_compile) 2>&5
6574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6575 test $ac_status = 0; }; then
6576 # Now try to grab the symbols.
6578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6579 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6582 test $ac_status = 0; } && test -s "$nlist"; then
6583 # Try sorting and uniquifying the output.
6584 if sort "$nlist" | uniq > "$nlist"T; then
6585 mv -f "$nlist"T "$nlist"
6590 # Make sure that we snagged all the symbols we need.
6591 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6592 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6593 cat <<_LT_EOF > conftest.$ac_ext
6594 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6595 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6596 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6597 relocations are performed -- see ld's documentation on pseudo-relocs. */
6598 # define LT_DLSYM_CONST
6599 #elif defined __osf__
6600 /* This system does not cope well with relocations in const data. */
6601 # define LT_DLSYM_CONST
6603 # define LT_DLSYM_CONST const
6611 # Now generate the symbol file.
6612 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6614 cat <<_LT_EOF >> conftest.$ac_ext
6616 /* The mapping between symbol names and symbols. */
6617 LT_DLSYM_CONST struct {
6621 lt__PROGRAM__LTX_preloaded_symbols[] =
6623 { "@PROGRAM@", (void *) 0 },
6625 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6626 cat <<\_LT_EOF >> conftest.$ac_ext
6630 /* This works around a problem in FreeBSD linker */
6631 #ifdef FREEBSD_WORKAROUND
6632 static const void *lt_preloaded_setup() {
6633 return lt__PROGRAM__LTX_preloaded_symbols;
6641 # Now try linking the two files.
6642 mv conftest.$ac_objext conftstm.$ac_objext
6643 lt_globsym_save_LIBS=$LIBS
6644 lt_globsym_save_CFLAGS=$CFLAGS
6645 LIBS=conftstm.$ac_objext
6646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6648 (eval $ac_link) 2>&5
6650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6651 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6654 LIBS=$lt_globsym_save_LIBS
6655 CFLAGS=$lt_globsym_save_CFLAGS
6657 echo "cannot find nm_test_func in $nlist" >&5
6660 echo "cannot find nm_test_var in $nlist" >&5
6663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6666 echo "$progname: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6669 rm -rf conftest* conftst*
6671 # Do not use the global_symbol_pipe unless it works.
6672 if test yes = "$pipe_works"; then
6675 lt_cv_sys_global_symbol_pipe=
6681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6682 lt_cv_sys_global_symbol_to_cdecl=
6684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6686 $as_echo "failed" >&6; }
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6689 $as_echo "ok" >&6; }
6692 # Response file support.
6693 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6694 nm_file_list_spec='@'
6695 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6696 nm_file_list_spec='@'
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6736 $as_echo_n "checking for sysroot... " >&6; }
6738 # Check whether --with-sysroot was given.
6739 if test "${with_sysroot+set}" = set; then :
6740 withval=$with_sysroot;
6747 case $with_sysroot in #(
6749 if test yes = "$GCC"; then
6750 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6754 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6760 $as_echo "$with_sysroot" >&6; }
6761 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6766 $as_echo "${lt_sysroot:-no}" >&6; }
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6773 $as_echo_n "checking for a working dd... " >&6; }
6774 if ${ac_cv_path_lt_DD+:} false; then :
6775 $as_echo_n "(cached) " >&6
6777 printf 0123456789abcdef0123456789abcdef >conftest.i
6778 cat conftest.i conftest.i >conftest2.i
6780 if test -z "$lt_DD"; then
6781 ac_path_lt_DD_found=false
6782 # Loop through the user's path and test for each of PROGNAME-LIST
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_prog in dd; do
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6791 as_fn_executable_p "$ac_path_lt_DD" || continue
6792 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6793 cmp -s conftest.i conftest.out \
6794 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6796 $ac_path_lt_DD_found && break 3
6801 if test -z "$ac_cv_path_lt_DD"; then
6805 ac_cv_path_lt_DD=$lt_DD
6808 rm -f conftest.i conftest2.i conftest.out
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6811 $as_echo "$ac_cv_path_lt_DD" >&6; }
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6815 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6816 if ${lt_cv_truncate_bin+:} false; then :
6817 $as_echo_n "(cached) " >&6
6819 printf 0123456789abcdef0123456789abcdef >conftest.i
6820 cat conftest.i conftest.i >conftest2.i
6822 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6823 cmp -s conftest.i conftest.out \
6824 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6826 rm -f conftest.i conftest2.i conftest.out
6827 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6830 $as_echo "$lt_cv_truncate_bin" >&6; }
6838 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6841 for cc_temp in $*""; do
6843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6849 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6852 # Check whether --enable-libtool-lock was given.
6853 if test "${enable_libtool_lock+set}" = set; then :
6854 enableval=$enable_libtool_lock;
6857 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6859 # Some flags need to be propagated to the compiler or linker for good
6863 # Find out what ABI is being produced by ac_compile, and set mode
6864 # options accordingly.
6865 echo 'int i;' > conftest.$ac_ext
6866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6867 (eval $ac_compile) 2>&5
6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870 test $ac_status = 0; }; then
6871 case `/usr/bin/file conftest.$ac_objext` in
6883 # Find out what ABI is being produced by ac_compile, and set linker
6884 # options accordingly.
6885 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887 (eval $ac_compile) 2>&5
6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }; then
6891 if test yes = "$lt_cv_prog_gnu_ld"; then
6892 case `/usr/bin/file conftest.$ac_objext` in
6894 LD="${LD-ld} -melf32bsmip"
6897 LD="${LD-ld} -melf32bmipn32"
6900 LD="${LD-ld} -melf64bmip"
6904 case `/usr/bin/file conftest.$ac_objext` in
6921 # Find out what ABI is being produced by ac_compile, and set linker
6922 # options accordingly.
6923 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6925 (eval $ac_compile) 2>&5
6927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928 test $ac_status = 0; }; then
6930 case `/usr/bin/file conftest.$ac_objext` in
6938 case `/usr/bin/file conftest.$ac_objext` in
6940 emul="${emul}btsmip"
6943 emul="${emul}ltsmip"
6946 case `/usr/bin/file conftest.$ac_objext` in
6951 LD="${LD-ld} -m $emul"
6956 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6957 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6958 # Find out what ABI is being produced by ac_compile, and set linker
6959 # options accordingly. Note that the listed cases only cover the
6960 # situations where additional linker options are needed (such as when
6961 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6962 # vice versa); the common cases where no linker options are needed do
6963 # not appear in the list.
6964 echo 'int i;' > conftest.$ac_ext
6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6966 (eval $ac_compile) 2>&5
6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; }; then
6970 case `/usr/bin/file conftest.o` in
6973 x86_64-*kfreebsd*-gnu)
6974 LD="${LD-ld} -m elf_i386_fbsd"
6977 case `/usr/bin/file conftest.o` in
6979 LD="${LD-ld} -m elf32_x86_64"
6982 LD="${LD-ld} -m elf_i386"
6986 powerpc64le-*linux*)
6987 LD="${LD-ld} -m elf32lppclinux"
6990 LD="${LD-ld} -m elf32ppclinux"
6993 LD="${LD-ld} -m elf_s390"
6996 LD="${LD-ld} -m elf32_sparc"
7002 x86_64-*kfreebsd*-gnu)
7003 LD="${LD-ld} -m elf_x86_64_fbsd"
7006 LD="${LD-ld} -m elf_x86_64"
7008 powerpcle-*linux*|powerpc64le-*linux*)
7009 LD="${LD-ld} -m elf64lppc"
7011 powerpc-*linux*|powerpc64-*linux*)
7012 LD="${LD-ld} -m elf64ppc"
7014 s390*-*linux*|s390*-*tpf*)
7015 LD="${LD-ld} -m elf64_s390"
7018 LD="${LD-ld} -m elf64_sparc"
7028 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7030 CFLAGS="$CFLAGS -belf"
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7032 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7033 if ${lt_cv_cc_needs_belf+:} false; then :
7034 $as_echo_n "(cached) " >&6
7037 ac_cpp='$CPP $CPPFLAGS'
7038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7053 if ac_fn_c_try_link "$LINENO"; then :
7054 lt_cv_cc_needs_belf=yes
7056 lt_cv_cc_needs_belf=no
7058 rm -f core conftest.err conftest.$ac_objext \
7059 conftest$ac_exeext conftest.$ac_ext
7061 ac_cpp='$CPP $CPPFLAGS'
7062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7068 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7069 if test yes != "$lt_cv_cc_needs_belf"; then
7070 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7075 # Find out what ABI is being produced by ac_compile, and set linker
7076 # options accordingly.
7077 echo 'int i;' > conftest.$ac_ext
7078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7079 (eval $ac_compile) 2>&5
7081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7082 test $ac_status = 0; }; then
7083 case `/usr/bin/file conftest.o` in
7085 case $lt_cv_prog_gnu_ld in
7088 i?86-*-solaris*|x86_64-*-solaris*)
7089 LD="${LD-ld} -m elf_x86_64"
7092 LD="${LD-ld} -m elf64_sparc"
7095 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7096 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7101 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7113 need_locks=$enable_libtool_lock
7115 if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7117 set dummy ${ac_tool_prefix}mt; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7121 $as_echo_n "(cached) " >&6
7123 if test -n "$MANIFEST_TOOL"; then
7124 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7144 if test -n "$MANIFEST_TOOL"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7146 $as_echo "$MANIFEST_TOOL" >&6; }
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7154 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7155 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7156 # Extract the first word of "mt", so it can be a program name with args.
7157 set dummy mt; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7161 $as_echo_n "(cached) " >&6
7163 if test -n "$ac_ct_MANIFEST_TOOL"; then
7164 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7184 if test -n "$ac_ct_MANIFEST_TOOL"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7186 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7192 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7195 case $cross_compiling:$ac_tool_warned in
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199 ac_tool_warned=yes ;;
7201 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7204 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7207 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7209 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7210 if ${lt_cv_path_mainfest_tool+:} false; then :
7211 $as_echo_n "(cached) " >&6
7213 lt_cv_path_mainfest_tool=no
7214 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7215 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7216 cat conftest.err >&5
7217 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7218 lt_cv_path_mainfest_tool=yes
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7223 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7224 if test yes != "$lt_cv_path_mainfest_tool"; then
7234 rhapsody* | darwin*)
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7237 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7241 $as_echo_n "(cached) " >&6
7243 if test -n "$DSYMUTIL"; then
7244 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7264 if test -n "$DSYMUTIL"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7266 $as_echo "$DSYMUTIL" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7274 if test -z "$ac_cv_prog_DSYMUTIL"; then
7275 ac_ct_DSYMUTIL=$DSYMUTIL
7276 # Extract the first word of "dsymutil", so it can be a program name with args.
7277 set dummy dsymutil; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7281 $as_echo_n "(cached) " >&6
7283 if test -n "$ac_ct_DSYMUTIL"; then
7284 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7304 if test -n "$ac_ct_DSYMUTIL"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7306 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7312 if test "x$ac_ct_DSYMUTIL" = x; then
7315 case $cross_compiling:$ac_tool_warned in
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319 ac_tool_warned=yes ;;
7321 DSYMUTIL=$ac_ct_DSYMUTIL
7324 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7329 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_NMEDIT+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$NMEDIT"; then
7336 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 NMEDIT=$ac_cv_prog_NMEDIT
7356 if test -n "$NMEDIT"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7358 $as_echo "$NMEDIT" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7366 if test -z "$ac_cv_prog_NMEDIT"; then
7367 ac_ct_NMEDIT=$NMEDIT
7368 # Extract the first word of "nmedit", so it can be a program name with args.
7369 set dummy nmedit; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -n "$ac_ct_NMEDIT"; then
7376 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7396 if test -n "$ac_ct_NMEDIT"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7398 $as_echo "$ac_ct_NMEDIT" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7404 if test "x$ac_ct_NMEDIT" = x; then
7407 case $cross_compiling:$ac_tool_warned in
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7413 NMEDIT=$ac_ct_NMEDIT
7416 NMEDIT="$ac_cv_prog_NMEDIT"
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_LIPO+:} false; then :
7425 $as_echo_n "(cached) " >&6
7427 if test -n "$LIPO"; then
7428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 LIPO=$ac_cv_prog_LIPO
7448 if test -n "$LIPO"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7450 $as_echo "$LIPO" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7458 if test -z "$ac_cv_prog_LIPO"; then
7460 # Extract the first word of "lipo", so it can be a program name with args.
7461 set dummy lipo; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7465 $as_echo_n "(cached) " >&6
7467 if test -n "$ac_ct_LIPO"; then
7468 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_ac_ct_LIPO="lipo"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7488 if test -n "$ac_ct_LIPO"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7490 $as_echo "$ac_ct_LIPO" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7496 if test "x$ac_ct_LIPO" = x; then
7499 case $cross_compiling:$ac_tool_warned in
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503 ac_tool_warned=yes ;;
7508 LIPO="$ac_cv_prog_LIPO"
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}otool; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_OTOOL+:} false; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -n "$OTOOL"; then
7520 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 OTOOL=$ac_cv_prog_OTOOL
7540 if test -n "$OTOOL"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7542 $as_echo "$OTOOL" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7550 if test -z "$ac_cv_prog_OTOOL"; then
7552 # Extract the first word of "otool", so it can be a program name with args.
7553 set dummy otool; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$ac_ct_OTOOL"; then
7560 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_ac_ct_OTOOL="otool"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7580 if test -n "$ac_ct_OTOOL"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7582 $as_echo "$ac_ct_OTOOL" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7588 if test "x$ac_ct_OTOOL" = x; then
7591 case $cross_compiling:$ac_tool_warned in
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7600 OTOOL="$ac_cv_prog_OTOOL"
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_OTOOL64+:} false; then :
7609 $as_echo_n "(cached) " >&6
7611 if test -n "$OTOOL64"; then
7612 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 OTOOL64=$ac_cv_prog_OTOOL64
7632 if test -n "$OTOOL64"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7634 $as_echo "$OTOOL64" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7642 if test -z "$ac_cv_prog_OTOOL64"; then
7643 ac_ct_OTOOL64=$OTOOL64
7644 # Extract the first word of "otool64", so it can be a program name with args.
7645 set dummy otool64; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7649 $as_echo_n "(cached) " >&6
7651 if test -n "$ac_ct_OTOOL64"; then
7652 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_ac_ct_OTOOL64="otool64"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7672 if test -n "$ac_ct_OTOOL64"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7674 $as_echo "$ac_ct_OTOOL64" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7680 if test "x$ac_ct_OTOOL64" = x; then
7683 case $cross_compiling:$ac_tool_warned in
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned=yes ;;
7689 OTOOL64=$ac_ct_OTOOL64
7692 OTOOL64="$ac_cv_prog_OTOOL64"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7722 $as_echo_n "checking for -single_module linker flag... " >&6; }
7723 if ${lt_cv_apple_cc_single_mod+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 lt_cv_apple_cc_single_mod=no
7727 if test -z "$LT_MULTI_MODULE"; then
7728 # By default we will add the -single_module flag. You can override
7729 # by either setting the environment variable LT_MULTI_MODULE
7730 # non-empty at configure time, or by adding -multi_module to the
7732 rm -rf libconftest.dylib*
7733 echo "int foo(void){return 1;}" > conftest.c
7734 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7735 -dynamiclib -Wl,-single_module conftest.c" >&5
7736 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7737 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7739 # If there is a non-empty error log, and "single_module"
7740 # appears in it, assume the flag caused a linker warning
7741 if test -s conftest.err && $GREP single_module conftest.err; then
7742 cat conftest.err >&5
7743 # Otherwise, if the output was created with a 0 exit code from
7744 # the compiler, it worked.
7745 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7746 lt_cv_apple_cc_single_mod=yes
7748 cat conftest.err >&5
7750 rm -rf libconftest.dylib*
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7755 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7758 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7759 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7760 $as_echo_n "(cached) " >&6
7762 lt_cv_ld_exported_symbols_list=no
7763 save_LDFLAGS=$LDFLAGS
7764 echo "_main" > conftest.sym
7765 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7777 if ac_fn_c_try_link "$LINENO"; then :
7778 lt_cv_ld_exported_symbols_list=yes
7780 lt_cv_ld_exported_symbols_list=no
7782 rm -f core conftest.err conftest.$ac_objext \
7783 conftest$ac_exeext conftest.$ac_ext
7784 LDFLAGS=$save_LDFLAGS
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7788 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7791 $as_echo_n "checking for -force_load linker flag... " >&6; }
7792 if ${lt_cv_ld_force_load+:} false; then :
7793 $as_echo_n "(cached) " >&6
7795 lt_cv_ld_force_load=no
7796 cat > conftest.c << _LT_EOF
7797 int forced_loaded() { return 2;}
7799 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7800 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7801 echo "$AR cru libconftest.a conftest.o" >&5
7802 $AR cru libconftest.a conftest.o 2>&5
7803 echo "$RANLIB libconftest.a" >&5
7804 $RANLIB libconftest.a 2>&5
7805 cat > conftest.c << _LT_EOF
7806 int main() { return 0;}
7808 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7809 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7811 if test -s conftest.err && $GREP force_load conftest.err; then
7812 cat conftest.err >&5
7813 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7814 lt_cv_ld_force_load=yes
7816 cat conftest.err >&5
7818 rm -f conftest.err libconftest.a conftest conftest.c
7819 rm -rf conftest.dSYM
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7823 $as_echo "$lt_cv_ld_force_load" >&6; }
7825 rhapsody* | darwin1.[012])
7826 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7828 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7829 darwin*) # darwin 5.x on
7830 # if running on 10.5 or later, the deployment target defaults
7831 # to the OS version, if on x86, and 10.4, the deployment
7832 # target defaults to 10.4. Don't you love it?
7833 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7834 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7835 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7837 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7839 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7843 if test yes = "$lt_cv_apple_cc_single_mod"; then
7844 _lt_dar_single_mod='$single_module'
7846 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7847 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7851 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7852 _lt_dsymutil='~$DSYMUTIL $lib || :'
7859 # func_munge_path_list VARIABLE PATH
7860 # -----------------------------------
7861 # VARIABLE is name of variable containing _space_ separated list of
7862 # directories to be munged by the contents of PATH, which is string
7865 # string "DIR[ DIR]" will be prepended to VARIABLE
7867 # string "DIR[ DIR]" will be appended to VARIABLE
7868 # "DIRP[:DIRP]::[DIRA:]DIRA"
7869 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7870 # "DIRA[ DIRA]" will be appended to VARIABLE
7872 # VARIABLE will be replaced by "DIR[ DIR]"
7873 func_munge_path_list ()
7879 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7882 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7885 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7886 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7889 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7895 ac_cpp='$CPP $CPPFLAGS'
7896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7900 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7901 # On Suns, sometimes $CPP names a directory.
7902 if test -n "$CPP" && test -d "$CPP"; then
7905 if test -z "$CPP"; then
7906 if ${ac_cv_prog_CPP+:} false; then :
7907 $as_echo_n "(cached) " >&6
7909 # Double quotes because CPP needs to be expanded
7910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7913 for ac_c_preproc_warn_flag in '' yes
7915 # Use a header file that comes with gcc, so configuring glibc
7916 # with a fresh cross-compiler works.
7917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7918 # <limits.h> exists even on freestanding compilers.
7919 # On the NeXT, cc -E runs the code through the compiler's parser,
7920 # not just through cpp. "Syntax error" is here to catch this case.
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7924 # include <limits.h>
7926 # include <assert.h>
7930 if ac_fn_c_try_cpp "$LINENO"; then :
7933 # Broken: fails on valid input.
7936 rm -f conftest.err conftest.i conftest.$ac_ext
7938 # OK, works on sane cases. Now check whether nonexistent headers
7939 # can be detected and how.
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 #include <ac_nonexistent.h>
7944 if ac_fn_c_try_cpp "$LINENO"; then :
7945 # Broken: success on invalid input.
7948 # Passes both tests.
7952 rm -f conftest.err conftest.i conftest.$ac_ext
7955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7956 rm -f conftest.i conftest.err conftest.$ac_ext
7957 if $ac_preproc_ok; then :
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7970 $as_echo "$CPP" >&6; }
7972 for ac_c_preproc_warn_flag in '' yes
7974 # Use a header file that comes with gcc, so configuring glibc
7975 # with a fresh cross-compiler works.
7976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7977 # <limits.h> exists even on freestanding compilers.
7978 # On the NeXT, cc -E runs the code through the compiler's parser,
7979 # not just through cpp. "Syntax error" is here to catch this case.
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7983 # include <limits.h>
7985 # include <assert.h>
7989 if ac_fn_c_try_cpp "$LINENO"; then :
7992 # Broken: fails on valid input.
7995 rm -f conftest.err conftest.i conftest.$ac_ext
7997 # OK, works on sane cases. Now check whether nonexistent headers
7998 # can be detected and how.
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 #include <ac_nonexistent.h>
8003 if ac_fn_c_try_cpp "$LINENO"; then :
8004 # Broken: success on invalid input.
8007 # Passes both tests.
8011 rm -f conftest.err conftest.i conftest.$ac_ext
8014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8015 rm -f conftest.i conftest.err conftest.$ac_ext
8016 if $ac_preproc_ok; then :
8019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8021 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8022 See \`config.log' for more details" "$LINENO" 5; }
8026 ac_cpp='$CPP $CPPFLAGS'
8027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8033 $as_echo_n "checking for ANSI C header files... " >&6; }
8034 if ${ac_cv_header_stdc+:} false; then :
8035 $as_echo_n "(cached) " >&6
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8052 if ac_fn_c_try_compile "$LINENO"; then :
8053 ac_cv_header_stdc=yes
8055 ac_cv_header_stdc=no
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 if test $ac_cv_header_stdc = yes; then
8060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8067 $EGREP "memchr" >/dev/null 2>&1; then :
8070 ac_cv_header_stdc=no
8076 if test $ac_cv_header_stdc = yes; then
8077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8084 $EGREP "free" >/dev/null 2>&1; then :
8087 ac_cv_header_stdc=no
8093 if test $ac_cv_header_stdc = yes; then
8094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8095 if test "$cross_compiling" = yes; then :
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8102 #if ((' ' & 0x0FF) == 0x020)
8103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8106 # define ISLOWER(c) \
8107 (('a' <= (c) && (c) <= 'i') \
8108 || ('j' <= (c) && (c) <= 'r') \
8109 || ('s' <= (c) && (c) <= 'z'))
8110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8118 for (i = 0; i < 256; i++)
8119 if (XOR (islower (i), ISLOWER (i))
8120 || toupper (i) != TOUPPER (i))
8125 if ac_fn_c_try_run "$LINENO"; then :
8128 ac_cv_header_stdc=no
8130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8131 conftest.$ac_objext conftest.beam conftest.$ac_ext
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8137 $as_echo "$ac_cv_header_stdc" >&6; }
8138 if test $ac_cv_header_stdc = yes; then
8140 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8144 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8145 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8146 inttypes.h stdint.h unistd.h
8148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8149 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8151 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8152 cat >>confdefs.h <<_ACEOF
8153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8161 for ac_header in dlfcn.h
8163 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8165 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8166 cat >>confdefs.h <<_ACEOF
8167 #define HAVE_DLFCN_H 1
8186 # Check whether --enable-shared was given.
8187 if test "${enable_shared+set}" = set; then :
8188 enableval=$enable_shared; p=${PACKAGE-default}
8190 yes) enable_shared=yes ;;
8191 no) enable_shared=no ;;
8194 # Look at the argument we got. We use all the common list separators.
8195 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8196 for pkg in $enableval; do
8198 if test "X$pkg" = "X$p"; then
8217 # Check whether --enable-static was given.
8218 if test "${enable_static+set}" = set; then :
8219 enableval=$enable_static; p=${PACKAGE-default}
8221 yes) enable_static=yes ;;
8222 no) enable_static=no ;;
8225 # Look at the argument we got. We use all the common list separators.
8226 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8227 for pkg in $enableval; do
8229 if test "X$pkg" = "X$p"; then
8249 # Check whether --with-pic was given.
8250 if test "${with_pic+set}" = set; then :
8251 withval=$with_pic; lt_p=${PACKAGE-default}
8253 yes|no) pic_mode=$withval ;;
8256 # Look at the argument we got. We use all the common list separators.
8257 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8258 for lt_pkg in $withval; do
8260 if test "X$lt_pkg" = "X$lt_p"; then
8278 # Check whether --enable-fast-install was given.
8279 if test "${enable_fast_install+set}" = set; then :
8280 enableval=$enable_fast_install; p=${PACKAGE-default}
8282 yes) enable_fast_install=yes ;;
8283 no) enable_fast_install=no ;;
8285 enable_fast_install=no
8286 # Look at the argument we got. We use all the common list separators.
8287 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8288 for pkg in $enableval; do
8290 if test "X$pkg" = "X$p"; then
8291 enable_fast_install=yes
8298 enable_fast_install=yes
8308 shared_archive_member_spec=
8309 case $host,$enable_shared in
8310 power*-*-aix[5-9]*,yes)
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8312 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8314 # Check whether --with-aix-soname was given.
8315 if test "${with_aix_soname+set}" = set; then :
8316 withval=$with_aix_soname; case $withval in
8320 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8323 lt_cv_with_aix_soname=$with_aix_soname
8325 if ${lt_cv_with_aix_soname+:} false; then :
8326 $as_echo_n "(cached) " >&6
8328 lt_cv_with_aix_soname=aix
8331 with_aix_soname=$lt_cv_with_aix_soname
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8335 $as_echo "$with_aix_soname" >&6; }
8336 if test aix != "$with_aix_soname"; then
8337 # For the AIX way of multilib, we name the shared archive member
8338 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8339 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8340 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8341 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8342 if test 64 = "${OBJECT_MODE-32}"; then
8343 shared_archive_member_spec=shr_64
8345 shared_archive_member_spec=shr
8363 # This can be used to rebuild libtool when needed
8364 LIBTOOL_DEPS=$ltmain
8366 # Always use our own libtool.
8367 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8398 test -z "$LN_S" && LN_S="ln -s"
8413 if test -n "${ZSH_VERSION+set}"; then
8414 setopt NO_GLOB_SUBST
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8418 $as_echo_n "checking for objdir... " >&6; }
8419 if ${lt_cv_objdir+:} false; then :
8420 $as_echo_n "(cached) " >&6
8422 rm -f .libs 2>/dev/null
8423 mkdir .libs 2>/dev/null
8424 if test -d .libs; then
8427 # MS-DOS does not allow filenames that begin with a dot.
8430 rmdir .libs 2>/dev/null
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8433 $as_echo "$lt_cv_objdir" >&6; }
8434 objdir=$lt_cv_objdir
8440 cat >>confdefs.h <<_ACEOF
8441 #define LT_OBJDIR "$lt_cv_objdir/"
8449 # AIX sometimes has problems with the GCC collect2 program. For some
8450 # reason, if we set the COLLECT_NAMES environment variable, the problems
8451 # vanish in a puff of smoke.
8452 if test set != "${COLLECT_NAMES+set}"; then
8454 export COLLECT_NAMES
8461 can_build_shared=yes
8463 # All known linkers require a '.a' archive for static linking (except MSVC,
8464 # which needs '.lib').
8467 with_gnu_ld=$lt_cv_prog_gnu_ld
8472 # Set sane defaults for various variables
8473 test -z "$CC" && CC=cc
8474 test -z "$LTCC" && LTCC=$CC
8475 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8476 test -z "$LD" && LD=ld
8477 test -z "$ac_objext" && ac_objext=o
8479 func_cc_basename $compiler
8480 cc_basename=$func_cc_basename_result
8483 # Only perform the check for file, if the check method requires it
8484 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8485 case $deplibs_check_method in
8487 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8489 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8490 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8491 $as_echo_n "(cached) " >&6
8495 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8498 lt_save_MAGIC_CMD=$MAGIC_CMD
8499 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8501 for ac_dir in $ac_dummy; do
8503 test -z "$ac_dir" && ac_dir=.
8504 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8505 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8506 if test -n "$file_magic_test_file"; then
8507 case $deplibs_check_method in
8509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8510 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8512 $EGREP "$file_magic_regex" > /dev/null; then
8517 *** Warning: the command libtool uses to detect shared libraries,
8518 *** $file_magic_cmd, produces output that libtool cannot recognize.
8519 *** The result is that libtool may fail to recognize shared libraries
8520 *** as such. This will affect the creation of libtool libraries that
8521 *** depend on shared libraries, but programs linked with such libtool
8522 *** libraries will work regardless of this problem. Nevertheless, you
8523 *** may want to report the problem to your system manager and/or to
8524 *** bug-libtool@gnu.org
8534 MAGIC_CMD=$lt_save_MAGIC_CMD
8539 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8540 if test -n "$MAGIC_CMD"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8542 $as_echo "$MAGIC_CMD" >&6; }
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8552 if test -z "$lt_cv_path_MAGIC_CMD"; then
8553 if test -n "$ac_tool_prefix"; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8555 $as_echo_n "checking for file... " >&6; }
8556 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8557 $as_echo_n "(cached) " >&6
8561 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8564 lt_save_MAGIC_CMD=$MAGIC_CMD
8565 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8567 for ac_dir in $ac_dummy; do
8569 test -z "$ac_dir" && ac_dir=.
8570 if test -f "$ac_dir/file"; then
8571 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8572 if test -n "$file_magic_test_file"; then
8573 case $deplibs_check_method in
8575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8576 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8578 $EGREP "$file_magic_regex" > /dev/null; then
8583 *** Warning: the command libtool uses to detect shared libraries,
8584 *** $file_magic_cmd, produces output that libtool cannot recognize.
8585 *** The result is that libtool may fail to recognize shared libraries
8586 *** as such. This will affect the creation of libtool libraries that
8587 *** depend on shared libraries, but programs linked with such libtool
8588 *** libraries will work regardless of this problem. Nevertheless, you
8589 *** may want to report the problem to your system manager and/or to
8590 *** bug-libtool@gnu.org
8600 MAGIC_CMD=$lt_save_MAGIC_CMD
8605 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8606 if test -n "$MAGIC_CMD"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8608 $as_echo "$MAGIC_CMD" >&6; }
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8624 # Use C for the default configuration in the libtool script
8628 ac_cpp='$CPP $CPPFLAGS'
8629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8634 # Source file extension for C test sources.
8637 # Object file extension for compiled C test sources.
8641 # Code to be used in simple compile tests
8642 lt_simple_compile_test_code="int some_variable = 0;"
8644 # Code to be used in simple link tests
8645 lt_simple_link_test_code='int main(){return(0);}'
8653 # If no C compiler was specified, use CC.
8656 # If no C compiler flags were specified, use CFLAGS.
8657 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8659 # Allow CC to be a program name with arguments.
8662 # Save the default compiler, since it gets overwritten when the other
8663 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8664 compiler_DEFAULT=$CC
8666 # save warnings/boilerplate of simple test code
8667 ac_outfile=conftest.$ac_objext
8668 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8669 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8670 _lt_compiler_boilerplate=`cat conftest.err`
8673 ac_outfile=conftest.$ac_objext
8674 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8675 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8676 _lt_linker_boilerplate=`cat conftest.err`
8681 ## There is no encapsulation within the following macros, do not change
8682 ## the running order or otherwise move them around unless you know exactly
8683 ## what you are doing...
8684 if test -n "$compiler"; then
8686 lt_prog_compiler_no_builtin_flag=
8688 if test yes = "$GCC"; then
8689 case $cc_basename in
8691 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8693 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8697 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8698 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8699 $as_echo_n "(cached) " >&6
8701 lt_cv_prog_compiler_rtti_exceptions=no
8702 ac_outfile=conftest.$ac_objext
8703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8704 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8705 # Insert the option either (1) after the last *FLAGS variable, or
8706 # (2) before a word containing "conftest.", or (3) at the end.
8707 # Note that $ac_compile itself does not contain backslashes and begins
8708 # with a dollar sign (not a hyphen), so the echo should work correctly.
8709 # The option is referenced via a variable to avoid confusing sed.
8710 lt_compile=`echo "$ac_compile" | $SED \
8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8713 -e 's:$: $lt_compiler_flag:'`
8714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8715 (eval "$lt_compile" 2>conftest.err)
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 if (exit $ac_status) && test -s "$ac_outfile"; then
8720 # The compiler can only warn and ignore the option if not recognized
8721 # So say no if there are warnings other than the usual output.
8722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8725 lt_cv_prog_compiler_rtti_exceptions=yes
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8732 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8734 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8735 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8747 lt_prog_compiler_wl=
8748 lt_prog_compiler_pic=
8749 lt_prog_compiler_static=
8752 if test yes = "$GCC"; then
8753 lt_prog_compiler_wl='-Wl,'
8754 lt_prog_compiler_static='-static'
8758 # All AIX code is PIC.
8759 if test ia64 = "$host_cpu"; then
8760 # AIX 5 now supports IA64 processor
8761 lt_prog_compiler_static='-Bstatic'
8763 lt_prog_compiler_pic='-fPIC'
8769 # see comment about AmigaOS4 .so support
8770 lt_prog_compiler_pic='-fPIC'
8773 # FIXME: we need at least 68020 code to build shared libraries, but
8774 # adding the '-m68020' flag to GCC prevents building anything better,
8776 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8781 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8782 # PIC is the default for these OSes.
8785 mingw* | cygwin* | pw32* | os2* | cegcc*)
8786 # This hack is so that the source file can tell whether it is being
8787 # built for inclusion in a dll (and should export symbols for example).
8788 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8789 # (--disable-auto-import) libraries
8790 lt_prog_compiler_pic='-DDLL_EXPORT'
8793 lt_prog_compiler_static='$wl-static'
8798 darwin* | rhapsody*)
8799 # PIC is the default on this platform
8800 # Common symbols not allowed in MH_DYLIB files
8801 lt_prog_compiler_pic='-fno-common'
8805 # PIC is the default for Haiku.
8806 # The "-static" flag exists, but is broken.
8807 lt_prog_compiler_static=
8811 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8812 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8813 # sets the default TLS model and affects inlining.
8819 lt_prog_compiler_pic='-fPIC'
8825 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8826 # Instead, we relocate shared libraries at runtime.
8830 # Just because we use GCC doesn't mean we suddenly get shared libraries
8831 # on systems that don't support them.
8832 lt_prog_compiler_can_build_shared=no
8837 # QNX uses GNU C++, but need to define -shared option too, otherwise
8839 lt_prog_compiler_pic='-fPIC -shared'
8843 if test -d /usr/nec; then
8844 lt_prog_compiler_pic=-Kconform_pic
8849 lt_prog_compiler_pic='-fPIC'
8853 case $cc_basename in
8854 nvcc*) # Cuda Compiler Driver 2.2
8855 lt_prog_compiler_wl='-Xlinker '
8856 if test -n "$lt_prog_compiler_pic"; then
8857 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8862 # PORTME Check for flag to pass linker flags through the system compiler.
8865 lt_prog_compiler_wl='-Wl,'
8866 if test ia64 = "$host_cpu"; then
8867 # AIX 5 now supports IA64 processor
8868 lt_prog_compiler_static='-Bstatic'
8870 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8874 darwin* | rhapsody*)
8875 # PIC is the default on this platform
8876 # Common symbols not allowed in MH_DYLIB files
8877 lt_prog_compiler_pic='-fno-common'
8878 case $cc_basename in
8880 # NAG Fortran compiler
8881 lt_prog_compiler_wl='-Wl,-Wl,,'
8882 lt_prog_compiler_pic='-PIC'
8883 lt_prog_compiler_static='-Bstatic'
8888 mingw* | cygwin* | pw32* | os2* | cegcc*)
8889 # This hack is so that the source file can tell whether it is being
8890 # built for inclusion in a dll (and should export symbols for example).
8891 lt_prog_compiler_pic='-DDLL_EXPORT'
8894 lt_prog_compiler_static='$wl-static'
8899 hpux9* | hpux10* | hpux11*)
8900 lt_prog_compiler_wl='-Wl,'
8901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8908 lt_prog_compiler_pic='+Z'
8911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8912 lt_prog_compiler_static='$wl-a ${wl}archive'
8915 irix5* | irix6* | nonstopux*)
8916 lt_prog_compiler_wl='-Wl,'
8917 # PIC (with -KPIC) is the default.
8918 lt_prog_compiler_static='-non_shared'
8921 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8922 case $cc_basename in
8923 # old Intel for x86_64, which still supported -KPIC.
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-static'
8929 # icc used to be incompatible with GCC.
8930 # ICC 10 doesn't accept -KPIC any more.
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-fPIC'
8934 lt_prog_compiler_static='-static'
8936 # Lahey Fortran 8.1.
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='--shared'
8940 lt_prog_compiler_static='--static'
8943 # NAG Fortran compiler
8944 lt_prog_compiler_wl='-Wl,-Wl,,'
8945 lt_prog_compiler_pic='-PIC'
8946 lt_prog_compiler_static='-Bstatic'
8949 # Fabrice Bellard et al's Tiny C Compiler
8950 lt_prog_compiler_wl='-Wl,'
8951 lt_prog_compiler_pic='-fPIC'
8952 lt_prog_compiler_static='-static'
8954 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8955 # Portland Group compilers (*not* the Pentium gcc compiler,
8956 # which looks to be a dead project)
8957 lt_prog_compiler_wl='-Wl,'
8958 lt_prog_compiler_pic='-fpic'
8959 lt_prog_compiler_static='-Bstatic'
8962 lt_prog_compiler_wl='-Wl,'
8963 # All Alpha code is PIC.
8964 lt_prog_compiler_static='-non_shared'
8966 xl* | bgxl* | bgf* | mpixl*)
8967 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8968 lt_prog_compiler_wl='-Wl,'
8969 lt_prog_compiler_pic='-qpic'
8970 lt_prog_compiler_static='-qstaticlink'
8973 case `$CC -V 2>&1 | sed 5q` in
8974 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8975 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8976 lt_prog_compiler_pic='-KPIC'
8977 lt_prog_compiler_static='-Bstatic'
8978 lt_prog_compiler_wl=''
8980 *Sun\ F* | *Sun*Fortran*)
8981 lt_prog_compiler_pic='-KPIC'
8982 lt_prog_compiler_static='-Bstatic'
8983 lt_prog_compiler_wl='-Qoption ld '
8987 lt_prog_compiler_pic='-KPIC'
8988 lt_prog_compiler_static='-Bstatic'
8989 lt_prog_compiler_wl='-Wl,'
8991 *Intel*\ [CF]*Compiler*)
8992 lt_prog_compiler_wl='-Wl,'
8993 lt_prog_compiler_pic='-fPIC'
8994 lt_prog_compiler_static='-static'
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='-fpic'
8999 lt_prog_compiler_static='-Bstatic'
9007 lt_prog_compiler_pic='-KPIC'
9008 lt_prog_compiler_static='-Bstatic'
9012 # QNX uses GNU C++, but need to define -shared option too, otherwise
9014 lt_prog_compiler_pic='-fPIC -shared'
9017 osf3* | osf4* | osf5*)
9018 lt_prog_compiler_wl='-Wl,'
9019 # All OSF/1 code is PIC.
9020 lt_prog_compiler_static='-non_shared'
9024 lt_prog_compiler_static='-non_shared'
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-Bstatic'
9030 case $cc_basename in
9031 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9032 lt_prog_compiler_wl='-Qoption ld ';;
9034 lt_prog_compiler_wl='-Wl,';;
9039 lt_prog_compiler_wl='-Qoption ld '
9040 lt_prog_compiler_pic='-PIC'
9041 lt_prog_compiler_static='-Bstatic'
9044 sysv4 | sysv4.2uw2* | sysv4.3*)
9045 lt_prog_compiler_wl='-Wl,'
9046 lt_prog_compiler_pic='-KPIC'
9047 lt_prog_compiler_static='-Bstatic'
9051 if test -d /usr/nec; then
9052 lt_prog_compiler_pic='-Kconform_pic'
9053 lt_prog_compiler_static='-Bstatic'
9057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9058 lt_prog_compiler_wl='-Wl,'
9059 lt_prog_compiler_pic='-KPIC'
9060 lt_prog_compiler_static='-Bstatic'
9064 lt_prog_compiler_wl='-Wl,'
9065 lt_prog_compiler_can_build_shared=no
9069 lt_prog_compiler_pic='-pic'
9070 lt_prog_compiler_static='-Bstatic'
9074 lt_prog_compiler_can_build_shared=no
9080 # For platforms that do not support PIC, -DPIC is meaningless:
9082 lt_prog_compiler_pic=
9085 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9090 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9091 if ${lt_cv_prog_compiler_pic+:} false; then :
9092 $as_echo_n "(cached) " >&6
9094 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9097 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9098 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9101 # Check to make sure the PIC flag actually works.
9103 if test -n "$lt_prog_compiler_pic"; then
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9105 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9106 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9107 $as_echo_n "(cached) " >&6
9109 lt_cv_prog_compiler_pic_works=no
9110 ac_outfile=conftest.$ac_objext
9111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9112 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9113 # Insert the option either (1) after the last *FLAGS variable, or
9114 # (2) before a word containing "conftest.", or (3) at the end.
9115 # Note that $ac_compile itself does not contain backslashes and begins
9116 # with a dollar sign (not a hyphen), so the echo should work correctly.
9117 # The option is referenced via a variable to avoid confusing sed.
9118 lt_compile=`echo "$ac_compile" | $SED \
9119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9121 -e 's:$: $lt_compiler_flag:'`
9122 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9123 (eval "$lt_compile" 2>conftest.err)
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 if (exit $ac_status) && test -s "$ac_outfile"; then
9128 # The compiler can only warn and ignore the option if not recognized
9129 # So say no if there are warnings other than the usual output.
9130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9133 lt_cv_prog_compiler_pic_works=yes
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9140 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9142 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9143 case $lt_prog_compiler_pic in
9145 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9148 lt_prog_compiler_pic=
9149 lt_prog_compiler_can_build_shared=no
9165 # Check to make sure the static flag actually works.
9167 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9169 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9170 if ${lt_cv_prog_compiler_static_works+:} false; then :
9171 $as_echo_n "(cached) " >&6
9173 lt_cv_prog_compiler_static_works=no
9174 save_LDFLAGS=$LDFLAGS
9175 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9176 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9178 # The linker can only warn and ignore the option if not recognized
9179 # So say no if there are warnings
9180 if test -s conftest.err; then
9181 # Append any errors to the config.log.
9182 cat conftest.err 1>&5
9183 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9185 if diff conftest.exp conftest.er2 >/dev/null; then
9186 lt_cv_prog_compiler_static_works=yes
9189 lt_cv_prog_compiler_static_works=yes
9193 LDFLAGS=$save_LDFLAGS
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9197 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9199 if test yes = "$lt_cv_prog_compiler_static_works"; then
9202 lt_prog_compiler_static=
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9212 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9213 if ${lt_cv_prog_compiler_c_o+:} false; then :
9214 $as_echo_n "(cached) " >&6
9216 lt_cv_prog_compiler_c_o=no
9217 $RM -r conftest 2>/dev/null
9221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9223 lt_compiler_flag="-o out/conftest2.$ac_objext"
9224 # Insert the option either (1) after the last *FLAGS variable, or
9225 # (2) before a word containing "conftest.", or (3) at the end.
9226 # Note that $ac_compile itself does not contain backslashes and begins
9227 # with a dollar sign (not a hyphen), so the echo should work correctly.
9228 lt_compile=`echo "$ac_compile" | $SED \
9229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9231 -e 's:$: $lt_compiler_flag:'`
9232 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9233 (eval "$lt_compile" 2>out/conftest.err)
9235 cat out/conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9239 # The compiler can only warn and ignore the option if not recognized
9240 # So say no if there are warnings
9241 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9244 lt_cv_prog_compiler_c_o=yes
9249 # SGI C++ compiler will create directory out/ii_files/ for
9250 # template instantiation
9251 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9252 $RM out/* && rmdir out
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9259 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9268 if ${lt_cv_prog_compiler_c_o+:} false; then :
9269 $as_echo_n "(cached) " >&6
9271 lt_cv_prog_compiler_c_o=no
9272 $RM -r conftest 2>/dev/null
9276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9278 lt_compiler_flag="-o out/conftest2.$ac_objext"
9279 # Insert the option either (1) after the last *FLAGS variable, or
9280 # (2) before a word containing "conftest.", or (3) at the end.
9281 # Note that $ac_compile itself does not contain backslashes and begins
9282 # with a dollar sign (not a hyphen), so the echo should work correctly.
9283 lt_compile=`echo "$ac_compile" | $SED \
9284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9286 -e 's:$: $lt_compiler_flag:'`
9287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9288 (eval "$lt_compile" 2>out/conftest.err)
9290 cat out/conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9294 # The compiler can only warn and ignore the option if not recognized
9295 # So say no if there are warnings
9296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9299 lt_cv_prog_compiler_c_o=yes
9304 # SGI C++ compiler will create directory out/ii_files/ for
9305 # template instantiation
9306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9307 $RM out/* && rmdir out
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9314 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9319 hard_links=nottested
9320 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9321 # do not overwrite the value of need_locks provided by the user
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9323 $as_echo_n "checking if we can lock with hard links... " >&6; }
9326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9328 ln conftest.a conftest.b 2>&5 || hard_links=no
9329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9331 $as_echo "$hard_links" >&6; }
9332 if test no = "$hard_links"; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9334 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9347 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9350 allow_undefined_flag=
9351 always_export_symbols=no
9353 archive_expsym_cmds=
9354 compiler_needs_object=no
9355 enable_shared_with_static_runtimes=no
9356 export_dynamic_flag_spec=
9357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9358 hardcode_automatic=no
9360 hardcode_direct_absolute=no
9361 hardcode_libdir_flag_spec=
9362 hardcode_libdir_separator=
9364 hardcode_shlibpath_var=unsupported
9366 link_all_deplibs=unknown
9369 old_archive_from_new_cmds=
9370 old_archive_from_expsyms_cmds=
9371 thread_safe_flag_spec=
9372 whole_archive_flag_spec=
9373 # include_expsyms should be a list of space-separated symbols to be *always*
9374 # included in the symbol list
9376 # exclude_expsyms can be an extended regexp of symbols to exclude
9377 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9378 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9379 # as well as any symbol that contains 'd'.
9380 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9382 # platforms (ab)use it in PIC code, but their linkers get confused if
9383 # the symbol is explicitly referenced. Since portable code cannot
9384 # rely on this symbol name, it's probably fine to never include it in
9385 # preloaded symbol tables.
9386 # Exclude shared library initialization/finalization symbols.
9387 extract_expsyms_cmds=
9390 cygwin* | mingw* | pw32* | cegcc*)
9391 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9392 # When not using gcc, we currently assume that we are using
9393 # Microsoft Visual C++.
9394 if test yes != "$GCC"; then
9399 # we just hope/assume this is gcc and not c89 (= MSVC++)
9409 # On some targets, GNU ld is compatible enough with the native linker
9410 # that we're better off using the native interface for both.
9411 lt_use_gnu_ld_interface=no
9412 if test yes = "$with_gnu_ld"; then
9415 # The AIX port of GNU ld has always aspired to compatibility
9416 # with the native linker. However, as the warning in the GNU ld
9417 # block says, versions before 2.19.5* couldn't really create working
9418 # shared libraries, regardless of the interface used.
9419 case `$LD -v 2>&1` in
9420 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9421 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9422 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9424 lt_use_gnu_ld_interface=yes
9429 lt_use_gnu_ld_interface=yes
9434 if test yes = "$lt_use_gnu_ld_interface"; then
9435 # If archive_cmds runs LD, not CC, wlarc should be empty
9438 # Set some defaults for GNU ld with shared library support. These
9439 # are reset later if shared libraries are not supported. Putting them
9440 # here allows them to be overridden if necessary.
9441 runpath_var=LD_RUN_PATH
9442 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9443 export_dynamic_flag_spec='$wl--export-dynamic'
9444 # ancient GNU ld didn't support --whole-archive et. al.
9445 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9446 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9448 whole_archive_flag_spec=
9450 supports_anon_versioning=no
9451 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9452 *GNU\ gold*) supports_anon_versioning=yes ;;
9453 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9454 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9455 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9456 *\ 2.11.*) ;; # other 2.11 versions
9457 *) supports_anon_versioning=yes ;;
9460 # See if GNU ld supports shared libraries.
9463 # On AIX/PPC, the GNU linker is very broken
9464 if test ia64 != "$host_cpu"; then
9468 *** Warning: the GNU linker, at least up to release 2.19, is reported
9469 *** to be unable to reliably create shared libraries on AIX.
9470 *** Therefore, libtool is disabling shared libraries support. If you
9471 *** really care for shared libraries, you may want to install binutils
9472 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9473 *** You will then need to restart the configuration process.
9482 # see comment about AmigaOS4 .so support
9483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9484 archive_expsym_cmds=''
9487 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)'
9488 hardcode_libdir_flag_spec='-L$libdir'
9489 hardcode_minus_L=yes
9495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496 allow_undefined_flag=unsupported
9497 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9498 # support --undefined. This deserves some investigation. FIXME
9499 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9505 cygwin* | mingw* | pw32* | cegcc*)
9506 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9507 # as there is no search path for DLLs.
9508 hardcode_libdir_flag_spec='-L$libdir'
9509 export_dynamic_flag_spec='$wl--export-all-symbols'
9510 allow_undefined_flag=unsupported
9511 always_export_symbols=no
9512 enable_shared_with_static_runtimes=yes
9513 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'
9514 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9516 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9518 # If the export-symbols file already is a .def file, use it as
9519 # is; otherwise, prepend EXPORTS...
9520 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9521 cp $export_symbols $output_objdir/$soname.def;
9523 echo EXPORTS > $output_objdir/$soname.def;
9524 cat $export_symbols >> $output_objdir/$soname.def;
9526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9534 link_all_deplibs=yes
9538 hardcode_libdir_flag_spec='-L$libdir'
9539 hardcode_minus_L=yes
9540 allow_undefined_flag=unsupported
9542 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9545 $ECHO EXPORTS >> $output_objdir/$libname.def~
9546 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9547 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9548 emximp -o $lib $output_objdir/$libname.def'
9549 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9550 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9551 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9552 $ECHO EXPORTS >> $output_objdir/$libname.def~
9554 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9555 prefix_cmds="$prefix_cmds -e 1d";
9557 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9558 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9559 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9560 emximp -o $lib $output_objdir/$libname.def'
9561 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9562 enable_shared_with_static_runtimes=yes
9567 hardcode_shlibpath_var=no
9568 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9569 export_dynamic_flag_spec='$wl-E'
9570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9571 # Instead, shared libraries are loaded at an image base (0x10000000 by
9572 # default) and relocated if they conflict, which is a slow very memory
9573 # consuming and fragmenting process. To avoid this, we pick a random,
9574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9577 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'
9580 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9582 if test linux-dietlibc = "$host_os"; then
9583 case $cc_basename in
9584 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9587 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9588 && test no = "$tmp_diet"
9590 tmp_addflag=' $pic_flag'
9591 tmp_sharedflag='-shared'
9592 case $cc_basename,$host_cpu in
9593 pgcc*) # Portland Group C compiler
9594 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'
9595 tmp_addflag=' $pic_flag'
9597 pgf77* | pgf90* | pgf95* | pgfortran*)
9598 # Portland Group f77 and f90 compilers
9599 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'
9600 tmp_addflag=' $pic_flag -Mnomain' ;;
9601 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9602 tmp_addflag=' -i_dynamic' ;;
9603 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9604 tmp_addflag=' -i_dynamic -nofor_main' ;;
9605 ifc* | ifort*) # Intel Fortran compiler
9606 tmp_addflag=' -nofor_main' ;;
9607 lf95*) # Lahey Fortran 8.1
9608 whole_archive_flag_spec=
9609 tmp_sharedflag='--shared' ;;
9610 nagfor*) # NAGFOR 5.3
9611 tmp_sharedflag='-Wl,-shared' ;;
9612 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9613 tmp_sharedflag='-qmkshrobj'
9615 nvcc*) # Cuda Compiler Driver 2.2
9616 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'
9617 compiler_needs_object=yes
9620 case `$CC -V 2>&1 | sed 5q` in
9621 *Sun\ C*) # Sun C 5.9
9622 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'
9623 compiler_needs_object=yes
9624 tmp_sharedflag='-G' ;;
9625 *Sun\ F*) # Sun Fortran 8.3
9626 tmp_sharedflag='-G' ;;
9628 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9630 if test yes = "$supports_anon_versioning"; then
9631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9633 echo "local: *; };" >> $output_objdir/$libname.ver~
9634 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9637 case $cc_basename in
9639 export_dynamic_flag_spec='-rdynamic'
9641 xlf* | bgf* | bgxlf* | mpixlf*)
9642 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9643 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9644 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9645 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9646 if test yes = "$supports_anon_versioning"; then
9647 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9649 echo "local: *; };" >> $output_objdir/$libname.ver~
9650 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9661 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9665 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9670 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9675 *** create shared libraries on Solaris systems. Therefore, libtool
9676 *** is disabling shared libraries support. We urge you to upgrade GNU
9677 *** binutils to release 2.9.1 or newer. Another option is to modify
9678 *** your PATH or compiler configuration so that the native linker is
9679 *** used, and then restart.
9682 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9684 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9691 case `$LD -v 2>&1` in
9692 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9697 *** reliably create shared libraries on SCO systems. Therefore, libtool
9698 *** is disabling shared libraries support. We urge you to upgrade GNU
9699 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9700 *** your PATH or compiler configuration so that the native linker is
9701 *** used, and then restart.
9706 # For security reasons, it is highly recommended that you always
9707 # use absolute paths for naming shared libraries, and exclude the
9708 # DT_RUNPATH tag from executables and libraries. But doing so
9709 # requires that you compile everything twice, which is a pain.
9710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9711 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9722 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_shlibpath_var=no
9729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9731 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9738 if test no = "$ld_shlibs"; then
9740 hardcode_libdir_flag_spec=
9741 export_dynamic_flag_spec=
9742 whole_archive_flag_spec=
9745 # PORTME fill in a description of your system's linker (not GNU ld)
9748 allow_undefined_flag=unsupported
9749 always_export_symbols=yes
9750 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'
9751 # Note: this linker hardcodes the directories in LIBPATH if there
9752 # are no directories specified by -L.
9753 hardcode_minus_L=yes
9754 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9755 # Neither direct hardcoding nor static linking is supported with a
9757 hardcode_direct=unsupported
9762 if test ia64 = "$host_cpu"; then
9763 # On IA64, the linker does run time linking by default, so we don't
9764 # have to do anything special.
9765 aix_use_runtimelinking=no
9766 exp_sym_flag='-Bexport'
9769 # If we're using GNU nm, then we don't want the "-C" option.
9770 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9771 # Without the "-l" option, or with the "-B" option, AIX nm treats
9772 # weak defined symbols like other global defined symbols, whereas
9773 # GNU nm marks them as "W".
9774 # While the 'weak' keyword is ignored in the Export File, we need
9775 # it in the Import File for the 'aix-soname' feature, so we have
9776 # to replace the "-B" option with "-P" for AIX nm.
9777 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9778 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9780 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9782 aix_use_runtimelinking=no
9784 # Test if we are trying to use run time linking or normal
9785 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9786 # have runtime linking enabled, and use it for executables.
9787 # For shared libraries, we enable/disable runtime linking
9788 # depending on the kind of the shared library created -
9789 # when "with_aix_soname,aix_use_runtimelinking" is:
9790 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9791 # "aix,yes" lib.so shared, rtl:yes, for executables
9792 # lib.a static archive
9793 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9794 # lib.a(lib.so.V) shared, rtl:no, for executables
9795 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9796 # lib.a(lib.so.V) shared, rtl:no
9797 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9798 # lib.a static archive
9799 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9800 for ld_flag in $LDFLAGS; do
9801 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9802 aix_use_runtimelinking=yes
9806 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9807 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9808 # so we don't have lib.a shared libs to link our executables.
9809 # We have to force runtime linking in this case.
9810 aix_use_runtimelinking=yes
9811 LDFLAGS="$LDFLAGS -Wl,-brtl"
9816 exp_sym_flag='-bexport'
9817 no_entry_flag='-bnoentry'
9820 # When large executables or shared objects are built, AIX ld can
9821 # have problems creating the table of contents. If linking a library
9822 # or program results in "error TOC overflow" add -mminimal-toc to
9823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9828 hardcode_direct_absolute=yes
9829 hardcode_libdir_separator=':'
9830 link_all_deplibs=yes
9831 file_list_spec='$wl-f,'
9832 case $with_aix_soname,$aix_use_runtimelinking in
9833 aix,*) ;; # traditional, no import file
9834 svr4,* | *,yes) # use import file
9835 # The Import File defines what to hardcode.
9837 hardcode_direct_absolute=no
9841 if test yes = "$GCC"; then
9842 case $host_os in aix4.[012]|aix4.[012].*)
9843 # We only want to do this on AIX 4.2 and lower, the check
9844 # below for broken collect2 doesn't work under 4.3+
9845 collect2name=`$CC -print-prog-name=collect2`
9846 if test -f "$collect2name" &&
9847 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9849 # We have reworked collect2
9852 # We have old collect2
9853 hardcode_direct=unsupported
9854 # It fails to find uninstalled libraries when the uninstalled
9855 # path is not listed in the libpath. Setting hardcode_minus_L
9856 # to unsupported forces relinking
9857 hardcode_minus_L=yes
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 hardcode_libdir_separator=
9863 shared_flag='-shared'
9864 if test yes = "$aix_use_runtimelinking"; then
9865 shared_flag="$shared_flag "'$wl-G'
9867 # Need to ensure runtime linking is disabled for the traditional
9868 # shared library, or the linker may eventually find shared libraries
9869 # /with/ Import File - we do not want to mix them.
9870 shared_flag_aix='-shared'
9871 shared_flag_svr4='-shared $wl-G'
9874 if test ia64 = "$host_cpu"; then
9875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9876 # chokes on -Wl,-G. The following line is correct:
9879 if test yes = "$aix_use_runtimelinking"; then
9882 shared_flag='$wl-bM:SRE'
9884 shared_flag_aix='$wl-bM:SRE'
9885 shared_flag_svr4='$wl-G'
9889 export_dynamic_flag_spec='$wl-bexpall'
9890 # It seems that -bexpall does not export symbols beginning with
9891 # underscore (_), so it is better to generate a list of symbols to export.
9892 always_export_symbols=yes
9893 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9894 # Warning - without using the other runtime loading flags (-brtl),
9895 # -berok will link without error, but may produce a broken library.
9896 allow_undefined_flag='-berok'
9897 # Determine the default libpath from the value encoded in an
9899 if test set = "${lt_cv_aix_libpath+set}"; then
9900 aix_libpath=$lt_cv_aix_libpath
9902 if ${lt_cv_aix_libpath_+:} false; then :
9903 $as_echo_n "(cached) " >&6
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9916 if ac_fn_c_try_link "$LINENO"; then :
9918 lt_aix_libpath_sed='
9919 /Import File Strings/,/^$/ {
9921 s/^0 *\([^ ]*\) *$/\1/
9925 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9926 # Check for a 64-bit object if we didn't find anything.
9927 if test -z "$lt_cv_aix_libpath_"; then
9928 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9931 rm -f core conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9933 if test -z "$lt_cv_aix_libpath_"; then
9934 lt_cv_aix_libpath_=/usr/lib:/lib
9939 aix_libpath=$lt_cv_aix_libpath_
9942 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9943 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9945 if test ia64 = "$host_cpu"; then
9946 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9947 allow_undefined_flag="-z nodefs"
9948 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"
9950 # Determine the default libpath from the value encoded in an
9952 if test set = "${lt_cv_aix_libpath+set}"; then
9953 aix_libpath=$lt_cv_aix_libpath
9955 if ${lt_cv_aix_libpath_+:} false; then :
9956 $as_echo_n "(cached) " >&6
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9969 if ac_fn_c_try_link "$LINENO"; then :
9971 lt_aix_libpath_sed='
9972 /Import File Strings/,/^$/ {
9974 s/^0 *\([^ ]*\) *$/\1/
9978 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9979 # Check for a 64-bit object if we didn't find anything.
9980 if test -z "$lt_cv_aix_libpath_"; then
9981 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 if test -z "$lt_cv_aix_libpath_"; then
9987 lt_cv_aix_libpath_=/usr/lib:/lib
9992 aix_libpath=$lt_cv_aix_libpath_
9995 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9996 # Warning - without using the other run time loading flags,
9997 # -berok will link without error, but may produce a broken library.
9998 no_undefined_flag=' $wl-bernotok'
9999 allow_undefined_flag=' $wl-berok'
10000 if test yes = "$with_gnu_ld"; then
10001 # We only use this code for GNU lds that support --whole-archive.
10002 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10004 # Exported symbols can be pulled into shared objects from archives
10005 whole_archive_flag_spec='$convenience'
10007 archive_cmds_need_lc=yes
10008 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10009 # -brtl affects multiple linker settings, -berok does not and is overridden later
10010 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10011 if test svr4 != "$with_aix_soname"; then
10012 # This is similar to how AIX traditionally builds its shared libraries.
10013 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10015 if test aix != "$with_aix_soname"; then
10016 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10018 # used by -dlpreopen to get the symbols
10019 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10021 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10029 # see comment about AmigaOS4 .so support
10030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10031 archive_expsym_cmds=''
10034 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)'
10035 hardcode_libdir_flag_spec='-L$libdir'
10036 hardcode_minus_L=yes
10042 export_dynamic_flag_spec=-rdynamic
10045 cygwin* | mingw* | pw32* | cegcc*)
10046 # When not using gcc, we currently assume that we are using
10047 # Microsoft Visual C++.
10048 # hardcode_libdir_flag_spec is actually meaningless, as there is
10049 # no search path for DLLs.
10050 case $cc_basename in
10053 hardcode_libdir_flag_spec=' '
10054 allow_undefined_flag=unsupported
10055 always_export_symbols=yes
10057 # Tell ltmain to make .lib files, not .a files.
10059 # Tell ltmain to make .dll files, not .so files.
10061 # FIXME: Setting linknames here is a bad hack.
10062 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10063 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10064 cp "$export_symbols" "$output_objdir/$soname.def";
10065 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10067 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10069 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10071 # The linker will not automatically build a static lib if we build a DLL.
10072 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10073 enable_shared_with_static_runtimes=yes
10074 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10077 old_postinstall_cmds='chmod 644 $oldlib'
10078 postlink_cmds='lt_outputfile="@OUTPUT@"~
10079 lt_tool_outputfile="@TOOL_OUTPUT@"~
10080 case $lt_outputfile in
10083 lt_outputfile=$lt_outputfile.exe
10084 lt_tool_outputfile=$lt_tool_outputfile.exe
10087 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10088 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10089 $RM "$lt_outputfile.manifest";
10093 # Assume MSVC wrapper
10094 hardcode_libdir_flag_spec=' '
10095 allow_undefined_flag=unsupported
10096 # Tell ltmain to make .lib files, not .a files.
10098 # Tell ltmain to make .dll files, not .so files.
10100 # FIXME: Setting linknames here is a bad hack.
10101 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10102 # The linker will automatically build a .lib file if we build a DLL.
10103 old_archive_from_new_cmds='true'
10104 # FIXME: Should let the user specify the lib program.
10105 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10106 enable_shared_with_static_runtimes=yes
10111 darwin* | rhapsody*)
10114 archive_cmds_need_lc=no
10116 hardcode_automatic=yes
10117 hardcode_shlibpath_var=unsupported
10118 if test yes = "$lt_cv_ld_force_load"; then
10119 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\"`'
10122 whole_archive_flag_spec=''
10124 link_all_deplibs=yes
10125 allow_undefined_flag=$_lt_dar_allow_undefined
10126 case $cc_basename in
10127 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10128 *) _lt_dar_can_shared=$GCC ;;
10130 if test yes = "$_lt_dar_can_shared"; then
10131 output_verbose_link_cmd=func_echo_all
10132 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10133 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10134 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"
10135 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"
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_libdir_flag_spec='-L$libdir'
10146 hardcode_shlibpath_var=no
10149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10150 # support. Future versions do this automatically, but an explicit c++rt0.o
10151 # does not break anything, and helps significantly (at the cost of a little
10154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10155 hardcode_libdir_flag_spec='-R$libdir'
10156 hardcode_direct=yes
10157 hardcode_shlibpath_var=no
10160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10163 hardcode_direct=yes
10164 hardcode_minus_L=yes
10165 hardcode_shlibpath_var=no
10168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10169 freebsd* | dragonfly*)
10170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10171 hardcode_libdir_flag_spec='-R$libdir'
10172 hardcode_direct=yes
10173 hardcode_shlibpath_var=no
10177 if test yes = "$GCC"; then
10178 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10180 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10182 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10183 hardcode_libdir_separator=:
10184 hardcode_direct=yes
10186 # hardcode_minus_L: Not really in the search PATH,
10187 # but as the default location of the library.
10188 hardcode_minus_L=yes
10189 export_dynamic_flag_spec='$wl-E'
10193 if test yes,no = "$GCC,$with_gnu_ld"; then
10194 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10198 if test no = "$with_gnu_ld"; then
10199 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10200 hardcode_libdir_separator=:
10201 hardcode_direct=yes
10202 hardcode_direct_absolute=yes
10203 export_dynamic_flag_spec='$wl-E'
10204 # hardcode_minus_L: Not really in the search PATH,
10205 # but as the default location of the library.
10206 hardcode_minus_L=yes
10211 if test yes,no = "$GCC,$with_gnu_ld"; then
10214 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10226 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10229 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10233 # Older versions of the 11.00 compiler do not understand -b yet
10234 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10236 $as_echo_n "checking if $CC understands -b... " >&6; }
10237 if ${lt_cv_prog_compiler__b+:} false; then :
10238 $as_echo_n "(cached) " >&6
10240 lt_cv_prog_compiler__b=no
10241 save_LDFLAGS=$LDFLAGS
10242 LDFLAGS="$LDFLAGS -b"
10243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10245 # The linker can only warn and ignore the option if not recognized
10246 # So say no if there are warnings
10247 if test -s conftest.err; then
10248 # Append any errors to the config.log.
10249 cat conftest.err 1>&5
10250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10252 if diff conftest.exp conftest.er2 >/dev/null; then
10253 lt_cv_prog_compiler__b=yes
10256 lt_cv_prog_compiler__b=yes
10260 LDFLAGS=$save_LDFLAGS
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10264 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10266 if test yes = "$lt_cv_prog_compiler__b"; then
10267 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10275 if test no = "$with_gnu_ld"; then
10276 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10277 hardcode_libdir_separator=:
10282 hardcode_shlibpath_var=no
10285 hardcode_direct=yes
10286 hardcode_direct_absolute=yes
10287 export_dynamic_flag_spec='$wl-E'
10289 # hardcode_minus_L: Not really in the search PATH,
10290 # but as the default location of the library.
10291 hardcode_minus_L=yes
10297 irix5* | irix6* | nonstopux*)
10298 if test yes = "$GCC"; then
10299 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'
10300 # Try to use the -exported_symbol ld option, if it does not
10301 # work, assume that -exports_file does not work either and
10302 # implicitly export all symbols.
10303 # This should be the same for all languages, so no per-tag cache variable.
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10305 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10306 if ${lt_cv_irix_exported_symbol+:} false; then :
10307 $as_echo_n "(cached) " >&6
10309 save_LDFLAGS=$LDFLAGS
10310 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313 int foo (void) { return 0; }
10315 if ac_fn_c_try_link "$LINENO"; then :
10316 lt_cv_irix_exported_symbol=yes
10318 lt_cv_irix_exported_symbol=no
10320 rm -f core conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
10322 LDFLAGS=$save_LDFLAGS
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10325 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10326 if test yes = "$lt_cv_irix_exported_symbol"; then
10327 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'
10330 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'
10331 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'
10333 archive_cmds_need_lc='no'
10334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10335 hardcode_libdir_separator=:
10337 link_all_deplibs=yes
10341 case $cc_basename in
10343 # Fabrice Bellard et al's Tiny C Compiler
10345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10354 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10356 hardcode_libdir_flag_spec='-R$libdir'
10357 hardcode_direct=yes
10358 hardcode_shlibpath_var=no
10362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10363 hardcode_direct=yes
10364 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10365 hardcode_libdir_separator=:
10366 hardcode_shlibpath_var=no
10372 openbsd* | bitrig*)
10373 if test -f /usr/libexec/ld.so; then
10374 hardcode_direct=yes
10375 hardcode_shlibpath_var=no
10376 hardcode_direct_absolute=yes
10377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10379 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10380 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10381 export_dynamic_flag_spec='$wl-E'
10383 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10384 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10392 hardcode_libdir_flag_spec='-L$libdir'
10393 hardcode_minus_L=yes
10394 allow_undefined_flag=unsupported
10396 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10397 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10398 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10399 $ECHO EXPORTS >> $output_objdir/$libname.def~
10400 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10401 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10402 emximp -o $lib $output_objdir/$libname.def'
10403 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10404 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10405 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10406 $ECHO EXPORTS >> $output_objdir/$libname.def~
10407 prefix_cmds="$SED"~
10408 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10409 prefix_cmds="$prefix_cmds -e 1d";
10411 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10412 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10413 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10414 emximp -o $lib $output_objdir/$libname.def'
10415 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10416 enable_shared_with_static_runtimes=yes
10420 if test yes = "$GCC"; then
10421 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10422 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'
10424 allow_undefined_flag=' -expect_unresolved \*'
10425 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'
10427 archive_cmds_need_lc='no'
10428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10429 hardcode_libdir_separator=:
10432 osf4* | osf5*) # as osf3* with the addition of -msym flag
10433 if test yes = "$GCC"; then
10434 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10435 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'
10436 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10438 allow_undefined_flag=' -expect_unresolved \*'
10439 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'
10440 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~
10441 $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'
10443 # Both c and cxx compiler support -rpath directly
10444 hardcode_libdir_flag_spec='-rpath $libdir'
10446 archive_cmds_need_lc='no'
10447 hardcode_libdir_separator=:
10451 no_undefined_flag=' -z defs'
10452 if test yes = "$GCC"; then
10454 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10456 $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'
10458 case `$CC -V 2>&1` in
10461 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10462 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10463 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10467 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10468 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10469 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10473 hardcode_libdir_flag_spec='-R$libdir'
10474 hardcode_shlibpath_var=no
10476 solaris2.[0-5] | solaris2.[0-5].*) ;;
10478 # The compiler driver will combine and reorder linker options,
10479 # but understands '-z linker_flag'. GCC discards it without '$wl',
10480 # but is careful enough not to reorder.
10481 # Supported since Solaris 2.6 (maybe 2.5.1?)
10482 if test yes = "$GCC"; then
10483 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10485 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10489 link_all_deplibs=yes
10493 if test sequent = "$host_vendor"; then
10494 # Use $CC to link under sequent, because it throws in some extra .o
10495 # files that make .init and .fini sections work.
10496 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10498 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10500 hardcode_libdir_flag_spec='-L$libdir'
10501 hardcode_direct=yes
10502 hardcode_minus_L=yes
10503 hardcode_shlibpath_var=no
10507 case $host_vendor in
10509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510 hardcode_direct=yes # is this really true???
10513 ## LD is ld it makes a PLAMLIB
10514 ## CC just makes a GrossModule.
10515 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10516 reload_cmds='$CC -r -o $output$reload_objs'
10520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10524 runpath_var='LD_RUN_PATH'
10525 hardcode_shlibpath_var=no
10529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10530 hardcode_shlibpath_var=no
10531 export_dynamic_flag_spec='-Bexport'
10535 if test -d /usr/nec; then
10536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_shlibpath_var=no
10538 runpath_var=LD_RUN_PATH
10539 hardcode_runpath_var=yes
10544 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10545 no_undefined_flag='$wl-z,text'
10546 archive_cmds_need_lc=no
10547 hardcode_shlibpath_var=no
10548 runpath_var='LD_RUN_PATH'
10550 if test yes = "$GCC"; then
10551 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10552 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10554 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10555 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559 sysv5* | sco3.2v5* | sco5v6*)
10560 # Note: We CANNOT use -z defs as we might desire, because we do not
10561 # link with -lc, and that would cause any symbols used from libc to
10562 # always be unresolved, which means just about no library would
10563 # ever link correctly. If we're not using GNU ld we use -z text
10564 # though, which does catch some bad symbols but isn't as heavy-handed
10566 no_undefined_flag='$wl-z,text'
10567 allow_undefined_flag='$wl-z,nodefs'
10568 archive_cmds_need_lc=no
10569 hardcode_shlibpath_var=no
10570 hardcode_libdir_flag_spec='$wl-R,$libdir'
10571 hardcode_libdir_separator=':'
10572 link_all_deplibs=yes
10573 export_dynamic_flag_spec='$wl-Bexport'
10574 runpath_var='LD_RUN_PATH'
10576 if test yes = "$GCC"; then
10577 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10578 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10580 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10581 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10587 hardcode_libdir_flag_spec='-L$libdir'
10588 hardcode_shlibpath_var=no
10596 if test sni = "$host_vendor"; then
10598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10599 export_dynamic_flag_spec='$wl-Blargedynsym'
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10606 $as_echo "$ld_shlibs" >&6; }
10607 test no = "$ld_shlibs" && can_build_shared=no
10609 with_gnu_ld=$with_gnu_ld
10626 # Do we need to explicitly link libc?
10628 case "x$archive_cmds_need_lc" in
10630 # Assume -lc should be added
10631 archive_cmds_need_lc=yes
10633 if test yes,yes = "$GCC,$enable_shared"; then
10634 case $archive_cmds in
10636 # FIXME: we may have to deal with multi-command sequences.
10639 # Test whether the compiler implicitly links with -lc since on some
10640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10641 # to ld, don't add -lc before -lgcc.
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10643 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10644 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10645 $as_echo_n "(cached) " >&6
10648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10651 (eval $ac_compile) 2>&5
10653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10654 test $ac_status = 0; } 2>conftest.err; then
10657 libobjs=conftest.$ac_objext
10659 wl=$lt_prog_compiler_wl
10660 pic_flag=$lt_prog_compiler_pic
10666 lt_save_allow_undefined_flag=$allow_undefined_flag
10667 allow_undefined_flag=
10668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10669 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10672 test $ac_status = 0; }
10674 lt_cv_archive_cmds_need_lc=no
10676 lt_cv_archive_cmds_need_lc=yes
10678 allow_undefined_flag=$lt_save_allow_undefined_flag
10680 cat conftest.err 1>&5
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10686 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10687 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10846 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10848 if test yes = "$GCC"; then
10850 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10851 *) lt_awk_arg='/^libraries:/' ;;
10854 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10855 *) lt_sed_strip_eq='s|=/|/|g' ;;
10857 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10858 case $lt_search_path_spec in
10860 # if the path contains ";" then we assume it to be the separator
10861 # otherwise default to the standard path separator (i.e. ":") - it is
10862 # assumed that no part of a normal pathname contains ";" but that should
10863 # okay in the real world where ";" in dirpaths is itself problematic.
10864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10870 # Ok, now we have the path, separated by spaces, we can step through it
10871 # and add multilib dir if necessary...
10872 lt_tmp_lt_search_path_spec=
10873 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10874 # ...but if some path component already ends with the multilib dir we assume
10875 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10876 case "$lt_multi_os_dir; $lt_search_path_spec " in
10877 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10881 for lt_sys_path in $lt_search_path_spec; do
10882 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10883 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10884 elif test -n "$lt_multi_os_dir"; then
10885 test -d "$lt_sys_path" && \
10886 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10889 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10890 BEGIN {RS = " "; FS = "/|\n";} {
10893 for (lt_i = NF; lt_i > 0; lt_i--) {
10894 if ($lt_i != "" && $lt_i != ".") {
10895 if ($lt_i == "..") {
10898 if (lt_count == 0) {
10899 lt_foo = "/" $lt_i lt_foo;
10906 if (lt_foo != "") { lt_freq[lt_foo]++; }
10907 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10909 # AWK program above erroneously prepends '/' to C:/dos/paths
10912 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10913 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10915 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10919 library_names_spec=
10920 libname_spec='lib$name'
10924 postuninstall_cmds=
10928 shlibpath_overrides_runpath=unknown
10930 dynamic_linker="$host_os ld.so"
10931 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10932 need_lib_prefix=unknown
10933 hardcode_into_libs=no
10935 # when you set need_version to no, make sure it does not cause -set_version
10936 # flags to be left without arguments
10937 need_version=unknown
10943 version_type=linux # correct to gnu/linux during the next big refactor
10944 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10945 shlibpath_var=LIBPATH
10947 # AIX 3 has no versioning support, so we append a major version to the name.
10948 soname_spec='$libname$release$shared_ext$major'
10952 version_type=linux # correct to gnu/linux during the next big refactor
10955 hardcode_into_libs=yes
10956 if test ia64 = "$host_cpu"; then
10957 # AIX 5 supports IA64
10958 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10959 shlibpath_var=LD_LIBRARY_PATH
10961 # With GCC up to 2.95.x, collect2 would create an import file
10962 # for dependence libraries. The import file would start with
10963 # the line '#! .'. This would cause the generated library to
10964 # depend on '.', always an invalid library. This was fixed in
10965 # development snapshots of GCC prior to 3.0.
10967 aix4 | aix4.[01] | aix4.[01].*)
10968 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10970 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10973 can_build_shared=no
10977 # Using Import Files as archive members, it is possible to support
10978 # filename-based versioning of shared library archives on AIX. While
10979 # this would work for both with and without runtime linking, it will
10980 # prevent static linking of such archives. So we do filename-based
10981 # shared library versioning with .so extension only, which is used
10982 # when both runtime linking and shared linking is enabled.
10983 # Unfortunately, runtime linking may impact performance, so we do
10984 # not want this to be the default eventually. Also, we use the
10985 # versioned .so libs for executables only if there is the -brtl
10986 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10987 # To allow for filename-based versioning support, we need to create
10988 # libNAME.so.V as an archive file, containing:
10989 # *) an Import File, referring to the versioned filename of the
10990 # archive as well as the shared archive member, telling the
10991 # bitwidth (32 or 64) of that shared object, and providing the
10992 # list of exported symbols of that shared object, eventually
10993 # decorated with the 'weak' keyword
10994 # *) the shared object with the F_LOADONLY flag set, to really avoid
10995 # it being seen by the linker.
10996 # At run time we better use the real file rather than another symlink,
10997 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10999 case $with_aix_soname,$aix_use_runtimelinking in
11000 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11001 # soname into executable. Probably we can add versioning support to
11002 # collect2, so additional links can be useful in future.
11003 aix,yes) # traditional libtool
11004 dynamic_linker='AIX unversionable lib.so'
11005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11006 # instead of lib<name>.a to let people know that these are not
11007 # typical AIX shared libraries.
11008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11010 aix,no) # traditional AIX only
11011 dynamic_linker='AIX lib.a(lib.so.V)'
11012 # We preserve .a as extension for shared libraries through AIX4.2
11013 # and later when we are not doing run time linking.
11014 library_names_spec='$libname$release.a $libname.a'
11015 soname_spec='$libname$release$shared_ext$major'
11017 svr4,*) # full svr4 only
11018 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11019 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11020 # We do not specify a path in Import Files, so LIBPATH fires.
11021 shlibpath_overrides_runpath=yes
11023 *,yes) # both, prefer svr4
11024 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11025 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11026 # unpreferred sharedlib libNAME.a needs extra handling
11027 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11028 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11029 # We do not specify a path in Import Files, so LIBPATH fires.
11030 shlibpath_overrides_runpath=yes
11032 *,no) # both, prefer aix
11033 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11034 library_names_spec='$libname$release.a $libname.a'
11035 soname_spec='$libname$release$shared_ext$major'
11036 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11037 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11038 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11041 shlibpath_var=LIBPATH
11048 # Since July 2007 AmigaOS4 officially supports .so libraries.
11049 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11053 library_names_spec='$libname.ixlibrary $libname.a'
11054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11055 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11061 library_names_spec='$libname$shared_ext'
11062 dynamic_linker="$host_os ld.so"
11063 shlibpath_var=LIBRARY_PATH
11067 version_type=linux # correct to gnu/linux during the next big refactor
11069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11070 soname_spec='$libname$release$shared_ext$major'
11071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11075 # the default ld.so.conf also contains /usr/contrib/lib and
11076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11077 # libtool to hard-code these into programs
11080 cygwin* | mingw* | pw32* | cegcc*)
11081 version_type=windows
11086 case $GCC,$cc_basename in
11089 library_names_spec='$libname.dll.a'
11090 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11091 postinstall_cmds='base_file=`basename \$file`~
11092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11093 dldir=$destdir/`dirname \$dlpath`~
11094 test -d \$dldir || mkdir -p \$dldir~
11095 $install_prog $dir/$dlname \$dldir/$dlname~
11096 chmod a+x \$dldir/$dlname~
11097 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11098 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11101 dlpath=$dir/\$dldll~
11103 shlibpath_overrides_runpath=yes
11107 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11108 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11110 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11113 # MinGW DLLs use traditional 'lib' prefix
11114 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11117 # pw32 DLLs use 'pw' prefix rather than 'lib'
11118 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11121 dynamic_linker='Win32 ld.exe'
11126 libname_spec='$name'
11127 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11128 library_names_spec='$libname.dll.lib'
11132 sys_lib_search_path_spec=
11135 for lt_path in $LIB
11138 # Let DOS variable expansion print the short 8.3 style file name.
11139 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11140 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11143 # Convert to MSYS style.
11144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11147 # Convert to unix form, then to dos form, then back to unix form
11148 # but this time dos style (no spaces!) so that the unix form looks
11149 # like /cygdrive/c/PROGRA~1:/cygdr...
11150 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11151 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11152 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11155 sys_lib_search_path_spec=$LIB
11156 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11157 # It is most probably a Windows format PATH.
11158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11162 # FIXME: find the short name or the path components, as spaces are
11163 # common. (e.g. "Program Files" -> "PROGRA~1")
11167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11168 postinstall_cmds='base_file=`basename \$file`~
11169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11170 dldir=$destdir/`dirname \$dlpath`~
11171 test -d \$dldir || mkdir -p \$dldir~
11172 $install_prog $dir/$dlname \$dldir/$dlname'
11173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11174 dlpath=$dir/\$dldll~
11176 shlibpath_overrides_runpath=yes
11177 dynamic_linker='Win32 link.exe'
11181 # Assume MSVC wrapper
11182 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11183 dynamic_linker='Win32 ld.exe'
11186 # FIXME: first we should search . and the directory the executable is in
11190 darwin* | rhapsody*)
11191 dynamic_linker="$host_os dyld"
11192 version_type=darwin
11195 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11196 soname_spec='$libname$release$major$shared_ext'
11197 shlibpath_overrides_runpath=yes
11198 shlibpath_var=DYLD_LIBRARY_PATH
11199 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11206 version_type=linux # correct to gnu/linux during the next big refactor
11209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11210 soname_spec='$libname$release$shared_ext$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11214 freebsd* | dragonfly*)
11215 # DragonFly does not have aout. When/if they implement a new
11216 # versioning mechanism, adjust this.
11217 if test -x /usr/bin/objformat; then
11218 objformat=`/usr/bin/objformat`
11221 freebsd[23].*) objformat=aout ;;
11222 *) objformat=elf ;;
11225 # Handle Gentoo/FreeBSD as it was Linux
11226 case $host_vendor in
11228 version_type=linux ;;
11230 version_type=freebsd-$objformat ;;
11233 case $version_type in
11235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11236 soname_spec='$libname$release$shared_ext$major'
11241 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11246 soname_spec='${libname}${release}${shared_ext}$major'
11251 shlibpath_var=LD_LIBRARY_PATH
11254 shlibpath_overrides_runpath=yes
11256 freebsd3.[01]* | freebsdelf3.[01]*)
11257 shlibpath_overrides_runpath=yes
11258 hardcode_into_libs=yes
11260 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11261 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11262 shlibpath_overrides_runpath=no
11263 hardcode_into_libs=yes
11265 *) # from 4.6 on, and DragonFly
11266 shlibpath_overrides_runpath=yes
11267 hardcode_into_libs=yes
11273 version_type=linux # correct to gnu/linux during the next big refactor
11276 dynamic_linker="$host_os runtime_loader"
11277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11278 soname_spec='$libname$release$shared_ext$major'
11279 shlibpath_var=LIBRARY_PATH
11280 shlibpath_overrides_runpath=no
11281 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11282 hardcode_into_libs=yes
11285 hpux9* | hpux10* | hpux11*)
11286 # Give a soname corresponding to the major version so that dld.sl refuses to
11287 # link against other versions.
11294 hardcode_into_libs=yes
11295 dynamic_linker="$host_os dld.so"
11296 shlibpath_var=LD_LIBRARY_PATH
11297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11299 soname_spec='$libname$release$shared_ext$major'
11300 if test 32 = "$HPUX_IA64_MODE"; then
11301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11302 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11304 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11305 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11310 hardcode_into_libs=yes
11311 dynamic_linker="$host_os dld.sl"
11312 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11315 soname_spec='$libname$release$shared_ext$major'
11316 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11321 dynamic_linker="$host_os dld.sl"
11322 shlibpath_var=SHLIB_PATH
11323 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325 soname_spec='$libname$release$shared_ext$major'
11328 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11329 postinstall_cmds='chmod 555 $lib'
11330 # or fails outright, so override atomically:
11331 install_override_mode=555
11335 version_type=linux # correct to gnu/linux during the next big refactor
11338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11339 soname_spec='$libname$release$shared_ext$major'
11340 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11341 shlibpath_var=LD_LIBRARY_PATH
11342 shlibpath_overrides_runpath=no
11343 hardcode_into_libs=yes
11346 irix5* | irix6* | nonstopux*)
11348 nonstopux*) version_type=nonstopux ;;
11350 if test yes = "$lt_cv_prog_gnu_ld"; then
11351 version_type=linux # correct to gnu/linux during the next big refactor
11358 soname_spec='$libname$release$shared_ext$major'
11359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11361 irix5* | nonstopux*)
11362 libsuff= shlibsuff=
11365 case $LD in # libtool.m4 will add one of these switches to LD
11366 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11367 libsuff= shlibsuff= libmagic=32-bit;;
11368 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11369 libsuff=32 shlibsuff=N32 libmagic=N32;;
11370 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11371 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11372 *) libsuff= shlibsuff= libmagic=never-match;;
11376 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11377 shlibpath_overrides_runpath=no
11378 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11379 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11380 hardcode_into_libs=yes
11383 # No shared lib support for Linux oldld, aout, or coff.
11384 linux*oldld* | linux*aout* | linux*coff*)
11389 version_type=none # Android doesn't support versioned libraries.
11392 library_names_spec='$libname$release$shared_ext'
11393 soname_spec='$libname$release$shared_ext'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 shlibpath_overrides_runpath=yes
11398 # This implies no fast_install, which is unacceptable.
11399 # Some rework will be needed to allow for fast_install
11400 # before this can be enabled.
11401 hardcode_into_libs=yes
11403 dynamic_linker='Android linker'
11404 # Don't embed -rpath directories since the linker doesn't support them.
11405 hardcode_libdir_flag_spec='-L$libdir'
11408 # This must be glibc/ELF.
11409 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11410 version_type=linux # correct to gnu/linux during the next big refactor
11413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11414 soname_spec='$libname$release$shared_ext$major'
11415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11416 shlibpath_var=LD_LIBRARY_PATH
11417 shlibpath_overrides_runpath=no
11419 # Some binutils ld are patched to set DT_RUNPATH
11420 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11421 $as_echo_n "(cached) " >&6
11423 lt_cv_shlibpath_overrides_runpath=no
11424 save_LDFLAGS=$LDFLAGS
11425 save_libdir=$libdir
11426 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11427 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11441 lt_cv_shlibpath_overrides_runpath=yes
11444 rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 LDFLAGS=$save_LDFLAGS
11447 libdir=$save_libdir
11451 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11453 # This implies no fast_install, which is unacceptable.
11454 # Some rework will be needed to allow for fast_install
11455 # before this can be enabled.
11456 hardcode_into_libs=yes
11458 # Ideally, we could use ldconfig to report *all* directores which are
11459 # searched for libraries, however this is still not possible. Aside from not
11460 # being certain /sbin/ldconfig is available, command
11461 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11462 # even though it is searched at run-time. Try to do the best guess by
11463 # appending ld.so.conf contents (and includes) to the search path.
11464 if test -f /etc/ld.so.conf; then
11465 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' ' '`
11466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11469 # We used to test for /lib/ld.so.1 and disable shared libraries on
11470 # powerpc, because MkLinux only supported shared libraries with the
11471 # GNU dynamic linker. Since this was broken with cross compilers,
11472 # most powerpc-linux boxes support dynamic linking these days and
11473 # people can always --disable-shared, the test was removed, and we
11474 # assume the GNU/Linux dynamic linker is in use.
11475 dynamic_linker='GNU/Linux ld.so'
11482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11485 dynamic_linker='NetBSD (a.out) ld.so'
11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11488 soname_spec='$libname$release$shared_ext$major'
11489 dynamic_linker='NetBSD ld.elf_so'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 shlibpath_overrides_runpath=yes
11493 hardcode_into_libs=yes
11497 version_type=linux # correct to gnu/linux during the next big refactor
11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=yes
11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11508 soname_spec='$libname$release$shared_ext$major'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=no
11511 hardcode_into_libs=yes
11512 dynamic_linker='ldqnx.so'
11515 openbsd* | bitrig*)
11517 sys_lib_dlsearch_path_spec=/usr/lib
11519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11524 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11531 libname_spec='$name'
11532 version_type=windows
11536 # OS/2 can only load a DLL with a base name of 8 characters or less.
11537 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11538 v=$($ECHO $release$versuffix | tr -d .-);
11539 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11540 $ECHO $n$v`$shared_ext'
11541 library_names_spec='${libname}_dll.$libext'
11542 dynamic_linker='OS/2 ld.exe'
11543 shlibpath_var=BEGINLIBPATH
11544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11546 postinstall_cmds='base_file=`basename \$file`~
11547 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11548 dldir=$destdir/`dirname \$dlpath`~
11549 test -d \$dldir || mkdir -p \$dldir~
11550 $install_prog $dir/$dlname \$dldir/$dlname~
11551 chmod a+x \$dldir/$dlname~
11552 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11553 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11556 dlpath=$dir/\$dldll~
11560 osf3* | osf4* | osf5*)
11564 soname_spec='$libname$release$shared_ext$major'
11565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11566 shlibpath_var=LD_LIBRARY_PATH
11567 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11576 version_type=linux # correct to gnu/linux during the next big refactor
11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580 soname_spec='$libname$release$shared_ext$major'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 shlibpath_overrides_runpath=yes
11583 hardcode_into_libs=yes
11584 # ldd complains unless libraries are executable
11585 postinstall_cmds='chmod +x $lib'
11590 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=yes
11594 if test yes = "$with_gnu_ld"; then
11601 version_type=linux # correct to gnu/linux during the next big refactor
11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11603 soname_spec='$libname$release$shared_ext$major'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 case $host_vendor in
11607 shlibpath_overrides_runpath=no
11609 runpath_var=LD_RUN_PATH
11617 shlibpath_overrides_runpath=no
11618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11624 if test -d /usr/nec; then
11625 version_type=linux # correct to gnu/linux during the next big refactor
11626 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11627 soname_spec='$libname$shared_ext.$major'
11628 shlibpath_var=LD_LIBRARY_PATH
11632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11637 soname_spec='$libname$release$shared_ext$major'
11638 shlibpath_var=LD_LIBRARY_PATH
11639 shlibpath_overrides_runpath=yes
11640 hardcode_into_libs=yes
11641 if test yes = "$with_gnu_ld"; then
11642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11651 sys_lib_dlsearch_path_spec='/usr/lib'
11655 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11656 version_type=linux # correct to gnu/linux during the next big refactor
11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=no
11662 hardcode_into_libs=yes
11666 version_type=linux # correct to gnu/linux during the next big refactor
11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11668 soname_spec='$libname$release$shared_ext$major'
11669 shlibpath_var=LD_LIBRARY_PATH
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11677 $as_echo "$dynamic_linker" >&6; }
11678 test no = "$dynamic_linker" && can_build_shared=no
11680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11681 if test yes = "$GCC"; then
11682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11685 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11686 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11689 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11690 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11693 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11694 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11696 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11697 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11699 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11700 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11799 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11801 if test -n "$hardcode_libdir_flag_spec" ||
11802 test -n "$runpath_var" ||
11803 test yes = "$hardcode_automatic"; then
11805 # We can hardcode non-existent directories.
11806 if test no != "$hardcode_direct" &&
11807 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11808 # have to relink, otherwise we might link with an installed library
11809 # when we should be linking with a yet-to-be-installed one
11810 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11811 test no != "$hardcode_minus_L"; then
11812 # Linking always hardcodes the temporary library directory.
11813 hardcode_action=relink
11815 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11816 hardcode_action=immediate
11819 # We cannot hardcode anything, or else we can only hardcode existing
11821 hardcode_action=unsupported
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11824 $as_echo "$hardcode_action" >&6; }
11826 if test relink = "$hardcode_action" ||
11827 test yes = "$inherit_rpath"; then
11828 # Fast installation is not supported
11829 enable_fast_install=no
11830 elif test yes = "$shlibpath_overrides_runpath" ||
11831 test no = "$enable_shared"; then
11832 # Fast installation is not necessary
11833 enable_fast_install=needless
11841 if test yes != "$enable_dlopen"; then
11842 enable_dlopen=unknown
11843 enable_dlopen_self=unknown
11844 enable_dlopen_self_static=unknown
11851 lt_cv_dlopen=load_add_on
11853 lt_cv_dlopen_self=yes
11856 mingw* | pw32* | cegcc*)
11857 lt_cv_dlopen=LoadLibrary
11862 lt_cv_dlopen=dlopen
11867 # if libdl is installed we need to link against it
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11869 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11870 if ${ac_cv_lib_dl_dlopen+:} false; then :
11871 $as_echo_n "(cached) " >&6
11873 ac_check_lib_save_LIBS=$LIBS
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11878 /* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
11893 if ac_fn_c_try_link "$LINENO"; then :
11894 ac_cv_lib_dl_dlopen=yes
11896 ac_cv_lib_dl_dlopen=no
11898 rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11903 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11904 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11905 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11910 lt_cv_dlopen_self=yes
11917 # Don't try to run any link tests for TPF. We know it's impossible
11918 # because TPF is a cross-compiler, and we know how we open DSOs.
11919 lt_cv_dlopen=dlopen
11921 lt_cv_dlopen_self=no
11925 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11926 if test "x$ac_cv_func_shl_load" = xyes; then :
11927 lt_cv_dlopen=shl_load
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11930 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11931 if ${ac_cv_lib_dld_shl_load+:} false; then :
11932 $as_echo_n "(cached) " >&6
11934 ac_check_lib_save_LIBS=$LIBS
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11949 return shl_load ();
11954 if ac_fn_c_try_link "$LINENO"; then :
11955 ac_cv_lib_dld_shl_load=yes
11957 ac_cv_lib_dld_shl_load=no
11959 rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961 LIBS=$ac_check_lib_save_LIBS
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11964 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11965 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11966 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11968 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11969 if test "x$ac_cv_func_dlopen" = xyes; then :
11970 lt_cv_dlopen=dlopen
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11973 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11974 if ${ac_cv_lib_dl_dlopen+:} false; then :
11975 $as_echo_n "(cached) " >&6
11977 ac_check_lib_save_LIBS=$LIBS
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11997 if ac_fn_c_try_link "$LINENO"; then :
11998 ac_cv_lib_dl_dlopen=yes
12000 ac_cv_lib_dl_dlopen=no
12002 rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12007 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12008 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12009 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12012 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12013 if ${ac_cv_lib_svld_dlopen+:} false; then :
12014 $as_echo_n "(cached) " >&6
12016 ac_check_lib_save_LIBS=$LIBS
12017 LIBS="-lsvld $LIBS"
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12036 if ac_fn_c_try_link "$LINENO"; then :
12037 ac_cv_lib_svld_dlopen=yes
12039 ac_cv_lib_svld_dlopen=no
12041 rm -f core conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12043 LIBS=$ac_check_lib_save_LIBS
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12046 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12047 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12048 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12051 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12052 if ${ac_cv_lib_dld_dld_link+:} false; then :
12053 $as_echo_n "(cached) " >&6
12055 ac_check_lib_save_LIBS=$LIBS
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12070 return dld_link ();
12075 if ac_fn_c_try_link "$LINENO"; then :
12076 ac_cv_lib_dld_dld_link=yes
12078 ac_cv_lib_dld_dld_link=no
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12085 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12086 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12087 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12108 if test no = "$lt_cv_dlopen"; then
12114 case $lt_cv_dlopen in
12116 save_CPPFLAGS=$CPPFLAGS
12117 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12119 save_LDFLAGS=$LDFLAGS
12120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12123 LIBS="$lt_cv_dlopen_libs $LIBS"
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12126 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12127 if ${lt_cv_dlopen_self+:} false; then :
12128 $as_echo_n "(cached) " >&6
12130 if test yes = "$cross_compiling"; then :
12131 lt_cv_dlopen_self=cross
12133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12134 lt_status=$lt_dlunknown
12135 cat > conftest.$ac_ext <<_LT_EOF
12136 #line $LINENO "configure"
12137 #include "confdefs.h"
12146 # define LT_DLGLOBAL RTLD_GLOBAL
12149 # define LT_DLGLOBAL DL_GLOBAL
12151 # define LT_DLGLOBAL 0
12155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12156 find out it does not work in some platform. */
12157 #ifndef LT_DLLAZY_OR_NOW
12159 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12162 # define LT_DLLAZY_OR_NOW DL_LAZY
12165 # define LT_DLLAZY_OR_NOW RTLD_NOW
12168 # define LT_DLLAZY_OR_NOW DL_NOW
12170 # define LT_DLLAZY_OR_NOW 0
12177 /* When -fvisibility=hidden is used, assume the code has been annotated
12178 correspondingly for the symbols needed. */
12179 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12180 int fnord () __attribute__((visibility("default")));
12183 int fnord () { return 42; }
12186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12187 int status = $lt_dlunknown;
12191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12194 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12195 else puts (dlerror ());
12197 /* dlclose (self); */
12205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12206 (eval $ac_link) 2>&5
12208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12209 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12210 (./conftest; exit; ) >&5 2>/dev/null
12212 case x$lt_status in
12213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12215 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12218 # compilation failed
12219 lt_cv_dlopen_self=no
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12227 $as_echo "$lt_cv_dlopen_self" >&6; }
12229 if test yes = "$lt_cv_dlopen_self"; then
12230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12232 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12233 if ${lt_cv_dlopen_self_static+:} false; then :
12234 $as_echo_n "(cached) " >&6
12236 if test yes = "$cross_compiling"; then :
12237 lt_cv_dlopen_self_static=cross
12239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12240 lt_status=$lt_dlunknown
12241 cat > conftest.$ac_ext <<_LT_EOF
12242 #line $LINENO "configure"
12243 #include "confdefs.h"
12252 # define LT_DLGLOBAL RTLD_GLOBAL
12255 # define LT_DLGLOBAL DL_GLOBAL
12257 # define LT_DLGLOBAL 0
12261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12262 find out it does not work in some platform. */
12263 #ifndef LT_DLLAZY_OR_NOW
12265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12268 # define LT_DLLAZY_OR_NOW DL_LAZY
12271 # define LT_DLLAZY_OR_NOW RTLD_NOW
12274 # define LT_DLLAZY_OR_NOW DL_NOW
12276 # define LT_DLLAZY_OR_NOW 0
12283 /* When -fvisibility=hidden is used, assume the code has been annotated
12284 correspondingly for the symbols needed. */
12285 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12286 int fnord () __attribute__((visibility("default")));
12289 int fnord () { return 42; }
12292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12293 int status = $lt_dlunknown;
12297 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12300 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12301 else puts (dlerror ());
12303 /* dlclose (self); */
12311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12312 (eval $ac_link) 2>&5
12314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12315 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12316 (./conftest; exit; ) >&5 2>/dev/null
12318 case x$lt_status in
12319 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12320 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12321 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12324 # compilation failed
12325 lt_cv_dlopen_self_static=no
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12333 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12336 CPPFLAGS=$save_CPPFLAGS
12337 LDFLAGS=$save_LDFLAGS
12342 case $lt_cv_dlopen_self in
12343 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12344 *) enable_dlopen_self=unknown ;;
12347 case $lt_cv_dlopen_self_static in
12348 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12349 *) enable_dlopen_self_static=unknown ;;
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12372 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12373 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12374 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12375 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12377 $as_echo "yes" >&6; }
12379 # FIXME - insert some real tests, host_os isn't really good enough
12382 if test -n "$STRIP"; then
12383 striplib="$STRIP -x"
12384 old_striplib="$STRIP -S"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12386 $as_echo "yes" >&6; }
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12410 # Report what library types will actually be built
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12412 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12414 $as_echo "$can_build_shared" >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12417 $as_echo_n "checking whether to build shared libraries... " >&6; }
12418 test no = "$can_build_shared" && enable_shared=no
12420 # On AIX, shared libraries and static libraries use the same namespace, and
12421 # are all built from PIC.
12424 test yes = "$enable_shared" && enable_static=no
12425 if test -n "$RANLIB"; then
12426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12427 postinstall_cmds='$RANLIB $lib'
12432 if test ia64 != "$host_cpu"; then
12433 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12434 yes,aix,yes) ;; # shared object as lib.so file only
12435 yes,svr4,*) ;; # shared object as lib.so archive member only
12436 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12442 $as_echo "$enable_shared" >&6; }
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12445 $as_echo_n "checking whether to build static libraries... " >&6; }
12446 # Make sure either enable_shared or enable_static is yes.
12447 test yes = "$enable_shared" || enable_static=yes
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12449 $as_echo "$enable_static" >&6; }
12456 ac_cpp='$CPP $CPPFLAGS'
12457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12477 ac_config_commands="$ac_config_commands libtool"
12482 # Only expand once:
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12491 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12492 if ${ac_cv_prog_cc_c99+:} false; then :
12493 $as_echo_n "(cached) " >&6
12495 ac_cv_prog_cc_c99=no
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499 #include <stdarg.h>
12500 #include <stdbool.h>
12501 #include <stdlib.h>
12505 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12506 #define debug(...) fprintf (stderr, __VA_ARGS__)
12507 #define showlist(...) puts (#__VA_ARGS__)
12508 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12510 test_varargs_macros (void)
12515 debug ("X = %d\n", x);
12516 showlist (The first, second, and third items.);
12517 report (x>y, "x is %d but y is %d", x, y);
12520 // Check long long types.
12521 #define BIG64 18446744073709551615ull
12522 #define BIG32 4294967295ul
12523 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12525 your preprocessor is broken;
12529 your preprocessor is broken;
12531 static long long int bignum = -9223372036854775807LL;
12532 static unsigned long long int ubignum = BIG64;
12534 struct incomplete_array
12540 struct named_init {
12542 const wchar_t *name;
12546 typedef const char *ccp;
12549 test_restrict (ccp restrict text)
12551 // See if C++-style comments work.
12552 // Iterate through items via the restricted pointer.
12553 // Also check for declarations in for loops.
12554 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12559 // Check varargs and va_copy.
12561 test_varargs (const char *format, ...)
12564 va_start (args, format);
12566 va_copy (args_copy, args);
12576 case 's': // string
12577 str = va_arg (args_copy, const char *);
12580 number = va_arg (args_copy, int);
12583 fnumber = va_arg (args_copy, double);
12589 va_end (args_copy);
12598 _Bool success = false;
12601 if (test_restrict ("String literal") == 0)
12603 char *restrict newvar = "Another string";
12606 test_varargs ("s, d' f .", "string", 65, 34.234);
12607 test_varargs_macros ();
12609 // Check flexible array members.
12610 struct incomplete_array *ia =
12611 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12613 for (int i = 0; i < ia->datasize; ++i)
12614 ia->data[i] = i * 1.234;
12616 // Check named initializers.
12617 struct named_init ni = {
12619 .name = L"Test wide string",
12620 .average = 543.34343,
12625 int dynamic_array[ni.number];
12626 dynamic_array[ni.number - 1] = 543;
12628 // work around unused variable warnings
12629 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12630 || dynamic_array[ni.number - 1] != 543);
12636 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12638 CC="$ac_save_CC $ac_arg"
12639 if ac_fn_c_try_compile "$LINENO"; then :
12640 ac_cv_prog_cc_c99=$ac_arg
12642 rm -f core conftest.err conftest.$ac_objext
12643 test "x$ac_cv_prog_cc_c99" != "xno" && break
12645 rm -f conftest.$ac_ext
12650 case "x$ac_cv_prog_cc_c99" in
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12653 $as_echo "none needed" >&6; } ;;
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12656 $as_echo "unsupported" >&6; } ;;
12658 CC="$CC $ac_cv_prog_cc_c99"
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12660 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12662 if test "x$ac_cv_prog_cc_c99" != xno; then :
12668 ac_cpp='$CXXCPP $CPPFLAGS'
12669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12672 if test -z "$CXX"; then
12673 if test -n "$CCC"; then
12676 if test -n "$ac_tool_prefix"; then
12677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682 $as_echo_n "checking for $ac_word... " >&6; }
12683 if ${ac_cv_prog_CXX+:} false; then :
12684 $as_echo_n "(cached) " >&6
12686 if test -n "$CXX"; then
12687 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12696 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 CXX=$ac_cv_prog_CXX
12707 if test -n "$CXX"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12709 $as_echo "$CXX" >&6; }
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12716 test -n "$CXX" && break
12719 if test -z "$CXX"; then
12721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12723 # Extract the first word of "$ac_prog", so it can be a program name with args.
12724 set dummy $ac_prog; ac_word=$2
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12726 $as_echo_n "checking for $ac_word... " >&6; }
12727 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12728 $as_echo_n "(cached) " >&6
12730 if test -n "$ac_ct_CXX"; then
12731 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734 for as_dir in $PATH
12737 test -z "$as_dir" && as_dir=.
12738 for ac_exec_ext in '' $ac_executable_extensions; do
12739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12740 ac_cv_prog_ac_ct_CXX="$ac_prog"
12741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12751 if test -n "$ac_ct_CXX"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12753 $as_echo "$ac_ct_CXX" >&6; }
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12760 test -n "$ac_ct_CXX" && break
12763 if test "x$ac_ct_CXX" = x; then
12766 case $cross_compiling:$ac_tool_warned in
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12770 ac_tool_warned=yes ;;
12778 # Provide some information about the compiler.
12779 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12782 for ac_option in --version -v -V -qversion; do
12783 { { ac_try="$ac_compiler $ac_option >&5"
12784 case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12789 $as_echo "$ac_try_echo"; } >&5
12790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12792 if test -s conftest.err; then
12794 ... rest of stderr output deleted ...
12795 10q' conftest.err >conftest.er1
12796 cat conftest.er1 >&5
12798 rm -f conftest.er1 conftest.err
12799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12800 test $ac_status = 0; }
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12804 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12805 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12806 $as_echo_n "(cached) " >&6
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12822 if ac_fn_cxx_try_compile "$LINENO"; then :
12823 ac_compiler_gnu=yes
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12832 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12833 if test $ac_compiler_gnu = yes; then
12838 ac_test_CXXFLAGS=${CXXFLAGS+set}
12839 ac_save_CXXFLAGS=$CXXFLAGS
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12841 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12842 if ${ac_cv_prog_cxx_g+:} false; then :
12843 $as_echo_n "(cached) " >&6
12845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12846 ac_cxx_werror_flag=yes
12847 ac_cv_prog_cxx_g=no
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12860 if ac_fn_cxx_try_compile "$LINENO"; then :
12861 ac_cv_prog_cxx_g=yes
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12875 if ac_fn_cxx_try_compile "$LINENO"; then :
12878 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12891 if ac_fn_cxx_try_compile "$LINENO"; then :
12892 ac_cv_prog_cxx_g=yes
12894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12902 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12903 if test "$ac_test_CXXFLAGS" = set; then
12904 CXXFLAGS=$ac_save_CXXFLAGS
12905 elif test $ac_cv_prog_cxx_g = yes; then
12906 if test "$GXX" = yes; then
12912 if test "$GXX" = yes; then
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12924 depcc="$CXX" am_compiler_list=
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12927 $as_echo_n "checking dependency style of $depcc... " >&6; }
12928 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12929 $as_echo_n "(cached) " >&6
12931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12932 # We make a subdir and do the tests there. Otherwise we can end up
12933 # making bogus files that we don't know about and never remove. For
12934 # instance it was reported that on HP-UX the gcc test will end up
12935 # making a dummy file named 'D' -- because '-MD' means "put the output
12937 rm -rf conftest.dir
12939 # Copy depcomp to subdir because otherwise we won't find it if we're
12940 # using a relative directory.
12941 cp "$am_depcomp" conftest.dir
12943 # We will build objects and dependencies in a subdirectory because
12944 # it helps to detect inapplicable dependency modes. For instance
12945 # both Tru64's cc and ICC support -MD to output dependencies as a
12946 # side effect of compilation, but ICC will put the dependencies in
12947 # the current directory while Tru64 will put them in the object
12951 am_cv_CXX_dependencies_compiler_type=none
12952 if test "$am_compiler_list" = ""; then
12953 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12955 am__universal=false
12956 case " $depcc " in #(
12957 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12960 for depmode in $am_compiler_list; do
12961 # Setup a source with many dependencies, because some compilers
12962 # like to wrap large dependency lists on column 80 (with \), and
12963 # we should not choose a depcomp mode which is confused by this.
12965 # We need to recreate these files for each test, as the compiler may
12966 # overwrite some of them when testing with obscure command lines.
12967 # This happens at least with the AIX C compiler.
12969 for i in 1 2 3 4 5 6; do
12970 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12971 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12972 # Solaris 10 /bin/sh.
12973 echo '/* dummy */' > sub/conftst$i.h
12975 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12977 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12978 # mode. It turns out that the SunPro C++ compiler does not properly
12979 # handle '-M -o', and we need to detect this. Also, some Intel
12980 # versions had trouble with output in subdirs.
12981 am__obj=sub/conftest.${OBJEXT-o}
12982 am__minus_obj="-o $am__obj"
12985 # This depmode causes a compiler race in universal mode.
12986 test "$am__universal" = false || continue
12989 # After this tag, mechanisms are not by side-effect, so they'll
12990 # only be used when explicitly requested.
12991 if test "x$enable_dependency_tracking" = xyes; then
12997 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12998 # This compiler won't grok '-c -o', but also, the minuso test has
12999 # not run yet. These depmodes are late enough in the game, and
13000 # so weak that their functioning should not be impacted.
13001 am__obj=conftest.${OBJEXT-o}
13006 if depmode=$depmode \
13007 source=sub/conftest.c object=$am__obj \
13008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13009 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13010 >/dev/null 2>conftest.err &&
13011 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13013 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13015 # icc doesn't choke on unknown options, it will just issue warnings
13016 # or remarks (even with -Werror). So we grep stderr for any message
13017 # that says an option was ignored or not supported.
13018 # When given -MP, icc 7.0 and 7.1 complain thusly:
13019 # icc: Command line warning: ignoring option '-M'; no argument required
13020 # The diagnosis changed in icc 8.0:
13021 # icc: Command line remark: option '-MP' not supported
13022 if (grep 'ignoring option' conftest.err ||
13023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13024 am_cv_CXX_dependencies_compiler_type=$depmode
13031 rm -rf conftest.dir
13033 am_cv_CXX_dependencies_compiler_type=none
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13038 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13039 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13042 test "x$enable_dependency_tracking" != xno \
13043 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13044 am__fastdepCXX_TRUE=
13045 am__fastdepCXX_FALSE='#'
13047 am__fastdepCXX_TRUE='#'
13048 am__fastdepCXX_FALSE=
13054 func_stripname_cnf ()
13057 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13058 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13060 } # func_stripname_cnf
13062 if test -n "$CXX" && ( test no != "$CXX" &&
13063 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13064 (test g++ != "$CXX"))); then
13066 ac_cpp='$CXXCPP $CPPFLAGS'
13067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13071 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13072 if test -z "$CXXCPP"; then
13073 if ${ac_cv_prog_CXXCPP+:} false; then :
13074 $as_echo_n "(cached) " >&6
13076 # Double quotes because CXXCPP needs to be expanded
13077 for CXXCPP in "$CXX -E" "/lib/cpp"
13079 ac_preproc_ok=false
13080 for ac_cxx_preproc_warn_flag in '' yes
13082 # Use a header file that comes with gcc, so configuring glibc
13083 # with a fresh cross-compiler works.
13084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13085 # <limits.h> exists even on freestanding compilers.
13086 # On the NeXT, cc -E runs the code through the compiler's parser,
13087 # not just through cpp. "Syntax error" is here to catch this case.
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13091 # include <limits.h>
13093 # include <assert.h>
13097 if ac_fn_cxx_try_cpp "$LINENO"; then :
13100 # Broken: fails on valid input.
13103 rm -f conftest.err conftest.i conftest.$ac_ext
13105 # OK, works on sane cases. Now check whether nonexistent headers
13106 # can be detected and how.
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13109 #include <ac_nonexistent.h>
13111 if ac_fn_cxx_try_cpp "$LINENO"; then :
13112 # Broken: success on invalid input.
13115 # Passes both tests.
13119 rm -f conftest.err conftest.i conftest.$ac_ext
13122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13123 rm -f conftest.i conftest.err conftest.$ac_ext
13124 if $ac_preproc_ok; then :
13129 ac_cv_prog_CXXCPP=$CXXCPP
13132 CXXCPP=$ac_cv_prog_CXXCPP
13134 ac_cv_prog_CXXCPP=$CXXCPP
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13137 $as_echo "$CXXCPP" >&6; }
13138 ac_preproc_ok=false
13139 for ac_cxx_preproc_warn_flag in '' yes
13141 # Use a header file that comes with gcc, so configuring glibc
13142 # with a fresh cross-compiler works.
13143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13144 # <limits.h> exists even on freestanding compilers.
13145 # On the NeXT, cc -E runs the code through the compiler's parser,
13146 # not just through cpp. "Syntax error" is here to catch this case.
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13150 # include <limits.h>
13152 # include <assert.h>
13156 if ac_fn_cxx_try_cpp "$LINENO"; then :
13159 # Broken: fails on valid input.
13162 rm -f conftest.err conftest.i conftest.$ac_ext
13164 # OK, works on sane cases. Now check whether nonexistent headers
13165 # can be detected and how.
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13168 #include <ac_nonexistent.h>
13170 if ac_fn_cxx_try_cpp "$LINENO"; then :
13171 # Broken: success on invalid input.
13174 # Passes both tests.
13178 rm -f conftest.err conftest.i conftest.$ac_ext
13181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13182 rm -f conftest.i conftest.err conftest.$ac_ext
13183 if $ac_preproc_ok; then :
13186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13188 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13189 See \`config.log' for more details" "$LINENO" 5; }
13193 ac_cpp='$CPP $CPPFLAGS'
13194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13199 _lt_caught_CXX_error=yes
13203 ac_cpp='$CXXCPP $CPPFLAGS'
13204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13208 archive_cmds_need_lc_CXX=no
13209 allow_undefined_flag_CXX=
13210 always_export_symbols_CXX=no
13211 archive_expsym_cmds_CXX=
13212 compiler_needs_object_CXX=no
13213 export_dynamic_flag_spec_CXX=
13214 hardcode_direct_CXX=no
13215 hardcode_direct_absolute_CXX=no
13216 hardcode_libdir_flag_spec_CXX=
13217 hardcode_libdir_separator_CXX=
13218 hardcode_minus_L_CXX=no
13219 hardcode_shlibpath_var_CXX=unsupported
13220 hardcode_automatic_CXX=no
13221 inherit_rpath_CXX=no
13223 module_expsym_cmds_CXX=
13224 link_all_deplibs_CXX=unknown
13225 old_archive_cmds_CXX=$old_archive_cmds
13226 reload_flag_CXX=$reload_flag
13227 reload_cmds_CXX=$reload_cmds
13228 no_undefined_flag_CXX=
13229 whole_archive_flag_spec_CXX=
13230 enable_shared_with_static_runtimes_CXX=no
13232 # Source file extension for C++ test sources.
13235 # Object file extension for compiled C++ test sources.
13239 # No sense in running all these tests if we already determined that
13240 # the CXX compiler isn't working. Some variables (like enable_shared)
13241 # are currently assumed to apply to all compilers on this platform,
13242 # and will be corrupted by setting them based on a non-working compiler.
13243 if test yes != "$_lt_caught_CXX_error"; then
13244 # Code to be used in simple compile tests
13245 lt_simple_compile_test_code="int some_variable = 0;"
13247 # Code to be used in simple link tests
13248 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13250 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13257 # If no C compiler was specified, use CC.
13260 # If no C compiler flags were specified, use CFLAGS.
13261 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13263 # Allow CC to be a program name with arguments.
13267 # save warnings/boilerplate of simple test code
13268 ac_outfile=conftest.$ac_objext
13269 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13270 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13271 _lt_compiler_boilerplate=`cat conftest.err`
13274 ac_outfile=conftest.$ac_objext
13275 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13276 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13277 _lt_linker_boilerplate=`cat conftest.err`
13281 # Allow CC to be a program name with arguments.
13283 lt_save_CFLAGS=$CFLAGS
13287 lt_save_with_gnu_ld=$with_gnu_ld
13288 lt_save_path_LD=$lt_cv_path_LD
13289 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13290 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13292 $as_unset lt_cv_prog_gnu_ld
13294 if test -n "${lt_cv_path_LDCXX+set}"; then
13295 lt_cv_path_LD=$lt_cv_path_LDCXX
13297 $as_unset lt_cv_path_LD
13299 test -z "${LDCXX+set}" || LD=$LDCXX
13304 func_cc_basename $compiler
13305 cc_basename=$func_cc_basename_result
13308 if test -n "$compiler"; then
13309 # We don't want -fno-exception when compiling C++ code, so set the
13310 # no_builtin_flag separately
13311 if test yes = "$GXX"; then
13312 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13314 lt_prog_compiler_no_builtin_flag_CXX=
13317 if test yes = "$GXX"; then
13318 # Set up default GNU C++ configuration
13322 # Check whether --with-gnu-ld was given.
13323 if test "${with_gnu_ld+set}" = set; then :
13324 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13330 if test yes = "$GCC"; then
13331 # Check if gcc -print-prog-name=ld gives a path.
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13333 $as_echo_n "checking for ld used by $CC... " >&6; }
13336 # gcc leaves a trailing carriage return, which upsets mingw
13337 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13339 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13342 # Accept absolute paths.
13344 re_direlt='/[^/][^/]*/\.\./'
13345 # Canonicalize the pathname of ld
13346 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13347 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13348 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13350 test -z "$LD" && LD=$ac_prog
13353 # If it fails, then pretend we aren't using GCC.
13357 # If it is relative, then search for the first ld in PATH.
13358 with_gnu_ld=unknown
13361 elif test yes = "$with_gnu_ld"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13363 $as_echo_n "checking for GNU ld... " >&6; }
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13366 $as_echo_n "checking for non-GNU ld... " >&6; }
13368 if ${lt_cv_path_LD+:} false; then :
13369 $as_echo_n "(cached) " >&6
13371 if test -z "$LD"; then
13372 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13373 for ac_dir in $PATH; do
13375 test -z "$ac_dir" && ac_dir=.
13376 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13377 lt_cv_path_LD=$ac_dir/$ac_prog
13378 # Check to see if the program is GNU ld. I'd rather use --version,
13379 # but apparently some variants of GNU ld only accept -v.
13380 # Break only if it was the GNU/non-GNU ld that we prefer.
13381 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13382 *GNU* | *'with BFD'*)
13383 test no != "$with_gnu_ld" && break
13386 test yes != "$with_gnu_ld" && break
13393 lt_cv_path_LD=$LD # Let the user override the test with a path.
13398 if test -n "$LD"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13400 $as_echo "$LD" >&6; }
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13405 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13407 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13408 if ${lt_cv_prog_gnu_ld+:} false; then :
13409 $as_echo_n "(cached) " >&6
13411 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13412 case `$LD -v 2>&1 </dev/null` in
13413 *GNU* | *'with BFD'*)
13414 lt_cv_prog_gnu_ld=yes
13417 lt_cv_prog_gnu_ld=no
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13422 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13423 with_gnu_ld=$lt_cv_prog_gnu_ld
13431 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13432 # archiving commands below assume that GNU ld is being used.
13433 if test yes = "$with_gnu_ld"; then
13434 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13435 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13437 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13438 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13440 # If archive_cmds runs LD, not CC, wlarc should be empty
13441 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13442 # investigate it a little bit more. (MM)
13445 # ancient GNU ld didn't support --whole-archive et. al.
13446 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13447 $GREP 'no-whole-archive' > /dev/null; then
13448 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13450 whole_archive_flag_spec_CXX=
13456 # A generic and very simple default shared library creation
13457 # command for GNU C++ for the case where it uses the native
13458 # linker, instead of GNU ld. If possible, this setting should
13459 # overridden to take advantage of the native linker features on
13460 # the platform it is being used on.
13461 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13464 # Commands to make compiler produce verbose output that lists
13465 # what "hidden" libraries, object files and flags are used when
13466 # linking a shared library.
13467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13475 # PORTME: fill in a description of your system's C++ link characteristics
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13477 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13481 # FIXME: insert proper C++ library support
13485 if test ia64 = "$host_cpu"; then
13486 # On IA64, the linker does run time linking by default, so we don't
13487 # have to do anything special.
13488 aix_use_runtimelinking=no
13489 exp_sym_flag='-Bexport'
13492 aix_use_runtimelinking=no
13494 # Test if we are trying to use run time linking or normal
13495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13496 # have runtime linking enabled, and use it for executables.
13497 # For shared libraries, we enable/disable runtime linking
13498 # depending on the kind of the shared library created -
13499 # when "with_aix_soname,aix_use_runtimelinking" is:
13500 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13501 # "aix,yes" lib.so shared, rtl:yes, for executables
13502 # lib.a static archive
13503 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13504 # lib.a(lib.so.V) shared, rtl:no, for executables
13505 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13506 # lib.a(lib.so.V) shared, rtl:no
13507 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13508 # lib.a static archive
13509 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13510 for ld_flag in $LDFLAGS; do
13513 aix_use_runtimelinking=yes
13518 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13519 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13520 # so we don't have lib.a shared libs to link our executables.
13521 # We have to force runtime linking in this case.
13522 aix_use_runtimelinking=yes
13523 LDFLAGS="$LDFLAGS -Wl,-brtl"
13528 exp_sym_flag='-bexport'
13529 no_entry_flag='-bnoentry'
13532 # When large executables or shared objects are built, AIX ld can
13533 # have problems creating the table of contents. If linking a library
13534 # or program results in "error TOC overflow" add -mminimal-toc to
13535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13538 archive_cmds_CXX=''
13539 hardcode_direct_CXX=yes
13540 hardcode_direct_absolute_CXX=yes
13541 hardcode_libdir_separator_CXX=':'
13542 link_all_deplibs_CXX=yes
13543 file_list_spec_CXX='$wl-f,'
13544 case $with_aix_soname,$aix_use_runtimelinking in
13545 aix,*) ;; # no import file
13546 svr4,* | *,yes) # use import file
13547 # The Import File defines what to hardcode.
13548 hardcode_direct_CXX=no
13549 hardcode_direct_absolute_CXX=no
13553 if test yes = "$GXX"; then
13554 case $host_os in aix4.[012]|aix4.[012].*)
13555 # We only want to do this on AIX 4.2 and lower, the check
13556 # below for broken collect2 doesn't work under 4.3+
13557 collect2name=`$CC -print-prog-name=collect2`
13558 if test -f "$collect2name" &&
13559 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13561 # We have reworked collect2
13564 # We have old collect2
13565 hardcode_direct_CXX=unsupported
13566 # It fails to find uninstalled libraries when the uninstalled
13567 # path is not listed in the libpath. Setting hardcode_minus_L
13568 # to unsupported forces relinking
13569 hardcode_minus_L_CXX=yes
13570 hardcode_libdir_flag_spec_CXX='-L$libdir'
13571 hardcode_libdir_separator_CXX=
13574 shared_flag='-shared'
13575 if test yes = "$aix_use_runtimelinking"; then
13576 shared_flag=$shared_flag' $wl-G'
13578 # Need to ensure runtime linking is disabled for the traditional
13579 # shared library, or the linker may eventually find shared libraries
13580 # /with/ Import File - we do not want to mix them.
13581 shared_flag_aix='-shared'
13582 shared_flag_svr4='-shared $wl-G'
13585 if test ia64 = "$host_cpu"; then
13586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13587 # chokes on -Wl,-G. The following line is correct:
13590 if test yes = "$aix_use_runtimelinking"; then
13591 shared_flag='$wl-G'
13593 shared_flag='$wl-bM:SRE'
13595 shared_flag_aix='$wl-bM:SRE'
13596 shared_flag_svr4='$wl-G'
13600 export_dynamic_flag_spec_CXX='$wl-bexpall'
13601 # It seems that -bexpall does not export symbols beginning with
13602 # underscore (_), so it is better to generate a list of symbols to
13604 always_export_symbols_CXX=yes
13605 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13606 # Warning - without using the other runtime loading flags (-brtl),
13607 # -berok will link without error, but may produce a broken library.
13608 # The "-G" linker flag allows undefined symbols.
13609 no_undefined_flag_CXX='-bernotok'
13610 # Determine the default libpath from the value encoded in an empty
13612 if test set = "${lt_cv_aix_libpath+set}"; then
13613 aix_libpath=$lt_cv_aix_libpath
13615 if ${lt_cv_aix_libpath__CXX+:} false; then :
13616 $as_echo_n "(cached) " >&6
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13629 if ac_fn_cxx_try_link "$LINENO"; then :
13631 lt_aix_libpath_sed='
13632 /Import File Strings/,/^$/ {
13634 s/^0 *\([^ ]*\) *$/\1/
13638 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13639 # Check for a 64-bit object if we didn't find anything.
13640 if test -z "$lt_cv_aix_libpath__CXX"; then
13641 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13644 rm -f core conftest.err conftest.$ac_objext \
13645 conftest$ac_exeext conftest.$ac_ext
13646 if test -z "$lt_cv_aix_libpath__CXX"; then
13647 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13652 aix_libpath=$lt_cv_aix_libpath__CXX
13655 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13657 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13659 if test ia64 = "$host_cpu"; then
13660 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13661 allow_undefined_flag_CXX="-z nodefs"
13662 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
13664 # Determine the default libpath from the value encoded in an
13665 # empty executable.
13666 if test set = "${lt_cv_aix_libpath+set}"; then
13667 aix_libpath=$lt_cv_aix_libpath
13669 if ${lt_cv_aix_libpath__CXX+:} false; then :
13670 $as_echo_n "(cached) " >&6
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13683 if ac_fn_cxx_try_link "$LINENO"; then :
13685 lt_aix_libpath_sed='
13686 /Import File Strings/,/^$/ {
13688 s/^0 *\([^ ]*\) *$/\1/
13692 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13693 # Check for a 64-bit object if we didn't find anything.
13694 if test -z "$lt_cv_aix_libpath__CXX"; then
13695 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13698 rm -f core conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext conftest.$ac_ext
13700 if test -z "$lt_cv_aix_libpath__CXX"; then
13701 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13706 aix_libpath=$lt_cv_aix_libpath__CXX
13709 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13710 # Warning - without using the other run time loading flags,
13711 # -berok will link without error, but may produce a broken library.
13712 no_undefined_flag_CXX=' $wl-bernotok'
13713 allow_undefined_flag_CXX=' $wl-berok'
13714 if test yes = "$with_gnu_ld"; then
13715 # We only use this code for GNU lds that support --whole-archive.
13716 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13718 # Exported symbols can be pulled into shared objects from archives
13719 whole_archive_flag_spec_CXX='$convenience'
13721 archive_cmds_need_lc_CXX=yes
13722 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13723 # -brtl affects multiple linker settings, -berok does not and is overridden later
13724 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13725 if test svr4 != "$with_aix_soname"; then
13726 # This is similar to how AIX traditionally builds its shared
13727 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13728 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13730 if test aix != "$with_aix_soname"; then
13731 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13733 # used by -dlpreopen to get the symbols
13734 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13736 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13743 allow_undefined_flag_CXX=unsupported
13744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13745 # support --undefined. This deserves some investigation. FIXME
13746 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13753 case $cc_basename in
13755 # FIXME: insert proper C++ library support
13761 cygwin* | mingw* | pw32* | cegcc*)
13762 case $GXX,$cc_basename in
13765 # hardcode_libdir_flag_spec is actually meaningless, as there is
13766 # no search path for DLLs.
13767 hardcode_libdir_flag_spec_CXX=' '
13768 allow_undefined_flag_CXX=unsupported
13769 always_export_symbols_CXX=yes
13770 file_list_spec_CXX='@'
13771 # Tell ltmain to make .lib files, not .a files.
13773 # Tell ltmain to make .dll files, not .so files.
13775 # FIXME: Setting linknames here is a bad hack.
13776 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13777 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13778 cp "$export_symbols" "$output_objdir/$soname.def";
13779 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13781 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13783 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13785 # The linker will not automatically build a static lib if we build a DLL.
13786 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13787 enable_shared_with_static_runtimes_CXX=yes
13789 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13790 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13791 lt_tool_outputfile="@TOOL_OUTPUT@"~
13792 case $lt_outputfile in
13795 lt_outputfile=$lt_outputfile.exe
13796 lt_tool_outputfile=$lt_tool_outputfile.exe
13799 func_to_tool_file "$lt_outputfile"~
13800 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13801 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13802 $RM "$lt_outputfile.manifest";
13807 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13808 # as there is no search path for DLLs.
13809 hardcode_libdir_flag_spec_CXX='-L$libdir'
13810 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13811 allow_undefined_flag_CXX=unsupported
13812 always_export_symbols_CXX=no
13813 enable_shared_with_static_runtimes_CXX=yes
13815 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13816 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13817 # If the export-symbols file already is a .def file, use it as
13818 # is; otherwise, prepend EXPORTS...
13819 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13820 cp $export_symbols $output_objdir/$soname.def;
13822 echo EXPORTS > $output_objdir/$soname.def;
13823 cat $export_symbols >> $output_objdir/$soname.def;
13825 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13832 darwin* | rhapsody*)
13835 archive_cmds_need_lc_CXX=no
13836 hardcode_direct_CXX=no
13837 hardcode_automatic_CXX=yes
13838 hardcode_shlibpath_var_CXX=unsupported
13839 if test yes = "$lt_cv_ld_force_load"; then
13840 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13843 whole_archive_flag_spec_CXX=''
13845 link_all_deplibs_CXX=yes
13846 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13847 case $cc_basename in
13848 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13849 *) _lt_dar_can_shared=$GCC ;;
13851 if test yes = "$_lt_dar_can_shared"; then
13852 output_verbose_link_cmd=func_echo_all
13853 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13854 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13855 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
13856 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13857 if test yes != "$lt_cv_apple_cc_single_mod"; then
13858 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
13859 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
13869 hardcode_libdir_flag_spec_CXX='-L$libdir'
13870 hardcode_minus_L_CXX=yes
13871 allow_undefined_flag_CXX=unsupported
13873 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13874 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13875 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13876 $ECHO EXPORTS >> $output_objdir/$libname.def~
13877 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13878 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13879 emximp -o $lib $output_objdir/$libname.def'
13880 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13881 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13882 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13883 $ECHO EXPORTS >> $output_objdir/$libname.def~
13884 prefix_cmds="$SED"~
13885 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13886 prefix_cmds="$prefix_cmds -e 1d";
13888 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13889 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13890 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13891 emximp -o $lib $output_objdir/$libname.def'
13892 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13893 enable_shared_with_static_runtimes_CXX=yes
13897 case $cc_basename in
13899 # FIXME: insert proper C++ library support
13903 # Green Hills C++ Compiler
13904 # FIXME: insert proper C++ library support
13908 # FIXME: insert proper C++ library support
13915 # C++ shared libraries reported to be fairly broken before
13921 archive_cmds_need_lc_CXX=no
13924 freebsd* | dragonfly*)
13925 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13931 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13932 link_all_deplibs_CXX=yes
13936 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13937 hardcode_libdir_separator_CXX=:
13938 export_dynamic_flag_spec_CXX='$wl-E'
13939 hardcode_direct_CXX=yes
13940 hardcode_minus_L_CXX=yes # Not in the search PATH,
13941 # but as the default
13942 # location of the library.
13944 case $cc_basename in
13946 # FIXME: insert proper C++ library support
13950 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13951 # Commands to make compiler produce verbose output that lists
13952 # what "hidden" libraries, object files and flags are used when
13953 # linking a shared library.
13955 # There doesn't appear to be a way to prevent this compiler from
13956 # explicitly linking system object files so we need to strip them
13957 # from the output so that they don't get included in the library
13959 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13962 if test yes = "$GXX"; then
13963 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13965 # FIXME: insert proper C++ library support
13973 if test no = "$with_gnu_ld"; then
13974 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13975 hardcode_libdir_separator_CXX=:
13981 export_dynamic_flag_spec_CXX='$wl-E'
13987 hardcode_direct_CXX=no
13988 hardcode_shlibpath_var_CXX=no
13991 hardcode_direct_CXX=yes
13992 hardcode_direct_absolute_CXX=yes
13993 hardcode_minus_L_CXX=yes # Not in the search PATH,
13994 # but as the default
13995 # location of the library.
13999 case $cc_basename in
14001 # FIXME: insert proper C++ library support
14007 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14010 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14013 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14016 # Commands to make compiler produce verbose output that lists
14017 # what "hidden" libraries, object files and flags are used when
14018 # linking a shared library.
14020 # There doesn't appear to be a way to prevent this compiler from
14021 # explicitly linking system object files so we need to strip them
14022 # from the output so that they don't get included in the library
14024 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14027 if test yes = "$GXX"; then
14028 if test no = "$with_gnu_ld"; then
14031 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14034 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14037 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14042 # FIXME: insert proper C++ library support
14050 hardcode_direct_CXX=no
14051 hardcode_shlibpath_var_CXX=no
14052 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14053 export_dynamic_flag_spec_CXX='$wl-E'
14054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14055 # Instead, shared libraries are loaded at an image base (0x10000000 by
14056 # default) and relocated if they conflict, which is a slow very memory
14057 # consuming and fragmenting process. To avoid this, we pick a random,
14058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14059 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14060 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14061 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14064 case $cc_basename in
14067 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14069 # Archives containing C++ object files must be created using
14070 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14071 # necessary to make sure instantiated templates are included
14073 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14076 if test yes = "$GXX"; then
14077 if test no = "$with_gnu_ld"; then
14078 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14080 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14083 link_all_deplibs_CXX=yes
14086 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14087 hardcode_libdir_separator_CXX=:
14088 inherit_rpath_CXX=yes
14091 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14092 case $cc_basename in
14094 # Kuck and Associates, Inc. (KAI) C++ Compiler
14096 # KCC will only create a shared library if the output file
14097 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14098 # to its proper name (with version) after linking.
14099 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14100 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14101 # Commands to make compiler produce verbose output that lists
14102 # what "hidden" libraries, object files and flags are used when
14103 # linking a shared library.
14105 # There doesn't appear to be a way to prevent this compiler from
14106 # explicitly linking system object files so we need to strip them
14107 # from the output so that they don't get included in the library
14109 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14111 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14112 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14114 # Archives containing C++ object files must be created using
14115 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14116 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14121 # version 8.0 and above of icpc choke on multiply defined symbols
14122 # if we add $predep_objects and $postdep_objects, however 7.1 and
14123 # earlier do not add the objects themselves.
14124 case `$CC -V 2>&1` in
14126 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14127 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14129 *) # Version 8.0 or newer
14132 ia64*) tmp_idyn=' -i_dynamic';;
14134 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14135 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14138 archive_cmds_need_lc_CXX=no
14139 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14140 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14141 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14144 # Portland Group C++ compiler
14146 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14147 prelink_cmds_CXX='tpldir=Template.dir~
14149 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14150 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14151 old_archive_cmds_CXX='tpldir=Template.dir~
14153 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14154 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14156 archive_cmds_CXX='tpldir=Template.dir~
14158 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14159 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14160 archive_expsym_cmds_CXX='tpldir=Template.dir~
14162 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14163 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14165 *) # Version 6 and above use weak symbols
14166 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14167 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14171 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14172 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14173 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14177 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14178 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
14180 runpath_var=LD_RUN_PATH
14181 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14182 hardcode_libdir_separator_CXX=:
14184 # Commands to make compiler produce verbose output that lists
14185 # what "hidden" libraries, object files and flags are used when
14186 # linking a shared library.
14188 # There doesn't appear to be a way to prevent this compiler from
14189 # explicitly linking system object files so we need to strip them
14190 # from the output so that they don't get included in the library
14192 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14194 xl* | mpixl* | bgxl*)
14195 # IBM XL 8.0 on PPC, with GNU ld
14196 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14197 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14198 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14199 if test yes = "$supports_anon_versioning"; then
14200 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14201 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14202 echo "local: *; };" >> $output_objdir/$libname.ver~
14203 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14207 case `$CC -V 2>&1 | sed 5q` in
14210 no_undefined_flag_CXX=' -zdefs'
14211 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14212 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
14213 hardcode_libdir_flag_spec_CXX='-R$libdir'
14214 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14215 compiler_needs_object_CXX=yes
14217 # Not sure whether something based on
14218 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14220 output_verbose_link_cmd='func_echo_all'
14222 # Archives containing C++ object files must be created using
14223 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14224 # necessary to make sure instantiated templates are included
14226 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14234 # FIXME: insert proper C++ library support
14239 # FIXME: insert proper C++ library support
14244 case $cc_basename in
14246 # FIXME: insert proper C++ library support
14250 # FIXME: insert proper C++ library support
14257 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14258 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14260 hardcode_libdir_flag_spec_CXX='-R$libdir'
14261 hardcode_direct_CXX=yes
14262 hardcode_shlibpath_var_CXX=no
14264 # Workaround some broken pre-1.5 toolchains
14265 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14272 openbsd* | bitrig*)
14273 if test -f /usr/libexec/ld.so; then
14274 hardcode_direct_CXX=yes
14275 hardcode_shlibpath_var_CXX=no
14276 hardcode_direct_absolute_CXX=yes
14277 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14278 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14279 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14280 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14281 export_dynamic_flag_spec_CXX='$wl-E'
14282 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14284 output_verbose_link_cmd=func_echo_all
14290 osf3* | osf4* | osf5*)
14291 case $cc_basename in
14293 # Kuck and Associates, Inc. (KAI) C++ Compiler
14295 # KCC will only create a shared library if the output file
14296 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14297 # to its proper name (with version) after linking.
14298 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14300 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14301 hardcode_libdir_separator_CXX=:
14303 # Archives containing C++ object files must be created using
14304 # the KAI C++ compiler.
14306 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14307 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14311 # Rational C++ 2.4.1
14312 # FIXME: insert proper C++ library support
14318 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14319 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14320 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14323 allow_undefined_flag_CXX=' -expect_unresolved \*'
14324 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14325 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14326 echo "-hidden">> $lib.exp~
14327 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14329 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14333 hardcode_libdir_separator_CXX=:
14335 # Commands to make compiler produce verbose output that lists
14336 # what "hidden" libraries, object files and flags are used when
14337 # linking a shared library.
14339 # There doesn't appear to be a way to prevent this compiler from
14340 # explicitly linking system object files so we need to strip them
14341 # from the output so that they don't get included in the library
14343 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14346 if test yes,no = "$GXX,$with_gnu_ld"; then
14347 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14350 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14353 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14357 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14358 hardcode_libdir_separator_CXX=:
14360 # Commands to make compiler produce verbose output that lists
14361 # what "hidden" libraries, object files and flags are used when
14362 # linking a shared library.
14363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14366 # FIXME: insert proper C++ library support
14374 # FIXME: insert proper C++ library support
14379 case $cc_basename in
14382 # FIXME: insert proper C++ library support
14387 # FIXME: insert proper C++ library support
14391 # FIXME: insert proper C++ library support
14398 case $cc_basename in
14400 # Sun C++ 4.2, 5.x and Centerline C++
14401 archive_cmds_need_lc_CXX=yes
14402 no_undefined_flag_CXX=' -zdefs'
14403 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14404 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14405 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14407 hardcode_libdir_flag_spec_CXX='-R$libdir'
14408 hardcode_shlibpath_var_CXX=no
14410 solaris2.[0-5] | solaris2.[0-5].*) ;;
14412 # The compiler driver will combine and reorder linker options,
14413 # but understands '-z linker_flag'.
14414 # Supported since Solaris 2.6 (maybe 2.5.1?)
14415 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14418 link_all_deplibs_CXX=yes
14420 output_verbose_link_cmd='func_echo_all'
14422 # Archives containing C++ object files must be created using
14423 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14424 # necessary to make sure instantiated templates are included
14426 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14429 # Green Hills C++ Compiler
14430 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14432 # The C++ compiler must be used to create the archive.
14433 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14436 # GNU C++ compiler with Solaris linker
14437 if test yes,no = "$GXX,$with_gnu_ld"; then
14438 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14439 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14440 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14441 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14442 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14444 # Commands to make compiler produce verbose output that lists
14445 # what "hidden" libraries, object files and flags are used when
14446 # linking a shared library.
14447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14449 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14451 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14452 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14453 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14455 # Commands to make compiler produce verbose output that lists
14456 # what "hidden" libraries, object files and flags are used when
14457 # linking a shared library.
14458 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14461 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14463 solaris2.[0-5] | solaris2.[0-5].*) ;;
14465 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14474 no_undefined_flag_CXX='$wl-z,text'
14475 archive_cmds_need_lc_CXX=no
14476 hardcode_shlibpath_var_CXX=no
14477 runpath_var='LD_RUN_PATH'
14479 case $cc_basename in
14481 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14482 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14485 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14486 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 sysv5* | sco3.2v5* | sco5v6*)
14492 # Note: We CANNOT use -z defs as we might desire, because we do not
14493 # link with -lc, and that would cause any symbols used from libc to
14494 # always be unresolved, which means just about no library would
14495 # ever link correctly. If we're not using GNU ld we use -z text
14496 # though, which does catch some bad symbols but isn't as heavy-handed
14498 no_undefined_flag_CXX='$wl-z,text'
14499 allow_undefined_flag_CXX='$wl-z,nodefs'
14500 archive_cmds_need_lc_CXX=no
14501 hardcode_shlibpath_var_CXX=no
14502 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14503 hardcode_libdir_separator_CXX=':'
14504 link_all_deplibs_CXX=yes
14505 export_dynamic_flag_spec_CXX='$wl-Bexport'
14506 runpath_var='LD_RUN_PATH'
14508 case $cc_basename in
14510 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14512 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14513 '"$old_archive_cmds_CXX"
14514 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14515 '"$reload_cmds_CXX"
14518 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14519 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14525 case $cc_basename in
14527 # NonStop-UX NCC 3.20
14528 # FIXME: insert proper C++ library support
14532 # FIXME: insert proper C++ library support
14539 # FIXME: insert proper C++ library support
14544 # FIXME: insert proper C++ library support
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14550 $as_echo "$ld_shlibs_CXX" >&6; }
14551 test no = "$ld_shlibs_CXX" && can_build_shared=no
14557 ## There is no encapsulation within the following macros, do not change
14558 ## the running order or otherwise move them around unless you know exactly
14559 ## what you are doing...
14560 # Dependencies to place before and after the object being linked:
14561 predep_objects_CXX=
14562 postdep_objects_CXX=
14565 compiler_lib_search_path_CXX=
14567 cat > conftest.$ac_ext <<_LT_EOF
14571 Foo (void) { a = 0; }
14578 _lt_libdeps_save_CFLAGS=$CFLAGS
14579 case "$CC $CFLAGS " in #(
14580 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14581 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14582 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14586 (eval $ac_compile) 2>&5
14588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14589 test $ac_status = 0; }; then
14590 # Parse the compiler output and extract the necessary
14591 # objects, libraries and library flags.
14593 # Sentinel used to keep track of whether or not we are before
14594 # the conftest object file.
14595 pre_test_object_deps_done=no
14597 for p in `eval "$output_verbose_link_cmd"`; do
14601 # Some compilers place space between "-{L,R}" and the path.
14602 # Remove the space.
14603 if test x-L = "$p" ||
14604 test x-R = "$p"; then
14609 # Expand the sysroot to ease extracting the directories later.
14610 if test -z "$prev"; then
14612 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14613 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14614 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14618 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14620 if test no = "$pre_test_object_deps_done"; then
14623 # Internal compiler library paths should come after those
14624 # provided the user. The postdeps already come after the
14625 # user supplied libs so there is no need to process them.
14626 if test -z "$compiler_lib_search_path_CXX"; then
14627 compiler_lib_search_path_CXX=$prev$p
14629 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14632 # The "-l" case would never come before the object being
14633 # linked, so don't bother handling this case.
14636 if test -z "$postdeps_CXX"; then
14637 postdeps_CXX=$prev$p
14639 postdeps_CXX="${postdeps_CXX} $prev$p"
14645 *.lto.$objext) ;; # Ignore GCC LTO objects
14647 # This assumes that the test object file only shows up
14648 # once in the compiler output.
14649 if test "$p" = "conftest.$objext"; then
14650 pre_test_object_deps_done=yes
14654 if test no = "$pre_test_object_deps_done"; then
14655 if test -z "$predep_objects_CXX"; then
14656 predep_objects_CXX=$p
14658 predep_objects_CXX="$predep_objects_CXX $p"
14661 if test -z "$postdep_objects_CXX"; then
14662 postdep_objects_CXX=$p
14664 postdep_objects_CXX="$postdep_objects_CXX $p"
14669 *) ;; # Ignore the rest.
14677 echo "libtool.m4: error: problem compiling CXX test program"
14680 $RM -f confest.$objext
14681 CFLAGS=$_lt_libdeps_save_CFLAGS
14683 # PORTME: override above test on systems where it is broken
14686 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14687 # hack all around it, let's just trust "g++" to DTRT.
14688 predep_objects_CXX=
14689 postdep_objects_CXX=
14695 case " $postdeps_CXX " in
14696 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14698 compiler_lib_search_dirs_CXX=
14699 if test -n "${compiler_lib_search_path_CXX}"; then
14700 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14733 lt_prog_compiler_wl_CXX=
14734 lt_prog_compiler_pic_CXX=
14735 lt_prog_compiler_static_CXX=
14738 # C++ specific cases for pic, static, wl, etc.
14739 if test yes = "$GXX"; then
14740 lt_prog_compiler_wl_CXX='-Wl,'
14741 lt_prog_compiler_static_CXX='-static'
14745 # All AIX code is PIC.
14746 if test ia64 = "$host_cpu"; then
14747 # AIX 5 now supports IA64 processor
14748 lt_prog_compiler_static_CXX='-Bstatic'
14750 lt_prog_compiler_pic_CXX='-fPIC'
14756 # see comment about AmigaOS4 .so support
14757 lt_prog_compiler_pic_CXX='-fPIC'
14760 # FIXME: we need at least 68020 code to build shared libraries, but
14761 # adding the '-m68020' flag to GCC prevents building anything better,
14763 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14768 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14769 # PIC is the default for these OSes.
14771 mingw* | cygwin* | os2* | pw32* | cegcc*)
14772 # This hack is so that the source file can tell whether it is being
14773 # built for inclusion in a dll (and should export symbols for example).
14774 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14775 # (--disable-auto-import) libraries
14776 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14779 lt_prog_compiler_static_CXX='$wl-static'
14783 darwin* | rhapsody*)
14784 # PIC is the default on this platform
14785 # Common symbols not allowed in MH_DYLIB files
14786 lt_prog_compiler_pic_CXX='-fno-common'
14789 # DJGPP does not support shared libraries at all
14790 lt_prog_compiler_pic_CXX=
14793 # PIC is the default for Haiku.
14794 # The "-static" flag exists, but is broken.
14795 lt_prog_compiler_static_CXX=
14798 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14799 # Instead, we relocate shared libraries at runtime.
14802 if test -d /usr/nec; then
14803 lt_prog_compiler_pic_CXX=-Kconform_pic
14807 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14808 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14809 # sets the default TLS model and affects inlining.
14814 lt_prog_compiler_pic_CXX='-fPIC'
14819 # QNX uses GNU C++, but need to define -shared option too, otherwise
14820 # it will coredump.
14821 lt_prog_compiler_pic_CXX='-fPIC -shared'
14824 lt_prog_compiler_pic_CXX='-fPIC'
14830 # All AIX code is PIC.
14831 if test ia64 = "$host_cpu"; then
14832 # AIX 5 now supports IA64 processor
14833 lt_prog_compiler_static_CXX='-Bstatic'
14835 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14839 case $cc_basename in
14841 # Green Hills C++ Compiler
14842 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14846 mingw* | cygwin* | os2* | pw32* | cegcc*)
14847 # This hack is so that the source file can tell whether it is being
14848 # built for inclusion in a dll (and should export symbols for example).
14849 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14852 case $cc_basename in
14854 lt_prog_compiler_pic_CXX='-KPIC'
14857 # Green Hills C++ Compiler
14858 lt_prog_compiler_pic_CXX='-pic'
14864 freebsd* | dragonfly*)
14865 # FreeBSD uses GNU C++
14867 hpux9* | hpux10* | hpux11*)
14868 case $cc_basename in
14870 lt_prog_compiler_wl_CXX='-Wl,'
14871 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14872 if test ia64 != "$host_cpu"; then
14873 lt_prog_compiler_pic_CXX='+Z'
14877 lt_prog_compiler_wl_CXX='-Wl,'
14878 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14884 lt_prog_compiler_pic_CXX='+Z'
14893 # This is c89, which is MS Visual C++ (no shared libs)
14894 # Anyone wants to do a port?
14896 irix5* | irix6* | nonstopux*)
14897 case $cc_basename in
14899 lt_prog_compiler_wl_CXX='-Wl,'
14900 lt_prog_compiler_static_CXX='-non_shared'
14901 # CC pic flag -KPIC is the default.
14907 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14908 case $cc_basename in
14911 lt_prog_compiler_wl_CXX='--backend -Wl,'
14912 lt_prog_compiler_pic_CXX='-fPIC'
14915 # old Intel C++ for x86_64, which still supported -KPIC.
14916 lt_prog_compiler_wl_CXX='-Wl,'
14917 lt_prog_compiler_pic_CXX='-KPIC'
14918 lt_prog_compiler_static_CXX='-static'
14921 # Intel C++, used to be incompatible with GCC.
14922 # ICC 10 doesn't accept -KPIC any more.
14923 lt_prog_compiler_wl_CXX='-Wl,'
14924 lt_prog_compiler_pic_CXX='-fPIC'
14925 lt_prog_compiler_static_CXX='-static'
14928 # Portland Group C++ compiler
14929 lt_prog_compiler_wl_CXX='-Wl,'
14930 lt_prog_compiler_pic_CXX='-fpic'
14931 lt_prog_compiler_static_CXX='-Bstatic'
14935 # Make sure the PIC flag is empty. It appears that all Alpha
14936 # Linux and Compaq Tru64 Unix objects are PIC.
14937 lt_prog_compiler_pic_CXX=
14938 lt_prog_compiler_static_CXX='-non_shared'
14940 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14941 # IBM XL 8.0, 9.0 on PPC and BlueGene
14942 lt_prog_compiler_wl_CXX='-Wl,'
14943 lt_prog_compiler_pic_CXX='-qpic'
14944 lt_prog_compiler_static_CXX='-qstaticlink'
14947 case `$CC -V 2>&1 | sed 5q` in
14950 lt_prog_compiler_pic_CXX='-KPIC'
14951 lt_prog_compiler_static_CXX='-Bstatic'
14952 lt_prog_compiler_wl_CXX='-Qoption ld '
14963 case $cc_basename in
14965 lt_prog_compiler_pic_CXX='-W c,exportall'
14974 # QNX uses GNU C++, but need to define -shared option too, otherwise
14975 # it will coredump.
14976 lt_prog_compiler_pic_CXX='-fPIC -shared'
14978 osf3* | osf4* | osf5*)
14979 case $cc_basename in
14981 lt_prog_compiler_wl_CXX='--backend -Wl,'
14984 # Rational C++ 2.4.1
14985 lt_prog_compiler_pic_CXX='-pic'
14988 # Digital/Compaq C++
14989 lt_prog_compiler_wl_CXX='-Wl,'
14990 # Make sure the PIC flag is empty. It appears that all Alpha
14991 # Linux and Compaq Tru64 Unix objects are PIC.
14992 lt_prog_compiler_pic_CXX=
14993 lt_prog_compiler_static_CXX='-non_shared'
15002 case $cc_basename in
15004 # Sun C++ 4.2, 5.x and Centerline C++
15005 lt_prog_compiler_pic_CXX='-KPIC'
15006 lt_prog_compiler_static_CXX='-Bstatic'
15007 lt_prog_compiler_wl_CXX='-Qoption ld '
15010 # Green Hills C++ Compiler
15011 lt_prog_compiler_pic_CXX='-PIC'
15018 case $cc_basename in
15021 lt_prog_compiler_pic_CXX='-pic'
15022 lt_prog_compiler_static_CXX='-Bstatic'
15026 lt_prog_compiler_pic_CXX='-pic'
15032 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15033 case $cc_basename in
15035 lt_prog_compiler_wl_CXX='-Wl,'
15036 lt_prog_compiler_pic_CXX='-KPIC'
15037 lt_prog_compiler_static_CXX='-Bstatic'
15042 case $cc_basename in
15044 # NonStop-UX NCC 3.20
15045 lt_prog_compiler_pic_CXX='-KPIC'
15054 lt_prog_compiler_can_build_shared_CXX=no
15060 # For platforms that do not support PIC, -DPIC is meaningless:
15062 lt_prog_compiler_pic_CXX=
15065 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15070 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15071 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15072 $as_echo_n "(cached) " >&6
15074 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15077 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15078 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15081 # Check to make sure the PIC flag actually works.
15083 if test -n "$lt_prog_compiler_pic_CXX"; then
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15085 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15086 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15087 $as_echo_n "(cached) " >&6
15089 lt_cv_prog_compiler_pic_works_CXX=no
15090 ac_outfile=conftest.$ac_objext
15091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15092 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15093 # Insert the option either (1) after the last *FLAGS variable, or
15094 # (2) before a word containing "conftest.", or (3) at the end.
15095 # Note that $ac_compile itself does not contain backslashes and begins
15096 # with a dollar sign (not a hyphen), so the echo should work correctly.
15097 # The option is referenced via a variable to avoid confusing sed.
15098 lt_compile=`echo "$ac_compile" | $SED \
15099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15101 -e 's:$: $lt_compiler_flag:'`
15102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15103 (eval "$lt_compile" 2>conftest.err)
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 if (exit $ac_status) && test -s "$ac_outfile"; then
15108 # The compiler can only warn and ignore the option if not recognized
15109 # So say no if there are warnings other than the usual output.
15110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15112 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15113 lt_cv_prog_compiler_pic_works_CXX=yes
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15120 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15122 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15123 case $lt_prog_compiler_pic_CXX in
15125 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15128 lt_prog_compiler_pic_CXX=
15129 lt_prog_compiler_can_build_shared_CXX=no
15139 # Check to make sure the static flag actually works.
15141 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15143 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15144 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15145 $as_echo_n "(cached) " >&6
15147 lt_cv_prog_compiler_static_works_CXX=no
15148 save_LDFLAGS=$LDFLAGS
15149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15150 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15152 # The linker can only warn and ignore the option if not recognized
15153 # So say no if there are warnings
15154 if test -s conftest.err; then
15155 # Append any errors to the config.log.
15156 cat conftest.err 1>&5
15157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15159 if diff conftest.exp conftest.er2 >/dev/null; then
15160 lt_cv_prog_compiler_static_works_CXX=yes
15163 lt_cv_prog_compiler_static_works_CXX=yes
15167 LDFLAGS=$save_LDFLAGS
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15171 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15173 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15176 lt_prog_compiler_static_CXX=
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15184 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15185 $as_echo_n "(cached) " >&6
15187 lt_cv_prog_compiler_c_o_CXX=no
15188 $RM -r conftest 2>/dev/null
15192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15194 lt_compiler_flag="-o out/conftest2.$ac_objext"
15195 # Insert the option either (1) after the last *FLAGS variable, or
15196 # (2) before a word containing "conftest.", or (3) at the end.
15197 # Note that $ac_compile itself does not contain backslashes and begins
15198 # with a dollar sign (not a hyphen), so the echo should work correctly.
15199 lt_compile=`echo "$ac_compile" | $SED \
15200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15202 -e 's:$: $lt_compiler_flag:'`
15203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15204 (eval "$lt_compile" 2>out/conftest.err)
15206 cat out/conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15210 # The compiler can only warn and ignore the option if not recognized
15211 # So say no if there are warnings
15212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15215 lt_cv_prog_compiler_c_o_CXX=yes
15220 # SGI C++ compiler will create directory out/ii_files/ for
15221 # template instantiation
15222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15223 $RM out/* && rmdir out
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15230 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15235 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15236 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15237 $as_echo_n "(cached) " >&6
15239 lt_cv_prog_compiler_c_o_CXX=no
15240 $RM -r conftest 2>/dev/null
15244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15246 lt_compiler_flag="-o out/conftest2.$ac_objext"
15247 # Insert the option either (1) after the last *FLAGS variable, or
15248 # (2) before a word containing "conftest.", or (3) at the end.
15249 # Note that $ac_compile itself does not contain backslashes and begins
15250 # with a dollar sign (not a hyphen), so the echo should work correctly.
15251 lt_compile=`echo "$ac_compile" | $SED \
15252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15254 -e 's:$: $lt_compiler_flag:'`
15255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15256 (eval "$lt_compile" 2>out/conftest.err)
15258 cat out/conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15262 # The compiler can only warn and ignore the option if not recognized
15263 # So say no if there are warnings
15264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15267 lt_cv_prog_compiler_c_o_CXX=yes
15272 # SGI C++ compiler will create directory out/ii_files/ for
15273 # template instantiation
15274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15275 $RM out/* && rmdir out
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15282 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15287 hard_links=nottested
15288 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15289 # do not overwrite the value of need_locks provided by the user
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15291 $as_echo_n "checking if we can lock with hard links... " >&6; }
15294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15296 ln conftest.a conftest.b 2>&5 || hard_links=no
15297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15299 $as_echo "$hard_links" >&6; }
15300 if test no = "$hard_links"; then
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15302 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15312 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15314 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15315 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15318 # If we're using GNU nm, then we don't want the "-C" option.
15319 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15320 # Without the "-l" option, or with the "-B" option, AIX nm treats
15321 # weak defined symbols like other global defined symbols, whereas
15322 # GNU nm marks them as "W".
15323 # While the 'weak' keyword is ignored in the Export File, we need
15324 # it in the Import File for the 'aix-soname' feature, so we have
15325 # to replace the "-B" option with "-P" for AIX nm.
15326 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15327 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15329 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15333 export_symbols_cmds_CXX=$ltdll_cmds
15335 cygwin* | mingw* | cegcc*)
15336 case $cc_basename in
15338 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15341 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15342 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15347 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15352 $as_echo "$ld_shlibs_CXX" >&6; }
15353 test no = "$ld_shlibs_CXX" && can_build_shared=no
15355 with_gnu_ld_CXX=$with_gnu_ld
15363 # Do we need to explicitly link libc?
15365 case "x$archive_cmds_need_lc_CXX" in
15367 # Assume -lc should be added
15368 archive_cmds_need_lc_CXX=yes
15370 if test yes,yes = "$GCC,$enable_shared"; then
15371 case $archive_cmds_CXX in
15373 # FIXME: we may have to deal with multi-command sequences.
15376 # Test whether the compiler implicitly links with -lc since on some
15377 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15378 # to ld, don't add -lc before -lgcc.
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15380 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15381 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15382 $as_echo_n "(cached) " >&6
15385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15388 (eval $ac_compile) 2>&5
15390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15391 test $ac_status = 0; } 2>conftest.err; then
15394 libobjs=conftest.$ac_objext
15396 wl=$lt_prog_compiler_wl_CXX
15397 pic_flag=$lt_prog_compiler_pic_CXX
15403 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15404 allow_undefined_flag_CXX=
15405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15406 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15409 test $ac_status = 0; }
15411 lt_cv_archive_cmds_need_lc_CXX=no
15413 lt_cv_archive_cmds_need_lc_CXX=yes
15415 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15417 cat conftest.err 1>&5
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15423 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15424 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15493 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15495 library_names_spec=
15496 libname_spec='lib$name'
15500 postuninstall_cmds=
15504 shlibpath_overrides_runpath=unknown
15506 dynamic_linker="$host_os ld.so"
15507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15508 need_lib_prefix=unknown
15509 hardcode_into_libs=no
15511 # when you set need_version to no, make sure it does not cause -set_version
15512 # flags to be left without arguments
15513 need_version=unknown
15519 version_type=linux # correct to gnu/linux during the next big refactor
15520 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15521 shlibpath_var=LIBPATH
15523 # AIX 3 has no versioning support, so we append a major version to the name.
15524 soname_spec='$libname$release$shared_ext$major'
15528 version_type=linux # correct to gnu/linux during the next big refactor
15531 hardcode_into_libs=yes
15532 if test ia64 = "$host_cpu"; then
15533 # AIX 5 supports IA64
15534 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15535 shlibpath_var=LD_LIBRARY_PATH
15537 # With GCC up to 2.95.x, collect2 would create an import file
15538 # for dependence libraries. The import file would start with
15539 # the line '#! .'. This would cause the generated library to
15540 # depend on '.', always an invalid library. This was fixed in
15541 # development snapshots of GCC prior to 3.0.
15543 aix4 | aix4.[01] | aix4.[01].*)
15544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15546 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15549 can_build_shared=no
15553 # Using Import Files as archive members, it is possible to support
15554 # filename-based versioning of shared library archives on AIX. While
15555 # this would work for both with and without runtime linking, it will
15556 # prevent static linking of such archives. So we do filename-based
15557 # shared library versioning with .so extension only, which is used
15558 # when both runtime linking and shared linking is enabled.
15559 # Unfortunately, runtime linking may impact performance, so we do
15560 # not want this to be the default eventually. Also, we use the
15561 # versioned .so libs for executables only if there is the -brtl
15562 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15563 # To allow for filename-based versioning support, we need to create
15564 # libNAME.so.V as an archive file, containing:
15565 # *) an Import File, referring to the versioned filename of the
15566 # archive as well as the shared archive member, telling the
15567 # bitwidth (32 or 64) of that shared object, and providing the
15568 # list of exported symbols of that shared object, eventually
15569 # decorated with the 'weak' keyword
15570 # *) the shared object with the F_LOADONLY flag set, to really avoid
15571 # it being seen by the linker.
15572 # At run time we better use the real file rather than another symlink,
15573 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15575 case $with_aix_soname,$aix_use_runtimelinking in
15576 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15577 # soname into executable. Probably we can add versioning support to
15578 # collect2, so additional links can be useful in future.
15579 aix,yes) # traditional libtool
15580 dynamic_linker='AIX unversionable lib.so'
15581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15582 # instead of lib<name>.a to let people know that these are not
15583 # typical AIX shared libraries.
15584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15586 aix,no) # traditional AIX only
15587 dynamic_linker='AIX lib.a(lib.so.V)'
15588 # We preserve .a as extension for shared libraries through AIX4.2
15589 # and later when we are not doing run time linking.
15590 library_names_spec='$libname$release.a $libname.a'
15591 soname_spec='$libname$release$shared_ext$major'
15593 svr4,*) # full svr4 only
15594 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15595 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15596 # We do not specify a path in Import Files, so LIBPATH fires.
15597 shlibpath_overrides_runpath=yes
15599 *,yes) # both, prefer svr4
15600 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15601 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15602 # unpreferred sharedlib libNAME.a needs extra handling
15603 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15604 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15605 # We do not specify a path in Import Files, so LIBPATH fires.
15606 shlibpath_overrides_runpath=yes
15608 *,no) # both, prefer aix
15609 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15610 library_names_spec='$libname$release.a $libname.a'
15611 soname_spec='$libname$release$shared_ext$major'
15612 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15613 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15614 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15617 shlibpath_var=LIBPATH
15624 # Since July 2007 AmigaOS4 officially supports .so libraries.
15625 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15629 library_names_spec='$libname.ixlibrary $libname.a'
15630 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15631 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15637 library_names_spec='$libname$shared_ext'
15638 dynamic_linker="$host_os ld.so"
15639 shlibpath_var=LIBRARY_PATH
15643 version_type=linux # correct to gnu/linux during the next big refactor
15645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15646 soname_spec='$libname$release$shared_ext$major'
15647 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15650 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15651 # the default ld.so.conf also contains /usr/contrib/lib and
15652 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15653 # libtool to hard-code these into programs
15656 cygwin* | mingw* | pw32* | cegcc*)
15657 version_type=windows
15662 case $GCC,$cc_basename in
15665 library_names_spec='$libname.dll.a'
15666 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15667 postinstall_cmds='base_file=`basename \$file`~
15668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15669 dldir=$destdir/`dirname \$dlpath`~
15670 test -d \$dldir || mkdir -p \$dldir~
15671 $install_prog $dir/$dlname \$dldir/$dlname~
15672 chmod a+x \$dldir/$dlname~
15673 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15674 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15677 dlpath=$dir/\$dldll~
15679 shlibpath_overrides_runpath=yes
15683 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15684 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15688 # MinGW DLLs use traditional 'lib' prefix
15689 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15692 # pw32 DLLs use 'pw' prefix rather than 'lib'
15693 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15696 dynamic_linker='Win32 ld.exe'
15701 libname_spec='$name'
15702 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15703 library_names_spec='$libname.dll.lib'
15707 sys_lib_search_path_spec=
15710 for lt_path in $LIB
15713 # Let DOS variable expansion print the short 8.3 style file name.
15714 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15715 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15718 # Convert to MSYS style.
15719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15722 # Convert to unix form, then to dos form, then back to unix form
15723 # but this time dos style (no spaces!) so that the unix form looks
15724 # like /cygdrive/c/PROGRA~1:/cygdr...
15725 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15726 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15727 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15730 sys_lib_search_path_spec=$LIB
15731 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15732 # It is most probably a Windows format PATH.
15733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15737 # FIXME: find the short name or the path components, as spaces are
15738 # common. (e.g. "Program Files" -> "PROGRA~1")
15742 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15743 postinstall_cmds='base_file=`basename \$file`~
15744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15745 dldir=$destdir/`dirname \$dlpath`~
15746 test -d \$dldir || mkdir -p \$dldir~
15747 $install_prog $dir/$dlname \$dldir/$dlname'
15748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15749 dlpath=$dir/\$dldll~
15751 shlibpath_overrides_runpath=yes
15752 dynamic_linker='Win32 link.exe'
15756 # Assume MSVC wrapper
15757 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15758 dynamic_linker='Win32 ld.exe'
15761 # FIXME: first we should search . and the directory the executable is in
15765 darwin* | rhapsody*)
15766 dynamic_linker="$host_os dyld"
15767 version_type=darwin
15770 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
15771 soname_spec='$libname$release$major$shared_ext'
15772 shlibpath_overrides_runpath=yes
15773 shlibpath_var=DYLD_LIBRARY_PATH
15774 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
15776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15780 version_type=linux # correct to gnu/linux during the next big refactor
15783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15784 soname_spec='$libname$release$shared_ext$major'
15785 shlibpath_var=LD_LIBRARY_PATH
15788 freebsd* | dragonfly*)
15789 # DragonFly does not have aout. When/if they implement a new
15790 # versioning mechanism, adjust this.
15791 if test -x /usr/bin/objformat; then
15792 objformat=`/usr/bin/objformat`
15795 freebsd[23].*) objformat=aout ;;
15796 *) objformat=elf ;;
15799 # Handle Gentoo/FreeBSD as it was Linux
15800 case $host_vendor in
15802 version_type=linux ;;
15804 version_type=freebsd-$objformat ;;
15807 case $version_type in
15809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15810 soname_spec='$libname$release$shared_ext$major'
15815 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15820 soname_spec='${libname}${release}${shared_ext}$major'
15825 shlibpath_var=LD_LIBRARY_PATH
15828 shlibpath_overrides_runpath=yes
15830 freebsd3.[01]* | freebsdelf3.[01]*)
15831 shlibpath_overrides_runpath=yes
15832 hardcode_into_libs=yes
15834 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15835 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15836 shlibpath_overrides_runpath=no
15837 hardcode_into_libs=yes
15839 *) # from 4.6 on, and DragonFly
15840 shlibpath_overrides_runpath=yes
15841 hardcode_into_libs=yes
15847 version_type=linux # correct to gnu/linux during the next big refactor
15850 dynamic_linker="$host_os runtime_loader"
15851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15852 soname_spec='$libname$release$shared_ext$major'
15853 shlibpath_var=LIBRARY_PATH
15854 shlibpath_overrides_runpath=no
15855 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15856 hardcode_into_libs=yes
15859 hpux9* | hpux10* | hpux11*)
15860 # Give a soname corresponding to the major version so that dld.sl refuses to
15861 # link against other versions.
15868 hardcode_into_libs=yes
15869 dynamic_linker="$host_os dld.so"
15870 shlibpath_var=LD_LIBRARY_PATH
15871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15873 soname_spec='$libname$release$shared_ext$major'
15874 if test 32 = "$HPUX_IA64_MODE"; then
15875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15876 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15878 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15879 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15884 hardcode_into_libs=yes
15885 dynamic_linker="$host_os dld.sl"
15886 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15889 soname_spec='$libname$release$shared_ext$major'
15890 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15895 dynamic_linker="$host_os dld.sl"
15896 shlibpath_var=SHLIB_PATH
15897 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15899 soname_spec='$libname$release$shared_ext$major'
15902 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15903 postinstall_cmds='chmod 555 $lib'
15904 # or fails outright, so override atomically:
15905 install_override_mode=555
15909 version_type=linux # correct to gnu/linux during the next big refactor
15912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15913 soname_spec='$libname$release$shared_ext$major'
15914 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 shlibpath_overrides_runpath=no
15917 hardcode_into_libs=yes
15920 irix5* | irix6* | nonstopux*)
15922 nonstopux*) version_type=nonstopux ;;
15924 if test yes = "$lt_cv_prog_gnu_ld"; then
15925 version_type=linux # correct to gnu/linux during the next big refactor
15932 soname_spec='$libname$release$shared_ext$major'
15933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15935 irix5* | nonstopux*)
15936 libsuff= shlibsuff=
15939 case $LD in # libtool.m4 will add one of these switches to LD
15940 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15941 libsuff= shlibsuff= libmagic=32-bit;;
15942 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15943 libsuff=32 shlibsuff=N32 libmagic=N32;;
15944 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15945 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15946 *) libsuff= shlibsuff= libmagic=never-match;;
15950 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15951 shlibpath_overrides_runpath=no
15952 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15953 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15954 hardcode_into_libs=yes
15957 # No shared lib support for Linux oldld, aout, or coff.
15958 linux*oldld* | linux*aout* | linux*coff*)
15963 version_type=none # Android doesn't support versioned libraries.
15966 library_names_spec='$libname$release$shared_ext'
15967 soname_spec='$libname$release$shared_ext'
15969 shlibpath_var=LD_LIBRARY_PATH
15970 shlibpath_overrides_runpath=yes
15972 # This implies no fast_install, which is unacceptable.
15973 # Some rework will be needed to allow for fast_install
15974 # before this can be enabled.
15975 hardcode_into_libs=yes
15977 dynamic_linker='Android linker'
15978 # Don't embed -rpath directories since the linker doesn't support them.
15979 hardcode_libdir_flag_spec_CXX='-L$libdir'
15982 # This must be glibc/ELF.
15983 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15984 version_type=linux # correct to gnu/linux during the next big refactor
15987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15988 soname_spec='$libname$release$shared_ext$major'
15989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15990 shlibpath_var=LD_LIBRARY_PATH
15991 shlibpath_overrides_runpath=no
15993 # Some binutils ld are patched to set DT_RUNPATH
15994 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15995 $as_echo_n "(cached) " >&6
15997 lt_cv_shlibpath_overrides_runpath=no
15998 save_LDFLAGS=$LDFLAGS
15999 save_libdir=$libdir
16000 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16001 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003 /* end confdefs.h. */
16013 if ac_fn_cxx_try_link "$LINENO"; then :
16014 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16015 lt_cv_shlibpath_overrides_runpath=yes
16018 rm -f core conftest.err conftest.$ac_objext \
16019 conftest$ac_exeext conftest.$ac_ext
16020 LDFLAGS=$save_LDFLAGS
16021 libdir=$save_libdir
16025 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16027 # This implies no fast_install, which is unacceptable.
16028 # Some rework will be needed to allow for fast_install
16029 # before this can be enabled.
16030 hardcode_into_libs=yes
16032 # Ideally, we could use ldconfig to report *all* directores which are
16033 # searched for libraries, however this is still not possible. Aside from not
16034 # being certain /sbin/ldconfig is available, command
16035 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16036 # even though it is searched at run-time. Try to do the best guess by
16037 # appending ld.so.conf contents (and includes) to the search path.
16038 if test -f /etc/ld.so.conf; then
16039 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' ' '`
16040 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16043 # We used to test for /lib/ld.so.1 and disable shared libraries on
16044 # powerpc, because MkLinux only supported shared libraries with the
16045 # GNU dynamic linker. Since this was broken with cross compilers,
16046 # most powerpc-linux boxes support dynamic linking these days and
16047 # people can always --disable-shared, the test was removed, and we
16048 # assume the GNU/Linux dynamic linker is in use.
16049 dynamic_linker='GNU/Linux ld.so'
16056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16057 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16059 dynamic_linker='NetBSD (a.out) ld.so'
16061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16062 soname_spec='$libname$release$shared_ext$major'
16063 dynamic_linker='NetBSD ld.elf_so'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 shlibpath_overrides_runpath=yes
16067 hardcode_into_libs=yes
16071 version_type=linux # correct to gnu/linux during the next big refactor
16072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16073 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=yes
16081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16082 soname_spec='$libname$release$shared_ext$major'
16083 shlibpath_var=LD_LIBRARY_PATH
16084 shlibpath_overrides_runpath=no
16085 hardcode_into_libs=yes
16086 dynamic_linker='ldqnx.so'
16089 openbsd* | bitrig*)
16091 sys_lib_dlsearch_path_spec=/usr/lib
16093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16098 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16100 shlibpath_var=LD_LIBRARY_PATH
16101 shlibpath_overrides_runpath=yes
16105 libname_spec='$name'
16106 version_type=windows
16110 # OS/2 can only load a DLL with a base name of 8 characters or less.
16111 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16112 v=$($ECHO $release$versuffix | tr -d .-);
16113 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16114 $ECHO $n$v`$shared_ext'
16115 library_names_spec='${libname}_dll.$libext'
16116 dynamic_linker='OS/2 ld.exe'
16117 shlibpath_var=BEGINLIBPATH
16118 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16120 postinstall_cmds='base_file=`basename \$file`~
16121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16122 dldir=$destdir/`dirname \$dlpath`~
16123 test -d \$dldir || mkdir -p \$dldir~
16124 $install_prog $dir/$dlname \$dldir/$dlname~
16125 chmod a+x \$dldir/$dlname~
16126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16130 dlpath=$dir/\$dldll~
16134 osf3* | osf4* | osf5*)
16138 soname_spec='$libname$release$shared_ext$major'
16139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16140 shlibpath_var=LD_LIBRARY_PATH
16141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16150 version_type=linux # correct to gnu/linux during the next big refactor
16153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16154 soname_spec='$libname$release$shared_ext$major'
16155 shlibpath_var=LD_LIBRARY_PATH
16156 shlibpath_overrides_runpath=yes
16157 hardcode_into_libs=yes
16158 # ldd complains unless libraries are executable
16159 postinstall_cmds='chmod +x $lib'
16164 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16166 shlibpath_var=LD_LIBRARY_PATH
16167 shlibpath_overrides_runpath=yes
16168 if test yes = "$with_gnu_ld"; then
16175 version_type=linux # correct to gnu/linux during the next big refactor
16176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16177 soname_spec='$libname$release$shared_ext$major'
16178 shlibpath_var=LD_LIBRARY_PATH
16179 case $host_vendor in
16181 shlibpath_overrides_runpath=no
16183 runpath_var=LD_RUN_PATH
16191 shlibpath_overrides_runpath=no
16192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16198 if test -d /usr/nec; then
16199 version_type=linux # correct to gnu/linux during the next big refactor
16200 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16201 soname_spec='$libname$shared_ext.$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16206 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16211 soname_spec='$libname$release$shared_ext$major'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 shlibpath_overrides_runpath=yes
16214 hardcode_into_libs=yes
16215 if test yes = "$with_gnu_ld"; then
16216 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16218 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16221 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16225 sys_lib_dlsearch_path_spec='/usr/lib'
16229 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16230 version_type=linux # correct to gnu/linux during the next big refactor
16233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16234 shlibpath_var=LD_LIBRARY_PATH
16235 shlibpath_overrides_runpath=no
16236 hardcode_into_libs=yes
16240 version_type=linux # correct to gnu/linux during the next big refactor
16241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16242 soname_spec='$libname$release$shared_ext$major'
16243 shlibpath_var=LD_LIBRARY_PATH
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16251 $as_echo "$dynamic_linker" >&6; }
16252 test no = "$dynamic_linker" && can_build_shared=no
16254 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16255 if test yes = "$GCC"; then
16256 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16259 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16260 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16263 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16264 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16267 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16268 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16270 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16271 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16273 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16274 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16316 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16317 hardcode_action_CXX=
16318 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16319 test -n "$runpath_var_CXX" ||
16320 test yes = "$hardcode_automatic_CXX"; then
16322 # We can hardcode non-existent directories.
16323 if test no != "$hardcode_direct_CXX" &&
16324 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16325 # have to relink, otherwise we might link with an installed library
16326 # when we should be linking with a yet-to-be-installed one
16327 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16328 test no != "$hardcode_minus_L_CXX"; then
16329 # Linking always hardcodes the temporary library directory.
16330 hardcode_action_CXX=relink
16332 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16333 hardcode_action_CXX=immediate
16336 # We cannot hardcode anything, or else we can only hardcode existing
16338 hardcode_action_CXX=unsupported
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16341 $as_echo "$hardcode_action_CXX" >&6; }
16343 if test relink = "$hardcode_action_CXX" ||
16344 test yes = "$inherit_rpath_CXX"; then
16345 # Fast installation is not supported
16346 enable_fast_install=no
16347 elif test yes = "$shlibpath_overrides_runpath" ||
16348 test no = "$enable_shared"; then
16349 # Fast installation is not necessary
16350 enable_fast_install=needless
16359 fi # test -n "$compiler"
16362 CFLAGS=$lt_save_CFLAGS
16366 with_gnu_ld=$lt_save_with_gnu_ld
16367 lt_cv_path_LDCXX=$lt_cv_path_LD
16368 lt_cv_path_LD=$lt_save_path_LD
16369 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16370 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16371 fi # test yes != "$_lt_caught_CXX_error"
16374 ac_cpp='$CPP $CPPFLAGS'
16375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16382 if test "$GCC" = yes ; then
16383 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
16384 CFLAGS="$OLDCFLAGS -fexceptions"
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
16386 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16398 if ac_fn_c_try_link "$LINENO"; then :
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16400 $as_echo "yes" >&6; }
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
16405 rm -f core conftest.err conftest.$ac_objext \
16406 conftest$ac_exeext conftest.$ac_ext
16407 if test "x$CXXFLAGS" = x ; then
16408 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
16411 CFLAGS="${CFLAGS} -fno-strict-aliasing"
16412 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
16413 LDFLAGS="${LDFLAGS} -fno-strict-aliasing"
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16417 $as_echo_n "checking for ANSI C header files... " >&6; }
16418 if ${ac_cv_header_stdc+:} false; then :
16419 $as_echo_n "(cached) " >&6
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 #include <stdlib.h>
16424 #include <stdarg.h>
16425 #include <string.h>
16436 if ac_fn_c_try_compile "$LINENO"; then :
16437 ac_cv_header_stdc=yes
16439 ac_cv_header_stdc=no
16441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 if test $ac_cv_header_stdc = yes; then
16444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16447 #include <string.h>
16450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16451 $EGREP "memchr" >/dev/null 2>&1; then :
16454 ac_cv_header_stdc=no
16460 if test $ac_cv_header_stdc = yes; then
16461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16464 #include <stdlib.h>
16467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16468 $EGREP "free" >/dev/null 2>&1; then :
16471 ac_cv_header_stdc=no
16477 if test $ac_cv_header_stdc = yes; then
16478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16479 if test "$cross_compiling" = yes; then :
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16485 #include <stdlib.h>
16486 #if ((' ' & 0x0FF) == 0x020)
16487 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16488 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16490 # define ISLOWER(c) \
16491 (('a' <= (c) && (c) <= 'i') \
16492 || ('j' <= (c) && (c) <= 'r') \
16493 || ('s' <= (c) && (c) <= 'z'))
16494 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16497 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16502 for (i = 0; i < 256; i++)
16503 if (XOR (islower (i), ISLOWER (i))
16504 || toupper (i) != TOUPPER (i))
16509 if ac_fn_c_try_run "$LINENO"; then :
16512 ac_cv_header_stdc=no
16514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16515 conftest.$ac_objext conftest.beam conftest.$ac_ext
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16521 $as_echo "$ac_cv_header_stdc" >&6; }
16522 if test $ac_cv_header_stdc = yes; then
16524 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16531 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16532 if ${ac_cv_c_bigendian+:} false; then :
16533 $as_echo_n "(cached) " >&6
16535 ac_cv_c_bigendian=unknown
16536 # See if sys/param.h defines the BYTE_ORDER macro.
16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16539 #include <sys/types.h>
16540 #include <sys/param.h>
16545 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16546 bogus endian macros
16552 if ac_fn_c_try_compile "$LINENO"; then :
16553 # It does; now see whether it defined to BIG_ENDIAN or not.
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 #include <sys/types.h>
16557 #include <sys/param.h>
16562 #if BYTE_ORDER != BIG_ENDIAN
16569 if ac_fn_c_try_compile "$LINENO"; then :
16570 ac_cv_c_bigendian=yes
16572 ac_cv_c_bigendian=no
16574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577 if test $ac_cv_c_bigendian = unknown; then
16578 if test "$cross_compiling" = yes; then :
16579 echo $ac_n "cross-compiling... " 2>&6
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16584 /* Are we little or big endian? From Harbison&Steele. */
16588 char c[sizeof (long)];
16591 exit (u.c[sizeof (long) - 1] == 1);
16594 if ac_fn_c_try_run "$LINENO"; then :
16595 ac_cv_c_bigendian=no
16597 ac_cv_c_bigendian=yes
16599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16600 conftest.$ac_objext conftest.beam conftest.$ac_ext
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16606 $as_echo "$ac_cv_c_bigendian" >&6; }
16607 if test $ac_cv_c_bigendian = unknown; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16609 $as_echo_n "checking to probe for byte ordering... " >&6; }
16611 cat >conftest.c <<EOF
16612 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16613 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16614 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16615 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16616 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16617 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16618 int main() { _ascii (); _ebcdic (); return 0; }
16620 if test -f conftest.c ; then
16621 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
16622 if test `grep -l BIGenDianSyS conftest.o` ; then
16623 echo $ac_n ' big endian probe OK, ' 1>&6
16624 ac_cv_c_bigendian=yes
16626 if test `grep -l LiTTleEnDian conftest.o` ; then
16627 echo $ac_n ' little endian probe OK, ' 1>&6
16628 if test $ac_cv_c_bigendian = yes ; then
16629 ac_cv_c_bigendian=unknown;
16631 ac_cv_c_bigendian=no
16634 echo $ac_n 'guessing bigendian ... ' >&6
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16638 $as_echo "$ac_cv_c_bigendian" >&6; }
16640 if test $ac_cv_c_bigendian = yes; then
16642 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16649 cat >>confdefs.h <<_ACEOF
16650 #define BYTEORDER $BYTEORDER
16653 if test $ac_cv_c_bigendian = unknown; then
16654 as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16659 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16660 if ${ac_cv_c_const+:} false; then :
16661 $as_echo_n "(cached) " >&6
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16670 #ifndef __cplusplus
16671 /* Ultrix mips cc rejects this sort of thing. */
16672 typedef int charset[2];
16673 const charset cs = { 0, 0 };
16674 /* SunOS 4.1.1 cc rejects this. */
16675 char const *const *pcpcc;
16677 /* NEC SVR4.0.2 mips cc rejects this. */
16678 struct point {int x, y;};
16679 static struct point const zero = {0,0};
16680 /* AIX XL C 1.02.0.0 rejects this.
16681 It does not let you subtract one const X* pointer from another in
16682 an arm of an if-expression whose if-part is not a constant
16684 const char *g = "string";
16685 pcpcc = &g + (g ? g-g : 0);
16686 /* HPUX 7.0 cc rejects these. */
16688 ppc = (char**) pcpcc;
16689 pcpcc = (char const *const *) ppc;
16690 { /* SCO 3.2v4 cc rejects this sort of thing. */
16693 char const *s = 0 ? (char *) 0 : (char const *) 0;
16698 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16699 int x[] = {25, 17};
16700 const int *foo = &x[0];
16703 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16704 typedef const int *iptr;
16708 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16709 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16710 struct s { int j; const int *ap[3]; } bx;
16711 struct s *b = &bx; b->j = 5;
16713 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16714 const int foo = 10;
16715 if (!foo) return 0;
16717 return !cs[0] && !zero.x;
16724 if ac_fn_c_try_compile "$LINENO"; then :
16729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16732 $as_echo "$ac_cv_c_const" >&6; }
16733 if test $ac_cv_c_const = no; then
16735 $as_echo "#define const /**/" >>confdefs.h
16739 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16740 if test "x$ac_cv_type_size_t" = xyes; then :
16744 cat >>confdefs.h <<_ACEOF
16745 #define size_t unsigned int
16750 for ac_func in memmove bcopy
16752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16754 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16755 cat >>confdefs.h <<_ACEOF
16756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16765 # Check whether --with-xmlwf was given.
16766 if test "${with_xmlwf+set}" = set; then :
16767 withval=$with_xmlwf;
16772 if test x${with_xmlwf} = xyes; then
16774 WITH_XMLWF_FALSE='#'
16776 WITH_XMLWF_TRUE='#'
16781 if echo -- "${host}" | fgrep -q mingw; then
16789 if echo -- "${CPPFLAGS}${CFLAGS}" | fgrep -q XML_UNICODE; then
16800 # Check whether --with-libbsd was given.
16801 if test "${with_libbsd+set}" = set; then :
16802 withval=$with_libbsd;
16807 if test "x${with_libbsd}" != xno; then :
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
16810 $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
16811 if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
16812 $as_echo_n "(cached) " >&6
16814 ac_check_lib_save_LIBS=$LIBS
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16819 /* Override any GCC internal prototype to avoid an error.
16820 Use char because int might match the return type of a GCC
16821 builtin and then its argument prototype would still apply. */
16825 char arc4random_buf ();
16829 return arc4random_buf ();
16834 if ac_fn_c_try_link "$LINENO"; then :
16835 ac_cv_lib_bsd_arc4random_buf=yes
16837 ac_cv_lib_bsd_arc4random_buf=no
16839 rm -f core conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16841 LIBS=$ac_check_lib_save_LIBS
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
16844 $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
16845 if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
16846 cat >>confdefs.h <<_ACEOF
16847 #define HAVE_LIBBSD 1
16854 if test "x${with_libbsd}" = xyes; then :
16856 as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
16865 $as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867 /* end confdefs.h. */
16869 #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */
16870 #if defined(HAVE_LIBBSD)
16871 # include <bsd/stdlib.h>
16874 arc4random_buf(NULL, 0U);
16879 if ac_fn_c_try_link "$LINENO"; then :
16882 $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16885 $as_echo "yes" >&6; }
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16890 $as_echo "no" >&6; }
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS or libbsd)" >&5
16893 $as_echo_n "checking for arc4random (BSD, macOS or libbsd)... " >&6; }
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16897 #if defined(HAVE_LIBBSD)
16898 # include <bsd/stdlib.h>
16900 # include <stdlib.h>
16908 if ac_fn_c_try_link "$LINENO"; then :
16911 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16914 $as_echo "yes" >&6; }
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16919 $as_echo "no" >&6; }
16922 rm -f core conftest.err conftest.$ac_objext \
16923 conftest$ac_exeext conftest.$ac_ext
16926 rm -f core conftest.err conftest.$ac_objext \
16927 conftest$ac_exeext conftest.$ac_ext
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
16931 $as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933 /* end confdefs.h. */
16935 #include <stdlib.h> /* for NULL */
16936 #include <sys/random.h>
16938 return getrandom(NULL, 0U, 0U);
16942 if ac_fn_c_try_link "$LINENO"; then :
16945 $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16948 $as_echo "yes" >&6; }
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953 $as_echo "no" >&6; }
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
16956 $as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958 /* end confdefs.h. */
16960 #include <stdlib.h> /* for NULL */
16961 #include <unistd.h> /* for syscall */
16962 #include <sys/syscall.h> /* for SYS_getrandom */
16964 syscall(SYS_getrandom, NULL, 0, 0);
16969 if ac_fn_c_try_link "$LINENO"; then :
16972 $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16975 $as_echo "yes" >&6; }
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16980 $as_echo "no" >&6; }
16983 rm -f core conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16987 rm -f core conftest.err conftest.$ac_objext \
16988 conftest$ac_exeext conftest.$ac_ext
16991 for ac_header in fcntl.h unistd.h
16993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16994 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16995 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16996 cat >>confdefs.h <<_ACEOF
16997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17004 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17005 if test "x$ac_cv_type_off_t" = xyes; then :
17009 cat >>confdefs.h <<_ACEOF
17010 #define off_t long int
17018 for ac_header in $ac_header_list
17020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17021 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17024 cat >>confdefs.h <<_ACEOF
17025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17039 for ac_func in getpagesize
17041 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17042 if test "x$ac_cv_func_getpagesize" = xyes; then :
17043 cat >>confdefs.h <<_ACEOF
17044 #define HAVE_GETPAGESIZE 1
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17051 $as_echo_n "checking for working mmap... " >&6; }
17052 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
17053 $as_echo_n "(cached) " >&6
17055 if test "$cross_compiling" = yes; then :
17056 ac_cv_func_mmap_fixed_mapped=no
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17060 $ac_includes_default
17061 /* malloc might have been renamed as rpl_malloc. */
17064 /* Thanks to Mike Haertel and Jim Avera for this test.
17065 Here is a matrix of mmap possibilities:
17066 mmap private not fixed
17067 mmap private fixed at somewhere currently unmapped
17068 mmap private fixed at somewhere already mapped
17069 mmap shared not fixed
17070 mmap shared fixed at somewhere currently unmapped
17071 mmap shared fixed at somewhere already mapped
17072 For private mappings, we should verify that changes cannot be read()
17073 back from the file, nor mmap's back from the file at a different
17074 address. (There have been systems where private was not correctly
17075 implemented like the infamous i386 svr4.0, and systems where the
17076 VM page cache was not coherent with the file system buffer cache
17077 like early versions of FreeBSD and possibly contemporary NetBSD.)
17078 For shared mappings, we should conversely verify that changes get
17079 propagated back to all the places they're supposed to be.
17081 Grep wants private fixed already mapped.
17082 The main things grep needs to know about mmap are:
17083 * does it exist and is it safe to write into the mmap'd area
17084 * how to use it (BSD variants) */
17087 #include <sys/mman.h>
17089 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17093 /* This mess was copied from the GNU getpagesize.h. */
17094 #ifndef HAVE_GETPAGESIZE
17095 # ifdef _SC_PAGESIZE
17096 # define getpagesize() sysconf(_SC_PAGESIZE)
17097 # else /* no _SC_PAGESIZE */
17098 # ifdef HAVE_SYS_PARAM_H
17099 # include <sys/param.h>
17100 # ifdef EXEC_PAGESIZE
17101 # define getpagesize() EXEC_PAGESIZE
17102 # else /* no EXEC_PAGESIZE */
17104 # define getpagesize() NBPG * CLSIZE
17107 # endif /* no CLSIZE */
17108 # else /* no NBPG */
17110 # define getpagesize() NBPC
17111 # else /* no NBPC */
17113 # define getpagesize() PAGESIZE
17114 # endif /* PAGESIZE */
17115 # endif /* no NBPC */
17116 # endif /* no NBPG */
17117 # endif /* no EXEC_PAGESIZE */
17118 # else /* no HAVE_SYS_PARAM_H */
17119 # define getpagesize() 8192 /* punt totally */
17120 # endif /* no HAVE_SYS_PARAM_H */
17121 # endif /* no _SC_PAGESIZE */
17123 #endif /* no HAVE_GETPAGESIZE */
17128 char *data, *data2, *data3;
17129 const char *cdata2;
17133 pagesize = getpagesize ();
17135 /* First, make a file with some known garbage in it. */
17136 data = (char *) malloc (pagesize);
17139 for (i = 0; i < pagesize; ++i)
17140 *(data + i) = rand ();
17142 fd = creat ("conftest.mmap", 0600);
17145 if (write (fd, data, pagesize) != pagesize)
17149 /* Next, check that the tail of a page is zero-filled. File must have
17150 non-zero length, otherwise we risk SIGBUS for entire page. */
17151 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17155 if (write (fd2, cdata2, 1) != 1)
17157 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17158 if (data2 == MAP_FAILED)
17160 for (i = 0; i < pagesize; ++i)
17164 if (munmap (data2, pagesize))
17167 /* Next, try to mmap the file at a fixed address which already has
17168 something else allocated at it. If we can, also make sure that
17169 we see the same garbage. */
17170 fd = open ("conftest.mmap", O_RDWR);
17173 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17174 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17176 for (i = 0; i < pagesize; ++i)
17177 if (*(data + i) != *(data2 + i))
17180 /* Finally, make sure that changes to the mapped area do not
17181 percolate back to the file as seen by read(). (This is a bug on
17182 some variants of i386 svr4.0.) */
17183 for (i = 0; i < pagesize; ++i)
17184 *(data2 + i) = *(data2 + i) + 1;
17185 data3 = (char *) malloc (pagesize);
17188 if (read (fd, data3, pagesize) != pagesize)
17190 for (i = 0; i < pagesize; ++i)
17191 if (*(data + i) != *(data3 + i))
17197 if ac_fn_c_try_run "$LINENO"; then :
17198 ac_cv_func_mmap_fixed_mapped=yes
17200 ac_cv_func_mmap_fixed_mapped=no
17202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17203 conftest.$ac_objext conftest.beam conftest.$ac_ext
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17208 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17209 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17211 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17214 rm -f conftest.mmap conftest.txt
17217 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
17218 FILEMAP=unixfilemap
17220 FILEMAP=readfilemap
17226 $as_echo "#define XML_NS 1" >>confdefs.h
17229 $as_echo "#define XML_DTD 1" >>confdefs.h
17232 $as_echo "#define XML_DEV_URANDOM 1" >>confdefs.h
17235 # Check whether --enable-xml-context was given.
17236 if test "${enable_xml_context+set}" = set; then :
17237 enableval=$enable_xml_context; enable_xml_context=${enableval}
17240 if test "x${enable_xml_context}" != "xno"; then :
17242 if test "x${enable_xml_context}" = "xyes" \
17243 -o "x${enable_xml_context}" = "x"; then :
17245 enable_xml_context=1024
17249 cat >>confdefs.h <<_ACEOF
17250 #define XML_CONTEXT_BYTES ${enable_xml_context}
17257 # Check whether --with-docbook was given.
17258 if test "${with_docbook+set}" = set; then :
17259 withval=$with_docbook;
17266 if test "x$with_docbook" != xno; then :
17267 for ac_prog in docbook2x-man docbook2man docbook-to-man
17269 # Extract the first word of "$ac_prog", so it can be a program name with args.
17270 set dummy $ac_prog; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17272 $as_echo_n "checking for $ac_word... " >&6; }
17273 if ${ac_cv_prog_DOCBOOK_TO_MAN+:} false; then :
17274 $as_echo_n "(cached) " >&6
17276 if test -n "$DOCBOOK_TO_MAN"; then
17277 ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
17279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280 for as_dir in $PATH
17283 test -z "$as_dir" && as_dir=.
17284 for ac_exec_ext in '' $ac_executable_extensions; do
17285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17286 ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
17287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17296 DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
17297 if test -n "$DOCBOOK_TO_MAN"; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
17299 $as_echo "$DOCBOOK_TO_MAN" >&6; }
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17302 $as_echo "no" >&6; }
17306 test -n "$DOCBOOK_TO_MAN" && break
17308 test -n "$DOCBOOK_TO_MAN" || DOCBOOK_TO_MAN="if test "x$with_docbook" != xcheck; then
17309 as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5"
17313 if test x${DOCBOOK_TO_MAN} != x; then
17315 WITH_DOCBOOK_FALSE='#'
17317 WITH_DOCBOOK_TRUE='#'
17318 WITH_DOCBOOK_FALSE=
17322 ac_config_files="$ac_config_files Makefile expat.pc"
17324 ac_config_files="$ac_config_files doc/Makefile examples/Makefile lib/Makefile tests/Makefile tests/benchmark/Makefile xmlwf/Makefile"
17326 ac_config_files="$ac_config_files run.sh"
17328 cat >confcache <<\_ACEOF
17329 # This file is a shell script that caches the results of configure
17330 # tests run on this system so they can be shared between configure
17331 # scripts and configure runs, see configure's option --config-cache.
17332 # It is not useful on other systems. If it contains results you don't
17333 # want to keep, you may remove or edit it.
17335 # config.status only pays attention to the cache file if you give it
17336 # the --recheck option to rerun configure.
17338 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17340 # following values.
17344 # The following way of writing the cache mishandles newlines in values,
17345 # but we know of no workaround that is simple, portable, and efficient.
17346 # So, we kill variables containing newlines.
17347 # Ultrix sh set writes to stderr and can't be redirected directly,
17348 # and sets the high bit in the cache file unless we assign to the vars.
17350 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17351 eval ac_val=\$$ac_var
17355 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17356 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17359 _ | IFS | as_nl) ;; #(
17360 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17361 *) { eval $ac_var=; unset $ac_var;} ;;
17367 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17368 *${as_nl}ac_space=\ *)
17369 # `set' does not quote correctly, so add quotes: double-quote
17370 # substitution turns \\\\ into \\, and sed turns \\ into \.
17373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17376 # `set' quotes correctly as required by POSIX, so do not add quotes.
17377 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17386 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17388 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17390 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17391 if test -w "$cache_file"; then
17392 if test "x$cache_file" != "x/dev/null"; then
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17394 $as_echo "$as_me: updating cache $cache_file" >&6;}
17395 if test ! -f "$cache_file" || test -h "$cache_file"; then
17396 cat confcache >"$cache_file"
17398 case $cache_file in #(
17400 mv -f confcache "$cache_file"$$ &&
17401 mv -f "$cache_file"$$ "$cache_file" ;; #(
17403 mv -f confcache "$cache_file" ;;
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17409 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17415 # Let make expand exec_prefix.
17416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17418 DEFS=-DHAVE_CONFIG_H
17423 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17424 # 1. Remove the extension, and $U if already installed.
17425 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17426 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17427 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17428 # will be set to the directory where LIBOBJS objects are built.
17429 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17430 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17432 LIBOBJS=$ac_libobjs
17434 LTLIBOBJS=$ac_ltlibobjs
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17438 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17439 if test -n "$am_sleep_pid"; then
17440 # Hide warnings about reused PIDs.
17441 wait $am_sleep_pid 2>/dev/null
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17444 $as_echo "done" >&6; }
17445 if test -n "$EXEEXT"; then
17447 am__EXEEXT_FALSE='#'
17449 am__EXEEXT_TRUE='#'
17453 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17454 as_fn_error $? "conditional \"AMDEP\" was never defined.
17455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17457 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17458 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17461 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17462 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17465 if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
17466 as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
17467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17469 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
17470 as_fn_error $? "conditional \"MINGW\" was never defined.
17471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17473 if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
17474 as_fn_error $? "conditional \"UNICODE\" was never defined.
17475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17477 if test -z "${WITH_DOCBOOK_TRUE}" && test -z "${WITH_DOCBOOK_FALSE}"; then
17478 as_fn_error $? "conditional \"WITH_DOCBOOK\" was never defined.
17479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17482 : "${CONFIG_STATUS=./config.status}"
17484 ac_clean_files_save=$ac_clean_files
17485 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17487 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17489 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17491 # Generated by $as_me.
17492 # Run this file to recreate the current configuration.
17493 # Compiler output produced by configure, useful for debugging
17494 # configure, is in config.log if it exists.
17497 ac_cs_recheck=false
17500 SHELL=\${CONFIG_SHELL-$SHELL}
17503 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17504 ## -------------------- ##
17505 ## M4sh Initialization. ##
17506 ## -------------------- ##
17508 # Be more Bourne compatible
17509 DUALCASE=1; export DUALCASE # for MKS sh
17510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17513 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17514 # is contrary to our usage. Disable this feature.
17515 alias -g '${1+"$@"}'='"$@"'
17516 setopt NO_GLOB_SUBST
17518 case `(set -o) 2>/dev/null` in #(
17530 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17531 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17533 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17534 # Prefer a ksh shell builtin over an external printf program on Solaris,
17535 # but without wasting forks for bash or zsh.
17536 if test -z "$BASH_VERSION$ZSH_VERSION" \
17537 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17538 as_echo='print -r --'
17539 as_echo_n='print -rn --'
17540 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17541 as_echo='printf %s\n'
17542 as_echo_n='printf %s'
17544 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17545 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17546 as_echo_n='/usr/ucb/echo -n'
17548 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17549 as_echo_n_body='eval
17553 expr "X$arg" : "X\\(.*\\)$as_nl";
17554 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17556 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17558 export as_echo_n_body
17559 as_echo_n='sh -c $as_echo_n_body as_echo'
17561 export as_echo_body
17562 as_echo='sh -c $as_echo_body as_echo'
17565 # The user is always right.
17566 if test "${PATH_SEPARATOR+set}" != set; then
17568 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17569 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17576 # We need space, tab and new line, in precisely that order. Quoting is
17577 # there to prevent editors from complaining about space-tab.
17578 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17579 # splitting by setting IFS to empty value.)
17582 # Find who we are. Look in the path if we contain no directory separator.
17585 *[\\/]* ) as_myself=$0 ;;
17586 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17587 for as_dir in $PATH
17590 test -z "$as_dir" && as_dir=.
17591 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17597 # We did not find ourselves, most probably we were run as `sh COMMAND'
17598 # in which case we are not to be found in the path.
17599 if test "x$as_myself" = x; then
17602 if test ! -f "$as_myself"; then
17603 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17607 # Unset variables that we do not need and which cause bugs (e.g. in
17608 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17609 # suppresses any "Segmentation fault" message there. '((' could
17610 # trigger a bug in pdksh 5.2.14.
17611 for as_var in BASH_ENV ENV MAIL MAILPATH
17612 do eval test x\${$as_var+set} = xset \
17613 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17626 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17629 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17630 # ----------------------------------------
17631 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17632 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17633 # script with STATUS, using 1 if that was 0.
17636 as_status=$1; test $as_status -eq 0 && as_status=1
17638 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17639 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17641 $as_echo "$as_me: error: $2" >&2
17642 as_fn_exit $as_status
17646 # as_fn_set_status STATUS
17647 # -----------------------
17648 # Set $? to STATUS, without forking.
17649 as_fn_set_status ()
17652 } # as_fn_set_status
17654 # as_fn_exit STATUS
17655 # -----------------
17656 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17660 as_fn_set_status $1
17666 # Portably unset VAR.
17669 { eval $1=; unset $1;}
17671 as_unset=as_fn_unset
17672 # as_fn_append VAR VALUE
17673 # ----------------------
17674 # Append the text in VALUE to the end of the definition contained in VAR. Take
17675 # advantage of any shell optimizations that allow amortized linear growth over
17676 # repeated appends, instead of the typical quadratic growth present in naive
17678 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17679 eval 'as_fn_append ()
17690 # as_fn_arith ARG...
17691 # ------------------
17692 # Perform arithmetic evaluation on the ARGs, and store the result in the
17693 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17694 # must be portable across $(()) and expr.
17695 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17696 eval 'as_fn_arith ()
17703 as_val=`expr "$@" || test $? -eq 1`
17708 if expr a : '\(a\)' >/dev/null 2>&1 &&
17709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17715 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17716 as_basename=basename
17721 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17727 as_me=`$as_basename -- "$0" ||
17728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17729 X"$0" : 'X\(//\)$' \| \
17730 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17732 sed '/^.*\/\([^/][^/]*\)\/*$/{
17746 # Avoid depending upon Character Ranges.
17747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17750 as_cr_digits='0123456789'
17751 as_cr_alnum=$as_cr_Letters$as_cr_digits
17753 ECHO_C= ECHO_N= ECHO_T=
17754 case `echo -n x` in #(((((
17756 case `echo 'xy\c'` in
17757 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17759 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17766 rm -f conf$$ conf$$.exe conf$$.file
17767 if test -d conf$$.dir; then
17768 rm -f conf$$.dir/conf$$.file
17771 mkdir conf$$.dir 2>/dev/null
17773 if (echo >conf$$.file) 2>/dev/null; then
17774 if ln -s conf$$.file conf$$ 2>/dev/null; then
17776 # ... but there are two gotchas:
17777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17779 # In both cases, we have to default to `cp -pR'.
17780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17782 elif ln conf$$.file conf$$ 2>/dev/null; then
17790 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17791 rmdir conf$$.dir 2>/dev/null
17796 # Create "$as_dir" as a directory, including parents if necessary.
17801 -*) as_dir=./$as_dir;;
17803 test -d "$as_dir" || eval $as_mkdir_p || {
17807 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17808 *) as_qdir=$as_dir;;
17810 as_dirs="'$as_qdir' $as_dirs"
17811 as_dir=`$as_dirname -- "$as_dir" ||
17812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17813 X"$as_dir" : 'X\(//\)[^/]' \| \
17814 X"$as_dir" : 'X\(//\)$' \| \
17815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17816 $as_echo X"$as_dir" |
17817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17821 /^X\(\/\/\)[^/].*/{
17834 test -d "$as_dir" && break
17836 test -z "$as_dirs" || eval "mkdir $as_dirs"
17837 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17841 if mkdir -p . 2>/dev/null; then
17842 as_mkdir_p='mkdir -p "$as_dir"'
17844 test -d ./-p && rmdir ./-p
17849 # as_fn_executable_p FILE
17850 # -----------------------
17851 # Test if FILE is an executable regular file.
17852 as_fn_executable_p ()
17854 test -f "$1" && test -x "$1"
17855 } # as_fn_executable_p
17856 as_test_x='test -x'
17857 as_executable_p=as_fn_executable_p
17859 # Sed expression to map a string onto a valid CPP name.
17860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17862 # Sed expression to map a string onto a valid variable name.
17863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17867 ## ----------------------------------- ##
17868 ## Main body of $CONFIG_STATUS script. ##
17869 ## ----------------------------------- ##
17871 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17874 # Save the log message, to keep $0 and so on meaningful, and to
17875 # report actual input values of CONFIG_FILES etc. instead of their
17876 # values after options handling.
17878 This file was extended by expat $as_me 2.2.5, which was
17879 generated by GNU Autoconf 2.69. Invocation command line was
17881 CONFIG_FILES = $CONFIG_FILES
17882 CONFIG_HEADERS = $CONFIG_HEADERS
17883 CONFIG_LINKS = $CONFIG_LINKS
17884 CONFIG_COMMANDS = $CONFIG_COMMANDS
17887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17892 case $ac_config_files in *"
17893 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17896 case $ac_config_headers in *"
17897 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17902 # Files that config.status was made for.
17903 config_files="$ac_config_files"
17904 config_headers="$ac_config_headers"
17905 config_commands="$ac_config_commands"
17909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17911 \`$as_me' instantiates files and other configuration actions
17912 from templates according to the current configuration. Unless the files
17913 and actions are specified as TAGs, all are instantiated by default.
17915 Usage: $0 [OPTION]... [TAG]...
17917 -h, --help print this help, then exit
17918 -V, --version print version number and configuration settings, then exit
17919 --config print configuration, then exit
17920 -q, --quiet, --silent
17921 do not print progress messages
17922 -d, --debug don't remove temporary files
17923 --recheck update $as_me by reconfiguring in the same conditions
17924 --file=FILE[:TEMPLATE]
17925 instantiate the configuration file FILE
17926 --header=FILE[:TEMPLATE]
17927 instantiate the configuration header FILE
17929 Configuration files:
17932 Configuration headers:
17935 Configuration commands:
17938 Report bugs to <expat-bugs@libexpat.org>."
17941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17942 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17944 expat config.status 2.2.5
17945 configured by $0, generated by GNU Autoconf 2.69,
17946 with options \\"\$ac_cs_config\\"
17948 Copyright (C) 2012 Free Software Foundation, Inc.
17949 This config.status script is free software; the Free Software Foundation
17950 gives unlimited permission to copy, distribute and modify it."
17957 test -n "\$AWK" || AWK=awk
17960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17961 # The default lists apply if the user does not specify any file.
17967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17984 # Handling of the options.
17985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17988 $as_echo "$ac_cs_version"; exit ;;
17989 --config | --confi | --conf | --con | --co | --c )
17990 $as_echo "$ac_cs_config"; exit ;;
17991 --debug | --debu | --deb | --de | --d | -d )
17993 --file | --fil | --fi | --f )
17996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17997 '') as_fn_error $? "missing file argument" ;;
17999 as_fn_append CONFIG_FILES " '$ac_optarg'"
18000 ac_need_defaults=false;;
18001 --header | --heade | --head | --hea )
18004 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18006 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18007 ac_need_defaults=false;;
18009 # Conflict between --help and --header
18010 as_fn_error $? "ambiguous option: \`$1'
18011 Try \`$0 --help' for more information.";;
18012 --help | --hel | -h )
18013 $as_echo "$ac_cs_usage"; exit ;;
18014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18015 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18018 # This is an error.
18019 -*) as_fn_error $? "unrecognized option: \`$1'
18020 Try \`$0 --help' for more information." ;;
18022 *) as_fn_append ac_config_targets " $1"
18023 ac_need_defaults=false ;;
18029 ac_configure_extra_args=
18031 if $ac_cs_silent; then
18033 ac_configure_extra_args="$ac_configure_extra_args --silent"
18037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18038 if \$ac_cs_recheck; then
18039 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18041 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18042 CONFIG_SHELL='$SHELL'
18043 export CONFIG_SHELL
18048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18052 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18053 ## Running $as_me. ##
18059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18063 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18066 # The HP-UX ksh and POSIX shell print the target directory to stdout
18067 # if CDPATH is set.
18068 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18070 sed_quote_subst='$sed_quote_subst'
18071 double_quote_subst='$double_quote_subst'
18072 delay_variable_subst='$delay_variable_subst'
18073 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18074 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18075 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18076 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18077 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18078 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18079 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18080 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18081 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18082 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18083 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18084 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18085 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18086 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18087 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18088 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18089 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18090 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18091 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18092 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18093 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18094 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18095 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18096 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18097 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18098 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18099 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18100 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18101 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18102 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18103 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18104 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18105 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18106 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18107 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18108 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18109 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18110 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18111 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18112 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18113 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18114 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18115 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18116 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18117 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18118 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18119 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18120 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18121 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18122 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18123 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18124 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18125 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18126 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18127 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18128 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18129 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18130 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18131 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18132 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"`'
18133 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18134 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18135 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18136 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18137 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18138 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18139 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18140 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18141 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18142 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18143 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18144 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18145 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18146 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18147 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18148 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18149 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18150 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18151 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18152 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18153 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18154 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18155 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18156 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18157 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18158 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18159 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18160 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18161 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18162 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18163 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18164 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18165 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18166 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18167 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18168 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18169 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18170 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18171 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18172 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18173 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18174 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18175 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18176 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18177 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18178 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18179 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18180 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18181 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18182 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18183 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18184 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18185 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18186 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18187 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18188 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18189 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18190 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18191 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18192 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18193 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18194 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18195 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18196 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18197 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18198 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18199 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18200 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18201 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18202 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18203 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18204 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18205 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18206 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18207 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18208 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18209 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18210 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18211 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18212 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18213 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18214 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18215 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18216 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18217 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18218 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18219 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18220 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18221 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18222 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18223 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18224 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18225 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18226 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18227 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18228 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18229 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18230 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18231 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18232 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18233 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18234 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18235 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18236 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18237 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18238 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18239 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18240 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18241 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18242 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18243 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18244 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18245 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18246 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18247 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18248 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18249 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18250 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18251 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18252 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18253 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18254 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18255 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18256 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18257 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18258 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18259 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18260 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18261 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18262 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18265 LTCFLAGS='$LTCFLAGS'
18266 compiler='$compiler_DEFAULT'
18268 # A function that is used when there is no print builtin or printf.
18269 func_fallback_echo ()
18271 eval 'cat <<_LTECHO_EOF
18276 # Quote evaled strings.
18293 deplibs_check_method \
18297 sharedlib_from_linklib_cmd \
18300 archiver_list_spec \
18306 lt_cv_sys_global_symbol_pipe \
18307 lt_cv_sys_global_symbol_to_cdecl \
18308 lt_cv_sys_global_symbol_to_import \
18309 lt_cv_sys_global_symbol_to_c_name_address \
18310 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18311 lt_cv_nm_interface \
18312 nm_file_list_spec \
18313 lt_cv_truncate_bin \
18314 lt_prog_compiler_no_builtin_flag \
18315 lt_prog_compiler_pic \
18316 lt_prog_compiler_wl \
18317 lt_prog_compiler_static \
18318 lt_cv_prog_compiler_c_o \
18327 export_dynamic_flag_spec \
18328 whole_archive_flag_spec \
18329 compiler_needs_object \
18331 allow_undefined_flag \
18332 no_undefined_flag \
18333 hardcode_libdir_flag_spec \
18334 hardcode_libdir_separator \
18338 variables_saved_for_relink \
18340 library_names_spec \
18342 install_override_mode \
18346 compiler_lib_search_dirs \
18351 compiler_lib_search_path \
18355 lt_prog_compiler_no_builtin_flag_CXX \
18356 lt_prog_compiler_pic_CXX \
18357 lt_prog_compiler_wl_CXX \
18358 lt_prog_compiler_static_CXX \
18359 lt_cv_prog_compiler_c_o_CXX \
18360 export_dynamic_flag_spec_CXX \
18361 whole_archive_flag_spec_CXX \
18362 compiler_needs_object_CXX \
18364 allow_undefined_flag_CXX \
18365 no_undefined_flag_CXX \
18366 hardcode_libdir_flag_spec_CXX \
18367 hardcode_libdir_separator_CXX \
18368 exclude_expsyms_CXX \
18369 include_expsyms_CXX \
18370 file_list_spec_CXX \
18371 compiler_lib_search_dirs_CXX \
18372 predep_objects_CXX \
18373 postdep_objects_CXX \
18376 compiler_lib_search_path_CXX; do
18377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18378 *[\\\\\\\`\\"\\\$]*)
18379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18387 # Double-quote double-evaled strings.
18388 for var in reload_cmds \
18389 old_postinstall_cmds \
18390 old_postuninstall_cmds \
18392 extract_expsyms_cmds \
18393 old_archive_from_new_cmds \
18394 old_archive_from_expsyms_cmds \
18396 archive_expsym_cmds \
18398 module_expsym_cmds \
18399 export_symbols_cmds \
18403 postuninstall_cmds \
18405 sys_lib_search_path_spec \
18406 configure_time_dlsearch_path \
18407 configure_time_lt_sys_library_path \
18409 old_archive_cmds_CXX \
18410 old_archive_from_new_cmds_CXX \
18411 old_archive_from_expsyms_cmds_CXX \
18413 archive_expsym_cmds_CXX \
18415 module_expsym_cmds_CXX \
18416 export_symbols_cmds_CXX \
18418 postlink_cmds_CXX; do
18419 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18420 *[\\\\\\\`\\"\\\$]*)
18421 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18424 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18429 ac_aux_dir='$ac_aux_dir'
18431 # See if we are running on zsh, and set the options that allow our
18432 # commands through without removal of \ escapes INIT.
18433 if test -n "\${ZSH_VERSION+set}"; then
18434 setopt NO_GLOB_SUBST
18450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18452 # Handling of arguments.
18453 for ac_config_target in $ac_config_targets
18455 case $ac_config_target in
18456 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
18457 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18458 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18460 "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
18461 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18462 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18463 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18464 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18465 "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
18466 "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
18467 "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
18469 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18474 # If the user did not use the arguments to specify the items to instantiate,
18475 # then the envvar interface is used. Set only those that are not.
18476 # We use the long form for the default assignment because of an extremely
18477 # bizarre bug on SunOS 4.1.3.
18478 if $ac_need_defaults; then
18479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18480 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18481 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18484 # Have a temporary directory for convenience. Make it in the build tree
18485 # simply because there is no reason against having it here, and in addition,
18486 # creating and moving files from /tmp can sometimes cause problems.
18487 # Hook for its removal unless debugging.
18488 # Note that there is a small window in which the directory will not be cleaned:
18489 # after its creation but before its name has been assigned to `$tmp'.
18493 trap 'exit_status=$?
18494 : "${ac_tmp:=$tmp}"
18495 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18497 trap 'as_fn_exit 1' 1 2 13 15
18499 # Create a (secure) tmp directory for tmp files.
18502 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18506 tmp=./conf$$-$RANDOM
18507 (umask 077 && mkdir "$tmp")
18508 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18511 # Set up the scripts for CONFIG_FILES section.
18512 # No need to generate them if there are no CONFIG_FILES.
18513 # This happens for instance with `./config.status config.h'.
18514 if test -n "$CONFIG_FILES"; then
18517 ac_cr=`echo X | tr X '\015'`
18518 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18519 # But we know of no other shell where ac_cr would be empty at this
18520 # point, so we can use a bashism as a fallback.
18521 if test "x$ac_cr" = x; then
18522 eval ac_cr=\$\'\\r\'
18524 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18525 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18528 ac_cs_awk_cr=$ac_cr
18531 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18536 echo "cat >conf$$subs.awk <<_ACEOF" &&
18537 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18539 } >conf$$subs.sh ||
18540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18541 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18543 for ac_last_try in false false false false false :; do
18544 . ./conf$$subs.sh ||
18545 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18547 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18548 if test $ac_delim_n = $ac_delim_num; then
18550 elif $ac_last_try; then
18551 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18556 rm -f conf$$subs.sh
18558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18559 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18563 s/^/S["/; s/!.*/"]=/
18573 s/\(.\{148\}\)..*/\1/
18575 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18580 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18587 s/\(.\{148\}\)..*/\1/
18589 s/["\\]/\\&/g; s/^/"/; s/$/"/
18593 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18598 ' <conf$$subs.awk | sed '
18603 ' >>$CONFIG_STATUS || ac_write_fail=1
18604 rm -f conf$$subs.awk
18605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18607 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18608 for (key in S) S_is_set[key] = 1
18614 nfields = split(line, field, "@")
18616 len = length(field[1])
18617 for (i = 2; i < nfields; i++) {
18619 keylen = length(key)
18620 if (S_is_set[key]) {
18622 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18623 len += length(value) + length(field[++i])
18634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18635 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18636 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18639 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18640 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18643 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18644 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18645 # trailing colons and then remove the whole line if VPATH becomes empty
18646 # (actually we leave an empty line to preserve line numbers).
18647 if test "x$srcdir" = x.; then
18648 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18667 fi # test -n "$CONFIG_FILES"
18669 # Set up the scripts for CONFIG_HEADERS section.
18670 # No need to generate them if there are no CONFIG_HEADERS.
18671 # This happens for instance with `./config.status Makefile'.
18672 if test -n "$CONFIG_HEADERS"; then
18673 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18677 # Transform confdefs.h into an awk script `defines.awk', embedded as
18678 # here-document in config.status, that substitutes the proper values into
18679 # config.h.in to produce config.h.
18681 # Create a delimiter string that does not exist in confdefs.h, to ease
18682 # handling of long lines.
18684 for ac_last_try in false false :; do
18685 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18686 if test -z "$ac_tt"; then
18688 elif $ac_last_try; then
18689 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18695 # For the awk script, D is an array of macro values keyed by name,
18696 # likewise P contains macro parameters if any. Preserve backslash
18697 # newline sequences.
18699 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18701 s/.\{148\}/&'"$ac_delim"'/g
18704 s/^[ ]*#[ ]*define[ ][ ]*/ /
18711 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18713 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18717 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18718 D["\1"]=" \3\\\\\\n"\\/p
18720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18725 s/.\{148\}/&'"$ac_delim"'/g
18730 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18733 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18735 ' <confdefs.h | sed '
18736 s/'"$ac_delim"'/"\\\
18737 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18740 for (key in D) D_is_set[key] = 1
18743 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18745 split(line, arg, " ")
18746 if (arg[1] == "#") {
18750 defundef = substr(arg[1], 2)
18753 split(mac1, mac2, "(") #)
18755 prefix = substr(line, 1, index(line, defundef) - 1)
18756 if (D_is_set[macro]) {
18757 # Preserve the white space surrounding the "#".
18758 print prefix "define", macro P[macro] D[macro]
18761 # Replace #undef with comments. This is necessary, for example,
18762 # in the case of _POSIX_SOURCE, which is predefined and required
18763 # on some systems where configure will not decide to define it.
18764 if (defundef == "undef") {
18765 print "/*", prefix defundef, macro, "*/"
18773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18774 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18775 fi # test -n "$CONFIG_HEADERS"
18778 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18783 :[FHLC]) ac_mode=$ac_tag; continue;;
18785 case $ac_mode$ac_tag in
18787 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18788 :[FH]-) ac_tag=-:-;;
18789 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18806 -) ac_f="$ac_tmp/stdin";;
18807 *) # Look for the file first in the build tree, then in the source tree
18808 # (if the path is not absolute). The absolute path cannot be DOS-style,
18809 # because $ac_f cannot contain `:'.
18813 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18815 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18817 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18818 as_fn_append ac_file_inputs " '$ac_f'"
18821 # Let's still pretend it is `configure' which instantiates (i.e., don't
18822 # use $as_me), people would be surprised to read:
18823 # /* config.h. Generated by config.status. */
18824 configure_input='Generated from '`
18825 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18827 if test x"$ac_file" != x-; then
18828 configure_input="$ac_file. $configure_input"
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18830 $as_echo "$as_me: creating $ac_file" >&6;}
18832 # Neutralize special characters interpreted by sed in replacement strings.
18833 case $configure_input in #(
18834 *\&* | *\|* | *\\* )
18835 ac_sed_conf_input=`$as_echo "$configure_input" |
18836 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18837 *) ac_sed_conf_input=$configure_input;;
18841 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18842 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18847 ac_dir=`$as_dirname -- "$ac_file" ||
18848 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18849 X"$ac_file" : 'X\(//\)[^/]' \| \
18850 X"$ac_file" : 'X\(//\)$' \| \
18851 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18852 $as_echo X"$ac_file" |
18853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18857 /^X\(\/\/\)[^/].*/{
18870 as_dir="$ac_dir"; as_fn_mkdir_p
18874 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18876 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18877 # A ".." for each directory in $ac_dir_suffix.
18878 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18879 case $ac_top_builddir_sub in
18880 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18881 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18884 ac_abs_top_builddir=$ac_pwd
18885 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18886 # for backward compatibility:
18887 ac_top_builddir=$ac_top_build_prefix
18890 .) # We are building in place.
18892 ac_top_srcdir=$ac_top_builddir_sub
18893 ac_abs_top_srcdir=$ac_pwd ;;
18894 [\\/]* | ?:[\\/]* ) # Absolute name.
18895 ac_srcdir=$srcdir$ac_dir_suffix;
18896 ac_top_srcdir=$srcdir
18897 ac_abs_top_srcdir=$srcdir ;;
18898 *) # Relative name.
18899 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18900 ac_top_srcdir=$ac_top_build_prefix$srcdir
18901 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18903 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18913 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18914 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18916 ac_MKDIR_P=$MKDIR_P
18918 [\\/$]* | ?:[\\/]* ) ;;
18919 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18924 # If the template does not know about datarootdir, expand it.
18925 # FIXME: This hack should be removed a few years after 2.60.
18926 ac_datarootdir_hack=; ac_datarootdir_seen=
18937 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18938 *datarootdir*) ac_datarootdir_seen=yes;;
18939 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18941 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18944 ac_datarootdir_hack='
18945 s&@datadir@&$datadir&g
18946 s&@docdir@&$docdir&g
18947 s&@infodir@&$infodir&g
18948 s&@localedir@&$localedir&g
18949 s&@mandir@&$mandir&g
18950 s&\\\${datarootdir}&$datarootdir&g' ;;
18954 # Neutralize VPATH when `$srcdir' = `.'.
18955 # Shell code in configure.ac might set extrasub.
18956 # FIXME: do we really want to maintain this feature?
18957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18958 ac_sed_extra="$ac_vpsub
18961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18964 s|@configure_input@|$ac_sed_conf_input|;t t
18965 s&@top_builddir@&$ac_top_builddir_sub&;t t
18966 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18967 s&@srcdir@&$ac_srcdir&;t t
18968 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18969 s&@top_srcdir@&$ac_top_srcdir&;t t
18970 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18971 s&@builddir@&$ac_builddir&;t t
18972 s&@abs_builddir@&$ac_abs_builddir&;t t
18973 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18974 s&@INSTALL@&$ac_INSTALL&;t t
18975 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18976 $ac_datarootdir_hack
18978 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18979 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18982 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18983 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18984 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18986 which seems to be undefined. Please make sure it is defined" >&5
18987 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18988 which seems to be undefined. Please make sure it is defined" >&2;}
18990 rm -f "$ac_tmp/stdin"
18992 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18993 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19001 if test x"$ac_file" != x-; then
19003 $as_echo "/* $configure_input */" \
19004 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19005 } >"$ac_tmp/config.h" \
19006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19007 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19009 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19012 mv "$ac_tmp/config.h" "$ac_file" \
19013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19016 $as_echo "/* $configure_input */" \
19017 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19018 || as_fn_error $? "could not create -" "$LINENO" 5
19020 # Compute "$ac_file"'s index in $config_headers.
19023 for _am_header in $config_headers :; do
19024 case $_am_header in
19025 $_am_arg | $_am_arg:* )
19028 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19031 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19032 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19033 X"$_am_arg" : 'X\(//\)[^/]' \| \
19034 X"$_am_arg" : 'X\(//\)$' \| \
19035 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19036 $as_echo X"$_am_arg" |
19037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19041 /^X\(\/\/\)[^/].*/{
19053 s/.*/./; q'`/stamp-h$_am_stamp_count
19056 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19057 $as_echo "$as_me: executing $ac_file commands" >&6;}
19062 case $ac_file$ac_mode in
19063 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19064 # Older Autoconf quotes --file arguments for eval, but not when files
19065 # are listed without --file. Let's play safe and only enable the eval
19066 # if we detect the quoting.
19067 case $CONFIG_FILES in
19068 *\'*) eval set x "$CONFIG_FILES" ;;
19069 *) set x $CONFIG_FILES ;;
19074 # Strip MF so we end up with the name of the file.
19075 mf=`echo "$mf" | sed -e 's/:.*$//'`
19076 # Check whether this is an Automake generated Makefile or not.
19077 # We used to match only the files named 'Makefile.in', but
19078 # some people rename them; so instead we look at the file content.
19079 # Grep'ing the first line is not enough: some people post-process
19080 # each Makefile.in and add a new line on top of each file to say so.
19081 # Grep'ing the whole file is not good either: AIX grep has a line
19082 # limit of 2048, but all sed's we know have understand at least 4000.
19083 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19084 dirpart=`$as_dirname -- "$mf" ||
19085 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19086 X"$mf" : 'X\(//\)[^/]' \| \
19087 X"$mf" : 'X\(//\)$' \| \
19088 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19094 /^X\(\/\/\)[^/].*/{
19110 # Extract the definition of DEPDIR, am__include, and am__quote
19111 # from the Makefile without running 'make'.
19112 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19113 test -z "$DEPDIR" && continue
19114 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19115 test -z "$am__include" && continue
19116 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19117 # Find all dependency output files, they are included files with
19118 # $(DEPDIR) in their names. We invoke sed twice because it is the
19119 # simplest approach to changing $(DEPDIR) to its actual value in the
19121 for file in `sed -n "
19122 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19123 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19124 # Make sure the directory exists.
19125 test -f "$dirpart/$file" && continue
19126 fdir=`$as_dirname -- "$file" ||
19127 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19128 X"$file" : 'X\(//\)[^/]' \| \
19129 X"$file" : 'X\(//\)$' \| \
19130 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19131 $as_echo X"$file" |
19132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19136 /^X\(\/\/\)[^/].*/{
19149 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19150 # echo "creating $dirpart/$file"
19151 echo '# dummy' > "$dirpart/$file"
19158 # See if we are running on zsh, and set the options that allow our
19159 # commands through without removal of \ escapes.
19160 if test -n "${ZSH_VERSION+set}"; then
19161 setopt NO_GLOB_SUBST
19165 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19168 cat <<_LT_EOF >> "$cfgfile"
19170 # Generated automatically by $as_me ($PACKAGE) $VERSION
19171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19172 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19174 # Provide generalized library-building support services.
19175 # Written by Gordon Matzigkeit, 1996
19177 # Copyright (C) 2014 Free Software Foundation, Inc.
19178 # This is free software; see the source for copying conditions. There is NO
19179 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19181 # GNU Libtool is free software; you can redistribute it and/or modify
19182 # it under the terms of the GNU General Public License as published by
19183 # the Free Software Foundation; either version 2 of of the License, or
19184 # (at your option) any later version.
19186 # As a special exception to the GNU General Public License, if you
19187 # distribute this file as part of a program or library that is built
19188 # using GNU Libtool, you may include this file under the same
19189 # distribution terms that you use for the rest of that program.
19191 # GNU Libtool is distributed in the hope that it will be useful, but
19192 # WITHOUT ANY WARRANTY; without even the implied warranty of
19193 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19194 # GNU General Public License for more details.
19196 # You should have received a copy of the GNU General Public License
19197 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19200 # The names of the tagged configurations supported by this script.
19201 available_tags='CXX '
19203 # Configured defaults for sys_lib_dlsearch_path munging.
19204 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19206 # ### BEGIN LIBTOOL CONFIG
19208 # Assembler program.
19211 # DLL creation program.
19212 DLLTOOL=$lt_DLLTOOL
19214 # Object dumper program.
19215 OBJDUMP=$lt_OBJDUMP
19217 # Which release of libtool.m4 was used?
19218 macro_version=$macro_version
19219 macro_revision=$macro_revision
19221 # Whether or not to build shared libraries.
19222 build_libtool_libs=$enable_shared
19224 # Whether or not to build static libraries.
19225 build_old_libs=$enable_static
19227 # What type of objects to build.
19230 # Whether or not to optimize for fast installation.
19231 fast_install=$enable_fast_install
19233 # Shared archive member basename,for filename based shared library versioning on AIX.
19234 shared_archive_member_spec=$shared_archive_member_spec
19236 # Shell to use when invoking shell scripts.
19239 # An echo program that protects backslashes.
19242 # The PATH separator for the build system.
19243 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19246 host_alias=$host_alias
19250 # The build system.
19251 build_alias=$build_alias
19255 # A sed program that does not truncate output.
19258 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19259 Xsed="\$SED -e 1s/^X//"
19261 # A grep program that handles long lines.
19267 # A literal string matcher.
19270 # A BSD- or MS-compatible name lister.
19273 # Whether we need soft or hard links.
19276 # What is the maximum length of a command?
19277 max_cmd_len=$max_cmd_len
19279 # Object file suffix (normally "o").
19282 # Executable file suffix (normally "").
19285 # whether the shell understands "unset".
19288 # turn spaces into newlines.
19291 # turn newlines into spaces.
19294 # convert \$build file names to \$host format.
19295 to_host_file_cmd=$lt_cv_to_host_file_cmd
19297 # convert \$build files to toolchain format.
19298 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19300 # Method to check whether dependent libraries are shared objects.
19301 deplibs_check_method=$lt_deplibs_check_method
19303 # Command to use when deplibs_check_method = "file_magic".
19304 file_magic_cmd=$lt_file_magic_cmd
19306 # How to find potential files when deplibs_check_method = "file_magic".
19307 file_magic_glob=$lt_file_magic_glob
19309 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19310 want_nocaseglob=$lt_want_nocaseglob
19312 # Command to associate shared and link libraries.
19313 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19318 # Flags to create an archive.
19319 AR_FLAGS=$lt_AR_FLAGS
19321 # How to feed a file listing to the archiver.
19322 archiver_list_spec=$lt_archiver_list_spec
19324 # A symbol stripping program.
19327 # Commands used to install an old-style archive.
19329 old_postinstall_cmds=$lt_old_postinstall_cmds
19330 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19332 # Whether to use a lock for old archive extraction.
19333 lock_old_archive_extraction=$lock_old_archive_extraction
19338 # LTCC compiler flags.
19339 LTCFLAGS=$lt_CFLAGS
19341 # Take the output of nm and produce a listing of raw symbols and C names.
19342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19344 # Transform the output of nm in a proper C declaration.
19345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19347 # Transform the output of nm into a list of symbols to manually relocate.
19348 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19350 # Transform the output of nm in a C name address pair.
19351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19353 # Transform the output of nm in a C name address pair when lib prefix is needed.
19354 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19356 # The name lister interface.
19357 nm_interface=$lt_lt_cv_nm_interface
19359 # Specify filename containing input files for \$NM.
19360 nm_file_list_spec=$lt_nm_file_list_spec
19362 # The root where to search for dependent libraries,and where our libraries should be installed.
19363 lt_sysroot=$lt_sysroot
19365 # Command to truncate a binary pipe.
19366 lt_truncate_bin=$lt_lt_cv_truncate_bin
19368 # The name of the directory that contains temporary libtool files.
19371 # Used to examine libraries when file_magic_cmd begins with "file".
19372 MAGIC_CMD=$MAGIC_CMD
19374 # Must we lock files when doing compilation?
19375 need_locks=$lt_need_locks
19378 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19380 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19381 DSYMUTIL=$lt_DSYMUTIL
19383 # Tool to change global to local symbols on Mac OS X.
19386 # Tool to manipulate fat objects and archives on Mac OS X.
19389 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19392 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19393 OTOOL64=$lt_OTOOL64
19395 # Old archive suffix (normally "a").
19398 # Shared library suffix (normally ".so").
19399 shrext_cmds=$lt_shrext_cmds
19401 # The commands to extract the exported symbol list from a shared archive.
19402 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19404 # Variables whose values should be saved in libtool wrapper scripts and
19405 # restored at link time.
19406 variables_saved_for_relink=$lt_variables_saved_for_relink
19408 # Do we need the "lib" prefix for modules?
19409 need_lib_prefix=$need_lib_prefix
19411 # Do we need a version for libraries?
19412 need_version=$need_version
19414 # Library versioning type.
19415 version_type=$version_type
19417 # Shared library runtime path variable.
19418 runpath_var=$runpath_var
19420 # Shared library path variable.
19421 shlibpath_var=$shlibpath_var
19423 # Is shlibpath searched before the hard-coded library search path?
19424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19426 # Format of library name prefix.
19427 libname_spec=$lt_libname_spec
19429 # List of archive names. First name is the real one, the rest are links.
19430 # The last name is the one that the linker finds with -lNAME
19431 library_names_spec=$lt_library_names_spec
19433 # The coded name of the library, if different from the real name.
19434 soname_spec=$lt_soname_spec
19436 # Permission mode override for installation of shared libraries.
19437 install_override_mode=$lt_install_override_mode
19439 # Command to use after installation of a shared archive.
19440 postinstall_cmds=$lt_postinstall_cmds
19442 # Command to use after uninstallation of a shared archive.
19443 postuninstall_cmds=$lt_postuninstall_cmds
19445 # Commands used to finish a libtool library installation in a directory.
19446 finish_cmds=$lt_finish_cmds
19448 # As "finish_cmds", except a single script fragment to be evaled but
19450 finish_eval=$lt_finish_eval
19452 # Whether we should hardcode library paths into libraries.
19453 hardcode_into_libs=$hardcode_into_libs
19455 # Compile-time system search path for libraries.
19456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19458 # Detected run-time system search path for libraries.
19459 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19461 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19462 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19464 # Whether dlopen is supported.
19465 dlopen_support=$enable_dlopen
19467 # Whether dlopen of programs is supported.
19468 dlopen_self=$enable_dlopen_self
19470 # Whether dlopen of statically linked programs is supported.
19471 dlopen_self_static=$enable_dlopen_self_static
19473 # Commands to strip libraries.
19474 old_striplib=$lt_old_striplib
19475 striplib=$lt_striplib
19478 # The linker used to build libraries.
19481 # How to create reloadable object files.
19482 reload_flag=$lt_reload_flag
19483 reload_cmds=$lt_reload_cmds
19485 # Commands used to build an old-style archive.
19486 old_archive_cmds=$lt_old_archive_cmds
19488 # A language specific compiler.
19491 # Is the compiler the GNU compiler?
19494 # Compiler flag to turn off builtin functions.
19495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19497 # Additional compiler flags for building library objects.
19498 pic_flag=$lt_lt_prog_compiler_pic
19500 # How to pass a linker flag through the compiler.
19501 wl=$lt_lt_prog_compiler_wl
19503 # Compiler flag to prevent dynamic linking.
19504 link_static_flag=$lt_lt_prog_compiler_static
19506 # Does compiler simultaneously support -c and -o options?
19507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19509 # Whether or not to add -lc for building shared libraries.
19510 build_libtool_need_lc=$archive_cmds_need_lc
19512 # Whether or not to disallow shared libs when runtime libs are static.
19513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19515 # Compiler flag to allow reflexive dlopens.
19516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19518 # Compiler flag to generate shared objects directly from archives.
19519 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19521 # Whether the compiler copes with passing no objects directly.
19522 compiler_needs_object=$lt_compiler_needs_object
19524 # Create an old-style archive from a shared archive.
19525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19527 # Create a temporary old-style archive to link instead of a shared archive.
19528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19530 # Commands used to build a shared archive.
19531 archive_cmds=$lt_archive_cmds
19532 archive_expsym_cmds=$lt_archive_expsym_cmds
19534 # Commands used to build a loadable module if different from building
19535 # a shared archive.
19536 module_cmds=$lt_module_cmds
19537 module_expsym_cmds=$lt_module_expsym_cmds
19539 # Whether we are building with GNU ld or not.
19540 with_gnu_ld=$lt_with_gnu_ld
19542 # Flag that allows shared libraries with undefined symbols to be built.
19543 allow_undefined_flag=$lt_allow_undefined_flag
19545 # Flag that enforces no undefined symbols.
19546 no_undefined_flag=$lt_no_undefined_flag
19548 # Flag to hardcode \$libdir into a binary during linking.
19549 # This must work even if \$libdir does not exist
19550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19552 # Whether we need a single "-rpath" flag with a separated argument.
19553 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19555 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19556 # DIR into the resulting binary.
19557 hardcode_direct=$hardcode_direct
19559 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19560 # DIR into the resulting binary and the resulting library dependency is
19561 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19562 # library is relocated.
19563 hardcode_direct_absolute=$hardcode_direct_absolute
19565 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19566 # into the resulting binary.
19567 hardcode_minus_L=$hardcode_minus_L
19569 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19570 # into the resulting binary.
19571 hardcode_shlibpath_var=$hardcode_shlibpath_var
19573 # Set to "yes" if building a shared library automatically hardcodes DIR
19574 # into the library and all subsequent libraries and executables linked
19576 hardcode_automatic=$hardcode_automatic
19578 # Set to yes if linker adds runtime paths of dependent libraries
19579 # to runtime path list.
19580 inherit_rpath=$inherit_rpath
19582 # Whether libtool must link a program against all its dependency libraries.
19583 link_all_deplibs=$link_all_deplibs
19585 # Set to "yes" if exported symbols are required.
19586 always_export_symbols=$always_export_symbols
19588 # The commands to list exported symbols.
19589 export_symbols_cmds=$lt_export_symbols_cmds
19591 # Symbols that should not be listed in the preloaded symbols.
19592 exclude_expsyms=$lt_exclude_expsyms
19594 # Symbols that must always be exported.
19595 include_expsyms=$lt_include_expsyms
19597 # Commands necessary for linking programs (against libraries) with templates.
19598 prelink_cmds=$lt_prelink_cmds
19600 # Commands necessary for finishing linking programs.
19601 postlink_cmds=$lt_postlink_cmds
19603 # Specify filename containing input files.
19604 file_list_spec=$lt_file_list_spec
19606 # How to hardcode a shared library path into an executable.
19607 hardcode_action=$hardcode_action
19609 # The directories searched by this compiler when creating a shared library.
19610 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19612 # Dependencies to place before and after the objects being linked to
19613 # create a shared library.
19614 predep_objects=$lt_predep_objects
19615 postdep_objects=$lt_postdep_objects
19616 predeps=$lt_predeps
19617 postdeps=$lt_postdeps
19619 # The library search path used internally by the compiler when linking
19620 # a shared library.
19621 compiler_lib_search_path=$lt_compiler_lib_search_path
19623 # ### END LIBTOOL CONFIG
19627 cat <<'_LT_EOF' >> "$cfgfile"
19629 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19631 # func_munge_path_list VARIABLE PATH
19632 # -----------------------------------
19633 # VARIABLE is name of variable containing _space_ separated list of
19634 # directories to be munged by the contents of PATH, which is string
19637 # string "DIR[ DIR]" will be prepended to VARIABLE
19639 # string "DIR[ DIR]" will be appended to VARIABLE
19640 # "DIRP[:DIRP]::[DIRA:]DIRA"
19641 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19642 # "DIRA[ DIRA]" will be appended to VARIABLE
19644 # VARIABLE will be replaced by "DIR[ DIR]"
19645 func_munge_path_list ()
19651 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19654 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19657 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19658 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19661 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19667 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19668 func_cc_basename ()
19670 for cc_temp in $*""; do
19672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19678 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19682 # ### END FUNCTIONS SHARED WITH CONFIGURE
19688 cat <<\_LT_EOF >> "$cfgfile"
19689 # AIX sometimes has problems with the GCC collect2 program. For some
19690 # reason, if we set the COLLECT_NAMES environment variable, the problems
19691 # vanish in a puff of smoke.
19692 if test set != "${COLLECT_NAMES+set}"; then
19694 export COLLECT_NAMES
19701 ltmain=$ac_aux_dir/ltmain.sh
19704 # We use sed instead of cat because bash on DJGPP gets confused if
19705 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19706 # text mode, it properly converts lines to CR/LF. This bash problem
19707 # is reportedly fixed, but why not run on old versions too?
19708 sed '$q' "$ltmain" >> "$cfgfile" \
19709 || (rm -f "$cfgfile"; exit 1)
19711 mv -f "$cfgfile" "$ofile" ||
19712 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19716 cat <<_LT_EOF >> "$ofile"
19718 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19720 # The linker used to build libraries.
19723 # How to create reloadable object files.
19724 reload_flag=$lt_reload_flag_CXX
19725 reload_cmds=$lt_reload_cmds_CXX
19727 # Commands used to build an old-style archive.
19728 old_archive_cmds=$lt_old_archive_cmds_CXX
19730 # A language specific compiler.
19731 CC=$lt_compiler_CXX
19733 # Is the compiler the GNU compiler?
19736 # Compiler flag to turn off builtin functions.
19737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19739 # Additional compiler flags for building library objects.
19740 pic_flag=$lt_lt_prog_compiler_pic_CXX
19742 # How to pass a linker flag through the compiler.
19743 wl=$lt_lt_prog_compiler_wl_CXX
19745 # Compiler flag to prevent dynamic linking.
19746 link_static_flag=$lt_lt_prog_compiler_static_CXX
19748 # Does compiler simultaneously support -c and -o options?
19749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19751 # Whether or not to add -lc for building shared libraries.
19752 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19754 # Whether or not to disallow shared libs when runtime libs are static.
19755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19757 # Compiler flag to allow reflexive dlopens.
19758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19760 # Compiler flag to generate shared objects directly from archives.
19761 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19763 # Whether the compiler copes with passing no objects directly.
19764 compiler_needs_object=$lt_compiler_needs_object_CXX
19766 # Create an old-style archive from a shared archive.
19767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19769 # Create a temporary old-style archive to link instead of a shared archive.
19770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19772 # Commands used to build a shared archive.
19773 archive_cmds=$lt_archive_cmds_CXX
19774 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19776 # Commands used to build a loadable module if different from building
19777 # a shared archive.
19778 module_cmds=$lt_module_cmds_CXX
19779 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19781 # Whether we are building with GNU ld or not.
19782 with_gnu_ld=$lt_with_gnu_ld_CXX
19784 # Flag that allows shared libraries with undefined symbols to be built.
19785 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19787 # Flag that enforces no undefined symbols.
19788 no_undefined_flag=$lt_no_undefined_flag_CXX
19790 # Flag to hardcode \$libdir into a binary during linking.
19791 # This must work even if \$libdir does not exist
19792 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19794 # Whether we need a single "-rpath" flag with a separated argument.
19795 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19797 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19798 # DIR into the resulting binary.
19799 hardcode_direct=$hardcode_direct_CXX
19801 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19802 # DIR into the resulting binary and the resulting library dependency is
19803 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19804 # library is relocated.
19805 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19807 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19808 # into the resulting binary.
19809 hardcode_minus_L=$hardcode_minus_L_CXX
19811 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19812 # into the resulting binary.
19813 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19815 # Set to "yes" if building a shared library automatically hardcodes DIR
19816 # into the library and all subsequent libraries and executables linked
19818 hardcode_automatic=$hardcode_automatic_CXX
19820 # Set to yes if linker adds runtime paths of dependent libraries
19821 # to runtime path list.
19822 inherit_rpath=$inherit_rpath_CXX
19824 # Whether libtool must link a program against all its dependency libraries.
19825 link_all_deplibs=$link_all_deplibs_CXX
19827 # Set to "yes" if exported symbols are required.
19828 always_export_symbols=$always_export_symbols_CXX
19830 # The commands to list exported symbols.
19831 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19833 # Symbols that should not be listed in the preloaded symbols.
19834 exclude_expsyms=$lt_exclude_expsyms_CXX
19836 # Symbols that must always be exported.
19837 include_expsyms=$lt_include_expsyms_CXX
19839 # Commands necessary for linking programs (against libraries) with templates.
19840 prelink_cmds=$lt_prelink_cmds_CXX
19842 # Commands necessary for finishing linking programs.
19843 postlink_cmds=$lt_postlink_cmds_CXX
19845 # Specify filename containing input files.
19846 file_list_spec=$lt_file_list_spec_CXX
19848 # How to hardcode a shared library path into an executable.
19849 hardcode_action=$hardcode_action_CXX
19851 # The directories searched by this compiler when creating a shared library.
19852 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19854 # Dependencies to place before and after the objects being linked to
19855 # create a shared library.
19856 predep_objects=$lt_predep_objects_CXX
19857 postdep_objects=$lt_postdep_objects_CXX
19858 predeps=$lt_predeps_CXX
19859 postdeps=$lt_postdeps_CXX
19861 # The library search path used internally by the compiler when linking
19862 # a shared library.
19863 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19865 # ### END LIBTOOL TAG CONFIG: CXX
19869 "run.sh":F) chmod +x run.sh ;;
19877 ac_clean_files=$ac_clean_files_save
19879 test $ac_write_fail = 0 ||
19880 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19883 # configure is writing to config.log, and then calls config.status.
19884 # config.status does its own redirection, appending to config.log.
19885 # Unfortunately, on DOS this fails, as config.log is still kept open
19886 # by configure, so config.status won't be able to write to it; its
19887 # output is simply discarded. So we exec the FD to /dev/null,
19888 # effectively closing config.log, so it can be properly (re)opened and
19889 # appended to by config.status. When coming back to configure, we
19890 # need to make the FD available again.
19891 if test "$no_create" != yes; then
19893 ac_config_status_args=
19894 test "$silent" = yes &&
19895 ac_config_status_args="$ac_config_status_args --quiet"
19897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19900 # would make configure fail if this is the last instruction.
19901 $ac_cs_success || as_fn_exit 1
19903 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19905 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}