2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for expat 2.1.1.
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.1.1'
594 PACKAGE_STRING='expat 2.1.1'
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='LTLIBOBJS
716 program_transform_name
729 enable_option_checking
738 ac_precious_vars='build_alias
753 # Initialize some variables set by options.
755 ac_init_version=false
756 ac_unrecognized_opts=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name=s,x,x,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
813 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 # Accept the important Cygnus configure options, so we can diagnose typos.
820 case $ac_dashdash$ac_option in
824 -bindir | --bindir | --bindi | --bind | --bin | --bi)
826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829 -build | --build | --buil | --bui | --bu)
830 ac_prev=build_alias ;;
831 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832 build_alias=$ac_optarg ;;
834 -cache-file | --cache-file | --cache-fil | --cache-fi \
835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836 ac_prev=cache_file ;;
837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839 cache_file=$ac_optarg ;;
842 cache_file=config.cache ;;
844 -datadir | --datadir | --datadi | --datad)
846 -datadir=* | --datadir=* | --datadi=* | --datad=*)
847 datadir=$ac_optarg ;;
849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850 | --dataroo | --dataro | --datar)
851 ac_prev=datarootdir ;;
852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854 datarootdir=$ac_optarg ;;
856 -disable-* | --disable-*)
857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860 as_fn_error $? "invalid feature name: $ac_useropt"
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
870 eval enable_$ac_useropt=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 -enable-* | --enable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
896 eval enable_$ac_useropt=\$ac_optarg ;;
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
911 -help | --help | --hel | --he | -h)
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927 htmldir=$ac_optarg ;;
929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
941 -libdir | --libdir | --libdi | --libd)
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
953 -localedir | --localedir | --localedi | --localed | --locale)
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
958 -localstatedir | --localstatedir | --localstatedi | --localstated \
959 | --localstate | --localstat | --localsta | --localst | --locals)
960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963 localstatedir=$ac_optarg ;;
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971 # Obsolete; use --without-fp.
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n)
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1032 -psdir | --psdir | --psdi | --psd | --ps)
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045 sbindir=$ac_optarg ;;
1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049 | --sharedst | --shareds | --shared | --share | --shar \
1051 ac_prev=sharedstatedir ;;
1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056 sharedstatedir=$ac_optarg ;;
1058 -site | --site | --sit)
1060 -site=* | --site=* | --sit=*)
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 srcdir=$ac_optarg ;;
1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069 | --syscon | --sysco | --sysc | --sys | --sy)
1070 ac_prev=sysconfdir ;;
1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073 sysconfdir=$ac_optarg ;;
1075 -target | --target | --targe | --targ | --tar | --ta | --t)
1076 ac_prev=target_alias ;;
1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078 target_alias=$ac_optarg ;;
1080 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 -version | --version | --versio | --versi | --vers | -V)
1084 ac_init_version=: ;;
1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1100 eval with_$ac_useropt=\$ac_optarg ;;
1102 -without-* | --without-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error $? "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval with_$ac_useropt=no ;;
1119 # Obsolete; use --with-x.
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1136 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1137 Try \`$0 --help' for more information"
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 case $ac_envvar in #(
1144 '' | [0-9]* | *[!_$as_cr_alnum]* )
1145 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1147 eval $ac_envvar=\$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161 if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163 as_fn_error $? "missing argument to $ac_option"
1166 if test -n "$ac_unrecognized_opts"; then
1167 case $enable_option_checking in
1169 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 # Check all directory arguments for consistency.
1175 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val=\$$ac_var
1181 # Remove trailing slashes.
1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185 eval $ac_var=\$ac_val;;
1187 # Be sure to have absolute directory names.
1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1200 target=$target_alias
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 as_fn_error $? "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 as_fn_error $? "pwd does not report name of working directory"
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1257 ac_srcdir_defaulted=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1291 \`configure' configures expat 2.1.1 to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking ...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354 if test -n "$ac_init_help"; then
1355 case $ac_init_help in
1356 short | recursive ) echo "Configuration of expat 2.1.1:";;
1361 --disable-option-checking ignore unrecognized --enable/--with options
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 --enable-shared[=PKGS] build shared libraries [default=yes]
1365 --enable-static[=PKGS] build static libraries [default=yes]
1366 --enable-fast-install[=PKGS]
1367 optimize for fast installation [default=yes]
1368 --disable-libtool-lock avoid locking (might break parallel builds)
1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1373 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1375 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1376 --with-sysroot=DIR Search for dependent libraries within DIR
1377 (or the compiler's sysroot if not specified).
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1388 CXX C++ compiler command
1389 CXXFLAGS C++ compiler flags
1390 CXXCPP C++ preprocessor
1392 Use these variables to override the choices made by `configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1395 Report bugs to <expat-bugs@libexpat.org>.
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" ||
1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1425 .) # We are building in place.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1458 expat configure 2.1.1
1459 generated by GNU Autoconf 2.69
1461 Copyright (C) 2012 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1468 ## ------------------------ ##
1469 ## Autoconf initialization. ##
1470 ## ------------------------ ##
1472 # ac_fn_c_try_compile LINENO
1473 # --------------------------
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_c_try_compile ()
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 rm -f conftest.$ac_objext
1479 if { { ac_try="$ac_compile"
1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482 *) ac_try_echo=$ac_try;;
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486 (eval "$ac_compile") 2>conftest.err
1488 if test -s conftest.err; then
1489 grep -v '^ *+' conftest.err >conftest.er1
1490 cat conftest.er1 >&5
1491 mv -f conftest.er1 conftest.err
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; } && {
1495 test -z "$ac_c_werror_flag" ||
1496 test ! -s conftest.err
1497 } && test -s conftest.$ac_objext; then :
1500 $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506 as_fn_set_status $ac_retval
1508 } # ac_fn_c_try_compile
1510 # ac_fn_c_try_link LINENO
1511 # -----------------------
1512 # Try to link conftest.$ac_ext, and return whether this succeeded.
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext conftest$ac_exeext
1517 if { { ac_try="$ac_link"
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_link") 2>conftest.err
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest$ac_exeext && {
1536 test "$cross_compiling" = yes ||
1537 test -x conftest$ac_exeext
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1546 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1547 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1548 # interfere with the next link command; also delete a directory that is
1549 # left behind by Apple's compiler. We do this before executing the actions.
1550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1554 } # ac_fn_c_try_link
1556 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1557 # -------------------------------------------------------
1558 # Tests whether HEADER exists and can be compiled using the include files in
1559 # INCLUDES, setting the cache variable VAR accordingly.
1560 ac_fn_c_check_header_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1564 $as_echo_n "checking for $2... " >&6; }
1565 if eval \${$3+:} false; then :
1566 $as_echo_n "(cached) " >&6
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h. */
1573 if ac_fn_c_try_compile "$LINENO"; then :
1578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 $as_echo "$ac_res" >&6; }
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 } # ac_fn_c_check_header_compile
1587 # ac_fn_c_try_cpp LINENO
1588 # ----------------------
1589 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 if { { ac_try="$ac_cpp conftest.$ac_ext"
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } > conftest.i && {
1609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1624 # ac_fn_c_try_run LINENO
1625 # ----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1627 # that executables *can* be run.
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_link"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>&5
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1642 { { case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_try") 2>&5
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; }; }; then :
1654 $as_echo "$as_me: program exited with status $ac_status" >&5
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=$ac_status
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1666 # ac_fn_c_check_func LINENO FUNC VAR
1667 # ----------------------------------
1668 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1669 ac_fn_c_check_func ()
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1681 #define $2 innocuous_$2
1683 /* System header to define __stub macros and hopefully few prototypes,
1684 which can conflict with char $2 (); below.
1685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1686 <limits.h> exists even on freestanding compilers. */
1689 # include <limits.h>
1691 # include <assert.h>
1696 /* Override any GCC internal prototype to avoid an error.
1697 Use char because int might match the return type of a GCC
1698 builtin and then its argument prototype would still apply. */
1703 /* The GNU C library defines this for functions which it implements
1704 to always fail with ENOSYS. Some functions are actually named
1705 something starting with __ and the normal name is an alias. */
1706 #if defined __stub_$2 || defined __stub___$2
1718 if ac_fn_c_try_link "$LINENO"; then :
1723 rm -f core conftest.err conftest.$ac_objext \
1724 conftest$ac_exeext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 } # ac_fn_c_check_func
1733 # ac_fn_cxx_try_compile LINENO
1734 # ----------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_cxx_try_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_cxx_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_cxx_try_compile
1771 # ac_fn_cxx_try_cpp LINENO
1772 # ------------------------
1773 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_cxx_try_cpp ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_cpp conftest.$ac_ext"
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } > conftest.i && {
1793 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1794 test ! -s conftest.err
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1806 } # ac_fn_cxx_try_cpp
1808 # ac_fn_cxx_try_link LINENO
1809 # -------------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_link ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_cxx_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 test -x conftest$ac_exeext
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_cxx_try_link
1854 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1855 # -------------------------------------------
1856 # Tests whether TYPE exists after having included INCLUDES, setting cache
1857 # variable VAR accordingly.
1858 ac_fn_c_check_type ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1892 if ac_fn_c_try_compile "$LINENO"; then :
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 } # ac_fn_c_check_type
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911 # the include files in INCLUDES and setting the cache variable VAR
1913 ac_fn_c_check_header_mongrel ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if eval \${$3+:} false; then :
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1926 # Is the header compilable?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928 $as_echo_n "checking $2 usability... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_header_compiler=yes
1937 ac_header_compiler=no
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941 $as_echo "$ac_header_compiler" >&6; }
1943 # Is the header present?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945 $as_echo_n "checking $2 presence... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951 ac_header_preproc=yes
1953 ac_header_preproc=no
1955 rm -f conftest.err conftest.i conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957 $as_echo "$ac_header_preproc" >&6; }
1959 # So? What about this header?
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 ( $as_echo "## -------------------------------------- ##
1979 ## Report this to expat-bugs@libexpat.org ##
1980 ## -------------------------------------- ##"
1981 ) | sed "s/^/$as_me: WARNING: /" >&2
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 eval "$3=\$ac_header_compiler"
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_check_header_mongrel
1998 cat >config.log <<_ACEOF
1999 This file contains any messages produced by compilers while
2000 running configure, to aid debugging if configure makes a mistake.
2002 It was created by expat $as_me 2.1.1, which was
2003 generated by GNU Autoconf 2.69. Invocation command line was
2015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2027 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir=.
2039 $as_echo "PATH: $as_dir"
2055 # Keep a trace of the command line.
2056 # Strip out --no-create and --no-recursion so they do not pile up.
2057 # Strip out --silent because we don't want to record it for future runs.
2058 # Also quote any args containing shell meta-characters.
2059 # Make two passes to allow for proper duplicate-argument suppression.
2063 ac_must_keep_next=false
2069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2071 | -silent | --silent | --silen | --sile | --sil)
2074 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2077 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2079 as_fn_append ac_configure_args1 " '$ac_arg'"
2080 if test $ac_must_keep_next = true; then
2081 ac_must_keep_next=false # Got value, back to normal.
2084 *=* | --config-cache | -C | -disable-* | --disable-* \
2085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2087 | -with-* | --with-* | -without-* | --without-* | --x)
2088 case "$ac_configure_args0 " in
2089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2092 -* ) ac_must_keep_next=true ;;
2095 as_fn_append ac_configure_args " '$ac_arg'"
2100 { ac_configure_args0=; unset ac_configure_args0;}
2101 { ac_configure_args1=; unset ac_configure_args1;}
2103 # When interrupted or exit'd, cleanup temporary files, and complete
2104 # config.log. We remove comments because anyway the quotes in there
2105 # would cause problems or look ugly.
2106 # WARNING: Use '\'' to represent an apostrophe within the trap.
2107 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2108 trap 'exit_status=$?
2109 # Save into config.log some information that might help in debugging.
2113 $as_echo "## ---------------- ##
2114 ## Cache variables. ##
2115 ## ---------------- ##"
2117 # The following way of writing the cache mishandles newlines in values,
2119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2120 eval ac_val=\$$ac_var
2124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2128 _ | IFS | as_nl) ;; #(
2129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2130 *) { eval $ac_var=; unset $ac_var;} ;;
2135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2136 *${as_nl}ac_space=\ *)
2138 "s/'\''/'\''\\\\'\'''\''/g;
2139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2149 $as_echo "## ----------------- ##
2150 ## Output variables. ##
2151 ## ----------------- ##"
2153 for ac_var in $ac_subst_vars
2155 eval ac_val=\$$ac_var
2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 $as_echo "$ac_var='\''$ac_val'\''"
2163 if test -n "$ac_subst_files"; then
2164 $as_echo "## ------------------- ##
2165 ## File substitutions. ##
2166 ## ------------------- ##"
2168 for ac_var in $ac_subst_files
2170 eval ac_val=\$$ac_var
2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 $as_echo "$ac_var='\''$ac_val'\''"
2179 if test -s confdefs.h; then
2180 $as_echo "## ----------- ##
2187 test "$ac_signal" != 0 &&
2188 $as_echo "$as_me: caught signal $ac_signal"
2189 $as_echo "$as_me: exit $exit_status"
2191 rm -f core *.core core.conftest.* &&
2192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2195 for ac_signal in 1 2 13 15; do
2196 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2201 rm -f -r conftest* confdefs.h
2203 $as_echo "/* confdefs.h */" > confdefs.h
2205 # Predefined preprocessor variables.
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_NAME "$PACKAGE_NAME"
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_STRING "$PACKAGE_STRING"
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_URL "$PACKAGE_URL"
2232 # Let the site file select an alternate cache file if it wants to.
2233 # Prefer an explicitly selected file to automatically selected ones.
2236 if test -n "$CONFIG_SITE"; then
2237 # We do not want a PATH search for config.site.
2238 case $CONFIG_SITE in #((
2239 -*) ac_site_file1=./$CONFIG_SITE;;
2240 */*) ac_site_file1=$CONFIG_SITE;;
2241 *) ac_site_file1=./$CONFIG_SITE;;
2243 elif test "x$prefix" != xNONE; then
2244 ac_site_file1=$prefix/share/config.site
2245 ac_site_file2=$prefix/etc/config.site
2247 ac_site_file1=$ac_default_prefix/share/config.site
2248 ac_site_file2=$ac_default_prefix/etc/config.site
2250 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2252 test "x$ac_site_file" = xNONE && continue
2253 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2255 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2256 sed 's/^/| /' "$ac_site_file" >&5
2258 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260 as_fn_error $? "failed to load site script $ac_site_file
2261 See \`config.log' for more details" "$LINENO" 5; }
2265 if test -r "$cache_file"; then
2266 # Some versions of bash will fail to source /dev/null (special files
2267 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2268 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2270 $as_echo "$as_me: loading cache $cache_file" >&6;}
2272 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2273 *) . "./$cache_file";;
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2278 $as_echo "$as_me: creating cache $cache_file" >&6;}
2282 as_fn_append ac_header_list " stdlib.h"
2283 as_fn_append ac_header_list " unistd.h"
2284 as_fn_append ac_header_list " sys/param.h"
2285 # Check that the precious variables saved in the cache have kept the same
2287 ac_cache_corrupted=false
2288 for ac_var in $ac_precious_vars; do
2289 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2290 eval ac_new_set=\$ac_env_${ac_var}_set
2291 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2292 eval ac_new_val=\$ac_env_${ac_var}_value
2293 case $ac_old_set,$ac_new_set in
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2297 ac_cache_corrupted=: ;;
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2300 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2301 ac_cache_corrupted=: ;;
2304 if test "x$ac_old_val" != "x$ac_new_val"; then
2305 # differences in whitespace do not lead to failure.
2306 ac_old_val_w=`echo x $ac_old_val`
2307 ac_new_val_w=`echo x $ac_new_val`
2308 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2310 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2311 ac_cache_corrupted=:
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2314 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2315 eval $ac_var=\$ac_old_val
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2318 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2320 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2323 # Pass precious variables to config.status.
2324 if test "$ac_new_set" = set; then
2326 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 *) ac_arg=$ac_var=$ac_new_val ;;
2329 case " $ac_configure_args " in
2330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2331 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2335 if $ac_cache_corrupted; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2339 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2340 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2342 ## -------------------- ##
2343 ## Main body of script. ##
2344 ## -------------------- ##
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 for ac_dir in conftools "$srcdir"/conftools; do
2358 if test -f "$ac_dir/install-sh"; then
2360 ac_install_sh="$ac_aux_dir/install-sh -c"
2362 elif test -f "$ac_dir/install.sh"; then
2364 ac_install_sh="$ac_aux_dir/install.sh -c"
2366 elif test -f "$ac_dir/shtool"; then
2368 ac_install_sh="$ac_aux_dir/shtool install -c"
2372 if test -z "$ac_aux_dir"; then
2373 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2376 # These three variables are undocumented and unsupported,
2377 # and are intended to be withdrawn in a future Autoconf release.
2378 # They can cause serious problems if a builder's source tree is in a directory
2379 # whose full name contains unusual characters.
2380 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2381 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2382 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2393 ac_config_headers="$ac_config_headers expat_config.h"
2399 # Make sure we can run config.sub.
2400 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2401 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2404 $as_echo_n "checking build system type... " >&6; }
2405 if ${ac_cv_build+:} false; then :
2406 $as_echo_n "(cached) " >&6
2408 ac_build_alias=$build_alias
2409 test "x$ac_build_alias" = x &&
2410 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2411 test "x$ac_build_alias" = x &&
2412 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2413 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2418 $as_echo "$ac_cv_build" >&6; }
2419 case $ac_cv_build in
2421 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2424 ac_save_IFS=$IFS; IFS='-'
2430 # Remember, the first character of IFS is used to create $*,
2431 # except with old shells:
2434 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2438 $as_echo_n "checking host system type... " >&6; }
2439 if ${ac_cv_host+:} false; then :
2440 $as_echo_n "(cached) " >&6
2442 if test "x$host_alias" = x; then
2443 ac_cv_host=$ac_cv_build
2445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2451 $as_echo "$ac_cv_host" >&6; }
2454 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2457 ac_save_IFS=$IFS; IFS='-'
2463 # Remember, the first character of IFS is used to create $*,
2464 # except with old shells:
2467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2470 enable_win32_dll=yes
2473 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
2474 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}as; ac_word=$2
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if ${ac_cv_prog_AS+:} false; then :
2480 $as_echo_n "(cached) " >&6
2482 if test -n "$AS"; then
2483 ac_cv_prog_AS="$AS" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492 ac_cv_prog_AS="${ac_tool_prefix}as"
2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 if test -n "$AS"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2505 $as_echo "$AS" >&6; }
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508 $as_echo "no" >&6; }
2513 if test -z "$ac_cv_prog_AS"; then
2515 # Extract the first word of "as", so it can be a program name with args.
2516 set dummy as; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2520 $as_echo_n "(cached) " >&6
2522 if test -n "$ac_ct_AS"; then
2523 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532 ac_cv_prog_ac_ct_AS="as"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2543 if test -n "$ac_ct_AS"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
2545 $as_echo "$ac_ct_AS" >&6; }
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2551 if test "x$ac_ct_AS" = x; then
2554 case $cross_compiling:$ac_tool_warned in
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2558 ac_tool_warned=yes ;;
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_DLLTOOL+:} false; then :
2572 $as_echo_n "(cached) " >&6
2574 if test -n "$DLLTOOL"; then
2575 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 DLLTOOL=$ac_cv_prog_DLLTOOL
2595 if test -n "$DLLTOOL"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2597 $as_echo "$DLLTOOL" >&6; }
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2605 if test -z "$ac_cv_prog_DLLTOOL"; then
2606 ac_ct_DLLTOOL=$DLLTOOL
2607 # Extract the first word of "dlltool", so it can be a program name with args.
2608 set dummy dlltool; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2612 $as_echo_n "(cached) " >&6
2614 if test -n "$ac_ct_DLLTOOL"; then
2615 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2635 if test -n "$ac_ct_DLLTOOL"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2637 $as_echo "$ac_ct_DLLTOOL" >&6; }
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2643 if test "x$ac_ct_DLLTOOL" = x; then
2646 case $cross_compiling:$ac_tool_warned in
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2650 ac_tool_warned=yes ;;
2652 DLLTOOL=$ac_ct_DLLTOOL
2655 DLLTOOL="$ac_cv_prog_DLLTOOL"
2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_OBJDUMP+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 if test -n "$OBJDUMP"; then
2667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 OBJDUMP=$ac_cv_prog_OBJDUMP
2687 if test -n "$OBJDUMP"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
2689 $as_echo "$OBJDUMP" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2697 if test -z "$ac_cv_prog_OBJDUMP"; then
2698 ac_ct_OBJDUMP=$OBJDUMP
2699 # Extract the first word of "objdump", so it can be a program name with args.
2700 set dummy objdump; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2704 $as_echo_n "(cached) " >&6
2706 if test -n "$ac_ct_OBJDUMP"; then
2707 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_OBJDUMP="objdump"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2727 if test -n "$ac_ct_OBJDUMP"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
2729 $as_echo "$ac_ct_OBJDUMP" >&6; }
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2735 if test "x$ac_ct_OBJDUMP" = x; then
2738 case $cross_compiling:$ac_tool_warned in
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742 ac_tool_warned=yes ;;
2744 OBJDUMP=$ac_ct_OBJDUMP
2747 OBJDUMP="$ac_cv_prog_OBJDUMP"
2753 test -z "$AS" && AS=as
2759 test -z "$DLLTOOL" && DLLTOOL=dlltool
2765 test -z "$OBJDUMP" && OBJDUMP=objdump
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2776 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2781 macro_version='2.4.2'
2782 macro_revision='1.3337'
2796 ltmain="$ac_aux_dir/ltmain.sh"
2798 # Backslashify metacharacters that are still active within
2799 # double-quoted strings.
2800 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2802 # Same as above, but do not quote variable references.
2803 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2805 # Sed substitution to delay expansion of an escaped shell variable in a
2806 # double_quote_subst'ed string.
2807 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2809 # Sed substitution to delay expansion of an escaped single quote.
2810 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2812 # Sed substitution to avoid accidental globbing in evaled expressions
2813 no_glob_subst='s/\*/\\\*/g'
2815 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2820 $as_echo_n "checking how to print strings... " >&6; }
2821 # Test print first, because it will be a builtin if present.
2822 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2823 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2825 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2828 # Use this function as a fallback that always works.
2829 func_fallback_echo ()
2831 eval 'cat <<_LTECHO_EOF
2835 ECHO='func_fallback_echo'
2838 # func_echo_all arg...
2839 # Invoke $ECHO with all args, space-separated.
2846 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2847 $as_echo "printf" >&6; } ;;
2848 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2849 $as_echo "print -r" >&6; } ;;
2850 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2851 $as_echo "cat" >&6; } ;;
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if ${ac_cv_prog_CC+:} false; then :
2878 $as_echo_n "(cached) " >&6
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 if test -n "$CC"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2903 $as_echo "$CC" >&6; }
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2911 if test -z "$ac_cv_prog_CC"; then
2913 # Extract the first word of "gcc", so it can be a program name with args.
2914 set dummy gcc; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2918 $as_echo_n "(cached) " >&6
2920 if test -n "$ac_ct_CC"; then
2921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_CC="gcc"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2941 if test -n "$ac_ct_CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943 $as_echo "$ac_ct_CC" >&6; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2949 if test "x$ac_ct_CC" = x; then
2952 case $cross_compiling:$ac_tool_warned in
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956 ac_tool_warned=yes ;;
2964 if test -z "$CC"; then
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}cc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_CC="${ac_tool_prefix}cc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3005 if test -z "$CC"; then
3006 # Extract the first word of "cc", so it can be a program name with args.
3007 set dummy cc; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_CC+:} false; then :
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$CC"; then
3014 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3025 ac_prog_rejected=yes
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 if test $ac_prog_rejected = yes; then
3037 # We found a bogon in the path, so make sure we never use it.
3038 set dummy $ac_cv_prog_CC
3040 if test $# != 0; then
3041 # We chose a different compiler from the bogus one.
3042 # However, it has the same basename, so the bogon will be chosen
3043 # first if we set CC to just the basename; use the full file name.
3045 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3051 if test -n "$CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 for ac_prog in cl.exe
3065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3102 test -n "$CC" && break
3105 if test -z "$CC"; then
3107 for ac_prog in cl.exe
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$ac_ct_CC"; then
3117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_CC="$ac_prog"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3137 if test -n "$ac_ct_CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3139 $as_echo "$ac_ct_CC" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3146 test -n "$ac_ct_CC" && break
3149 if test "x$ac_ct_CC" = x; then
3152 case $cross_compiling:$ac_tool_warned in
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3156 ac_tool_warned=yes ;;
3165 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error $? "no acceptable C compiler found in \$PATH
3168 See \`config.log' for more details" "$LINENO" 5; }
3170 # Provide some information about the compiler.
3171 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3174 for ac_option in --version -v -V -qversion; do
3175 { { ac_try="$ac_compiler $ac_option >&5"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3184 if test -s conftest.err; then
3186 ... rest of stderr output deleted ...
3187 10q' conftest.err >conftest.er1
3188 cat conftest.er1 >&5
3190 rm -f conftest.er1 conftest.err
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3206 ac_clean_files_save=$ac_clean_files
3207 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3208 # Try to create an executable without -o first, disregard a.out.
3209 # It will help us diagnose broken compilers, and finding out an intuition
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3212 $as_echo_n "checking whether the C compiler works... " >&6; }
3213 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3215 # The possible output files:
3216 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3219 for ac_file in $ac_files
3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3223 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3228 if { { ac_try="$ac_link_default"
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_link_default") 2>&5
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }; then :
3239 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3240 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3241 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3242 # so that the user can short-circuit this test for compilers unknown to
3244 for ac_file in $ac_files ''
3246 test -f "$ac_file" || continue
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3251 # We found the default executable, but exeext='' is most
3255 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3257 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259 # We set ac_cv_exeext here because the later test for it is not
3260 # safe: cross compilers may not add the suffix if given an `-o'
3261 # argument, so we may need to know it at that point already.
3262 # Even if this section looks crufty: it has the advantage of
3269 test "$ac_cv_exeext" = no && ac_cv_exeext=
3274 if test -z "$ac_file"; then :
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error 77 "C compiler cannot create executables
3283 See \`config.log' for more details" "$LINENO" 5; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3289 $as_echo_n "checking for C compiler default output file name... " >&6; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3291 $as_echo "$ac_file" >&6; }
3292 ac_exeext=$ac_cv_exeext
3294 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3295 ac_clean_files=$ac_clean_files_save
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3297 $as_echo_n "checking for suffix of executables... " >&6; }
3298 if { { ac_try="$ac_link"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305 (eval "$ac_link") 2>&5
3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308 test $ac_status = 0; }; then :
3309 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3310 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3311 # work properly (i.e., refer to `conftest.exe'), while it won't with
3313 for ac_file in conftest.exe conftest conftest.*; do
3314 test -f "$ac_file" || continue
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3326 See \`config.log' for more details" "$LINENO" 5; }
3328 rm -f conftest conftest$ac_cv_exeext
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3330 $as_echo "$ac_cv_exeext" >&6; }
3332 rm -f conftest.$ac_ext
3333 EXEEXT=$ac_cv_exeext
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3341 FILE *f = fopen ("conftest.out", "w");
3342 return ferror (f) || fclose (f) != 0;
3348 ac_clean_files="$ac_clean_files conftest.out"
3349 # Check that the compiler produces executables we can run. If not, either
3350 # the compiler is broken, or we cross compile.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3352 $as_echo_n "checking whether we are cross compiling... " >&6; }
3353 if test "$cross_compiling" != yes; then
3354 { { ac_try="$ac_link"
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361 (eval "$ac_link") 2>&5
3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364 test $ac_status = 0; }
3365 if { ac_try='./conftest$ac_cv_exeext'
3366 { { case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_try") 2>&5
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }; }; then
3378 if test "$cross_compiling" = maybe; then
3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error $? "cannot run C compiled programs.
3384 If you meant to cross compile, use \`--host'.
3385 See \`config.log' for more details" "$LINENO" 5; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3390 $as_echo "$cross_compiling" >&6; }
3392 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3393 ac_clean_files=$ac_clean_files_save
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3395 $as_echo_n "checking for suffix of object files... " >&6; }
3396 if ${ac_cv_objext+:} false; then :
3397 $as_echo_n "(cached) " >&6
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3410 rm -f conftest.o conftest.obj
3411 if { { ac_try="$ac_compile"
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_compile") 2>&5
3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }; then :
3422 for ac_file in conftest.o conftest.obj conftest.*; do
3423 test -f "$ac_file" || continue;
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3426 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3431 $as_echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error $? "cannot compute suffix of object files: cannot compile
3437 See \`config.log' for more details" "$LINENO" 5; }
3439 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3442 $as_echo "$ac_cv_objext" >&6; }
3443 OBJEXT=$ac_cv_objext
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3446 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3447 if ${ac_cv_c_compiler_gnu+:} false; then :
3448 $as_echo_n "(cached) " >&6
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3464 if ac_fn_c_try_compile "$LINENO"; then :
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3474 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3475 if test $ac_compiler_gnu = yes; then
3480 ac_test_CFLAGS=${CFLAGS+set}
3481 ac_save_CFLAGS=$CFLAGS
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3483 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3484 if ${ac_cv_prog_cc_g+:} false; then :
3485 $as_echo_n "(cached) " >&6
3487 ac_save_c_werror_flag=$ac_c_werror_flag
3488 ac_c_werror_flag=yes
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3502 if ac_fn_c_try_compile "$LINENO"; then :
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3517 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_c_werror_flag=$ac_save_c_werror_flag
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3533 if ac_fn_c_try_compile "$LINENO"; then :
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 ac_c_werror_flag=$ac_save_c_werror_flag
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3544 $as_echo "$ac_cv_prog_cc_g" >&6; }
3545 if test "$ac_test_CFLAGS" = set; then
3546 CFLAGS=$ac_save_CFLAGS
3547 elif test $ac_cv_prog_cc_g = yes; then
3548 if test "$GCC" = yes; then
3554 if test "$GCC" = yes; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3561 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3562 if ${ac_cv_prog_cc_c89+:} false; then :
3563 $as_echo_n "(cached) " >&6
3565 ac_cv_prog_cc_c89=no
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3572 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3573 struct buf { int x; };
3574 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3575 static char *e (p, i)
3581 static char *f (char * (*g) (char **, int), char **p, ...)
3586 s = g (p, va_arg (v,int));
3591 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3592 function prototypes and stuff, but not '\xHH' hex character constants.
3593 These don't provoke an error unfortunately, instead are silently treated
3594 as 'x'. The following induces an error, until -std is added to get
3595 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3596 array size at least. It's necessary to write '\x00'==0 to get something
3597 that's true only with -std. */
3598 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3600 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3601 inside strings and character constants. */
3603 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3605 int test (int i, double x);
3606 struct s1 {int (*f) (int a);};
3607 struct s2 {int (*f) (double a);};
3608 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3614 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3619 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3620 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3622 CC="$ac_save_CC $ac_arg"
3623 if ac_fn_c_try_compile "$LINENO"; then :
3624 ac_cv_prog_cc_c89=$ac_arg
3626 rm -f core conftest.err conftest.$ac_objext
3627 test "x$ac_cv_prog_cc_c89" != "xno" && break
3629 rm -f conftest.$ac_ext
3634 case "x$ac_cv_prog_cc_c89" in
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3637 $as_echo "none needed" >&6; } ;;
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3640 $as_echo "unsupported" >&6; } ;;
3642 CC="$CC $ac_cv_prog_cc_c89"
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3644 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3646 if test "x$ac_cv_prog_cc_c89" != xno; then :
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3657 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3658 if ${ac_cv_path_SED+:} false; then :
3659 $as_echo_n "(cached) " >&6
3661 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3662 for ac_i in 1 2 3 4 5 6 7; do
3663 ac_script="$ac_script$as_nl$ac_script"
3665 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3666 { ac_script=; unset ac_script;}
3667 if test -z "$SED"; then
3668 ac_path_SED_found=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_prog in sed gsed; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3678 as_fn_executable_p "$ac_path_SED" || continue
3679 # Check for GNU ac_path_SED and select it if it is found.
3680 # Check for GNU $ac_path_SED
3681 case `"$ac_path_SED" --version 2>&1` in
3683 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3686 $as_echo_n 0123456789 >"conftest.in"
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 $as_echo '' >> "conftest.nl"
3693 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695 as_fn_arith $ac_count + 1 && ac_count=$as_val
3696 if test $ac_count -gt ${ac_path_SED_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_SED="$ac_path_SED"
3699 ac_path_SED_max=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3707 $ac_path_SED_found && break 3
3712 if test -z "$ac_cv_path_SED"; then
3713 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3721 $as_echo "$ac_cv_path_SED" >&6; }
3722 SED="$ac_cv_path_SED"
3725 test -z "$SED" && SED=sed
3726 Xsed="$SED -e 1s/^X//"
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3739 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3740 if ${ac_cv_path_GREP+:} false; then :
3741 $as_echo_n "(cached) " >&6
3743 if test -z "$GREP"; then
3744 ac_path_GREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in grep ggrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3754 as_fn_executable_p "$ac_path_GREP" || continue
3755 # Check for GNU ac_path_GREP and select it if it is found.
3756 # Check for GNU $ac_path_GREP
3757 case `"$ac_path_GREP" --version 2>&1` in
3759 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3762 $as_echo_n 0123456789 >"conftest.in"
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 $as_echo 'GREP' >> "conftest.nl"
3769 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 as_fn_arith $ac_count + 1 && ac_count=$as_val
3772 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_GREP="$ac_path_GREP"
3775 ac_path_GREP_max=$ac_count
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3783 $ac_path_GREP_found && break 3
3788 if test -z "$ac_cv_path_GREP"; then
3789 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3792 ac_cv_path_GREP=$GREP
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3797 $as_echo "$ac_cv_path_GREP" >&6; }
3798 GREP="$ac_cv_path_GREP"
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3802 $as_echo_n "checking for egrep... " >&6; }
3803 if ${ac_cv_path_EGREP+:} false; then :
3804 $as_echo_n "(cached) " >&6
3806 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3807 then ac_cv_path_EGREP="$GREP -E"
3809 if test -z "$EGREP"; then
3810 ac_path_EGREP_found=false
3811 # Loop through the user's path and test for each of PROGNAME-LIST
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3816 test -z "$as_dir" && as_dir=.
3817 for ac_prog in egrep; do
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3820 as_fn_executable_p "$ac_path_EGREP" || continue
3821 # Check for GNU ac_path_EGREP and select it if it is found.
3822 # Check for GNU $ac_path_EGREP
3823 case `"$ac_path_EGREP" --version 2>&1` in
3825 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3828 $as_echo_n 0123456789 >"conftest.in"
3831 cat "conftest.in" "conftest.in" >"conftest.tmp"
3832 mv "conftest.tmp" "conftest.in"
3833 cp "conftest.in" "conftest.nl"
3834 $as_echo 'EGREP' >> "conftest.nl"
3835 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3837 as_fn_arith $ac_count + 1 && ac_count=$as_val
3838 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3839 # Best one so far, save it but keep looking for a better one
3840 ac_cv_path_EGREP="$ac_path_EGREP"
3841 ac_path_EGREP_max=$ac_count
3843 # 10*(2^10) chars as input seems more than enough
3844 test $ac_count -gt 10 && break
3846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3849 $ac_path_EGREP_found && break 3
3854 if test -z "$ac_cv_path_EGREP"; then
3855 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3858 ac_cv_path_EGREP=$EGREP
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3864 $as_echo "$ac_cv_path_EGREP" >&6; }
3865 EGREP="$ac_cv_path_EGREP"
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3869 $as_echo_n "checking for fgrep... " >&6; }
3870 if ${ac_cv_path_FGREP+:} false; then :
3871 $as_echo_n "(cached) " >&6
3873 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3874 then ac_cv_path_FGREP="$GREP -F"
3876 if test -z "$FGREP"; then
3877 ac_path_FGREP_found=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in fgrep; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3887 as_fn_executable_p "$ac_path_FGREP" || continue
3888 # Check for GNU ac_path_FGREP and select it if it is found.
3889 # Check for GNU $ac_path_FGREP
3890 case `"$ac_path_FGREP" --version 2>&1` in
3892 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3895 $as_echo_n 0123456789 >"conftest.in"
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 $as_echo 'FGREP' >> "conftest.nl"
3902 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 as_fn_arith $ac_count + 1 && ac_count=$as_val
3905 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_FGREP="$ac_path_FGREP"
3908 ac_path_FGREP_max=$ac_count
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916 $ac_path_FGREP_found && break 3
3921 if test -z "$ac_cv_path_FGREP"; then
3922 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3925 ac_cv_path_FGREP=$FGREP
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3931 $as_echo "$ac_cv_path_FGREP" >&6; }
3932 FGREP="$ac_cv_path_FGREP"
3935 test -z "$GREP" && GREP=grep
3955 # Check whether --with-gnu-ld was given.
3956 if test "${with_gnu_ld+set}" = set; then :
3957 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3963 if test "$GCC" = yes; then
3964 # Check if gcc -print-prog-name=ld gives a path.
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3966 $as_echo_n "checking for ld used by $CC... " >&6; }
3969 # gcc leaves a trailing carriage return which upsets mingw
3970 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3972 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3975 # Accept absolute paths.
3977 re_direlt='/[^/][^/]*/\.\./'
3978 # Canonicalize the pathname of ld
3979 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3980 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3981 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3983 test -z "$LD" && LD="$ac_prog"
3986 # If it fails, then pretend we aren't using GCC.
3990 # If it is relative, then search for the first ld in PATH.
3994 elif test "$with_gnu_ld" = yes; then
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3996 $as_echo_n "checking for GNU ld... " >&6; }
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3999 $as_echo_n "checking for non-GNU ld... " >&6; }
4001 if ${lt_cv_path_LD+:} false; then :
4002 $as_echo_n "(cached) " >&6
4004 if test -z "$LD"; then
4005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4006 for ac_dir in $PATH; do
4008 test -z "$ac_dir" && ac_dir=.
4009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4010 lt_cv_path_LD="$ac_dir/$ac_prog"
4011 # Check to see if the program is GNU ld. I'd rather use --version,
4012 # but apparently some variants of GNU ld only accept -v.
4013 # Break only if it was the GNU/non-GNU ld that we prefer.
4014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4015 *GNU* | *'with BFD'*)
4016 test "$with_gnu_ld" != no && break
4019 test "$with_gnu_ld" != yes && break
4026 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4031 if test -n "$LD"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4033 $as_echo "$LD" >&6; }
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4038 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4040 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4041 if ${lt_cv_prog_gnu_ld+:} false; then :
4042 $as_echo_n "(cached) " >&6
4044 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4045 case `$LD -v 2>&1 </dev/null` in
4046 *GNU* | *'with BFD'*)
4047 lt_cv_prog_gnu_ld=yes
4050 lt_cv_prog_gnu_ld=no
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4055 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4056 with_gnu_ld=$lt_cv_prog_gnu_ld
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4067 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4068 if ${lt_cv_path_NM+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 if test -n "$NM"; then
4072 # Let the user override the test.
4075 lt_nm_to_check="${ac_tool_prefix}nm"
4076 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4077 lt_nm_to_check="$lt_nm_to_check nm"
4079 for lt_tmp_nm in $lt_nm_to_check; do
4080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4081 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4083 test -z "$ac_dir" && ac_dir=.
4084 tmp_nm="$ac_dir/$lt_tmp_nm"
4085 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4086 # Check to see if the nm accepts a BSD-compat flag.
4087 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4088 # nm: unknown option "B" ignored
4089 # Tru64's nm complains that /dev/null is an invalid object file
4090 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4091 */dev/null* | *'Invalid file or object type'*)
4092 lt_cv_path_NM="$tmp_nm -B"
4096 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4098 lt_cv_path_NM="$tmp_nm -p"
4102 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4103 continue # so that we can try to find one that supports BSD flags
4112 : ${lt_cv_path_NM=no}
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4116 $as_echo "$lt_cv_path_NM" >&6; }
4117 if test "$lt_cv_path_NM" != "no"; then
4120 # Didn't find any BSD compatible name lister, look for dumpbin.
4121 if test -n "$DUMPBIN"; then :
4122 # Let the user override the test.
4124 if test -n "$ac_tool_prefix"; then
4125 for ac_prog in dumpbin "link -dump"
4127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_DUMPBIN+:} false; then :
4132 $as_echo_n "(cached) " >&6
4134 if test -n "$DUMPBIN"; then
4135 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 DUMPBIN=$ac_cv_prog_DUMPBIN
4155 if test -n "$DUMPBIN"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4157 $as_echo "$DUMPBIN" >&6; }
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4164 test -n "$DUMPBIN" && break
4167 if test -z "$DUMPBIN"; then
4168 ac_ct_DUMPBIN=$DUMPBIN
4169 for ac_prog in dumpbin "link -dump"
4171 # Extract the first word of "$ac_prog", so it can be a program name with args.
4172 set dummy $ac_prog; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4176 $as_echo_n "(cached) " >&6
4178 if test -n "$ac_ct_DUMPBIN"; then
4179 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4199 if test -n "$ac_ct_DUMPBIN"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4201 $as_echo "$ac_ct_DUMPBIN" >&6; }
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4208 test -n "$ac_ct_DUMPBIN" && break
4211 if test "x$ac_ct_DUMPBIN" = x; then
4214 case $cross_compiling:$ac_tool_warned in
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4218 ac_tool_warned=yes ;;
4220 DUMPBIN=$ac_ct_DUMPBIN
4224 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4226 DUMPBIN="$DUMPBIN -symbols"
4234 if test "$DUMPBIN" != ":"; then
4238 test -z "$NM" && NM=nm
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4246 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4247 if ${lt_cv_nm_interface+:} false; then :
4248 $as_echo_n "(cached) " >&6
4250 lt_cv_nm_interface="BSD nm"
4251 echo "int some_variable = 0;" > conftest.$ac_ext
4252 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4253 (eval "$ac_compile" 2>conftest.err)
4254 cat conftest.err >&5
4255 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4256 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4257 cat conftest.err >&5
4258 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4259 cat conftest.out >&5
4260 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4261 lt_cv_nm_interface="MS dumpbin"
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4266 $as_echo "$lt_cv_nm_interface" >&6; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4269 $as_echo_n "checking whether ln -s works... " >&6; }
4271 if test "$LN_S" = "ln -s"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4273 $as_echo "yes" >&6; }
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4276 $as_echo "no, using $LN_S" >&6; }
4279 # find the maximum length of command line arguments
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4281 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4282 if ${lt_cv_sys_max_cmd_len+:} false; then :
4283 $as_echo_n "(cached) " >&6
4290 # On DJGPP, this test can blow up pretty badly due to problems in libc
4291 # (any single argument exceeding 2000 bytes causes a buffer overrun
4292 # during glob expansion). Even if it were fixed, the result of this
4293 # check would be larger than it should be.
4294 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4298 # Under GNU Hurd, this test is not required because there is
4299 # no limit to the length of command line arguments.
4300 # Libtool will interpret -1 as no limit whatsoever
4301 lt_cv_sys_max_cmd_len=-1;
4304 cygwin* | mingw* | cegcc*)
4305 # On Win9x/ME, this test blows up -- it succeeds, but takes
4306 # about 5 minutes as the teststring grows exponentially.
4307 # Worse, since 9x/ME are not pre-emptively multitasking,
4308 # you end up with a "frozen" computer, even though with patience
4309 # the test eventually succeeds (with a max line length of 256k).
4310 # Instead, let's just punt: use the minimum linelength reported by
4311 # all of the supported platforms: 8192 (on NT/2K/XP).
4312 lt_cv_sys_max_cmd_len=8192;
4316 # On MiNT this can take a long time and run out of memory.
4317 lt_cv_sys_max_cmd_len=8192;
4321 # On AmigaOS with pdksh, this test takes hours, literally.
4322 # So we just punt and use a minimum line length of 8192.
4323 lt_cv_sys_max_cmd_len=8192;
4326 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4327 # This has been around since 386BSD, at least. Likely further.
4328 if test -x /sbin/sysctl; then
4329 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4330 elif test -x /usr/sbin/sysctl; then
4331 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4333 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4335 # And add a safety zone
4336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4341 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4342 lt_cv_sys_max_cmd_len=196608
4346 # The test takes a long time on OS/2.
4347 lt_cv_sys_max_cmd_len=8192
4351 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4352 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4353 # nice to cause kernel panics so lets avoid the loop below.
4354 # First set a reasonable default.
4355 lt_cv_sys_max_cmd_len=16384
4357 if test -x /sbin/sysconfig; then
4358 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4359 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4364 lt_cv_sys_max_cmd_len=102400
4366 sysv5* | sco5v6* | sysv4.2uw2*)
4367 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4368 if test -n "$kargmax"; then
4369 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4371 lt_cv_sys_max_cmd_len=32768
4375 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4376 if test -n "$lt_cv_sys_max_cmd_len" && \
4377 test undefined != "$lt_cv_sys_max_cmd_len"; then
4378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4381 # Make teststring a little bigger before we do anything with it.
4382 # a 1K string should be a reasonable start.
4383 for i in 1 2 3 4 5 6 7 8 ; do
4384 teststring=$teststring$teststring
4386 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4387 # If test is not a shell built-in, we'll probably end up computing a
4388 # maximum length that is only half of the actual maximum length, but
4390 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4391 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4392 test $i != 17 # 1/2 MB should be enough
4395 teststring=$teststring$teststring
4397 # Only check the string length outside the loop.
4398 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4400 # Add a significant safety factor because C++ compilers can tack on
4401 # massive amounts of additional arguments before passing them to the
4402 # linker. It appears as though 1/2 is a usable value.
4403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4410 if test -n $lt_cv_sys_max_cmd_len ; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4412 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4415 $as_echo "none" >&6; }
4417 max_cmd_len=$lt_cv_sys_max_cmd_len
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4429 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4430 # Try some XSI features
4433 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4435 && eval 'test $(( 1 + 1 )) -eq 2 \
4436 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4439 $as_echo "$xsi_shell" >&6; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4443 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4445 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4447 && lt_shell_append=yes
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4449 $as_echo "$lt_shell_append" >&6; }
4452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4462 # test EBCDIC or ASCII
4463 case `echo X|tr X '\101'` in
4464 A) # ASCII based system
4465 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4466 lt_SP2NL='tr \040 \012'
4467 lt_NL2SP='tr \015\012 \040\040'
4469 *) # EBCDIC based system
4470 lt_SP2NL='tr \100 \n'
4471 lt_NL2SP='tr \r\n \100\100'
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4484 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4485 if ${lt_cv_to_host_file_cmd+:} false; then :
4486 $as_echo_n "(cached) " >&6
4491 *-*-mingw* ) # actually msys
4492 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4495 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4497 * ) # otherwise, assume *nix
4498 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4504 *-*-mingw* ) # actually msys
4505 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4508 lt_cv_to_host_file_cmd=func_convert_file_noop
4510 * ) # otherwise, assume *nix
4511 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4515 * ) # unhandled hosts (and "normal" native builds)
4516 lt_cv_to_host_file_cmd=func_convert_file_noop
4522 to_host_file_cmd=$lt_cv_to_host_file_cmd
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4524 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4531 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4532 if ${lt_cv_to_tool_file_cmd+:} false; then :
4533 $as_echo_n "(cached) " >&6
4535 #assume ordinary cross tools, or native build.
4536 lt_cv_to_tool_file_cmd=func_convert_file_noop
4540 *-*-mingw* ) # actually msys
4541 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4549 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4551 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4558 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4559 if ${lt_cv_ld_reload_flag+:} false; then :
4560 $as_echo_n "(cached) " >&6
4562 lt_cv_ld_reload_flag='-r'
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4565 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4566 reload_flag=$lt_cv_ld_reload_flag
4567 case $reload_flag in
4569 *) reload_flag=" $reload_flag" ;;
4571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4573 cygwin* | mingw* | pw32* | cegcc*)
4574 if test "$GCC" != yes; then
4579 if test "$GCC" = yes; then
4580 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4595 if test -n "$ac_tool_prefix"; then
4596 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_OBJDUMP+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -n "$OBJDUMP"; then
4604 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 OBJDUMP=$ac_cv_prog_OBJDUMP
4624 if test -n "$OBJDUMP"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4626 $as_echo "$OBJDUMP" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4634 if test -z "$ac_cv_prog_OBJDUMP"; then
4635 ac_ct_OBJDUMP=$OBJDUMP
4636 # Extract the first word of "objdump", so it can be a program name with args.
4637 set dummy objdump; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 if test -n "$ac_ct_OBJDUMP"; then
4644 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4664 if test -n "$ac_ct_OBJDUMP"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4666 $as_echo "$ac_ct_OBJDUMP" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4672 if test "x$ac_ct_OBJDUMP" = x; then
4675 case $cross_compiling:$ac_tool_warned in
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679 ac_tool_warned=yes ;;
4681 OBJDUMP=$ac_ct_OBJDUMP
4684 OBJDUMP="$ac_cv_prog_OBJDUMP"
4687 test -z "$OBJDUMP" && OBJDUMP=objdump
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4695 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4696 if ${lt_cv_deplibs_check_method+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 lt_cv_file_magic_cmd='$MAGIC_CMD'
4700 lt_cv_file_magic_test_file=
4701 lt_cv_deplibs_check_method='unknown'
4702 # Need to set the preceding variable on all platforms that support
4703 # interlibrary dependencies.
4704 # 'none' -- dependencies not supported.
4705 # `unknown' -- same as none, but documents that we really don't know.
4706 # 'pass_all' -- all dependencies passed with no checks.
4707 # 'test_compile' -- check by making test program.
4708 # 'file_magic [[regex]]' -- check by looking for files in library path
4709 # which responds to the $file_magic_cmd with a given extended regex.
4710 # If you have `file' or equivalent on your system and you're not sure
4711 # whether `pass_all' will *always* work, you probably want this one.
4715 lt_cv_deplibs_check_method=pass_all
4719 lt_cv_deplibs_check_method=pass_all
4723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4724 lt_cv_file_magic_cmd='/usr/bin/file -L'
4725 lt_cv_file_magic_test_file=/shlib/libc.so
4729 # func_win32_libid is a shell function defined in ltmain.sh
4730 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4731 lt_cv_file_magic_cmd='func_win32_libid'
4735 # Base MSYS/MinGW do not provide the 'file' command needed by
4736 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4737 # unless we find 'file', for example because we are cross-compiling.
4738 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4739 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4741 lt_cv_file_magic_cmd='func_win32_libid'
4743 # Keep this pattern in sync with the one in func_win32_libid.
4744 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4745 lt_cv_file_magic_cmd='$OBJDUMP -f'
4750 # use the weaker test based on 'objdump'. See mingw*.
4751 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4752 lt_cv_file_magic_cmd='$OBJDUMP -f'
4755 darwin* | rhapsody*)
4756 lt_cv_deplibs_check_method=pass_all
4759 freebsd* | dragonfly*)
4760 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4763 # Not sure whether the presence of OpenBSD here was a mistake.
4764 # Let's accept both of them until this is cleared up.
4765 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4766 lt_cv_file_magic_cmd=/usr/bin/file
4767 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4771 lt_cv_deplibs_check_method=pass_all
4776 lt_cv_deplibs_check_method=pass_all
4779 hpux10.20* | hpux11*)
4780 lt_cv_file_magic_cmd=/usr/bin/file
4783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4787 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]'
4788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4792 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4802 irix5* | irix6* | nonstopux*)
4804 *-32|*"-32 ") libmagic=32-bit;;
4805 *-n32|*"-n32 ") libmagic=N32;;
4806 *-64|*"-64 ") libmagic=64-bit;;
4807 *) libmagic=never-match;;
4809 lt_cv_deplibs_check_method=pass_all
4812 # This must be glibc/ELF.
4813 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4814 lt_cv_deplibs_check_method=pass_all
4817 netbsd* | netbsdelf*-gnu)
4818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4827 lt_cv_file_magic_cmd=/usr/bin/file
4828 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4832 lt_cv_deplibs_check_method=pass_all
4836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4843 osf3* | osf4* | osf5*)
4844 lt_cv_deplibs_check_method=pass_all
4848 lt_cv_deplibs_check_method=pass_all
4852 lt_cv_deplibs_check_method=pass_all
4855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4856 lt_cv_deplibs_check_method=pass_all
4860 case $host_vendor in
4862 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]'
4863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4866 lt_cv_deplibs_check_method=pass_all
4869 lt_cv_file_magic_cmd='/bin/file'
4870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4873 lt_cv_file_magic_cmd='/bin/file'
4874 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4875 lt_cv_file_magic_test_file=/lib/libc.so
4878 lt_cv_deplibs_check_method=pass_all
4881 lt_cv_deplibs_check_method=pass_all
4887 lt_cv_deplibs_check_method=pass_all
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4893 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4897 if test "$build" = "$host"; then
4900 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4903 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4909 file_magic_cmd=$lt_cv_file_magic_cmd
4910 deplibs_check_method=$lt_cv_deplibs_check_method
4911 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4934 if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_DLLTOOL+:} false; then :
4940 $as_echo_n "(cached) " >&6
4942 if test -n "$DLLTOOL"; then
4943 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 DLLTOOL=$ac_cv_prog_DLLTOOL
4963 if test -n "$DLLTOOL"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4965 $as_echo "$DLLTOOL" >&6; }
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4973 if test -z "$ac_cv_prog_DLLTOOL"; then
4974 ac_ct_DLLTOOL=$DLLTOOL
4975 # Extract the first word of "dlltool", so it can be a program name with args.
4976 set dummy dlltool; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4980 $as_echo_n "(cached) " >&6
4982 if test -n "$ac_ct_DLLTOOL"; then
4983 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5003 if test -n "$ac_ct_DLLTOOL"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5005 $as_echo "$ac_ct_DLLTOOL" >&6; }
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5011 if test "x$ac_ct_DLLTOOL" = x; then
5014 case $cross_compiling:$ac_tool_warned in
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018 ac_tool_warned=yes ;;
5020 DLLTOOL=$ac_ct_DLLTOOL
5023 DLLTOOL="$ac_cv_prog_DLLTOOL"
5026 test -z "$DLLTOOL" && DLLTOOL=dlltool
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5035 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5036 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5037 $as_echo_n "(cached) " >&6
5039 lt_cv_sharedlib_from_linklib_cmd='unknown'
5042 cygwin* | mingw* | pw32* | cegcc*)
5043 # two different shell functions defined in ltmain.sh
5044 # decide which to use based on capabilities of $DLLTOOL
5045 case `$DLLTOOL --help 2>&1` in
5046 *--identify-strict*)
5047 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5050 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5055 # fallback: assume linklib IS sharedlib
5056 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5062 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5063 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5064 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5073 if test -n "$ac_tool_prefix"; then
5076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_AR+:} false; then :
5081 $as_echo_n "(cached) " >&6
5083 if test -n "$AR"; then
5084 ac_cv_prog_AR="$AR" # Let the user override the test.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 if test -n "$AR"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5106 $as_echo "$AR" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5113 test -n "$AR" && break
5116 if test -z "$AR"; then
5120 # Extract the first word of "$ac_prog", so it can be a program name with args.
5121 set dummy $ac_prog; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5125 $as_echo_n "(cached) " >&6
5127 if test -n "$ac_ct_AR"; then
5128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_ac_ct_AR="$ac_prog"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5148 if test -n "$ac_ct_AR"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5150 $as_echo "$ac_ct_AR" >&6; }
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5157 test -n "$ac_ct_AR" && break
5160 if test "x$ac_ct_AR" = x; then
5163 case $cross_compiling:$ac_tool_warned in
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167 ac_tool_warned=yes ;;
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5187 $as_echo_n "checking for archiver @FILE support... " >&6; }
5188 if ${lt_cv_ar_at_file+:} false; then :
5189 $as_echo_n "(cached) " >&6
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204 echo conftest.$ac_objext > conftest.lst
5205 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5207 (eval $lt_ar_try) 2>&5
5209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5210 test $ac_status = 0; }
5211 if test "$ac_status" -eq 0; then
5212 # Ensure the archiver fails upon bogus file names.
5213 rm -f conftest.$ac_objext libconftest.a
5214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5215 (eval $lt_ar_try) 2>&5
5217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5218 test $ac_status = 0; }
5219 if test "$ac_status" -ne 0; then
5223 rm -f conftest.* libconftest.a
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5230 $as_echo "$lt_cv_ar_at_file" >&6; }
5232 if test "x$lt_cv_ar_at_file" = xno; then
5235 archiver_list_spec=$lt_cv_ar_at_file
5244 if test -n "$ac_tool_prefix"; then
5245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5246 set dummy ${ac_tool_prefix}strip; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_STRIP+:} false; then :
5250 $as_echo_n "(cached) " >&6
5252 if test -n "$STRIP"; then
5253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 STRIP=$ac_cv_prog_STRIP
5273 if test -n "$STRIP"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5275 $as_echo "$STRIP" >&6; }
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5283 if test -z "$ac_cv_prog_STRIP"; then
5285 # Extract the first word of "strip", so it can be a program name with args.
5286 set dummy strip; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5290 $as_echo_n "(cached) " >&6
5292 if test -n "$ac_ct_STRIP"; then
5293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302 ac_cv_prog_ac_ct_STRIP="strip"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5313 if test -n "$ac_ct_STRIP"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5315 $as_echo "$ac_ct_STRIP" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5321 if test "x$ac_ct_STRIP" = x; then
5324 case $cross_compiling:$ac_tool_warned in
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5328 ac_tool_warned=yes ;;
5333 STRIP="$ac_cv_prog_STRIP"
5336 test -z "$STRIP" && STRIP=:
5343 if test -n "$ac_tool_prefix"; then
5344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_prog_RANLIB+:} false; then :
5349 $as_echo_n "(cached) " >&6
5351 if test -n "$RANLIB"; then
5352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 RANLIB=$ac_cv_prog_RANLIB
5372 if test -n "$RANLIB"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5374 $as_echo "$RANLIB" >&6; }
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5382 if test -z "$ac_cv_prog_RANLIB"; then
5383 ac_ct_RANLIB=$RANLIB
5384 # Extract the first word of "ranlib", so it can be a program name with args.
5385 set dummy ranlib; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5389 $as_echo_n "(cached) " >&6
5391 if test -n "$ac_ct_RANLIB"; then
5392 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_ac_ct_RANLIB="ranlib"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5412 if test -n "$ac_ct_RANLIB"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5414 $as_echo "$ac_ct_RANLIB" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5420 if test "x$ac_ct_RANLIB" = x; then
5423 case $cross_compiling:$ac_tool_warned in
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427 ac_tool_warned=yes ;;
5429 RANLIB=$ac_ct_RANLIB
5432 RANLIB="$ac_cv_prog_RANLIB"
5435 test -z "$RANLIB" && RANLIB=:
5442 # Determine commands to create old-style static archives.
5443 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5444 old_postinstall_cmds='chmod 644 $oldlib'
5445 old_postuninstall_cmds=
5447 if test -n "$RANLIB"; then
5450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5456 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5461 lock_old_archive_extraction=yes ;;
5463 lock_old_archive_extraction=no ;;
5486 for ac_prog in gawk mawk nawk awk
5488 # Extract the first word of "$ac_prog", so it can be a program name with args.
5489 set dummy $ac_prog; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_prog_AWK+:} false; then :
5493 $as_echo_n "(cached) " >&6
5495 if test -n "$AWK"; then
5496 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_AWK="$ac_prog"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 if test -n "$AWK"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5518 $as_echo "$AWK" >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5525 test -n "$AWK" && break
5546 # If no C compiler was specified, use CC.
5549 # If no C compiler flags were specified, use CFLAGS.
5550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5552 # Allow CC to be a program name with arguments.
5556 # Check for command to grab the raw symbol name followed by C symbol from nm.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5558 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5559 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5560 $as_echo_n "(cached) " >&6
5563 # These are sane defaults that work on at least a few old systems.
5564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5566 # Character class describing NM global symbol codes.
5567 symcode='[BCDEGRST]'
5569 # Regexp to match symbols that can be accessed directly from C.
5570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5572 # Define system-specific variables.
5577 cygwin* | mingw* | pw32* | cegcc*)
5578 symcode='[ABCDGISTW]'
5581 if test "$host_cpu" = ia64; then
5582 symcode='[ABCDEGRST]'
5586 symcode='[BCDEGRST]'
5589 symcode='[BCDEGQRST]'
5600 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5608 # If we're using GNU nm, then use its standard symbol codes.
5609 case `$NM -V 2>&1` in
5610 *GNU* | *'with BFD'*)
5611 symcode='[ABCDGIRSTW]' ;;
5614 # Transform an extracted symbol line into a proper C declaration.
5615 # Some systems (esp. on ia64) link data and code symbols differently,
5616 # so use this general approach.
5617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5619 # Transform an extracted symbol line into symbol name and symbol address
5620 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5621 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5623 # Handle CRLF in mingw tool chain
5627 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5631 # Try without a prefix underscore, then with it.
5632 for ac_symprfx in "" "_"; do
5634 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5635 symxfrm="\\1 $ac_symprfx\\2 \\2"
5637 # Write the raw and C identifiers.
5638 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5639 # Fake it for dumpbin and say T for any non-static function
5640 # and D for any global variable.
5641 # Also find C++ and __fastcall symbols from MSVC++,
5642 # which start with @ or ?.
5643 lt_cv_sys_global_symbol_pipe="$AWK '"\
5644 " {last_section=section; section=\$ 3};"\
5645 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5646 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5647 " \$ 0!~/External *\|/{next};"\
5648 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5649 " {if(hide[section]) next};"\
5650 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5651 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5652 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5653 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5654 " ' prfx=^$ac_symprfx"
5656 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5658 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5660 # Check to see that the pipe works correctly.
5664 cat > conftest.$ac_ext <<_LT_EOF
5669 void nm_test_func(void);
5670 void nm_test_func(void){}
5674 int main(){nm_test_var='a';nm_test_func();return(0);}
5677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5678 (eval $ac_compile) 2>&5
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; }; then
5682 # Now try to grab the symbols.
5684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5685 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5688 test $ac_status = 0; } && test -s "$nlist"; then
5689 # Try sorting and uniquifying the output.
5690 if sort "$nlist" | uniq > "$nlist"T; then
5691 mv -f "$nlist"T "$nlist"
5696 # Make sure that we snagged all the symbols we need.
5697 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5698 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5699 cat <<_LT_EOF > conftest.$ac_ext
5700 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5701 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5702 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5703 relocations are performed -- see ld's documentation on pseudo-relocs. */
5704 # define LT_DLSYM_CONST
5705 #elif defined(__osf__)
5706 /* This system does not cope well with relocations in const data. */
5707 # define LT_DLSYM_CONST
5709 # define LT_DLSYM_CONST const
5717 # Now generate the symbol file.
5718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5720 cat <<_LT_EOF >> conftest.$ac_ext
5722 /* The mapping between symbol names and symbols. */
5723 LT_DLSYM_CONST struct {
5727 lt__PROGRAM__LTX_preloaded_symbols[] =
5729 { "@PROGRAM@", (void *) 0 },
5731 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5732 cat <<\_LT_EOF >> conftest.$ac_ext
5736 /* This works around a problem in FreeBSD linker */
5737 #ifdef FREEBSD_WORKAROUND
5738 static const void *lt_preloaded_setup() {
5739 return lt__PROGRAM__LTX_preloaded_symbols;
5747 # Now try linking the two files.
5748 mv conftest.$ac_objext conftstm.$ac_objext
5749 lt_globsym_save_LIBS=$LIBS
5750 lt_globsym_save_CFLAGS=$CFLAGS
5751 LIBS="conftstm.$ac_objext"
5752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5754 (eval $ac_link) 2>&5
5756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5760 LIBS=$lt_globsym_save_LIBS
5761 CFLAGS=$lt_globsym_save_CFLAGS
5763 echo "cannot find nm_test_func in $nlist" >&5
5766 echo "cannot find nm_test_var in $nlist" >&5
5769 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5772 echo "$progname: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 rm -rf conftest* conftst*
5777 # Do not use the global_symbol_pipe unless it works.
5778 if test "$pipe_works" = yes; then
5781 lt_cv_sys_global_symbol_pipe=
5787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5788 lt_cv_sys_global_symbol_to_cdecl=
5790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5792 $as_echo "failed" >&6; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5795 $as_echo "ok" >&6; }
5798 # Response file support.
5799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5800 nm_file_list_spec='@'
5801 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5802 nm_file_list_spec='@'
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5832 $as_echo_n "checking for sysroot... " >&6; }
5834 # Check whether --with-sysroot was given.
5835 if test "${with_sysroot+set}" = set; then :
5836 withval=$with_sysroot;
5843 case ${with_sysroot} in #(
5845 if test "$GCC" = yes; then
5846 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5850 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5856 $as_echo "${with_sysroot}" >&6; }
5857 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5862 $as_echo "${lt_sysroot:-no}" >&6; }
5868 # Check whether --enable-libtool-lock was given.
5869 if test "${enable_libtool_lock+set}" = set; then :
5870 enableval=$enable_libtool_lock;
5873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5875 # Some flags need to be propagated to the compiler or linker for good
5879 # Find out which ABI we are using.
5880 echo 'int i;' > conftest.$ac_ext
5881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5882 (eval $ac_compile) 2>&5
5884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5885 test $ac_status = 0; }; then
5886 case `/usr/bin/file conftest.$ac_objext` in
5898 # Find out which ABI we are using.
5899 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5901 (eval $ac_compile) 2>&5
5903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5904 test $ac_status = 0; }; then
5905 if test "$lt_cv_prog_gnu_ld" = yes; then
5906 case `/usr/bin/file conftest.$ac_objext` in
5908 LD="${LD-ld} -melf32bsmip"
5911 LD="${LD-ld} -melf32bmipn32"
5914 LD="${LD-ld} -melf64bmip"
5918 case `/usr/bin/file conftest.$ac_objext` in
5934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5936 # Find out which ABI we are using.
5937 echo 'int i;' > conftest.$ac_ext
5938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5939 (eval $ac_compile) 2>&5
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942 test $ac_status = 0; }; then
5943 case `/usr/bin/file conftest.o` in
5946 x86_64-*kfreebsd*-gnu)
5947 LD="${LD-ld} -m elf_i386_fbsd"
5950 case `/usr/bin/file conftest.o` in
5952 LD="${LD-ld} -m elf32_x86_64"
5955 LD="${LD-ld} -m elf_i386"
5960 LD="${LD-ld} -m elf32lppclinux"
5963 LD="${LD-ld} -m elf32ppclinux"
5966 LD="${LD-ld} -m elf_s390"
5969 LD="${LD-ld} -m elf32_sparc"
5975 x86_64-*kfreebsd*-gnu)
5976 LD="${LD-ld} -m elf_x86_64_fbsd"
5979 LD="${LD-ld} -m elf_x86_64"
5982 LD="${LD-ld} -m elf64lppc"
5985 LD="${LD-ld} -m elf64ppc"
5987 s390*-*linux*|s390*-*tpf*)
5988 LD="${LD-ld} -m elf64_s390"
5991 LD="${LD-ld} -m elf64_sparc"
6001 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6002 SAVE_CFLAGS="$CFLAGS"
6003 CFLAGS="$CFLAGS -belf"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6005 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6006 if ${lt_cv_cc_needs_belf+:} false; then :
6007 $as_echo_n "(cached) " >&6
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6026 if ac_fn_c_try_link "$LINENO"; then :
6027 lt_cv_cc_needs_belf=yes
6029 lt_cv_cc_needs_belf=no
6031 rm -f core conftest.err conftest.$ac_objext \
6032 conftest$ac_exeext conftest.$ac_ext
6034 ac_cpp='$CPP $CPPFLAGS'
6035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6041 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6044 CFLAGS="$SAVE_CFLAGS"
6048 # Find out which ABI we are using.
6049 echo 'int i;' > conftest.$ac_ext
6050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6051 (eval $ac_compile) 2>&5
6053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054 test $ac_status = 0; }; then
6055 case `/usr/bin/file conftest.o` in
6057 case $lt_cv_prog_gnu_ld in
6061 LD="${LD-ld} -m elf_x86_64"
6064 LD="${LD-ld} -m elf64_sparc"
6067 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6068 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6073 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6085 need_locks="$enable_libtool_lock"
6087 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}mt; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6093 $as_echo_n "(cached) " >&6
6095 if test -n "$MANIFEST_TOOL"; then
6096 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6116 if test -n "$MANIFEST_TOOL"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6118 $as_echo "$MANIFEST_TOOL" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6126 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6127 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6128 # Extract the first word of "mt", so it can be a program name with args.
6129 set dummy mt; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6133 $as_echo_n "(cached) " >&6
6135 if test -n "$ac_ct_MANIFEST_TOOL"; then
6136 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6156 if test -n "$ac_ct_MANIFEST_TOOL"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6158 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6164 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6167 case $cross_compiling:$ac_tool_warned in
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6173 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6176 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6179 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6181 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6182 if ${lt_cv_path_mainfest_tool+:} false; then :
6183 $as_echo_n "(cached) " >&6
6185 lt_cv_path_mainfest_tool=no
6186 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6187 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6188 cat conftest.err >&5
6189 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6190 lt_cv_path_mainfest_tool=yes
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6195 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6196 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6206 rhapsody* | darwin*)
6207 if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6209 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6213 $as_echo_n "(cached) " >&6
6215 if test -n "$DSYMUTIL"; then
6216 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6236 if test -n "$DSYMUTIL"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6238 $as_echo "$DSYMUTIL" >&6; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6246 if test -z "$ac_cv_prog_DSYMUTIL"; then
6247 ac_ct_DSYMUTIL=$DSYMUTIL
6248 # Extract the first word of "dsymutil", so it can be a program name with args.
6249 set dummy dsymutil; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6253 $as_echo_n "(cached) " >&6
6255 if test -n "$ac_ct_DSYMUTIL"; then
6256 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6276 if test -n "$ac_ct_DSYMUTIL"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6278 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6284 if test "x$ac_ct_DSYMUTIL" = x; then
6287 case $cross_compiling:$ac_tool_warned in
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291 ac_tool_warned=yes ;;
6293 DSYMUTIL=$ac_ct_DSYMUTIL
6296 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_NMEDIT+:} false; then :
6305 $as_echo_n "(cached) " >&6
6307 if test -n "$NMEDIT"; then
6308 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 NMEDIT=$ac_cv_prog_NMEDIT
6328 if test -n "$NMEDIT"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6330 $as_echo "$NMEDIT" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6338 if test -z "$ac_cv_prog_NMEDIT"; then
6339 ac_ct_NMEDIT=$NMEDIT
6340 # Extract the first word of "nmedit", so it can be a program name with args.
6341 set dummy nmedit; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6345 $as_echo_n "(cached) " >&6
6347 if test -n "$ac_ct_NMEDIT"; then
6348 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6368 if test -n "$ac_ct_NMEDIT"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6370 $as_echo "$ac_ct_NMEDIT" >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6376 if test "x$ac_ct_NMEDIT" = x; then
6379 case $cross_compiling:$ac_tool_warned in
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6385 NMEDIT=$ac_ct_NMEDIT
6388 NMEDIT="$ac_cv_prog_NMEDIT"
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_LIPO+:} false; then :
6397 $as_echo_n "(cached) " >&6
6399 if test -n "$LIPO"; then
6400 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 LIPO=$ac_cv_prog_LIPO
6420 if test -n "$LIPO"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6422 $as_echo "$LIPO" >&6; }
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6430 if test -z "$ac_cv_prog_LIPO"; then
6432 # Extract the first word of "lipo", so it can be a program name with args.
6433 set dummy lipo; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6437 $as_echo_n "(cached) " >&6
6439 if test -n "$ac_ct_LIPO"; then
6440 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6449 ac_cv_prog_ac_ct_LIPO="lipo"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6460 if test -n "$ac_ct_LIPO"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6462 $as_echo "$ac_ct_LIPO" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6468 if test "x$ac_ct_LIPO" = x; then
6471 case $cross_compiling:$ac_tool_warned in
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475 ac_tool_warned=yes ;;
6480 LIPO="$ac_cv_prog_LIPO"
6483 if test -n "$ac_tool_prefix"; then
6484 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6485 set dummy ${ac_tool_prefix}otool; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_prog_OTOOL+:} false; then :
6489 $as_echo_n "(cached) " >&6
6491 if test -n "$OTOOL"; then
6492 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 OTOOL=$ac_cv_prog_OTOOL
6512 if test -n "$OTOOL"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6514 $as_echo "$OTOOL" >&6; }
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6522 if test -z "$ac_cv_prog_OTOOL"; then
6524 # Extract the first word of "otool", so it can be a program name with args.
6525 set dummy otool; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6529 $as_echo_n "(cached) " >&6
6531 if test -n "$ac_ct_OTOOL"; then
6532 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_ac_ct_OTOOL="otool"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6552 if test -n "$ac_ct_OTOOL"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6554 $as_echo "$ac_ct_OTOOL" >&6; }
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6560 if test "x$ac_ct_OTOOL" = x; then
6563 case $cross_compiling:$ac_tool_warned in
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567 ac_tool_warned=yes ;;
6572 OTOOL="$ac_cv_prog_OTOOL"
6575 if test -n "$ac_tool_prefix"; then
6576 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6577 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if ${ac_cv_prog_OTOOL64+:} false; then :
6581 $as_echo_n "(cached) " >&6
6583 if test -n "$OTOOL64"; then
6584 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6593 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 OTOOL64=$ac_cv_prog_OTOOL64
6604 if test -n "$OTOOL64"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6606 $as_echo "$OTOOL64" >&6; }
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6614 if test -z "$ac_cv_prog_OTOOL64"; then
6615 ac_ct_OTOOL64=$OTOOL64
6616 # Extract the first word of "otool64", so it can be a program name with args.
6617 set dummy otool64; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6621 $as_echo_n "(cached) " >&6
6623 if test -n "$ac_ct_OTOOL64"; then
6624 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_ac_ct_OTOOL64="otool64"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6644 if test -n "$ac_ct_OTOOL64"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6646 $as_echo "$ac_ct_OTOOL64" >&6; }
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6652 if test "x$ac_ct_OTOOL64" = x; then
6655 case $cross_compiling:$ac_tool_warned in
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659 ac_tool_warned=yes ;;
6661 OTOOL64=$ac_ct_OTOOL64
6664 OTOOL64="$ac_cv_prog_OTOOL64"
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6694 $as_echo_n "checking for -single_module linker flag... " >&6; }
6695 if ${lt_cv_apple_cc_single_mod+:} false; then :
6696 $as_echo_n "(cached) " >&6
6698 lt_cv_apple_cc_single_mod=no
6699 if test -z "${LT_MULTI_MODULE}"; then
6700 # By default we will add the -single_module flag. You can override
6701 # by either setting the environment variable LT_MULTI_MODULE
6702 # non-empty at configure time, or by adding -multi_module to the
6704 rm -rf libconftest.dylib*
6705 echo "int foo(void){return 1;}" > conftest.c
6706 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6707 -dynamiclib -Wl,-single_module conftest.c" >&5
6708 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6709 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6711 # If there is a non-empty error log, and "single_module"
6712 # appears in it, assume the flag caused a linker warning
6713 if test -s conftest.err && $GREP single_module conftest.err; then
6714 cat conftest.err >&5
6715 # Otherwise, if the output was created with a 0 exit code from
6716 # the compiler, it worked.
6717 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6718 lt_cv_apple_cc_single_mod=yes
6720 cat conftest.err >&5
6722 rm -rf libconftest.dylib*
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6727 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6730 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6731 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6732 $as_echo_n "(cached) " >&6
6734 lt_cv_ld_exported_symbols_list=no
6735 save_LDFLAGS=$LDFLAGS
6736 echo "_main" > conftest.sym
6737 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6749 if ac_fn_c_try_link "$LINENO"; then :
6750 lt_cv_ld_exported_symbols_list=yes
6752 lt_cv_ld_exported_symbols_list=no
6754 rm -f core conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756 LDFLAGS="$save_LDFLAGS"
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6760 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6763 $as_echo_n "checking for -force_load linker flag... " >&6; }
6764 if ${lt_cv_ld_force_load+:} false; then :
6765 $as_echo_n "(cached) " >&6
6767 lt_cv_ld_force_load=no
6768 cat > conftest.c << _LT_EOF
6769 int forced_loaded() { return 2;}
6771 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6772 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6773 echo "$AR cru libconftest.a conftest.o" >&5
6774 $AR cru libconftest.a conftest.o 2>&5
6775 echo "$RANLIB libconftest.a" >&5
6776 $RANLIB libconftest.a 2>&5
6777 cat > conftest.c << _LT_EOF
6778 int main() { return 0;}
6780 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6781 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6783 if test -s conftest.err && $GREP force_load conftest.err; then
6784 cat conftest.err >&5
6785 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6786 lt_cv_ld_force_load=yes
6788 cat conftest.err >&5
6790 rm -f conftest.err libconftest.a conftest conftest.c
6791 rm -rf conftest.dSYM
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6795 $as_echo "$lt_cv_ld_force_load" >&6; }
6797 rhapsody* | darwin1.[012])
6798 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6800 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6801 darwin*) # darwin 5.x on
6802 # if running on 10.5 or later, the deployment target defaults
6803 # to the OS version, if on x86, and 10.4, the deployment
6804 # target defaults to 10.4. Don't you love it?
6805 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6806 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6807 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6809 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6811 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6815 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6816 _lt_dar_single_mod='$single_module'
6818 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6819 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6821 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6823 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6824 _lt_dsymutil='~$DSYMUTIL $lib || :'
6832 ac_cpp='$CPP $CPPFLAGS'
6833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6837 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6838 # On Suns, sometimes $CPP names a directory.
6839 if test -n "$CPP" && test -d "$CPP"; then
6842 if test -z "$CPP"; then
6843 if ${ac_cv_prog_CPP+:} false; then :
6844 $as_echo_n "(cached) " >&6
6846 # Double quotes because CPP needs to be expanded
6847 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6850 for ac_c_preproc_warn_flag in '' yes
6852 # Use a header file that comes with gcc, so configuring glibc
6853 # with a fresh cross-compiler works.
6854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6855 # <limits.h> exists even on freestanding compilers.
6856 # On the NeXT, cc -E runs the code through the compiler's parser,
6857 # not just through cpp. "Syntax error" is here to catch this case.
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6861 # include <limits.h>
6863 # include <assert.h>
6867 if ac_fn_c_try_cpp "$LINENO"; then :
6870 # Broken: fails on valid input.
6873 rm -f conftest.err conftest.i conftest.$ac_ext
6875 # OK, works on sane cases. Now check whether nonexistent headers
6876 # can be detected and how.
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 #include <ac_nonexistent.h>
6881 if ac_fn_c_try_cpp "$LINENO"; then :
6882 # Broken: success on invalid input.
6885 # Passes both tests.
6889 rm -f conftest.err conftest.i conftest.$ac_ext
6892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6893 rm -f conftest.i conftest.err conftest.$ac_ext
6894 if $ac_preproc_ok; then :
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6907 $as_echo "$CPP" >&6; }
6909 for ac_c_preproc_warn_flag in '' yes
6911 # Use a header file that comes with gcc, so configuring glibc
6912 # with a fresh cross-compiler works.
6913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6914 # <limits.h> exists even on freestanding compilers.
6915 # On the NeXT, cc -E runs the code through the compiler's parser,
6916 # not just through cpp. "Syntax error" is here to catch this case.
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6920 # include <limits.h>
6922 # include <assert.h>
6926 if ac_fn_c_try_cpp "$LINENO"; then :
6929 # Broken: fails on valid input.
6932 rm -f conftest.err conftest.i conftest.$ac_ext
6934 # OK, works on sane cases. Now check whether nonexistent headers
6935 # can be detected and how.
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 #include <ac_nonexistent.h>
6940 if ac_fn_c_try_cpp "$LINENO"; then :
6941 # Broken: success on invalid input.
6944 # Passes both tests.
6948 rm -f conftest.err conftest.i conftest.$ac_ext
6951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6952 rm -f conftest.i conftest.err conftest.$ac_ext
6953 if $ac_preproc_ok; then :
6956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6958 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6959 See \`config.log' for more details" "$LINENO" 5; }
6963 ac_cpp='$CPP $CPPFLAGS'
6964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6970 $as_echo_n "checking for ANSI C header files... " >&6; }
6971 if ${ac_cv_header_stdc+:} false; then :
6972 $as_echo_n "(cached) " >&6
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6989 if ac_fn_c_try_compile "$LINENO"; then :
6990 ac_cv_header_stdc=yes
6992 ac_cv_header_stdc=no
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 if test $ac_cv_header_stdc = yes; then
6997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7004 $EGREP "memchr" >/dev/null 2>&1; then :
7007 ac_cv_header_stdc=no
7013 if test $ac_cv_header_stdc = yes; then
7014 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7021 $EGREP "free" >/dev/null 2>&1; then :
7024 ac_cv_header_stdc=no
7030 if test $ac_cv_header_stdc = yes; then
7031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7032 if test "$cross_compiling" = yes; then :
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7039 #if ((' ' & 0x0FF) == 0x020)
7040 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7041 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7043 # define ISLOWER(c) \
7044 (('a' <= (c) && (c) <= 'i') \
7045 || ('j' <= (c) && (c) <= 'r') \
7046 || ('s' <= (c) && (c) <= 'z'))
7047 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7050 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7055 for (i = 0; i < 256; i++)
7056 if (XOR (islower (i), ISLOWER (i))
7057 || toupper (i) != TOUPPER (i))
7062 if ac_fn_c_try_run "$LINENO"; then :
7065 ac_cv_header_stdc=no
7067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7068 conftest.$ac_objext conftest.beam conftest.$ac_ext
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7074 $as_echo "$ac_cv_header_stdc" >&6; }
7075 if test $ac_cv_header_stdc = yes; then
7077 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7081 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7082 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7083 inttypes.h stdint.h unistd.h
7085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7086 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7088 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7089 cat >>confdefs.h <<_ACEOF
7090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7098 for ac_header in dlfcn.h
7100 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7102 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7103 cat >>confdefs.h <<_ACEOF
7104 #define HAVE_DLFCN_H 1
7123 # Check whether --enable-shared was given.
7124 if test "${enable_shared+set}" = set; then :
7125 enableval=$enable_shared; p=${PACKAGE-default}
7127 yes) enable_shared=yes ;;
7128 no) enable_shared=no ;;
7131 # Look at the argument we got. We use all the common list separators.
7132 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7133 for pkg in $enableval; do
7135 if test "X$pkg" = "X$p"; then
7154 # Check whether --enable-static was given.
7155 if test "${enable_static+set}" = set; then :
7156 enableval=$enable_static; p=${PACKAGE-default}
7158 yes) enable_static=yes ;;
7159 no) enable_static=no ;;
7162 # Look at the argument we got. We use all the common list separators.
7163 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7164 for pkg in $enableval; do
7166 if test "X$pkg" = "X$p"; then
7186 # Check whether --with-pic was given.
7187 if test "${with_pic+set}" = set; then :
7188 withval=$with_pic; lt_p=${PACKAGE-default}
7190 yes|no) pic_mode=$withval ;;
7193 # Look at the argument we got. We use all the common list separators.
7194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7195 for lt_pkg in $withval; do
7197 if test "X$lt_pkg" = "X$lt_p"; then
7209 test -z "$pic_mode" && pic_mode=default
7217 # Check whether --enable-fast-install was given.
7218 if test "${enable_fast_install+set}" = set; then :
7219 enableval=$enable_fast_install; p=${PACKAGE-default}
7221 yes) enable_fast_install=yes ;;
7222 no) enable_fast_install=no ;;
7224 enable_fast_install=no
7225 # Look at the argument we got. We use all the common list separators.
7226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7227 for pkg in $enableval; do
7229 if test "X$pkg" = "X$p"; then
7230 enable_fast_install=yes
7237 enable_fast_install=yes
7250 # This can be used to rebuild libtool when needed
7251 LIBTOOL_DEPS="$ltmain"
7253 # Always use our own libtool.
7254 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7285 test -z "$LN_S" && LN_S="ln -s"
7300 if test -n "${ZSH_VERSION+set}" ; then
7301 setopt NO_GLOB_SUBST
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7305 $as_echo_n "checking for objdir... " >&6; }
7306 if ${lt_cv_objdir+:} false; then :
7307 $as_echo_n "(cached) " >&6
7309 rm -f .libs 2>/dev/null
7310 mkdir .libs 2>/dev/null
7311 if test -d .libs; then
7314 # MS-DOS does not allow filenames that begin with a dot.
7317 rmdir .libs 2>/dev/null
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7320 $as_echo "$lt_cv_objdir" >&6; }
7321 objdir=$lt_cv_objdir
7327 cat >>confdefs.h <<_ACEOF
7328 #define LT_OBJDIR "$lt_cv_objdir/"
7336 # AIX sometimes has problems with the GCC collect2 program. For some
7337 # reason, if we set the COLLECT_NAMES environment variable, the problems
7338 # vanish in a puff of smoke.
7339 if test "X${COLLECT_NAMES+set}" != Xset; then
7341 export COLLECT_NAMES
7348 can_build_shared=yes
7350 # All known linkers require a `.a' archive for static linking (except MSVC,
7351 # which needs '.lib').
7354 with_gnu_ld="$lt_cv_prog_gnu_ld"
7357 old_CFLAGS="$CFLAGS"
7359 # Set sane defaults for various variables
7360 test -z "$CC" && CC=cc
7361 test -z "$LTCC" && LTCC=$CC
7362 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7363 test -z "$LD" && LD=ld
7364 test -z "$ac_objext" && ac_objext=o
7366 for cc_temp in $compiler""; do
7368 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7369 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7374 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7377 # Only perform the check for file, if the check method requires it
7378 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7379 case $deplibs_check_method in
7381 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7383 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7384 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7385 $as_echo_n "(cached) " >&6
7389 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7392 lt_save_MAGIC_CMD="$MAGIC_CMD"
7393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7394 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7395 for ac_dir in $ac_dummy; do
7397 test -z "$ac_dir" && ac_dir=.
7398 if test -f $ac_dir/${ac_tool_prefix}file; then
7399 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7400 if test -n "$file_magic_test_file"; then
7401 case $deplibs_check_method in
7403 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7405 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7406 $EGREP "$file_magic_regex" > /dev/null; then
7411 *** Warning: the command libtool uses to detect shared libraries,
7412 *** $file_magic_cmd, produces output that libtool cannot recognize.
7413 *** The result is that libtool may fail to recognize shared libraries
7414 *** as such. This will affect the creation of libtool libraries that
7415 *** depend on shared libraries, but programs linked with such libtool
7416 *** libraries will work regardless of this problem. Nevertheless, you
7417 *** may want to report the problem to your system manager and/or to
7418 *** bug-libtool@gnu.org
7428 MAGIC_CMD="$lt_save_MAGIC_CMD"
7433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7434 if test -n "$MAGIC_CMD"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7436 $as_echo "$MAGIC_CMD" >&6; }
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7446 if test -z "$lt_cv_path_MAGIC_CMD"; then
7447 if test -n "$ac_tool_prefix"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7449 $as_echo_n "checking for file... " >&6; }
7450 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7451 $as_echo_n "(cached) " >&6
7455 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7458 lt_save_MAGIC_CMD="$MAGIC_CMD"
7459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7460 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7461 for ac_dir in $ac_dummy; do
7463 test -z "$ac_dir" && ac_dir=.
7464 if test -f $ac_dir/file; then
7465 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7466 if test -n "$file_magic_test_file"; then
7467 case $deplibs_check_method in
7469 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7471 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7472 $EGREP "$file_magic_regex" > /dev/null; then
7477 *** Warning: the command libtool uses to detect shared libraries,
7478 *** $file_magic_cmd, produces output that libtool cannot recognize.
7479 *** The result is that libtool may fail to recognize shared libraries
7480 *** as such. This will affect the creation of libtool libraries that
7481 *** depend on shared libraries, but programs linked with such libtool
7482 *** libraries will work regardless of this problem. Nevertheless, you
7483 *** may want to report the problem to your system manager and/or to
7484 *** bug-libtool@gnu.org
7494 MAGIC_CMD="$lt_save_MAGIC_CMD"
7499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7500 if test -n "$MAGIC_CMD"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7502 $as_echo "$MAGIC_CMD" >&6; }
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7518 # Use C for the default configuration in the libtool script
7522 ac_cpp='$CPP $CPPFLAGS'
7523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7528 # Source file extension for C test sources.
7531 # Object file extension for compiled C test sources.
7535 # Code to be used in simple compile tests
7536 lt_simple_compile_test_code="int some_variable = 0;"
7538 # Code to be used in simple link tests
7539 lt_simple_link_test_code='int main(){return(0);}'
7547 # If no C compiler was specified, use CC.
7550 # If no C compiler flags were specified, use CFLAGS.
7551 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7553 # Allow CC to be a program name with arguments.
7556 # Save the default compiler, since it gets overwritten when the other
7557 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7558 compiler_DEFAULT=$CC
7560 # save warnings/boilerplate of simple test code
7561 ac_outfile=conftest.$ac_objext
7562 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7563 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7564 _lt_compiler_boilerplate=`cat conftest.err`
7567 ac_outfile=conftest.$ac_objext
7568 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7569 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7570 _lt_linker_boilerplate=`cat conftest.err`
7575 ## There is no encapsulation within the following macros, do not change
7576 ## the running order or otherwise move them around unless you know exactly
7577 ## what you are doing...
7578 if test -n "$compiler"; then
7580 lt_prog_compiler_no_builtin_flag=
7582 if test "$GCC" = yes; then
7583 case $cc_basename in
7585 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7587 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7591 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7592 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7593 $as_echo_n "(cached) " >&6
7595 lt_cv_prog_compiler_rtti_exceptions=no
7596 ac_outfile=conftest.$ac_objext
7597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7598 lt_compiler_flag="-fno-rtti -fno-exceptions"
7599 # Insert the option either (1) after the last *FLAGS variable, or
7600 # (2) before a word containing "conftest.", or (3) at the end.
7601 # Note that $ac_compile itself does not contain backslashes and begins
7602 # with a dollar sign (not a hyphen), so the echo should work correctly.
7603 # The option is referenced via a variable to avoid confusing sed.
7604 lt_compile=`echo "$ac_compile" | $SED \
7605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7607 -e 's:$: $lt_compiler_flag:'`
7608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7609 (eval "$lt_compile" 2>conftest.err)
7611 cat conftest.err >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 if (exit $ac_status) && test -s "$ac_outfile"; then
7614 # The compiler can only warn and ignore the option if not recognized
7615 # So say no if there are warnings other than the usual output.
7616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7619 lt_cv_prog_compiler_rtti_exceptions=yes
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7626 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7628 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7629 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7641 lt_prog_compiler_wl=
7642 lt_prog_compiler_pic=
7643 lt_prog_compiler_static=
7646 if test "$GCC" = yes; then
7647 lt_prog_compiler_wl='-Wl,'
7648 lt_prog_compiler_static='-static'
7652 # All AIX code is PIC.
7653 if test "$host_cpu" = ia64; then
7654 # AIX 5 now supports IA64 processor
7655 lt_prog_compiler_static='-Bstatic'
7662 # see comment about AmigaOS4 .so support
7663 lt_prog_compiler_pic='-fPIC'
7666 # FIXME: we need at least 68020 code to build shared libraries, but
7667 # adding the `-m68020' flag to GCC prevents building anything better,
7669 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7674 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7675 # PIC is the default for these OSes.
7678 mingw* | cygwin* | pw32* | os2* | cegcc*)
7679 # This hack is so that the source file can tell whether it is being
7680 # built for inclusion in a dll (and should export symbols for example).
7681 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7682 # (--disable-auto-import) libraries
7683 lt_prog_compiler_pic='-DDLL_EXPORT'
7686 darwin* | rhapsody*)
7687 # PIC is the default on this platform
7688 # Common symbols not allowed in MH_DYLIB files
7689 lt_prog_compiler_pic='-fno-common'
7693 # PIC is the default for Haiku.
7694 # The "-static" flag exists, but is broken.
7695 lt_prog_compiler_static=
7699 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7700 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7701 # sets the default TLS model and affects inlining.
7707 lt_prog_compiler_pic='-fPIC'
7713 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7714 # Instead, we relocate shared libraries at runtime.
7718 # Just because we use GCC doesn't mean we suddenly get shared libraries
7719 # on systems that don't support them.
7720 lt_prog_compiler_can_build_shared=no
7725 # QNX uses GNU C++, but need to define -shared option too, otherwise
7727 lt_prog_compiler_pic='-fPIC -shared'
7731 if test -d /usr/nec; then
7732 lt_prog_compiler_pic=-Kconform_pic
7737 lt_prog_compiler_pic='-fPIC'
7741 case $cc_basename in
7742 nvcc*) # Cuda Compiler Driver 2.2
7743 lt_prog_compiler_wl='-Xlinker '
7744 if test -n "$lt_prog_compiler_pic"; then
7745 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7750 # PORTME Check for flag to pass linker flags through the system compiler.
7753 lt_prog_compiler_wl='-Wl,'
7754 if test "$host_cpu" = ia64; then
7755 # AIX 5 now supports IA64 processor
7756 lt_prog_compiler_static='-Bstatic'
7758 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7762 mingw* | cygwin* | pw32* | os2* | cegcc*)
7763 # This hack is so that the source file can tell whether it is being
7764 # built for inclusion in a dll (and should export symbols for example).
7765 lt_prog_compiler_pic='-DDLL_EXPORT'
7768 hpux9* | hpux10* | hpux11*)
7769 lt_prog_compiler_wl='-Wl,'
7770 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7777 lt_prog_compiler_pic='+Z'
7780 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7781 lt_prog_compiler_static='${wl}-a ${wl}archive'
7784 irix5* | irix6* | nonstopux*)
7785 lt_prog_compiler_wl='-Wl,'
7786 # PIC (with -KPIC) is the default.
7787 lt_prog_compiler_static='-non_shared'
7790 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7791 case $cc_basename in
7792 # old Intel for x86_64 which still supported -KPIC.
7794 lt_prog_compiler_wl='-Wl,'
7795 lt_prog_compiler_pic='-KPIC'
7796 lt_prog_compiler_static='-static'
7798 # icc used to be incompatible with GCC.
7799 # ICC 10 doesn't accept -KPIC any more.
7801 lt_prog_compiler_wl='-Wl,'
7802 lt_prog_compiler_pic='-fPIC'
7803 lt_prog_compiler_static='-static'
7805 # Lahey Fortran 8.1.
7807 lt_prog_compiler_wl='-Wl,'
7808 lt_prog_compiler_pic='--shared'
7809 lt_prog_compiler_static='--static'
7812 # NAG Fortran compiler
7813 lt_prog_compiler_wl='-Wl,-Wl,,'
7814 lt_prog_compiler_pic='-PIC'
7815 lt_prog_compiler_static='-Bstatic'
7817 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7818 # Portland Group compilers (*not* the Pentium gcc compiler,
7819 # which looks to be a dead project)
7820 lt_prog_compiler_wl='-Wl,'
7821 lt_prog_compiler_pic='-fpic'
7822 lt_prog_compiler_static='-Bstatic'
7825 lt_prog_compiler_wl='-Wl,'
7826 # All Alpha code is PIC.
7827 lt_prog_compiler_static='-non_shared'
7829 xl* | bgxl* | bgf* | mpixl*)
7830 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_pic='-qpic'
7833 lt_prog_compiler_static='-qstaticlink'
7836 case `$CC -V 2>&1 | sed 5q` in
7837 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7838 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7839 lt_prog_compiler_pic='-KPIC'
7840 lt_prog_compiler_static='-Bstatic'
7841 lt_prog_compiler_wl=''
7843 *Sun\ F* | *Sun*Fortran*)
7844 lt_prog_compiler_pic='-KPIC'
7845 lt_prog_compiler_static='-Bstatic'
7846 lt_prog_compiler_wl='-Qoption ld '
7850 lt_prog_compiler_pic='-KPIC'
7851 lt_prog_compiler_static='-Bstatic'
7852 lt_prog_compiler_wl='-Wl,'
7854 *Intel*\ [CF]*Compiler*)
7855 lt_prog_compiler_wl='-Wl,'
7856 lt_prog_compiler_pic='-fPIC'
7857 lt_prog_compiler_static='-static'
7860 lt_prog_compiler_wl='-Wl,'
7861 lt_prog_compiler_pic='-fpic'
7862 lt_prog_compiler_static='-Bstatic'
7870 lt_prog_compiler_pic='-KPIC'
7871 lt_prog_compiler_static='-Bstatic'
7875 # QNX uses GNU C++, but need to define -shared option too, otherwise
7877 lt_prog_compiler_pic='-fPIC -shared'
7880 osf3* | osf4* | osf5*)
7881 lt_prog_compiler_wl='-Wl,'
7882 # All OSF/1 code is PIC.
7883 lt_prog_compiler_static='-non_shared'
7887 lt_prog_compiler_static='-non_shared'
7891 lt_prog_compiler_pic='-KPIC'
7892 lt_prog_compiler_static='-Bstatic'
7893 case $cc_basename in
7894 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7895 lt_prog_compiler_wl='-Qoption ld ';;
7897 lt_prog_compiler_wl='-Wl,';;
7902 lt_prog_compiler_wl='-Qoption ld '
7903 lt_prog_compiler_pic='-PIC'
7904 lt_prog_compiler_static='-Bstatic'
7907 sysv4 | sysv4.2uw2* | sysv4.3*)
7908 lt_prog_compiler_wl='-Wl,'
7909 lt_prog_compiler_pic='-KPIC'
7910 lt_prog_compiler_static='-Bstatic'
7914 if test -d /usr/nec ;then
7915 lt_prog_compiler_pic='-Kconform_pic'
7916 lt_prog_compiler_static='-Bstatic'
7920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7921 lt_prog_compiler_wl='-Wl,'
7922 lt_prog_compiler_pic='-KPIC'
7923 lt_prog_compiler_static='-Bstatic'
7927 lt_prog_compiler_wl='-Wl,'
7928 lt_prog_compiler_can_build_shared=no
7932 lt_prog_compiler_pic='-pic'
7933 lt_prog_compiler_static='-Bstatic'
7937 lt_prog_compiler_can_build_shared=no
7943 # For platforms which do not support PIC, -DPIC is meaningless:
7945 lt_prog_compiler_pic=
7948 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7953 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7954 if ${lt_cv_prog_compiler_pic+:} false; then :
7955 $as_echo_n "(cached) " >&6
7957 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7960 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7961 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7964 # Check to make sure the PIC flag actually works.
7966 if test -n "$lt_prog_compiler_pic"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7968 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7969 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7970 $as_echo_n "(cached) " >&6
7972 lt_cv_prog_compiler_pic_works=no
7973 ac_outfile=conftest.$ac_objext
7974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7975 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7976 # Insert the option either (1) after the last *FLAGS variable, or
7977 # (2) before a word containing "conftest.", or (3) at the end.
7978 # Note that $ac_compile itself does not contain backslashes and begins
7979 # with a dollar sign (not a hyphen), so the echo should work correctly.
7980 # The option is referenced via a variable to avoid confusing sed.
7981 lt_compile=`echo "$ac_compile" | $SED \
7982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7984 -e 's:$: $lt_compiler_flag:'`
7985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7986 (eval "$lt_compile" 2>conftest.err)
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 if (exit $ac_status) && test -s "$ac_outfile"; then
7991 # The compiler can only warn and ignore the option if not recognized
7992 # So say no if there are warnings other than the usual output.
7993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7996 lt_cv_prog_compiler_pic_works=yes
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8003 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8005 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8006 case $lt_prog_compiler_pic in
8008 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8011 lt_prog_compiler_pic=
8012 lt_prog_compiler_can_build_shared=no
8028 # Check to make sure the static flag actually works.
8030 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8032 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8033 if ${lt_cv_prog_compiler_static_works+:} false; then :
8034 $as_echo_n "(cached) " >&6
8036 lt_cv_prog_compiler_static_works=no
8037 save_LDFLAGS="$LDFLAGS"
8038 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8039 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8040 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8041 # The linker can only warn and ignore the option if not recognized
8042 # So say no if there are warnings
8043 if test -s conftest.err; then
8044 # Append any errors to the config.log.
8045 cat conftest.err 1>&5
8046 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8048 if diff conftest.exp conftest.er2 >/dev/null; then
8049 lt_cv_prog_compiler_static_works=yes
8052 lt_cv_prog_compiler_static_works=yes
8056 LDFLAGS="$save_LDFLAGS"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8060 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8062 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8065 lt_prog_compiler_static=
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8075 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8076 if ${lt_cv_prog_compiler_c_o+:} false; then :
8077 $as_echo_n "(cached) " >&6
8079 lt_cv_prog_compiler_c_o=no
8080 $RM -r conftest 2>/dev/null
8084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8086 lt_compiler_flag="-o out/conftest2.$ac_objext"
8087 # Insert the option either (1) after the last *FLAGS variable, or
8088 # (2) before a word containing "conftest.", or (3) at the end.
8089 # Note that $ac_compile itself does not contain backslashes and begins
8090 # with a dollar sign (not a hyphen), so the echo should work correctly.
8091 lt_compile=`echo "$ac_compile" | $SED \
8092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8094 -e 's:$: $lt_compiler_flag:'`
8095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8096 (eval "$lt_compile" 2>out/conftest.err)
8098 cat out/conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8102 # The compiler can only warn and ignore the option if not recognized
8103 # So say no if there are warnings
8104 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8105 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8106 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8107 lt_cv_prog_compiler_c_o=yes
8112 # SGI C++ compiler will create directory out/ii_files/ for
8113 # template instantiation
8114 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8115 $RM out/* && rmdir out
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8122 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8130 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8131 if ${lt_cv_prog_compiler_c_o+:} false; then :
8132 $as_echo_n "(cached) " >&6
8134 lt_cv_prog_compiler_c_o=no
8135 $RM -r conftest 2>/dev/null
8139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8141 lt_compiler_flag="-o out/conftest2.$ac_objext"
8142 # Insert the option either (1) after the last *FLAGS variable, or
8143 # (2) before a word containing "conftest.", or (3) at the end.
8144 # Note that $ac_compile itself does not contain backslashes and begins
8145 # with a dollar sign (not a hyphen), so the echo should work correctly.
8146 lt_compile=`echo "$ac_compile" | $SED \
8147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8149 -e 's:$: $lt_compiler_flag:'`
8150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8151 (eval "$lt_compile" 2>out/conftest.err)
8153 cat out/conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8157 # The compiler can only warn and ignore the option if not recognized
8158 # So say no if there are warnings
8159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8162 lt_cv_prog_compiler_c_o=yes
8167 # SGI C++ compiler will create directory out/ii_files/ for
8168 # template instantiation
8169 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8170 $RM out/* && rmdir out
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8177 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8182 hard_links="nottested"
8183 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8184 # do not overwrite the value of need_locks provided by the user
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8186 $as_echo_n "checking if we can lock with hard links... " >&6; }
8189 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8191 ln conftest.a conftest.b 2>&5 || hard_links=no
8192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8194 $as_echo "$hard_links" >&6; }
8195 if test "$hard_links" = no; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8197 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8210 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8213 allow_undefined_flag=
8214 always_export_symbols=no
8216 archive_expsym_cmds=
8217 compiler_needs_object=no
8218 enable_shared_with_static_runtimes=no
8219 export_dynamic_flag_spec=
8220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8221 hardcode_automatic=no
8223 hardcode_direct_absolute=no
8224 hardcode_libdir_flag_spec=
8225 hardcode_libdir_separator=
8227 hardcode_shlibpath_var=unsupported
8229 link_all_deplibs=unknown
8232 old_archive_from_new_cmds=
8233 old_archive_from_expsyms_cmds=
8234 thread_safe_flag_spec=
8235 whole_archive_flag_spec=
8236 # include_expsyms should be a list of space-separated symbols to be *always*
8237 # included in the symbol list
8239 # exclude_expsyms can be an extended regexp of symbols to exclude
8240 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8241 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8242 # as well as any symbol that contains `d'.
8243 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8244 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8245 # platforms (ab)use it in PIC code, but their linkers get confused if
8246 # the symbol is explicitly referenced. Since portable code cannot
8247 # rely on this symbol name, it's probably fine to never include it in
8248 # preloaded symbol tables.
8249 # Exclude shared library initialization/finalization symbols.
8250 extract_expsyms_cmds=
8253 cygwin* | mingw* | pw32* | cegcc*)
8254 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8255 # When not using gcc, we currently assume that we are using
8256 # Microsoft Visual C++.
8257 if test "$GCC" != yes; then
8262 # we just hope/assume this is gcc and not c89 (= MSVC++)
8268 linux* | k*bsd*-gnu | gnu*)
8275 # On some targets, GNU ld is compatible enough with the native linker
8276 # that we're better off using the native interface for both.
8277 lt_use_gnu_ld_interface=no
8278 if test "$with_gnu_ld" = yes; then
8281 # The AIX port of GNU ld has always aspired to compatibility
8282 # with the native linker. However, as the warning in the GNU ld
8283 # block says, versions before 2.19.5* couldn't really create working
8284 # shared libraries, regardless of the interface used.
8285 case `$LD -v 2>&1` in
8286 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8287 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8288 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8290 lt_use_gnu_ld_interface=yes
8295 lt_use_gnu_ld_interface=yes
8300 if test "$lt_use_gnu_ld_interface" = yes; then
8301 # If archive_cmds runs LD, not CC, wlarc should be empty
8304 # Set some defaults for GNU ld with shared library support. These
8305 # are reset later if shared libraries are not supported. Putting them
8306 # here allows them to be overridden if necessary.
8307 runpath_var=LD_RUN_PATH
8308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8309 export_dynamic_flag_spec='${wl}--export-dynamic'
8310 # ancient GNU ld didn't support --whole-archive et. al.
8311 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8312 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8314 whole_archive_flag_spec=
8316 supports_anon_versioning=no
8317 case `$LD -v 2>&1` in
8318 *GNU\ gold*) supports_anon_versioning=yes ;;
8319 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8320 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8321 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8322 *\ 2.11.*) ;; # other 2.11 versions
8323 *) supports_anon_versioning=yes ;;
8326 # See if GNU ld supports shared libraries.
8329 # On AIX/PPC, the GNU linker is very broken
8330 if test "$host_cpu" != ia64; then
8334 *** Warning: the GNU linker, at least up to release 2.19, is reported
8335 *** to be unable to reliably create shared libraries on AIX.
8336 *** Therefore, libtool is disabling shared libraries support. If you
8337 *** really care for shared libraries, you may want to install binutils
8338 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8339 *** You will then need to restart the configuration process.
8348 # see comment about AmigaOS4 .so support
8349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8350 archive_expsym_cmds=''
8353 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)'
8354 hardcode_libdir_flag_spec='-L$libdir'
8355 hardcode_minus_L=yes
8361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8362 allow_undefined_flag=unsupported
8363 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8364 # support --undefined. This deserves some investigation. FIXME
8365 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 cygwin* | mingw* | pw32* | cegcc*)
8372 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8373 # as there is no search path for DLLs.
8374 hardcode_libdir_flag_spec='-L$libdir'
8375 export_dynamic_flag_spec='${wl}--export-all-symbols'
8376 allow_undefined_flag=unsupported
8377 always_export_symbols=no
8378 enable_shared_with_static_runtimes=yes
8379 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'
8380 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8382 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8384 # If the export-symbols file already is a .def file (1st line
8385 # is EXPORTS), use it as is; otherwise, prepend...
8386 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8387 cp $export_symbols $output_objdir/$soname.def;
8389 echo EXPORTS > $output_objdir/$soname.def;
8390 cat $export_symbols >> $output_objdir/$soname.def;
8392 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400 link_all_deplibs=yes
8405 hardcode_shlibpath_var=no
8406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8407 export_dynamic_flag_spec='${wl}-E'
8408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8409 # Instead, shared libraries are loaded at an image base (0x10000000 by
8410 # default) and relocated if they conflict, which is a slow very memory
8411 # consuming and fragmenting process. To avoid this, we pick a random,
8412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8414 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8415 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'
8418 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8420 if test "$host_os" = linux-dietlibc; then
8421 case $cc_basename in
8422 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8425 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8426 && test "$tmp_diet" = no
8428 tmp_addflag=' $pic_flag'
8429 tmp_sharedflag='-shared'
8430 case $cc_basename,$host_cpu in
8431 pgcc*) # Portland Group C compiler
8432 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'
8433 tmp_addflag=' $pic_flag'
8435 pgf77* | pgf90* | pgf95* | pgfortran*)
8436 # Portland Group f77 and f90 compilers
8437 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'
8438 tmp_addflag=' $pic_flag -Mnomain' ;;
8439 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8440 tmp_addflag=' -i_dynamic' ;;
8441 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8442 tmp_addflag=' -i_dynamic -nofor_main' ;;
8443 ifc* | ifort*) # Intel Fortran compiler
8444 tmp_addflag=' -nofor_main' ;;
8445 lf95*) # Lahey Fortran 8.1
8446 whole_archive_flag_spec=
8447 tmp_sharedflag='--shared' ;;
8448 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8449 tmp_sharedflag='-qmkshrobj'
8451 nvcc*) # Cuda Compiler Driver 2.2
8452 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'
8453 compiler_needs_object=yes
8456 case `$CC -V 2>&1 | sed 5q` in
8457 *Sun\ C*) # Sun C 5.9
8458 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'
8459 compiler_needs_object=yes
8460 tmp_sharedflag='-G' ;;
8461 *Sun\ F*) # Sun Fortran 8.3
8462 tmp_sharedflag='-G' ;;
8464 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8466 if test "x$supports_anon_versioning" = xyes; then
8467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8469 echo "local: *; };" >> $output_objdir/$libname.ver~
8470 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8473 case $cc_basename in
8474 xlf* | bgf* | bgxlf* | mpixlf*)
8475 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8476 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8478 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8479 if test "x$supports_anon_versioning" = xyes; then
8480 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8482 echo "local: *; };" >> $output_objdir/$libname.ver~
8483 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8492 netbsd* | netbsdelf*-gnu)
8493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8494 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8497 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8503 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8507 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8508 *** create shared libraries on Solaris systems. Therefore, libtool
8509 *** is disabling shared libraries support. We urge you to upgrade GNU
8510 *** binutils to release 2.9.1 or newer. Another option is to modify
8511 *** your PATH or compiler configuration so that the native linker is
8512 *** used, and then restart.
8515 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8516 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8524 case `$LD -v 2>&1` in
8525 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8529 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8530 *** reliably create shared libraries on SCO systems. Therefore, libtool
8531 *** is disabling shared libraries support. We urge you to upgrade GNU
8532 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8533 *** your PATH or compiler configuration so that the native linker is
8534 *** used, and then restart.
8539 # For security reasons, it is highly recommended that you always
8540 # use absolute paths for naming shared libraries, and exclude the
8541 # DT_RUNPATH tag from executables and libraries. But doing so
8542 # requires that you compile everything twice, which is a pain.
8543 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8546 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8555 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8558 hardcode_shlibpath_var=no
8562 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8564 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8571 if test "$ld_shlibs" = no; then
8573 hardcode_libdir_flag_spec=
8574 export_dynamic_flag_spec=
8575 whole_archive_flag_spec=
8578 # PORTME fill in a description of your system's linker (not GNU ld)
8581 allow_undefined_flag=unsupported
8582 always_export_symbols=yes
8583 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'
8584 # Note: this linker hardcodes the directories in LIBPATH if there
8585 # are no directories specified by -L.
8586 hardcode_minus_L=yes
8587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8588 # Neither direct hardcoding nor static linking is supported with a
8590 hardcode_direct=unsupported
8595 if test "$host_cpu" = ia64; then
8596 # On IA64, the linker does run time linking by default, so we don't
8597 # have to do anything special.
8598 aix_use_runtimelinking=no
8599 exp_sym_flag='-Bexport'
8602 # If we're using GNU nm, then we don't want the "-C" option.
8603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8604 # Also, AIX nm treats weak defined symbols like other global
8605 # defined symbols, whereas GNU nm marks them as "W".
8606 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8607 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8609 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8611 aix_use_runtimelinking=no
8613 # Test if we are trying to use run time linking or normal
8614 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8615 # need to do runtime linking.
8616 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8617 for ld_flag in $LDFLAGS; do
8618 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8619 aix_use_runtimelinking=yes
8626 exp_sym_flag='-bexport'
8627 no_entry_flag='-bnoentry'
8630 # When large executables or shared objects are built, AIX ld can
8631 # have problems creating the table of contents. If linking a library
8632 # or program results in "error TOC overflow" add -mminimal-toc to
8633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8638 hardcode_direct_absolute=yes
8639 hardcode_libdir_separator=':'
8640 link_all_deplibs=yes
8641 file_list_spec='${wl}-f,'
8643 if test "$GCC" = yes; then
8644 case $host_os in aix4.[012]|aix4.[012].*)
8645 # We only want to do this on AIX 4.2 and lower, the check
8646 # below for broken collect2 doesn't work under 4.3+
8647 collect2name=`${CC} -print-prog-name=collect2`
8648 if test -f "$collect2name" &&
8649 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8651 # We have reworked collect2
8654 # We have old collect2
8655 hardcode_direct=unsupported
8656 # It fails to find uninstalled libraries when the uninstalled
8657 # path is not listed in the libpath. Setting hardcode_minus_L
8658 # to unsupported forces relinking
8659 hardcode_minus_L=yes
8660 hardcode_libdir_flag_spec='-L$libdir'
8661 hardcode_libdir_separator=
8665 shared_flag='-shared'
8666 if test "$aix_use_runtimelinking" = yes; then
8667 shared_flag="$shared_flag "'${wl}-G'
8672 if test "$host_cpu" = ia64; then
8673 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8674 # chokes on -Wl,-G. The following line is correct:
8677 if test "$aix_use_runtimelinking" = yes; then
8678 shared_flag='${wl}-G'
8680 shared_flag='${wl}-bM:SRE'
8685 export_dynamic_flag_spec='${wl}-bexpall'
8686 # It seems that -bexpall does not export symbols beginning with
8687 # underscore (_), so it is better to generate a list of symbols to export.
8688 always_export_symbols=yes
8689 if test "$aix_use_runtimelinking" = yes; then
8690 # Warning - without using the other runtime loading flags (-brtl),
8691 # -berok will link without error, but may produce a broken library.
8692 allow_undefined_flag='-berok'
8693 # Determine the default libpath from the value encoded in an
8695 if test "${lt_cv_aix_libpath+set}" = set; then
8696 aix_libpath=$lt_cv_aix_libpath
8698 if ${lt_cv_aix_libpath_+:} false; then :
8699 $as_echo_n "(cached) " >&6
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8712 if ac_fn_c_try_link "$LINENO"; then :
8714 lt_aix_libpath_sed='
8715 /Import File Strings/,/^$/ {
8717 s/^0 *\([^ ]*\) *$/\1/
8721 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8722 # Check for a 64-bit object if we didn't find anything.
8723 if test -z "$lt_cv_aix_libpath_"; then
8724 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8727 rm -f core conftest.err conftest.$ac_objext \
8728 conftest$ac_exeext conftest.$ac_ext
8729 if test -z "$lt_cv_aix_libpath_"; then
8730 lt_cv_aix_libpath_="/usr/lib:/lib"
8735 aix_libpath=$lt_cv_aix_libpath_
8738 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8739 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8741 if test "$host_cpu" = ia64; then
8742 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8743 allow_undefined_flag="-z nodefs"
8744 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"
8746 # Determine the default libpath from the value encoded in an
8748 if test "${lt_cv_aix_libpath+set}" = set; then
8749 aix_libpath=$lt_cv_aix_libpath
8751 if ${lt_cv_aix_libpath_+:} false; then :
8752 $as_echo_n "(cached) " >&6
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8765 if ac_fn_c_try_link "$LINENO"; then :
8767 lt_aix_libpath_sed='
8768 /Import File Strings/,/^$/ {
8770 s/^0 *\([^ ]*\) *$/\1/
8774 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775 # Check for a 64-bit object if we didn't find anything.
8776 if test -z "$lt_cv_aix_libpath_"; then
8777 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8780 rm -f core conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8782 if test -z "$lt_cv_aix_libpath_"; then
8783 lt_cv_aix_libpath_="/usr/lib:/lib"
8788 aix_libpath=$lt_cv_aix_libpath_
8791 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8792 # Warning - without using the other run time loading flags,
8793 # -berok will link without error, but may produce a broken library.
8794 no_undefined_flag=' ${wl}-bernotok'
8795 allow_undefined_flag=' ${wl}-berok'
8796 if test "$with_gnu_ld" = yes; then
8797 # We only use this code for GNU lds that support --whole-archive.
8798 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8800 # Exported symbols can be pulled into shared objects from archives
8801 whole_archive_flag_spec='$convenience'
8803 archive_cmds_need_lc=yes
8804 # This is similar to how AIX traditionally builds its shared libraries.
8805 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8813 # see comment about AmigaOS4 .so support
8814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815 archive_expsym_cmds=''
8818 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)'
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_minus_L=yes
8826 export_dynamic_flag_spec=-rdynamic
8829 cygwin* | mingw* | pw32* | cegcc*)
8830 # When not using gcc, we currently assume that we are using
8831 # Microsoft Visual C++.
8832 # hardcode_libdir_flag_spec is actually meaningless, as there is
8833 # no search path for DLLs.
8834 case $cc_basename in
8837 hardcode_libdir_flag_spec=' '
8838 allow_undefined_flag=unsupported
8839 always_export_symbols=yes
8841 # Tell ltmain to make .lib files, not .a files.
8843 # Tell ltmain to make .dll files, not .so files.
8845 # FIXME: Setting linknames here is a bad hack.
8846 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8847 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8848 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8850 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8852 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8854 # The linker will not automatically build a static lib if we build a DLL.
8855 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8856 enable_shared_with_static_runtimes=yes
8857 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8858 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8860 old_postinstall_cmds='chmod 644 $oldlib'
8861 postlink_cmds='lt_outputfile="@OUTPUT@"~
8862 lt_tool_outputfile="@TOOL_OUTPUT@"~
8863 case $lt_outputfile in
8866 lt_outputfile="$lt_outputfile.exe"
8867 lt_tool_outputfile="$lt_tool_outputfile.exe"
8870 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8871 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8872 $RM "$lt_outputfile.manifest";
8876 # Assume MSVC wrapper
8877 hardcode_libdir_flag_spec=' '
8878 allow_undefined_flag=unsupported
8879 # Tell ltmain to make .lib files, not .a files.
8881 # Tell ltmain to make .dll files, not .so files.
8883 # FIXME: Setting linknames here is a bad hack.
8884 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8885 # The linker will automatically build a .lib file if we build a DLL.
8886 old_archive_from_new_cmds='true'
8887 # FIXME: Should let the user specify the lib program.
8888 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8889 enable_shared_with_static_runtimes=yes
8894 darwin* | rhapsody*)
8897 archive_cmds_need_lc=no
8899 hardcode_automatic=yes
8900 hardcode_shlibpath_var=unsupported
8901 if test "$lt_cv_ld_force_load" = "yes"; then
8902 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\"`'
8905 whole_archive_flag_spec=''
8907 link_all_deplibs=yes
8908 allow_undefined_flag="$_lt_dar_allow_undefined"
8909 case $cc_basename in
8910 ifort*) _lt_dar_can_shared=yes ;;
8911 *) _lt_dar_can_shared=$GCC ;;
8913 if test "$_lt_dar_can_shared" = "yes"; then
8914 output_verbose_link_cmd=func_echo_all
8915 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8916 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8917 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}"
8918 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}"
8927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 hardcode_shlibpath_var=no
8932 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8933 # support. Future versions do this automatically, but an explicit c++rt0.o
8934 # does not break anything, and helps significantly (at the cost of a little
8937 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8938 hardcode_libdir_flag_spec='-R$libdir'
8940 hardcode_shlibpath_var=no
8943 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_minus_L=yes
8948 hardcode_shlibpath_var=no
8951 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8952 freebsd* | dragonfly*)
8953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8954 hardcode_libdir_flag_spec='-R$libdir'
8956 hardcode_shlibpath_var=no
8960 if test "$GCC" = yes; then
8961 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8963 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8965 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8966 hardcode_libdir_separator=:
8969 # hardcode_minus_L: Not really in the search PATH,
8970 # but as the default location of the library.
8971 hardcode_minus_L=yes
8972 export_dynamic_flag_spec='${wl}-E'
8976 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8977 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8979 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8981 if test "$with_gnu_ld" = no; then
8982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8983 hardcode_libdir_separator=:
8985 hardcode_direct_absolute=yes
8986 export_dynamic_flag_spec='${wl}-E'
8987 # hardcode_minus_L: Not really in the search PATH,
8988 # but as the default location of the library.
8989 hardcode_minus_L=yes
8994 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8997 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9000 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9003 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9009 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9012 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9016 # Older versions of the 11.00 compiler do not understand -b yet
9017 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9019 $as_echo_n "checking if $CC understands -b... " >&6; }
9020 if ${lt_cv_prog_compiler__b+:} false; then :
9021 $as_echo_n "(cached) " >&6
9023 lt_cv_prog_compiler__b=no
9024 save_LDFLAGS="$LDFLAGS"
9025 LDFLAGS="$LDFLAGS -b"
9026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9028 # The linker can only warn and ignore the option if not recognized
9029 # So say no if there are warnings
9030 if test -s conftest.err; then
9031 # Append any errors to the config.log.
9032 cat conftest.err 1>&5
9033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler__b=yes
9039 lt_cv_prog_compiler__b=yes
9043 LDFLAGS="$save_LDFLAGS"
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9047 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9049 if test x"$lt_cv_prog_compiler__b" = xyes; then
9050 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9052 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9058 if test "$with_gnu_ld" = no; then
9059 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9060 hardcode_libdir_separator=:
9065 hardcode_shlibpath_var=no
9069 hardcode_direct_absolute=yes
9070 export_dynamic_flag_spec='${wl}-E'
9072 # hardcode_minus_L: Not really in the search PATH,
9073 # but as the default location of the library.
9074 hardcode_minus_L=yes
9080 irix5* | irix6* | nonstopux*)
9081 if test "$GCC" = yes; then
9082 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'
9083 # Try to use the -exported_symbol ld option, if it does not
9084 # work, assume that -exports_file does not work either and
9085 # implicitly export all symbols.
9086 # This should be the same for all languages, so no per-tag cache variable.
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9088 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9089 if ${lt_cv_irix_exported_symbol+:} false; then :
9090 $as_echo_n "(cached) " >&6
9092 save_LDFLAGS="$LDFLAGS"
9093 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 int foo (void) { return 0; }
9098 if ac_fn_c_try_link "$LINENO"; then :
9099 lt_cv_irix_exported_symbol=yes
9101 lt_cv_irix_exported_symbol=no
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 LDFLAGS="$save_LDFLAGS"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9108 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9109 if test "$lt_cv_irix_exported_symbol" = yes; then
9110 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'
9113 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'
9114 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'
9116 archive_cmds_need_lc='no'
9117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9118 hardcode_libdir_separator=:
9120 link_all_deplibs=yes
9123 netbsd* | netbsdelf*-gnu)
9124 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9127 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9129 hardcode_libdir_flag_spec='-R$libdir'
9131 hardcode_shlibpath_var=no
9135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9138 hardcode_libdir_separator=:
9139 hardcode_shlibpath_var=no
9146 if test -f /usr/libexec/ld.so; then
9148 hardcode_shlibpath_var=no
9149 hardcode_direct_absolute=yes
9150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9151 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9153 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9154 export_dynamic_flag_spec='${wl}-E'
9157 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9159 hardcode_libdir_flag_spec='-R$libdir'
9162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9163 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9173 hardcode_libdir_flag_spec='-L$libdir'
9174 hardcode_minus_L=yes
9175 allow_undefined_flag=unsupported
9176 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9177 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9181 if test "$GCC" = yes; then
9182 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9183 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'
9185 allow_undefined_flag=' -expect_unresolved \*'
9186 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'
9188 archive_cmds_need_lc='no'
9189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9190 hardcode_libdir_separator=:
9193 osf4* | osf5*) # as osf3* with the addition of -msym flag
9194 if test "$GCC" = yes; then
9195 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9196 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'
9197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9199 allow_undefined_flag=' -expect_unresolved \*'
9200 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'
9201 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~
9202 $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'
9204 # Both c and cxx compiler support -rpath directly
9205 hardcode_libdir_flag_spec='-rpath $libdir'
9207 archive_cmds_need_lc='no'
9208 hardcode_libdir_separator=:
9212 no_undefined_flag=' -z defs'
9213 if test "$GCC" = yes; then
9215 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9217 $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'
9219 case `$CC -V 2>&1` in
9222 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9223 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9224 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9228 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9230 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9234 hardcode_libdir_flag_spec='-R$libdir'
9235 hardcode_shlibpath_var=no
9237 solaris2.[0-5] | solaris2.[0-5].*) ;;
9239 # The compiler driver will combine and reorder linker options,
9240 # but understands `-z linker_flag'. GCC discards it without `$wl',
9241 # but is careful enough not to reorder.
9242 # Supported since Solaris 2.6 (maybe 2.5.1?)
9243 if test "$GCC" = yes; then
9244 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9246 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9250 link_all_deplibs=yes
9254 if test "x$host_vendor" = xsequent; then
9255 # Use $CC to link under sequent, because it throws in some extra .o
9256 # files that make .init and .fini sections work.
9257 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9259 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9261 hardcode_libdir_flag_spec='-L$libdir'
9263 hardcode_minus_L=yes
9264 hardcode_shlibpath_var=no
9268 case $host_vendor in
9270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271 hardcode_direct=yes # is this really true???
9274 ## LD is ld it makes a PLAMLIB
9275 ## CC just makes a GrossModule.
9276 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9277 reload_cmds='$CC -r -o $output$reload_objs'
9281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9282 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9285 runpath_var='LD_RUN_PATH'
9286 hardcode_shlibpath_var=no
9290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291 hardcode_shlibpath_var=no
9292 export_dynamic_flag_spec='-Bexport'
9296 if test -d /usr/nec; then
9297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9298 hardcode_shlibpath_var=no
9299 runpath_var=LD_RUN_PATH
9300 hardcode_runpath_var=yes
9305 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9306 no_undefined_flag='${wl}-z,text'
9307 archive_cmds_need_lc=no
9308 hardcode_shlibpath_var=no
9309 runpath_var='LD_RUN_PATH'
9311 if test "$GCC" = yes; then
9312 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9315 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9316 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9320 sysv5* | sco3.2v5* | sco5v6*)
9321 # Note: We can NOT use -z defs as we might desire, because we do not
9322 # link with -lc, and that would cause any symbols used from libc to
9323 # always be unresolved, which means just about no library would
9324 # ever link correctly. If we're not using GNU ld we use -z text
9325 # though, which does catch some bad symbols but isn't as heavy-handed
9327 no_undefined_flag='${wl}-z,text'
9328 allow_undefined_flag='${wl}-z,nodefs'
9329 archive_cmds_need_lc=no
9330 hardcode_shlibpath_var=no
9331 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9332 hardcode_libdir_separator=':'
9333 link_all_deplibs=yes
9334 export_dynamic_flag_spec='${wl}-Bexport'
9335 runpath_var='LD_RUN_PATH'
9337 if test "$GCC" = yes; then
9338 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9339 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9341 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9342 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_libdir_flag_spec='-L$libdir'
9349 hardcode_shlibpath_var=no
9357 if test x$host_vendor = xsni; then
9359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9360 export_dynamic_flag_spec='${wl}-Blargedynsym'
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9367 $as_echo "$ld_shlibs" >&6; }
9368 test "$ld_shlibs" = no && can_build_shared=no
9370 with_gnu_ld=$with_gnu_ld
9387 # Do we need to explicitly link libc?
9389 case "x$archive_cmds_need_lc" in
9391 # Assume -lc should be added
9392 archive_cmds_need_lc=yes
9394 if test "$enable_shared" = yes && test "$GCC" = yes; then
9395 case $archive_cmds in
9397 # FIXME: we may have to deal with multi-command sequences.
9400 # Test whether the compiler implicitly links with -lc since on some
9401 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9402 # to ld, don't add -lc before -lgcc.
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9404 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9405 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9406 $as_echo_n "(cached) " >&6
9409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9412 (eval $ac_compile) 2>&5
9414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9415 test $ac_status = 0; } 2>conftest.err; then
9418 libobjs=conftest.$ac_objext
9420 wl=$lt_prog_compiler_wl
9421 pic_flag=$lt_prog_compiler_pic
9427 lt_save_allow_undefined_flag=$allow_undefined_flag
9428 allow_undefined_flag=
9429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9430 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9433 test $ac_status = 0; }
9435 lt_cv_archive_cmds_need_lc=no
9437 lt_cv_archive_cmds_need_lc=yes
9439 allow_undefined_flag=$lt_save_allow_undefined_flag
9441 cat conftest.err 1>&5
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9447 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9448 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9607 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9609 if test "$GCC" = yes; then
9611 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9612 *) lt_awk_arg="/^libraries:/" ;;
9615 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9616 *) lt_sed_strip_eq="s,=/,/,g" ;;
9618 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9619 case $lt_search_path_spec in
9621 # if the path contains ";" then we assume it to be the separator
9622 # otherwise default to the standard path separator (i.e. ":") - it is
9623 # assumed that no part of a normal pathname contains ";" but that should
9624 # okay in the real world where ";" in dirpaths is itself problematic.
9625 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9628 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9631 # Ok, now we have the path, separated by spaces, we can step through it
9632 # and add multilib dir if necessary.
9633 lt_tmp_lt_search_path_spec=
9634 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9635 for lt_sys_path in $lt_search_path_spec; do
9636 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9637 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9639 test -d "$lt_sys_path" && \
9640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9643 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9644 BEGIN {RS=" "; FS="/|\n";} {
9647 for (lt_i = NF; lt_i > 0; lt_i--) {
9648 if ($lt_i != "" && $lt_i != ".") {
9649 if ($lt_i == "..") {
9652 if (lt_count == 0) {
9653 lt_foo="/" $lt_i lt_foo;
9660 if (lt_foo != "") { lt_freq[lt_foo]++; }
9661 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9663 # AWK program above erroneously prepends '/' to C:/dos/paths
9666 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9667 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9669 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9674 libname_spec='lib$name'
9682 shlibpath_overrides_runpath=unknown
9684 dynamic_linker="$host_os ld.so"
9685 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9686 need_lib_prefix=unknown
9687 hardcode_into_libs=no
9689 # when you set need_version to no, make sure it does not cause -set_version
9690 # flags to be left without arguments
9691 need_version=unknown
9695 version_type=linux # correct to gnu/linux during the next big refactor
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9697 shlibpath_var=LIBPATH
9699 # AIX 3 has no versioning support, so we append a major version to the name.
9700 soname_spec='${libname}${release}${shared_ext}$major'
9704 version_type=linux # correct to gnu/linux during the next big refactor
9707 hardcode_into_libs=yes
9708 if test "$host_cpu" = ia64; then
9709 # AIX 5 supports IA64
9710 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9711 shlibpath_var=LD_LIBRARY_PATH
9713 # With GCC up to 2.95.x, collect2 would create an import file
9714 # for dependence libraries. The import file would start with
9715 # the line `#! .'. This would cause the generated library to
9716 # depend on `.', always an invalid library. This was fixed in
9717 # development snapshots of GCC prior to 3.0.
9719 aix4 | aix4.[01] | aix4.[01].*)
9720 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9722 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9729 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9730 # soname into executable. Probably we can add versioning support to
9731 # collect2, so additional links can be useful in future.
9732 if test "$aix_use_runtimelinking" = yes; then
9733 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9734 # instead of lib<name>.a to let people know that these are not
9735 # typical AIX shared libraries.
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 # We preserve .a as extension for shared libraries through AIX4.2
9739 # and later when we are not doing run time linking.
9740 library_names_spec='${libname}${release}.a $libname.a'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9743 shlibpath_var=LIBPATH
9750 # Since July 2007 AmigaOS4 officially supports .so libraries.
9751 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755 library_names_spec='$libname.ixlibrary $libname.a'
9756 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9757 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9763 library_names_spec='${libname}${shared_ext}'
9764 dynamic_linker="$host_os ld.so"
9765 shlibpath_var=LIBRARY_PATH
9769 version_type=linux # correct to gnu/linux during the next big refactor
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9777 # the default ld.so.conf also contains /usr/contrib/lib and
9778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9779 # libtool to hard-code these into programs
9782 cygwin* | mingw* | pw32* | cegcc*)
9783 version_type=windows
9788 case $GCC,$cc_basename in
9791 library_names_spec='$libname.dll.a'
9792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9793 postinstall_cmds='base_file=`basename \${file}`~
9794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9795 dldir=$destdir/`dirname \$dlpath`~
9796 test -d \$dldir || mkdir -p \$dldir~
9797 $install_prog $dir/$dlname \$dldir/$dlname~
9798 chmod a+x \$dldir/$dlname~
9799 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9800 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9802 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9803 dlpath=$dir/\$dldll~
9805 shlibpath_overrides_runpath=yes
9809 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9810 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9812 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9815 # MinGW DLLs use traditional 'lib' prefix
9816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9819 # pw32 DLLs use 'pw' prefix rather than 'lib'
9820 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9823 dynamic_linker='Win32 ld.exe'
9828 libname_spec='$name'
9829 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9830 library_names_spec='${libname}.dll.lib'
9834 sys_lib_search_path_spec=
9840 # Let DOS variable expansion print the short 8.3 style file name.
9841 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9842 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9845 # Convert to MSYS style.
9846 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9849 # Convert to unix form, then to dos form, then back to unix form
9850 # but this time dos style (no spaces!) so that the unix form looks
9851 # like /cygdrive/c/PROGRA~1:/cygdr...
9852 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9853 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9854 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9857 sys_lib_search_path_spec="$LIB"
9858 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9859 # It is most probably a Windows format PATH.
9860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9864 # FIXME: find the short name or the path components, as spaces are
9865 # common. (e.g. "Program Files" -> "PROGRA~1")
9869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9870 postinstall_cmds='base_file=`basename \${file}`~
9871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9872 dldir=$destdir/`dirname \$dlpath`~
9873 test -d \$dldir || mkdir -p \$dldir~
9874 $install_prog $dir/$dlname \$dldir/$dlname'
9875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9876 dlpath=$dir/\$dldll~
9878 shlibpath_overrides_runpath=yes
9879 dynamic_linker='Win32 link.exe'
9883 # Assume MSVC wrapper
9884 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9885 dynamic_linker='Win32 ld.exe'
9888 # FIXME: first we should search . and the directory the executable is in
9892 darwin* | rhapsody*)
9893 dynamic_linker="$host_os dyld"
9897 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9898 soname_spec='${libname}${release}${major}$shared_ext'
9899 shlibpath_overrides_runpath=yes
9900 shlibpath_var=DYLD_LIBRARY_PATH
9901 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9903 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9904 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9908 version_type=linux # correct to gnu/linux during the next big refactor
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 shlibpath_var=LD_LIBRARY_PATH
9916 freebsd* | dragonfly*)
9917 # DragonFly does not have aout. When/if they implement a new
9918 # versioning mechanism, adjust this.
9919 if test -x /usr/bin/objformat; then
9920 objformat=`/usr/bin/objformat`
9923 freebsd[23].*) objformat=aout ;;
9927 version_type=freebsd-$objformat
9928 case $version_type in
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9939 shlibpath_var=LD_LIBRARY_PATH
9942 shlibpath_overrides_runpath=yes
9944 freebsd3.[01]* | freebsdelf3.[01]*)
9945 shlibpath_overrides_runpath=yes
9946 hardcode_into_libs=yes
9948 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9949 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9950 shlibpath_overrides_runpath=no
9951 hardcode_into_libs=yes
9953 *) # from 4.6 on, and DragonFly
9954 shlibpath_overrides_runpath=yes
9955 hardcode_into_libs=yes
9961 version_type=linux # correct to gnu/linux during the next big refactor
9964 dynamic_linker="$host_os runtime_loader"
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LIBRARY_PATH
9968 shlibpath_overrides_runpath=yes
9969 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9970 hardcode_into_libs=yes
9973 hpux9* | hpux10* | hpux11*)
9974 # Give a soname corresponding to the major version so that dld.sl refuses to
9975 # link against other versions.
9982 hardcode_into_libs=yes
9983 dynamic_linker="$host_os dld.so"
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987 soname_spec='${libname}${release}${shared_ext}$major'
9988 if test "X$HPUX_IA64_MODE" = X32; then
9989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9991 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9997 hardcode_into_libs=yes
9998 dynamic_linker="$host_os dld.sl"
9999 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10008 dynamic_linker="$host_os dld.sl"
10009 shlibpath_var=SHLIB_PATH
10010 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012 soname_spec='${libname}${release}${shared_ext}$major'
10015 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10016 postinstall_cmds='chmod 555 $lib'
10017 # or fails outright, so override atomically:
10018 install_override_mode=555
10022 version_type=linux # correct to gnu/linux during the next big refactor
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10026 soname_spec='${libname}${release}${shared_ext}$major'
10027 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=no
10030 hardcode_into_libs=yes
10033 irix5* | irix6* | nonstopux*)
10035 nonstopux*) version_type=nonstopux ;;
10037 if test "$lt_cv_prog_gnu_ld" = yes; then
10038 version_type=linux # correct to gnu/linux during the next big refactor
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10048 irix5* | nonstopux*)
10049 libsuff= shlibsuff=
10052 case $LD in # libtool.m4 will add one of these switches to LD
10053 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10054 libsuff= shlibsuff= libmagic=32-bit;;
10055 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10056 libsuff=32 shlibsuff=N32 libmagic=N32;;
10057 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10058 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10059 *) libsuff= shlibsuff= libmagic=never-match;;
10063 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10064 shlibpath_overrides_runpath=no
10065 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10066 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10067 hardcode_into_libs=yes
10070 # No shared lib support for Linux oldld, aout, or coff.
10071 linux*oldld* | linux*aout* | linux*coff*)
10075 # This must be glibc/ELF.
10076 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10077 version_type=linux # correct to gnu/linux during the next big refactor
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10083 shlibpath_var=LD_LIBRARY_PATH
10084 shlibpath_overrides_runpath=no
10086 # Some binutils ld are patched to set DT_RUNPATH
10087 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10088 $as_echo_n "(cached) " >&6
10090 lt_cv_shlibpath_overrides_runpath=no
10091 save_LDFLAGS=$LDFLAGS
10092 save_libdir=$libdir
10093 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10094 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10106 if ac_fn_c_try_link "$LINENO"; then :
10107 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10108 lt_cv_shlibpath_overrides_runpath=yes
10111 rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113 LDFLAGS=$save_LDFLAGS
10114 libdir=$save_libdir
10118 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10120 # This implies no fast_install, which is unacceptable.
10121 # Some rework will be needed to allow for fast_install
10122 # before this can be enabled.
10123 hardcode_into_libs=yes
10125 # Append ld.so.conf contents to the search path
10126 if test -f /etc/ld.so.conf; then
10127 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' ' '`
10128 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10131 # We used to test for /lib/ld.so.1 and disable shared libraries on
10132 # powerpc, because MkLinux only supported shared libraries with the
10133 # GNU dynamic linker. Since this was broken with cross compilers,
10134 # most powerpc-linux boxes support dynamic linking these days and
10135 # people can always --disable-shared, the test was removed, and we
10136 # assume the GNU/Linux dynamic linker is in use.
10137 dynamic_linker='GNU/Linux ld.so'
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 shlibpath_overrides_runpath=no
10148 hardcode_into_libs=yes
10149 dynamic_linker='NetBSD ld.elf_so'
10156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10159 dynamic_linker='NetBSD (a.out) ld.so'
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 dynamic_linker='NetBSD ld.elf_so'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=yes
10167 hardcode_into_libs=yes
10171 version_type=linux # correct to gnu/linux during the next big refactor
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath=no
10185 hardcode_into_libs=yes
10186 dynamic_linker='ldqnx.so'
10191 sys_lib_dlsearch_path_spec="/usr/lib"
10193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10195 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10196 *) need_version=no ;;
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10203 openbsd2.[89] | openbsd2.[89].*)
10204 shlibpath_overrides_runpath=no
10207 shlibpath_overrides_runpath=yes
10211 shlibpath_overrides_runpath=yes
10216 libname_spec='$name'
10219 library_names_spec='$libname${shared_ext} $libname.a'
10220 dynamic_linker='OS/2 ld.exe'
10221 shlibpath_var=LIBPATH
10224 osf3* | osf4* | osf5*)
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10240 version_type=linux # correct to gnu/linux during the next big refactor
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=yes
10247 hardcode_into_libs=yes
10248 # ldd complains unless libraries are executable
10249 postinstall_cmds='chmod +x $lib'
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=yes
10258 if test "$with_gnu_ld" = yes; then
10265 version_type=linux # correct to gnu/linux during the next big refactor
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 case $host_vendor in
10271 shlibpath_overrides_runpath=no
10273 runpath_var=LD_RUN_PATH
10281 shlibpath_overrides_runpath=no
10282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10288 if test -d /usr/nec ;then
10289 version_type=linux # correct to gnu/linux during the next big refactor
10290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10291 soname_spec='$libname${shared_ext}.$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10297 version_type=freebsd-elf
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10305 if test "$with_gnu_ld" = yes; then
10306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10311 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10315 sys_lib_dlsearch_path_spec='/usr/lib'
10319 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10320 version_type=linux # correct to gnu/linux during the next big refactor
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=no
10326 hardcode_into_libs=yes
10330 version_type=linux # correct to gnu/linux during the next big refactor
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 shlibpath_var=LD_LIBRARY_PATH
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10341 $as_echo "$dynamic_linker" >&6; }
10342 test "$dynamic_linker" = no && can_build_shared=no
10344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10345 if test "$GCC" = yes; then
10346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10349 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10350 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10352 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10353 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10448 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10450 if test -n "$hardcode_libdir_flag_spec" ||
10451 test -n "$runpath_var" ||
10452 test "X$hardcode_automatic" = "Xyes" ; then
10454 # We can hardcode non-existent directories.
10455 if test "$hardcode_direct" != no &&
10456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10457 # have to relink, otherwise we might link with an installed library
10458 # when we should be linking with a yet-to-be-installed one
10459 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10460 test "$hardcode_minus_L" != no; then
10461 # Linking always hardcodes the temporary library directory.
10462 hardcode_action=relink
10464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10465 hardcode_action=immediate
10468 # We cannot hardcode anything, or else we can only hardcode existing
10470 hardcode_action=unsupported
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10473 $as_echo "$hardcode_action" >&6; }
10475 if test "$hardcode_action" = relink ||
10476 test "$inherit_rpath" = yes; then
10477 # Fast installation is not supported
10478 enable_fast_install=no
10479 elif test "$shlibpath_overrides_runpath" = yes ||
10480 test "$enable_shared" = no; then
10481 # Fast installation is not necessary
10482 enable_fast_install=needless
10490 if test "x$enable_dlopen" != xyes; then
10491 enable_dlopen=unknown
10492 enable_dlopen_self=unknown
10493 enable_dlopen_self_static=unknown
10500 lt_cv_dlopen="load_add_on"
10502 lt_cv_dlopen_self=yes
10505 mingw* | pw32* | cegcc*)
10506 lt_cv_dlopen="LoadLibrary"
10511 lt_cv_dlopen="dlopen"
10516 # if libdl is installed we need to link against it
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10518 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10519 if ${ac_cv_lib_dl_dlopen+:} false; then :
10520 $as_echo_n "(cached) " >&6
10522 ac_check_lib_save_LIBS=$LIBS
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10527 /* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10542 if ac_fn_c_try_link "$LINENO"; then :
10543 ac_cv_lib_dl_dlopen=yes
10545 ac_cv_lib_dl_dlopen=no
10547 rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10549 LIBS=$ac_check_lib_save_LIBS
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10552 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10553 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10557 lt_cv_dlopen="dyld"
10559 lt_cv_dlopen_self=yes
10566 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10567 if test "x$ac_cv_func_shl_load" = xyes; then :
10568 lt_cv_dlopen="shl_load"
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10571 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10572 if ${ac_cv_lib_dld_shl_load+:} false; then :
10573 $as_echo_n "(cached) " >&6
10575 ac_check_lib_save_LIBS=$LIBS
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h. */
10580 /* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10590 return shl_load ();
10595 if ac_fn_c_try_link "$LINENO"; then :
10596 ac_cv_lib_dld_shl_load=yes
10598 ac_cv_lib_dld_shl_load=no
10600 rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10605 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10606 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10607 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10609 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10610 if test "x$ac_cv_func_dlopen" = xyes; then :
10611 lt_cv_dlopen="dlopen"
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10614 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10615 if ${ac_cv_lib_dl_dlopen+:} false; then :
10616 $as_echo_n "(cached) " >&6
10618 ac_check_lib_save_LIBS=$LIBS
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10623 /* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
10638 if ac_fn_c_try_link "$LINENO"; then :
10639 ac_cv_lib_dl_dlopen=yes
10641 ac_cv_lib_dl_dlopen=no
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10648 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10649 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10653 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10654 if ${ac_cv_lib_svld_dlopen+:} false; then :
10655 $as_echo_n "(cached) " >&6
10657 ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-lsvld $LIBS"
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10677 if ac_fn_c_try_link "$LINENO"; then :
10678 ac_cv_lib_svld_dlopen=yes
10680 ac_cv_lib_svld_dlopen=no
10682 rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 LIBS=$ac_check_lib_save_LIBS
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10687 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10688 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10692 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10693 if ${ac_cv_lib_dld_dld_link+:} false; then :
10694 $as_echo_n "(cached) " >&6
10696 ac_check_lib_save_LIBS=$LIBS
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10701 /* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
10703 builtin and then its argument prototype would still apply. */
10711 return dld_link ();
10716 if ac_fn_c_try_link "$LINENO"; then :
10717 ac_cv_lib_dld_dld_link=yes
10719 ac_cv_lib_dld_dld_link=no
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 LIBS=$ac_check_lib_save_LIBS
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10726 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10727 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10728 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10749 if test "x$lt_cv_dlopen" != xno; then
10755 case $lt_cv_dlopen in
10757 save_CPPFLAGS="$CPPFLAGS"
10758 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10760 save_LDFLAGS="$LDFLAGS"
10761 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10764 LIBS="$lt_cv_dlopen_libs $LIBS"
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10767 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10768 if ${lt_cv_dlopen_self+:} false; then :
10769 $as_echo_n "(cached) " >&6
10771 if test "$cross_compiling" = yes; then :
10772 lt_cv_dlopen_self=cross
10774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10775 lt_status=$lt_dlunknown
10776 cat > conftest.$ac_ext <<_LT_EOF
10777 #line $LINENO "configure"
10778 #include "confdefs.h"
10787 # define LT_DLGLOBAL RTLD_GLOBAL
10790 # define LT_DLGLOBAL DL_GLOBAL
10792 # define LT_DLGLOBAL 0
10796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10797 find out it does not work in some platform. */
10798 #ifndef LT_DLLAZY_OR_NOW
10800 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10803 # define LT_DLLAZY_OR_NOW DL_LAZY
10806 # define LT_DLLAZY_OR_NOW RTLD_NOW
10809 # define LT_DLLAZY_OR_NOW DL_NOW
10811 # define LT_DLLAZY_OR_NOW 0
10818 /* When -fvisbility=hidden is used, assume the code has been annotated
10819 correspondingly for the symbols needed. */
10820 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10821 int fnord () __attribute__((visibility("default")));
10824 int fnord () { return 42; }
10827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10828 int status = $lt_dlunknown;
10832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10835 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10836 else puts (dlerror ());
10838 /* dlclose (self); */
10846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10847 (eval $ac_link) 2>&5
10849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10851 (./conftest; exit; ) >&5 2>/dev/null
10853 case x$lt_status in
10854 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10855 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10856 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10859 # compilation failed
10860 lt_cv_dlopen_self=no
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10868 $as_echo "$lt_cv_dlopen_self" >&6; }
10870 if test "x$lt_cv_dlopen_self" = xyes; then
10871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10873 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10874 if ${lt_cv_dlopen_self_static+:} false; then :
10875 $as_echo_n "(cached) " >&6
10877 if test "$cross_compiling" = yes; then :
10878 lt_cv_dlopen_self_static=cross
10880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10881 lt_status=$lt_dlunknown
10882 cat > conftest.$ac_ext <<_LT_EOF
10883 #line $LINENO "configure"
10884 #include "confdefs.h"
10893 # define LT_DLGLOBAL RTLD_GLOBAL
10896 # define LT_DLGLOBAL DL_GLOBAL
10898 # define LT_DLGLOBAL 0
10902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10903 find out it does not work in some platform. */
10904 #ifndef LT_DLLAZY_OR_NOW
10906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10909 # define LT_DLLAZY_OR_NOW DL_LAZY
10912 # define LT_DLLAZY_OR_NOW RTLD_NOW
10915 # define LT_DLLAZY_OR_NOW DL_NOW
10917 # define LT_DLLAZY_OR_NOW 0
10924 /* When -fvisbility=hidden is used, assume the code has been annotated
10925 correspondingly for the symbols needed. */
10926 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10927 int fnord () __attribute__((visibility("default")));
10930 int fnord () { return 42; }
10933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934 int status = $lt_dlunknown;
10938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10941 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10942 else puts (dlerror ());
10944 /* dlclose (self); */
10952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10953 (eval $ac_link) 2>&5
10955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10957 (./conftest; exit; ) >&5 2>/dev/null
10959 case x$lt_status in
10960 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10961 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10962 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10965 # compilation failed
10966 lt_cv_dlopen_self_static=no
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10974 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10977 CPPFLAGS="$save_CPPFLAGS"
10978 LDFLAGS="$save_LDFLAGS"
10983 case $lt_cv_dlopen_self in
10984 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10985 *) enable_dlopen_self=unknown ;;
10988 case $lt_cv_dlopen_self_static in
10989 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10990 *) enable_dlopen_self_static=unknown ;;
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11013 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11014 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11015 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11016 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018 $as_echo "yes" >&6; }
11020 # FIXME - insert some real tests, host_os isn't really good enough
11023 if test -n "$STRIP" ; then
11024 striplib="$STRIP -x"
11025 old_striplib="$STRIP -S"
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027 $as_echo "yes" >&6; }
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 $as_echo "no" >&6; }
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11051 # Report which library types will actually be built
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11053 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11055 $as_echo "$can_build_shared" >&6; }
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11058 $as_echo_n "checking whether to build shared libraries... " >&6; }
11059 test "$can_build_shared" = "no" && enable_shared=no
11061 # On AIX, shared libraries and static libraries use the same namespace, and
11062 # are all built from PIC.
11065 test "$enable_shared" = yes && enable_static=no
11066 if test -n "$RANLIB"; then
11067 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11068 postinstall_cmds='$RANLIB $lib'
11073 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11074 test "$enable_shared" = yes && enable_static=no
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11079 $as_echo "$enable_shared" >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11082 $as_echo_n "checking whether to build static libraries... " >&6; }
11083 # Make sure either enable_shared or enable_static is yes.
11084 test "$enable_shared" = yes || enable_static=yes
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11086 $as_echo "$enable_static" >&6; }
11093 ac_cpp='$CPP $CPPFLAGS'
11094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11114 ac_config_commands="$ac_config_commands libtool"
11119 # Only expand once:
11128 ac_cpp='$CPP $CPPFLAGS'
11129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11132 if test -n "$ac_tool_prefix"; then
11133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if ${ac_cv_prog_CC+:} false; then :
11138 $as_echo_n "(cached) " >&6
11140 if test -n "$CC"; then
11141 ac_cv_prog_CC="$CC" # Let the user override the test.
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11150 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 if test -n "$CC"; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11163 $as_echo "$CC" >&6; }
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 $as_echo "no" >&6; }
11171 if test -z "$ac_cv_prog_CC"; then
11173 # Extract the first word of "gcc", so it can be a program name with args.
11174 set dummy gcc; ac_word=$2
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176 $as_echo_n "checking for $ac_word... " >&6; }
11177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11178 $as_echo_n "(cached) " >&6
11180 if test -n "$ac_ct_CC"; then
11181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_ac_ct_CC="gcc"
11191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11201 if test -n "$ac_ct_CC"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11203 $as_echo "$ac_ct_CC" >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206 $as_echo "no" >&6; }
11209 if test "x$ac_ct_CC" = x; then
11212 case $cross_compiling:$ac_tool_warned in
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11216 ac_tool_warned=yes ;;
11221 CC="$ac_cv_prog_CC"
11224 if test -z "$CC"; then
11225 if test -n "$ac_tool_prefix"; then
11226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11227 set dummy ${ac_tool_prefix}cc; ac_word=$2
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229 $as_echo_n "checking for $ac_word... " >&6; }
11230 if ${ac_cv_prog_CC+:} false; then :
11231 $as_echo_n "(cached) " >&6
11233 if test -n "$CC"; then
11234 ac_cv_prog_CC="$CC" # Let the user override the test.
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in $PATH
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11243 ac_cv_prog_CC="${ac_tool_prefix}cc"
11244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 if test -n "$CC"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11256 $as_echo "$CC" >&6; }
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11265 if test -z "$CC"; then
11266 # Extract the first word of "cc", so it can be a program name with args.
11267 set dummy cc; ac_word=$2
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 $as_echo_n "checking for $ac_word... " >&6; }
11270 if ${ac_cv_prog_CC+:} false; then :
11271 $as_echo_n "(cached) " >&6
11273 if test -n "$CC"; then
11274 ac_cv_prog_CC="$CC" # Let the user override the test.
11276 ac_prog_rejected=no
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
11283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11285 ac_prog_rejected=yes
11289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11296 if test $ac_prog_rejected = yes; then
11297 # We found a bogon in the path, so make sure we never use it.
11298 set dummy $ac_cv_prog_CC
11300 if test $# != 0; then
11301 # We chose a different compiler from the bogus one.
11302 # However, it has the same basename, so the bogon will be chosen
11303 # first if we set CC to just the basename; use the full file name.
11305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11311 if test -n "$CC"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11313 $as_echo "$CC" >&6; }
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11321 if test -z "$CC"; then
11322 if test -n "$ac_tool_prefix"; then
11323 for ac_prog in cl.exe
11325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if ${ac_cv_prog_CC+:} false; then :
11330 $as_echo_n "(cached) " >&6
11332 if test -n "$CC"; then
11333 ac_cv_prog_CC="$CC" # Let the user override the test.
11335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 for as_dir in $PATH
11339 test -z "$as_dir" && as_dir=.
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11353 if test -n "$CC"; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11355 $as_echo "$CC" >&6; }
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11362 test -n "$CC" && break
11365 if test -z "$CC"; then
11367 for ac_prog in cl.exe
11369 # Extract the first word of "$ac_prog", so it can be a program name with args.
11370 set dummy $ac_prog; ac_word=$2
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372 $as_echo_n "checking for $ac_word... " >&6; }
11373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11374 $as_echo_n "(cached) " >&6
11376 if test -n "$ac_ct_CC"; then
11377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11380 for as_dir in $PATH
11383 test -z "$as_dir" && as_dir=.
11384 for ac_exec_ext in '' $ac_executable_extensions; do
11385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11386 ac_cv_prog_ac_ct_CC="$ac_prog"
11387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11397 if test -n "$ac_ct_CC"; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11399 $as_echo "$ac_ct_CC" >&6; }
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11406 test -n "$ac_ct_CC" && break
11409 if test "x$ac_ct_CC" = x; then
11412 case $cross_compiling:$ac_tool_warned in
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11416 ac_tool_warned=yes ;;
11425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11427 as_fn_error $? "no acceptable C compiler found in \$PATH
11428 See \`config.log' for more details" "$LINENO" 5; }
11430 # Provide some information about the compiler.
11431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11434 for ac_option in --version -v -V -qversion; do
11435 { { ac_try="$ac_compiler $ac_option >&5"
11436 case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11441 $as_echo "$ac_try_echo"; } >&5
11442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11444 if test -s conftest.err; then
11446 ... rest of stderr output deleted ...
11447 10q' conftest.err >conftest.er1
11448 cat conftest.er1 >&5
11450 rm -f conftest.er1 conftest.err
11451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11452 test $ac_status = 0; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11456 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11457 if ${ac_cv_c_compiler_gnu+:} false; then :
11458 $as_echo_n "(cached) " >&6
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11474 if ac_fn_c_try_compile "$LINENO"; then :
11475 ac_compiler_gnu=yes
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11484 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11485 if test $ac_compiler_gnu = yes; then
11490 ac_test_CFLAGS=${CFLAGS+set}
11491 ac_save_CFLAGS=$CFLAGS
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11493 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11494 if ${ac_cv_prog_cc_g+:} false; then :
11495 $as_echo_n "(cached) " >&6
11497 ac_save_c_werror_flag=$ac_c_werror_flag
11498 ac_c_werror_flag=yes
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11512 if ac_fn_c_try_compile "$LINENO"; then :
11513 ac_cv_prog_cc_g=yes
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11527 if ac_fn_c_try_compile "$LINENO"; then :
11530 ac_c_werror_flag=$ac_save_c_werror_flag
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11543 if ac_fn_c_try_compile "$LINENO"; then :
11544 ac_cv_prog_cc_g=yes
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551 ac_c_werror_flag=$ac_save_c_werror_flag
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11554 $as_echo "$ac_cv_prog_cc_g" >&6; }
11555 if test "$ac_test_CFLAGS" = set; then
11556 CFLAGS=$ac_save_CFLAGS
11557 elif test $ac_cv_prog_cc_g = yes; then
11558 if test "$GCC" = yes; then
11564 if test "$GCC" = yes; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11572 if ${ac_cv_prog_cc_c89+:} false; then :
11573 $as_echo_n "(cached) " >&6
11575 ac_cv_prog_cc_c89=no
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11579 #include <stdarg.h>
11582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11583 struct buf { int x; };
11584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11585 static char *e (p, i)
11591 static char *f (char * (*g) (char **, int), char **p, ...)
11596 s = g (p, va_arg (v,int));
11601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11602 function prototypes and stuff, but not '\xHH' hex character constants.
11603 These don't provoke an error unfortunately, instead are silently treated
11604 as 'x'. The following induces an error, until -std is added to get
11605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11606 array size at least. It's necessary to write '\x00'==0 to get something
11607 that's true only with -std. */
11608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11611 inside strings and character constants. */
11613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11615 int test (int i, double x);
11616 struct s1 {int (*f) (int a);};
11617 struct s2 {int (*f) (double a);};
11618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11632 CC="$ac_save_CC $ac_arg"
11633 if ac_fn_c_try_compile "$LINENO"; then :
11634 ac_cv_prog_cc_c89=$ac_arg
11636 rm -f core conftest.err conftest.$ac_objext
11637 test "x$ac_cv_prog_cc_c89" != "xno" && break
11639 rm -f conftest.$ac_ext
11644 case "x$ac_cv_prog_cc_c89" in
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11647 $as_echo "none needed" >&6; } ;;
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11650 $as_echo "unsupported" >&6; } ;;
11652 CC="$CC $ac_cv_prog_cc_c89"
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11656 if test "x$ac_cv_prog_cc_c89" != xno; then :
11661 ac_cpp='$CPP $CPPFLAGS'
11662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11667 ac_cpp='$CXXCPP $CPPFLAGS'
11668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11671 if test -z "$CXX"; then
11672 if test -n "$CCC"; then
11675 if test -n "$ac_tool_prefix"; then
11676 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681 $as_echo_n "checking for $ac_word... " >&6; }
11682 if ${ac_cv_prog_CXX+:} false; then :
11683 $as_echo_n "(cached) " >&6
11685 if test -n "$CXX"; then
11686 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689 for as_dir in $PATH
11692 test -z "$as_dir" && as_dir=.
11693 for ac_exec_ext in '' $ac_executable_extensions; do
11694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11695 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 CXX=$ac_cv_prog_CXX
11706 if test -n "$CXX"; then
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11708 $as_echo "$CXX" >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11715 test -n "$CXX" && break
11718 if test -z "$CXX"; then
11720 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11722 # Extract the first word of "$ac_prog", so it can be a program name with args.
11723 set dummy $ac_prog; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11727 $as_echo_n "(cached) " >&6
11729 if test -n "$ac_ct_CXX"; then
11730 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11739 ac_cv_prog_ac_ct_CXX="$ac_prog"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11750 if test -n "$ac_ct_CXX"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11752 $as_echo "$ac_ct_CXX" >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11759 test -n "$ac_ct_CXX" && break
11762 if test "x$ac_ct_CXX" = x; then
11765 case $cross_compiling:$ac_tool_warned in
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11769 ac_tool_warned=yes ;;
11777 # Provide some information about the compiler.
11778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11781 for ac_option in --version -v -V -qversion; do
11782 { { ac_try="$ac_compiler $ac_option >&5"
11783 case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11788 $as_echo "$ac_try_echo"; } >&5
11789 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11791 if test -s conftest.err; then
11793 ... rest of stderr output deleted ...
11794 10q' conftest.err >conftest.er1
11795 cat conftest.er1 >&5
11797 rm -f conftest.er1 conftest.err
11798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799 test $ac_status = 0; }
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11803 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11804 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11805 $as_echo_n "(cached) " >&6
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11821 if ac_fn_cxx_try_compile "$LINENO"; then :
11822 ac_compiler_gnu=yes
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11831 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11832 if test $ac_compiler_gnu = yes; then
11837 ac_test_CXXFLAGS=${CXXFLAGS+set}
11838 ac_save_CXXFLAGS=$CXXFLAGS
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11840 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11841 if ${ac_cv_prog_cxx_g+:} false; then :
11842 $as_echo_n "(cached) " >&6
11844 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11845 ac_cxx_werror_flag=yes
11846 ac_cv_prog_cxx_g=no
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11859 if ac_fn_cxx_try_compile "$LINENO"; then :
11860 ac_cv_prog_cxx_g=yes
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11874 if ac_fn_cxx_try_compile "$LINENO"; then :
11877 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11890 if ac_fn_cxx_try_compile "$LINENO"; then :
11891 ac_cv_prog_cxx_g=yes
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11901 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11902 if test "$ac_test_CXXFLAGS" = set; then
11903 CXXFLAGS=$ac_save_CXXFLAGS
11904 elif test $ac_cv_prog_cxx_g = yes; then
11905 if test "$GXX" = yes; then
11911 if test "$GXX" = yes; then
11918 ac_cpp='$CPP $CPPFLAGS'
11919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11925 func_stripname_cnf ()
11928 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11929 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11931 } # func_stripname_cnf
11933 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11934 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11935 (test "X$CXX" != "Xg++"))) ; then
11937 ac_cpp='$CXXCPP $CPPFLAGS'
11938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11942 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11943 if test -z "$CXXCPP"; then
11944 if ${ac_cv_prog_CXXCPP+:} false; then :
11945 $as_echo_n "(cached) " >&6
11947 # Double quotes because CXXCPP needs to be expanded
11948 for CXXCPP in "$CXX -E" "/lib/cpp"
11950 ac_preproc_ok=false
11951 for ac_cxx_preproc_warn_flag in '' yes
11953 # Use a header file that comes with gcc, so configuring glibc
11954 # with a fresh cross-compiler works.
11955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11956 # <limits.h> exists even on freestanding compilers.
11957 # On the NeXT, cc -E runs the code through the compiler's parser,
11958 # not just through cpp. "Syntax error" is here to catch this case.
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11962 # include <limits.h>
11964 # include <assert.h>
11968 if ac_fn_cxx_try_cpp "$LINENO"; then :
11971 # Broken: fails on valid input.
11974 rm -f conftest.err conftest.i conftest.$ac_ext
11976 # OK, works on sane cases. Now check whether nonexistent headers
11977 # can be detected and how.
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980 #include <ac_nonexistent.h>
11982 if ac_fn_cxx_try_cpp "$LINENO"; then :
11983 # Broken: success on invalid input.
11986 # Passes both tests.
11990 rm -f conftest.err conftest.i conftest.$ac_ext
11993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11994 rm -f conftest.i conftest.err conftest.$ac_ext
11995 if $ac_preproc_ok; then :
12000 ac_cv_prog_CXXCPP=$CXXCPP
12003 CXXCPP=$ac_cv_prog_CXXCPP
12005 ac_cv_prog_CXXCPP=$CXXCPP
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12008 $as_echo "$CXXCPP" >&6; }
12009 ac_preproc_ok=false
12010 for ac_cxx_preproc_warn_flag in '' yes
12012 # Use a header file that comes with gcc, so configuring glibc
12013 # with a fresh cross-compiler works.
12014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12015 # <limits.h> exists even on freestanding compilers.
12016 # On the NeXT, cc -E runs the code through the compiler's parser,
12017 # not just through cpp. "Syntax error" is here to catch this case.
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12021 # include <limits.h>
12023 # include <assert.h>
12027 if ac_fn_cxx_try_cpp "$LINENO"; then :
12030 # Broken: fails on valid input.
12033 rm -f conftest.err conftest.i conftest.$ac_ext
12035 # OK, works on sane cases. Now check whether nonexistent headers
12036 # can be detected and how.
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12039 #include <ac_nonexistent.h>
12041 if ac_fn_cxx_try_cpp "$LINENO"; then :
12042 # Broken: success on invalid input.
12045 # Passes both tests.
12049 rm -f conftest.err conftest.i conftest.$ac_ext
12052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12053 rm -f conftest.i conftest.err conftest.$ac_ext
12054 if $ac_preproc_ok; then :
12057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12059 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12060 See \`config.log' for more details" "$LINENO" 5; }
12064 ac_cpp='$CPP $CPPFLAGS'
12065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12070 _lt_caught_CXX_error=yes
12074 ac_cpp='$CXXCPP $CPPFLAGS'
12075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12079 archive_cmds_need_lc_CXX=no
12080 allow_undefined_flag_CXX=
12081 always_export_symbols_CXX=no
12082 archive_expsym_cmds_CXX=
12083 compiler_needs_object_CXX=no
12084 export_dynamic_flag_spec_CXX=
12085 hardcode_direct_CXX=no
12086 hardcode_direct_absolute_CXX=no
12087 hardcode_libdir_flag_spec_CXX=
12088 hardcode_libdir_separator_CXX=
12089 hardcode_minus_L_CXX=no
12090 hardcode_shlibpath_var_CXX=unsupported
12091 hardcode_automatic_CXX=no
12092 inherit_rpath_CXX=no
12094 module_expsym_cmds_CXX=
12095 link_all_deplibs_CXX=unknown
12096 old_archive_cmds_CXX=$old_archive_cmds
12097 reload_flag_CXX=$reload_flag
12098 reload_cmds_CXX=$reload_cmds
12099 no_undefined_flag_CXX=
12100 whole_archive_flag_spec_CXX=
12101 enable_shared_with_static_runtimes_CXX=no
12103 # Source file extension for C++ test sources.
12106 # Object file extension for compiled C++ test sources.
12110 # No sense in running all these tests if we already determined that
12111 # the CXX compiler isn't working. Some variables (like enable_shared)
12112 # are currently assumed to apply to all compilers on this platform,
12113 # and will be corrupted by setting them based on a non-working compiler.
12114 if test "$_lt_caught_CXX_error" != yes; then
12115 # Code to be used in simple compile tests
12116 lt_simple_compile_test_code="int some_variable = 0;"
12118 # Code to be used in simple link tests
12119 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12121 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12128 # If no C compiler was specified, use CC.
12131 # If no C compiler flags were specified, use CFLAGS.
12132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12134 # Allow CC to be a program name with arguments.
12138 # save warnings/boilerplate of simple test code
12139 ac_outfile=conftest.$ac_objext
12140 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12142 _lt_compiler_boilerplate=`cat conftest.err`
12145 ac_outfile=conftest.$ac_objext
12146 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12147 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12148 _lt_linker_boilerplate=`cat conftest.err`
12152 # Allow CC to be a program name with arguments.
12154 lt_save_CFLAGS=$CFLAGS
12158 lt_save_with_gnu_ld=$with_gnu_ld
12159 lt_save_path_LD=$lt_cv_path_LD
12160 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12161 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12163 $as_unset lt_cv_prog_gnu_ld
12165 if test -n "${lt_cv_path_LDCXX+set}"; then
12166 lt_cv_path_LD=$lt_cv_path_LDCXX
12168 $as_unset lt_cv_path_LD
12170 test -z "${LDCXX+set}" || LD=$LDCXX
12175 for cc_temp in $compiler""; do
12177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12183 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12186 if test -n "$compiler"; then
12187 # We don't want -fno-exception when compiling C++ code, so set the
12188 # no_builtin_flag separately
12189 if test "$GXX" = yes; then
12190 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12192 lt_prog_compiler_no_builtin_flag_CXX=
12195 if test "$GXX" = yes; then
12196 # Set up default GNU C++ configuration
12200 # Check whether --with-gnu-ld was given.
12201 if test "${with_gnu_ld+set}" = set; then :
12202 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12208 if test "$GCC" = yes; then
12209 # Check if gcc -print-prog-name=ld gives a path.
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12211 $as_echo_n "checking for ld used by $CC... " >&6; }
12214 # gcc leaves a trailing carriage return which upsets mingw
12215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12220 # Accept absolute paths.
12222 re_direlt='/[^/][^/]*/\.\./'
12223 # Canonicalize the pathname of ld
12224 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12225 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12226 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12228 test -z "$LD" && LD="$ac_prog"
12231 # If it fails, then pretend we aren't using GCC.
12235 # If it is relative, then search for the first ld in PATH.
12236 with_gnu_ld=unknown
12239 elif test "$with_gnu_ld" = yes; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12241 $as_echo_n "checking for GNU ld... " >&6; }
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12244 $as_echo_n "checking for non-GNU ld... " >&6; }
12246 if ${lt_cv_path_LD+:} false; then :
12247 $as_echo_n "(cached) " >&6
12249 if test -z "$LD"; then
12250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12251 for ac_dir in $PATH; do
12253 test -z "$ac_dir" && ac_dir=.
12254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12255 lt_cv_path_LD="$ac_dir/$ac_prog"
12256 # Check to see if the program is GNU ld. I'd rather use --version,
12257 # but apparently some variants of GNU ld only accept -v.
12258 # Break only if it was the GNU/non-GNU ld that we prefer.
12259 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12260 *GNU* | *'with BFD'*)
12261 test "$with_gnu_ld" != no && break
12264 test "$with_gnu_ld" != yes && break
12271 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12275 LD="$lt_cv_path_LD"
12276 if test -n "$LD"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12278 $as_echo "$LD" >&6; }
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12283 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12285 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12286 if ${lt_cv_prog_gnu_ld+:} false; then :
12287 $as_echo_n "(cached) " >&6
12289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12290 case `$LD -v 2>&1 </dev/null` in
12291 *GNU* | *'with BFD'*)
12292 lt_cv_prog_gnu_ld=yes
12295 lt_cv_prog_gnu_ld=no
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12300 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12301 with_gnu_ld=$lt_cv_prog_gnu_ld
12309 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12310 # archiving commands below assume that GNU ld is being used.
12311 if test "$with_gnu_ld" = yes; then
12312 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12313 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'
12315 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12316 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12318 # If archive_cmds runs LD, not CC, wlarc should be empty
12319 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12320 # investigate it a little bit more. (MM)
12323 # ancient GNU ld didn't support --whole-archive et. al.
12324 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12325 $GREP 'no-whole-archive' > /dev/null; then
12326 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12328 whole_archive_flag_spec_CXX=
12334 # A generic and very simple default shared library creation
12335 # command for GNU C++ for the case where it uses the native
12336 # linker, instead of GNU ld. If possible, this setting should
12337 # overridden to take advantage of the native linker features on
12338 # the platform it is being used on.
12339 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12342 # Commands to make compiler produce verbose output that lists
12343 # what "hidden" libraries, object files and flags are used when
12344 # linking a shared library.
12345 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12353 # PORTME: fill in a description of your system's C++ link characteristics
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12355 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12359 # FIXME: insert proper C++ library support
12363 if test "$host_cpu" = ia64; then
12364 # On IA64, the linker does run time linking by default, so we don't
12365 # have to do anything special.
12366 aix_use_runtimelinking=no
12367 exp_sym_flag='-Bexport'
12370 aix_use_runtimelinking=no
12372 # Test if we are trying to use run time linking or normal
12373 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12374 # need to do runtime linking.
12375 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12376 for ld_flag in $LDFLAGS; do
12379 aix_use_runtimelinking=yes
12387 exp_sym_flag='-bexport'
12388 no_entry_flag='-bnoentry'
12391 # When large executables or shared objects are built, AIX ld can
12392 # have problems creating the table of contents. If linking a library
12393 # or program results in "error TOC overflow" add -mminimal-toc to
12394 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12395 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12397 archive_cmds_CXX=''
12398 hardcode_direct_CXX=yes
12399 hardcode_direct_absolute_CXX=yes
12400 hardcode_libdir_separator_CXX=':'
12401 link_all_deplibs_CXX=yes
12402 file_list_spec_CXX='${wl}-f,'
12404 if test "$GXX" = yes; then
12405 case $host_os in aix4.[012]|aix4.[012].*)
12406 # We only want to do this on AIX 4.2 and lower, the check
12407 # below for broken collect2 doesn't work under 4.3+
12408 collect2name=`${CC} -print-prog-name=collect2`
12409 if test -f "$collect2name" &&
12410 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12412 # We have reworked collect2
12415 # We have old collect2
12416 hardcode_direct_CXX=unsupported
12417 # It fails to find uninstalled libraries when the uninstalled
12418 # path is not listed in the libpath. Setting hardcode_minus_L
12419 # to unsupported forces relinking
12420 hardcode_minus_L_CXX=yes
12421 hardcode_libdir_flag_spec_CXX='-L$libdir'
12422 hardcode_libdir_separator_CXX=
12425 shared_flag='-shared'
12426 if test "$aix_use_runtimelinking" = yes; then
12427 shared_flag="$shared_flag "'${wl}-G'
12431 if test "$host_cpu" = ia64; then
12432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12433 # chokes on -Wl,-G. The following line is correct:
12436 if test "$aix_use_runtimelinking" = yes; then
12437 shared_flag='${wl}-G'
12439 shared_flag='${wl}-bM:SRE'
12444 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12445 # It seems that -bexpall does not export symbols beginning with
12446 # underscore (_), so it is better to generate a list of symbols to
12448 always_export_symbols_CXX=yes
12449 if test "$aix_use_runtimelinking" = yes; then
12450 # Warning - without using the other runtime loading flags (-brtl),
12451 # -berok will link without error, but may produce a broken library.
12452 allow_undefined_flag_CXX='-berok'
12453 # Determine the default libpath from the value encoded in an empty
12455 if test "${lt_cv_aix_libpath+set}" = set; then
12456 aix_libpath=$lt_cv_aix_libpath
12458 if ${lt_cv_aix_libpath__CXX+:} false; then :
12459 $as_echo_n "(cached) " >&6
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12472 if ac_fn_cxx_try_link "$LINENO"; then :
12474 lt_aix_libpath_sed='
12475 /Import File Strings/,/^$/ {
12477 s/^0 *\([^ ]*\) *$/\1/
12481 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12482 # Check for a 64-bit object if we didn't find anything.
12483 if test -z "$lt_cv_aix_libpath__CXX"; then
12484 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12487 rm -f core conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489 if test -z "$lt_cv_aix_libpath__CXX"; then
12490 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12495 aix_libpath=$lt_cv_aix_libpath__CXX
12498 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12500 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12502 if test "$host_cpu" = ia64; then
12503 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12504 allow_undefined_flag_CXX="-z nodefs"
12505 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"
12507 # Determine the default libpath from the value encoded in an
12508 # empty executable.
12509 if test "${lt_cv_aix_libpath+set}" = set; then
12510 aix_libpath=$lt_cv_aix_libpath
12512 if ${lt_cv_aix_libpath__CXX+:} false; then :
12513 $as_echo_n "(cached) " >&6
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12526 if ac_fn_cxx_try_link "$LINENO"; then :
12528 lt_aix_libpath_sed='
12529 /Import File Strings/,/^$/ {
12531 s/^0 *\([^ ]*\) *$/\1/
12535 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12536 # Check for a 64-bit object if we didn't find anything.
12537 if test -z "$lt_cv_aix_libpath__CXX"; then
12538 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 if test -z "$lt_cv_aix_libpath__CXX"; then
12544 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12549 aix_libpath=$lt_cv_aix_libpath__CXX
12552 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12553 # Warning - without using the other run time loading flags,
12554 # -berok will link without error, but may produce a broken library.
12555 no_undefined_flag_CXX=' ${wl}-bernotok'
12556 allow_undefined_flag_CXX=' ${wl}-berok'
12557 if test "$with_gnu_ld" = yes; then
12558 # We only use this code for GNU lds that support --whole-archive.
12559 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12561 # Exported symbols can be pulled into shared objects from archives
12562 whole_archive_flag_spec_CXX='$convenience'
12564 archive_cmds_need_lc_CXX=yes
12565 # This is similar to how AIX traditionally builds its shared
12567 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12574 allow_undefined_flag_CXX=unsupported
12575 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12576 # support --undefined. This deserves some investigation. FIXME
12577 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12584 case $cc_basename in
12586 # FIXME: insert proper C++ library support
12592 cygwin* | mingw* | pw32* | cegcc*)
12593 case $GXX,$cc_basename in
12596 # hardcode_libdir_flag_spec is actually meaningless, as there is
12597 # no search path for DLLs.
12598 hardcode_libdir_flag_spec_CXX=' '
12599 allow_undefined_flag_CXX=unsupported
12600 always_export_symbols_CXX=yes
12601 file_list_spec_CXX='@'
12602 # Tell ltmain to make .lib files, not .a files.
12604 # Tell ltmain to make .dll files, not .so files.
12606 # FIXME: Setting linknames here is a bad hack.
12607 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12608 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12609 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12611 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12613 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12615 # The linker will not automatically build a static lib if we build a DLL.
12616 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12617 enable_shared_with_static_runtimes_CXX=yes
12619 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12620 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12621 lt_tool_outputfile="@TOOL_OUTPUT@"~
12622 case $lt_outputfile in
12625 lt_outputfile="$lt_outputfile.exe"
12626 lt_tool_outputfile="$lt_tool_outputfile.exe"
12629 func_to_tool_file "$lt_outputfile"~
12630 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12631 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12632 $RM "$lt_outputfile.manifest";
12637 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12638 # as there is no search path for DLLs.
12639 hardcode_libdir_flag_spec_CXX='-L$libdir'
12640 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12641 allow_undefined_flag_CXX=unsupported
12642 always_export_symbols_CXX=no
12643 enable_shared_with_static_runtimes_CXX=yes
12645 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12646 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'
12647 # If the export-symbols file already is a .def file (1st line
12648 # is EXPORTS), use it as is; otherwise, prepend...
12649 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12650 cp $export_symbols $output_objdir/$soname.def;
12652 echo EXPORTS > $output_objdir/$soname.def;
12653 cat $export_symbols >> $output_objdir/$soname.def;
12655 $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'
12662 darwin* | rhapsody*)
12665 archive_cmds_need_lc_CXX=no
12666 hardcode_direct_CXX=no
12667 hardcode_automatic_CXX=yes
12668 hardcode_shlibpath_var_CXX=unsupported
12669 if test "$lt_cv_ld_force_load" = "yes"; then
12670 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\"`'
12673 whole_archive_flag_spec_CXX=''
12675 link_all_deplibs_CXX=yes
12676 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12677 case $cc_basename in
12678 ifort*) _lt_dar_can_shared=yes ;;
12679 *) _lt_dar_can_shared=$GCC ;;
12681 if test "$_lt_dar_can_shared" = "yes"; then
12682 output_verbose_link_cmd=func_echo_all
12683 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}"
12684 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12685 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}"
12686 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}"
12687 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12688 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}"
12689 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}"
12699 case $cc_basename in
12701 # FIXME: insert proper C++ library support
12705 # Green Hills C++ Compiler
12706 # FIXME: insert proper C++ library support
12710 # FIXME: insert proper C++ library support
12717 # C++ shared libraries reported to be fairly broken before
12723 archive_cmds_need_lc_CXX=no
12726 freebsd* | dragonfly*)
12727 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12733 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12734 link_all_deplibs_CXX=yes
12738 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12739 hardcode_libdir_separator_CXX=:
12740 export_dynamic_flag_spec_CXX='${wl}-E'
12741 hardcode_direct_CXX=yes
12742 hardcode_minus_L_CXX=yes # Not in the search PATH,
12743 # but as the default
12744 # location of the library.
12746 case $cc_basename in
12748 # FIXME: insert proper C++ library support
12752 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12753 # Commands to make compiler produce verbose output that lists
12754 # what "hidden" libraries, object files and flags are used when
12755 # linking a shared library.
12757 # There doesn't appear to be a way to prevent this compiler from
12758 # explicitly linking system object files so we need to strip them
12759 # from the output so that they don't get included in the library
12761 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"'
12764 if test "$GXX" = yes; then
12765 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12767 # FIXME: insert proper C++ library support
12775 if test $with_gnu_ld = no; then
12776 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12777 hardcode_libdir_separator_CXX=:
12783 export_dynamic_flag_spec_CXX='${wl}-E'
12789 hardcode_direct_CXX=no
12790 hardcode_shlibpath_var_CXX=no
12793 hardcode_direct_CXX=yes
12794 hardcode_direct_absolute_CXX=yes
12795 hardcode_minus_L_CXX=yes # Not in the search PATH,
12796 # but as the default
12797 # location of the library.
12801 case $cc_basename in
12803 # FIXME: insert proper C++ library support
12809 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12812 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12815 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12818 # Commands to make compiler produce verbose output that lists
12819 # what "hidden" libraries, object files and flags are used when
12820 # linking a shared library.
12822 # There doesn't appear to be a way to prevent this compiler from
12823 # explicitly linking system object files so we need to strip them
12824 # from the output so that they don't get included in the library
12826 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"'
12829 if test "$GXX" = yes; then
12830 if test $with_gnu_ld = no; then
12833 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12836 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12839 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'
12844 # FIXME: insert proper C++ library support
12852 hardcode_direct_CXX=no
12853 hardcode_shlibpath_var_CXX=no
12854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12855 export_dynamic_flag_spec_CXX='${wl}-E'
12856 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12857 # Instead, shared libraries are loaded at an image base (0x10000000 by
12858 # default) and relocated if they conflict, which is a slow very memory
12859 # consuming and fragmenting process. To avoid this, we pick a random,
12860 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12861 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12862 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'
12863 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'
12866 case $cc_basename in
12869 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'
12871 # Archives containing C++ object files must be created using
12872 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12873 # necessary to make sure instantiated templates are included
12875 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12878 if test "$GXX" = yes; then
12879 if test "$with_gnu_ld" = no; then
12880 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'
12882 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'
12885 link_all_deplibs_CXX=yes
12888 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12889 hardcode_libdir_separator_CXX=:
12890 inherit_rpath_CXX=yes
12893 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12894 case $cc_basename in
12896 # Kuck and Associates, Inc. (KAI) C++ Compiler
12898 # KCC will only create a shared library if the output file
12899 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12900 # to its proper name (with version) after linking.
12901 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'
12902 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'
12903 # Commands to make compiler produce verbose output that lists
12904 # what "hidden" libraries, object files and flags are used when
12905 # linking a shared library.
12907 # There doesn't appear to be a way to prevent this compiler from
12908 # explicitly linking system object files so we need to strip them
12909 # from the output so that they don't get included in the library
12911 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"'
12913 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12914 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12916 # Archives containing C++ object files must be created using
12917 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12918 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12923 # version 8.0 and above of icpc choke on multiply defined symbols
12924 # if we add $predep_objects and $postdep_objects, however 7.1 and
12925 # earlier do not add the objects themselves.
12926 case `$CC -V 2>&1` in
12928 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929 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'
12931 *) # Version 8.0 or newer
12934 ia64*) tmp_idyn=' -i_dynamic';;
12936 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12937 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'
12940 archive_cmds_need_lc_CXX=no
12941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12943 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12946 # Portland Group C++ compiler
12948 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12949 prelink_cmds_CXX='tpldir=Template.dir~
12951 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12952 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12953 old_archive_cmds_CXX='tpldir=Template.dir~
12955 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12956 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12958 archive_cmds_CXX='tpldir=Template.dir~
12960 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12961 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12962 archive_expsym_cmds_CXX='tpldir=Template.dir~
12964 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12965 $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'
12967 *) # Version 6 and above use weak symbols
12968 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12969 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'
12973 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12974 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12975 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'
12979 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12980 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'
12982 runpath_var=LD_RUN_PATH
12983 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12984 hardcode_libdir_separator_CXX=:
12986 # Commands to make compiler produce verbose output that lists
12987 # what "hidden" libraries, object files and flags are used when
12988 # linking a shared library.
12990 # There doesn't appear to be a way to prevent this compiler from
12991 # explicitly linking system object files so we need to strip them
12992 # from the output so that they don't get included in the library
12994 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'
12996 xl* | mpixl* | bgxl*)
12997 # IBM XL 8.0 on PPC, with GNU ld
12998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13000 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13001 if test "x$supports_anon_versioning" = xyes; then
13002 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13004 echo "local: *; };" >> $output_objdir/$libname.ver~
13005 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13009 case `$CC -V 2>&1 | sed 5q` in
13012 no_undefined_flag_CXX=' -zdefs'
13013 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13014 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'
13015 hardcode_libdir_flag_spec_CXX='-R$libdir'
13016 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'
13017 compiler_needs_object_CXX=yes
13019 # Not sure whether something based on
13020 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13022 output_verbose_link_cmd='func_echo_all'
13024 # Archives containing C++ object files must be created using
13025 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13026 # necessary to make sure instantiated templates are included
13028 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13036 # FIXME: insert proper C++ library support
13041 # FIXME: insert proper C++ library support
13046 case $cc_basename in
13048 # FIXME: insert proper C++ library support
13052 # FIXME: insert proper C++ library support
13059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13060 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13062 hardcode_libdir_flag_spec_CXX='-R$libdir'
13063 hardcode_direct_CXX=yes
13064 hardcode_shlibpath_var_CXX=no
13066 # Workaround some broken pre-1.5 toolchains
13067 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13075 # C++ shared libraries are fairly broken
13080 if test -f /usr/libexec/ld.so; then
13081 hardcode_direct_CXX=yes
13082 hardcode_shlibpath_var_CXX=no
13083 hardcode_direct_absolute_CXX=yes
13084 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13087 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13088 export_dynamic_flag_spec_CXX='${wl}-E'
13089 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13091 output_verbose_link_cmd=func_echo_all
13097 osf3* | osf4* | osf5*)
13098 case $cc_basename in
13100 # Kuck and Associates, Inc. (KAI) C++ Compiler
13102 # KCC will only create a shared library if the output file
13103 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13104 # to its proper name (with version) after linking.
13105 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'
13107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13108 hardcode_libdir_separator_CXX=:
13110 # Archives containing C++ object files must be created using
13111 # the KAI C++ compiler.
13113 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13114 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13118 # Rational C++ 2.4.1
13119 # FIXME: insert proper C++ library support
13125 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13126 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'
13127 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13130 allow_undefined_flag_CXX=' -expect_unresolved \*'
13131 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'
13132 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13133 echo "-hidden">> $lib.exp~
13134 $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~
13136 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13140 hardcode_libdir_separator_CXX=:
13142 # Commands to make compiler produce verbose output that lists
13143 # what "hidden" libraries, object files and flags are used when
13144 # linking a shared library.
13146 # There doesn't appear to be a way to prevent this compiler from
13147 # explicitly linking system object files so we need to strip them
13148 # from the output so that they don't get included in the library
13150 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"'
13153 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13154 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13157 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'
13160 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'
13164 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13165 hardcode_libdir_separator_CXX=:
13167 # Commands to make compiler produce verbose output that lists
13168 # what "hidden" libraries, object files and flags are used when
13169 # linking a shared library.
13170 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13173 # FIXME: insert proper C++ library support
13181 # FIXME: insert proper C++ library support
13186 case $cc_basename in
13189 # FIXME: insert proper C++ library support
13194 # FIXME: insert proper C++ library support
13198 # FIXME: insert proper C++ library support
13205 case $cc_basename in
13207 # Sun C++ 4.2, 5.x and Centerline C++
13208 archive_cmds_need_lc_CXX=yes
13209 no_undefined_flag_CXX=' -zdefs'
13210 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13211 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13212 $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'
13214 hardcode_libdir_flag_spec_CXX='-R$libdir'
13215 hardcode_shlibpath_var_CXX=no
13217 solaris2.[0-5] | solaris2.[0-5].*) ;;
13219 # The compiler driver will combine and reorder linker options,
13220 # but understands `-z linker_flag'.
13221 # Supported since Solaris 2.6 (maybe 2.5.1?)
13222 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13225 link_all_deplibs_CXX=yes
13227 output_verbose_link_cmd='func_echo_all'
13229 # Archives containing C++ object files must be created using
13230 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13231 # necessary to make sure instantiated templates are included
13233 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13236 # Green Hills C++ Compiler
13237 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13239 # The C++ compiler must be used to create the archive.
13240 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13243 # GNU C++ compiler with Solaris linker
13244 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13245 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13246 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13247 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13248 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13249 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13251 # Commands to make compiler produce verbose output that lists
13252 # what "hidden" libraries, object files and flags are used when
13253 # linking a shared library.
13254 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13256 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13258 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13259 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13260 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13262 # Commands to make compiler produce verbose output that lists
13263 # what "hidden" libraries, object files and flags are used when
13264 # linking a shared library.
13265 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13268 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13270 solaris2.[0-5] | solaris2.[0-5].*) ;;
13272 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13281 no_undefined_flag_CXX='${wl}-z,text'
13282 archive_cmds_need_lc_CXX=no
13283 hardcode_shlibpath_var_CXX=no
13284 runpath_var='LD_RUN_PATH'
13286 case $cc_basename in
13288 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13289 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13292 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298 sysv5* | sco3.2v5* | sco5v6*)
13299 # Note: We can NOT use -z defs as we might desire, because we do not
13300 # link with -lc, and that would cause any symbols used from libc to
13301 # always be unresolved, which means just about no library would
13302 # ever link correctly. If we're not using GNU ld we use -z text
13303 # though, which does catch some bad symbols but isn't as heavy-handed
13305 no_undefined_flag_CXX='${wl}-z,text'
13306 allow_undefined_flag_CXX='${wl}-z,nodefs'
13307 archive_cmds_need_lc_CXX=no
13308 hardcode_shlibpath_var_CXX=no
13309 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13310 hardcode_libdir_separator_CXX=':'
13311 link_all_deplibs_CXX=yes
13312 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13313 runpath_var='LD_RUN_PATH'
13315 case $cc_basename in
13317 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13318 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13319 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13320 '"$old_archive_cmds_CXX"
13321 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13322 '"$reload_cmds_CXX"
13325 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 case $cc_basename in
13334 # NonStop-UX NCC 3.20
13335 # FIXME: insert proper C++ library support
13339 # FIXME: insert proper C++ library support
13346 # FIXME: insert proper C++ library support
13351 # FIXME: insert proper C++ library support
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13357 $as_echo "$ld_shlibs_CXX" >&6; }
13358 test "$ld_shlibs_CXX" = no && can_build_shared=no
13364 ## There is no encapsulation within the following macros, do not change
13365 ## the running order or otherwise move them around unless you know exactly
13366 ## what you are doing...
13367 # Dependencies to place before and after the object being linked:
13368 predep_objects_CXX=
13369 postdep_objects_CXX=
13372 compiler_lib_search_path_CXX=
13374 cat > conftest.$ac_ext <<_LT_EOF
13378 Foo (void) { a = 0; }
13385 _lt_libdeps_save_CFLAGS=$CFLAGS
13386 case "$CC $CFLAGS " in #(
13387 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13388 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13389 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13393 (eval $ac_compile) 2>&5
13395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13396 test $ac_status = 0; }; then
13397 # Parse the compiler output and extract the necessary
13398 # objects, libraries and library flags.
13400 # Sentinel used to keep track of whether or not we are before
13401 # the conftest object file.
13402 pre_test_object_deps_done=no
13404 for p in `eval "$output_verbose_link_cmd"`; do
13405 case ${prev}${p} in
13408 # Some compilers place space between "-{L,R}" and the path.
13409 # Remove the space.
13410 if test $p = "-L" ||
13411 test $p = "-R"; then
13416 # Expand the sysroot to ease extracting the directories later.
13417 if test -z "$prev"; then
13419 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13420 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13421 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13425 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13427 if test "$pre_test_object_deps_done" = no; then
13430 # Internal compiler library paths should come after those
13431 # provided the user. The postdeps already come after the
13432 # user supplied libs so there is no need to process them.
13433 if test -z "$compiler_lib_search_path_CXX"; then
13434 compiler_lib_search_path_CXX="${prev}${p}"
13436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13439 # The "-l" case would never come before the object being
13440 # linked, so don't bother handling this case.
13443 if test -z "$postdeps_CXX"; then
13444 postdeps_CXX="${prev}${p}"
13446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13452 *.lto.$objext) ;; # Ignore GCC LTO objects
13454 # This assumes that the test object file only shows up
13455 # once in the compiler output.
13456 if test "$p" = "conftest.$objext"; then
13457 pre_test_object_deps_done=yes
13461 if test "$pre_test_object_deps_done" = no; then
13462 if test -z "$predep_objects_CXX"; then
13463 predep_objects_CXX="$p"
13465 predep_objects_CXX="$predep_objects_CXX $p"
13468 if test -z "$postdep_objects_CXX"; then
13469 postdep_objects_CXX="$p"
13471 postdep_objects_CXX="$postdep_objects_CXX $p"
13476 *) ;; # Ignore the rest.
13484 echo "libtool.m4: error: problem compiling CXX test program"
13487 $RM -f confest.$objext
13488 CFLAGS=$_lt_libdeps_save_CFLAGS
13490 # PORTME: override above test on systems where it is broken
13493 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13494 # hack all around it, let's just trust "g++" to DTRT.
13495 predep_objects_CXX=
13496 postdep_objects_CXX=
13501 case `$CC -V 2>&1 | sed 5q` in
13505 # The more standards-conforming stlport4 library is
13506 # incompatible with the Cstd library. Avoid specifying
13507 # it if it's in CXXFLAGS. Ignore libCrun as
13508 # -library=stlport4 depends on it.
13509 case " $CXX $CXXFLAGS " in
13510 *" -library=stlport4 "*)
13511 solaris_use_stlport4=yes
13515 if test "$solaris_use_stlport4" != yes; then
13516 postdeps_CXX='-library=Cstd -library=Crun'
13523 case $cc_basename in
13525 # The more standards-conforming stlport4 library is
13526 # incompatible with the Cstd library. Avoid specifying
13527 # it if it's in CXXFLAGS. Ignore libCrun as
13528 # -library=stlport4 depends on it.
13529 case " $CXX $CXXFLAGS " in
13530 *" -library=stlport4 "*)
13531 solaris_use_stlport4=yes
13535 # Adding this requires a known-good setup of shared libraries for
13536 # Sun compiler versions before 5.6, else PIC objects from an old
13537 # archive will be linked into the output, leading to subtle bugs.
13538 if test "$solaris_use_stlport4" != yes; then
13539 postdeps_CXX='-library=Cstd -library=Crun'
13547 case " $postdeps_CXX " in
13548 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13550 compiler_lib_search_dirs_CXX=
13551 if test -n "${compiler_lib_search_path_CXX}"; then
13552 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13585 lt_prog_compiler_wl_CXX=
13586 lt_prog_compiler_pic_CXX=
13587 lt_prog_compiler_static_CXX=
13590 # C++ specific cases for pic, static, wl, etc.
13591 if test "$GXX" = yes; then
13592 lt_prog_compiler_wl_CXX='-Wl,'
13593 lt_prog_compiler_static_CXX='-static'
13597 # All AIX code is PIC.
13598 if test "$host_cpu" = ia64; then
13599 # AIX 5 now supports IA64 processor
13600 lt_prog_compiler_static_CXX='-Bstatic'
13607 # see comment about AmigaOS4 .so support
13608 lt_prog_compiler_pic_CXX='-fPIC'
13611 # FIXME: we need at least 68020 code to build shared libraries, but
13612 # adding the `-m68020' flag to GCC prevents building anything better,
13614 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13619 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13620 # PIC is the default for these OSes.
13622 mingw* | cygwin* | os2* | pw32* | cegcc*)
13623 # This hack is so that the source file can tell whether it is being
13624 # built for inclusion in a dll (and should export symbols for example).
13625 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13626 # (--disable-auto-import) libraries
13627 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13629 darwin* | rhapsody*)
13630 # PIC is the default on this platform
13631 # Common symbols not allowed in MH_DYLIB files
13632 lt_prog_compiler_pic_CXX='-fno-common'
13635 # DJGPP does not support shared libraries at all
13636 lt_prog_compiler_pic_CXX=
13639 # PIC is the default for Haiku.
13640 # The "-static" flag exists, but is broken.
13641 lt_prog_compiler_static_CXX=
13644 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13645 # Instead, we relocate shared libraries at runtime.
13648 if test -d /usr/nec; then
13649 lt_prog_compiler_pic_CXX=-Kconform_pic
13653 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13654 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13655 # sets the default TLS model and affects inlining.
13660 lt_prog_compiler_pic_CXX='-fPIC'
13665 # QNX uses GNU C++, but need to define -shared option too, otherwise
13666 # it will coredump.
13667 lt_prog_compiler_pic_CXX='-fPIC -shared'
13670 lt_prog_compiler_pic_CXX='-fPIC'
13676 # All AIX code is PIC.
13677 if test "$host_cpu" = ia64; then
13678 # AIX 5 now supports IA64 processor
13679 lt_prog_compiler_static_CXX='-Bstatic'
13681 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13685 case $cc_basename in
13687 # Green Hills C++ Compiler
13688 # _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"
13692 mingw* | cygwin* | os2* | pw32* | cegcc*)
13693 # This hack is so that the source file can tell whether it is being
13694 # built for inclusion in a dll (and should export symbols for example).
13695 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13698 case $cc_basename in
13700 lt_prog_compiler_pic_CXX='-KPIC'
13703 # Green Hills C++ Compiler
13704 lt_prog_compiler_pic_CXX='-pic'
13710 freebsd* | dragonfly*)
13711 # FreeBSD uses GNU C++
13713 hpux9* | hpux10* | hpux11*)
13714 case $cc_basename in
13716 lt_prog_compiler_wl_CXX='-Wl,'
13717 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13718 if test "$host_cpu" != ia64; then
13719 lt_prog_compiler_pic_CXX='+Z'
13723 lt_prog_compiler_wl_CXX='-Wl,'
13724 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13730 lt_prog_compiler_pic_CXX='+Z'
13739 # This is c89, which is MS Visual C++ (no shared libs)
13740 # Anyone wants to do a port?
13742 irix5* | irix6* | nonstopux*)
13743 case $cc_basename in
13745 lt_prog_compiler_wl_CXX='-Wl,'
13746 lt_prog_compiler_static_CXX='-non_shared'
13747 # CC pic flag -KPIC is the default.
13753 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13754 case $cc_basename in
13757 lt_prog_compiler_wl_CXX='--backend -Wl,'
13758 lt_prog_compiler_pic_CXX='-fPIC'
13761 # old Intel C++ for x86_64 which still supported -KPIC.
13762 lt_prog_compiler_wl_CXX='-Wl,'
13763 lt_prog_compiler_pic_CXX='-KPIC'
13764 lt_prog_compiler_static_CXX='-static'
13767 # Intel C++, used to be incompatible with GCC.
13768 # ICC 10 doesn't accept -KPIC any more.
13769 lt_prog_compiler_wl_CXX='-Wl,'
13770 lt_prog_compiler_pic_CXX='-fPIC'
13771 lt_prog_compiler_static_CXX='-static'
13774 # Portland Group C++ compiler
13775 lt_prog_compiler_wl_CXX='-Wl,'
13776 lt_prog_compiler_pic_CXX='-fpic'
13777 lt_prog_compiler_static_CXX='-Bstatic'
13781 # Make sure the PIC flag is empty. It appears that all Alpha
13782 # Linux and Compaq Tru64 Unix objects are PIC.
13783 lt_prog_compiler_pic_CXX=
13784 lt_prog_compiler_static_CXX='-non_shared'
13786 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13787 # IBM XL 8.0, 9.0 on PPC and BlueGene
13788 lt_prog_compiler_wl_CXX='-Wl,'
13789 lt_prog_compiler_pic_CXX='-qpic'
13790 lt_prog_compiler_static_CXX='-qstaticlink'
13793 case `$CC -V 2>&1 | sed 5q` in
13796 lt_prog_compiler_pic_CXX='-KPIC'
13797 lt_prog_compiler_static_CXX='-Bstatic'
13798 lt_prog_compiler_wl_CXX='-Qoption ld '
13809 case $cc_basename in
13811 lt_prog_compiler_pic_CXX='-W c,exportall'
13817 netbsd* | netbsdelf*-gnu)
13820 # QNX uses GNU C++, but need to define -shared option too, otherwise
13821 # it will coredump.
13822 lt_prog_compiler_pic_CXX='-fPIC -shared'
13824 osf3* | osf4* | osf5*)
13825 case $cc_basename in
13827 lt_prog_compiler_wl_CXX='--backend -Wl,'
13830 # Rational C++ 2.4.1
13831 lt_prog_compiler_pic_CXX='-pic'
13834 # Digital/Compaq C++
13835 lt_prog_compiler_wl_CXX='-Wl,'
13836 # Make sure the PIC flag is empty. It appears that all Alpha
13837 # Linux and Compaq Tru64 Unix objects are PIC.
13838 lt_prog_compiler_pic_CXX=
13839 lt_prog_compiler_static_CXX='-non_shared'
13848 case $cc_basename in
13850 # Sun C++ 4.2, 5.x and Centerline C++
13851 lt_prog_compiler_pic_CXX='-KPIC'
13852 lt_prog_compiler_static_CXX='-Bstatic'
13853 lt_prog_compiler_wl_CXX='-Qoption ld '
13856 # Green Hills C++ Compiler
13857 lt_prog_compiler_pic_CXX='-PIC'
13864 case $cc_basename in
13867 lt_prog_compiler_pic_CXX='-pic'
13868 lt_prog_compiler_static_CXX='-Bstatic'
13872 lt_prog_compiler_pic_CXX='-pic'
13878 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13879 case $cc_basename in
13881 lt_prog_compiler_wl_CXX='-Wl,'
13882 lt_prog_compiler_pic_CXX='-KPIC'
13883 lt_prog_compiler_static_CXX='-Bstatic'
13888 case $cc_basename in
13890 # NonStop-UX NCC 3.20
13891 lt_prog_compiler_pic_CXX='-KPIC'
13900 lt_prog_compiler_can_build_shared_CXX=no
13906 # For platforms which do not support PIC, -DPIC is meaningless:
13908 lt_prog_compiler_pic_CXX=
13911 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13916 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13917 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13918 $as_echo_n "(cached) " >&6
13920 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13923 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13924 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13927 # Check to make sure the PIC flag actually works.
13929 if test -n "$lt_prog_compiler_pic_CXX"; then
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13931 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13932 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13933 $as_echo_n "(cached) " >&6
13935 lt_cv_prog_compiler_pic_works_CXX=no
13936 ac_outfile=conftest.$ac_objext
13937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13938 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13939 # Insert the option either (1) after the last *FLAGS variable, or
13940 # (2) before a word containing "conftest.", or (3) at the end.
13941 # Note that $ac_compile itself does not contain backslashes and begins
13942 # with a dollar sign (not a hyphen), so the echo should work correctly.
13943 # The option is referenced via a variable to avoid confusing sed.
13944 lt_compile=`echo "$ac_compile" | $SED \
13945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13947 -e 's:$: $lt_compiler_flag:'`
13948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13949 (eval "$lt_compile" 2>conftest.err)
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 if (exit $ac_status) && test -s "$ac_outfile"; then
13954 # The compiler can only warn and ignore the option if not recognized
13955 # So say no if there are warnings other than the usual output.
13956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13959 lt_cv_prog_compiler_pic_works_CXX=yes
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13966 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13968 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13969 case $lt_prog_compiler_pic_CXX in
13971 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13974 lt_prog_compiler_pic_CXX=
13975 lt_prog_compiler_can_build_shared_CXX=no
13985 # Check to make sure the static flag actually works.
13987 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13989 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13990 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13991 $as_echo_n "(cached) " >&6
13993 lt_cv_prog_compiler_static_works_CXX=no
13994 save_LDFLAGS="$LDFLAGS"
13995 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13996 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13997 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13998 # The linker can only warn and ignore the option if not recognized
13999 # So say no if there are warnings
14000 if test -s conftest.err; then
14001 # Append any errors to the config.log.
14002 cat conftest.err 1>&5
14003 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14005 if diff conftest.exp conftest.er2 >/dev/null; then
14006 lt_cv_prog_compiler_static_works_CXX=yes
14009 lt_cv_prog_compiler_static_works_CXX=yes
14013 LDFLAGS="$save_LDFLAGS"
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14017 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14019 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14022 lt_prog_compiler_static_CXX=
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14029 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14030 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14031 $as_echo_n "(cached) " >&6
14033 lt_cv_prog_compiler_c_o_CXX=no
14034 $RM -r conftest 2>/dev/null
14038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14040 lt_compiler_flag="-o out/conftest2.$ac_objext"
14041 # Insert the option either (1) after the last *FLAGS variable, or
14042 # (2) before a word containing "conftest.", or (3) at the end.
14043 # Note that $ac_compile itself does not contain backslashes and begins
14044 # with a dollar sign (not a hyphen), so the echo should work correctly.
14045 lt_compile=`echo "$ac_compile" | $SED \
14046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14048 -e 's:$: $lt_compiler_flag:'`
14049 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14050 (eval "$lt_compile" 2>out/conftest.err)
14052 cat out/conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14056 # The compiler can only warn and ignore the option if not recognized
14057 # So say no if there are warnings
14058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14061 lt_cv_prog_compiler_c_o_CXX=yes
14066 # SGI C++ compiler will create directory out/ii_files/ for
14067 # template instantiation
14068 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14069 $RM out/* && rmdir out
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14076 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14082 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14083 $as_echo_n "(cached) " >&6
14085 lt_cv_prog_compiler_c_o_CXX=no
14086 $RM -r conftest 2>/dev/null
14090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14092 lt_compiler_flag="-o out/conftest2.$ac_objext"
14093 # Insert the option either (1) after the last *FLAGS variable, or
14094 # (2) before a word containing "conftest.", or (3) at the end.
14095 # Note that $ac_compile itself does not contain backslashes and begins
14096 # with a dollar sign (not a hyphen), so the echo should work correctly.
14097 lt_compile=`echo "$ac_compile" | $SED \
14098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14100 -e 's:$: $lt_compiler_flag:'`
14101 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14102 (eval "$lt_compile" 2>out/conftest.err)
14104 cat out/conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14108 # The compiler can only warn and ignore the option if not recognized
14109 # So say no if there are warnings
14110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14113 lt_cv_prog_compiler_c_o_CXX=yes
14118 # SGI C++ compiler will create directory out/ii_files/ for
14119 # template instantiation
14120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14121 $RM out/* && rmdir out
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14128 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14133 hard_links="nottested"
14134 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14135 # do not overwrite the value of need_locks provided by the user
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14137 $as_echo_n "checking if we can lock with hard links... " >&6; }
14140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14142 ln conftest.a conftest.b 2>&5 || hard_links=no
14143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14145 $as_echo "$hard_links" >&6; }
14146 if test "$hard_links" = no; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14148 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14158 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14160 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14164 # If we're using GNU nm, then we don't want the "-C" option.
14165 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14166 # Also, AIX nm treats weak defined symbols like other global defined
14167 # symbols, whereas GNU nm marks them as "W".
14168 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14169 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14171 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14175 export_symbols_cmds_CXX="$ltdll_cmds"
14177 cygwin* | mingw* | cegcc*)
14178 case $cc_basename in
14180 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14183 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'
14184 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14188 linux* | k*bsd*-gnu | gnu*)
14189 link_all_deplibs_CXX=no
14192 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14197 $as_echo "$ld_shlibs_CXX" >&6; }
14198 test "$ld_shlibs_CXX" = no && can_build_shared=no
14200 with_gnu_ld_CXX=$with_gnu_ld
14208 # Do we need to explicitly link libc?
14210 case "x$archive_cmds_need_lc_CXX" in
14212 # Assume -lc should be added
14213 archive_cmds_need_lc_CXX=yes
14215 if test "$enable_shared" = yes && test "$GCC" = yes; then
14216 case $archive_cmds_CXX in
14218 # FIXME: we may have to deal with multi-command sequences.
14221 # Test whether the compiler implicitly links with -lc since on some
14222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14223 # to ld, don't add -lc before -lgcc.
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14225 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14226 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14227 $as_echo_n "(cached) " >&6
14230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14233 (eval $ac_compile) 2>&5
14235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236 test $ac_status = 0; } 2>conftest.err; then
14239 libobjs=conftest.$ac_objext
14241 wl=$lt_prog_compiler_wl_CXX
14242 pic_flag=$lt_prog_compiler_pic_CXX
14248 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14249 allow_undefined_flag_CXX=
14250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14251 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254 test $ac_status = 0; }
14256 lt_cv_archive_cmds_need_lc_CXX=no
14258 lt_cv_archive_cmds_need_lc_CXX=yes
14260 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14262 cat conftest.err 1>&5
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14268 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14269 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14338 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14340 library_names_spec=
14341 libname_spec='lib$name'
14345 postuninstall_cmds=
14349 shlibpath_overrides_runpath=unknown
14351 dynamic_linker="$host_os ld.so"
14352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14353 need_lib_prefix=unknown
14354 hardcode_into_libs=no
14356 # when you set need_version to no, make sure it does not cause -set_version
14357 # flags to be left without arguments
14358 need_version=unknown
14362 version_type=linux # correct to gnu/linux during the next big refactor
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14364 shlibpath_var=LIBPATH
14366 # AIX 3 has no versioning support, so we append a major version to the name.
14367 soname_spec='${libname}${release}${shared_ext}$major'
14371 version_type=linux # correct to gnu/linux during the next big refactor
14374 hardcode_into_libs=yes
14375 if test "$host_cpu" = ia64; then
14376 # AIX 5 supports IA64
14377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14378 shlibpath_var=LD_LIBRARY_PATH
14380 # With GCC up to 2.95.x, collect2 would create an import file
14381 # for dependence libraries. The import file would start with
14382 # the line `#! .'. This would cause the generated library to
14383 # depend on `.', always an invalid library. This was fixed in
14384 # development snapshots of GCC prior to 3.0.
14386 aix4 | aix4.[01] | aix4.[01].*)
14387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14389 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14392 can_build_shared=no
14396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14397 # soname into executable. Probably we can add versioning support to
14398 # collect2, so additional links can be useful in future.
14399 if test "$aix_use_runtimelinking" = yes; then
14400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14401 # instead of lib<name>.a to let people know that these are not
14402 # typical AIX shared libraries.
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405 # We preserve .a as extension for shared libraries through AIX4.2
14406 # and later when we are not doing run time linking.
14407 library_names_spec='${libname}${release}.a $libname.a'
14408 soname_spec='${libname}${release}${shared_ext}$major'
14410 shlibpath_var=LIBPATH
14417 # Since July 2007 AmigaOS4 officially supports .so libraries.
14418 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422 library_names_spec='$libname.ixlibrary $libname.a'
14423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14424 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14430 library_names_spec='${libname}${shared_ext}'
14431 dynamic_linker="$host_os ld.so"
14432 shlibpath_var=LIBRARY_PATH
14436 version_type=linux # correct to gnu/linux during the next big refactor
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439 soname_spec='${libname}${release}${shared_ext}$major'
14440 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14443 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14444 # the default ld.so.conf also contains /usr/contrib/lib and
14445 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14446 # libtool to hard-code these into programs
14449 cygwin* | mingw* | pw32* | cegcc*)
14450 version_type=windows
14455 case $GCC,$cc_basename in
14458 library_names_spec='$libname.dll.a'
14459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14460 postinstall_cmds='base_file=`basename \${file}`~
14461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14462 dldir=$destdir/`dirname \$dlpath`~
14463 test -d \$dldir || mkdir -p \$dldir~
14464 $install_prog $dir/$dlname \$dldir/$dlname~
14465 chmod a+x \$dldir/$dlname~
14466 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14467 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14470 dlpath=$dir/\$dldll~
14472 shlibpath_overrides_runpath=yes
14476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14481 # MinGW DLLs use traditional 'lib' prefix
14482 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14485 # pw32 DLLs use 'pw' prefix rather than 'lib'
14486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14489 dynamic_linker='Win32 ld.exe'
14494 libname_spec='$name'
14495 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14496 library_names_spec='${libname}.dll.lib'
14500 sys_lib_search_path_spec=
14503 for lt_path in $LIB
14506 # Let DOS variable expansion print the short 8.3 style file name.
14507 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14508 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14511 # Convert to MSYS style.
14512 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14515 # Convert to unix form, then to dos form, then back to unix form
14516 # but this time dos style (no spaces!) so that the unix form looks
14517 # like /cygdrive/c/PROGRA~1:/cygdr...
14518 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14519 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14520 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14523 sys_lib_search_path_spec="$LIB"
14524 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14525 # It is most probably a Windows format PATH.
14526 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14528 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14530 # FIXME: find the short name or the path components, as spaces are
14531 # common. (e.g. "Program Files" -> "PROGRA~1")
14535 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14536 postinstall_cmds='base_file=`basename \${file}`~
14537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14538 dldir=$destdir/`dirname \$dlpath`~
14539 test -d \$dldir || mkdir -p \$dldir~
14540 $install_prog $dir/$dlname \$dldir/$dlname'
14541 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14542 dlpath=$dir/\$dldll~
14544 shlibpath_overrides_runpath=yes
14545 dynamic_linker='Win32 link.exe'
14549 # Assume MSVC wrapper
14550 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14551 dynamic_linker='Win32 ld.exe'
14554 # FIXME: first we should search . and the directory the executable is in
14558 darwin* | rhapsody*)
14559 dynamic_linker="$host_os dyld"
14560 version_type=darwin
14563 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14564 soname_spec='${libname}${release}${major}$shared_ext'
14565 shlibpath_overrides_runpath=yes
14566 shlibpath_var=DYLD_LIBRARY_PATH
14567 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14569 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14573 version_type=linux # correct to gnu/linux during the next big refactor
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 shlibpath_var=LD_LIBRARY_PATH
14581 freebsd* | dragonfly*)
14582 # DragonFly does not have aout. When/if they implement a new
14583 # versioning mechanism, adjust this.
14584 if test -x /usr/bin/objformat; then
14585 objformat=`/usr/bin/objformat`
14588 freebsd[23].*) objformat=aout ;;
14589 *) objformat=elf ;;
14592 version_type=freebsd-$objformat
14593 case $version_type in
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14604 shlibpath_var=LD_LIBRARY_PATH
14607 shlibpath_overrides_runpath=yes
14609 freebsd3.[01]* | freebsdelf3.[01]*)
14610 shlibpath_overrides_runpath=yes
14611 hardcode_into_libs=yes
14613 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14614 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14615 shlibpath_overrides_runpath=no
14616 hardcode_into_libs=yes
14618 *) # from 4.6 on, and DragonFly
14619 shlibpath_overrides_runpath=yes
14620 hardcode_into_libs=yes
14626 version_type=linux # correct to gnu/linux during the next big refactor
14629 dynamic_linker="$host_os runtime_loader"
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14632 shlibpath_var=LIBRARY_PATH
14633 shlibpath_overrides_runpath=yes
14634 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14635 hardcode_into_libs=yes
14638 hpux9* | hpux10* | hpux11*)
14639 # Give a soname corresponding to the major version so that dld.sl refuses to
14640 # link against other versions.
14647 hardcode_into_libs=yes
14648 dynamic_linker="$host_os dld.so"
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652 soname_spec='${libname}${release}${shared_ext}$major'
14653 if test "X$HPUX_IA64_MODE" = X32; then
14654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14662 hardcode_into_libs=yes
14663 dynamic_linker="$host_os dld.sl"
14664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14673 dynamic_linker="$host_os dld.sl"
14674 shlibpath_var=SHLIB_PATH
14675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677 soname_spec='${libname}${release}${shared_ext}$major'
14680 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14681 postinstall_cmds='chmod 555 $lib'
14682 # or fails outright, so override atomically:
14683 install_override_mode=555
14687 version_type=linux # correct to gnu/linux during the next big refactor
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 shlibpath_overrides_runpath=no
14695 hardcode_into_libs=yes
14698 irix5* | irix6* | nonstopux*)
14700 nonstopux*) version_type=nonstopux ;;
14702 if test "$lt_cv_prog_gnu_ld" = yes; then
14703 version_type=linux # correct to gnu/linux during the next big refactor
14710 soname_spec='${libname}${release}${shared_ext}$major'
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14713 irix5* | nonstopux*)
14714 libsuff= shlibsuff=
14717 case $LD in # libtool.m4 will add one of these switches to LD
14718 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14719 libsuff= shlibsuff= libmagic=32-bit;;
14720 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14721 libsuff=32 shlibsuff=N32 libmagic=N32;;
14722 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14723 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14724 *) libsuff= shlibsuff= libmagic=never-match;;
14728 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14729 shlibpath_overrides_runpath=no
14730 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14731 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14732 hardcode_into_libs=yes
14735 # No shared lib support for Linux oldld, aout, or coff.
14736 linux*oldld* | linux*aout* | linux*coff*)
14740 # This must be glibc/ELF.
14741 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14742 version_type=linux # correct to gnu/linux during the next big refactor
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=no
14751 # Some binutils ld are patched to set DT_RUNPATH
14752 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14753 $as_echo_n "(cached) " >&6
14755 lt_cv_shlibpath_overrides_runpath=no
14756 save_LDFLAGS=$LDFLAGS
14757 save_libdir=$libdir
14758 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14759 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761 /* end confdefs.h. */
14771 if ac_fn_cxx_try_link "$LINENO"; then :
14772 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14773 lt_cv_shlibpath_overrides_runpath=yes
14776 rm -f core conftest.err conftest.$ac_objext \
14777 conftest$ac_exeext conftest.$ac_ext
14778 LDFLAGS=$save_LDFLAGS
14779 libdir=$save_libdir
14783 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14785 # This implies no fast_install, which is unacceptable.
14786 # Some rework will be needed to allow for fast_install
14787 # before this can be enabled.
14788 hardcode_into_libs=yes
14790 # Append ld.so.conf contents to the search path
14791 if test -f /etc/ld.so.conf; then
14792 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' ' '`
14793 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14796 # We used to test for /lib/ld.so.1 and disable shared libraries on
14797 # powerpc, because MkLinux only supported shared libraries with the
14798 # GNU dynamic linker. Since this was broken with cross compilers,
14799 # most powerpc-linux boxes support dynamic linking these days and
14800 # people can always --disable-shared, the test was removed, and we
14801 # assume the GNU/Linux dynamic linker is in use.
14802 dynamic_linker='GNU/Linux ld.so'
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14810 soname_spec='${libname}${release}${shared_ext}$major'
14811 shlibpath_var=LD_LIBRARY_PATH
14812 shlibpath_overrides_runpath=no
14813 hardcode_into_libs=yes
14814 dynamic_linker='NetBSD ld.elf_so'
14821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14824 dynamic_linker='NetBSD (a.out) ld.so'
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14827 soname_spec='${libname}${release}${shared_ext}$major'
14828 dynamic_linker='NetBSD ld.elf_so'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=yes
14832 hardcode_into_libs=yes
14836 version_type=linux # correct to gnu/linux during the next big refactor
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838 shlibpath_var=LD_LIBRARY_PATH
14839 shlibpath_overrides_runpath=yes
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 shlibpath_var=LD_LIBRARY_PATH
14849 shlibpath_overrides_runpath=no
14850 hardcode_into_libs=yes
14851 dynamic_linker='ldqnx.so'
14856 sys_lib_dlsearch_path_spec="/usr/lib"
14858 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14860 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14861 *) need_version=no ;;
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14868 openbsd2.[89] | openbsd2.[89].*)
14869 shlibpath_overrides_runpath=no
14872 shlibpath_overrides_runpath=yes
14876 shlibpath_overrides_runpath=yes
14881 libname_spec='$name'
14884 library_names_spec='$libname${shared_ext} $libname.a'
14885 dynamic_linker='OS/2 ld.exe'
14886 shlibpath_var=LIBPATH
14889 osf3* | osf4* | osf5*)
14893 soname_spec='${libname}${release}${shared_ext}$major'
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14897 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14905 version_type=linux # correct to gnu/linux during the next big refactor
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909 soname_spec='${libname}${release}${shared_ext}$major'
14910 shlibpath_var=LD_LIBRARY_PATH
14911 shlibpath_overrides_runpath=yes
14912 hardcode_into_libs=yes
14913 # ldd complains unless libraries are executable
14914 postinstall_cmds='chmod +x $lib'
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes
14923 if test "$with_gnu_ld" = yes; then
14930 version_type=linux # correct to gnu/linux during the next big refactor
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932 soname_spec='${libname}${release}${shared_ext}$major'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 case $host_vendor in
14936 shlibpath_overrides_runpath=no
14938 runpath_var=LD_RUN_PATH
14946 shlibpath_overrides_runpath=no
14947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14953 if test -d /usr/nec ;then
14954 version_type=linux # correct to gnu/linux during the next big refactor
14955 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14956 soname_spec='$libname${shared_ext}.$major'
14957 shlibpath_var=LD_LIBRARY_PATH
14961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14962 version_type=freebsd-elf
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14966 soname_spec='${libname}${release}${shared_ext}$major'
14967 shlibpath_var=LD_LIBRARY_PATH
14968 shlibpath_overrides_runpath=yes
14969 hardcode_into_libs=yes
14970 if test "$with_gnu_ld" = yes; then
14971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14973 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14980 sys_lib_dlsearch_path_spec='/usr/lib'
14984 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14985 version_type=linux # correct to gnu/linux during the next big refactor
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 shlibpath_overrides_runpath=no
14991 hardcode_into_libs=yes
14995 version_type=linux # correct to gnu/linux during the next big refactor
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 shlibpath_var=LD_LIBRARY_PATH
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15006 $as_echo "$dynamic_linker" >&6; }
15007 test "$dynamic_linker" = no && can_build_shared=no
15009 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15010 if test "$GCC" = yes; then
15011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15014 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15015 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15017 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15018 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15059 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15060 hardcode_action_CXX=
15061 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15062 test -n "$runpath_var_CXX" ||
15063 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15065 # We can hardcode non-existent directories.
15066 if test "$hardcode_direct_CXX" != no &&
15067 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15068 # have to relink, otherwise we might link with an installed library
15069 # when we should be linking with a yet-to-be-installed one
15070 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15071 test "$hardcode_minus_L_CXX" != no; then
15072 # Linking always hardcodes the temporary library directory.
15073 hardcode_action_CXX=relink
15075 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15076 hardcode_action_CXX=immediate
15079 # We cannot hardcode anything, or else we can only hardcode existing
15081 hardcode_action_CXX=unsupported
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15084 $as_echo "$hardcode_action_CXX" >&6; }
15086 if test "$hardcode_action_CXX" = relink ||
15087 test "$inherit_rpath_CXX" = yes; then
15088 # Fast installation is not supported
15089 enable_fast_install=no
15090 elif test "$shlibpath_overrides_runpath" = yes ||
15091 test "$enable_shared" = no; then
15092 # Fast installation is not necessary
15093 enable_fast_install=needless
15102 fi # test -n "$compiler"
15105 CFLAGS=$lt_save_CFLAGS
15109 with_gnu_ld=$lt_save_with_gnu_ld
15110 lt_cv_path_LDCXX=$lt_cv_path_LD
15111 lt_cv_path_LD=$lt_save_path_LD
15112 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15113 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15114 fi # test "$_lt_caught_CXX_error" != yes
15117 ac_cpp='$CPP $CPPFLAGS'
15118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15123 # Find a good install program. We prefer a C program (faster),
15124 # so one script is as good as another. But avoid the broken or
15125 # incompatible versions:
15126 # SysV /etc/install, /usr/sbin/install
15127 # SunOS /usr/etc/install
15128 # IRIX /sbin/install
15130 # AmigaOS /C/install, which installs bootblocks on floppy discs
15131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15134 # OS/2's system install, which has a completely different semantic
15135 # ./install, which can be erroneously created by make from ./install.sh.
15136 # Reject install programs that cannot install multiple files.
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15138 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15139 if test -z "$INSTALL"; then
15140 if ${ac_cv_path_install+:} false; then :
15141 $as_echo_n "(cached) " >&6
15143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15144 for as_dir in $PATH
15147 test -z "$as_dir" && as_dir=.
15148 # Account for people who put trailing slashes in PATH elements.
15149 case $as_dir/ in #((
15150 ./ | .// | /[cC]/* | \
15151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15152 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15155 # OSF1 and SCO ODT 3.0 have their own names for install.
15156 # Don't use installbsd from OSF since it installs stuff as root
15158 for ac_prog in ginstall scoinst install; do
15159 for ac_exec_ext in '' $ac_executable_extensions; do
15160 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15161 if test $ac_prog = install &&
15162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15163 # AIX install. It has an incompatible calling convention.
15165 elif test $ac_prog = install &&
15166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15167 # program-specific install script used by HP pwplus--don't use.
15170 rm -rf conftest.one conftest.two conftest.dir
15171 echo one > conftest.one
15172 echo two > conftest.two
15174 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15175 test -s conftest.one && test -s conftest.two &&
15176 test -s conftest.dir/conftest.one &&
15177 test -s conftest.dir/conftest.two
15179 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15192 rm -rf conftest.one conftest.two conftest.dir
15195 if test "${ac_cv_path_install+set}" = set; then
15196 INSTALL=$ac_cv_path_install
15198 # As a last resort, use the slow shell script. Don't cache a
15199 # value for INSTALL within a source directory, because that will
15200 # break other packages using the cache if that directory is
15201 # removed, or if the value is a relative name.
15202 INSTALL=$ac_install_sh
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15206 $as_echo "$INSTALL" >&6; }
15208 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15209 # It thinks the first close brace ends the variable substitution.
15210 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15212 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15214 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15217 if test "$GCC" = yes ; then
15218 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
15219 CFLAGS="$OLDCFLAGS -fexceptions"
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
15221 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15233 if ac_fn_c_try_link "$LINENO"; then :
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15235 $as_echo "yes" >&6; }
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15238 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
15240 rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
15242 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15246 $as_echo_n "checking for ANSI C header files... " >&6; }
15247 if ${ac_cv_header_stdc+:} false; then :
15248 $as_echo_n "(cached) " >&6
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15252 #include <stdlib.h>
15253 #include <stdarg.h>
15254 #include <string.h>
15265 if ac_fn_c_try_compile "$LINENO"; then :
15266 ac_cv_header_stdc=yes
15268 ac_cv_header_stdc=no
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15272 if test $ac_cv_header_stdc = yes; then
15273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 #include <string.h>
15279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15280 $EGREP "memchr" >/dev/null 2>&1; then :
15283 ac_cv_header_stdc=no
15289 if test $ac_cv_header_stdc = yes; then
15290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 #include <stdlib.h>
15296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15297 $EGREP "free" >/dev/null 2>&1; then :
15300 ac_cv_header_stdc=no
15306 if test $ac_cv_header_stdc = yes; then
15307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15308 if test "$cross_compiling" = yes; then :
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15314 #include <stdlib.h>
15315 #if ((' ' & 0x0FF) == 0x020)
15316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15319 # define ISLOWER(c) \
15320 (('a' <= (c) && (c) <= 'i') \
15321 || ('j' <= (c) && (c) <= 'r') \
15322 || ('s' <= (c) && (c) <= 'z'))
15323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15331 for (i = 0; i < 256; i++)
15332 if (XOR (islower (i), ISLOWER (i))
15333 || toupper (i) != TOUPPER (i))
15338 if ac_fn_c_try_run "$LINENO"; then :
15341 ac_cv_header_stdc=no
15343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15344 conftest.$ac_objext conftest.beam conftest.$ac_ext
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15350 $as_echo "$ac_cv_header_stdc" >&6; }
15351 if test $ac_cv_header_stdc = yes; then
15353 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15360 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15361 if ${ac_cv_c_bigendian+:} false; then :
15362 $as_echo_n "(cached) " >&6
15364 ac_cv_c_bigendian=unknown
15365 # See if sys/param.h defines the BYTE_ORDER macro.
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 #include <sys/types.h>
15369 #include <sys/param.h>
15374 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15375 bogus endian macros
15381 if ac_fn_c_try_compile "$LINENO"; then :
15382 # It does; now see whether it defined to BIG_ENDIAN or not.
15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15385 #include <sys/types.h>
15386 #include <sys/param.h>
15391 #if BYTE_ORDER != BIG_ENDIAN
15398 if ac_fn_c_try_compile "$LINENO"; then :
15399 ac_cv_c_bigendian=yes
15401 ac_cv_c_bigendian=no
15403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 if test $ac_cv_c_bigendian = unknown; then
15407 if test "$cross_compiling" = yes; then :
15408 echo $ac_n "cross-compiling... " 2>&6
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15413 /* Are we little or big endian? From Harbison&Steele. */
15417 char c[sizeof (long)];
15420 exit (u.c[sizeof (long) - 1] == 1);
15423 if ac_fn_c_try_run "$LINENO"; then :
15424 ac_cv_c_bigendian=no
15426 ac_cv_c_bigendian=yes
15428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15429 conftest.$ac_objext conftest.beam conftest.$ac_ext
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15435 $as_echo "$ac_cv_c_bigendian" >&6; }
15436 if test $ac_cv_c_bigendian = unknown; then
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
15438 $as_echo_n "checking to probe for byte ordering... " >&6; }
15440 cat >conftest.c <<EOF
15441 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15442 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15443 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
15444 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15445 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15446 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
15447 int main() { _ascii (); _ebcdic (); return 0; }
15449 if test -f conftest.c ; then
15450 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
15451 if test `grep -l BIGenDianSyS conftest.o` ; then
15452 echo $ac_n ' big endian probe OK, ' 1>&6
15453 ac_cv_c_bigendian=yes
15455 if test `grep -l LiTTleEnDian conftest.o` ; then
15456 echo $ac_n ' little endian probe OK, ' 1>&6
15457 if test $ac_cv_c_bigendian = yes ; then
15458 ac_cv_c_bigendian=unknown;
15460 ac_cv_c_bigendian=no
15463 echo $ac_n 'guessing bigendian ... ' >&6
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15467 $as_echo "$ac_cv_c_bigendian" >&6; }
15469 if test $ac_cv_c_bigendian = yes; then
15471 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15478 cat >>confdefs.h <<_ACEOF
15479 #define BYTEORDER $BYTEORDER
15482 if test $ac_cv_c_bigendian = unknown; then
15483 as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15488 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15489 if ${ac_cv_c_const+:} false; then :
15490 $as_echo_n "(cached) " >&6
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15499 #ifndef __cplusplus
15500 /* Ultrix mips cc rejects this sort of thing. */
15501 typedef int charset[2];
15502 const charset cs = { 0, 0 };
15503 /* SunOS 4.1.1 cc rejects this. */
15504 char const *const *pcpcc;
15506 /* NEC SVR4.0.2 mips cc rejects this. */
15507 struct point {int x, y;};
15508 static struct point const zero = {0,0};
15509 /* AIX XL C 1.02.0.0 rejects this.
15510 It does not let you subtract one const X* pointer from another in
15511 an arm of an if-expression whose if-part is not a constant
15513 const char *g = "string";
15514 pcpcc = &g + (g ? g-g : 0);
15515 /* HPUX 7.0 cc rejects these. */
15517 ppc = (char**) pcpcc;
15518 pcpcc = (char const *const *) ppc;
15519 { /* SCO 3.2v4 cc rejects this sort of thing. */
15522 char const *s = 0 ? (char *) 0 : (char const *) 0;
15527 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15528 int x[] = {25, 17};
15529 const int *foo = &x[0];
15532 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15533 typedef const int *iptr;
15537 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15538 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15539 struct s { int j; const int *ap[3]; } bx;
15540 struct s *b = &bx; b->j = 5;
15542 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15543 const int foo = 10;
15544 if (!foo) return 0;
15546 return !cs[0] && !zero.x;
15553 if ac_fn_c_try_compile "$LINENO"; then :
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15561 $as_echo "$ac_cv_c_const" >&6; }
15562 if test $ac_cv_c_const = no; then
15564 $as_echo "#define const /**/" >>confdefs.h
15568 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15569 if test "x$ac_cv_type_size_t" = xyes; then :
15573 cat >>confdefs.h <<_ACEOF
15574 #define size_t unsigned int
15579 for ac_func in memmove bcopy
15581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15584 cat >>confdefs.h <<_ACEOF
15585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15592 for ac_header in fcntl.h unistd.h
15594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15595 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15596 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15597 cat >>confdefs.h <<_ACEOF
15598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15605 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15606 if test "x$ac_cv_type_off_t" = xyes; then :
15610 cat >>confdefs.h <<_ACEOF
15611 #define off_t long int
15619 for ac_header in $ac_header_list
15621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15622 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15624 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15625 cat >>confdefs.h <<_ACEOF
15626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15640 for ac_func in getpagesize
15642 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15643 if test "x$ac_cv_func_getpagesize" = xyes; then :
15644 cat >>confdefs.h <<_ACEOF
15645 #define HAVE_GETPAGESIZE 1
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15652 $as_echo_n "checking for working mmap... " >&6; }
15653 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15654 $as_echo_n "(cached) " >&6
15656 if test "$cross_compiling" = yes; then :
15657 ac_cv_func_mmap_fixed_mapped=no
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15661 $ac_includes_default
15662 /* malloc might have been renamed as rpl_malloc. */
15665 /* Thanks to Mike Haertel and Jim Avera for this test.
15666 Here is a matrix of mmap possibilities:
15667 mmap private not fixed
15668 mmap private fixed at somewhere currently unmapped
15669 mmap private fixed at somewhere already mapped
15670 mmap shared not fixed
15671 mmap shared fixed at somewhere currently unmapped
15672 mmap shared fixed at somewhere already mapped
15673 For private mappings, we should verify that changes cannot be read()
15674 back from the file, nor mmap's back from the file at a different
15675 address. (There have been systems where private was not correctly
15676 implemented like the infamous i386 svr4.0, and systems where the
15677 VM page cache was not coherent with the file system buffer cache
15678 like early versions of FreeBSD and possibly contemporary NetBSD.)
15679 For shared mappings, we should conversely verify that changes get
15680 propagated back to all the places they're supposed to be.
15682 Grep wants private fixed already mapped.
15683 The main things grep needs to know about mmap are:
15684 * does it exist and is it safe to write into the mmap'd area
15685 * how to use it (BSD variants) */
15688 #include <sys/mman.h>
15690 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15694 /* This mess was copied from the GNU getpagesize.h. */
15695 #ifndef HAVE_GETPAGESIZE
15696 # ifdef _SC_PAGESIZE
15697 # define getpagesize() sysconf(_SC_PAGESIZE)
15698 # else /* no _SC_PAGESIZE */
15699 # ifdef HAVE_SYS_PARAM_H
15700 # include <sys/param.h>
15701 # ifdef EXEC_PAGESIZE
15702 # define getpagesize() EXEC_PAGESIZE
15703 # else /* no EXEC_PAGESIZE */
15705 # define getpagesize() NBPG * CLSIZE
15708 # endif /* no CLSIZE */
15709 # else /* no NBPG */
15711 # define getpagesize() NBPC
15712 # else /* no NBPC */
15714 # define getpagesize() PAGESIZE
15715 # endif /* PAGESIZE */
15716 # endif /* no NBPC */
15717 # endif /* no NBPG */
15718 # endif /* no EXEC_PAGESIZE */
15719 # else /* no HAVE_SYS_PARAM_H */
15720 # define getpagesize() 8192 /* punt totally */
15721 # endif /* no HAVE_SYS_PARAM_H */
15722 # endif /* no _SC_PAGESIZE */
15724 #endif /* no HAVE_GETPAGESIZE */
15729 char *data, *data2, *data3;
15730 const char *cdata2;
15734 pagesize = getpagesize ();
15736 /* First, make a file with some known garbage in it. */
15737 data = (char *) malloc (pagesize);
15740 for (i = 0; i < pagesize; ++i)
15741 *(data + i) = rand ();
15743 fd = creat ("conftest.mmap", 0600);
15746 if (write (fd, data, pagesize) != pagesize)
15750 /* Next, check that the tail of a page is zero-filled. File must have
15751 non-zero length, otherwise we risk SIGBUS for entire page. */
15752 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15756 if (write (fd2, cdata2, 1) != 1)
15758 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15759 if (data2 == MAP_FAILED)
15761 for (i = 0; i < pagesize; ++i)
15765 if (munmap (data2, pagesize))
15768 /* Next, try to mmap the file at a fixed address which already has
15769 something else allocated at it. If we can, also make sure that
15770 we see the same garbage. */
15771 fd = open ("conftest.mmap", O_RDWR);
15774 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15775 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15777 for (i = 0; i < pagesize; ++i)
15778 if (*(data + i) != *(data2 + i))
15781 /* Finally, make sure that changes to the mapped area do not
15782 percolate back to the file as seen by read(). (This is a bug on
15783 some variants of i386 svr4.0.) */
15784 for (i = 0; i < pagesize; ++i)
15785 *(data2 + i) = *(data2 + i) + 1;
15786 data3 = (char *) malloc (pagesize);
15789 if (read (fd, data3, pagesize) != pagesize)
15791 for (i = 0; i < pagesize; ++i)
15792 if (*(data + i) != *(data3 + i))
15798 if ac_fn_c_try_run "$LINENO"; then :
15799 ac_cv_func_mmap_fixed_mapped=yes
15801 ac_cv_func_mmap_fixed_mapped=no
15803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15804 conftest.$ac_objext conftest.beam conftest.$ac_ext
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15809 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15810 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15812 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15815 rm -f conftest.mmap conftest.txt
15818 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
15819 FILEMAP=unixfilemap
15821 FILEMAP=readfilemap
15827 # ------------------ #
15828 # Checks to see if ANSI C99 CPP variable __func__ works.
15829 # If not, perhaps __FUNCTION__ works instead.
15830 # If not, we'll just define __func__ to "".
15833 case $ac_cv_prog_cc_stdc in #(
15835 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
15838 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15839 if ${ac_cv_prog_cc_c99+:} false; then :
15840 $as_echo_n "(cached) " >&6
15842 ac_cv_prog_cc_c99=no
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15846 #include <stdarg.h>
15847 #include <stdbool.h>
15848 #include <stdlib.h>
15852 // Check varargs macros. These examples are taken from C99 6.10.3.5.
15853 #define debug(...) fprintf (stderr, __VA_ARGS__)
15854 #define showlist(...) puts (#__VA_ARGS__)
15855 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15857 test_varargs_macros (void)
15862 debug ("X = %d\n", x);
15863 showlist (The first, second, and third items.);
15864 report (x>y, "x is %d but y is %d", x, y);
15867 // Check long long types.
15868 #define BIG64 18446744073709551615ull
15869 #define BIG32 4294967295ul
15870 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15872 your preprocessor is broken;
15876 your preprocessor is broken;
15878 static long long int bignum = -9223372036854775807LL;
15879 static unsigned long long int ubignum = BIG64;
15881 struct incomplete_array
15887 struct named_init {
15889 const wchar_t *name;
15893 typedef const char *ccp;
15896 test_restrict (ccp restrict text)
15898 // See if C++-style comments work.
15899 // Iterate through items via the restricted pointer.
15900 // Also check for declarations in for loops.
15901 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15906 // Check varargs and va_copy.
15908 test_varargs (const char *format, ...)
15911 va_start (args, format);
15913 va_copy (args_copy, args);
15923 case 's': // string
15924 str = va_arg (args_copy, const char *);
15927 number = va_arg (args_copy, int);
15930 fnumber = va_arg (args_copy, double);
15936 va_end (args_copy);
15945 _Bool success = false;
15948 if (test_restrict ("String literal") == 0)
15950 char *restrict newvar = "Another string";
15953 test_varargs ("s, d' f .", "string", 65, 34.234);
15954 test_varargs_macros ();
15956 // Check flexible array members.
15957 struct incomplete_array *ia =
15958 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
15960 for (int i = 0; i < ia->datasize; ++i)
15961 ia->data[i] = i * 1.234;
15963 // Check named initializers.
15964 struct named_init ni = {
15966 .name = L"Test wide string",
15967 .average = 543.34343,
15972 int dynamic_array[ni.number];
15973 dynamic_array[ni.number - 1] = 543;
15975 // work around unused variable warnings
15976 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
15977 || dynamic_array[ni.number - 1] != 543);
15983 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
15985 CC="$ac_save_CC $ac_arg"
15986 if ac_fn_c_try_compile "$LINENO"; then :
15987 ac_cv_prog_cc_c99=$ac_arg
15989 rm -f core conftest.err conftest.$ac_objext
15990 test "x$ac_cv_prog_cc_c99" != "xno" && break
15992 rm -f conftest.$ac_ext
15997 case "x$ac_cv_prog_cc_c99" in
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16000 $as_echo "none needed" >&6; } ;;
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16003 $as_echo "unsupported" >&6; } ;;
16005 CC="$CC $ac_cv_prog_cc_c99"
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
16007 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16009 if test "x$ac_cv_prog_cc_c99" != xno; then :
16010 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16013 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16014 if ${ac_cv_prog_cc_c89+:} false; then :
16015 $as_echo_n "(cached) " >&6
16017 ac_cv_prog_cc_c89=no
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h. */
16021 #include <stdarg.h>
16024 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16025 struct buf { int x; };
16026 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16027 static char *e (p, i)
16033 static char *f (char * (*g) (char **, int), char **p, ...)
16038 s = g (p, va_arg (v,int));
16043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16044 function prototypes and stuff, but not '\xHH' hex character constants.
16045 These don't provoke an error unfortunately, instead are silently treated
16046 as 'x'. The following induces an error, until -std is added to get
16047 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16048 array size at least. It's necessary to write '\x00'==0 to get something
16049 that's true only with -std. */
16050 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16053 inside strings and character constants. */
16055 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16057 int test (int i, double x);
16058 struct s1 {int (*f) (int a);};
16059 struct s2 {int (*f) (double a);};
16060 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16066 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16071 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16072 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16074 CC="$ac_save_CC $ac_arg"
16075 if ac_fn_c_try_compile "$LINENO"; then :
16076 ac_cv_prog_cc_c89=$ac_arg
16078 rm -f core conftest.err conftest.$ac_objext
16079 test "x$ac_cv_prog_cc_c89" != "xno" && break
16081 rm -f conftest.$ac_ext
16086 case "x$ac_cv_prog_cc_c89" in
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16089 $as_echo "none needed" >&6; } ;;
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16092 $as_echo "unsupported" >&6; } ;;
16094 CC="$CC $ac_cv_prog_cc_c89"
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16096 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16098 if test "x$ac_cv_prog_cc_c89" != xno; then :
16099 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
16101 ac_cv_prog_cc_stdc=no
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
16108 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
16109 if ${ac_cv_prog_cc_stdc+:} false; then :
16110 $as_echo_n "(cached) " >&6
16113 case $ac_cv_prog_cc_stdc in #(
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16116 $as_echo "unsupported" >&6; } ;; #(
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16119 $as_echo "none needed" >&6; } ;; #(
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
16122 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
16126 $as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
16127 if ${ac_cv_cpp_func+:} false; then :
16128 $as_echo_n "(cached) " >&6
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16136 char *foo = __func__;
16141 if ac_fn_c_try_compile "$LINENO"; then :
16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16150 char *foo = __FUNCTION__;
16155 if ac_fn_c_try_compile "$LINENO"; then :
16156 ac_cv_cpp_func=__FUNCTION__
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
16165 $as_echo "$ac_cv_cpp_func" >&6; }
16166 if test $ac_cv_cpp_func = __FUNCTION__; then
16168 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
16170 elif test $ac_cv_cpp_func = no; then
16172 $as_echo "#define __func__ \"\"" >>confdefs.h
16179 $as_echo "#define XML_NS 1" >>confdefs.h
16182 $as_echo "#define XML_DTD 1" >>confdefs.h
16185 $as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
16188 ac_config_files="$ac_config_files Makefile expat.pc"
16190 cat >confcache <<\_ACEOF
16191 # This file is a shell script that caches the results of configure
16192 # tests run on this system so they can be shared between configure
16193 # scripts and configure runs, see configure's option --config-cache.
16194 # It is not useful on other systems. If it contains results you don't
16195 # want to keep, you may remove or edit it.
16197 # config.status only pays attention to the cache file if you give it
16198 # the --recheck option to rerun configure.
16200 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16201 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16202 # following values.
16206 # The following way of writing the cache mishandles newlines in values,
16207 # but we know of no workaround that is simple, portable, and efficient.
16208 # So, we kill variables containing newlines.
16209 # Ultrix sh set writes to stderr and can't be redirected directly,
16210 # and sets the high bit in the cache file unless we assign to the vars.
16212 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16213 eval ac_val=\$$ac_var
16217 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16221 _ | IFS | as_nl) ;; #(
16222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16223 *) { eval $ac_var=; unset $ac_var;} ;;
16229 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16230 *${as_nl}ac_space=\ *)
16231 # `set' does not quote correctly, so add quotes: double-quote
16232 # substitution turns \\\\ into \\, and sed turns \\ into \.
16235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16238 # `set' quotes correctly as required by POSIX, so do not add quotes.
16239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16253 if test -w "$cache_file"; then
16254 if test "x$cache_file" != "x/dev/null"; then
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16256 $as_echo "$as_me: updating cache $cache_file" >&6;}
16257 if test ! -f "$cache_file" || test -h "$cache_file"; then
16258 cat confcache >"$cache_file"
16260 case $cache_file in #(
16262 mv -f confcache "$cache_file"$$ &&
16263 mv -f "$cache_file"$$ "$cache_file" ;; #(
16265 mv -f confcache "$cache_file" ;;
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16271 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16277 # Let make expand exec_prefix.
16278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16280 DEFS=-DHAVE_CONFIG_H
16285 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16286 # 1. Remove the extension, and $U if already installed.
16287 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16288 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16289 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16290 # will be set to the directory where LIBOBJS objects are built.
16291 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16292 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16294 LIBOBJS=$ac_libobjs
16296 LTLIBOBJS=$ac_ltlibobjs
16300 : "${CONFIG_STATUS=./config.status}"
16302 ac_clean_files_save=$ac_clean_files
16303 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16305 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16307 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16309 # Generated by $as_me.
16310 # Run this file to recreate the current configuration.
16311 # Compiler output produced by configure, useful for debugging
16312 # configure, is in config.log if it exists.
16315 ac_cs_recheck=false
16318 SHELL=\${CONFIG_SHELL-$SHELL}
16321 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16322 ## -------------------- ##
16323 ## M4sh Initialization. ##
16324 ## -------------------- ##
16326 # Be more Bourne compatible
16327 DUALCASE=1; export DUALCASE # for MKS sh
16328 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16331 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16332 # is contrary to our usage. Disable this feature.
16333 alias -g '${1+"$@"}'='"$@"'
16334 setopt NO_GLOB_SUBST
16336 case `(set -o) 2>/dev/null` in #(
16348 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16349 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16350 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16351 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16352 # Prefer a ksh shell builtin over an external printf program on Solaris,
16353 # but without wasting forks for bash or zsh.
16354 if test -z "$BASH_VERSION$ZSH_VERSION" \
16355 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16356 as_echo='print -r --'
16357 as_echo_n='print -rn --'
16358 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16359 as_echo='printf %s\n'
16360 as_echo_n='printf %s'
16362 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16363 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16364 as_echo_n='/usr/ucb/echo -n'
16366 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16367 as_echo_n_body='eval
16371 expr "X$arg" : "X\\(.*\\)$as_nl";
16372 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16374 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16376 export as_echo_n_body
16377 as_echo_n='sh -c $as_echo_n_body as_echo'
16379 export as_echo_body
16380 as_echo='sh -c $as_echo_body as_echo'
16383 # The user is always right.
16384 if test "${PATH_SEPARATOR+set}" != set; then
16386 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16387 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16394 # We need space, tab and new line, in precisely that order. Quoting is
16395 # there to prevent editors from complaining about space-tab.
16396 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16397 # splitting by setting IFS to empty value.)
16400 # Find who we are. Look in the path if we contain no directory separator.
16403 *[\\/]* ) as_myself=$0 ;;
16404 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16405 for as_dir in $PATH
16408 test -z "$as_dir" && as_dir=.
16409 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16415 # We did not find ourselves, most probably we were run as `sh COMMAND'
16416 # in which case we are not to be found in the path.
16417 if test "x$as_myself" = x; then
16420 if test ! -f "$as_myself"; then
16421 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16425 # Unset variables that we do not need and which cause bugs (e.g. in
16426 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16427 # suppresses any "Segmentation fault" message there. '((' could
16428 # trigger a bug in pdksh 5.2.14.
16429 for as_var in BASH_ENV ENV MAIL MAILPATH
16430 do eval test x\${$as_var+set} = xset \
16431 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16444 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16447 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16448 # ----------------------------------------
16449 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16450 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16451 # script with STATUS, using 1 if that was 0.
16454 as_status=$1; test $as_status -eq 0 && as_status=1
16456 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16457 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16459 $as_echo "$as_me: error: $2" >&2
16460 as_fn_exit $as_status
16464 # as_fn_set_status STATUS
16465 # -----------------------
16466 # Set $? to STATUS, without forking.
16467 as_fn_set_status ()
16470 } # as_fn_set_status
16472 # as_fn_exit STATUS
16473 # -----------------
16474 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16478 as_fn_set_status $1
16484 # Portably unset VAR.
16487 { eval $1=; unset $1;}
16489 as_unset=as_fn_unset
16490 # as_fn_append VAR VALUE
16491 # ----------------------
16492 # Append the text in VALUE to the end of the definition contained in VAR. Take
16493 # advantage of any shell optimizations that allow amortized linear growth over
16494 # repeated appends, instead of the typical quadratic growth present in naive
16496 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16497 eval 'as_fn_append ()
16508 # as_fn_arith ARG...
16509 # ------------------
16510 # Perform arithmetic evaluation on the ARGs, and store the result in the
16511 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16512 # must be portable across $(()) and expr.
16513 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16514 eval 'as_fn_arith ()
16521 as_val=`expr "$@" || test $? -eq 1`
16526 if expr a : '\(a\)' >/dev/null 2>&1 &&
16527 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16533 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16534 as_basename=basename
16539 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16545 as_me=`$as_basename -- "$0" ||
16546 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16547 X"$0" : 'X\(//\)$' \| \
16548 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16550 sed '/^.*\/\([^/][^/]*\)\/*$/{
16564 # Avoid depending upon Character Ranges.
16565 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16566 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16567 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16568 as_cr_digits='0123456789'
16569 as_cr_alnum=$as_cr_Letters$as_cr_digits
16571 ECHO_C= ECHO_N= ECHO_T=
16572 case `echo -n x` in #(((((
16574 case `echo 'xy\c'` in
16575 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16577 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16584 rm -f conf$$ conf$$.exe conf$$.file
16585 if test -d conf$$.dir; then
16586 rm -f conf$$.dir/conf$$.file
16589 mkdir conf$$.dir 2>/dev/null
16591 if (echo >conf$$.file) 2>/dev/null; then
16592 if ln -s conf$$.file conf$$ 2>/dev/null; then
16594 # ... but there are two gotchas:
16595 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16596 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16597 # In both cases, we have to default to `cp -pR'.
16598 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16600 elif ln conf$$.file conf$$ 2>/dev/null; then
16608 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16609 rmdir conf$$.dir 2>/dev/null
16614 # Create "$as_dir" as a directory, including parents if necessary.
16619 -*) as_dir=./$as_dir;;
16621 test -d "$as_dir" || eval $as_mkdir_p || {
16625 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16626 *) as_qdir=$as_dir;;
16628 as_dirs="'$as_qdir' $as_dirs"
16629 as_dir=`$as_dirname -- "$as_dir" ||
16630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16631 X"$as_dir" : 'X\(//\)[^/]' \| \
16632 X"$as_dir" : 'X\(//\)$' \| \
16633 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16634 $as_echo X"$as_dir" |
16635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16639 /^X\(\/\/\)[^/].*/{
16652 test -d "$as_dir" && break
16654 test -z "$as_dirs" || eval "mkdir $as_dirs"
16655 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16659 if mkdir -p . 2>/dev/null; then
16660 as_mkdir_p='mkdir -p "$as_dir"'
16662 test -d ./-p && rmdir ./-p
16667 # as_fn_executable_p FILE
16668 # -----------------------
16669 # Test if FILE is an executable regular file.
16670 as_fn_executable_p ()
16672 test -f "$1" && test -x "$1"
16673 } # as_fn_executable_p
16674 as_test_x='test -x'
16675 as_executable_p=as_fn_executable_p
16677 # Sed expression to map a string onto a valid CPP name.
16678 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16680 # Sed expression to map a string onto a valid variable name.
16681 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16685 ## ----------------------------------- ##
16686 ## Main body of $CONFIG_STATUS script. ##
16687 ## ----------------------------------- ##
16689 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16692 # Save the log message, to keep $0 and so on meaningful, and to
16693 # report actual input values of CONFIG_FILES etc. instead of their
16694 # values after options handling.
16696 This file was extended by expat $as_me 2.1.1, which was
16697 generated by GNU Autoconf 2.69. Invocation command line was
16699 CONFIG_FILES = $CONFIG_FILES
16700 CONFIG_HEADERS = $CONFIG_HEADERS
16701 CONFIG_LINKS = $CONFIG_LINKS
16702 CONFIG_COMMANDS = $CONFIG_COMMANDS
16705 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16710 case $ac_config_files in *"
16711 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16714 case $ac_config_headers in *"
16715 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16720 # Files that config.status was made for.
16721 config_files="$ac_config_files"
16722 config_headers="$ac_config_headers"
16723 config_commands="$ac_config_commands"
16727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16729 \`$as_me' instantiates files and other configuration actions
16730 from templates according to the current configuration. Unless the files
16731 and actions are specified as TAGs, all are instantiated by default.
16733 Usage: $0 [OPTION]... [TAG]...
16735 -h, --help print this help, then exit
16736 -V, --version print version number and configuration settings, then exit
16737 --config print configuration, then exit
16738 -q, --quiet, --silent
16739 do not print progress messages
16740 -d, --debug don't remove temporary files
16741 --recheck update $as_me by reconfiguring in the same conditions
16742 --file=FILE[:TEMPLATE]
16743 instantiate the configuration file FILE
16744 --header=FILE[:TEMPLATE]
16745 instantiate the configuration header FILE
16747 Configuration files:
16750 Configuration headers:
16753 Configuration commands:
16756 Report bugs to <expat-bugs@libexpat.org>."
16759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16760 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16762 expat config.status 2.1.1
16763 configured by $0, generated by GNU Autoconf 2.69,
16764 with options \\"\$ac_cs_config\\"
16766 Copyright (C) 2012 Free Software Foundation, Inc.
16767 This config.status script is free software; the Free Software Foundation
16768 gives unlimited permission to copy, distribute and modify it."
16774 test -n "\$AWK" || AWK=awk
16777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16778 # The default lists apply if the user does not specify any file.
16784 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16785 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16789 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16801 # Handling of the options.
16802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16804 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16805 $as_echo "$ac_cs_version"; exit ;;
16806 --config | --confi | --conf | --con | --co | --c )
16807 $as_echo "$ac_cs_config"; exit ;;
16808 --debug | --debu | --deb | --de | --d | -d )
16810 --file | --fil | --fi | --f )
16813 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16814 '') as_fn_error $? "missing file argument" ;;
16816 as_fn_append CONFIG_FILES " '$ac_optarg'"
16817 ac_need_defaults=false;;
16818 --header | --heade | --head | --hea )
16821 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16823 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16824 ac_need_defaults=false;;
16826 # Conflict between --help and --header
16827 as_fn_error $? "ambiguous option: \`$1'
16828 Try \`$0 --help' for more information.";;
16829 --help | --hel | -h )
16830 $as_echo "$ac_cs_usage"; exit ;;
16831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16832 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16835 # This is an error.
16836 -*) as_fn_error $? "unrecognized option: \`$1'
16837 Try \`$0 --help' for more information." ;;
16839 *) as_fn_append ac_config_targets " $1"
16840 ac_need_defaults=false ;;
16846 ac_configure_extra_args=
16848 if $ac_cs_silent; then
16850 ac_configure_extra_args="$ac_configure_extra_args --silent"
16854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16855 if \$ac_cs_recheck; then
16856 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16858 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16859 CONFIG_SHELL='$SHELL'
16860 export CONFIG_SHELL
16865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16869 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16870 ## Running $as_me. ##
16876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16882 # The HP-UX ksh and POSIX shell print the target directory to stdout
16883 # if CDPATH is set.
16884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16886 sed_quote_subst='$sed_quote_subst'
16887 double_quote_subst='$double_quote_subst'
16888 delay_variable_subst='$delay_variable_subst'
16889 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16890 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16891 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16892 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16893 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16894 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16895 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16896 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16897 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16898 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16899 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16900 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16901 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16902 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16903 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16904 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16905 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16906 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16907 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16908 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16909 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16910 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16911 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16912 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16913 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16914 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16915 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16916 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16917 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16918 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16919 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16920 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16921 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16922 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16923 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16924 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16925 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16926 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16927 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16928 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16929 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16930 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16931 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16932 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16933 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16934 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16935 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16936 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16937 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16938 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16939 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16940 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16941 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16942 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16943 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16944 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16945 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16946 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"`'
16947 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16948 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16949 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16950 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16951 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16952 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16953 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16954 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16955 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16956 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16957 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16958 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16959 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16960 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16961 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16962 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16963 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16964 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16965 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16966 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16967 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16968 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16969 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16970 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16971 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16972 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16973 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16974 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16975 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16976 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16977 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16978 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16979 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16980 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16981 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16982 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16983 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16984 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16985 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16986 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16987 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16988 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16989 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16990 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16991 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16992 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16993 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16994 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16995 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16996 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16997 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16998 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16999 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17000 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17001 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17002 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17003 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17004 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17005 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17006 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17007 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17008 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17009 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17010 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17011 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17012 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17013 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17014 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17015 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17016 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17017 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17018 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17019 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17020 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17021 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17022 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17023 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17024 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17025 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17026 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17027 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17028 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17029 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17030 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17031 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17032 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17033 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17034 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17035 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17036 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17037 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17038 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17039 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17040 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17041 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17042 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17043 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17044 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17045 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17046 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17047 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17048 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17049 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17050 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17051 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17052 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17053 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17054 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17055 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17056 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17057 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17058 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17059 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17060 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17061 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17062 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17063 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17064 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17065 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17066 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17067 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17068 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17069 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17070 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17071 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17072 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17073 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17076 LTCFLAGS='$LTCFLAGS'
17077 compiler='$compiler_DEFAULT'
17079 # A function that is used when there is no print builtin or printf.
17080 func_fallback_echo ()
17082 eval 'cat <<_LTECHO_EOF
17087 # Quote evaled strings.
17104 deplibs_check_method \
17108 sharedlib_from_linklib_cmd \
17111 archiver_list_spec \
17117 lt_cv_sys_global_symbol_pipe \
17118 lt_cv_sys_global_symbol_to_cdecl \
17119 lt_cv_sys_global_symbol_to_c_name_address \
17120 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17121 nm_file_list_spec \
17122 lt_prog_compiler_no_builtin_flag \
17123 lt_prog_compiler_pic \
17124 lt_prog_compiler_wl \
17125 lt_prog_compiler_static \
17126 lt_cv_prog_compiler_c_o \
17135 export_dynamic_flag_spec \
17136 whole_archive_flag_spec \
17137 compiler_needs_object \
17139 allow_undefined_flag \
17140 no_undefined_flag \
17141 hardcode_libdir_flag_spec \
17142 hardcode_libdir_separator \
17146 variables_saved_for_relink \
17148 library_names_spec \
17150 install_override_mode \
17154 compiler_lib_search_dirs \
17159 compiler_lib_search_path \
17163 lt_prog_compiler_no_builtin_flag_CXX \
17164 lt_prog_compiler_pic_CXX \
17165 lt_prog_compiler_wl_CXX \
17166 lt_prog_compiler_static_CXX \
17167 lt_cv_prog_compiler_c_o_CXX \
17168 export_dynamic_flag_spec_CXX \
17169 whole_archive_flag_spec_CXX \
17170 compiler_needs_object_CXX \
17172 allow_undefined_flag_CXX \
17173 no_undefined_flag_CXX \
17174 hardcode_libdir_flag_spec_CXX \
17175 hardcode_libdir_separator_CXX \
17176 exclude_expsyms_CXX \
17177 include_expsyms_CXX \
17178 file_list_spec_CXX \
17179 compiler_lib_search_dirs_CXX \
17180 predep_objects_CXX \
17181 postdep_objects_CXX \
17184 compiler_lib_search_path_CXX; do
17185 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17186 *[\\\\\\\`\\"\\\$]*)
17187 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17190 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17195 # Double-quote double-evaled strings.
17196 for var in reload_cmds \
17197 old_postinstall_cmds \
17198 old_postuninstall_cmds \
17200 extract_expsyms_cmds \
17201 old_archive_from_new_cmds \
17202 old_archive_from_expsyms_cmds \
17204 archive_expsym_cmds \
17206 module_expsym_cmds \
17207 export_symbols_cmds \
17211 postuninstall_cmds \
17213 sys_lib_search_path_spec \
17214 sys_lib_dlsearch_path_spec \
17216 old_archive_cmds_CXX \
17217 old_archive_from_new_cmds_CXX \
17218 old_archive_from_expsyms_cmds_CXX \
17220 archive_expsym_cmds_CXX \
17222 module_expsym_cmds_CXX \
17223 export_symbols_cmds_CXX \
17225 postlink_cmds_CXX; do
17226 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17227 *[\\\\\\\`\\"\\\$]*)
17228 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17231 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17236 ac_aux_dir='$ac_aux_dir'
17237 xsi_shell='$xsi_shell'
17238 lt_shell_append='$lt_shell_append'
17240 # See if we are running on zsh, and set the options which allow our
17241 # commands through without removal of \ escapes INIT.
17242 if test -n "\${ZSH_VERSION+set}" ; then
17243 setopt NO_GLOB_SUBST
17249 TIMESTAMP='$TIMESTAMP'
17260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17262 # Handling of arguments.
17263 for ac_config_target in $ac_config_targets
17265 case $ac_config_target in
17266 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
17267 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17268 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17269 "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
17271 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17276 # If the user did not use the arguments to specify the items to instantiate,
17277 # then the envvar interface is used. Set only those that are not.
17278 # We use the long form for the default assignment because of an extremely
17279 # bizarre bug on SunOS 4.1.3.
17280 if $ac_need_defaults; then
17281 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17282 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17283 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17286 # Have a temporary directory for convenience. Make it in the build tree
17287 # simply because there is no reason against having it here, and in addition,
17288 # creating and moving files from /tmp can sometimes cause problems.
17289 # Hook for its removal unless debugging.
17290 # Note that there is a small window in which the directory will not be cleaned:
17291 # after its creation but before its name has been assigned to `$tmp'.
17295 trap 'exit_status=$?
17296 : "${ac_tmp:=$tmp}"
17297 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17299 trap 'as_fn_exit 1' 1 2 13 15
17301 # Create a (secure) tmp directory for tmp files.
17304 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17308 tmp=./conf$$-$RANDOM
17309 (umask 077 && mkdir "$tmp")
17310 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17313 # Set up the scripts for CONFIG_FILES section.
17314 # No need to generate them if there are no CONFIG_FILES.
17315 # This happens for instance with `./config.status config.h'.
17316 if test -n "$CONFIG_FILES"; then
17319 ac_cr=`echo X | tr X '\015'`
17320 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17321 # But we know of no other shell where ac_cr would be empty at this
17322 # point, so we can use a bashism as a fallback.
17323 if test "x$ac_cr" = x; then
17324 eval ac_cr=\$\'\\r\'
17326 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17327 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17330 ac_cs_awk_cr=$ac_cr
17333 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17338 echo "cat >conf$$subs.awk <<_ACEOF" &&
17339 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17341 } >conf$$subs.sh ||
17342 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17343 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17345 for ac_last_try in false false false false false :; do
17346 . ./conf$$subs.sh ||
17347 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17349 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17350 if test $ac_delim_n = $ac_delim_num; then
17352 elif $ac_last_try; then
17353 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17358 rm -f conf$$subs.sh
17360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17361 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17365 s/^/S["/; s/!.*/"]=/
17375 s/\(.\{148\}\)..*/\1/
17377 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17382 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17389 s/\(.\{148\}\)..*/\1/
17391 s/["\\]/\\&/g; s/^/"/; s/$/"/
17395 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17400 ' <conf$$subs.awk | sed '
17405 ' >>$CONFIG_STATUS || ac_write_fail=1
17406 rm -f conf$$subs.awk
17407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17409 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17410 for (key in S) S_is_set[key] = 1
17416 nfields = split(line, field, "@")
17418 len = length(field[1])
17419 for (i = 2; i < nfields; i++) {
17421 keylen = length(key)
17422 if (S_is_set[key]) {
17424 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17425 len += length(value) + length(field[++i])
17436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17437 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17438 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17441 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17442 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17445 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17446 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17447 # trailing colons and then remove the whole line if VPATH becomes empty
17448 # (actually we leave an empty line to preserve line numbers).
17449 if test "x$srcdir" = x.; then
17450 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17469 fi # test -n "$CONFIG_FILES"
17471 # Set up the scripts for CONFIG_HEADERS section.
17472 # No need to generate them if there are no CONFIG_HEADERS.
17473 # This happens for instance with `./config.status Makefile'.
17474 if test -n "$CONFIG_HEADERS"; then
17475 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17479 # Transform confdefs.h into an awk script `defines.awk', embedded as
17480 # here-document in config.status, that substitutes the proper values into
17481 # config.h.in to produce config.h.
17483 # Create a delimiter string that does not exist in confdefs.h, to ease
17484 # handling of long lines.
17486 for ac_last_try in false false :; do
17487 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17488 if test -z "$ac_tt"; then
17490 elif $ac_last_try; then
17491 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17493 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17497 # For the awk script, D is an array of macro values keyed by name,
17498 # likewise P contains macro parameters if any. Preserve backslash
17499 # newline sequences.
17501 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17503 s/.\{148\}/&'"$ac_delim"'/g
17506 s/^[ ]*#[ ]*define[ ][ ]*/ /
17513 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17515 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17519 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17520 D["\1"]=" \3\\\\\\n"\\/p
17522 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17527 s/.\{148\}/&'"$ac_delim"'/g
17532 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17535 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17537 ' <confdefs.h | sed '
17538 s/'"$ac_delim"'/"\\\
17539 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17542 for (key in D) D_is_set[key] = 1
17545 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17547 split(line, arg, " ")
17548 if (arg[1] == "#") {
17552 defundef = substr(arg[1], 2)
17555 split(mac1, mac2, "(") #)
17557 prefix = substr(line, 1, index(line, defundef) - 1)
17558 if (D_is_set[macro]) {
17559 # Preserve the white space surrounding the "#".
17560 print prefix "define", macro P[macro] D[macro]
17563 # Replace #undef with comments. This is necessary, for example,
17564 # in the case of _POSIX_SOURCE, which is predefined and required
17565 # on some systems where configure will not decide to define it.
17566 if (defundef == "undef") {
17567 print "/*", prefix defundef, macro, "*/"
17575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17576 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17577 fi # test -n "$CONFIG_HEADERS"
17580 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17585 :[FHLC]) ac_mode=$ac_tag; continue;;
17587 case $ac_mode$ac_tag in
17589 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17590 :[FH]-) ac_tag=-:-;;
17591 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17608 -) ac_f="$ac_tmp/stdin";;
17609 *) # Look for the file first in the build tree, then in the source tree
17610 # (if the path is not absolute). The absolute path cannot be DOS-style,
17611 # because $ac_f cannot contain `:'.
17615 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17617 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17619 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17620 as_fn_append ac_file_inputs " '$ac_f'"
17623 # Let's still pretend it is `configure' which instantiates (i.e., don't
17624 # use $as_me), people would be surprised to read:
17625 # /* config.h. Generated by config.status. */
17626 configure_input='Generated from '`
17627 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17629 if test x"$ac_file" != x-; then
17630 configure_input="$ac_file. $configure_input"
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17632 $as_echo "$as_me: creating $ac_file" >&6;}
17634 # Neutralize special characters interpreted by sed in replacement strings.
17635 case $configure_input in #(
17636 *\&* | *\|* | *\\* )
17637 ac_sed_conf_input=`$as_echo "$configure_input" |
17638 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17639 *) ac_sed_conf_input=$configure_input;;
17643 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17649 ac_dir=`$as_dirname -- "$ac_file" ||
17650 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17651 X"$ac_file" : 'X\(//\)[^/]' \| \
17652 X"$ac_file" : 'X\(//\)$' \| \
17653 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17654 $as_echo X"$ac_file" |
17655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17659 /^X\(\/\/\)[^/].*/{
17672 as_dir="$ac_dir"; as_fn_mkdir_p
17676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17678 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17679 # A ".." for each directory in $ac_dir_suffix.
17680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17681 case $ac_top_builddir_sub in
17682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17686 ac_abs_top_builddir=$ac_pwd
17687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17688 # for backward compatibility:
17689 ac_top_builddir=$ac_top_build_prefix
17692 .) # We are building in place.
17694 ac_top_srcdir=$ac_top_builddir_sub
17695 ac_abs_top_srcdir=$ac_pwd ;;
17696 [\\/]* | ?:[\\/]* ) # Absolute name.
17697 ac_srcdir=$srcdir$ac_dir_suffix;
17698 ac_top_srcdir=$srcdir
17699 ac_abs_top_srcdir=$srcdir ;;
17700 *) # Relative name.
17701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17702 ac_top_srcdir=$ac_top_build_prefix$srcdir
17703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17715 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17716 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17721 # If the template does not know about datarootdir, expand it.
17722 # FIXME: This hack should be removed a few years after 2.60.
17723 ac_datarootdir_hack=; ac_datarootdir_seen=
17734 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17735 *datarootdir*) ac_datarootdir_seen=yes;;
17736 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17738 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17741 ac_datarootdir_hack='
17742 s&@datadir@&$datadir&g
17743 s&@docdir@&$docdir&g
17744 s&@infodir@&$infodir&g
17745 s&@localedir@&$localedir&g
17746 s&@mandir@&$mandir&g
17747 s&\\\${datarootdir}&$datarootdir&g' ;;
17751 # Neutralize VPATH when `$srcdir' = `.'.
17752 # Shell code in configure.ac might set extrasub.
17753 # FIXME: do we really want to maintain this feature?
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755 ac_sed_extra="$ac_vpsub
17758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17761 s|@configure_input@|$ac_sed_conf_input|;t t
17762 s&@top_builddir@&$ac_top_builddir_sub&;t t
17763 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17764 s&@srcdir@&$ac_srcdir&;t t
17765 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17766 s&@top_srcdir@&$ac_top_srcdir&;t t
17767 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17768 s&@builddir@&$ac_builddir&;t t
17769 s&@abs_builddir@&$ac_abs_builddir&;t t
17770 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17771 s&@INSTALL@&$ac_INSTALL&;t t
17772 $ac_datarootdir_hack
17774 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17775 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17777 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17778 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17779 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17780 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17782 which seems to be undefined. Please make sure it is defined" >&5
17783 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17784 which seems to be undefined. Please make sure it is defined" >&2;}
17786 rm -f "$ac_tmp/stdin"
17788 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17789 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17797 if test x"$ac_file" != x-; then
17799 $as_echo "/* $configure_input */" \
17800 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17801 } >"$ac_tmp/config.h" \
17802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17803 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17805 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17808 mv "$ac_tmp/config.h" "$ac_file" \
17809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17812 $as_echo "/* $configure_input */" \
17813 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17814 || as_fn_error $? "could not create -" "$LINENO" 5
17818 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17819 $as_echo "$as_me: executing $ac_file commands" >&6;}
17824 case $ac_file$ac_mode in
17827 # See if we are running on zsh, and set the options which allow our
17828 # commands through without removal of \ escapes.
17829 if test -n "${ZSH_VERSION+set}" ; then
17830 setopt NO_GLOB_SUBST
17833 cfgfile="${ofile}T"
17834 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17837 cat <<_LT_EOF >> "$cfgfile"
17840 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17841 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17842 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17843 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17845 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17846 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17848 # Written by Gordon Matzigkeit, 1996
17850 # This file is part of GNU Libtool.
17852 # GNU Libtool is free software; you can redistribute it and/or
17853 # modify it under the terms of the GNU General Public License as
17854 # published by the Free Software Foundation; either version 2 of
17855 # the License, or (at your option) any later version.
17857 # As a special exception to the GNU General Public License,
17858 # if you distribute this file as part of a program or library that
17859 # is built using GNU Libtool, you may include this file under the
17860 # same distribution terms that you use for the rest of that program.
17862 # GNU Libtool is distributed in the hope that it will be useful,
17863 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17864 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17865 # GNU General Public License for more details.
17867 # You should have received a copy of the GNU General Public License
17868 # along with GNU Libtool; see the file COPYING. If not, a copy
17869 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17870 # obtained by writing to the Free Software Foundation, Inc.,
17871 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17874 # The names of the tagged configurations supported by this script.
17875 available_tags="CXX "
17877 # ### BEGIN LIBTOOL CONFIG
17879 # Assembler program.
17882 # DLL creation program.
17883 DLLTOOL=$lt_DLLTOOL
17885 # Object dumper program.
17886 OBJDUMP=$lt_OBJDUMP
17888 # Which release of libtool.m4 was used?
17889 macro_version=$macro_version
17890 macro_revision=$macro_revision
17892 # Whether or not to build shared libraries.
17893 build_libtool_libs=$enable_shared
17895 # Whether or not to build static libraries.
17896 build_old_libs=$enable_static
17898 # What type of objects to build.
17901 # Whether or not to optimize for fast installation.
17902 fast_install=$enable_fast_install
17904 # Shell to use when invoking shell scripts.
17907 # An echo program that protects backslashes.
17910 # The PATH separator for the build system.
17911 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17914 host_alias=$host_alias
17918 # The build system.
17919 build_alias=$build_alias
17923 # A sed program that does not truncate output.
17926 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17927 Xsed="\$SED -e 1s/^X//"
17929 # A grep program that handles long lines.
17935 # A literal string matcher.
17938 # A BSD- or MS-compatible name lister.
17941 # Whether we need soft or hard links.
17944 # What is the maximum length of a command?
17945 max_cmd_len=$max_cmd_len
17947 # Object file suffix (normally "o").
17950 # Executable file suffix (normally "").
17953 # whether the shell understands "unset".
17956 # turn spaces into newlines.
17959 # turn newlines into spaces.
17962 # convert \$build file names to \$host format.
17963 to_host_file_cmd=$lt_cv_to_host_file_cmd
17965 # convert \$build files to toolchain format.
17966 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17968 # Method to check whether dependent libraries are shared objects.
17969 deplibs_check_method=$lt_deplibs_check_method
17971 # Command to use when deplibs_check_method = "file_magic".
17972 file_magic_cmd=$lt_file_magic_cmd
17974 # How to find potential files when deplibs_check_method = "file_magic".
17975 file_magic_glob=$lt_file_magic_glob
17977 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17978 want_nocaseglob=$lt_want_nocaseglob
17980 # Command to associate shared and link libraries.
17981 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17986 # Flags to create an archive.
17987 AR_FLAGS=$lt_AR_FLAGS
17989 # How to feed a file listing to the archiver.
17990 archiver_list_spec=$lt_archiver_list_spec
17992 # A symbol stripping program.
17995 # Commands used to install an old-style archive.
17997 old_postinstall_cmds=$lt_old_postinstall_cmds
17998 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18000 # Whether to use a lock for old archive extraction.
18001 lock_old_archive_extraction=$lock_old_archive_extraction
18006 # LTCC compiler flags.
18007 LTCFLAGS=$lt_CFLAGS
18009 # Take the output of nm and produce a listing of raw symbols and C names.
18010 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18012 # Transform the output of nm in a proper C declaration.
18013 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18015 # Transform the output of nm in a C name address pair.
18016 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18018 # Transform the output of nm in a C name address pair when lib prefix is needed.
18019 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18021 # Specify filename containing input files for \$NM.
18022 nm_file_list_spec=$lt_nm_file_list_spec
18024 # The root where to search for dependent libraries,and in which our libraries should be installed.
18025 lt_sysroot=$lt_sysroot
18027 # The name of the directory that contains temporary libtool files.
18030 # Used to examine libraries when file_magic_cmd begins with "file".
18031 MAGIC_CMD=$MAGIC_CMD
18033 # Must we lock files when doing compilation?
18034 need_locks=$lt_need_locks
18037 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18039 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18040 DSYMUTIL=$lt_DSYMUTIL
18042 # Tool to change global to local symbols on Mac OS X.
18045 # Tool to manipulate fat objects and archives on Mac OS X.
18048 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18051 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18052 OTOOL64=$lt_OTOOL64
18054 # Old archive suffix (normally "a").
18057 # Shared library suffix (normally ".so").
18058 shrext_cmds=$lt_shrext_cmds
18060 # The commands to extract the exported symbol list from a shared archive.
18061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18063 # Variables whose values should be saved in libtool wrapper scripts and
18064 # restored at link time.
18065 variables_saved_for_relink=$lt_variables_saved_for_relink
18067 # Do we need the "lib" prefix for modules?
18068 need_lib_prefix=$need_lib_prefix
18070 # Do we need a version for libraries?
18071 need_version=$need_version
18073 # Library versioning type.
18074 version_type=$version_type
18076 # Shared library runtime path variable.
18077 runpath_var=$runpath_var
18079 # Shared library path variable.
18080 shlibpath_var=$shlibpath_var
18082 # Is shlibpath searched before the hard-coded library search path?
18083 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18085 # Format of library name prefix.
18086 libname_spec=$lt_libname_spec
18088 # List of archive names. First name is the real one, the rest are links.
18089 # The last name is the one that the linker finds with -lNAME
18090 library_names_spec=$lt_library_names_spec
18092 # The coded name of the library, if different from the real name.
18093 soname_spec=$lt_soname_spec
18095 # Permission mode override for installation of shared libraries.
18096 install_override_mode=$lt_install_override_mode
18098 # Command to use after installation of a shared archive.
18099 postinstall_cmds=$lt_postinstall_cmds
18101 # Command to use after uninstallation of a shared archive.
18102 postuninstall_cmds=$lt_postuninstall_cmds
18104 # Commands used to finish a libtool library installation in a directory.
18105 finish_cmds=$lt_finish_cmds
18107 # As "finish_cmds", except a single script fragment to be evaled but
18109 finish_eval=$lt_finish_eval
18111 # Whether we should hardcode library paths into libraries.
18112 hardcode_into_libs=$hardcode_into_libs
18114 # Compile-time system search path for libraries.
18115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18117 # Run-time system search path for libraries.
18118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18120 # Whether dlopen is supported.
18121 dlopen_support=$enable_dlopen
18123 # Whether dlopen of programs is supported.
18124 dlopen_self=$enable_dlopen_self
18126 # Whether dlopen of statically linked programs is supported.
18127 dlopen_self_static=$enable_dlopen_self_static
18129 # Commands to strip libraries.
18130 old_striplib=$lt_old_striplib
18131 striplib=$lt_striplib
18134 # The linker used to build libraries.
18137 # How to create reloadable object files.
18138 reload_flag=$lt_reload_flag
18139 reload_cmds=$lt_reload_cmds
18141 # Commands used to build an old-style archive.
18142 old_archive_cmds=$lt_old_archive_cmds
18144 # A language specific compiler.
18147 # Is the compiler the GNU compiler?
18150 # Compiler flag to turn off builtin functions.
18151 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18153 # Additional compiler flags for building library objects.
18154 pic_flag=$lt_lt_prog_compiler_pic
18156 # How to pass a linker flag through the compiler.
18157 wl=$lt_lt_prog_compiler_wl
18159 # Compiler flag to prevent dynamic linking.
18160 link_static_flag=$lt_lt_prog_compiler_static
18162 # Does compiler simultaneously support -c and -o options?
18163 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18165 # Whether or not to add -lc for building shared libraries.
18166 build_libtool_need_lc=$archive_cmds_need_lc
18168 # Whether or not to disallow shared libs when runtime libs are static.
18169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18171 # Compiler flag to allow reflexive dlopens.
18172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18174 # Compiler flag to generate shared objects directly from archives.
18175 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18177 # Whether the compiler copes with passing no objects directly.
18178 compiler_needs_object=$lt_compiler_needs_object
18180 # Create an old-style archive from a shared archive.
18181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18183 # Create a temporary old-style archive to link instead of a shared archive.
18184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18186 # Commands used to build a shared archive.
18187 archive_cmds=$lt_archive_cmds
18188 archive_expsym_cmds=$lt_archive_expsym_cmds
18190 # Commands used to build a loadable module if different from building
18191 # a shared archive.
18192 module_cmds=$lt_module_cmds
18193 module_expsym_cmds=$lt_module_expsym_cmds
18195 # Whether we are building with GNU ld or not.
18196 with_gnu_ld=$lt_with_gnu_ld
18198 # Flag that allows shared libraries with undefined symbols to be built.
18199 allow_undefined_flag=$lt_allow_undefined_flag
18201 # Flag that enforces no undefined symbols.
18202 no_undefined_flag=$lt_no_undefined_flag
18204 # Flag to hardcode \$libdir into a binary during linking.
18205 # This must work even if \$libdir does not exist
18206 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18208 # Whether we need a single "-rpath" flag with a separated argument.
18209 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18212 # DIR into the resulting binary.
18213 hardcode_direct=$hardcode_direct
18215 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18216 # DIR into the resulting binary and the resulting library dependency is
18217 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18218 # library is relocated.
18219 hardcode_direct_absolute=$hardcode_direct_absolute
18221 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18222 # into the resulting binary.
18223 hardcode_minus_L=$hardcode_minus_L
18225 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18226 # into the resulting binary.
18227 hardcode_shlibpath_var=$hardcode_shlibpath_var
18229 # Set to "yes" if building a shared library automatically hardcodes DIR
18230 # into the library and all subsequent libraries and executables linked
18232 hardcode_automatic=$hardcode_automatic
18234 # Set to yes if linker adds runtime paths of dependent libraries
18235 # to runtime path list.
18236 inherit_rpath=$inherit_rpath
18238 # Whether libtool must link a program against all its dependency libraries.
18239 link_all_deplibs=$link_all_deplibs
18241 # Set to "yes" if exported symbols are required.
18242 always_export_symbols=$always_export_symbols
18244 # The commands to list exported symbols.
18245 export_symbols_cmds=$lt_export_symbols_cmds
18247 # Symbols that should not be listed in the preloaded symbols.
18248 exclude_expsyms=$lt_exclude_expsyms
18250 # Symbols that must always be exported.
18251 include_expsyms=$lt_include_expsyms
18253 # Commands necessary for linking programs (against libraries) with templates.
18254 prelink_cmds=$lt_prelink_cmds
18256 # Commands necessary for finishing linking programs.
18257 postlink_cmds=$lt_postlink_cmds
18259 # Specify filename containing input files.
18260 file_list_spec=$lt_file_list_spec
18262 # How to hardcode a shared library path into an executable.
18263 hardcode_action=$hardcode_action
18265 # The directories searched by this compiler when creating a shared library.
18266 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18268 # Dependencies to place before and after the objects being linked to
18269 # create a shared library.
18270 predep_objects=$lt_predep_objects
18271 postdep_objects=$lt_postdep_objects
18272 predeps=$lt_predeps
18273 postdeps=$lt_postdeps
18275 # The library search path used internally by the compiler when linking
18276 # a shared library.
18277 compiler_lib_search_path=$lt_compiler_lib_search_path
18279 # ### END LIBTOOL CONFIG
18285 cat <<\_LT_EOF >> "$cfgfile"
18286 # AIX sometimes has problems with the GCC collect2 program. For some
18287 # reason, if we set the COLLECT_NAMES environment variable, the problems
18288 # vanish in a puff of smoke.
18289 if test "X${COLLECT_NAMES+set}" != Xset; then
18291 export COLLECT_NAMES
18298 ltmain="$ac_aux_dir/ltmain.sh"
18301 # We use sed instead of cat because bash on DJGPP gets confused if
18302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18303 # text mode, it properly converts lines to CR/LF. This bash problem
18304 # is reportedly fixed, but why not run on old versions too?
18305 sed '$q' "$ltmain" >> "$cfgfile" \
18306 || (rm -f "$cfgfile"; exit 1)
18308 if test x"$xsi_shell" = xyes; then
18309 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18313 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18314 \ * ) func_dirname_result="${3}" ;;\
18316 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18317 && mv -f "$cfgfile.tmp" "$cfgfile" \
18318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18319 test 0 -eq $? || _lt_function_replace_fail=:
18322 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18325 \ func_basename_result="${1##*/}"\
18326 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18327 && mv -f "$cfgfile.tmp" "$cfgfile" \
18328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18329 test 0 -eq $? || _lt_function_replace_fail=:
18332 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18333 func_dirname_and_basename ()\
18336 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18337 \ * ) func_dirname_result="${3}" ;;\
18339 \ func_basename_result="${1##*/}"\
18340 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18341 && mv -f "$cfgfile.tmp" "$cfgfile" \
18342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18343 test 0 -eq $? || _lt_function_replace_fail=:
18346 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18349 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18350 \ # positional parameters, so assign one to ordinary parameter first.\
18351 \ func_stripname_result=${3}\
18352 \ func_stripname_result=${func_stripname_result#"${1}"}\
18353 \ func_stripname_result=${func_stripname_result%"${2}"}\
18354 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18355 && mv -f "$cfgfile.tmp" "$cfgfile" \
18356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18357 test 0 -eq $? || _lt_function_replace_fail=:
18360 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18361 func_split_long_opt ()\
18363 \ func_split_long_opt_name=${1%%=*}\
18364 \ func_split_long_opt_arg=${1#*=}\
18365 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18366 && mv -f "$cfgfile.tmp" "$cfgfile" \
18367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18368 test 0 -eq $? || _lt_function_replace_fail=:
18371 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18372 func_split_short_opt ()\
18374 \ func_split_short_opt_arg=${1#??}\
18375 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18376 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18377 && mv -f "$cfgfile.tmp" "$cfgfile" \
18378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18379 test 0 -eq $? || _lt_function_replace_fail=:
18382 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18386 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18387 \ *) func_lo2o_result=${1} ;;\
18389 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18390 && mv -f "$cfgfile.tmp" "$cfgfile" \
18391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18392 test 0 -eq $? || _lt_function_replace_fail=:
18395 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18398 func_xform_result=${1%.*}.lo\
18399 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18400 && mv -f "$cfgfile.tmp" "$cfgfile" \
18401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18402 test 0 -eq $? || _lt_function_replace_fail=:
18405 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18408 func_arith_result=$(( $* ))\
18409 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18410 && mv -f "$cfgfile.tmp" "$cfgfile" \
18411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18412 test 0 -eq $? || _lt_function_replace_fail=:
18415 sed -e '/^func_len ()$/,/^} # func_len /c\
18418 func_len_result=${#1}\
18419 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18420 && mv -f "$cfgfile.tmp" "$cfgfile" \
18421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18422 test 0 -eq $? || _lt_function_replace_fail=:
18426 if test x"$lt_shell_append" = xyes; then
18427 sed -e '/^func_append ()$/,/^} # func_append /c\
18430 eval "${1}+=\\${2}"\
18431 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18432 && mv -f "$cfgfile.tmp" "$cfgfile" \
18433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18434 test 0 -eq $? || _lt_function_replace_fail=:
18437 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18438 func_append_quoted ()\
18440 \ func_quote_for_eval "${2}"\
18441 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18442 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18443 && mv -f "$cfgfile.tmp" "$cfgfile" \
18444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18445 test 0 -eq $? || _lt_function_replace_fail=:
18448 # Save a `func_append' function call where possible by direct use of '+='
18449 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18450 && mv -f "$cfgfile.tmp" "$cfgfile" \
18451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18452 test 0 -eq $? || _lt_function_replace_fail=:
18454 # Save a `func_append' function call even when '+=' is not available
18455 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18456 && mv -f "$cfgfile.tmp" "$cfgfile" \
18457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18458 test 0 -eq $? || _lt_function_replace_fail=:
18461 if test x"$_lt_function_replace_fail" = x":"; then
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18463 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18467 mv -f "$cfgfile" "$ofile" ||
18468 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18472 cat <<_LT_EOF >> "$ofile"
18474 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18476 # The linker used to build libraries.
18479 # How to create reloadable object files.
18480 reload_flag=$lt_reload_flag_CXX
18481 reload_cmds=$lt_reload_cmds_CXX
18483 # Commands used to build an old-style archive.
18484 old_archive_cmds=$lt_old_archive_cmds_CXX
18486 # A language specific compiler.
18487 CC=$lt_compiler_CXX
18489 # Is the compiler the GNU compiler?
18492 # Compiler flag to turn off builtin functions.
18493 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18495 # Additional compiler flags for building library objects.
18496 pic_flag=$lt_lt_prog_compiler_pic_CXX
18498 # How to pass a linker flag through the compiler.
18499 wl=$lt_lt_prog_compiler_wl_CXX
18501 # Compiler flag to prevent dynamic linking.
18502 link_static_flag=$lt_lt_prog_compiler_static_CXX
18504 # Does compiler simultaneously support -c and -o options?
18505 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18507 # Whether or not to add -lc for building shared libraries.
18508 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18510 # Whether or not to disallow shared libs when runtime libs are static.
18511 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18513 # Compiler flag to allow reflexive dlopens.
18514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18516 # Compiler flag to generate shared objects directly from archives.
18517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18519 # Whether the compiler copes with passing no objects directly.
18520 compiler_needs_object=$lt_compiler_needs_object_CXX
18522 # Create an old-style archive from a shared archive.
18523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18525 # Create a temporary old-style archive to link instead of a shared archive.
18526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18528 # Commands used to build a shared archive.
18529 archive_cmds=$lt_archive_cmds_CXX
18530 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18532 # Commands used to build a loadable module if different from building
18533 # a shared archive.
18534 module_cmds=$lt_module_cmds_CXX
18535 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18537 # Whether we are building with GNU ld or not.
18538 with_gnu_ld=$lt_with_gnu_ld_CXX
18540 # Flag that allows shared libraries with undefined symbols to be built.
18541 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18543 # Flag that enforces no undefined symbols.
18544 no_undefined_flag=$lt_no_undefined_flag_CXX
18546 # Flag to hardcode \$libdir into a binary during linking.
18547 # This must work even if \$libdir does not exist
18548 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18550 # Whether we need a single "-rpath" flag with a separated argument.
18551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18553 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18554 # DIR into the resulting binary.
18555 hardcode_direct=$hardcode_direct_CXX
18557 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18558 # DIR into the resulting binary and the resulting library dependency is
18559 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18560 # library is relocated.
18561 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18563 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18564 # into the resulting binary.
18565 hardcode_minus_L=$hardcode_minus_L_CXX
18567 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18568 # into the resulting binary.
18569 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18571 # Set to "yes" if building a shared library automatically hardcodes DIR
18572 # into the library and all subsequent libraries and executables linked
18574 hardcode_automatic=$hardcode_automatic_CXX
18576 # Set to yes if linker adds runtime paths of dependent libraries
18577 # to runtime path list.
18578 inherit_rpath=$inherit_rpath_CXX
18580 # Whether libtool must link a program against all its dependency libraries.
18581 link_all_deplibs=$link_all_deplibs_CXX
18583 # Set to "yes" if exported symbols are required.
18584 always_export_symbols=$always_export_symbols_CXX
18586 # The commands to list exported symbols.
18587 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18589 # Symbols that should not be listed in the preloaded symbols.
18590 exclude_expsyms=$lt_exclude_expsyms_CXX
18592 # Symbols that must always be exported.
18593 include_expsyms=$lt_include_expsyms_CXX
18595 # Commands necessary for linking programs (against libraries) with templates.
18596 prelink_cmds=$lt_prelink_cmds_CXX
18598 # Commands necessary for finishing linking programs.
18599 postlink_cmds=$lt_postlink_cmds_CXX
18601 # Specify filename containing input files.
18602 file_list_spec=$lt_file_list_spec_CXX
18604 # How to hardcode a shared library path into an executable.
18605 hardcode_action=$hardcode_action_CXX
18607 # The directories searched by this compiler when creating a shared library.
18608 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18610 # Dependencies to place before and after the objects being linked to
18611 # create a shared library.
18612 predep_objects=$lt_predep_objects_CXX
18613 postdep_objects=$lt_postdep_objects_CXX
18614 predeps=$lt_predeps_CXX
18615 postdeps=$lt_postdeps_CXX
18617 # The library search path used internally by the compiler when linking
18618 # a shared library.
18619 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18621 # ### END LIBTOOL TAG CONFIG: CXX
18632 ac_clean_files=$ac_clean_files_save
18634 test $ac_write_fail = 0 ||
18635 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18638 # configure is writing to config.log, and then calls config.status.
18639 # config.status does its own redirection, appending to config.log.
18640 # Unfortunately, on DOS this fails, as config.log is still kept open
18641 # by configure, so config.status won't be able to write to it; its
18642 # output is simply discarded. So we exec the FD to /dev/null,
18643 # effectively closing config.log, so it can be properly (re)opened and
18644 # appended to by config.status. When coming back to configure, we
18645 # need to make the FD available again.
18646 if test "$no_create" != yes; then
18648 ac_config_status_args=
18649 test "$silent" = yes &&
18650 ac_config_status_args="$ac_config_status_args --quiet"
18652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18655 # would make configure fail if this is the last instruction.
18656 $ac_cs_success || as_fn_exit 1
18658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18664 abs_srcdir="`cd $srcdir && pwd`"
18665 abs_builddir="`pwd`"
18666 if test "$abs_srcdir" != "$abs_builddir"; then