2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for expat 2.2.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.2.1'
594 PACKAGE_STRING='expat 2.2.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
717 program_transform_name
730 enable_option_checking
742 ac_precious_vars='build_alias
758 # Initialize some variables set by options.
760 ac_init_version=false
761 ac_unrecognized_opts=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
772 program_transform_name=s,x,x,
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir='${datarootdir}/info'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
810 # If the previous option needs an argument, assign it.
811 if test -n "$ac_prev"; then
812 eval $ac_prev=\$ac_option
818 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 # Accept the important Cygnus configure options, so we can diagnose typos.
825 case $ac_dashdash$ac_option in
829 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834 -build | --build | --buil | --bui | --bu)
835 ac_prev=build_alias ;;
836 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837 build_alias=$ac_optarg ;;
839 -cache-file | --cache-file | --cache-fil | --cache-fi \
840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841 ac_prev=cache_file ;;
842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844 cache_file=$ac_optarg ;;
847 cache_file=config.cache ;;
849 -datadir | --datadir | --datadi | --datad)
851 -datadir=* | --datadir=* | --datadi=* | --datad=*)
852 datadir=$ac_optarg ;;
854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855 | --dataroo | --dataro | --datar)
856 ac_prev=datarootdir ;;
857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859 datarootdir=$ac_optarg ;;
861 -disable-* | --disable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error $? "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
875 eval enable_$ac_useropt=no ;;
877 -docdir | --docdir | --docdi | --doc | --do)
879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887 -enable-* | --enable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
901 eval enable_$ac_useropt=\$ac_optarg ;;
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
916 -help | --help | --hel | --he | -h)
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 htmldir=$ac_optarg ;;
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
946 -libdir | --libdir | --libdi | --libd)
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
958 -localedir | --localedir | --localedi | --localed | --locale)
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 # Obsolete; use --without-fp.
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1037 -psdir | --psdir | --psdi | --psd | --ps)
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 sbindir=$ac_optarg ;;
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 sharedstatedir=$ac_optarg ;;
1063 -site | --site | --sit)
1065 -site=* | --site=* | --sit=*)
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071 srcdir=$ac_optarg ;;
1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078 sysconfdir=$ac_optarg ;;
1080 -target | --target | --targe | --targ | --tar | --ta | --t)
1081 ac_prev=target_alias ;;
1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083 target_alias=$ac_optarg ;;
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
1092 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1105 eval with_$ac_useropt=\$ac_optarg ;;
1107 -without-* | --without-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1121 eval with_$ac_useropt=no ;;
1124 # Obsolete; use --with-x.
1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128 | --x-incl | --x-inc | --x-in | --x-i)
1129 ac_prev=x_includes ;;
1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132 x_includes=$ac_optarg ;;
1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136 ac_prev=x_libraries ;;
1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139 x_libraries=$ac_optarg ;;
1141 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 case $ac_envvar in #(
1149 '' | [0-9]* | *[!_$as_cr_alnum]* )
1150 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152 eval $ac_envvar=\$ac_optarg
1153 export $ac_envvar ;;
1156 # FIXME: should be removed in autoconf 3.0.
1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166 if test -n "$ac_prev"; then
1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168 as_fn_error $? "missing argument to $ac_option"
1171 if test -n "$ac_unrecognized_opts"; then
1172 case $enable_option_checking in
1174 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 # Check all directory arguments for consistency.
1180 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1185 eval ac_val=\$$ac_var
1186 # Remove trailing slashes.
1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190 eval $ac_var=\$ac_val;;
1192 # Be sure to have absolute directory names.
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1205 target=$target_alias
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209 if test "x$build_alias" = x; then
1210 cross_compiling=maybe
1211 elif test "x$build_alias" != "x$host_alias"; then
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219 test "$silent" = yes && exec 6>/dev/null
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225 as_fn_error $? "working directory cannot be determined"
1226 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227 as_fn_error $? "pwd does not report name of working directory"
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232 ac_srcdir_defaulted=yes
1233 # Try the directory containing this script, then the parent directory.
1234 ac_confdir=`$as_dirname -- "$as_myself" ||
1235 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$as_myself" : 'X\(//\)[^/]' \| \
1237 X"$as_myself" : 'X\(//\)$' \| \
1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239 $as_echo X"$as_myself" |
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1262 ac_srcdir_defaulted=no
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1268 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1280 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 for ac_var in $ac_precious_vars; do
1283 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_env_${ac_var}_value=\$${ac_var}
1285 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290 # Report the --help message.
1292 if test "$ac_init_help" = "long"; then
1293 # Omit some internal or obsolete options to make the list less imposing.
1294 # This message is too long to be a string in the A/UX 3.1 sh.
1296 \`configure' configures expat 2.2.1 to adapt to many kinds of systems.
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE. See below for descriptions of some of the useful variables.
1303 Defaults for the options are specified in brackets.
1306 -h, --help display this help and exit
1307 --help=short display options specific to this package
1308 --help=recursive display the short help of all the included packages
1309 -V, --version display version information and exit
1310 -q, --quiet, --silent do not print \`checking ...' messages
1311 --cache-file=FILE cache test results in FILE [disabled]
1312 -C, --config-cache alias for \`--cache-file=config.cache'
1313 -n, --no-create do not create output files
1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1316 Installation directories:
1317 --prefix=PREFIX install architecture-independent files in PREFIX
1318 [$ac_default_prefix]
1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1327 For better control, use the options below.
1329 Fine tuning of the installation directories:
1330 --bindir=DIR user executables [EPREFIX/bin]
1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1336 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1344 --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
1345 --htmldir=DIR html documentation [DOCDIR]
1346 --dvidir=DIR dvi documentation [DOCDIR]
1347 --pdfdir=DIR pdf documentation [DOCDIR]
1348 --psdir=DIR ps documentation [DOCDIR]
1354 --build=BUILD configure for building on BUILD [guessed]
1355 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1359 if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive ) echo "Configuration of expat 2.2.1:";;
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --enable-shared[=PKGS] build shared libraries [default=yes]
1370 --enable-static[=PKGS] build static libraries [default=yes]
1371 --enable-fast-install[=PKGS]
1372 optimize for fast installation [default=yes]
1373 --disable-libtool-lock avoid locking (might break parallel builds)
1374 --enable-xml-context [COUNT]
1375 Retain context around the current parse point;
1376 default is enabled and a size of 1024 bytes
1377 --disable-xml-context Do not retain context around the current parse point
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1382 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1384 --with-aix-soname=aix|svr4|both
1385 shared library versioning (aka "SONAME") variant to
1386 provide on AIX, [default=aix].
1387 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1388 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1389 compiler's sysroot if not specified).
1391 --with-libbsd utilize libbsd (for arc4random_buf)
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1403 User-defined run-time library search path.
1405 CXX C++ compiler command
1406 CXXFLAGS C++ compiler flags
1407 CXXCPP C++ preprocessor
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1412 Report bugs to <expat-bugs@libexpat.org>.
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1442 .) # We are building in place.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1475 expat configure 2.2.1
1476 generated by GNU Autoconf 2.69
1478 Copyright (C) 2012 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523 as_fn_set_status $ac_retval
1525 } # ac_fn_c_try_compile
1527 # ac_fn_c_try_link LINENO
1528 # -----------------------
1529 # Try to link conftest.$ac_ext, and return whether this succeeded.
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext conftest$ac_exeext
1534 if { { ac_try="$ac_link"
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_link") 2>conftest.err
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest$ac_exeext && {
1553 test "$cross_compiling" = yes ||
1554 test -x conftest$ac_exeext
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1563 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1564 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1565 # interfere with the next link command; also delete a directory that is
1566 # left behind by Apple's compiler. We do this before executing the actions.
1567 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
1571 } # ac_fn_c_try_link
1573 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1574 # -------------------------------------------------------
1575 # Tests whether HEADER exists and can be compiled using the include files in
1576 # INCLUDES, setting the cache variable VAR accordingly.
1577 ac_fn_c_check_header_compile ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1581 $as_echo_n "checking for $2... " >&6; }
1582 if eval \${$3+:} false; then :
1583 $as_echo_n "(cached) " >&6
1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h. */
1590 if ac_fn_c_try_compile "$LINENO"; then :
1595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 $as_echo "$ac_res" >&6; }
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 } # ac_fn_c_check_header_compile
1604 # ac_fn_c_try_cpp LINENO
1605 # ----------------------
1606 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if { { ac_try="$ac_cpp conftest.$ac_ext"
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } > conftest.i && {
1626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1641 # ac_fn_c_try_run LINENO
1642 # ----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1644 # that executables *can* be run.
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_link"
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>&5
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1659 { { case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_try") 2>&5
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; }; }; then :
1671 $as_echo "$as_me: program exited with status $ac_status" >&5
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1675 ac_retval=$ac_status
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1683 # ac_fn_c_check_func LINENO FUNC VAR
1684 # ----------------------------------
1685 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1686 ac_fn_c_check_func ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1698 #define $2 innocuous_$2
1700 /* System header to define __stub macros and hopefully few prototypes,
1701 which can conflict with char $2 (); below.
1702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1703 <limits.h> exists even on freestanding compilers. */
1706 # include <limits.h>
1708 # include <assert.h>
1713 /* Override any GCC internal prototype to avoid an error.
1714 Use char because int might match the return type of a GCC
1715 builtin and then its argument prototype would still apply. */
1720 /* The GNU C library defines this for functions which it implements
1721 to always fail with ENOSYS. Some functions are actually named
1722 something starting with __ and the normal name is an alias. */
1723 #if defined __stub_$2 || defined __stub___$2
1735 if ac_fn_c_try_link "$LINENO"; then :
1740 rm -f core conftest.err conftest.$ac_objext \
1741 conftest$ac_exeext conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 } # ac_fn_c_check_func
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1786 } # ac_fn_cxx_try_compile
1788 # ac_fn_cxx_try_cpp LINENO
1789 # ------------------------
1790 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_cxx_try_cpp ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_cpp conftest.$ac_ext"
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } > conftest.i && {
1810 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1811 test ! -s conftest.err
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1823 } # ac_fn_cxx_try_cpp
1825 # ac_fn_cxx_try_link LINENO
1826 # -------------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_link ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 test -x conftest$ac_exeext
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_cxx_try_link
1871 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1872 # -------------------------------------------
1873 # Tests whether TYPE exists after having included INCLUDES, setting cache
1874 # variable VAR accordingly.
1875 ac_fn_c_check_type ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1909 if ac_fn_c_try_compile "$LINENO"; then :
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_type
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1930 ac_fn_c_check_header_mongrel ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if eval \${$3+:} false; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1954 ac_header_compiler=no
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1970 ac_header_preproc=no
1972 rm -f conftest.err conftest.i conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 ( $as_echo "## -------------------------------------- ##
1996 ## Report this to expat-bugs@libexpat.org ##
1997 ## -------------------------------------- ##"
1998 ) | sed "s/^/$as_me: WARNING: /" >&2
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2006 eval "$3=\$ac_header_compiler"
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 } # ac_fn_c_check_header_mongrel
2015 cat >config.log <<_ACEOF
2016 This file contains any messages produced by compilers while
2017 running configure, to aid debugging if configure makes a mistake.
2019 It was created by expat $as_me 2.2.1, which was
2020 generated by GNU Autoconf 2.69. Invocation command line was
2032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2041 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2042 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2044 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2045 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2046 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2047 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 $as_echo "PATH: $as_dir"
2072 # Keep a trace of the command line.
2073 # Strip out --no-create and --no-recursion so they do not pile up.
2074 # Strip out --silent because we don't want to record it for future runs.
2075 # Also quote any args containing shell meta-characters.
2076 # Make two passes to allow for proper duplicate-argument suppression.
2080 ac_must_keep_next=false
2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088 | -silent | --silent | --silen | --sile | --sil)
2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2096 as_fn_append ac_configure_args1 " '$ac_arg'"
2097 if test $ac_must_keep_next = true; then
2098 ac_must_keep_next=false # Got value, back to normal.
2101 *=* | --config-cache | -C | -disable-* | --disable-* \
2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104 | -with-* | --with-* | -without-* | --without-* | --x)
2105 case "$ac_configure_args0 " in
2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 -* ) ac_must_keep_next=true ;;
2112 as_fn_append ac_configure_args " '$ac_arg'"
2117 { ac_configure_args0=; unset ac_configure_args0;}
2118 { ac_configure_args1=; unset ac_configure_args1;}
2120 # When interrupted or exit'd, cleanup temporary files, and complete
2121 # config.log. We remove comments because anyway the quotes in there
2122 # would cause problems or look ugly.
2123 # WARNING: Use '\'' to represent an apostrophe within the trap.
2124 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2125 trap 'exit_status=$?
2126 # Save into config.log some information that might help in debugging.
2130 $as_echo "## ---------------- ##
2131 ## Cache variables. ##
2132 ## ---------------- ##"
2134 # The following way of writing the cache mishandles newlines in values,
2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2137 eval ac_val=\$$ac_var
2141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 _ | IFS | as_nl) ;; #(
2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2147 *) { eval $ac_var=; unset $ac_var;} ;;
2152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2153 *${as_nl}ac_space=\ *)
2155 "s/'\''/'\''\\\\'\'''\''/g;
2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2166 $as_echo "## ----------------- ##
2167 ## Output variables. ##
2168 ## ----------------- ##"
2170 for ac_var in $ac_subst_vars
2172 eval ac_val=\$$ac_var
2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 $as_echo "$ac_var='\''$ac_val'\''"
2180 if test -n "$ac_subst_files"; then
2181 $as_echo "## ------------------- ##
2182 ## File substitutions. ##
2183 ## ------------------- ##"
2185 for ac_var in $ac_subst_files
2187 eval ac_val=\$$ac_var
2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 $as_echo "$ac_var='\''$ac_val'\''"
2196 if test -s confdefs.h; then
2197 $as_echo "## ----------- ##
2204 test "$ac_signal" != 0 &&
2205 $as_echo "$as_me: caught signal $ac_signal"
2206 $as_echo "$as_me: exit $exit_status"
2208 rm -f core *.core core.conftest.* &&
2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2212 for ac_signal in 1 2 13 15; do
2213 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2218 rm -f -r conftest* confdefs.h
2220 $as_echo "/* confdefs.h */" > confdefs.h
2222 # Predefined preprocessor variables.
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_NAME "$PACKAGE_NAME"
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_STRING "$PACKAGE_STRING"
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_URL "$PACKAGE_URL"
2249 # Let the site file select an alternate cache file if it wants to.
2250 # Prefer an explicitly selected file to automatically selected ones.
2253 if test -n "$CONFIG_SITE"; then
2254 # We do not want a PATH search for config.site.
2255 case $CONFIG_SITE in #((
2256 -*) ac_site_file1=./$CONFIG_SITE;;
2257 */*) ac_site_file1=$CONFIG_SITE;;
2258 *) ac_site_file1=./$CONFIG_SITE;;
2260 elif test "x$prefix" != xNONE; then
2261 ac_site_file1=$prefix/share/config.site
2262 ac_site_file2=$prefix/etc/config.site
2264 ac_site_file1=$ac_default_prefix/share/config.site
2265 ac_site_file2=$ac_default_prefix/etc/config.site
2267 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2269 test "x$ac_site_file" = xNONE && continue
2270 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2272 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2273 sed 's/^/| /' "$ac_site_file" >&5
2275 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277 as_fn_error $? "failed to load site script $ac_site_file
2278 See \`config.log' for more details" "$LINENO" 5; }
2282 if test -r "$cache_file"; then
2283 # Some versions of bash will fail to source /dev/null (special files
2284 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2285 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2287 $as_echo "$as_me: loading cache $cache_file" >&6;}
2289 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2290 *) . "./$cache_file";;
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2295 $as_echo "$as_me: creating cache $cache_file" >&6;}
2299 as_fn_append ac_header_list " stdlib.h"
2300 as_fn_append ac_header_list " unistd.h"
2301 as_fn_append ac_header_list " sys/param.h"
2302 # Check that the precious variables saved in the cache have kept the same
2304 ac_cache_corrupted=false
2305 for ac_var in $ac_precious_vars; do
2306 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2307 eval ac_new_set=\$ac_env_${ac_var}_set
2308 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2309 eval ac_new_val=\$ac_env_${ac_var}_value
2310 case $ac_old_set,$ac_new_set in
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2313 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2314 ac_cache_corrupted=: ;;
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2321 if test "x$ac_old_val" != "x$ac_new_val"; then
2322 # differences in whitespace do not lead to failure.
2323 ac_old_val_w=`echo x $ac_old_val`
2324 ac_new_val_w=`echo x $ac_new_val`
2325 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2327 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328 ac_cache_corrupted=:
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2331 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2332 eval $ac_var=\$ac_old_val
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2335 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2337 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2340 # Pass precious variables to config.status.
2341 if test "$ac_new_set" = set; then
2343 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2344 *) ac_arg=$ac_var=$ac_new_val ;;
2346 case " $ac_configure_args " in
2347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2348 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2352 if $ac_cache_corrupted; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2356 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2357 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2359 ## -------------------- ##
2360 ## Main body of script. ##
2361 ## -------------------- ##
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374 for ac_dir in conftools "$srcdir"/conftools; do
2375 if test -f "$ac_dir/install-sh"; then
2377 ac_install_sh="$ac_aux_dir/install-sh -c"
2379 elif test -f "$ac_dir/install.sh"; then
2381 ac_install_sh="$ac_aux_dir/install.sh -c"
2383 elif test -f "$ac_dir/shtool"; then
2385 ac_install_sh="$ac_aux_dir/shtool install -c"
2389 if test -z "$ac_aux_dir"; then
2390 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2393 # These three variables are undocumented and unsupported,
2394 # and are intended to be withdrawn in a future Autoconf release.
2395 # They can cause serious problems if a builder's source tree is in a directory
2396 # whose full name contains unusual characters.
2397 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2398 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2399 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2407 LIBREVISION=3 # with
2408 LIBAGE=6 # CMakeLists.txt!
2410 ac_config_headers="$ac_config_headers expat_config.h"
2416 # Make sure we can run config.sub.
2417 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2418 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2421 $as_echo_n "checking build system type... " >&6; }
2422 if ${ac_cv_build+:} false; then :
2423 $as_echo_n "(cached) " >&6
2425 ac_build_alias=$build_alias
2426 test "x$ac_build_alias" = x &&
2427 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2428 test "x$ac_build_alias" = x &&
2429 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2435 $as_echo "$ac_cv_build" >&6; }
2436 case $ac_cv_build in
2438 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2441 ac_save_IFS=$IFS; IFS='-'
2447 # Remember, the first character of IFS is used to create $*,
2448 # except with old shells:
2451 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2455 $as_echo_n "checking host system type... " >&6; }
2456 if ${ac_cv_host+:} false; then :
2457 $as_echo_n "(cached) " >&6
2459 if test "x$host_alias" = x; then
2460 ac_cv_host=$ac_cv_build
2462 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2468 $as_echo "$ac_cv_host" >&6; }
2471 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2474 ac_save_IFS=$IFS; IFS='-'
2480 # Remember, the first character of IFS is used to create $*,
2481 # except with old shells:
2484 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2487 enable_win32_dll=yes
2490 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}as; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_AS+:} false; then :
2497 $as_echo_n "(cached) " >&6
2499 if test -n "$AS"; then
2500 ac_cv_prog_AS="$AS" # Let the user override the test.
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509 ac_cv_prog_AS="${ac_tool_prefix}as"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 if test -n "$AS"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2522 $as_echo "$AS" >&6; }
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2530 if test -z "$ac_cv_prog_AS"; then
2532 # Extract the first word of "as", so it can be a program name with args.
2533 set dummy as; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2537 $as_echo_n "(cached) " >&6
2539 if test -n "$ac_ct_AS"; then
2540 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549 ac_cv_prog_ac_ct_AS="as"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2560 if test -n "$ac_ct_AS"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
2562 $as_echo "$ac_ct_AS" >&6; }
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2568 if test "x$ac_ct_AS" = x; then
2571 case $cross_compiling:$ac_tool_warned in
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2575 ac_tool_warned=yes ;;
2583 if test -n "$ac_tool_prefix"; then
2584 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_DLLTOOL+:} false; then :
2589 $as_echo_n "(cached) " >&6
2591 if test -n "$DLLTOOL"; then
2592 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 DLLTOOL=$ac_cv_prog_DLLTOOL
2612 if test -n "$DLLTOOL"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2614 $as_echo "$DLLTOOL" >&6; }
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2622 if test -z "$ac_cv_prog_DLLTOOL"; then
2623 ac_ct_DLLTOOL=$DLLTOOL
2624 # Extract the first word of "dlltool", so it can be a program name with args.
2625 set dummy dlltool; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2629 $as_echo_n "(cached) " >&6
2631 if test -n "$ac_ct_DLLTOOL"; then
2632 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2652 if test -n "$ac_ct_DLLTOOL"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2654 $as_echo "$ac_ct_DLLTOOL" >&6; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2660 if test "x$ac_ct_DLLTOOL" = x; then
2663 case $cross_compiling:$ac_tool_warned in
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667 ac_tool_warned=yes ;;
2669 DLLTOOL=$ac_ct_DLLTOOL
2672 DLLTOOL="$ac_cv_prog_DLLTOOL"
2675 if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_OBJDUMP+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 if test -n "$OBJDUMP"; then
2684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 OBJDUMP=$ac_cv_prog_OBJDUMP
2704 if test -n "$OBJDUMP"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
2706 $as_echo "$OBJDUMP" >&6; }
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2714 if test -z "$ac_cv_prog_OBJDUMP"; then
2715 ac_ct_OBJDUMP=$OBJDUMP
2716 # Extract the first word of "objdump", so it can be a program name with args.
2717 set dummy objdump; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$ac_ct_OBJDUMP"; then
2724 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_OBJDUMP="objdump"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2744 if test -n "$ac_ct_OBJDUMP"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
2746 $as_echo "$ac_ct_OBJDUMP" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2752 if test "x$ac_ct_OBJDUMP" = x; then
2755 case $cross_compiling:$ac_tool_warned in
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759 ac_tool_warned=yes ;;
2761 OBJDUMP=$ac_ct_OBJDUMP
2764 OBJDUMP="$ac_cv_prog_OBJDUMP"
2770 test -z "$AS" && AS=as
2776 test -z "$DLLTOOL" && DLLTOOL=dlltool
2782 test -z "$OBJDUMP" && OBJDUMP=objdump
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2793 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2798 macro_version='2.4.6'
2799 macro_revision='2.4.6'
2813 ltmain=$ac_aux_dir/ltmain.sh
2815 # Backslashify metacharacters that are still active within
2816 # double-quoted strings.
2817 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2819 # Same as above, but do not quote variable references.
2820 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2822 # Sed substitution to delay expansion of an escaped shell variable in a
2823 # double_quote_subst'ed string.
2824 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2826 # Sed substitution to delay expansion of an escaped single quote.
2827 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2829 # Sed substitution to avoid accidental globbing in evaled expressions
2830 no_glob_subst='s/\*/\\\*/g'
2832 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2833 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2834 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2837 $as_echo_n "checking how to print strings... " >&6; }
2838 # Test print first, because it will be a builtin if present.
2839 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2840 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2842 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2845 # Use this function as a fallback that always works.
2846 func_fallback_echo ()
2848 eval 'cat <<_LTECHO_EOF
2852 ECHO='func_fallback_echo'
2855 # func_echo_all arg...
2856 # Invoke $ECHO with all args, space-separated.
2863 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2864 $as_echo "printf" >&6; } ;;
2865 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2866 $as_echo "print -r" >&6; } ;;
2867 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2868 $as_echo "cat" >&6; } ;;
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_CC+:} false; then :
2895 $as_echo_n "(cached) " >&6
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 if test -n "$CC"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 $as_echo "$CC" >&6; }
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2928 if test -z "$ac_cv_prog_CC"; then
2930 # Extract the first word of "gcc", so it can be a program name with args.
2931 set dummy gcc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CC="gcc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960 $as_echo "$ac_ct_CC" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2966 if test "x$ac_ct_CC" = x; then
2969 case $cross_compiling:$ac_tool_warned in
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2981 if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2984 set dummy ${ac_tool_prefix}cc; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_CC="${ac_tool_prefix}cc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3022 if test -z "$CC"; then
3023 # Extract the first word of "cc", so it can be a program name with args.
3024 set dummy cc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3042 ac_prog_rejected=yes
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test $ac_prog_rejected = yes; then
3054 # We found a bogon in the path, so make sure we never use it.
3055 set dummy $ac_cv_prog_CC
3057 if test $# != 0; then
3058 # We chose a different compiler from the bogus one.
3059 # However, it has the same basename, so the bogon will be chosen
3060 # first if we set CC to just the basename; use the full file name.
3062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3078 if test -z "$CC"; then
3079 if test -n "$ac_tool_prefix"; then
3080 for ac_prog in cl.exe
3082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3119 test -n "$CC" && break
3122 if test -z "$CC"; then
3124 for ac_prog in cl.exe
3126 # Extract the first word of "$ac_prog", so it can be a program name with args.
3127 set dummy $ac_prog; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_CC="$ac_prog"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if test -n "$ac_ct_CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156 $as_echo "$ac_ct_CC" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3163 test -n "$ac_ct_CC" && break
3166 if test "x$ac_ct_CC" = x; then
3169 case $cross_compiling:$ac_tool_warned in
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3182 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details" "$LINENO" 5; }
3187 # Provide some information about the compiler.
3188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3191 for ac_option in --version -v -V -qversion; do
3192 { { ac_try="$ac_compiler $ac_option >&5"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3201 if test -s conftest.err; then
3203 ... rest of stderr output deleted ...
3204 10q' conftest.err >conftest.er1
3205 cat conftest.er1 >&5
3207 rm -f conftest.er1 conftest.err
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3223 ac_clean_files_save=$ac_clean_files
3224 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3225 # Try to create an executable without -o first, disregard a.out.
3226 # It will help us diagnose broken compilers, and finding out an intuition
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3229 $as_echo_n "checking whether the C compiler works... " >&6; }
3230 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232 # The possible output files:
3233 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3236 for ac_file in $ac_files
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245 if { { ac_try="$ac_link_default"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_link_default") 2>&5
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; then :
3256 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3259 # so that the user can short-circuit this test for compilers unknown to
3261 for ac_file in $ac_files ''
3263 test -f "$ac_file" || continue
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3268 # We found the default executable, but exeext='' is most
3272 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 # We set ac_cv_exeext here because the later test for it is not
3277 # safe: cross compilers may not add the suffix if given an `-o'
3278 # argument, so we may need to know it at that point already.
3279 # Even if this section looks crufty: it has the advantage of
3286 test "$ac_cv_exeext" = no && ac_cv_exeext=
3291 if test -z "$ac_file"; then :
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error 77 "C compiler cannot create executables
3300 See \`config.log' for more details" "$LINENO" 5; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3308 $as_echo "$ac_file" >&6; }
3309 ac_exeext=$ac_cv_exeext
3311 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3314 $as_echo_n "checking for suffix of executables... " >&6; }
3315 if { { ac_try="$ac_link"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3328 # work properly (i.e., refer to `conftest.exe'), while it won't with
3330 for ac_file in conftest.exe conftest conftest.*; do
3331 test -f "$ac_file" || continue
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3343 See \`config.log' for more details" "$LINENO" 5; }
3345 rm -f conftest conftest$ac_cv_exeext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3347 $as_echo "$ac_cv_exeext" >&6; }
3349 rm -f conftest.$ac_ext
3350 EXEEXT=$ac_cv_exeext
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3358 FILE *f = fopen ("conftest.out", "w");
3359 return ferror (f) || fclose (f) != 0;
3365 ac_clean_files="$ac_clean_files conftest.out"
3366 # Check that the compiler produces executables we can run. If not, either
3367 # the compiler is broken, or we cross compile.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3369 $as_echo_n "checking whether we are cross compiling... " >&6; }
3370 if test "$cross_compiling" != yes; then
3371 { { ac_try="$ac_link"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link") 2>&5
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }
3382 if { ac_try='./conftest$ac_cv_exeext'
3383 { { case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_try") 2>&5
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; }; then
3395 if test "$cross_compiling" = maybe; then
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details" "$LINENO" 5; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3407 $as_echo "$cross_compiling" >&6; }
3409 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3410 ac_clean_files=$ac_clean_files_save
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3412 $as_echo_n "checking for suffix of object files... " >&6; }
3413 if ${ac_cv_objext+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3427 rm -f conftest.o conftest.obj
3428 if { { ac_try="$ac_compile"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_compile") 2>&5
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
3439 for ac_file in conftest.o conftest.obj conftest.*; do
3440 test -f "$ac_file" || continue;
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448 $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of object files: cannot compile
3454 See \`config.log' for more details" "$LINENO" 5; }
3456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459 $as_echo "$ac_cv_objext" >&6; }
3460 OBJEXT=$ac_cv_objext
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3464 if ${ac_cv_c_compiler_gnu+:} false; then :
3465 $as_echo_n "(cached) " >&6
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3481 if ac_fn_c_try_compile "$LINENO"; then :
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3491 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492 if test $ac_compiler_gnu = yes; then
3497 ac_test_CFLAGS=${CFLAGS+set}
3498 ac_save_CFLAGS=$CFLAGS
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3500 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3501 if ${ac_cv_prog_cc_g+:} false; then :
3502 $as_echo_n "(cached) " >&6
3504 ac_save_c_werror_flag=$ac_c_werror_flag
3505 ac_c_werror_flag=yes
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3519 if ac_fn_c_try_compile "$LINENO"; then :
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3534 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3550 if ac_fn_c_try_compile "$LINENO"; then :
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3561 $as_echo "$ac_cv_prog_cc_g" >&6; }
3562 if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS=$ac_save_CFLAGS
3564 elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3571 if test "$GCC" = yes; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3578 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3579 if ${ac_cv_prog_cc_c89+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 ac_cv_prog_cc_c89=no
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590 struct buf { int x; };
3591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592 static char *e (p, i)
3598 static char *f (char * (*g) (char **, int), char **p, ...)
3603 s = g (p, va_arg (v,int));
3608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609 function prototypes and stuff, but not '\xHH' hex character constants.
3610 These don't provoke an error unfortunately, instead are silently treated
3611 as 'x'. The following induces an error, until -std is added to get
3612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613 array size at least. It's necessary to write '\x00'==0 to get something
3614 that's true only with -std. */
3615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618 inside strings and character constants. */
3620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 CC="$ac_save_CC $ac_arg"
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_cv_prog_cc_c89=$ac_arg
3643 rm -f core conftest.err conftest.$ac_objext
3644 test "x$ac_cv_prog_cc_c89" != "xno" && break
3646 rm -f conftest.$ac_ext
3651 case "x$ac_cv_prog_cc_c89" in
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654 $as_echo "none needed" >&6; } ;;
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657 $as_echo "unsupported" >&6; } ;;
3659 CC="$CC $ac_cv_prog_cc_c89"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3663 if test "x$ac_cv_prog_cc_c89" != xno; then :
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3674 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3675 if ${ac_cv_path_SED+:} false; then :
3676 $as_echo_n "(cached) " >&6
3678 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3679 for ac_i in 1 2 3 4 5 6 7; do
3680 ac_script="$ac_script$as_nl$ac_script"
3682 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3683 { ac_script=; unset ac_script;}
3684 if test -z "$SED"; then
3685 ac_path_SED_found=false
3686 # Loop through the user's path and test for each of PROGNAME-LIST
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 test -z "$as_dir" && as_dir=.
3692 for ac_prog in sed gsed; do
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3695 as_fn_executable_p "$ac_path_SED" || continue
3696 # Check for GNU ac_path_SED and select it if it is found.
3697 # Check for GNU $ac_path_SED
3698 case `"$ac_path_SED" --version 2>&1` in
3700 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3703 $as_echo_n 0123456789 >"conftest.in"
3706 cat "conftest.in" "conftest.in" >"conftest.tmp"
3707 mv "conftest.tmp" "conftest.in"
3708 cp "conftest.in" "conftest.nl"
3709 $as_echo '' >> "conftest.nl"
3710 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3712 as_fn_arith $ac_count + 1 && ac_count=$as_val
3713 if test $ac_count -gt ${ac_path_SED_max-0}; then
3714 # Best one so far, save it but keep looking for a better one
3715 ac_cv_path_SED="$ac_path_SED"
3716 ac_path_SED_max=$ac_count
3718 # 10*(2^10) chars as input seems more than enough
3719 test $ac_count -gt 10 && break
3721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3724 $ac_path_SED_found && break 3
3729 if test -z "$ac_cv_path_SED"; then
3730 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3738 $as_echo "$ac_cv_path_SED" >&6; }
3739 SED="$ac_cv_path_SED"
3742 test -z "$SED" && SED=sed
3743 Xsed="$SED -e 1s/^X//"
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3756 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3757 if ${ac_cv_path_GREP+:} false; then :
3758 $as_echo_n "(cached) " >&6
3760 if test -z "$GREP"; then
3761 ac_path_GREP_found=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767 test -z "$as_dir" && as_dir=.
3768 for ac_prog in grep ggrep; do
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3771 as_fn_executable_p "$ac_path_GREP" || continue
3772 # Check for GNU ac_path_GREP and select it if it is found.
3773 # Check for GNU $ac_path_GREP
3774 case `"$ac_path_GREP" --version 2>&1` in
3776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3779 $as_echo_n 0123456789 >"conftest.in"
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 $as_echo 'GREP' >> "conftest.nl"
3786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788 as_fn_arith $ac_count + 1 && ac_count=$as_val
3789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_GREP="$ac_path_GREP"
3792 ac_path_GREP_max=$ac_count
3794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800 $ac_path_GREP_found && break 3
3805 if test -z "$ac_cv_path_GREP"; then
3806 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3809 ac_cv_path_GREP=$GREP
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3814 $as_echo "$ac_cv_path_GREP" >&6; }
3815 GREP="$ac_cv_path_GREP"
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3819 $as_echo_n "checking for egrep... " >&6; }
3820 if ${ac_cv_path_EGREP+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3824 then ac_cv_path_EGREP="$GREP -E"
3826 if test -z "$EGREP"; then
3827 ac_path_EGREP_found=false
3828 # Loop through the user's path and test for each of PROGNAME-LIST
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3833 test -z "$as_dir" && as_dir=.
3834 for ac_prog in egrep; do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3837 as_fn_executable_p "$ac_path_EGREP" || continue
3838 # Check for GNU ac_path_EGREP and select it if it is found.
3839 # Check for GNU $ac_path_EGREP
3840 case `"$ac_path_EGREP" --version 2>&1` in
3842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3845 $as_echo_n 0123456789 >"conftest.in"
3848 cat "conftest.in" "conftest.in" >"conftest.tmp"
3849 mv "conftest.tmp" "conftest.in"
3850 cp "conftest.in" "conftest.nl"
3851 $as_echo 'EGREP' >> "conftest.nl"
3852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854 as_fn_arith $ac_count + 1 && ac_count=$as_val
3855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3856 # Best one so far, save it but keep looking for a better one
3857 ac_cv_path_EGREP="$ac_path_EGREP"
3858 ac_path_EGREP_max=$ac_count
3860 # 10*(2^10) chars as input seems more than enough
3861 test $ac_count -gt 10 && break
3863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3866 $ac_path_EGREP_found && break 3
3871 if test -z "$ac_cv_path_EGREP"; then
3872 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3875 ac_cv_path_EGREP=$EGREP
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3881 $as_echo "$ac_cv_path_EGREP" >&6; }
3882 EGREP="$ac_cv_path_EGREP"
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3886 $as_echo_n "checking for fgrep... " >&6; }
3887 if ${ac_cv_path_FGREP+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3891 then ac_cv_path_FGREP="$GREP -F"
3893 if test -z "$FGREP"; then
3894 ac_path_FGREP_found=false
3895 # Loop through the user's path and test for each of PROGNAME-LIST
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3900 test -z "$as_dir" && as_dir=.
3901 for ac_prog in fgrep; do
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3904 as_fn_executable_p "$ac_path_FGREP" || continue
3905 # Check for GNU ac_path_FGREP and select it if it is found.
3906 # Check for GNU $ac_path_FGREP
3907 case `"$ac_path_FGREP" --version 2>&1` in
3909 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3912 $as_echo_n 0123456789 >"conftest.in"
3915 cat "conftest.in" "conftest.in" >"conftest.tmp"
3916 mv "conftest.tmp" "conftest.in"
3917 cp "conftest.in" "conftest.nl"
3918 $as_echo 'FGREP' >> "conftest.nl"
3919 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921 as_fn_arith $ac_count + 1 && ac_count=$as_val
3922 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3923 # Best one so far, save it but keep looking for a better one
3924 ac_cv_path_FGREP="$ac_path_FGREP"
3925 ac_path_FGREP_max=$ac_count
3927 # 10*(2^10) chars as input seems more than enough
3928 test $ac_count -gt 10 && break
3930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3933 $ac_path_FGREP_found && break 3
3938 if test -z "$ac_cv_path_FGREP"; then
3939 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3942 ac_cv_path_FGREP=$FGREP
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3948 $as_echo "$ac_cv_path_FGREP" >&6; }
3949 FGREP="$ac_cv_path_FGREP"
3952 test -z "$GREP" && GREP=grep
3972 # Check whether --with-gnu-ld was given.
3973 if test "${with_gnu_ld+set}" = set; then :
3974 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3980 if test yes = "$GCC"; then
3981 # Check if gcc -print-prog-name=ld gives a path.
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3983 $as_echo_n "checking for ld used by $CC... " >&6; }
3986 # gcc leaves a trailing carriage return, which upsets mingw
3987 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3989 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3992 # Accept absolute paths.
3994 re_direlt='/[^/][^/]*/\.\./'
3995 # Canonicalize the pathname of ld
3996 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3997 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3998 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4000 test -z "$LD" && LD=$ac_prog
4003 # If it fails, then pretend we aren't using GCC.
4007 # If it is relative, then search for the first ld in PATH.
4011 elif test yes = "$with_gnu_ld"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4013 $as_echo_n "checking for GNU ld... " >&6; }
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4016 $as_echo_n "checking for non-GNU ld... " >&6; }
4018 if ${lt_cv_path_LD+:} false; then :
4019 $as_echo_n "(cached) " >&6
4021 if test -z "$LD"; then
4022 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4023 for ac_dir in $PATH; do
4025 test -z "$ac_dir" && ac_dir=.
4026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4027 lt_cv_path_LD=$ac_dir/$ac_prog
4028 # Check to see if the program is GNU ld. I'd rather use --version,
4029 # but apparently some variants of GNU ld only accept -v.
4030 # Break only if it was the GNU/non-GNU ld that we prefer.
4031 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4032 *GNU* | *'with BFD'*)
4033 test no != "$with_gnu_ld" && break
4036 test yes != "$with_gnu_ld" && break
4043 lt_cv_path_LD=$LD # Let the user override the test with a path.
4048 if test -n "$LD"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4050 $as_echo "$LD" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4055 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4057 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4058 if ${lt_cv_prog_gnu_ld+:} false; then :
4059 $as_echo_n "(cached) " >&6
4061 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4062 case `$LD -v 2>&1 </dev/null` in
4063 *GNU* | *'with BFD'*)
4064 lt_cv_prog_gnu_ld=yes
4067 lt_cv_prog_gnu_ld=no
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4072 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4073 with_gnu_ld=$lt_cv_prog_gnu_ld
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4084 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4085 if ${lt_cv_path_NM+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 if test -n "$NM"; then
4089 # Let the user override the test.
4092 lt_nm_to_check=${ac_tool_prefix}nm
4093 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4094 lt_nm_to_check="$lt_nm_to_check nm"
4096 for lt_tmp_nm in $lt_nm_to_check; do
4097 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4098 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4100 test -z "$ac_dir" && ac_dir=.
4101 tmp_nm=$ac_dir/$lt_tmp_nm
4102 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4103 # Check to see if the nm accepts a BSD-compat flag.
4104 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4105 # nm: unknown option "B" ignored
4106 # Tru64's nm complains that /dev/null is an invalid object file
4107 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4109 mingw*) lt_bad_file=conftest.nm/nofile ;;
4110 *) lt_bad_file=/dev/null ;;
4112 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4113 *$lt_bad_file* | *'Invalid file or object type'*)
4114 lt_cv_path_NM="$tmp_nm -B"
4118 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4120 lt_cv_path_NM="$tmp_nm -p"
4124 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4125 continue # so that we can try to find one that supports BSD flags
4134 : ${lt_cv_path_NM=no}
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4138 $as_echo "$lt_cv_path_NM" >&6; }
4139 if test no != "$lt_cv_path_NM"; then
4142 # Didn't find any BSD compatible name lister, look for dumpbin.
4143 if test -n "$DUMPBIN"; then :
4144 # Let the user override the test.
4146 if test -n "$ac_tool_prefix"; then
4147 for ac_prog in dumpbin "link -dump"
4149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if ${ac_cv_prog_DUMPBIN+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 if test -n "$DUMPBIN"; then
4157 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 DUMPBIN=$ac_cv_prog_DUMPBIN
4177 if test -n "$DUMPBIN"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4179 $as_echo "$DUMPBIN" >&6; }
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4186 test -n "$DUMPBIN" && break
4189 if test -z "$DUMPBIN"; then
4190 ac_ct_DUMPBIN=$DUMPBIN
4191 for ac_prog in dumpbin "link -dump"
4193 # Extract the first word of "$ac_prog", so it can be a program name with args.
4194 set dummy $ac_prog; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4198 $as_echo_n "(cached) " >&6
4200 if test -n "$ac_ct_DUMPBIN"; then
4201 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4221 if test -n "$ac_ct_DUMPBIN"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4223 $as_echo "$ac_ct_DUMPBIN" >&6; }
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4230 test -n "$ac_ct_DUMPBIN" && break
4233 if test "x$ac_ct_DUMPBIN" = x; then
4236 case $cross_compiling:$ac_tool_warned in
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4240 ac_tool_warned=yes ;;
4242 DUMPBIN=$ac_ct_DUMPBIN
4246 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4248 DUMPBIN="$DUMPBIN -symbols -headers"
4256 if test : != "$DUMPBIN"; then
4260 test -z "$NM" && NM=nm
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4268 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4269 if ${lt_cv_nm_interface+:} false; then :
4270 $as_echo_n "(cached) " >&6
4272 lt_cv_nm_interface="BSD nm"
4273 echo "int some_variable = 0;" > conftest.$ac_ext
4274 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4275 (eval "$ac_compile" 2>conftest.err)
4276 cat conftest.err >&5
4277 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4278 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4279 cat conftest.err >&5
4280 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4281 cat conftest.out >&5
4282 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4283 lt_cv_nm_interface="MS dumpbin"
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4288 $as_echo "$lt_cv_nm_interface" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4291 $as_echo_n "checking whether ln -s works... " >&6; }
4293 if test "$LN_S" = "ln -s"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4295 $as_echo "yes" >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4298 $as_echo "no, using $LN_S" >&6; }
4301 # find the maximum length of command line arguments
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4303 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4304 if ${lt_cv_sys_max_cmd_len+:} false; then :
4305 $as_echo_n "(cached) " >&6
4312 # On DJGPP, this test can blow up pretty badly due to problems in libc
4313 # (any single argument exceeding 2000 bytes causes a buffer overrun
4314 # during glob expansion). Even if it were fixed, the result of this
4315 # check would be larger than it should be.
4316 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4320 # Under GNU Hurd, this test is not required because there is
4321 # no limit to the length of command line arguments.
4322 # Libtool will interpret -1 as no limit whatsoever
4323 lt_cv_sys_max_cmd_len=-1;
4326 cygwin* | mingw* | cegcc*)
4327 # On Win9x/ME, this test blows up -- it succeeds, but takes
4328 # about 5 minutes as the teststring grows exponentially.
4329 # Worse, since 9x/ME are not pre-emptively multitasking,
4330 # you end up with a "frozen" computer, even though with patience
4331 # the test eventually succeeds (with a max line length of 256k).
4332 # Instead, let's just punt: use the minimum linelength reported by
4333 # all of the supported platforms: 8192 (on NT/2K/XP).
4334 lt_cv_sys_max_cmd_len=8192;
4338 # On MiNT this can take a long time and run out of memory.
4339 lt_cv_sys_max_cmd_len=8192;
4343 # On MiNT this can take a long time and run out of memory.
4344 lt_cv_sys_max_cmd_len=8192;
4348 # On AmigaOS with pdksh, this test takes hours, literally.
4349 # So we just punt and use a minimum line length of 8192.
4350 lt_cv_sys_max_cmd_len=8192;
4353 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4354 # This has been around since 386BSD, at least. Likely further.
4355 if test -x /sbin/sysctl; then
4356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4357 elif test -x /usr/sbin/sysctl; then
4358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4362 # And add a safety zone
4363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4368 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4369 lt_cv_sys_max_cmd_len=196608
4373 # The test takes a long time on OS/2.
4374 lt_cv_sys_max_cmd_len=8192
4378 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4379 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4380 # nice to cause kernel panics so lets avoid the loop below.
4381 # First set a reasonable default.
4382 lt_cv_sys_max_cmd_len=16384
4384 if test -x /sbin/sysconfig; then
4385 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4386 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4391 lt_cv_sys_max_cmd_len=102400
4393 sysv5* | sco5v6* | sysv4.2uw2*)
4394 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4395 if test -n "$kargmax"; then
4396 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4398 lt_cv_sys_max_cmd_len=32768
4402 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4403 if test -n "$lt_cv_sys_max_cmd_len" && \
4404 test undefined != "$lt_cv_sys_max_cmd_len"; then
4405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4408 # Make teststring a little bigger before we do anything with it.
4409 # a 1K string should be a reasonable start.
4410 for i in 1 2 3 4 5 6 7 8; do
4411 teststring=$teststring$teststring
4413 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4414 # If test is not a shell built-in, we'll probably end up computing a
4415 # maximum length that is only half of the actual maximum length, but
4417 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4418 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4419 test 17 != "$i" # 1/2 MB should be enough
4422 teststring=$teststring$teststring
4424 # Only check the string length outside the loop.
4425 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4427 # Add a significant safety factor because C++ compilers can tack on
4428 # massive amounts of additional arguments before passing them to the
4429 # linker. It appears as though 1/2 is a usable value.
4430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4437 if test -n "$lt_cv_sys_max_cmd_len"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4439 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4442 $as_echo "none" >&6; }
4444 max_cmd_len=$lt_cv_sys_max_cmd_len
4455 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4465 # test EBCDIC or ASCII
4466 case `echo X|tr X '\101'` in
4467 A) # ASCII based system
4468 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4469 lt_SP2NL='tr \040 \012'
4470 lt_NL2SP='tr \015\012 \040\040'
4472 *) # EBCDIC based system
4473 lt_SP2NL='tr \100 \n'
4474 lt_NL2SP='tr \r\n \100\100'
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4487 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4488 if ${lt_cv_to_host_file_cmd+:} false; then :
4489 $as_echo_n "(cached) " >&6
4494 *-*-mingw* ) # actually msys
4495 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4498 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4500 * ) # otherwise, assume *nix
4501 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4507 *-*-mingw* ) # actually msys
4508 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4511 lt_cv_to_host_file_cmd=func_convert_file_noop
4513 * ) # otherwise, assume *nix
4514 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4518 * ) # unhandled hosts (and "normal" native builds)
4519 lt_cv_to_host_file_cmd=func_convert_file_noop
4525 to_host_file_cmd=$lt_cv_to_host_file_cmd
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4527 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4534 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4535 if ${lt_cv_to_tool_file_cmd+:} false; then :
4536 $as_echo_n "(cached) " >&6
4538 #assume ordinary cross tools, or native build.
4539 lt_cv_to_tool_file_cmd=func_convert_file_noop
4543 *-*-mingw* ) # actually msys
4544 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4552 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4554 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4561 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4562 if ${lt_cv_ld_reload_flag+:} false; then :
4563 $as_echo_n "(cached) " >&6
4565 lt_cv_ld_reload_flag='-r'
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4568 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4569 reload_flag=$lt_cv_ld_reload_flag
4570 case $reload_flag in
4572 *) reload_flag=" $reload_flag" ;;
4574 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4576 cygwin* | mingw* | pw32* | cegcc*)
4577 if test yes != "$GCC"; then
4582 if test yes = "$GCC"; then
4583 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4598 if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if ${ac_cv_prog_OBJDUMP+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 if test -n "$OBJDUMP"; then
4607 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 OBJDUMP=$ac_cv_prog_OBJDUMP
4627 if test -n "$OBJDUMP"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4629 $as_echo "$OBJDUMP" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4637 if test -z "$ac_cv_prog_OBJDUMP"; then
4638 ac_ct_OBJDUMP=$OBJDUMP
4639 # Extract the first word of "objdump", so it can be a program name with args.
4640 set dummy objdump; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$ac_ct_OBJDUMP"; then
4647 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4667 if test -n "$ac_ct_OBJDUMP"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4669 $as_echo "$ac_ct_OBJDUMP" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4675 if test "x$ac_ct_OBJDUMP" = x; then
4678 case $cross_compiling:$ac_tool_warned in
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4684 OBJDUMP=$ac_ct_OBJDUMP
4687 OBJDUMP="$ac_cv_prog_OBJDUMP"
4690 test -z "$OBJDUMP" && OBJDUMP=objdump
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4698 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4699 if ${lt_cv_deplibs_check_method+:} false; then :
4700 $as_echo_n "(cached) " >&6
4702 lt_cv_file_magic_cmd='$MAGIC_CMD'
4703 lt_cv_file_magic_test_file=
4704 lt_cv_deplibs_check_method='unknown'
4705 # Need to set the preceding variable on all platforms that support
4706 # interlibrary dependencies.
4707 # 'none' -- dependencies not supported.
4708 # 'unknown' -- same as none, but documents that we really don't know.
4709 # 'pass_all' -- all dependencies passed with no checks.
4710 # 'test_compile' -- check by making test program.
4711 # 'file_magic [[regex]]' -- check by looking for files in library path
4712 # that responds to the $file_magic_cmd with a given extended regex.
4713 # If you have 'file' or equivalent on your system and you're not sure
4714 # whether 'pass_all' will *always* work, you probably want this one.
4718 lt_cv_deplibs_check_method=pass_all
4722 lt_cv_deplibs_check_method=pass_all
4726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4727 lt_cv_file_magic_cmd='/usr/bin/file -L'
4728 lt_cv_file_magic_test_file=/shlib/libc.so
4732 # func_win32_libid is a shell function defined in ltmain.sh
4733 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4734 lt_cv_file_magic_cmd='func_win32_libid'
4738 # Base MSYS/MinGW do not provide the 'file' command needed by
4739 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4740 # unless we find 'file', for example because we are cross-compiling.
4741 if ( file / ) >/dev/null 2>&1; then
4742 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4743 lt_cv_file_magic_cmd='func_win32_libid'
4745 # Keep this pattern in sync with the one in func_win32_libid.
4746 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4747 lt_cv_file_magic_cmd='$OBJDUMP -f'
4752 # use the weaker test based on 'objdump'. See mingw*.
4753 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4754 lt_cv_file_magic_cmd='$OBJDUMP -f'
4757 darwin* | rhapsody*)
4758 lt_cv_deplibs_check_method=pass_all
4761 freebsd* | dragonfly*)
4762 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4765 # Not sure whether the presence of OpenBSD here was a mistake.
4766 # Let's accept both of them until this is cleared up.
4767 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4768 lt_cv_file_magic_cmd=/usr/bin/file
4769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4773 lt_cv_deplibs_check_method=pass_all
4778 lt_cv_deplibs_check_method=pass_all
4781 hpux10.20* | hpux11*)
4782 lt_cv_file_magic_cmd=/usr/bin/file
4785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4786 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4789 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]'
4790 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4793 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4794 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4800 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4804 irix5* | irix6* | nonstopux*)
4806 *-32|*"-32 ") libmagic=32-bit;;
4807 *-n32|*"-n32 ") libmagic=N32;;
4808 *-64|*"-64 ") libmagic=64-bit;;
4809 *) libmagic=never-match;;
4811 lt_cv_deplibs_check_method=pass_all
4814 # This must be glibc/ELF.
4815 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4816 lt_cv_deplibs_check_method=pass_all
4820 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4829 lt_cv_file_magic_cmd=/usr/bin/file
4830 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4834 lt_cv_deplibs_check_method=pass_all
4838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4845 osf3* | osf4* | osf5*)
4846 lt_cv_deplibs_check_method=pass_all
4850 lt_cv_deplibs_check_method=pass_all
4854 lt_cv_deplibs_check_method=pass_all
4857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4858 lt_cv_deplibs_check_method=pass_all
4862 case $host_vendor in
4864 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]'
4865 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4868 lt_cv_deplibs_check_method=pass_all
4871 lt_cv_file_magic_cmd='/bin/file'
4872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4875 lt_cv_file_magic_cmd='/bin/file'
4876 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4877 lt_cv_file_magic_test_file=/lib/libc.so
4880 lt_cv_deplibs_check_method=pass_all
4883 lt_cv_deplibs_check_method=pass_all
4889 lt_cv_deplibs_check_method=pass_all
4892 lt_cv_deplibs_check_method=pass_all
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4898 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4902 if test "$build" = "$host"; then
4905 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4908 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4914 file_magic_cmd=$lt_cv_file_magic_cmd
4915 deplibs_check_method=$lt_cv_deplibs_check_method
4916 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4939 if test -n "$ac_tool_prefix"; then
4940 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4941 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if ${ac_cv_prog_DLLTOOL+:} false; then :
4945 $as_echo_n "(cached) " >&6
4947 if test -n "$DLLTOOL"; then
4948 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 DLLTOOL=$ac_cv_prog_DLLTOOL
4968 if test -n "$DLLTOOL"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4970 $as_echo "$DLLTOOL" >&6; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4978 if test -z "$ac_cv_prog_DLLTOOL"; then
4979 ac_ct_DLLTOOL=$DLLTOOL
4980 # Extract the first word of "dlltool", so it can be a program name with args.
4981 set dummy dlltool; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4985 $as_echo_n "(cached) " >&6
4987 if test -n "$ac_ct_DLLTOOL"; then
4988 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5008 if test -n "$ac_ct_DLLTOOL"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5010 $as_echo "$ac_ct_DLLTOOL" >&6; }
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5016 if test "x$ac_ct_DLLTOOL" = x; then
5019 case $cross_compiling:$ac_tool_warned in
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5023 ac_tool_warned=yes ;;
5025 DLLTOOL=$ac_ct_DLLTOOL
5028 DLLTOOL="$ac_cv_prog_DLLTOOL"
5031 test -z "$DLLTOOL" && DLLTOOL=dlltool
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5040 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5041 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5042 $as_echo_n "(cached) " >&6
5044 lt_cv_sharedlib_from_linklib_cmd='unknown'
5047 cygwin* | mingw* | pw32* | cegcc*)
5048 # two different shell functions defined in ltmain.sh;
5049 # decide which one to use based on capabilities of $DLLTOOL
5050 case `$DLLTOOL --help 2>&1` in
5051 *--identify-strict*)
5052 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5055 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5060 # fallback: assume linklib IS sharedlib
5061 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5067 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5068 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5069 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5078 if test -n "$ac_tool_prefix"; then
5081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_AR+:} false; then :
5086 $as_echo_n "(cached) " >&6
5088 if test -n "$AR"; then
5089 ac_cv_prog_AR="$AR" # Let the user override the test.
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 if test -n "$AR"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5111 $as_echo "$AR" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5118 test -n "$AR" && break
5121 if test -z "$AR"; then
5125 # Extract the first word of "$ac_prog", so it can be a program name with args.
5126 set dummy $ac_prog; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5130 $as_echo_n "(cached) " >&6
5132 if test -n "$ac_ct_AR"; then
5133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_ac_ct_AR="$ac_prog"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5153 if test -n "$ac_ct_AR"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5155 $as_echo "$ac_ct_AR" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 test -n "$ac_ct_AR" && break
5165 if test "x$ac_ct_AR" = x; then
5168 case $cross_compiling:$ac_tool_warned in
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned=yes ;;
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5192 $as_echo_n "checking for archiver @FILE support... " >&6; }
5193 if ${lt_cv_ar_at_file+:} false; then :
5194 $as_echo_n "(cached) " >&6
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5208 if ac_fn_c_try_compile "$LINENO"; then :
5209 echo conftest.$ac_objext > conftest.lst
5210 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5212 (eval $lt_ar_try) 2>&5
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; }
5216 if test 0 -eq "$ac_status"; then
5217 # Ensure the archiver fails upon bogus file names.
5218 rm -f conftest.$ac_objext libconftest.a
5219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5220 (eval $lt_ar_try) 2>&5
5222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5223 test $ac_status = 0; }
5224 if test 0 -ne "$ac_status"; then
5228 rm -f conftest.* libconftest.a
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5235 $as_echo "$lt_cv_ar_at_file" >&6; }
5237 if test no = "$lt_cv_ar_at_file"; then
5240 archiver_list_spec=$lt_cv_ar_at_file
5249 if test -n "$ac_tool_prefix"; then
5250 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5251 set dummy ${ac_tool_prefix}strip; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_prog_STRIP+:} false; then :
5255 $as_echo_n "(cached) " >&6
5257 if test -n "$STRIP"; then
5258 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 STRIP=$ac_cv_prog_STRIP
5278 if test -n "$STRIP"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5280 $as_echo "$STRIP" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5288 if test -z "$ac_cv_prog_STRIP"; then
5290 # Extract the first word of "strip", so it can be a program name with args.
5291 set dummy strip; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5295 $as_echo_n "(cached) " >&6
5297 if test -n "$ac_ct_STRIP"; then
5298 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_ac_ct_STRIP="strip"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5318 if test -n "$ac_ct_STRIP"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5320 $as_echo "$ac_ct_STRIP" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5326 if test "x$ac_ct_STRIP" = x; then
5329 case $cross_compiling:$ac_tool_warned in
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333 ac_tool_warned=yes ;;
5338 STRIP="$ac_cv_prog_STRIP"
5341 test -z "$STRIP" && STRIP=:
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_RANLIB+:} false; then :
5354 $as_echo_n "(cached) " >&6
5356 if test -n "$RANLIB"; then
5357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 RANLIB=$ac_cv_prog_RANLIB
5377 if test -n "$RANLIB"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5379 $as_echo "$RANLIB" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5387 if test -z "$ac_cv_prog_RANLIB"; then
5388 ac_ct_RANLIB=$RANLIB
5389 # Extract the first word of "ranlib", so it can be a program name with args.
5390 set dummy ranlib; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5394 $as_echo_n "(cached) " >&6
5396 if test -n "$ac_ct_RANLIB"; then
5397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_ac_ct_RANLIB="ranlib"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5417 if test -n "$ac_ct_RANLIB"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5419 $as_echo "$ac_ct_RANLIB" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5425 if test "x$ac_ct_RANLIB" = x; then
5428 case $cross_compiling:$ac_tool_warned in
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432 ac_tool_warned=yes ;;
5434 RANLIB=$ac_ct_RANLIB
5437 RANLIB="$ac_cv_prog_RANLIB"
5440 test -z "$RANLIB" && RANLIB=:
5447 # Determine commands to create old-style static archives.
5448 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5449 old_postinstall_cmds='chmod 644 $oldlib'
5450 old_postuninstall_cmds=
5452 if test -n "$RANLIB"; then
5455 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5458 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5461 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5466 lock_old_archive_extraction=yes ;;
5468 lock_old_archive_extraction=no ;;
5491 for ac_prog in gawk mawk nawk awk
5493 # Extract the first word of "$ac_prog", so it can be a program name with args.
5494 set dummy $ac_prog; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_AWK+:} false; then :
5498 $as_echo_n "(cached) " >&6
5500 if test -n "$AWK"; then
5501 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_AWK="$ac_prog"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 if test -n "$AWK"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5523 $as_echo "$AWK" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5530 test -n "$AWK" && break
5551 # If no C compiler was specified, use CC.
5554 # If no C compiler flags were specified, use CFLAGS.
5555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5557 # Allow CC to be a program name with arguments.
5561 # Check for command to grab the raw symbol name followed by C symbol from nm.
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5563 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5564 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5565 $as_echo_n "(cached) " >&6
5568 # These are sane defaults that work on at least a few old systems.
5569 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5571 # Character class describing NM global symbol codes.
5572 symcode='[BCDEGRST]'
5574 # Regexp to match symbols that can be accessed directly from C.
5575 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5577 # Define system-specific variables.
5582 cygwin* | mingw* | pw32* | cegcc*)
5583 symcode='[ABCDGISTW]'
5586 if test ia64 = "$host_cpu"; then
5587 symcode='[ABCDEGRST]'
5591 symcode='[BCDEGRST]'
5594 symcode='[BCDEGQRST]'
5605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5613 # If we're using GNU nm, then use its standard symbol codes.
5614 case `$NM -V 2>&1` in
5615 *GNU* | *'with BFD'*)
5616 symcode='[ABCDGIRSTW]' ;;
5619 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5620 # Gets list of data symbols to import.
5621 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5622 # Adjust the below global symbol transforms to fixup imported variables.
5623 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5624 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5625 lt_c_name_lib_hook="\
5626 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5627 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5629 # Disable hooks by default.
5630 lt_cv_sys_global_symbol_to_import=
5636 # Transform an extracted symbol line into a proper C declaration.
5637 # Some systems (esp. on ia64) link data and code symbols differently,
5638 # so use this general approach.
5639 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5641 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5642 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5644 # Transform an extracted symbol line into symbol name and symbol address
5645 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5647 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5648 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5650 # Transform an extracted symbol line into symbol name with lib prefix and
5652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5653 $lt_c_name_lib_hook\
5654 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5655 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5656 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5658 # Handle CRLF in mingw tool chain
5662 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5666 # Try without a prefix underscore, then with it.
5667 for ac_symprfx in "" "_"; do
5669 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5670 symxfrm="\\1 $ac_symprfx\\2 \\2"
5672 # Write the raw and C identifiers.
5673 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5674 # Fake it for dumpbin and say T for any non-static function,
5675 # D for any global variable and I for any imported variable.
5676 # Also find C++ and __fastcall symbols from MSVC++,
5677 # which start with @ or ?.
5678 lt_cv_sys_global_symbol_pipe="$AWK '"\
5679 " {last_section=section; section=\$ 3};"\
5680 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5681 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5682 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5683 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5684 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5685 " \$ 0!~/External *\|/{next};"\
5686 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5687 " {if(hide[section]) next};"\
5688 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5689 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5690 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5691 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5692 " ' prfx=^$ac_symprfx"
5694 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5696 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5698 # Check to see that the pipe works correctly.
5702 cat > conftest.$ac_ext <<_LT_EOF
5707 void nm_test_func(void);
5708 void nm_test_func(void){}
5712 int main(){nm_test_var='a';nm_test_func();return(0);}
5715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5716 (eval $ac_compile) 2>&5
5718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5719 test $ac_status = 0; }; then
5720 # Now try to grab the symbols.
5722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5723 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726 test $ac_status = 0; } && test -s "$nlist"; then
5727 # Try sorting and uniquifying the output.
5728 if sort "$nlist" | uniq > "$nlist"T; then
5729 mv -f "$nlist"T "$nlist"
5734 # Make sure that we snagged all the symbols we need.
5735 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5736 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5737 cat <<_LT_EOF > conftest.$ac_ext
5738 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5739 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5740 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5741 relocations are performed -- see ld's documentation on pseudo-relocs. */
5742 # define LT_DLSYM_CONST
5743 #elif defined __osf__
5744 /* This system does not cope well with relocations in const data. */
5745 # define LT_DLSYM_CONST
5747 # define LT_DLSYM_CONST const
5755 # Now generate the symbol file.
5756 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5758 cat <<_LT_EOF >> conftest.$ac_ext
5760 /* The mapping between symbol names and symbols. */
5761 LT_DLSYM_CONST struct {
5765 lt__PROGRAM__LTX_preloaded_symbols[] =
5767 { "@PROGRAM@", (void *) 0 },
5769 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5770 cat <<\_LT_EOF >> conftest.$ac_ext
5774 /* This works around a problem in FreeBSD linker */
5775 #ifdef FREEBSD_WORKAROUND
5776 static const void *lt_preloaded_setup() {
5777 return lt__PROGRAM__LTX_preloaded_symbols;
5785 # Now try linking the two files.
5786 mv conftest.$ac_objext conftstm.$ac_objext
5787 lt_globsym_save_LIBS=$LIBS
5788 lt_globsym_save_CFLAGS=$CFLAGS
5789 LIBS=conftstm.$ac_objext
5790 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5792 (eval $ac_link) 2>&5
5794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5795 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5798 LIBS=$lt_globsym_save_LIBS
5799 CFLAGS=$lt_globsym_save_CFLAGS
5801 echo "cannot find nm_test_func in $nlist" >&5
5804 echo "cannot find nm_test_var in $nlist" >&5
5807 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5810 echo "$progname: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5813 rm -rf conftest* conftst*
5815 # Do not use the global_symbol_pipe unless it works.
5816 if test yes = "$pipe_works"; then
5819 lt_cv_sys_global_symbol_pipe=
5825 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5826 lt_cv_sys_global_symbol_to_cdecl=
5828 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5830 $as_echo "failed" >&6; }
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5833 $as_echo "ok" >&6; }
5836 # Response file support.
5837 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5838 nm_file_list_spec='@'
5839 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5840 nm_file_list_spec='@'
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5880 $as_echo_n "checking for sysroot... " >&6; }
5882 # Check whether --with-sysroot was given.
5883 if test "${with_sysroot+set}" = set; then :
5884 withval=$with_sysroot;
5891 case $with_sysroot in #(
5893 if test yes = "$GCC"; then
5894 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5898 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5904 $as_echo "$with_sysroot" >&6; }
5905 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5910 $as_echo "${lt_sysroot:-no}" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5917 $as_echo_n "checking for a working dd... " >&6; }
5918 if ${ac_cv_path_lt_DD+:} false; then :
5919 $as_echo_n "(cached) " >&6
5921 printf 0123456789abcdef0123456789abcdef >conftest.i
5922 cat conftest.i conftest.i >conftest2.i
5924 if test -z "$lt_DD"; then
5925 ac_path_lt_DD_found=false
5926 # Loop through the user's path and test for each of PROGNAME-LIST
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_prog in dd; do
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5935 as_fn_executable_p "$ac_path_lt_DD" || continue
5936 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5937 cmp -s conftest.i conftest.out \
5938 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5940 $ac_path_lt_DD_found && break 3
5945 if test -z "$ac_cv_path_lt_DD"; then
5949 ac_cv_path_lt_DD=$lt_DD
5952 rm -f conftest.i conftest2.i conftest.out
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5955 $as_echo "$ac_cv_path_lt_DD" >&6; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5959 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5960 if ${lt_cv_truncate_bin+:} false; then :
5961 $as_echo_n "(cached) " >&6
5963 printf 0123456789abcdef0123456789abcdef >conftest.i
5964 cat conftest.i conftest.i >conftest2.i
5966 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5967 cmp -s conftest.i conftest.out \
5968 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5970 rm -f conftest.i conftest2.i conftest.out
5971 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5974 $as_echo "$lt_cv_truncate_bin" >&6; }
5982 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5985 for cc_temp in $*""; do
5987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5993 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5996 # Check whether --enable-libtool-lock was given.
5997 if test "${enable_libtool_lock+set}" = set; then :
5998 enableval=$enable_libtool_lock;
6001 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6003 # Some flags need to be propagated to the compiler or linker for good
6007 # Find out what ABI is being produced by ac_compile, and set mode
6008 # options accordingly.
6009 echo 'int i;' > conftest.$ac_ext
6010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6011 (eval $ac_compile) 2>&5
6013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6014 test $ac_status = 0; }; then
6015 case `/usr/bin/file conftest.$ac_objext` in
6027 # Find out what ABI is being produced by ac_compile, and set linker
6028 # options accordingly.
6029 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6031 (eval $ac_compile) 2>&5
6033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034 test $ac_status = 0; }; then
6035 if test yes = "$lt_cv_prog_gnu_ld"; then
6036 case `/usr/bin/file conftest.$ac_objext` in
6038 LD="${LD-ld} -melf32bsmip"
6041 LD="${LD-ld} -melf32bmipn32"
6044 LD="${LD-ld} -melf64bmip"
6048 case `/usr/bin/file conftest.$ac_objext` in
6065 # Find out what ABI is being produced by ac_compile, and set linker
6066 # options accordingly.
6067 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6069 (eval $ac_compile) 2>&5
6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072 test $ac_status = 0; }; then
6074 case `/usr/bin/file conftest.$ac_objext` in
6082 case `/usr/bin/file conftest.$ac_objext` in
6084 emul="${emul}btsmip"
6087 emul="${emul}ltsmip"
6090 case `/usr/bin/file conftest.$ac_objext` in
6095 LD="${LD-ld} -m $emul"
6100 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6101 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6102 # Find out what ABI is being produced by ac_compile, and set linker
6103 # options accordingly. Note that the listed cases only cover the
6104 # situations where additional linker options are needed (such as when
6105 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6106 # vice versa); the common cases where no linker options are needed do
6107 # not appear in the list.
6108 echo 'int i;' > conftest.$ac_ext
6109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6110 (eval $ac_compile) 2>&5
6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6113 test $ac_status = 0; }; then
6114 case `/usr/bin/file conftest.o` in
6117 x86_64-*kfreebsd*-gnu)
6118 LD="${LD-ld} -m elf_i386_fbsd"
6121 case `/usr/bin/file conftest.o` in
6123 LD="${LD-ld} -m elf32_x86_64"
6126 LD="${LD-ld} -m elf_i386"
6130 powerpc64le-*linux*)
6131 LD="${LD-ld} -m elf32lppclinux"
6134 LD="${LD-ld} -m elf32ppclinux"
6137 LD="${LD-ld} -m elf_s390"
6140 LD="${LD-ld} -m elf32_sparc"
6146 x86_64-*kfreebsd*-gnu)
6147 LD="${LD-ld} -m elf_x86_64_fbsd"
6150 LD="${LD-ld} -m elf_x86_64"
6152 powerpcle-*linux*|powerpc64le-*linux*)
6153 LD="${LD-ld} -m elf64lppc"
6155 powerpc-*linux*|powerpc64-*linux*)
6156 LD="${LD-ld} -m elf64ppc"
6158 s390*-*linux*|s390*-*tpf*)
6159 LD="${LD-ld} -m elf64_s390"
6162 LD="${LD-ld} -m elf64_sparc"
6172 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6174 CFLAGS="$CFLAGS -belf"
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6176 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6177 if ${lt_cv_cc_needs_belf+:} false; then :
6178 $as_echo_n "(cached) " >&6
6181 ac_cpp='$CPP $CPPFLAGS'
6182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6197 if ac_fn_c_try_link "$LINENO"; then :
6198 lt_cv_cc_needs_belf=yes
6200 lt_cv_cc_needs_belf=no
6202 rm -f core conftest.err conftest.$ac_objext \
6203 conftest$ac_exeext conftest.$ac_ext
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6213 if test yes != "$lt_cv_cc_needs_belf"; then
6214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6219 # Find out what ABI is being produced by ac_compile, and set linker
6220 # options accordingly.
6221 echo 'int i;' > conftest.$ac_ext
6222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223 (eval $ac_compile) 2>&5
6225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226 test $ac_status = 0; }; then
6227 case `/usr/bin/file conftest.o` in
6229 case $lt_cv_prog_gnu_ld in
6232 i?86-*-solaris*|x86_64-*-solaris*)
6233 LD="${LD-ld} -m elf_x86_64"
6236 LD="${LD-ld} -m elf64_sparc"
6239 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6240 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6245 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6257 need_locks=$enable_libtool_lock
6259 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}mt; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6265 $as_echo_n "(cached) " >&6
6267 if test -n "$MANIFEST_TOOL"; then
6268 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6288 if test -n "$MANIFEST_TOOL"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6290 $as_echo "$MANIFEST_TOOL" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6298 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6299 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6300 # Extract the first word of "mt", so it can be a program name with args.
6301 set dummy mt; 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_ac_ct_MANIFEST_TOOL+:} false; then :
6305 $as_echo_n "(cached) " >&6
6307 if test -n "$ac_ct_MANIFEST_TOOL"; then
6308 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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_ac_ct_MANIFEST_TOOL="mt"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6328 if test -n "$ac_ct_MANIFEST_TOOL"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6330 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6336 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6339 case $cross_compiling:$ac_tool_warned in
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned=yes ;;
6345 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6348 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6351 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6353 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6354 if ${lt_cv_path_mainfest_tool+:} false; then :
6355 $as_echo_n "(cached) " >&6
6357 lt_cv_path_mainfest_tool=no
6358 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6359 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6360 cat conftest.err >&5
6361 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6362 lt_cv_path_mainfest_tool=yes
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6367 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6368 if test yes != "$lt_cv_path_mainfest_tool"; then
6378 rhapsody* | darwin*)
6379 if test -n "$ac_tool_prefix"; then
6380 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6385 $as_echo_n "(cached) " >&6
6387 if test -n "$DSYMUTIL"; then
6388 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6408 if test -n "$DSYMUTIL"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6410 $as_echo "$DSYMUTIL" >&6; }
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6418 if test -z "$ac_cv_prog_DSYMUTIL"; then
6419 ac_ct_DSYMUTIL=$DSYMUTIL
6420 # Extract the first word of "dsymutil", so it can be a program name with args.
6421 set dummy dsymutil; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6425 $as_echo_n "(cached) " >&6
6427 if test -n "$ac_ct_DSYMUTIL"; then
6428 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6448 if test -n "$ac_ct_DSYMUTIL"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6450 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6456 if test "x$ac_ct_DSYMUTIL" = x; then
6459 case $cross_compiling:$ac_tool_warned in
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463 ac_tool_warned=yes ;;
6465 DSYMUTIL=$ac_ct_DSYMUTIL
6468 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6471 if test -n "$ac_tool_prefix"; then
6472 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_NMEDIT+:} false; then :
6477 $as_echo_n "(cached) " >&6
6479 if test -n "$NMEDIT"; then
6480 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 NMEDIT=$ac_cv_prog_NMEDIT
6500 if test -n "$NMEDIT"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6502 $as_echo "$NMEDIT" >&6; }
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6510 if test -z "$ac_cv_prog_NMEDIT"; then
6511 ac_ct_NMEDIT=$NMEDIT
6512 # Extract the first word of "nmedit", so it can be a program name with args.
6513 set dummy nmedit; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6517 $as_echo_n "(cached) " >&6
6519 if test -n "$ac_ct_NMEDIT"; then
6520 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6540 if test -n "$ac_ct_NMEDIT"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6542 $as_echo "$ac_ct_NMEDIT" >&6; }
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6548 if test "x$ac_ct_NMEDIT" = x; then
6551 case $cross_compiling:$ac_tool_warned in
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6557 NMEDIT=$ac_ct_NMEDIT
6560 NMEDIT="$ac_cv_prog_NMEDIT"
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_LIPO+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 if test -n "$LIPO"; then
6572 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 LIPO=$ac_cv_prog_LIPO
6592 if test -n "$LIPO"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6594 $as_echo "$LIPO" >&6; }
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6602 if test -z "$ac_cv_prog_LIPO"; then
6604 # Extract the first word of "lipo", so it can be a program name with args.
6605 set dummy lipo; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$ac_ct_LIPO"; then
6612 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621 ac_cv_prog_ac_ct_LIPO="lipo"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6632 if test -n "$ac_ct_LIPO"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6634 $as_echo "$ac_ct_LIPO" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6640 if test "x$ac_ct_LIPO" = x; then
6643 case $cross_compiling:$ac_tool_warned in
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6652 LIPO="$ac_cv_prog_LIPO"
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}otool; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_OTOOL+:} false; then :
6661 $as_echo_n "(cached) " >&6
6663 if test -n "$OTOOL"; then
6664 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 OTOOL=$ac_cv_prog_OTOOL
6684 if test -n "$OTOOL"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6686 $as_echo "$OTOOL" >&6; }
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6694 if test -z "$ac_cv_prog_OTOOL"; then
6696 # Extract the first word of "otool", so it can be a program name with args.
6697 set dummy otool; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6701 $as_echo_n "(cached) " >&6
6703 if test -n "$ac_ct_OTOOL"; then
6704 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_ac_ct_OTOOL="otool"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6724 if test -n "$ac_ct_OTOOL"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6726 $as_echo "$ac_ct_OTOOL" >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6732 if test "x$ac_ct_OTOOL" = x; then
6735 case $cross_compiling:$ac_tool_warned in
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6744 OTOOL="$ac_cv_prog_OTOOL"
6747 if test -n "$ac_tool_prefix"; then
6748 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6749 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if ${ac_cv_prog_OTOOL64+:} false; then :
6753 $as_echo_n "(cached) " >&6
6755 if test -n "$OTOOL64"; then
6756 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 OTOOL64=$ac_cv_prog_OTOOL64
6776 if test -n "$OTOOL64"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6778 $as_echo "$OTOOL64" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6786 if test -z "$ac_cv_prog_OTOOL64"; then
6787 ac_ct_OTOOL64=$OTOOL64
6788 # Extract the first word of "otool64", so it can be a program name with args.
6789 set dummy otool64; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6793 $as_echo_n "(cached) " >&6
6795 if test -n "$ac_ct_OTOOL64"; then
6796 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_ac_ct_OTOOL64="otool64"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6816 if test -n "$ac_ct_OTOOL64"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6818 $as_echo "$ac_ct_OTOOL64" >&6; }
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6824 if test "x$ac_ct_OTOOL64" = x; then
6827 case $cross_compiling:$ac_tool_warned in
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6831 ac_tool_warned=yes ;;
6833 OTOOL64=$ac_ct_OTOOL64
6836 OTOOL64="$ac_cv_prog_OTOOL64"
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6866 $as_echo_n "checking for -single_module linker flag... " >&6; }
6867 if ${lt_cv_apple_cc_single_mod+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 lt_cv_apple_cc_single_mod=no
6871 if test -z "$LT_MULTI_MODULE"; then
6872 # By default we will add the -single_module flag. You can override
6873 # by either setting the environment variable LT_MULTI_MODULE
6874 # non-empty at configure time, or by adding -multi_module to the
6876 rm -rf libconftest.dylib*
6877 echo "int foo(void){return 1;}" > conftest.c
6878 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6879 -dynamiclib -Wl,-single_module conftest.c" >&5
6880 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6881 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6883 # If there is a non-empty error log, and "single_module"
6884 # appears in it, assume the flag caused a linker warning
6885 if test -s conftest.err && $GREP single_module conftest.err; then
6886 cat conftest.err >&5
6887 # Otherwise, if the output was created with a 0 exit code from
6888 # the compiler, it worked.
6889 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6890 lt_cv_apple_cc_single_mod=yes
6892 cat conftest.err >&5
6894 rm -rf libconftest.dylib*
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6899 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6902 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6903 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6904 $as_echo_n "(cached) " >&6
6906 lt_cv_ld_exported_symbols_list=no
6907 save_LDFLAGS=$LDFLAGS
6908 echo "_main" > conftest.sym
6909 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6921 if ac_fn_c_try_link "$LINENO"; then :
6922 lt_cv_ld_exported_symbols_list=yes
6924 lt_cv_ld_exported_symbols_list=no
6926 rm -f core conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
6928 LDFLAGS=$save_LDFLAGS
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6932 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6935 $as_echo_n "checking for -force_load linker flag... " >&6; }
6936 if ${lt_cv_ld_force_load+:} false; then :
6937 $as_echo_n "(cached) " >&6
6939 lt_cv_ld_force_load=no
6940 cat > conftest.c << _LT_EOF
6941 int forced_loaded() { return 2;}
6943 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6944 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6945 echo "$AR cru libconftest.a conftest.o" >&5
6946 $AR cru libconftest.a conftest.o 2>&5
6947 echo "$RANLIB libconftest.a" >&5
6948 $RANLIB libconftest.a 2>&5
6949 cat > conftest.c << _LT_EOF
6950 int main() { return 0;}
6952 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6953 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6955 if test -s conftest.err && $GREP force_load conftest.err; then
6956 cat conftest.err >&5
6957 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6958 lt_cv_ld_force_load=yes
6960 cat conftest.err >&5
6962 rm -f conftest.err libconftest.a conftest conftest.c
6963 rm -rf conftest.dSYM
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6967 $as_echo "$lt_cv_ld_force_load" >&6; }
6969 rhapsody* | darwin1.[012])
6970 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6972 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6973 darwin*) # darwin 5.x on
6974 # if running on 10.5 or later, the deployment target defaults
6975 # to the OS version, if on x86, and 10.4, the deployment
6976 # target defaults to 10.4. Don't you love it?
6977 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6978 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6979 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6981 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6983 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6987 if test yes = "$lt_cv_apple_cc_single_mod"; then
6988 _lt_dar_single_mod='$single_module'
6990 if test yes = "$lt_cv_ld_exported_symbols_list"; then
6991 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6993 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6995 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6996 _lt_dsymutil='~$DSYMUTIL $lib || :'
7003 # func_munge_path_list VARIABLE PATH
7004 # -----------------------------------
7005 # VARIABLE is name of variable containing _space_ separated list of
7006 # directories to be munged by the contents of PATH, which is string
7009 # string "DIR[ DIR]" will be prepended to VARIABLE
7011 # string "DIR[ DIR]" will be appended to VARIABLE
7012 # "DIRP[:DIRP]::[DIRA:]DIRA"
7013 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7014 # "DIRA[ DIRA]" will be appended to VARIABLE
7016 # VARIABLE will be replaced by "DIR[ DIR]"
7017 func_munge_path_list ()
7023 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7026 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7029 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7030 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7033 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7039 ac_cpp='$CPP $CPPFLAGS'
7040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7045 # On Suns, sometimes $CPP names a directory.
7046 if test -n "$CPP" && test -d "$CPP"; then
7049 if test -z "$CPP"; then
7050 if ${ac_cv_prog_CPP+:} false; then :
7051 $as_echo_n "(cached) " >&6
7053 # Double quotes because CPP needs to be expanded
7054 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7057 for ac_c_preproc_warn_flag in '' yes
7059 # Use a header file that comes with gcc, so configuring glibc
7060 # with a fresh cross-compiler works.
7061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7062 # <limits.h> exists even on freestanding compilers.
7063 # On the NeXT, cc -E runs the code through the compiler's parser,
7064 # not just through cpp. "Syntax error" is here to catch this case.
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7068 # include <limits.h>
7070 # include <assert.h>
7074 if ac_fn_c_try_cpp "$LINENO"; then :
7077 # Broken: fails on valid input.
7080 rm -f conftest.err conftest.i conftest.$ac_ext
7082 # OK, works on sane cases. Now check whether nonexistent headers
7083 # can be detected and how.
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086 #include <ac_nonexistent.h>
7088 if ac_fn_c_try_cpp "$LINENO"; then :
7089 # Broken: success on invalid input.
7092 # Passes both tests.
7096 rm -f conftest.err conftest.i conftest.$ac_ext
7099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7100 rm -f conftest.i conftest.err conftest.$ac_ext
7101 if $ac_preproc_ok; then :
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7114 $as_echo "$CPP" >&6; }
7116 for ac_c_preproc_warn_flag in '' yes
7118 # Use a header file that comes with gcc, so configuring glibc
7119 # with a fresh cross-compiler works.
7120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7121 # <limits.h> exists even on freestanding compilers.
7122 # On the NeXT, cc -E runs the code through the compiler's parser,
7123 # not just through cpp. "Syntax error" is here to catch this case.
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7127 # include <limits.h>
7129 # include <assert.h>
7133 if ac_fn_c_try_cpp "$LINENO"; then :
7136 # Broken: fails on valid input.
7139 rm -f conftest.err conftest.i conftest.$ac_ext
7141 # OK, works on sane cases. Now check whether nonexistent headers
7142 # can be detected and how.
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 #include <ac_nonexistent.h>
7147 if ac_fn_c_try_cpp "$LINENO"; then :
7148 # Broken: success on invalid input.
7151 # Passes both tests.
7155 rm -f conftest.err conftest.i conftest.$ac_ext
7158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7159 rm -f conftest.i conftest.err conftest.$ac_ext
7160 if $ac_preproc_ok; then :
7163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7165 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7166 See \`config.log' for more details" "$LINENO" 5; }
7170 ac_cpp='$CPP $CPPFLAGS'
7171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7177 $as_echo_n "checking for ANSI C header files... " >&6; }
7178 if ${ac_cv_header_stdc+:} false; then :
7179 $as_echo_n "(cached) " >&6
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197 ac_cv_header_stdc=yes
7199 ac_cv_header_stdc=no
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203 if test $ac_cv_header_stdc = yes; then
7204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7211 $EGREP "memchr" >/dev/null 2>&1; then :
7214 ac_cv_header_stdc=no
7220 if test $ac_cv_header_stdc = yes; then
7221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7228 $EGREP "free" >/dev/null 2>&1; then :
7231 ac_cv_header_stdc=no
7237 if test $ac_cv_header_stdc = yes; then
7238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7239 if test "$cross_compiling" = yes; then :
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7246 #if ((' ' & 0x0FF) == 0x020)
7247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7250 # define ISLOWER(c) \
7251 (('a' <= (c) && (c) <= 'i') \
7252 || ('j' <= (c) && (c) <= 'r') \
7253 || ('s' <= (c) && (c) <= 'z'))
7254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7262 for (i = 0; i < 256; i++)
7263 if (XOR (islower (i), ISLOWER (i))
7264 || toupper (i) != TOUPPER (i))
7269 if ac_fn_c_try_run "$LINENO"; then :
7272 ac_cv_header_stdc=no
7274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7275 conftest.$ac_objext conftest.beam conftest.$ac_ext
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7281 $as_echo "$ac_cv_header_stdc" >&6; }
7282 if test $ac_cv_header_stdc = yes; then
7284 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7290 inttypes.h stdint.h unistd.h
7292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7293 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7296 cat >>confdefs.h <<_ACEOF
7297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7305 for ac_header in dlfcn.h
7307 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7309 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7310 cat >>confdefs.h <<_ACEOF
7311 #define HAVE_DLFCN_H 1
7330 # Check whether --enable-shared was given.
7331 if test "${enable_shared+set}" = set; then :
7332 enableval=$enable_shared; p=${PACKAGE-default}
7334 yes) enable_shared=yes ;;
7335 no) enable_shared=no ;;
7338 # Look at the argument we got. We use all the common list separators.
7339 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7340 for pkg in $enableval; do
7342 if test "X$pkg" = "X$p"; then
7361 # Check whether --enable-static was given.
7362 if test "${enable_static+set}" = set; then :
7363 enableval=$enable_static; p=${PACKAGE-default}
7365 yes) enable_static=yes ;;
7366 no) enable_static=no ;;
7369 # Look at the argument we got. We use all the common list separators.
7370 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7371 for pkg in $enableval; do
7373 if test "X$pkg" = "X$p"; then
7393 # Check whether --with-pic was given.
7394 if test "${with_pic+set}" = set; then :
7395 withval=$with_pic; lt_p=${PACKAGE-default}
7397 yes|no) pic_mode=$withval ;;
7400 # Look at the argument we got. We use all the common list separators.
7401 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7402 for lt_pkg in $withval; do
7404 if test "X$lt_pkg" = "X$lt_p"; then
7422 # Check whether --enable-fast-install was given.
7423 if test "${enable_fast_install+set}" = set; then :
7424 enableval=$enable_fast_install; p=${PACKAGE-default}
7426 yes) enable_fast_install=yes ;;
7427 no) enable_fast_install=no ;;
7429 enable_fast_install=no
7430 # Look at the argument we got. We use all the common list separators.
7431 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7432 for pkg in $enableval; do
7434 if test "X$pkg" = "X$p"; then
7435 enable_fast_install=yes
7442 enable_fast_install=yes
7452 shared_archive_member_spec=
7453 case $host,$enable_shared in
7454 power*-*-aix[5-9]*,yes)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7456 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7458 # Check whether --with-aix-soname was given.
7459 if test "${with_aix_soname+set}" = set; then :
7460 withval=$with_aix_soname; case $withval in
7464 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7467 lt_cv_with_aix_soname=$with_aix_soname
7469 if ${lt_cv_with_aix_soname+:} false; then :
7470 $as_echo_n "(cached) " >&6
7472 lt_cv_with_aix_soname=aix
7475 with_aix_soname=$lt_cv_with_aix_soname
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7479 $as_echo "$with_aix_soname" >&6; }
7480 if test aix != "$with_aix_soname"; then
7481 # For the AIX way of multilib, we name the shared archive member
7482 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7483 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7484 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7485 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7486 if test 64 = "${OBJECT_MODE-32}"; then
7487 shared_archive_member_spec=shr_64
7489 shared_archive_member_spec=shr
7507 # This can be used to rebuild libtool when needed
7508 LIBTOOL_DEPS=$ltmain
7510 # Always use our own libtool.
7511 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7542 test -z "$LN_S" && LN_S="ln -s"
7557 if test -n "${ZSH_VERSION+set}"; then
7558 setopt NO_GLOB_SUBST
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7562 $as_echo_n "checking for objdir... " >&6; }
7563 if ${lt_cv_objdir+:} false; then :
7564 $as_echo_n "(cached) " >&6
7566 rm -f .libs 2>/dev/null
7567 mkdir .libs 2>/dev/null
7568 if test -d .libs; then
7571 # MS-DOS does not allow filenames that begin with a dot.
7574 rmdir .libs 2>/dev/null
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7577 $as_echo "$lt_cv_objdir" >&6; }
7578 objdir=$lt_cv_objdir
7584 cat >>confdefs.h <<_ACEOF
7585 #define LT_OBJDIR "$lt_cv_objdir/"
7593 # AIX sometimes has problems with the GCC collect2 program. For some
7594 # reason, if we set the COLLECT_NAMES environment variable, the problems
7595 # vanish in a puff of smoke.
7596 if test set != "${COLLECT_NAMES+set}"; then
7598 export COLLECT_NAMES
7605 can_build_shared=yes
7607 # All known linkers require a '.a' archive for static linking (except MSVC,
7608 # which needs '.lib').
7611 with_gnu_ld=$lt_cv_prog_gnu_ld
7616 # Set sane defaults for various variables
7617 test -z "$CC" && CC=cc
7618 test -z "$LTCC" && LTCC=$CC
7619 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7620 test -z "$LD" && LD=ld
7621 test -z "$ac_objext" && ac_objext=o
7623 func_cc_basename $compiler
7624 cc_basename=$func_cc_basename_result
7627 # Only perform the check for file, if the check method requires it
7628 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7629 case $deplibs_check_method in
7631 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7633 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7634 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7635 $as_echo_n "(cached) " >&6
7639 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7642 lt_save_MAGIC_CMD=$MAGIC_CMD
7643 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7645 for ac_dir in $ac_dummy; do
7647 test -z "$ac_dir" && ac_dir=.
7648 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7649 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7650 if test -n "$file_magic_test_file"; then
7651 case $deplibs_check_method in
7653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7654 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7656 $EGREP "$file_magic_regex" > /dev/null; then
7661 *** Warning: the command libtool uses to detect shared libraries,
7662 *** $file_magic_cmd, produces output that libtool cannot recognize.
7663 *** The result is that libtool may fail to recognize shared libraries
7664 *** as such. This will affect the creation of libtool libraries that
7665 *** depend on shared libraries, but programs linked with such libtool
7666 *** libraries will work regardless of this problem. Nevertheless, you
7667 *** may want to report the problem to your system manager and/or to
7668 *** bug-libtool@gnu.org
7678 MAGIC_CMD=$lt_save_MAGIC_CMD
7683 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7684 if test -n "$MAGIC_CMD"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7686 $as_echo "$MAGIC_CMD" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7696 if test -z "$lt_cv_path_MAGIC_CMD"; then
7697 if test -n "$ac_tool_prefix"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7699 $as_echo_n "checking for file... " >&6; }
7700 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7701 $as_echo_n "(cached) " >&6
7705 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7708 lt_save_MAGIC_CMD=$MAGIC_CMD
7709 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7710 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7711 for ac_dir in $ac_dummy; do
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f "$ac_dir/file"; then
7715 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7716 if test -n "$file_magic_test_file"; then
7717 case $deplibs_check_method in
7719 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7720 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7721 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7722 $EGREP "$file_magic_regex" > /dev/null; then
7727 *** Warning: the command libtool uses to detect shared libraries,
7728 *** $file_magic_cmd, produces output that libtool cannot recognize.
7729 *** The result is that libtool may fail to recognize shared libraries
7730 *** as such. This will affect the creation of libtool libraries that
7731 *** depend on shared libraries, but programs linked with such libtool
7732 *** libraries will work regardless of this problem. Nevertheless, you
7733 *** may want to report the problem to your system manager and/or to
7734 *** bug-libtool@gnu.org
7744 MAGIC_CMD=$lt_save_MAGIC_CMD
7749 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7750 if test -n "$MAGIC_CMD"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7752 $as_echo "$MAGIC_CMD" >&6; }
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7768 # Use C for the default configuration in the libtool script
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7778 # Source file extension for C test sources.
7781 # Object file extension for compiled C test sources.
7785 # Code to be used in simple compile tests
7786 lt_simple_compile_test_code="int some_variable = 0;"
7788 # Code to be used in simple link tests
7789 lt_simple_link_test_code='int main(){return(0);}'
7797 # If no C compiler was specified, use CC.
7800 # If no C compiler flags were specified, use CFLAGS.
7801 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7803 # Allow CC to be a program name with arguments.
7806 # Save the default compiler, since it gets overwritten when the other
7807 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7808 compiler_DEFAULT=$CC
7810 # save warnings/boilerplate of simple test code
7811 ac_outfile=conftest.$ac_objext
7812 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7813 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7814 _lt_compiler_boilerplate=`cat conftest.err`
7817 ac_outfile=conftest.$ac_objext
7818 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7819 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7820 _lt_linker_boilerplate=`cat conftest.err`
7825 ## There is no encapsulation within the following macros, do not change
7826 ## the running order or otherwise move them around unless you know exactly
7827 ## what you are doing...
7828 if test -n "$compiler"; then
7830 lt_prog_compiler_no_builtin_flag=
7832 if test yes = "$GCC"; then
7833 case $cc_basename in
7835 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7837 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7841 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7842 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7843 $as_echo_n "(cached) " >&6
7845 lt_cv_prog_compiler_rtti_exceptions=no
7846 ac_outfile=conftest.$ac_objext
7847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7848 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7849 # Insert the option either (1) after the last *FLAGS variable, or
7850 # (2) before a word containing "conftest.", or (3) at the end.
7851 # Note that $ac_compile itself does not contain backslashes and begins
7852 # with a dollar sign (not a hyphen), so the echo should work correctly.
7853 # The option is referenced via a variable to avoid confusing sed.
7854 lt_compile=`echo "$ac_compile" | $SED \
7855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857 -e 's:$: $lt_compiler_flag:'`
7858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7859 (eval "$lt_compile" 2>conftest.err)
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 if (exit $ac_status) && test -s "$ac_outfile"; then
7864 # The compiler can only warn and ignore the option if not recognized
7865 # So say no if there are warnings other than the usual output.
7866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7868 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7869 lt_cv_prog_compiler_rtti_exceptions=yes
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7876 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7878 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7879 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7891 lt_prog_compiler_wl=
7892 lt_prog_compiler_pic=
7893 lt_prog_compiler_static=
7896 if test yes = "$GCC"; then
7897 lt_prog_compiler_wl='-Wl,'
7898 lt_prog_compiler_static='-static'
7902 # All AIX code is PIC.
7903 if test ia64 = "$host_cpu"; then
7904 # AIX 5 now supports IA64 processor
7905 lt_prog_compiler_static='-Bstatic'
7907 lt_prog_compiler_pic='-fPIC'
7913 # see comment about AmigaOS4 .so support
7914 lt_prog_compiler_pic='-fPIC'
7917 # FIXME: we need at least 68020 code to build shared libraries, but
7918 # adding the '-m68020' flag to GCC prevents building anything better,
7920 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7925 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7926 # PIC is the default for these OSes.
7929 mingw* | cygwin* | pw32* | os2* | cegcc*)
7930 # This hack is so that the source file can tell whether it is being
7931 # built for inclusion in a dll (and should export symbols for example).
7932 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7933 # (--disable-auto-import) libraries
7934 lt_prog_compiler_pic='-DDLL_EXPORT'
7937 lt_prog_compiler_static='$wl-static'
7942 darwin* | rhapsody*)
7943 # PIC is the default on this platform
7944 # Common symbols not allowed in MH_DYLIB files
7945 lt_prog_compiler_pic='-fno-common'
7949 # PIC is the default for Haiku.
7950 # The "-static" flag exists, but is broken.
7951 lt_prog_compiler_static=
7955 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7956 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7957 # sets the default TLS model and affects inlining.
7963 lt_prog_compiler_pic='-fPIC'
7969 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7970 # Instead, we relocate shared libraries at runtime.
7974 # Just because we use GCC doesn't mean we suddenly get shared libraries
7975 # on systems that don't support them.
7976 lt_prog_compiler_can_build_shared=no
7981 # QNX uses GNU C++, but need to define -shared option too, otherwise
7983 lt_prog_compiler_pic='-fPIC -shared'
7987 if test -d /usr/nec; then
7988 lt_prog_compiler_pic=-Kconform_pic
7993 lt_prog_compiler_pic='-fPIC'
7997 case $cc_basename in
7998 nvcc*) # Cuda Compiler Driver 2.2
7999 lt_prog_compiler_wl='-Xlinker '
8000 if test -n "$lt_prog_compiler_pic"; then
8001 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8006 # PORTME Check for flag to pass linker flags through the system compiler.
8009 lt_prog_compiler_wl='-Wl,'
8010 if test ia64 = "$host_cpu"; then
8011 # AIX 5 now supports IA64 processor
8012 lt_prog_compiler_static='-Bstatic'
8014 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8018 darwin* | rhapsody*)
8019 # PIC is the default on this platform
8020 # Common symbols not allowed in MH_DYLIB files
8021 lt_prog_compiler_pic='-fno-common'
8022 case $cc_basename in
8024 # NAG Fortran compiler
8025 lt_prog_compiler_wl='-Wl,-Wl,,'
8026 lt_prog_compiler_pic='-PIC'
8027 lt_prog_compiler_static='-Bstatic'
8032 mingw* | cygwin* | pw32* | os2* | cegcc*)
8033 # This hack is so that the source file can tell whether it is being
8034 # built for inclusion in a dll (and should export symbols for example).
8035 lt_prog_compiler_pic='-DDLL_EXPORT'
8038 lt_prog_compiler_static='$wl-static'
8043 hpux9* | hpux10* | hpux11*)
8044 lt_prog_compiler_wl='-Wl,'
8045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8052 lt_prog_compiler_pic='+Z'
8055 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8056 lt_prog_compiler_static='$wl-a ${wl}archive'
8059 irix5* | irix6* | nonstopux*)
8060 lt_prog_compiler_wl='-Wl,'
8061 # PIC (with -KPIC) is the default.
8062 lt_prog_compiler_static='-non_shared'
8065 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8066 case $cc_basename in
8067 # old Intel for x86_64, which still supported -KPIC.
8069 lt_prog_compiler_wl='-Wl,'
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-static'
8073 # icc used to be incompatible with GCC.
8074 # ICC 10 doesn't accept -KPIC any more.
8076 lt_prog_compiler_wl='-Wl,'
8077 lt_prog_compiler_pic='-fPIC'
8078 lt_prog_compiler_static='-static'
8080 # Lahey Fortran 8.1.
8082 lt_prog_compiler_wl='-Wl,'
8083 lt_prog_compiler_pic='--shared'
8084 lt_prog_compiler_static='--static'
8087 # NAG Fortran compiler
8088 lt_prog_compiler_wl='-Wl,-Wl,,'
8089 lt_prog_compiler_pic='-PIC'
8090 lt_prog_compiler_static='-Bstatic'
8093 # Fabrice Bellard et al's Tiny C Compiler
8094 lt_prog_compiler_wl='-Wl,'
8095 lt_prog_compiler_pic='-fPIC'
8096 lt_prog_compiler_static='-static'
8098 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8099 # Portland Group compilers (*not* the Pentium gcc compiler,
8100 # which looks to be a dead project)
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-fpic'
8103 lt_prog_compiler_static='-Bstatic'
8106 lt_prog_compiler_wl='-Wl,'
8107 # All Alpha code is PIC.
8108 lt_prog_compiler_static='-non_shared'
8110 xl* | bgxl* | bgf* | mpixl*)
8111 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_pic='-qpic'
8114 lt_prog_compiler_static='-qstaticlink'
8117 case `$CC -V 2>&1 | sed 5q` in
8118 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8119 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8120 lt_prog_compiler_pic='-KPIC'
8121 lt_prog_compiler_static='-Bstatic'
8122 lt_prog_compiler_wl=''
8124 *Sun\ F* | *Sun*Fortran*)
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8127 lt_prog_compiler_wl='-Qoption ld '
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
8133 lt_prog_compiler_wl='-Wl,'
8135 *Intel*\ [CF]*Compiler*)
8136 lt_prog_compiler_wl='-Wl,'
8137 lt_prog_compiler_pic='-fPIC'
8138 lt_prog_compiler_static='-static'
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_pic='-fpic'
8143 lt_prog_compiler_static='-Bstatic'
8151 lt_prog_compiler_pic='-KPIC'
8152 lt_prog_compiler_static='-Bstatic'
8156 # QNX uses GNU C++, but need to define -shared option too, otherwise
8158 lt_prog_compiler_pic='-fPIC -shared'
8161 osf3* | osf4* | osf5*)
8162 lt_prog_compiler_wl='-Wl,'
8163 # All OSF/1 code is PIC.
8164 lt_prog_compiler_static='-non_shared'
8168 lt_prog_compiler_static='-non_shared'
8172 lt_prog_compiler_pic='-KPIC'
8173 lt_prog_compiler_static='-Bstatic'
8174 case $cc_basename in
8175 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8176 lt_prog_compiler_wl='-Qoption ld ';;
8178 lt_prog_compiler_wl='-Wl,';;
8183 lt_prog_compiler_wl='-Qoption ld '
8184 lt_prog_compiler_pic='-PIC'
8185 lt_prog_compiler_static='-Bstatic'
8188 sysv4 | sysv4.2uw2* | sysv4.3*)
8189 lt_prog_compiler_wl='-Wl,'
8190 lt_prog_compiler_pic='-KPIC'
8191 lt_prog_compiler_static='-Bstatic'
8195 if test -d /usr/nec; then
8196 lt_prog_compiler_pic='-Kconform_pic'
8197 lt_prog_compiler_static='-Bstatic'
8201 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_pic='-KPIC'
8204 lt_prog_compiler_static='-Bstatic'
8208 lt_prog_compiler_wl='-Wl,'
8209 lt_prog_compiler_can_build_shared=no
8213 lt_prog_compiler_pic='-pic'
8214 lt_prog_compiler_static='-Bstatic'
8218 lt_prog_compiler_can_build_shared=no
8224 # For platforms that do not support PIC, -DPIC is meaningless:
8226 lt_prog_compiler_pic=
8229 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8234 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8235 if ${lt_cv_prog_compiler_pic+:} false; then :
8236 $as_echo_n "(cached) " >&6
8238 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8241 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8242 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8245 # Check to make sure the PIC flag actually works.
8247 if test -n "$lt_prog_compiler_pic"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8249 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8250 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8251 $as_echo_n "(cached) " >&6
8253 lt_cv_prog_compiler_pic_works=no
8254 ac_outfile=conftest.$ac_objext
8255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8256 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8257 # Insert the option either (1) after the last *FLAGS variable, or
8258 # (2) before a word containing "conftest.", or (3) at the end.
8259 # Note that $ac_compile itself does not contain backslashes and begins
8260 # with a dollar sign (not a hyphen), so the echo should work correctly.
8261 # The option is referenced via a variable to avoid confusing sed.
8262 lt_compile=`echo "$ac_compile" | $SED \
8263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8265 -e 's:$: $lt_compiler_flag:'`
8266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8267 (eval "$lt_compile" 2>conftest.err)
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 if (exit $ac_status) && test -s "$ac_outfile"; then
8272 # The compiler can only warn and ignore the option if not recognized
8273 # So say no if there are warnings other than the usual output.
8274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8276 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8277 lt_cv_prog_compiler_pic_works=yes
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8284 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8286 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8287 case $lt_prog_compiler_pic in
8289 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8292 lt_prog_compiler_pic=
8293 lt_prog_compiler_can_build_shared=no
8309 # Check to make sure the static flag actually works.
8311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8313 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8314 if ${lt_cv_prog_compiler_static_works+:} false; then :
8315 $as_echo_n "(cached) " >&6
8317 lt_cv_prog_compiler_static_works=no
8318 save_LDFLAGS=$LDFLAGS
8319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8322 # The linker can only warn and ignore the option if not recognized
8323 # So say no if there are warnings
8324 if test -s conftest.err; then
8325 # Append any errors to the config.log.
8326 cat conftest.err 1>&5
8327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8329 if diff conftest.exp conftest.er2 >/dev/null; then
8330 lt_cv_prog_compiler_static_works=yes
8333 lt_cv_prog_compiler_static_works=yes
8337 LDFLAGS=$save_LDFLAGS
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8341 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8343 if test yes = "$lt_cv_prog_compiler_static_works"; then
8346 lt_prog_compiler_static=
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8357 if ${lt_cv_prog_compiler_c_o+:} false; then :
8358 $as_echo_n "(cached) " >&6
8360 lt_cv_prog_compiler_c_o=no
8361 $RM -r conftest 2>/dev/null
8365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8367 lt_compiler_flag="-o out/conftest2.$ac_objext"
8368 # Insert the option either (1) after the last *FLAGS variable, or
8369 # (2) before a word containing "conftest.", or (3) at the end.
8370 # Note that $ac_compile itself does not contain backslashes and begins
8371 # with a dollar sign (not a hyphen), so the echo should work correctly.
8372 lt_compile=`echo "$ac_compile" | $SED \
8373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375 -e 's:$: $lt_compiler_flag:'`
8376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8377 (eval "$lt_compile" 2>out/conftest.err)
8379 cat out/conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8383 # The compiler can only warn and ignore the option if not recognized
8384 # So say no if there are warnings
8385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8388 lt_cv_prog_compiler_c_o=yes
8393 # SGI C++ compiler will create directory out/ii_files/ for
8394 # template instantiation
8395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8396 $RM out/* && rmdir out
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8412 if ${lt_cv_prog_compiler_c_o+:} false; then :
8413 $as_echo_n "(cached) " >&6
8415 lt_cv_prog_compiler_c_o=no
8416 $RM -r conftest 2>/dev/null
8420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422 lt_compiler_flag="-o out/conftest2.$ac_objext"
8423 # Insert the option either (1) after the last *FLAGS variable, or
8424 # (2) before a word containing "conftest.", or (3) at the end.
8425 # Note that $ac_compile itself does not contain backslashes and begins
8426 # with a dollar sign (not a hyphen), so the echo should work correctly.
8427 lt_compile=`echo "$ac_compile" | $SED \
8428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8430 -e 's:$: $lt_compiler_flag:'`
8431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8432 (eval "$lt_compile" 2>out/conftest.err)
8434 cat out/conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8438 # The compiler can only warn and ignore the option if not recognized
8439 # So say no if there are warnings
8440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8443 lt_cv_prog_compiler_c_o=yes
8448 # SGI C++ compiler will create directory out/ii_files/ for
8449 # template instantiation
8450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8451 $RM out/* && rmdir out
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8463 hard_links=nottested
8464 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8465 # do not overwrite the value of need_locks provided by the user
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8467 $as_echo_n "checking if we can lock with hard links... " >&6; }
8470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8472 ln conftest.a conftest.b 2>&5 || hard_links=no
8473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8475 $as_echo "$hard_links" >&6; }
8476 if test no = "$hard_links"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8478 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8491 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8494 allow_undefined_flag=
8495 always_export_symbols=no
8497 archive_expsym_cmds=
8498 compiler_needs_object=no
8499 enable_shared_with_static_runtimes=no
8500 export_dynamic_flag_spec=
8501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8502 hardcode_automatic=no
8504 hardcode_direct_absolute=no
8505 hardcode_libdir_flag_spec=
8506 hardcode_libdir_separator=
8508 hardcode_shlibpath_var=unsupported
8510 link_all_deplibs=unknown
8513 old_archive_from_new_cmds=
8514 old_archive_from_expsyms_cmds=
8515 thread_safe_flag_spec=
8516 whole_archive_flag_spec=
8517 # include_expsyms should be a list of space-separated symbols to be *always*
8518 # included in the symbol list
8520 # exclude_expsyms can be an extended regexp of symbols to exclude
8521 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8522 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8523 # as well as any symbol that contains 'd'.
8524 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8525 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8526 # platforms (ab)use it in PIC code, but their linkers get confused if
8527 # the symbol is explicitly referenced. Since portable code cannot
8528 # rely on this symbol name, it's probably fine to never include it in
8529 # preloaded symbol tables.
8530 # Exclude shared library initialization/finalization symbols.
8531 extract_expsyms_cmds=
8534 cygwin* | mingw* | pw32* | cegcc*)
8535 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8536 # When not using gcc, we currently assume that we are using
8537 # Microsoft Visual C++.
8538 if test yes != "$GCC"; then
8543 # we just hope/assume this is gcc and not c89 (= MSVC++)
8553 # On some targets, GNU ld is compatible enough with the native linker
8554 # that we're better off using the native interface for both.
8555 lt_use_gnu_ld_interface=no
8556 if test yes = "$with_gnu_ld"; then
8559 # The AIX port of GNU ld has always aspired to compatibility
8560 # with the native linker. However, as the warning in the GNU ld
8561 # block says, versions before 2.19.5* couldn't really create working
8562 # shared libraries, regardless of the interface used.
8563 case `$LD -v 2>&1` in
8564 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8565 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8566 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8568 lt_use_gnu_ld_interface=yes
8573 lt_use_gnu_ld_interface=yes
8578 if test yes = "$lt_use_gnu_ld_interface"; then
8579 # If archive_cmds runs LD, not CC, wlarc should be empty
8582 # Set some defaults for GNU ld with shared library support. These
8583 # are reset later if shared libraries are not supported. Putting them
8584 # here allows them to be overridden if necessary.
8585 runpath_var=LD_RUN_PATH
8586 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8587 export_dynamic_flag_spec='$wl--export-dynamic'
8588 # ancient GNU ld didn't support --whole-archive et. al.
8589 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8590 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8592 whole_archive_flag_spec=
8594 supports_anon_versioning=no
8595 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8596 *GNU\ gold*) supports_anon_versioning=yes ;;
8597 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8598 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8599 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8600 *\ 2.11.*) ;; # other 2.11 versions
8601 *) supports_anon_versioning=yes ;;
8604 # See if GNU ld supports shared libraries.
8607 # On AIX/PPC, the GNU linker is very broken
8608 if test ia64 != "$host_cpu"; then
8612 *** Warning: the GNU linker, at least up to release 2.19, is reported
8613 *** to be unable to reliably create shared libraries on AIX.
8614 *** Therefore, libtool is disabling shared libraries support. If you
8615 *** really care for shared libraries, you may want to install binutils
8616 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8617 *** You will then need to restart the configuration process.
8626 # see comment about AmigaOS4 .so support
8627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8628 archive_expsym_cmds=''
8631 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)'
8632 hardcode_libdir_flag_spec='-L$libdir'
8633 hardcode_minus_L=yes
8639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8640 allow_undefined_flag=unsupported
8641 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8642 # support --undefined. This deserves some investigation. FIXME
8643 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8649 cygwin* | mingw* | pw32* | cegcc*)
8650 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8651 # as there is no search path for DLLs.
8652 hardcode_libdir_flag_spec='-L$libdir'
8653 export_dynamic_flag_spec='$wl--export-all-symbols'
8654 allow_undefined_flag=unsupported
8655 always_export_symbols=no
8656 enable_shared_with_static_runtimes=yes
8657 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'
8658 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8660 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8662 # If the export-symbols file already is a .def file, use it as
8663 # is; otherwise, prepend EXPORTS...
8664 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8665 cp $export_symbols $output_objdir/$soname.def;
8667 echo EXPORTS > $output_objdir/$soname.def;
8668 cat $export_symbols >> $output_objdir/$soname.def;
8670 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8678 link_all_deplibs=yes
8682 hardcode_libdir_flag_spec='-L$libdir'
8683 hardcode_minus_L=yes
8684 allow_undefined_flag=unsupported
8686 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8687 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8688 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8689 $ECHO EXPORTS >> $output_objdir/$libname.def~
8690 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8691 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8692 emximp -o $lib $output_objdir/$libname.def'
8693 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8694 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8695 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8696 $ECHO EXPORTS >> $output_objdir/$libname.def~
8698 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8699 prefix_cmds="$prefix_cmds -e 1d";
8701 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8702 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8703 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8704 emximp -o $lib $output_objdir/$libname.def'
8705 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8706 enable_shared_with_static_runtimes=yes
8711 hardcode_shlibpath_var=no
8712 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8713 export_dynamic_flag_spec='$wl-E'
8714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8715 # Instead, shared libraries are loaded at an image base (0x10000000 by
8716 # default) and relocated if they conflict, which is a slow very memory
8717 # consuming and fragmenting process. To avoid this, we pick a random,
8718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8720 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8721 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'
8724 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8726 if test linux-dietlibc = "$host_os"; then
8727 case $cc_basename in
8728 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8731 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8732 && test no = "$tmp_diet"
8734 tmp_addflag=' $pic_flag'
8735 tmp_sharedflag='-shared'
8736 case $cc_basename,$host_cpu in
8737 pgcc*) # Portland Group C compiler
8738 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'
8739 tmp_addflag=' $pic_flag'
8741 pgf77* | pgf90* | pgf95* | pgfortran*)
8742 # Portland Group f77 and f90 compilers
8743 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'
8744 tmp_addflag=' $pic_flag -Mnomain' ;;
8745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8746 tmp_addflag=' -i_dynamic' ;;
8747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8748 tmp_addflag=' -i_dynamic -nofor_main' ;;
8749 ifc* | ifort*) # Intel Fortran compiler
8750 tmp_addflag=' -nofor_main' ;;
8751 lf95*) # Lahey Fortran 8.1
8752 whole_archive_flag_spec=
8753 tmp_sharedflag='--shared' ;;
8754 nagfor*) # NAGFOR 5.3
8755 tmp_sharedflag='-Wl,-shared' ;;
8756 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8757 tmp_sharedflag='-qmkshrobj'
8759 nvcc*) # Cuda Compiler Driver 2.2
8760 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'
8761 compiler_needs_object=yes
8764 case `$CC -V 2>&1 | sed 5q` in
8765 *Sun\ C*) # Sun C 5.9
8766 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'
8767 compiler_needs_object=yes
8768 tmp_sharedflag='-G' ;;
8769 *Sun\ F*) # Sun Fortran 8.3
8770 tmp_sharedflag='-G' ;;
8772 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8774 if test yes = "$supports_anon_versioning"; then
8775 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8776 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8777 echo "local: *; };" >> $output_objdir/$libname.ver~
8778 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8781 case $cc_basename in
8783 export_dynamic_flag_spec='-rdynamic'
8785 xlf* | bgf* | bgxlf* | mpixlf*)
8786 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8787 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8788 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8789 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8790 if test yes = "$supports_anon_versioning"; then
8791 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8793 echo "local: *; };" >> $output_objdir/$libname.ver~
8794 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8805 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8814 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8819 *** create shared libraries on Solaris systems. Therefore, libtool
8820 *** is disabling shared libraries support. We urge you to upgrade GNU
8821 *** binutils to release 2.9.1 or newer. Another option is to modify
8822 *** your PATH or compiler configuration so that the native linker is
8823 *** used, and then restart.
8826 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8828 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8835 case `$LD -v 2>&1` in
8836 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8840 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8841 *** reliably create shared libraries on SCO systems. Therefore, libtool
8842 *** is disabling shared libraries support. We urge you to upgrade GNU
8843 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8844 *** your PATH or compiler configuration so that the native linker is
8845 *** used, and then restart.
8850 # For security reasons, it is highly recommended that you always
8851 # use absolute paths for naming shared libraries, and exclude the
8852 # DT_RUNPATH tag from executables and libraries. But doing so
8853 # requires that you compile everything twice, which is a pain.
8854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8855 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8857 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8866 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8869 hardcode_shlibpath_var=no
8873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8875 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8882 if test no = "$ld_shlibs"; then
8884 hardcode_libdir_flag_spec=
8885 export_dynamic_flag_spec=
8886 whole_archive_flag_spec=
8889 # PORTME fill in a description of your system's linker (not GNU ld)
8892 allow_undefined_flag=unsupported
8893 always_export_symbols=yes
8894 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'
8895 # Note: this linker hardcodes the directories in LIBPATH if there
8896 # are no directories specified by -L.
8897 hardcode_minus_L=yes
8898 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8899 # Neither direct hardcoding nor static linking is supported with a
8901 hardcode_direct=unsupported
8906 if test ia64 = "$host_cpu"; then
8907 # On IA64, the linker does run time linking by default, so we don't
8908 # have to do anything special.
8909 aix_use_runtimelinking=no
8910 exp_sym_flag='-Bexport'
8913 # If we're using GNU nm, then we don't want the "-C" option.
8914 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8915 # Without the "-l" option, or with the "-B" option, AIX nm treats
8916 # weak defined symbols like other global defined symbols, whereas
8917 # GNU nm marks them as "W".
8918 # While the 'weak' keyword is ignored in the Export File, we need
8919 # it in the Import File for the 'aix-soname' feature, so we have
8920 # to replace the "-B" option with "-P" for AIX nm.
8921 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8922 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8924 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8926 aix_use_runtimelinking=no
8928 # Test if we are trying to use run time linking or normal
8929 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8930 # have runtime linking enabled, and use it for executables.
8931 # For shared libraries, we enable/disable runtime linking
8932 # depending on the kind of the shared library created -
8933 # when "with_aix_soname,aix_use_runtimelinking" is:
8934 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8935 # "aix,yes" lib.so shared, rtl:yes, for executables
8936 # lib.a static archive
8937 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8938 # lib.a(lib.so.V) shared, rtl:no, for executables
8939 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8940 # lib.a(lib.so.V) shared, rtl:no
8941 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8942 # lib.a static archive
8943 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8944 for ld_flag in $LDFLAGS; do
8945 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8946 aix_use_runtimelinking=yes
8950 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8951 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8952 # so we don't have lib.a shared libs to link our executables.
8953 # We have to force runtime linking in this case.
8954 aix_use_runtimelinking=yes
8955 LDFLAGS="$LDFLAGS -Wl,-brtl"
8960 exp_sym_flag='-bexport'
8961 no_entry_flag='-bnoentry'
8964 # When large executables or shared objects are built, AIX ld can
8965 # have problems creating the table of contents. If linking a library
8966 # or program results in "error TOC overflow" add -mminimal-toc to
8967 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8968 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8972 hardcode_direct_absolute=yes
8973 hardcode_libdir_separator=':'
8974 link_all_deplibs=yes
8975 file_list_spec='$wl-f,'
8976 case $with_aix_soname,$aix_use_runtimelinking in
8977 aix,*) ;; # traditional, no import file
8978 svr4,* | *,yes) # use import file
8979 # The Import File defines what to hardcode.
8981 hardcode_direct_absolute=no
8985 if test yes = "$GCC"; then
8986 case $host_os in aix4.[012]|aix4.[012].*)
8987 # We only want to do this on AIX 4.2 and lower, the check
8988 # below for broken collect2 doesn't work under 4.3+
8989 collect2name=`$CC -print-prog-name=collect2`
8990 if test -f "$collect2name" &&
8991 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8993 # We have reworked collect2
8996 # We have old collect2
8997 hardcode_direct=unsupported
8998 # It fails to find uninstalled libraries when the uninstalled
8999 # path is not listed in the libpath. Setting hardcode_minus_L
9000 # to unsupported forces relinking
9001 hardcode_minus_L=yes
9002 hardcode_libdir_flag_spec='-L$libdir'
9003 hardcode_libdir_separator=
9007 shared_flag='-shared'
9008 if test yes = "$aix_use_runtimelinking"; then
9009 shared_flag="$shared_flag "'$wl-G'
9011 # Need to ensure runtime linking is disabled for the traditional
9012 # shared library, or the linker may eventually find shared libraries
9013 # /with/ Import File - we do not want to mix them.
9014 shared_flag_aix='-shared'
9015 shared_flag_svr4='-shared $wl-G'
9018 if test ia64 = "$host_cpu"; then
9019 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9020 # chokes on -Wl,-G. The following line is correct:
9023 if test yes = "$aix_use_runtimelinking"; then
9026 shared_flag='$wl-bM:SRE'
9028 shared_flag_aix='$wl-bM:SRE'
9029 shared_flag_svr4='$wl-G'
9033 export_dynamic_flag_spec='$wl-bexpall'
9034 # It seems that -bexpall does not export symbols beginning with
9035 # underscore (_), so it is better to generate a list of symbols to export.
9036 always_export_symbols=yes
9037 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9038 # Warning - without using the other runtime loading flags (-brtl),
9039 # -berok will link without error, but may produce a broken library.
9040 allow_undefined_flag='-berok'
9041 # Determine the default libpath from the value encoded in an
9043 if test set = "${lt_cv_aix_libpath+set}"; then
9044 aix_libpath=$lt_cv_aix_libpath
9046 if ${lt_cv_aix_libpath_+:} false; then :
9047 $as_echo_n "(cached) " >&6
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9060 if ac_fn_c_try_link "$LINENO"; then :
9062 lt_aix_libpath_sed='
9063 /Import File Strings/,/^$/ {
9065 s/^0 *\([^ ]*\) *$/\1/
9069 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9070 # Check for a 64-bit object if we didn't find anything.
9071 if test -z "$lt_cv_aix_libpath_"; then
9072 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9075 rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077 if test -z "$lt_cv_aix_libpath_"; then
9078 lt_cv_aix_libpath_=/usr/lib:/lib
9083 aix_libpath=$lt_cv_aix_libpath_
9086 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9087 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9089 if test ia64 = "$host_cpu"; then
9090 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9091 allow_undefined_flag="-z nodefs"
9092 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"
9094 # Determine the default libpath from the value encoded in an
9096 if test set = "${lt_cv_aix_libpath+set}"; then
9097 aix_libpath=$lt_cv_aix_libpath
9099 if ${lt_cv_aix_libpath_+:} false; then :
9100 $as_echo_n "(cached) " >&6
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9113 if ac_fn_c_try_link "$LINENO"; then :
9115 lt_aix_libpath_sed='
9116 /Import File Strings/,/^$/ {
9118 s/^0 *\([^ ]*\) *$/\1/
9122 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9123 # Check for a 64-bit object if we didn't find anything.
9124 if test -z "$lt_cv_aix_libpath_"; then
9125 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9128 rm -f core conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130 if test -z "$lt_cv_aix_libpath_"; then
9131 lt_cv_aix_libpath_=/usr/lib:/lib
9136 aix_libpath=$lt_cv_aix_libpath_
9139 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9140 # Warning - without using the other run time loading flags,
9141 # -berok will link without error, but may produce a broken library.
9142 no_undefined_flag=' $wl-bernotok'
9143 allow_undefined_flag=' $wl-berok'
9144 if test yes = "$with_gnu_ld"; then
9145 # We only use this code for GNU lds that support --whole-archive.
9146 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9148 # Exported symbols can be pulled into shared objects from archives
9149 whole_archive_flag_spec='$convenience'
9151 archive_cmds_need_lc=yes
9152 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9153 # -brtl affects multiple linker settings, -berok does not and is overridden later
9154 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9155 if test svr4 != "$with_aix_soname"; then
9156 # This is similar to how AIX traditionally builds its shared libraries.
9157 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9159 if test aix != "$with_aix_soname"; then
9160 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9162 # used by -dlpreopen to get the symbols
9163 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9165 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9173 # see comment about AmigaOS4 .so support
9174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9175 archive_expsym_cmds=''
9178 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)'
9179 hardcode_libdir_flag_spec='-L$libdir'
9180 hardcode_minus_L=yes
9186 export_dynamic_flag_spec=-rdynamic
9189 cygwin* | mingw* | pw32* | cegcc*)
9190 # When not using gcc, we currently assume that we are using
9191 # Microsoft Visual C++.
9192 # hardcode_libdir_flag_spec is actually meaningless, as there is
9193 # no search path for DLLs.
9194 case $cc_basename in
9197 hardcode_libdir_flag_spec=' '
9198 allow_undefined_flag=unsupported
9199 always_export_symbols=yes
9201 # Tell ltmain to make .lib files, not .a files.
9203 # Tell ltmain to make .dll files, not .so files.
9205 # FIXME: Setting linknames here is a bad hack.
9206 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9207 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9208 cp "$export_symbols" "$output_objdir/$soname.def";
9209 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9211 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9213 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9215 # The linker will not automatically build a static lib if we build a DLL.
9216 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9217 enable_shared_with_static_runtimes=yes
9218 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9221 old_postinstall_cmds='chmod 644 $oldlib'
9222 postlink_cmds='lt_outputfile="@OUTPUT@"~
9223 lt_tool_outputfile="@TOOL_OUTPUT@"~
9224 case $lt_outputfile in
9227 lt_outputfile=$lt_outputfile.exe
9228 lt_tool_outputfile=$lt_tool_outputfile.exe
9231 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9232 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9233 $RM "$lt_outputfile.manifest";
9237 # Assume MSVC wrapper
9238 hardcode_libdir_flag_spec=' '
9239 allow_undefined_flag=unsupported
9240 # Tell ltmain to make .lib files, not .a files.
9242 # Tell ltmain to make .dll files, not .so files.
9244 # FIXME: Setting linknames here is a bad hack.
9245 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9246 # The linker will automatically build a .lib file if we build a DLL.
9247 old_archive_from_new_cmds='true'
9248 # FIXME: Should let the user specify the lib program.
9249 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9250 enable_shared_with_static_runtimes=yes
9255 darwin* | rhapsody*)
9258 archive_cmds_need_lc=no
9260 hardcode_automatic=yes
9261 hardcode_shlibpath_var=unsupported
9262 if test yes = "$lt_cv_ld_force_load"; then
9263 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\"`'
9266 whole_archive_flag_spec=''
9268 link_all_deplibs=yes
9269 allow_undefined_flag=$_lt_dar_allow_undefined
9270 case $cc_basename in
9271 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9272 *) _lt_dar_can_shared=$GCC ;;
9274 if test yes = "$_lt_dar_can_shared"; then
9275 output_verbose_link_cmd=func_echo_all
9276 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9277 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9278 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"
9279 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"
9288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9289 hardcode_libdir_flag_spec='-L$libdir'
9290 hardcode_shlibpath_var=no
9293 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9294 # support. Future versions do this automatically, but an explicit c++rt0.o
9295 # does not break anything, and helps significantly (at the cost of a little
9298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9299 hardcode_libdir_flag_spec='-R$libdir'
9301 hardcode_shlibpath_var=no
9304 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_minus_L=yes
9309 hardcode_shlibpath_var=no
9312 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9313 freebsd* | dragonfly*)
9314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9315 hardcode_libdir_flag_spec='-R$libdir'
9317 hardcode_shlibpath_var=no
9321 if test yes = "$GCC"; then
9322 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9324 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9326 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9327 hardcode_libdir_separator=:
9330 # hardcode_minus_L: Not really in the search PATH,
9331 # but as the default location of the library.
9332 hardcode_minus_L=yes
9333 export_dynamic_flag_spec='$wl-E'
9337 if test yes,no = "$GCC,$with_gnu_ld"; then
9338 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9342 if test no = "$with_gnu_ld"; then
9343 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9344 hardcode_libdir_separator=:
9346 hardcode_direct_absolute=yes
9347 export_dynamic_flag_spec='$wl-E'
9348 # hardcode_minus_L: Not really in the search PATH,
9349 # but as the default location of the library.
9350 hardcode_minus_L=yes
9355 if test yes,no = "$GCC,$with_gnu_ld"; then
9358 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9361 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9377 # Older versions of the 11.00 compiler do not understand -b yet
9378 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9380 $as_echo_n "checking if $CC understands -b... " >&6; }
9381 if ${lt_cv_prog_compiler__b+:} false; then :
9382 $as_echo_n "(cached) " >&6
9384 lt_cv_prog_compiler__b=no
9385 save_LDFLAGS=$LDFLAGS
9386 LDFLAGS="$LDFLAGS -b"
9387 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9388 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9389 # The linker can only warn and ignore the option if not recognized
9390 # So say no if there are warnings
9391 if test -s conftest.err; then
9392 # Append any errors to the config.log.
9393 cat conftest.err 1>&5
9394 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9396 if diff conftest.exp conftest.er2 >/dev/null; then
9397 lt_cv_prog_compiler__b=yes
9400 lt_cv_prog_compiler__b=yes
9404 LDFLAGS=$save_LDFLAGS
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9408 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9410 if test yes = "$lt_cv_prog_compiler__b"; then
9411 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9419 if test no = "$with_gnu_ld"; then
9420 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9421 hardcode_libdir_separator=:
9426 hardcode_shlibpath_var=no
9430 hardcode_direct_absolute=yes
9431 export_dynamic_flag_spec='$wl-E'
9433 # hardcode_minus_L: Not really in the search PATH,
9434 # but as the default location of the library.
9435 hardcode_minus_L=yes
9441 irix5* | irix6* | nonstopux*)
9442 if test yes = "$GCC"; then
9443 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'
9444 # Try to use the -exported_symbol ld option, if it does not
9445 # work, assume that -exports_file does not work either and
9446 # implicitly export all symbols.
9447 # This should be the same for all languages, so no per-tag cache variable.
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9449 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9450 if ${lt_cv_irix_exported_symbol+:} false; then :
9451 $as_echo_n "(cached) " >&6
9453 save_LDFLAGS=$LDFLAGS
9454 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 int foo (void) { return 0; }
9459 if ac_fn_c_try_link "$LINENO"; then :
9460 lt_cv_irix_exported_symbol=yes
9462 lt_cv_irix_exported_symbol=no
9464 rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9466 LDFLAGS=$save_LDFLAGS
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9469 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9470 if test yes = "$lt_cv_irix_exported_symbol"; then
9471 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'
9474 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'
9475 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'
9477 archive_cmds_need_lc='no'
9478 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9479 hardcode_libdir_separator=:
9481 link_all_deplibs=yes
9485 case $cc_basename in
9487 # Fabrice Bellard et al's Tiny C Compiler
9489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9495 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9498 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9500 hardcode_libdir_flag_spec='-R$libdir'
9502 hardcode_shlibpath_var=no
9506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9509 hardcode_libdir_separator=:
9510 hardcode_shlibpath_var=no
9517 if test -f /usr/libexec/ld.so; then
9519 hardcode_shlibpath_var=no
9520 hardcode_direct_absolute=yes
9521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9523 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9524 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9525 export_dynamic_flag_spec='$wl-E'
9527 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9528 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9536 hardcode_libdir_flag_spec='-L$libdir'
9537 hardcode_minus_L=yes
9538 allow_undefined_flag=unsupported
9540 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9541 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9542 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9543 $ECHO EXPORTS >> $output_objdir/$libname.def~
9544 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9546 emximp -o $lib $output_objdir/$libname.def'
9547 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9548 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9549 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9550 $ECHO EXPORTS >> $output_objdir/$libname.def~
9552 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9553 prefix_cmds="$prefix_cmds -e 1d";
9555 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9556 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9557 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9558 emximp -o $lib $output_objdir/$libname.def'
9559 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9560 enable_shared_with_static_runtimes=yes
9564 if test yes = "$GCC"; then
9565 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9566 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'
9568 allow_undefined_flag=' -expect_unresolved \*'
9569 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'
9571 archive_cmds_need_lc='no'
9572 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9573 hardcode_libdir_separator=:
9576 osf4* | osf5*) # as osf3* with the addition of -msym flag
9577 if test yes = "$GCC"; then
9578 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9579 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'
9580 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9582 allow_undefined_flag=' -expect_unresolved \*'
9583 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'
9584 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~
9585 $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'
9587 # Both c and cxx compiler support -rpath directly
9588 hardcode_libdir_flag_spec='-rpath $libdir'
9590 archive_cmds_need_lc='no'
9591 hardcode_libdir_separator=:
9595 no_undefined_flag=' -z defs'
9596 if test yes = "$GCC"; then
9598 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9600 $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'
9602 case `$CC -V 2>&1` in
9605 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9607 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9611 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9613 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_shlibpath_var=no
9620 solaris2.[0-5] | solaris2.[0-5].*) ;;
9622 # The compiler driver will combine and reorder linker options,
9623 # but understands '-z linker_flag'. GCC discards it without '$wl',
9624 # but is careful enough not to reorder.
9625 # Supported since Solaris 2.6 (maybe 2.5.1?)
9626 if test yes = "$GCC"; then
9627 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9629 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9633 link_all_deplibs=yes
9637 if test sequent = "$host_vendor"; then
9638 # Use $CC to link under sequent, because it throws in some extra .o
9639 # files that make .init and .fini sections work.
9640 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9642 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9644 hardcode_libdir_flag_spec='-L$libdir'
9646 hardcode_minus_L=yes
9647 hardcode_shlibpath_var=no
9651 case $host_vendor in
9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_direct=yes # is this really true???
9657 ## LD is ld it makes a PLAMLIB
9658 ## CC just makes a GrossModule.
9659 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9660 reload_cmds='$CC -r -o $output$reload_objs'
9664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9668 runpath_var='LD_RUN_PATH'
9669 hardcode_shlibpath_var=no
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_shlibpath_var=no
9675 export_dynamic_flag_spec='-Bexport'
9679 if test -d /usr/nec; then
9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_shlibpath_var=no
9682 runpath_var=LD_RUN_PATH
9683 hardcode_runpath_var=yes
9688 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9689 no_undefined_flag='$wl-z,text'
9690 archive_cmds_need_lc=no
9691 hardcode_shlibpath_var=no
9692 runpath_var='LD_RUN_PATH'
9694 if test yes = "$GCC"; then
9695 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 sysv5* | sco3.2v5* | sco5v6*)
9704 # Note: We CANNOT use -z defs as we might desire, because we do not
9705 # link with -lc, and that would cause any symbols used from libc to
9706 # always be unresolved, which means just about no library would
9707 # ever link correctly. If we're not using GNU ld we use -z text
9708 # though, which does catch some bad symbols but isn't as heavy-handed
9710 no_undefined_flag='$wl-z,text'
9711 allow_undefined_flag='$wl-z,nodefs'
9712 archive_cmds_need_lc=no
9713 hardcode_shlibpath_var=no
9714 hardcode_libdir_flag_spec='$wl-R,$libdir'
9715 hardcode_libdir_separator=':'
9716 link_all_deplibs=yes
9717 export_dynamic_flag_spec='$wl-Bexport'
9718 runpath_var='LD_RUN_PATH'
9720 if test yes = "$GCC"; then
9721 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 hardcode_libdir_flag_spec='-L$libdir'
9732 hardcode_shlibpath_var=no
9740 if test sni = "$host_vendor"; then
9742 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9743 export_dynamic_flag_spec='$wl-Blargedynsym'
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9750 $as_echo "$ld_shlibs" >&6; }
9751 test no = "$ld_shlibs" && can_build_shared=no
9753 with_gnu_ld=$with_gnu_ld
9770 # Do we need to explicitly link libc?
9772 case "x$archive_cmds_need_lc" in
9774 # Assume -lc should be added
9775 archive_cmds_need_lc=yes
9777 if test yes,yes = "$GCC,$enable_shared"; then
9778 case $archive_cmds in
9780 # FIXME: we may have to deal with multi-command sequences.
9783 # Test whether the compiler implicitly links with -lc since on some
9784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9785 # to ld, don't add -lc before -lgcc.
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9788 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9789 $as_echo_n "(cached) " >&6
9792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795 (eval $ac_compile) 2>&5
9797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798 test $ac_status = 0; } 2>conftest.err; then
9801 libobjs=conftest.$ac_objext
9803 wl=$lt_prog_compiler_wl
9804 pic_flag=$lt_prog_compiler_pic
9810 lt_save_allow_undefined_flag=$allow_undefined_flag
9811 allow_undefined_flag=
9812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9813 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9816 test $ac_status = 0; }
9818 lt_cv_archive_cmds_need_lc=no
9820 lt_cv_archive_cmds_need_lc=yes
9822 allow_undefined_flag=$lt_save_allow_undefined_flag
9824 cat conftest.err 1>&5
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9830 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9831 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9990 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9992 if test yes = "$GCC"; then
9994 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9995 *) lt_awk_arg='/^libraries:/' ;;
9998 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9999 *) lt_sed_strip_eq='s|=/|/|g' ;;
10001 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10002 case $lt_search_path_spec in
10004 # if the path contains ";" then we assume it to be the separator
10005 # otherwise default to the standard path separator (i.e. ":") - it is
10006 # assumed that no part of a normal pathname contains ";" but that should
10007 # okay in the real world where ";" in dirpaths is itself problematic.
10008 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10011 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10014 # Ok, now we have the path, separated by spaces, we can step through it
10015 # and add multilib dir if necessary...
10016 lt_tmp_lt_search_path_spec=
10017 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10018 # ...but if some path component already ends with the multilib dir we assume
10019 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10020 case "$lt_multi_os_dir; $lt_search_path_spec " in
10021 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10025 for lt_sys_path in $lt_search_path_spec; do
10026 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10027 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10028 elif test -n "$lt_multi_os_dir"; then
10029 test -d "$lt_sys_path" && \
10030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10033 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10034 BEGIN {RS = " "; FS = "/|\n";} {
10037 for (lt_i = NF; lt_i > 0; lt_i--) {
10038 if ($lt_i != "" && $lt_i != ".") {
10039 if ($lt_i == "..") {
10042 if (lt_count == 0) {
10043 lt_foo = "/" $lt_i lt_foo;
10050 if (lt_foo != "") { lt_freq[lt_foo]++; }
10051 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10053 # AWK program above erroneously prepends '/' to C:/dos/paths
10056 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10057 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10059 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10063 library_names_spec=
10064 libname_spec='lib$name'
10068 postuninstall_cmds=
10072 shlibpath_overrides_runpath=unknown
10074 dynamic_linker="$host_os ld.so"
10075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10076 need_lib_prefix=unknown
10077 hardcode_into_libs=no
10079 # when you set need_version to no, make sure it does not cause -set_version
10080 # flags to be left without arguments
10081 need_version=unknown
10087 version_type=linux # correct to gnu/linux during the next big refactor
10088 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10089 shlibpath_var=LIBPATH
10091 # AIX 3 has no versioning support, so we append a major version to the name.
10092 soname_spec='$libname$release$shared_ext$major'
10096 version_type=linux # correct to gnu/linux during the next big refactor
10099 hardcode_into_libs=yes
10100 if test ia64 = "$host_cpu"; then
10101 # AIX 5 supports IA64
10102 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10103 shlibpath_var=LD_LIBRARY_PATH
10105 # With GCC up to 2.95.x, collect2 would create an import file
10106 # for dependence libraries. The import file would start with
10107 # the line '#! .'. This would cause the generated library to
10108 # depend on '.', always an invalid library. This was fixed in
10109 # development snapshots of GCC prior to 3.0.
10111 aix4 | aix4.[01] | aix4.[01].*)
10112 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10114 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10117 can_build_shared=no
10121 # Using Import Files as archive members, it is possible to support
10122 # filename-based versioning of shared library archives on AIX. While
10123 # this would work for both with and without runtime linking, it will
10124 # prevent static linking of such archives. So we do filename-based
10125 # shared library versioning with .so extension only, which is used
10126 # when both runtime linking and shared linking is enabled.
10127 # Unfortunately, runtime linking may impact performance, so we do
10128 # not want this to be the default eventually. Also, we use the
10129 # versioned .so libs for executables only if there is the -brtl
10130 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10131 # To allow for filename-based versioning support, we need to create
10132 # libNAME.so.V as an archive file, containing:
10133 # *) an Import File, referring to the versioned filename of the
10134 # archive as well as the shared archive member, telling the
10135 # bitwidth (32 or 64) of that shared object, and providing the
10136 # list of exported symbols of that shared object, eventually
10137 # decorated with the 'weak' keyword
10138 # *) the shared object with the F_LOADONLY flag set, to really avoid
10139 # it being seen by the linker.
10140 # At run time we better use the real file rather than another symlink,
10141 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10143 case $with_aix_soname,$aix_use_runtimelinking in
10144 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10145 # soname into executable. Probably we can add versioning support to
10146 # collect2, so additional links can be useful in future.
10147 aix,yes) # traditional libtool
10148 dynamic_linker='AIX unversionable lib.so'
10149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10150 # instead of lib<name>.a to let people know that these are not
10151 # typical AIX shared libraries.
10152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10154 aix,no) # traditional AIX only
10155 dynamic_linker='AIX lib.a(lib.so.V)'
10156 # We preserve .a as extension for shared libraries through AIX4.2
10157 # and later when we are not doing run time linking.
10158 library_names_spec='$libname$release.a $libname.a'
10159 soname_spec='$libname$release$shared_ext$major'
10161 svr4,*) # full svr4 only
10162 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10163 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10164 # We do not specify a path in Import Files, so LIBPATH fires.
10165 shlibpath_overrides_runpath=yes
10167 *,yes) # both, prefer svr4
10168 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10169 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10170 # unpreferred sharedlib libNAME.a needs extra handling
10171 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10172 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10173 # We do not specify a path in Import Files, so LIBPATH fires.
10174 shlibpath_overrides_runpath=yes
10176 *,no) # both, prefer aix
10177 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10178 library_names_spec='$libname$release.a $libname.a'
10179 soname_spec='$libname$release$shared_ext$major'
10180 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10181 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10182 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10185 shlibpath_var=LIBPATH
10192 # Since July 2007 AmigaOS4 officially supports .so libraries.
10193 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10197 library_names_spec='$libname.ixlibrary $libname.a'
10198 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10199 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10205 library_names_spec='$libname$shared_ext'
10206 dynamic_linker="$host_os ld.so"
10207 shlibpath_var=LIBRARY_PATH
10211 version_type=linux # correct to gnu/linux during the next big refactor
10213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10214 soname_spec='$libname$release$shared_ext$major'
10215 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10218 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10219 # the default ld.so.conf also contains /usr/contrib/lib and
10220 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10221 # libtool to hard-code these into programs
10224 cygwin* | mingw* | pw32* | cegcc*)
10225 version_type=windows
10230 case $GCC,$cc_basename in
10233 library_names_spec='$libname.dll.a'
10234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10235 postinstall_cmds='base_file=`basename \$file`~
10236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10237 dldir=$destdir/`dirname \$dlpath`~
10238 test -d \$dldir || mkdir -p \$dldir~
10239 $install_prog $dir/$dlname \$dldir/$dlname~
10240 chmod a+x \$dldir/$dlname~
10241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10245 dlpath=$dir/\$dldll~
10247 shlibpath_overrides_runpath=yes
10251 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10252 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10257 # MinGW DLLs use traditional 'lib' prefix
10258 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10261 # pw32 DLLs use 'pw' prefix rather than 'lib'
10262 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10265 dynamic_linker='Win32 ld.exe'
10270 libname_spec='$name'
10271 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10272 library_names_spec='$libname.dll.lib'
10276 sys_lib_search_path_spec=
10279 for lt_path in $LIB
10282 # Let DOS variable expansion print the short 8.3 style file name.
10283 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10284 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10287 # Convert to MSYS style.
10288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10291 # Convert to unix form, then to dos form, then back to unix form
10292 # but this time dos style (no spaces!) so that the unix form looks
10293 # like /cygdrive/c/PROGRA~1:/cygdr...
10294 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10295 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10296 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10299 sys_lib_search_path_spec=$LIB
10300 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10301 # It is most probably a Windows format PATH.
10302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10306 # FIXME: find the short name or the path components, as spaces are
10307 # common. (e.g. "Program Files" -> "PROGRA~1")
10311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10312 postinstall_cmds='base_file=`basename \$file`~
10313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10314 dldir=$destdir/`dirname \$dlpath`~
10315 test -d \$dldir || mkdir -p \$dldir~
10316 $install_prog $dir/$dlname \$dldir/$dlname'
10317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10318 dlpath=$dir/\$dldll~
10320 shlibpath_overrides_runpath=yes
10321 dynamic_linker='Win32 link.exe'
10325 # Assume MSVC wrapper
10326 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10327 dynamic_linker='Win32 ld.exe'
10330 # FIXME: first we should search . and the directory the executable is in
10334 darwin* | rhapsody*)
10335 dynamic_linker="$host_os dyld"
10336 version_type=darwin
10339 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
10340 soname_spec='$libname$release$major$shared_ext'
10341 shlibpath_overrides_runpath=yes
10342 shlibpath_var=DYLD_LIBRARY_PATH
10343 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
10345 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10346 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10350 version_type=linux # correct to gnu/linux during the next big refactor
10353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10354 soname_spec='$libname$release$shared_ext$major'
10355 shlibpath_var=LD_LIBRARY_PATH
10358 freebsd* | dragonfly*)
10359 # DragonFly does not have aout. When/if they implement a new
10360 # versioning mechanism, adjust this.
10361 if test -x /usr/bin/objformat; then
10362 objformat=`/usr/bin/objformat`
10365 freebsd[23].*) objformat=aout ;;
10366 *) objformat=elf ;;
10369 # Handle Gentoo/FreeBSD as it was Linux
10370 case $host_vendor in
10372 version_type=linux ;;
10374 version_type=freebsd-$objformat ;;
10377 case $version_type in
10379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10380 soname_spec='$libname$release$shared_ext$major'
10385 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=yes
10400 freebsd3.[01]* | freebsdelf3.[01]*)
10401 shlibpath_overrides_runpath=yes
10402 hardcode_into_libs=yes
10404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10406 shlibpath_overrides_runpath=no
10407 hardcode_into_libs=yes
10409 *) # from 4.6 on, and DragonFly
10410 shlibpath_overrides_runpath=yes
10411 hardcode_into_libs=yes
10417 version_type=linux # correct to gnu/linux during the next big refactor
10420 dynamic_linker="$host_os runtime_loader"
10421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10422 soname_spec='$libname$release$shared_ext$major'
10423 shlibpath_var=LIBRARY_PATH
10424 shlibpath_overrides_runpath=no
10425 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10426 hardcode_into_libs=yes
10429 hpux9* | hpux10* | hpux11*)
10430 # Give a soname corresponding to the major version so that dld.sl refuses to
10431 # link against other versions.
10438 hardcode_into_libs=yes
10439 dynamic_linker="$host_os dld.so"
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10443 soname_spec='$libname$release$shared_ext$major'
10444 if test 32 = "$HPUX_IA64_MODE"; then
10445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10446 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10449 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10454 hardcode_into_libs=yes
10455 dynamic_linker="$host_os dld.sl"
10456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10459 soname_spec='$libname$release$shared_ext$major'
10460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10465 dynamic_linker="$host_os dld.sl"
10466 shlibpath_var=SHLIB_PATH
10467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10469 soname_spec='$libname$release$shared_ext$major'
10472 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10473 postinstall_cmds='chmod 555 $lib'
10474 # or fails outright, so override atomically:
10475 install_override_mode=555
10479 version_type=linux # correct to gnu/linux during the next big refactor
10482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10483 soname_spec='$libname$release$shared_ext$major'
10484 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10485 shlibpath_var=LD_LIBRARY_PATH
10486 shlibpath_overrides_runpath=no
10487 hardcode_into_libs=yes
10490 irix5* | irix6* | nonstopux*)
10492 nonstopux*) version_type=nonstopux ;;
10494 if test yes = "$lt_cv_prog_gnu_ld"; then
10495 version_type=linux # correct to gnu/linux during the next big refactor
10502 soname_spec='$libname$release$shared_ext$major'
10503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10505 irix5* | nonstopux*)
10506 libsuff= shlibsuff=
10509 case $LD in # libtool.m4 will add one of these switches to LD
10510 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10511 libsuff= shlibsuff= libmagic=32-bit;;
10512 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10513 libsuff=32 shlibsuff=N32 libmagic=N32;;
10514 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10515 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10516 *) libsuff= shlibsuff= libmagic=never-match;;
10520 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10521 shlibpath_overrides_runpath=no
10522 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10523 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10524 hardcode_into_libs=yes
10527 # No shared lib support for Linux oldld, aout, or coff.
10528 linux*oldld* | linux*aout* | linux*coff*)
10533 version_type=none # Android doesn't support versioned libraries.
10536 library_names_spec='$libname$release$shared_ext'
10537 soname_spec='$libname$release$shared_ext'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 shlibpath_overrides_runpath=yes
10542 # This implies no fast_install, which is unacceptable.
10543 # Some rework will be needed to allow for fast_install
10544 # before this can be enabled.
10545 hardcode_into_libs=yes
10547 dynamic_linker='Android linker'
10548 # Don't embed -rpath directories since the linker doesn't support them.
10549 hardcode_libdir_flag_spec='-L$libdir'
10552 # This must be glibc/ELF.
10553 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10554 version_type=linux # correct to gnu/linux during the next big refactor
10557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10558 soname_spec='$libname$release$shared_ext$major'
10559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=no
10563 # Some binutils ld are patched to set DT_RUNPATH
10564 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10565 $as_echo_n "(cached) " >&6
10567 lt_cv_shlibpath_overrides_runpath=no
10568 save_LDFLAGS=$LDFLAGS
10569 save_libdir=$libdir
10570 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10571 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10583 if ac_fn_c_try_link "$LINENO"; then :
10584 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10585 lt_cv_shlibpath_overrides_runpath=yes
10588 rm -f core conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 LDFLAGS=$save_LDFLAGS
10591 libdir=$save_libdir
10595 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10597 # This implies no fast_install, which is unacceptable.
10598 # Some rework will be needed to allow for fast_install
10599 # before this can be enabled.
10600 hardcode_into_libs=yes
10602 # Ideally, we could use ldconfig to report *all* directores which are
10603 # searched for libraries, however this is still not possible. Aside from not
10604 # being certain /sbin/ldconfig is available, command
10605 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10606 # even though it is searched at run-time. Try to do the best guess by
10607 # appending ld.so.conf contents (and includes) to the search path.
10608 if test -f /etc/ld.so.conf; then
10609 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' ' '`
10610 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10613 # We used to test for /lib/ld.so.1 and disable shared libraries on
10614 # powerpc, because MkLinux only supported shared libraries with the
10615 # GNU dynamic linker. Since this was broken with cross compilers,
10616 # most powerpc-linux boxes support dynamic linking these days and
10617 # people can always --disable-shared, the test was removed, and we
10618 # assume the GNU/Linux dynamic linker is in use.
10619 dynamic_linker='GNU/Linux ld.so'
10626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10627 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10629 dynamic_linker='NetBSD (a.out) ld.so'
10631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10632 soname_spec='$libname$release$shared_ext$major'
10633 dynamic_linker='NetBSD ld.elf_so'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10637 hardcode_into_libs=yes
10641 version_type=linux # correct to gnu/linux during the next big refactor
10642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 shlibpath_overrides_runpath=yes
10651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10652 soname_spec='$libname$release$shared_ext$major'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 shlibpath_overrides_runpath=no
10655 hardcode_into_libs=yes
10656 dynamic_linker='ldqnx.so'
10659 openbsd* | bitrig*)
10661 sys_lib_dlsearch_path_spec=/usr/lib
10663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10668 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 shlibpath_overrides_runpath=yes
10675 libname_spec='$name'
10676 version_type=windows
10680 # OS/2 can only load a DLL with a base name of 8 characters or less.
10681 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10682 v=$($ECHO $release$versuffix | tr -d .-);
10683 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10684 $ECHO $n$v`$shared_ext'
10685 library_names_spec='${libname}_dll.$libext'
10686 dynamic_linker='OS/2 ld.exe'
10687 shlibpath_var=BEGINLIBPATH
10688 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10690 postinstall_cmds='base_file=`basename \$file`~
10691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10692 dldir=$destdir/`dirname \$dlpath`~
10693 test -d \$dldir || mkdir -p \$dldir~
10694 $install_prog $dir/$dlname \$dldir/$dlname~
10695 chmod a+x \$dldir/$dlname~
10696 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10697 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10699 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10700 dlpath=$dir/\$dldll~
10704 osf3* | osf4* | osf5*)
10708 soname_spec='$libname$release$shared_ext$major'
10709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10720 version_type=linux # correct to gnu/linux during the next big refactor
10723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10724 soname_spec='$libname$release$shared_ext$major'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 shlibpath_overrides_runpath=yes
10727 hardcode_into_libs=yes
10728 # ldd complains unless libraries are executable
10729 postinstall_cmds='chmod +x $lib'
10734 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10735 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10736 shlibpath_var=LD_LIBRARY_PATH
10737 shlibpath_overrides_runpath=yes
10738 if test yes = "$with_gnu_ld"; then
10745 version_type=linux # correct to gnu/linux during the next big refactor
10746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10747 soname_spec='$libname$release$shared_ext$major'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 case $host_vendor in
10751 shlibpath_overrides_runpath=no
10753 runpath_var=LD_RUN_PATH
10761 shlibpath_overrides_runpath=no
10762 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10768 if test -d /usr/nec; then
10769 version_type=linux # correct to gnu/linux during the next big refactor
10770 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10771 soname_spec='$libname$shared_ext.$major'
10772 shlibpath_var=LD_LIBRARY_PATH
10776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10781 soname_spec='$libname$release$shared_ext$major'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 shlibpath_overrides_runpath=yes
10784 hardcode_into_libs=yes
10785 if test yes = "$with_gnu_ld"; then
10786 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10788 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10791 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10795 sys_lib_dlsearch_path_spec='/usr/lib'
10799 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10800 version_type=linux # correct to gnu/linux during the next big refactor
10803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 shlibpath_overrides_runpath=no
10806 hardcode_into_libs=yes
10810 version_type=linux # correct to gnu/linux during the next big refactor
10811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10812 soname_spec='$libname$release$shared_ext$major'
10813 shlibpath_var=LD_LIBRARY_PATH
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10821 $as_echo "$dynamic_linker" >&6; }
10822 test no = "$dynamic_linker" && can_build_shared=no
10824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10825 if test yes = "$GCC"; then
10826 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10829 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10830 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10833 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10834 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10837 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10838 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10840 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10841 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10843 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10844 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10943 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10945 if test -n "$hardcode_libdir_flag_spec" ||
10946 test -n "$runpath_var" ||
10947 test yes = "$hardcode_automatic"; then
10949 # We can hardcode non-existent directories.
10950 if test no != "$hardcode_direct" &&
10951 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10952 # have to relink, otherwise we might link with an installed library
10953 # when we should be linking with a yet-to-be-installed one
10954 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10955 test no != "$hardcode_minus_L"; then
10956 # Linking always hardcodes the temporary library directory.
10957 hardcode_action=relink
10959 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10960 hardcode_action=immediate
10963 # We cannot hardcode anything, or else we can only hardcode existing
10965 hardcode_action=unsupported
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10968 $as_echo "$hardcode_action" >&6; }
10970 if test relink = "$hardcode_action" ||
10971 test yes = "$inherit_rpath"; then
10972 # Fast installation is not supported
10973 enable_fast_install=no
10974 elif test yes = "$shlibpath_overrides_runpath" ||
10975 test no = "$enable_shared"; then
10976 # Fast installation is not necessary
10977 enable_fast_install=needless
10985 if test yes != "$enable_dlopen"; then
10986 enable_dlopen=unknown
10987 enable_dlopen_self=unknown
10988 enable_dlopen_self_static=unknown
10995 lt_cv_dlopen=load_add_on
10997 lt_cv_dlopen_self=yes
11000 mingw* | pw32* | cegcc*)
11001 lt_cv_dlopen=LoadLibrary
11006 lt_cv_dlopen=dlopen
11011 # if libdl is installed we need to link against it
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11013 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11014 if ${ac_cv_lib_dl_dlopen+:} false; then :
11015 $as_echo_n "(cached) " >&6
11017 ac_check_lib_save_LIBS=$LIBS
11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h. */
11022 /* Override any GCC internal prototype to avoid an error.
11023 Use char because int might match the return type of a GCC
11024 builtin and then its argument prototype would still apply. */
11037 if ac_fn_c_try_link "$LINENO"; then :
11038 ac_cv_lib_dl_dlopen=yes
11040 ac_cv_lib_dl_dlopen=no
11042 rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044 LIBS=$ac_check_lib_save_LIBS
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11047 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11048 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11049 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11054 lt_cv_dlopen_self=yes
11061 # Don't try to run any link tests for TPF. We know it's impossible
11062 # because TPF is a cross-compiler, and we know how we open DSOs.
11063 lt_cv_dlopen=dlopen
11065 lt_cv_dlopen_self=no
11069 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11070 if test "x$ac_cv_func_shl_load" = xyes; then :
11071 lt_cv_dlopen=shl_load
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11074 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11075 if ${ac_cv_lib_dld_shl_load+:} false; then :
11076 $as_echo_n "(cached) " >&6
11078 ac_check_lib_save_LIBS=$LIBS
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11083 /* Override any GCC internal prototype to avoid an error.
11084 Use char because int might match the return type of a GCC
11085 builtin and then its argument prototype would still apply. */
11093 return shl_load ();
11098 if ac_fn_c_try_link "$LINENO"; then :
11099 ac_cv_lib_dld_shl_load=yes
11101 ac_cv_lib_dld_shl_load=no
11103 rm -f core conftest.err conftest.$ac_objext \
11104 conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11108 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11109 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11110 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11112 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11113 if test "x$ac_cv_func_dlopen" = xyes; then :
11114 lt_cv_dlopen=dlopen
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11117 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11118 if ${ac_cv_lib_dl_dlopen+:} false; then :
11119 $as_echo_n "(cached) " >&6
11121 ac_check_lib_save_LIBS=$LIBS
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11141 if ac_fn_c_try_link "$LINENO"; then :
11142 ac_cv_lib_dl_dlopen=yes
11144 ac_cv_lib_dl_dlopen=no
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11151 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11152 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11153 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11156 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11157 if ${ac_cv_lib_svld_dlopen+:} false; then :
11158 $as_echo_n "(cached) " >&6
11160 ac_check_lib_save_LIBS=$LIBS
11161 LIBS="-lsvld $LIBS"
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11180 if ac_fn_c_try_link "$LINENO"; then :
11181 ac_cv_lib_svld_dlopen=yes
11183 ac_cv_lib_svld_dlopen=no
11185 rm -f core conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11187 LIBS=$ac_check_lib_save_LIBS
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11190 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11191 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11192 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11195 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11196 if ${ac_cv_lib_dld_dld_link+:} false; then :
11197 $as_echo_n "(cached) " >&6
11199 ac_check_lib_save_LIBS=$LIBS
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11204 /* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
11214 return dld_link ();
11219 if ac_fn_c_try_link "$LINENO"; then :
11220 ac_cv_lib_dld_dld_link=yes
11222 ac_cv_lib_dld_dld_link=no
11224 rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
11226 LIBS=$ac_check_lib_save_LIBS
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11229 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11230 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11231 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11252 if test no = "$lt_cv_dlopen"; then
11258 case $lt_cv_dlopen in
11260 save_CPPFLAGS=$CPPFLAGS
11261 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11263 save_LDFLAGS=$LDFLAGS
11264 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11267 LIBS="$lt_cv_dlopen_libs $LIBS"
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11270 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11271 if ${lt_cv_dlopen_self+:} false; then :
11272 $as_echo_n "(cached) " >&6
11274 if test yes = "$cross_compiling"; then :
11275 lt_cv_dlopen_self=cross
11277 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11278 lt_status=$lt_dlunknown
11279 cat > conftest.$ac_ext <<_LT_EOF
11280 #line $LINENO "configure"
11281 #include "confdefs.h"
11290 # define LT_DLGLOBAL RTLD_GLOBAL
11293 # define LT_DLGLOBAL DL_GLOBAL
11295 # define LT_DLGLOBAL 0
11299 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11300 find out it does not work in some platform. */
11301 #ifndef LT_DLLAZY_OR_NOW
11303 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11306 # define LT_DLLAZY_OR_NOW DL_LAZY
11309 # define LT_DLLAZY_OR_NOW RTLD_NOW
11312 # define LT_DLLAZY_OR_NOW DL_NOW
11314 # define LT_DLLAZY_OR_NOW 0
11321 /* When -fvisibility=hidden is used, assume the code has been annotated
11322 correspondingly for the symbols needed. */
11323 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11324 int fnord () __attribute__((visibility("default")));
11327 int fnord () { return 42; }
11330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11331 int status = $lt_dlunknown;
11335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11338 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11339 else puts (dlerror ());
11341 /* dlclose (self); */
11349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11350 (eval $ac_link) 2>&5
11352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11353 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11354 (./conftest; exit; ) >&5 2>/dev/null
11356 case x$lt_status in
11357 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11358 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11359 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11362 # compilation failed
11363 lt_cv_dlopen_self=no
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11371 $as_echo "$lt_cv_dlopen_self" >&6; }
11373 if test yes = "$lt_cv_dlopen_self"; then
11374 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11376 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11377 if ${lt_cv_dlopen_self_static+:} false; then :
11378 $as_echo_n "(cached) " >&6
11380 if test yes = "$cross_compiling"; then :
11381 lt_cv_dlopen_self_static=cross
11383 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11384 lt_status=$lt_dlunknown
11385 cat > conftest.$ac_ext <<_LT_EOF
11386 #line $LINENO "configure"
11387 #include "confdefs.h"
11396 # define LT_DLGLOBAL RTLD_GLOBAL
11399 # define LT_DLGLOBAL DL_GLOBAL
11401 # define LT_DLGLOBAL 0
11405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11406 find out it does not work in some platform. */
11407 #ifndef LT_DLLAZY_OR_NOW
11409 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11412 # define LT_DLLAZY_OR_NOW DL_LAZY
11415 # define LT_DLLAZY_OR_NOW RTLD_NOW
11418 # define LT_DLLAZY_OR_NOW DL_NOW
11420 # define LT_DLLAZY_OR_NOW 0
11427 /* When -fvisibility=hidden is used, assume the code has been annotated
11428 correspondingly for the symbols needed. */
11429 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11430 int fnord () __attribute__((visibility("default")));
11433 int fnord () { return 42; }
11436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11437 int status = $lt_dlunknown;
11441 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11444 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11445 else puts (dlerror ());
11447 /* dlclose (self); */
11455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11456 (eval $ac_link) 2>&5
11458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11459 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11460 (./conftest; exit; ) >&5 2>/dev/null
11462 case x$lt_status in
11463 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11464 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11465 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11468 # compilation failed
11469 lt_cv_dlopen_self_static=no
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11477 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11480 CPPFLAGS=$save_CPPFLAGS
11481 LDFLAGS=$save_LDFLAGS
11486 case $lt_cv_dlopen_self in
11487 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11488 *) enable_dlopen_self=unknown ;;
11491 case $lt_cv_dlopen_self_static in
11492 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11493 *) enable_dlopen_self_static=unknown ;;
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11516 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11517 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11518 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11519 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521 $as_echo "yes" >&6; }
11523 # FIXME - insert some real tests, host_os isn't really good enough
11526 if test -n "$STRIP"; then
11527 striplib="$STRIP -x"
11528 old_striplib="$STRIP -S"
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11530 $as_echo "yes" >&6; }
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11554 # Report what library types will actually be built
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11556 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11558 $as_echo "$can_build_shared" >&6; }
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11561 $as_echo_n "checking whether to build shared libraries... " >&6; }
11562 test no = "$can_build_shared" && enable_shared=no
11564 # On AIX, shared libraries and static libraries use the same namespace, and
11565 # are all built from PIC.
11568 test yes = "$enable_shared" && enable_static=no
11569 if test -n "$RANLIB"; then
11570 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11571 postinstall_cmds='$RANLIB $lib'
11576 if test ia64 != "$host_cpu"; then
11577 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11578 yes,aix,yes) ;; # shared object as lib.so file only
11579 yes,svr4,*) ;; # shared object as lib.so archive member only
11580 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11586 $as_echo "$enable_shared" >&6; }
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11589 $as_echo_n "checking whether to build static libraries... " >&6; }
11590 # Make sure either enable_shared or enable_static is yes.
11591 test yes = "$enable_shared" || enable_static=yes
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11593 $as_echo "$enable_static" >&6; }
11600 ac_cpp='$CPP $CPPFLAGS'
11601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11621 ac_config_commands="$ac_config_commands libtool"
11626 # Only expand once:
11635 ac_cpp='$CPP $CPPFLAGS'
11636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11639 if test -n "$ac_tool_prefix"; then
11640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if ${ac_cv_prog_CC+:} false; then :
11645 $as_echo_n "(cached) " >&6
11647 if test -n "$CC"; then
11648 ac_cv_prog_CC="$CC" # Let the user override the test.
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 if test -n "$CC"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11670 $as_echo "$CC" >&6; }
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11678 if test -z "$ac_cv_prog_CC"; then
11680 # Extract the first word of "gcc", so it can be a program name with args.
11681 set dummy gcc; ac_word=$2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683 $as_echo_n "checking for $ac_word... " >&6; }
11684 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11685 $as_echo_n "(cached) " >&6
11687 if test -n "$ac_ct_CC"; then
11688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697 ac_cv_prog_ac_ct_CC="gcc"
11698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11708 if test -n "$ac_ct_CC"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11710 $as_echo "$ac_ct_CC" >&6; }
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11716 if test "x$ac_ct_CC" = x; then
11719 case $cross_compiling:$ac_tool_warned in
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11723 ac_tool_warned=yes ;;
11728 CC="$ac_cv_prog_CC"
11731 if test -z "$CC"; then
11732 if test -n "$ac_tool_prefix"; then
11733 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11734 set dummy ${ac_tool_prefix}cc; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_prog_CC+:} false; then :
11738 $as_echo_n "(cached) " >&6
11740 if test -n "$CC"; then
11741 ac_cv_prog_CC="$CC" # Let the user override the test.
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11747 test -z "$as_dir" && as_dir=.
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11750 ac_cv_prog_CC="${ac_tool_prefix}cc"
11751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 if test -n "$CC"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11763 $as_echo "$CC" >&6; }
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11772 if test -z "$CC"; then
11773 # Extract the first word of "cc", so it can be a program name with args.
11774 set dummy cc; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if ${ac_cv_prog_CC+:} false; then :
11778 $as_echo_n "(cached) " >&6
11780 if test -n "$CC"; then
11781 ac_cv_prog_CC="$CC" # Let the user override the test.
11783 ac_prog_rejected=no
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11792 ac_prog_rejected=yes
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 if test $ac_prog_rejected = yes; then
11804 # We found a bogon in the path, so make sure we never use it.
11805 set dummy $ac_cv_prog_CC
11807 if test $# != 0; then
11808 # We chose a different compiler from the bogus one.
11809 # However, it has the same basename, so the bogon will be chosen
11810 # first if we set CC to just the basename; use the full file name.
11812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11818 if test -n "$CC"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11820 $as_echo "$CC" >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11828 if test -z "$CC"; then
11829 if test -n "$ac_tool_prefix"; then
11830 for ac_prog in cl.exe
11832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if ${ac_cv_prog_CC+:} false; then :
11837 $as_echo_n "(cached) " >&6
11839 if test -n "$CC"; then
11840 ac_cv_prog_CC="$CC" # Let the user override the test.
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 if test -n "$CC"; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11862 $as_echo "$CC" >&6; }
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11869 test -n "$CC" && break
11872 if test -z "$CC"; then
11874 for ac_prog in cl.exe
11876 # Extract the first word of "$ac_prog", so it can be a program name with args.
11877 set dummy $ac_prog; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11881 $as_echo_n "(cached) " >&6
11883 if test -n "$ac_ct_CC"; then
11884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893 ac_cv_prog_ac_ct_CC="$ac_prog"
11894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11904 if test -n "$ac_ct_CC"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11906 $as_echo "$ac_ct_CC" >&6; }
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11913 test -n "$ac_ct_CC" && break
11916 if test "x$ac_ct_CC" = x; then
11919 case $cross_compiling:$ac_tool_warned in
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11923 ac_tool_warned=yes ;;
11932 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11934 as_fn_error $? "no acceptable C compiler found in \$PATH
11935 See \`config.log' for more details" "$LINENO" 5; }
11937 # Provide some information about the compiler.
11938 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11941 for ac_option in --version -v -V -qversion; do
11942 { { ac_try="$ac_compiler $ac_option >&5"
11943 case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11948 $as_echo "$ac_try_echo"; } >&5
11949 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11951 if test -s conftest.err; then
11953 ... rest of stderr output deleted ...
11954 10q' conftest.err >conftest.er1
11955 cat conftest.er1 >&5
11957 rm -f conftest.er1 conftest.err
11958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11959 test $ac_status = 0; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11963 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11964 if ${ac_cv_c_compiler_gnu+:} false; then :
11965 $as_echo_n "(cached) " >&6
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11981 if ac_fn_c_try_compile "$LINENO"; then :
11982 ac_compiler_gnu=yes
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11992 if test $ac_compiler_gnu = yes; then
11997 ac_test_CFLAGS=${CFLAGS+set}
11998 ac_save_CFLAGS=$CFLAGS
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12001 if ${ac_cv_prog_cc_g+:} false; then :
12002 $as_echo_n "(cached) " >&6
12004 ac_save_c_werror_flag=$ac_c_werror_flag
12005 ac_c_werror_flag=yes
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12019 if ac_fn_c_try_compile "$LINENO"; then :
12020 ac_cv_prog_cc_g=yes
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12034 if ac_fn_c_try_compile "$LINENO"; then :
12037 ac_c_werror_flag=$ac_save_c_werror_flag
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12050 if ac_fn_c_try_compile "$LINENO"; then :
12051 ac_cv_prog_cc_g=yes
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 ac_c_werror_flag=$ac_save_c_werror_flag
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12061 $as_echo "$ac_cv_prog_cc_g" >&6; }
12062 if test "$ac_test_CFLAGS" = set; then
12063 CFLAGS=$ac_save_CFLAGS
12064 elif test $ac_cv_prog_cc_g = yes; then
12065 if test "$GCC" = yes; then
12071 if test "$GCC" = yes; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12078 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12079 if ${ac_cv_prog_cc_c89+:} false; then :
12080 $as_echo_n "(cached) " >&6
12082 ac_cv_prog_cc_c89=no
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086 #include <stdarg.h>
12089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12090 struct buf { int x; };
12091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12092 static char *e (p, i)
12098 static char *f (char * (*g) (char **, int), char **p, ...)
12103 s = g (p, va_arg (v,int));
12108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12109 function prototypes and stuff, but not '\xHH' hex character constants.
12110 These don't provoke an error unfortunately, instead are silently treated
12111 as 'x'. The following induces an error, until -std is added to get
12112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12113 array size at least. It's necessary to write '\x00'==0 to get something
12114 that's true only with -std. */
12115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12118 inside strings and character constants. */
12120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12122 int test (int i, double x);
12123 struct s1 {int (*f) (int a);};
12124 struct s2 {int (*f) (double a);};
12125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12139 CC="$ac_save_CC $ac_arg"
12140 if ac_fn_c_try_compile "$LINENO"; then :
12141 ac_cv_prog_cc_c89=$ac_arg
12143 rm -f core conftest.err conftest.$ac_objext
12144 test "x$ac_cv_prog_cc_c89" != "xno" && break
12146 rm -f conftest.$ac_ext
12151 case "x$ac_cv_prog_cc_c89" in
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12154 $as_echo "none needed" >&6; } ;;
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12157 $as_echo "unsupported" >&6; } ;;
12159 CC="$CC $ac_cv_prog_cc_c89"
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12161 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12163 if test "x$ac_cv_prog_cc_c89" != xno; then :
12168 ac_cpp='$CPP $CPPFLAGS'
12169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12174 ac_cpp='$CXXCPP $CPPFLAGS'
12175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12178 if test -z "$CXX"; then
12179 if test -n "$CCC"; then
12182 if test -n "$ac_tool_prefix"; then
12183 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if ${ac_cv_prog_CXX+:} false; then :
12190 $as_echo_n "(cached) " >&6
12192 if test -n "$CXX"; then
12193 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 CXX=$ac_cv_prog_CXX
12213 if test -n "$CXX"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12215 $as_echo "$CXX" >&6; }
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12222 test -n "$CXX" && break
12225 if test -z "$CXX"; then
12227 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12229 # Extract the first word of "$ac_prog", so it can be a program name with args.
12230 set dummy $ac_prog; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12234 $as_echo_n "(cached) " >&6
12236 if test -n "$ac_ct_CXX"; then
12237 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12246 ac_cv_prog_ac_ct_CXX="$ac_prog"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12257 if test -n "$ac_ct_CXX"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12259 $as_echo "$ac_ct_CXX" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12266 test -n "$ac_ct_CXX" && break
12269 if test "x$ac_ct_CXX" = x; then
12272 case $cross_compiling:$ac_tool_warned in
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12276 ac_tool_warned=yes ;;
12284 # Provide some information about the compiler.
12285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12288 for ac_option in --version -v -V -qversion; do
12289 { { ac_try="$ac_compiler $ac_option >&5"
12290 case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12295 $as_echo "$ac_try_echo"; } >&5
12296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12298 if test -s conftest.err; then
12300 ... rest of stderr output deleted ...
12301 10q' conftest.err >conftest.er1
12302 cat conftest.er1 >&5
12304 rm -f conftest.er1 conftest.err
12305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12306 test $ac_status = 0; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12310 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12311 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12312 $as_echo_n "(cached) " >&6
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12328 if ac_fn_cxx_try_compile "$LINENO"; then :
12329 ac_compiler_gnu=yes
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12338 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12339 if test $ac_compiler_gnu = yes; then
12344 ac_test_CXXFLAGS=${CXXFLAGS+set}
12345 ac_save_CXXFLAGS=$CXXFLAGS
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12347 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12348 if ${ac_cv_prog_cxx_g+:} false; then :
12349 $as_echo_n "(cached) " >&6
12351 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12352 ac_cxx_werror_flag=yes
12353 ac_cv_prog_cxx_g=no
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12366 if ac_fn_cxx_try_compile "$LINENO"; then :
12367 ac_cv_prog_cxx_g=yes
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12381 if ac_fn_cxx_try_compile "$LINENO"; then :
12384 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12397 if ac_fn_cxx_try_compile "$LINENO"; then :
12398 ac_cv_prog_cxx_g=yes
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12408 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12409 if test "$ac_test_CXXFLAGS" = set; then
12410 CXXFLAGS=$ac_save_CXXFLAGS
12411 elif test $ac_cv_prog_cxx_g = yes; then
12412 if test "$GXX" = yes; then
12418 if test "$GXX" = yes; then
12425 ac_cpp='$CPP $CPPFLAGS'
12426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12432 func_stripname_cnf ()
12435 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12436 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12438 } # func_stripname_cnf
12440 if test -n "$CXX" && ( test no != "$CXX" &&
12441 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12442 (test g++ != "$CXX"))); then
12444 ac_cpp='$CXXCPP $CPPFLAGS'
12445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12449 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12450 if test -z "$CXXCPP"; then
12451 if ${ac_cv_prog_CXXCPP+:} false; then :
12452 $as_echo_n "(cached) " >&6
12454 # Double quotes because CXXCPP needs to be expanded
12455 for CXXCPP in "$CXX -E" "/lib/cpp"
12457 ac_preproc_ok=false
12458 for ac_cxx_preproc_warn_flag in '' yes
12460 # Use a header file that comes with gcc, so configuring glibc
12461 # with a fresh cross-compiler works.
12462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463 # <limits.h> exists even on freestanding compilers.
12464 # On the NeXT, cc -E runs the code through the compiler's parser,
12465 # not just through cpp. "Syntax error" is here to catch this case.
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 # include <limits.h>
12471 # include <assert.h>
12475 if ac_fn_cxx_try_cpp "$LINENO"; then :
12478 # Broken: fails on valid input.
12481 rm -f conftest.err conftest.i conftest.$ac_ext
12483 # OK, works on sane cases. Now check whether nonexistent headers
12484 # can be detected and how.
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 #include <ac_nonexistent.h>
12489 if ac_fn_cxx_try_cpp "$LINENO"; then :
12490 # Broken: success on invalid input.
12493 # Passes both tests.
12497 rm -f conftest.err conftest.i conftest.$ac_ext
12500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12501 rm -f conftest.i conftest.err conftest.$ac_ext
12502 if $ac_preproc_ok; then :
12507 ac_cv_prog_CXXCPP=$CXXCPP
12510 CXXCPP=$ac_cv_prog_CXXCPP
12512 ac_cv_prog_CXXCPP=$CXXCPP
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12515 $as_echo "$CXXCPP" >&6; }
12516 ac_preproc_ok=false
12517 for ac_cxx_preproc_warn_flag in '' yes
12519 # Use a header file that comes with gcc, so configuring glibc
12520 # with a fresh cross-compiler works.
12521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522 # <limits.h> exists even on freestanding compilers.
12523 # On the NeXT, cc -E runs the code through the compiler's parser,
12524 # not just through cpp. "Syntax error" is here to catch this case.
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 # include <limits.h>
12530 # include <assert.h>
12534 if ac_fn_cxx_try_cpp "$LINENO"; then :
12537 # Broken: fails on valid input.
12540 rm -f conftest.err conftest.i conftest.$ac_ext
12542 # OK, works on sane cases. Now check whether nonexistent headers
12543 # can be detected and how.
12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12546 #include <ac_nonexistent.h>
12548 if ac_fn_cxx_try_cpp "$LINENO"; then :
12549 # Broken: success on invalid input.
12552 # Passes both tests.
12556 rm -f conftest.err conftest.i conftest.$ac_ext
12559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12560 rm -f conftest.i conftest.err conftest.$ac_ext
12561 if $ac_preproc_ok; then :
12564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12566 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12567 See \`config.log' for more details" "$LINENO" 5; }
12571 ac_cpp='$CPP $CPPFLAGS'
12572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12577 _lt_caught_CXX_error=yes
12581 ac_cpp='$CXXCPP $CPPFLAGS'
12582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12586 archive_cmds_need_lc_CXX=no
12587 allow_undefined_flag_CXX=
12588 always_export_symbols_CXX=no
12589 archive_expsym_cmds_CXX=
12590 compiler_needs_object_CXX=no
12591 export_dynamic_flag_spec_CXX=
12592 hardcode_direct_CXX=no
12593 hardcode_direct_absolute_CXX=no
12594 hardcode_libdir_flag_spec_CXX=
12595 hardcode_libdir_separator_CXX=
12596 hardcode_minus_L_CXX=no
12597 hardcode_shlibpath_var_CXX=unsupported
12598 hardcode_automatic_CXX=no
12599 inherit_rpath_CXX=no
12601 module_expsym_cmds_CXX=
12602 link_all_deplibs_CXX=unknown
12603 old_archive_cmds_CXX=$old_archive_cmds
12604 reload_flag_CXX=$reload_flag
12605 reload_cmds_CXX=$reload_cmds
12606 no_undefined_flag_CXX=
12607 whole_archive_flag_spec_CXX=
12608 enable_shared_with_static_runtimes_CXX=no
12610 # Source file extension for C++ test sources.
12613 # Object file extension for compiled C++ test sources.
12617 # No sense in running all these tests if we already determined that
12618 # the CXX compiler isn't working. Some variables (like enable_shared)
12619 # are currently assumed to apply to all compilers on this platform,
12620 # and will be corrupted by setting them based on a non-working compiler.
12621 if test yes != "$_lt_caught_CXX_error"; then
12622 # Code to be used in simple compile tests
12623 lt_simple_compile_test_code="int some_variable = 0;"
12625 # Code to be used in simple link tests
12626 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12628 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12635 # If no C compiler was specified, use CC.
12638 # If no C compiler flags were specified, use CFLAGS.
12639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12641 # Allow CC to be a program name with arguments.
12645 # save warnings/boilerplate of simple test code
12646 ac_outfile=conftest.$ac_objext
12647 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12648 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12649 _lt_compiler_boilerplate=`cat conftest.err`
12652 ac_outfile=conftest.$ac_objext
12653 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12654 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12655 _lt_linker_boilerplate=`cat conftest.err`
12659 # Allow CC to be a program name with arguments.
12661 lt_save_CFLAGS=$CFLAGS
12665 lt_save_with_gnu_ld=$with_gnu_ld
12666 lt_save_path_LD=$lt_cv_path_LD
12667 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12668 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12670 $as_unset lt_cv_prog_gnu_ld
12672 if test -n "${lt_cv_path_LDCXX+set}"; then
12673 lt_cv_path_LD=$lt_cv_path_LDCXX
12675 $as_unset lt_cv_path_LD
12677 test -z "${LDCXX+set}" || LD=$LDCXX
12682 func_cc_basename $compiler
12683 cc_basename=$func_cc_basename_result
12686 if test -n "$compiler"; then
12687 # We don't want -fno-exception when compiling C++ code, so set the
12688 # no_builtin_flag separately
12689 if test yes = "$GXX"; then
12690 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12692 lt_prog_compiler_no_builtin_flag_CXX=
12695 if test yes = "$GXX"; then
12696 # Set up default GNU C++ configuration
12700 # Check whether --with-gnu-ld was given.
12701 if test "${with_gnu_ld+set}" = set; then :
12702 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12708 if test yes = "$GCC"; then
12709 # Check if gcc -print-prog-name=ld gives a path.
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12711 $as_echo_n "checking for ld used by $CC... " >&6; }
12714 # gcc leaves a trailing carriage return, which upsets mingw
12715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12720 # Accept absolute paths.
12722 re_direlt='/[^/][^/]*/\.\./'
12723 # Canonicalize the pathname of ld
12724 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12725 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12726 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12728 test -z "$LD" && LD=$ac_prog
12731 # If it fails, then pretend we aren't using GCC.
12735 # If it is relative, then search for the first ld in PATH.
12736 with_gnu_ld=unknown
12739 elif test yes = "$with_gnu_ld"; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12741 $as_echo_n "checking for GNU ld... " >&6; }
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12744 $as_echo_n "checking for non-GNU ld... " >&6; }
12746 if ${lt_cv_path_LD+:} false; then :
12747 $as_echo_n "(cached) " >&6
12749 if test -z "$LD"; then
12750 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12751 for ac_dir in $PATH; do
12753 test -z "$ac_dir" && ac_dir=.
12754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12755 lt_cv_path_LD=$ac_dir/$ac_prog
12756 # Check to see if the program is GNU ld. I'd rather use --version,
12757 # but apparently some variants of GNU ld only accept -v.
12758 # Break only if it was the GNU/non-GNU ld that we prefer.
12759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12760 *GNU* | *'with BFD'*)
12761 test no != "$with_gnu_ld" && break
12764 test yes != "$with_gnu_ld" && break
12771 lt_cv_path_LD=$LD # Let the user override the test with a path.
12776 if test -n "$LD"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12778 $as_echo "$LD" >&6; }
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12783 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12785 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12786 if ${lt_cv_prog_gnu_ld+:} false; then :
12787 $as_echo_n "(cached) " >&6
12789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12790 case `$LD -v 2>&1 </dev/null` in
12791 *GNU* | *'with BFD'*)
12792 lt_cv_prog_gnu_ld=yes
12795 lt_cv_prog_gnu_ld=no
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12800 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12801 with_gnu_ld=$lt_cv_prog_gnu_ld
12809 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12810 # archiving commands below assume that GNU ld is being used.
12811 if test yes = "$with_gnu_ld"; then
12812 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12813 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'
12815 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12816 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12818 # If archive_cmds runs LD, not CC, wlarc should be empty
12819 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12820 # investigate it a little bit more. (MM)
12823 # ancient GNU ld didn't support --whole-archive et. al.
12824 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12825 $GREP 'no-whole-archive' > /dev/null; then
12826 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12828 whole_archive_flag_spec_CXX=
12834 # A generic and very simple default shared library creation
12835 # command for GNU C++ for the case where it uses the native
12836 # linker, instead of GNU ld. If possible, this setting should
12837 # overridden to take advantage of the native linker features on
12838 # the platform it is being used on.
12839 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12842 # Commands to make compiler produce verbose output that lists
12843 # what "hidden" libraries, object files and flags are used when
12844 # linking a shared library.
12845 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12853 # PORTME: fill in a description of your system's C++ link characteristics
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12855 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12859 # FIXME: insert proper C++ library support
12863 if test ia64 = "$host_cpu"; then
12864 # On IA64, the linker does run time linking by default, so we don't
12865 # have to do anything special.
12866 aix_use_runtimelinking=no
12867 exp_sym_flag='-Bexport'
12870 aix_use_runtimelinking=no
12872 # Test if we are trying to use run time linking or normal
12873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12874 # have runtime linking enabled, and use it for executables.
12875 # For shared libraries, we enable/disable runtime linking
12876 # depending on the kind of the shared library created -
12877 # when "with_aix_soname,aix_use_runtimelinking" is:
12878 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12879 # "aix,yes" lib.so shared, rtl:yes, for executables
12880 # lib.a static archive
12881 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12882 # lib.a(lib.so.V) shared, rtl:no, for executables
12883 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12884 # lib.a(lib.so.V) shared, rtl:no
12885 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12886 # lib.a static archive
12887 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12888 for ld_flag in $LDFLAGS; do
12891 aix_use_runtimelinking=yes
12896 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12897 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12898 # so we don't have lib.a shared libs to link our executables.
12899 # We have to force runtime linking in this case.
12900 aix_use_runtimelinking=yes
12901 LDFLAGS="$LDFLAGS -Wl,-brtl"
12906 exp_sym_flag='-bexport'
12907 no_entry_flag='-bnoentry'
12910 # When large executables or shared objects are built, AIX ld can
12911 # have problems creating the table of contents. If linking a library
12912 # or program results in "error TOC overflow" add -mminimal-toc to
12913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12916 archive_cmds_CXX=''
12917 hardcode_direct_CXX=yes
12918 hardcode_direct_absolute_CXX=yes
12919 hardcode_libdir_separator_CXX=':'
12920 link_all_deplibs_CXX=yes
12921 file_list_spec_CXX='$wl-f,'
12922 case $with_aix_soname,$aix_use_runtimelinking in
12923 aix,*) ;; # no import file
12924 svr4,* | *,yes) # use import file
12925 # The Import File defines what to hardcode.
12926 hardcode_direct_CXX=no
12927 hardcode_direct_absolute_CXX=no
12931 if test yes = "$GXX"; then
12932 case $host_os in aix4.[012]|aix4.[012].*)
12933 # We only want to do this on AIX 4.2 and lower, the check
12934 # below for broken collect2 doesn't work under 4.3+
12935 collect2name=`$CC -print-prog-name=collect2`
12936 if test -f "$collect2name" &&
12937 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12939 # We have reworked collect2
12942 # We have old collect2
12943 hardcode_direct_CXX=unsupported
12944 # It fails to find uninstalled libraries when the uninstalled
12945 # path is not listed in the libpath. Setting hardcode_minus_L
12946 # to unsupported forces relinking
12947 hardcode_minus_L_CXX=yes
12948 hardcode_libdir_flag_spec_CXX='-L$libdir'
12949 hardcode_libdir_separator_CXX=
12952 shared_flag='-shared'
12953 if test yes = "$aix_use_runtimelinking"; then
12954 shared_flag=$shared_flag' $wl-G'
12956 # Need to ensure runtime linking is disabled for the traditional
12957 # shared library, or the linker may eventually find shared libraries
12958 # /with/ Import File - we do not want to mix them.
12959 shared_flag_aix='-shared'
12960 shared_flag_svr4='-shared $wl-G'
12963 if test ia64 = "$host_cpu"; then
12964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12965 # chokes on -Wl,-G. The following line is correct:
12968 if test yes = "$aix_use_runtimelinking"; then
12969 shared_flag='$wl-G'
12971 shared_flag='$wl-bM:SRE'
12973 shared_flag_aix='$wl-bM:SRE'
12974 shared_flag_svr4='$wl-G'
12978 export_dynamic_flag_spec_CXX='$wl-bexpall'
12979 # It seems that -bexpall does not export symbols beginning with
12980 # underscore (_), so it is better to generate a list of symbols to
12982 always_export_symbols_CXX=yes
12983 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12984 # Warning - without using the other runtime loading flags (-brtl),
12985 # -berok will link without error, but may produce a broken library.
12986 # The "-G" linker flag allows undefined symbols.
12987 no_undefined_flag_CXX='-bernotok'
12988 # Determine the default libpath from the value encoded in an empty
12990 if test set = "${lt_cv_aix_libpath+set}"; then
12991 aix_libpath=$lt_cv_aix_libpath
12993 if ${lt_cv_aix_libpath__CXX+:} false; then :
12994 $as_echo_n "(cached) " >&6
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
13007 if ac_fn_cxx_try_link "$LINENO"; then :
13009 lt_aix_libpath_sed='
13010 /Import File Strings/,/^$/ {
13012 s/^0 *\([^ ]*\) *$/\1/
13016 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13017 # Check for a 64-bit object if we didn't find anything.
13018 if test -z "$lt_cv_aix_libpath__CXX"; then
13019 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13022 rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13024 if test -z "$lt_cv_aix_libpath__CXX"; then
13025 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13030 aix_libpath=$lt_cv_aix_libpath__CXX
13033 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13035 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13037 if test ia64 = "$host_cpu"; then
13038 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13039 allow_undefined_flag_CXX="-z nodefs"
13040 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"
13042 # Determine the default libpath from the value encoded in an
13043 # empty executable.
13044 if test set = "${lt_cv_aix_libpath+set}"; then
13045 aix_libpath=$lt_cv_aix_libpath
13047 if ${lt_cv_aix_libpath__CXX+:} false; then :
13048 $as_echo_n "(cached) " >&6
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13061 if ac_fn_cxx_try_link "$LINENO"; then :
13063 lt_aix_libpath_sed='
13064 /Import File Strings/,/^$/ {
13066 s/^0 *\([^ ]*\) *$/\1/
13070 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13071 # Check for a 64-bit object if we didn't find anything.
13072 if test -z "$lt_cv_aix_libpath__CXX"; then
13073 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13076 rm -f core conftest.err conftest.$ac_objext \
13077 conftest$ac_exeext conftest.$ac_ext
13078 if test -z "$lt_cv_aix_libpath__CXX"; then
13079 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13084 aix_libpath=$lt_cv_aix_libpath__CXX
13087 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13088 # Warning - without using the other run time loading flags,
13089 # -berok will link without error, but may produce a broken library.
13090 no_undefined_flag_CXX=' $wl-bernotok'
13091 allow_undefined_flag_CXX=' $wl-berok'
13092 if test yes = "$with_gnu_ld"; then
13093 # We only use this code for GNU lds that support --whole-archive.
13094 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13096 # Exported symbols can be pulled into shared objects from archives
13097 whole_archive_flag_spec_CXX='$convenience'
13099 archive_cmds_need_lc_CXX=yes
13100 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13101 # -brtl affects multiple linker settings, -berok does not and is overridden later
13102 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13103 if test svr4 != "$with_aix_soname"; then
13104 # This is similar to how AIX traditionally builds its shared
13105 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13106 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13108 if test aix != "$with_aix_soname"; then
13109 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13111 # used by -dlpreopen to get the symbols
13112 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13114 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13121 allow_undefined_flag_CXX=unsupported
13122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13123 # support --undefined. This deserves some investigation. FIXME
13124 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13131 case $cc_basename in
13133 # FIXME: insert proper C++ library support
13139 cygwin* | mingw* | pw32* | cegcc*)
13140 case $GXX,$cc_basename in
13143 # hardcode_libdir_flag_spec is actually meaningless, as there is
13144 # no search path for DLLs.
13145 hardcode_libdir_flag_spec_CXX=' '
13146 allow_undefined_flag_CXX=unsupported
13147 always_export_symbols_CXX=yes
13148 file_list_spec_CXX='@'
13149 # Tell ltmain to make .lib files, not .a files.
13151 # Tell ltmain to make .dll files, not .so files.
13153 # FIXME: Setting linknames here is a bad hack.
13154 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13155 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13156 cp "$export_symbols" "$output_objdir/$soname.def";
13157 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13159 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13161 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13163 # The linker will not automatically build a static lib if we build a DLL.
13164 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13165 enable_shared_with_static_runtimes_CXX=yes
13167 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13168 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13169 lt_tool_outputfile="@TOOL_OUTPUT@"~
13170 case $lt_outputfile in
13173 lt_outputfile=$lt_outputfile.exe
13174 lt_tool_outputfile=$lt_tool_outputfile.exe
13177 func_to_tool_file "$lt_outputfile"~
13178 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13179 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13180 $RM "$lt_outputfile.manifest";
13185 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13186 # as there is no search path for DLLs.
13187 hardcode_libdir_flag_spec_CXX='-L$libdir'
13188 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13189 allow_undefined_flag_CXX=unsupported
13190 always_export_symbols_CXX=no
13191 enable_shared_with_static_runtimes_CXX=yes
13193 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13194 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'
13195 # If the export-symbols file already is a .def file, use it as
13196 # is; otherwise, prepend EXPORTS...
13197 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13198 cp $export_symbols $output_objdir/$soname.def;
13200 echo EXPORTS > $output_objdir/$soname.def;
13201 cat $export_symbols >> $output_objdir/$soname.def;
13203 $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'
13210 darwin* | rhapsody*)
13213 archive_cmds_need_lc_CXX=no
13214 hardcode_direct_CXX=no
13215 hardcode_automatic_CXX=yes
13216 hardcode_shlibpath_var_CXX=unsupported
13217 if test yes = "$lt_cv_ld_force_load"; then
13218 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\"`'
13221 whole_archive_flag_spec_CXX=''
13223 link_all_deplibs_CXX=yes
13224 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13225 case $cc_basename in
13226 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13227 *) _lt_dar_can_shared=$GCC ;;
13229 if test yes = "$_lt_dar_can_shared"; then
13230 output_verbose_link_cmd=func_echo_all
13231 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"
13232 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13233 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"
13234 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"
13235 if test yes != "$lt_cv_apple_cc_single_mod"; then
13236 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"
13237 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"
13247 hardcode_libdir_flag_spec_CXX='-L$libdir'
13248 hardcode_minus_L_CXX=yes
13249 allow_undefined_flag_CXX=unsupported
13251 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13252 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13253 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13254 $ECHO EXPORTS >> $output_objdir/$libname.def~
13255 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13256 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13257 emximp -o $lib $output_objdir/$libname.def'
13258 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13259 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13260 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13261 $ECHO EXPORTS >> $output_objdir/$libname.def~
13262 prefix_cmds="$SED"~
13263 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13264 prefix_cmds="$prefix_cmds -e 1d";
13266 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13267 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13268 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13269 emximp -o $lib $output_objdir/$libname.def'
13270 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13271 enable_shared_with_static_runtimes_CXX=yes
13275 case $cc_basename in
13277 # FIXME: insert proper C++ library support
13281 # Green Hills C++ Compiler
13282 # FIXME: insert proper C++ library support
13286 # FIXME: insert proper C++ library support
13293 # C++ shared libraries reported to be fairly broken before
13299 archive_cmds_need_lc_CXX=no
13302 freebsd* | dragonfly*)
13303 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13309 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13310 link_all_deplibs_CXX=yes
13314 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13315 hardcode_libdir_separator_CXX=:
13316 export_dynamic_flag_spec_CXX='$wl-E'
13317 hardcode_direct_CXX=yes
13318 hardcode_minus_L_CXX=yes # Not in the search PATH,
13319 # but as the default
13320 # location of the library.
13322 case $cc_basename in
13324 # FIXME: insert proper C++ library support
13328 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13329 # Commands to make compiler produce verbose output that lists
13330 # what "hidden" libraries, object files and flags are used when
13331 # linking a shared library.
13333 # There doesn't appear to be a way to prevent this compiler from
13334 # explicitly linking system object files so we need to strip them
13335 # from the output so that they don't get included in the library
13337 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"'
13340 if test yes = "$GXX"; then
13341 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13343 # FIXME: insert proper C++ library support
13351 if test no = "$with_gnu_ld"; then
13352 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13353 hardcode_libdir_separator_CXX=:
13359 export_dynamic_flag_spec_CXX='$wl-E'
13365 hardcode_direct_CXX=no
13366 hardcode_shlibpath_var_CXX=no
13369 hardcode_direct_CXX=yes
13370 hardcode_direct_absolute_CXX=yes
13371 hardcode_minus_L_CXX=yes # Not in the search PATH,
13372 # but as the default
13373 # location of the library.
13377 case $cc_basename in
13379 # FIXME: insert proper C++ library support
13385 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13388 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13391 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13394 # Commands to make compiler produce verbose output that lists
13395 # what "hidden" libraries, object files and flags are used when
13396 # linking a shared library.
13398 # There doesn't appear to be a way to prevent this compiler from
13399 # explicitly linking system object files so we need to strip them
13400 # from the output so that they don't get included in the library
13402 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"'
13405 if test yes = "$GXX"; then
13406 if test no = "$with_gnu_ld"; then
13409 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13412 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13415 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'
13420 # FIXME: insert proper C++ library support
13428 hardcode_direct_CXX=no
13429 hardcode_shlibpath_var_CXX=no
13430 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13431 export_dynamic_flag_spec_CXX='$wl-E'
13432 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13433 # Instead, shared libraries are loaded at an image base (0x10000000 by
13434 # default) and relocated if they conflict, which is a slow very memory
13435 # consuming and fragmenting process. To avoid this, we pick a random,
13436 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13437 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13438 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'
13439 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'
13442 case $cc_basename in
13445 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'
13447 # Archives containing C++ object files must be created using
13448 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13449 # necessary to make sure instantiated templates are included
13451 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13454 if test yes = "$GXX"; then
13455 if test no = "$with_gnu_ld"; then
13456 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'
13458 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'
13461 link_all_deplibs_CXX=yes
13464 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13465 hardcode_libdir_separator_CXX=:
13466 inherit_rpath_CXX=yes
13469 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13470 case $cc_basename in
13472 # Kuck and Associates, Inc. (KAI) C++ Compiler
13474 # KCC will only create a shared library if the output file
13475 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13476 # to its proper name (with version) after linking.
13477 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'
13478 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'
13479 # Commands to make compiler produce verbose output that lists
13480 # what "hidden" libraries, object files and flags are used when
13481 # linking a shared library.
13483 # There doesn't appear to be a way to prevent this compiler from
13484 # explicitly linking system object files so we need to strip them
13485 # from the output so that they don't get included in the library
13487 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"'
13489 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13490 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13492 # Archives containing C++ object files must be created using
13493 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13494 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13499 # version 8.0 and above of icpc choke on multiply defined symbols
13500 # if we add $predep_objects and $postdep_objects, however 7.1 and
13501 # earlier do not add the objects themselves.
13502 case `$CC -V 2>&1` in
13504 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13505 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'
13507 *) # Version 8.0 or newer
13510 ia64*) tmp_idyn=' -i_dynamic';;
13512 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13513 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'
13516 archive_cmds_need_lc_CXX=no
13517 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13518 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13519 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13522 # Portland Group C++ compiler
13524 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13525 prelink_cmds_CXX='tpldir=Template.dir~
13527 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13528 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13529 old_archive_cmds_CXX='tpldir=Template.dir~
13531 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13532 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13534 archive_cmds_CXX='tpldir=Template.dir~
13536 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13537 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13538 archive_expsym_cmds_CXX='tpldir=Template.dir~
13540 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13541 $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'
13543 *) # Version 6 and above use weak symbols
13544 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13545 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'
13549 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13550 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13551 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'
13555 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13556 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'
13558 runpath_var=LD_RUN_PATH
13559 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13560 hardcode_libdir_separator_CXX=:
13562 # Commands to make compiler produce verbose output that lists
13563 # what "hidden" libraries, object files and flags are used when
13564 # linking a shared library.
13566 # There doesn't appear to be a way to prevent this compiler from
13567 # explicitly linking system object files so we need to strip them
13568 # from the output so that they don't get included in the library
13570 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'
13572 xl* | mpixl* | bgxl*)
13573 # IBM XL 8.0 on PPC, with GNU ld
13574 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13575 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13576 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13577 if test yes = "$supports_anon_versioning"; then
13578 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13580 echo "local: *; };" >> $output_objdir/$libname.ver~
13581 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13585 case `$CC -V 2>&1 | sed 5q` in
13588 no_undefined_flag_CXX=' -zdefs'
13589 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13590 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'
13591 hardcode_libdir_flag_spec_CXX='-R$libdir'
13592 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'
13593 compiler_needs_object_CXX=yes
13595 # Not sure whether something based on
13596 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13598 output_verbose_link_cmd='func_echo_all'
13600 # Archives containing C++ object files must be created using
13601 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13602 # necessary to make sure instantiated templates are included
13604 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13612 # FIXME: insert proper C++ library support
13617 # FIXME: insert proper C++ library support
13622 case $cc_basename in
13624 # FIXME: insert proper C++ library support
13628 # FIXME: insert proper C++ library support
13635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13636 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13638 hardcode_libdir_flag_spec_CXX='-R$libdir'
13639 hardcode_direct_CXX=yes
13640 hardcode_shlibpath_var_CXX=no
13642 # Workaround some broken pre-1.5 toolchains
13643 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13650 openbsd* | bitrig*)
13651 if test -f /usr/libexec/ld.so; then
13652 hardcode_direct_CXX=yes
13653 hardcode_shlibpath_var_CXX=no
13654 hardcode_direct_absolute_CXX=yes
13655 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13656 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13658 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13659 export_dynamic_flag_spec_CXX='$wl-E'
13660 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13662 output_verbose_link_cmd=func_echo_all
13668 osf3* | osf4* | osf5*)
13669 case $cc_basename in
13671 # Kuck and Associates, Inc. (KAI) C++ Compiler
13673 # KCC will only create a shared library if the output file
13674 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13675 # to its proper name (with version) after linking.
13676 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'
13678 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13679 hardcode_libdir_separator_CXX=:
13681 # Archives containing C++ object files must be created using
13682 # the KAI C++ compiler.
13684 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13685 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13689 # Rational C++ 2.4.1
13690 # FIXME: insert proper C++ library support
13696 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13697 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'
13698 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13701 allow_undefined_flag_CXX=' -expect_unresolved \*'
13702 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'
13703 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13704 echo "-hidden">> $lib.exp~
13705 $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~
13707 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13711 hardcode_libdir_separator_CXX=:
13713 # Commands to make compiler produce verbose output that lists
13714 # what "hidden" libraries, object files and flags are used when
13715 # linking a shared library.
13717 # There doesn't appear to be a way to prevent this compiler from
13718 # explicitly linking system object files so we need to strip them
13719 # from the output so that they don't get included in the library
13721 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"'
13724 if test yes,no = "$GXX,$with_gnu_ld"; then
13725 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13728 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'
13731 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'
13735 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13736 hardcode_libdir_separator_CXX=:
13738 # Commands to make compiler produce verbose output that lists
13739 # what "hidden" libraries, object files and flags are used when
13740 # linking a shared library.
13741 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13744 # FIXME: insert proper C++ library support
13752 # FIXME: insert proper C++ library support
13757 case $cc_basename in
13760 # FIXME: insert proper C++ library support
13765 # FIXME: insert proper C++ library support
13769 # FIXME: insert proper C++ library support
13776 case $cc_basename in
13778 # Sun C++ 4.2, 5.x and Centerline C++
13779 archive_cmds_need_lc_CXX=yes
13780 no_undefined_flag_CXX=' -zdefs'
13781 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13782 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13783 $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'
13785 hardcode_libdir_flag_spec_CXX='-R$libdir'
13786 hardcode_shlibpath_var_CXX=no
13788 solaris2.[0-5] | solaris2.[0-5].*) ;;
13790 # The compiler driver will combine and reorder linker options,
13791 # but understands '-z linker_flag'.
13792 # Supported since Solaris 2.6 (maybe 2.5.1?)
13793 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13796 link_all_deplibs_CXX=yes
13798 output_verbose_link_cmd='func_echo_all'
13800 # Archives containing C++ object files must be created using
13801 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13802 # necessary to make sure instantiated templates are included
13804 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13807 # Green Hills C++ Compiler
13808 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13810 # The C++ compiler must be used to create the archive.
13811 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13814 # GNU C++ compiler with Solaris linker
13815 if test yes,no = "$GXX,$with_gnu_ld"; then
13816 no_undefined_flag_CXX=' $wl-z ${wl}defs'
13817 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13818 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13819 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13820 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13822 # Commands to make compiler produce verbose output that lists
13823 # what "hidden" libraries, object files and flags are used when
13824 # linking a shared library.
13825 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13827 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13829 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13830 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13831 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13833 # Commands to make compiler produce verbose output that lists
13834 # what "hidden" libraries, object files and flags are used when
13835 # linking a shared library.
13836 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13839 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13841 solaris2.[0-5] | solaris2.[0-5].*) ;;
13843 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13851 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13852 no_undefined_flag_CXX='$wl-z,text'
13853 archive_cmds_need_lc_CXX=no
13854 hardcode_shlibpath_var_CXX=no
13855 runpath_var='LD_RUN_PATH'
13857 case $cc_basename in
13859 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13864 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869 sysv5* | sco3.2v5* | sco5v6*)
13870 # Note: We CANNOT use -z defs as we might desire, because we do not
13871 # link with -lc, and that would cause any symbols used from libc to
13872 # always be unresolved, which means just about no library would
13873 # ever link correctly. If we're not using GNU ld we use -z text
13874 # though, which does catch some bad symbols but isn't as heavy-handed
13876 no_undefined_flag_CXX='$wl-z,text'
13877 allow_undefined_flag_CXX='$wl-z,nodefs'
13878 archive_cmds_need_lc_CXX=no
13879 hardcode_shlibpath_var_CXX=no
13880 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13881 hardcode_libdir_separator_CXX=':'
13882 link_all_deplibs_CXX=yes
13883 export_dynamic_flag_spec_CXX='$wl-Bexport'
13884 runpath_var='LD_RUN_PATH'
13886 case $cc_basename in
13888 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13889 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13890 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13891 '"$old_archive_cmds_CXX"
13892 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13893 '"$reload_cmds_CXX"
13896 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13897 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13903 case $cc_basename in
13905 # NonStop-UX NCC 3.20
13906 # FIXME: insert proper C++ library support
13910 # FIXME: insert proper C++ library support
13917 # FIXME: insert proper C++ library support
13922 # FIXME: insert proper C++ library support
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13928 $as_echo "$ld_shlibs_CXX" >&6; }
13929 test no = "$ld_shlibs_CXX" && can_build_shared=no
13935 ## There is no encapsulation within the following macros, do not change
13936 ## the running order or otherwise move them around unless you know exactly
13937 ## what you are doing...
13938 # Dependencies to place before and after the object being linked:
13939 predep_objects_CXX=
13940 postdep_objects_CXX=
13943 compiler_lib_search_path_CXX=
13945 cat > conftest.$ac_ext <<_LT_EOF
13949 Foo (void) { a = 0; }
13956 _lt_libdeps_save_CFLAGS=$CFLAGS
13957 case "$CC $CFLAGS " in #(
13958 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13959 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13960 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13964 (eval $ac_compile) 2>&5
13966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13967 test $ac_status = 0; }; then
13968 # Parse the compiler output and extract the necessary
13969 # objects, libraries and library flags.
13971 # Sentinel used to keep track of whether or not we are before
13972 # the conftest object file.
13973 pre_test_object_deps_done=no
13975 for p in `eval "$output_verbose_link_cmd"`; do
13979 # Some compilers place space between "-{L,R}" and the path.
13980 # Remove the space.
13981 if test x-L = "$p" ||
13982 test x-R = "$p"; then
13987 # Expand the sysroot to ease extracting the directories later.
13988 if test -z "$prev"; then
13990 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13991 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13992 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13996 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13998 if test no = "$pre_test_object_deps_done"; then
14001 # Internal compiler library paths should come after those
14002 # provided the user. The postdeps already come after the
14003 # user supplied libs so there is no need to process them.
14004 if test -z "$compiler_lib_search_path_CXX"; then
14005 compiler_lib_search_path_CXX=$prev$p
14007 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14010 # The "-l" case would never come before the object being
14011 # linked, so don't bother handling this case.
14014 if test -z "$postdeps_CXX"; then
14015 postdeps_CXX=$prev$p
14017 postdeps_CXX="${postdeps_CXX} $prev$p"
14023 *.lto.$objext) ;; # Ignore GCC LTO objects
14025 # This assumes that the test object file only shows up
14026 # once in the compiler output.
14027 if test "$p" = "conftest.$objext"; then
14028 pre_test_object_deps_done=yes
14032 if test no = "$pre_test_object_deps_done"; then
14033 if test -z "$predep_objects_CXX"; then
14034 predep_objects_CXX=$p
14036 predep_objects_CXX="$predep_objects_CXX $p"
14039 if test -z "$postdep_objects_CXX"; then
14040 postdep_objects_CXX=$p
14042 postdep_objects_CXX="$postdep_objects_CXX $p"
14047 *) ;; # Ignore the rest.
14055 echo "libtool.m4: error: problem compiling CXX test program"
14058 $RM -f confest.$objext
14059 CFLAGS=$_lt_libdeps_save_CFLAGS
14061 # PORTME: override above test on systems where it is broken
14064 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14065 # hack all around it, let's just trust "g++" to DTRT.
14066 predep_objects_CXX=
14067 postdep_objects_CXX=
14073 case " $postdeps_CXX " in
14074 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14076 compiler_lib_search_dirs_CXX=
14077 if test -n "${compiler_lib_search_path_CXX}"; then
14078 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14111 lt_prog_compiler_wl_CXX=
14112 lt_prog_compiler_pic_CXX=
14113 lt_prog_compiler_static_CXX=
14116 # C++ specific cases for pic, static, wl, etc.
14117 if test yes = "$GXX"; then
14118 lt_prog_compiler_wl_CXX='-Wl,'
14119 lt_prog_compiler_static_CXX='-static'
14123 # All AIX code is PIC.
14124 if test ia64 = "$host_cpu"; then
14125 # AIX 5 now supports IA64 processor
14126 lt_prog_compiler_static_CXX='-Bstatic'
14128 lt_prog_compiler_pic_CXX='-fPIC'
14134 # see comment about AmigaOS4 .so support
14135 lt_prog_compiler_pic_CXX='-fPIC'
14138 # FIXME: we need at least 68020 code to build shared libraries, but
14139 # adding the '-m68020' flag to GCC prevents building anything better,
14141 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14146 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14147 # PIC is the default for these OSes.
14149 mingw* | cygwin* | os2* | pw32* | cegcc*)
14150 # This hack is so that the source file can tell whether it is being
14151 # built for inclusion in a dll (and should export symbols for example).
14152 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14153 # (--disable-auto-import) libraries
14154 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14157 lt_prog_compiler_static_CXX='$wl-static'
14161 darwin* | rhapsody*)
14162 # PIC is the default on this platform
14163 # Common symbols not allowed in MH_DYLIB files
14164 lt_prog_compiler_pic_CXX='-fno-common'
14167 # DJGPP does not support shared libraries at all
14168 lt_prog_compiler_pic_CXX=
14171 # PIC is the default for Haiku.
14172 # The "-static" flag exists, but is broken.
14173 lt_prog_compiler_static_CXX=
14176 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14177 # Instead, we relocate shared libraries at runtime.
14180 if test -d /usr/nec; then
14181 lt_prog_compiler_pic_CXX=-Kconform_pic
14185 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14186 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14187 # sets the default TLS model and affects inlining.
14192 lt_prog_compiler_pic_CXX='-fPIC'
14197 # QNX uses GNU C++, but need to define -shared option too, otherwise
14198 # it will coredump.
14199 lt_prog_compiler_pic_CXX='-fPIC -shared'
14202 lt_prog_compiler_pic_CXX='-fPIC'
14208 # All AIX code is PIC.
14209 if test ia64 = "$host_cpu"; then
14210 # AIX 5 now supports IA64 processor
14211 lt_prog_compiler_static_CXX='-Bstatic'
14213 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14217 case $cc_basename in
14219 # Green Hills C++ Compiler
14220 # _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"
14224 mingw* | cygwin* | os2* | pw32* | cegcc*)
14225 # This hack is so that the source file can tell whether it is being
14226 # built for inclusion in a dll (and should export symbols for example).
14227 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14230 case $cc_basename in
14232 lt_prog_compiler_pic_CXX='-KPIC'
14235 # Green Hills C++ Compiler
14236 lt_prog_compiler_pic_CXX='-pic'
14242 freebsd* | dragonfly*)
14243 # FreeBSD uses GNU C++
14245 hpux9* | hpux10* | hpux11*)
14246 case $cc_basename in
14248 lt_prog_compiler_wl_CXX='-Wl,'
14249 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14250 if test ia64 != "$host_cpu"; then
14251 lt_prog_compiler_pic_CXX='+Z'
14255 lt_prog_compiler_wl_CXX='-Wl,'
14256 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14262 lt_prog_compiler_pic_CXX='+Z'
14271 # This is c89, which is MS Visual C++ (no shared libs)
14272 # Anyone wants to do a port?
14274 irix5* | irix6* | nonstopux*)
14275 case $cc_basename in
14277 lt_prog_compiler_wl_CXX='-Wl,'
14278 lt_prog_compiler_static_CXX='-non_shared'
14279 # CC pic flag -KPIC is the default.
14285 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14286 case $cc_basename in
14289 lt_prog_compiler_wl_CXX='--backend -Wl,'
14290 lt_prog_compiler_pic_CXX='-fPIC'
14293 # old Intel C++ for x86_64, which still supported -KPIC.
14294 lt_prog_compiler_wl_CXX='-Wl,'
14295 lt_prog_compiler_pic_CXX='-KPIC'
14296 lt_prog_compiler_static_CXX='-static'
14299 # Intel C++, used to be incompatible with GCC.
14300 # ICC 10 doesn't accept -KPIC any more.
14301 lt_prog_compiler_wl_CXX='-Wl,'
14302 lt_prog_compiler_pic_CXX='-fPIC'
14303 lt_prog_compiler_static_CXX='-static'
14306 # Portland Group C++ compiler
14307 lt_prog_compiler_wl_CXX='-Wl,'
14308 lt_prog_compiler_pic_CXX='-fpic'
14309 lt_prog_compiler_static_CXX='-Bstatic'
14313 # Make sure the PIC flag is empty. It appears that all Alpha
14314 # Linux and Compaq Tru64 Unix objects are PIC.
14315 lt_prog_compiler_pic_CXX=
14316 lt_prog_compiler_static_CXX='-non_shared'
14318 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14319 # IBM XL 8.0, 9.0 on PPC and BlueGene
14320 lt_prog_compiler_wl_CXX='-Wl,'
14321 lt_prog_compiler_pic_CXX='-qpic'
14322 lt_prog_compiler_static_CXX='-qstaticlink'
14325 case `$CC -V 2>&1 | sed 5q` in
14328 lt_prog_compiler_pic_CXX='-KPIC'
14329 lt_prog_compiler_static_CXX='-Bstatic'
14330 lt_prog_compiler_wl_CXX='-Qoption ld '
14341 case $cc_basename in
14343 lt_prog_compiler_pic_CXX='-W c,exportall'
14352 # QNX uses GNU C++, but need to define -shared option too, otherwise
14353 # it will coredump.
14354 lt_prog_compiler_pic_CXX='-fPIC -shared'
14356 osf3* | osf4* | osf5*)
14357 case $cc_basename in
14359 lt_prog_compiler_wl_CXX='--backend -Wl,'
14362 # Rational C++ 2.4.1
14363 lt_prog_compiler_pic_CXX='-pic'
14366 # Digital/Compaq C++
14367 lt_prog_compiler_wl_CXX='-Wl,'
14368 # Make sure the PIC flag is empty. It appears that all Alpha
14369 # Linux and Compaq Tru64 Unix objects are PIC.
14370 lt_prog_compiler_pic_CXX=
14371 lt_prog_compiler_static_CXX='-non_shared'
14380 case $cc_basename in
14382 # Sun C++ 4.2, 5.x and Centerline C++
14383 lt_prog_compiler_pic_CXX='-KPIC'
14384 lt_prog_compiler_static_CXX='-Bstatic'
14385 lt_prog_compiler_wl_CXX='-Qoption ld '
14388 # Green Hills C++ Compiler
14389 lt_prog_compiler_pic_CXX='-PIC'
14396 case $cc_basename in
14399 lt_prog_compiler_pic_CXX='-pic'
14400 lt_prog_compiler_static_CXX='-Bstatic'
14404 lt_prog_compiler_pic_CXX='-pic'
14410 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14411 case $cc_basename in
14413 lt_prog_compiler_wl_CXX='-Wl,'
14414 lt_prog_compiler_pic_CXX='-KPIC'
14415 lt_prog_compiler_static_CXX='-Bstatic'
14420 case $cc_basename in
14422 # NonStop-UX NCC 3.20
14423 lt_prog_compiler_pic_CXX='-KPIC'
14432 lt_prog_compiler_can_build_shared_CXX=no
14438 # For platforms that do not support PIC, -DPIC is meaningless:
14440 lt_prog_compiler_pic_CXX=
14443 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14448 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14449 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14450 $as_echo_n "(cached) " >&6
14452 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14455 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14456 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14459 # Check to make sure the PIC flag actually works.
14461 if test -n "$lt_prog_compiler_pic_CXX"; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14463 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14464 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14465 $as_echo_n "(cached) " >&6
14467 lt_cv_prog_compiler_pic_works_CXX=no
14468 ac_outfile=conftest.$ac_objext
14469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14470 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14471 # Insert the option either (1) after the last *FLAGS variable, or
14472 # (2) before a word containing "conftest.", or (3) at the end.
14473 # Note that $ac_compile itself does not contain backslashes and begins
14474 # with a dollar sign (not a hyphen), so the echo should work correctly.
14475 # The option is referenced via a variable to avoid confusing sed.
14476 lt_compile=`echo "$ac_compile" | $SED \
14477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14479 -e 's:$: $lt_compiler_flag:'`
14480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14481 (eval "$lt_compile" 2>conftest.err)
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 if (exit $ac_status) && test -s "$ac_outfile"; then
14486 # The compiler can only warn and ignore the option if not recognized
14487 # So say no if there are warnings other than the usual output.
14488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14490 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14491 lt_cv_prog_compiler_pic_works_CXX=yes
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14498 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14500 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14501 case $lt_prog_compiler_pic_CXX in
14503 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14506 lt_prog_compiler_pic_CXX=
14507 lt_prog_compiler_can_build_shared_CXX=no
14517 # Check to make sure the static flag actually works.
14519 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14521 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14522 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14523 $as_echo_n "(cached) " >&6
14525 lt_cv_prog_compiler_static_works_CXX=no
14526 save_LDFLAGS=$LDFLAGS
14527 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14528 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14530 # The linker can only warn and ignore the option if not recognized
14531 # So say no if there are warnings
14532 if test -s conftest.err; then
14533 # Append any errors to the config.log.
14534 cat conftest.err 1>&5
14535 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14537 if diff conftest.exp conftest.er2 >/dev/null; then
14538 lt_cv_prog_compiler_static_works_CXX=yes
14541 lt_cv_prog_compiler_static_works_CXX=yes
14545 LDFLAGS=$save_LDFLAGS
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14549 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14551 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14554 lt_prog_compiler_static_CXX=
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14562 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14563 $as_echo_n "(cached) " >&6
14565 lt_cv_prog_compiler_c_o_CXX=no
14566 $RM -r conftest 2>/dev/null
14570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14572 lt_compiler_flag="-o out/conftest2.$ac_objext"
14573 # Insert the option either (1) after the last *FLAGS variable, or
14574 # (2) before a word containing "conftest.", or (3) at the end.
14575 # Note that $ac_compile itself does not contain backslashes and begins
14576 # with a dollar sign (not a hyphen), so the echo should work correctly.
14577 lt_compile=`echo "$ac_compile" | $SED \
14578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14580 -e 's:$: $lt_compiler_flag:'`
14581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14582 (eval "$lt_compile" 2>out/conftest.err)
14584 cat out/conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14588 # The compiler can only warn and ignore the option if not recognized
14589 # So say no if there are warnings
14590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14593 lt_cv_prog_compiler_c_o_CXX=yes
14598 # SGI C++ compiler will create directory out/ii_files/ for
14599 # template instantiation
14600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14601 $RM out/* && rmdir out
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14608 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14613 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14614 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14615 $as_echo_n "(cached) " >&6
14617 lt_cv_prog_compiler_c_o_CXX=no
14618 $RM -r conftest 2>/dev/null
14622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14624 lt_compiler_flag="-o out/conftest2.$ac_objext"
14625 # Insert the option either (1) after the last *FLAGS variable, or
14626 # (2) before a word containing "conftest.", or (3) at the end.
14627 # Note that $ac_compile itself does not contain backslashes and begins
14628 # with a dollar sign (not a hyphen), so the echo should work correctly.
14629 lt_compile=`echo "$ac_compile" | $SED \
14630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632 -e 's:$: $lt_compiler_flag:'`
14633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14634 (eval "$lt_compile" 2>out/conftest.err)
14636 cat out/conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14640 # The compiler can only warn and ignore the option if not recognized
14641 # So say no if there are warnings
14642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14643 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14644 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14645 lt_cv_prog_compiler_c_o_CXX=yes
14650 # SGI C++ compiler will create directory out/ii_files/ for
14651 # template instantiation
14652 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14653 $RM out/* && rmdir out
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14660 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14665 hard_links=nottested
14666 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14667 # do not overwrite the value of need_locks provided by the user
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14669 $as_echo_n "checking if we can lock with hard links... " >&6; }
14672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14674 ln conftest.a conftest.b 2>&5 || hard_links=no
14675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14677 $as_echo "$hard_links" >&6; }
14678 if test no = "$hard_links"; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14680 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14690 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14692 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14693 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14696 # If we're using GNU nm, then we don't want the "-C" option.
14697 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14698 # Without the "-l" option, or with the "-B" option, AIX nm treats
14699 # weak defined symbols like other global defined symbols, whereas
14700 # GNU nm marks them as "W".
14701 # While the 'weak' keyword is ignored in the Export File, we need
14702 # it in the Import File for the 'aix-soname' feature, so we have
14703 # to replace the "-B" option with "-P" for AIX nm.
14704 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14705 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14707 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14711 export_symbols_cmds_CXX=$ltdll_cmds
14713 cygwin* | mingw* | cegcc*)
14714 case $cc_basename in
14716 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14719 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'
14720 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14730 $as_echo "$ld_shlibs_CXX" >&6; }
14731 test no = "$ld_shlibs_CXX" && can_build_shared=no
14733 with_gnu_ld_CXX=$with_gnu_ld
14741 # Do we need to explicitly link libc?
14743 case "x$archive_cmds_need_lc_CXX" in
14745 # Assume -lc should be added
14746 archive_cmds_need_lc_CXX=yes
14748 if test yes,yes = "$GCC,$enable_shared"; then
14749 case $archive_cmds_CXX in
14751 # FIXME: we may have to deal with multi-command sequences.
14754 # Test whether the compiler implicitly links with -lc since on some
14755 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14756 # to ld, don't add -lc before -lgcc.
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14758 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14759 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14760 $as_echo_n "(cached) " >&6
14763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14766 (eval $ac_compile) 2>&5
14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769 test $ac_status = 0; } 2>conftest.err; then
14772 libobjs=conftest.$ac_objext
14774 wl=$lt_prog_compiler_wl_CXX
14775 pic_flag=$lt_prog_compiler_pic_CXX
14781 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14782 allow_undefined_flag_CXX=
14783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14784 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14787 test $ac_status = 0; }
14789 lt_cv_archive_cmds_need_lc_CXX=no
14791 lt_cv_archive_cmds_need_lc_CXX=yes
14793 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14795 cat conftest.err 1>&5
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14801 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14802 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14871 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14873 library_names_spec=
14874 libname_spec='lib$name'
14878 postuninstall_cmds=
14882 shlibpath_overrides_runpath=unknown
14884 dynamic_linker="$host_os ld.so"
14885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14886 need_lib_prefix=unknown
14887 hardcode_into_libs=no
14889 # when you set need_version to no, make sure it does not cause -set_version
14890 # flags to be left without arguments
14891 need_version=unknown
14897 version_type=linux # correct to gnu/linux during the next big refactor
14898 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14899 shlibpath_var=LIBPATH
14901 # AIX 3 has no versioning support, so we append a major version to the name.
14902 soname_spec='$libname$release$shared_ext$major'
14906 version_type=linux # correct to gnu/linux during the next big refactor
14909 hardcode_into_libs=yes
14910 if test ia64 = "$host_cpu"; then
14911 # AIX 5 supports IA64
14912 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14913 shlibpath_var=LD_LIBRARY_PATH
14915 # With GCC up to 2.95.x, collect2 would create an import file
14916 # for dependence libraries. The import file would start with
14917 # the line '#! .'. This would cause the generated library to
14918 # depend on '.', always an invalid library. This was fixed in
14919 # development snapshots of GCC prior to 3.0.
14921 aix4 | aix4.[01] | aix4.[01].*)
14922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14924 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14927 can_build_shared=no
14931 # Using Import Files as archive members, it is possible to support
14932 # filename-based versioning of shared library archives on AIX. While
14933 # this would work for both with and without runtime linking, it will
14934 # prevent static linking of such archives. So we do filename-based
14935 # shared library versioning with .so extension only, which is used
14936 # when both runtime linking and shared linking is enabled.
14937 # Unfortunately, runtime linking may impact performance, so we do
14938 # not want this to be the default eventually. Also, we use the
14939 # versioned .so libs for executables only if there is the -brtl
14940 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14941 # To allow for filename-based versioning support, we need to create
14942 # libNAME.so.V as an archive file, containing:
14943 # *) an Import File, referring to the versioned filename of the
14944 # archive as well as the shared archive member, telling the
14945 # bitwidth (32 or 64) of that shared object, and providing the
14946 # list of exported symbols of that shared object, eventually
14947 # decorated with the 'weak' keyword
14948 # *) the shared object with the F_LOADONLY flag set, to really avoid
14949 # it being seen by the linker.
14950 # At run time we better use the real file rather than another symlink,
14951 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14953 case $with_aix_soname,$aix_use_runtimelinking in
14954 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14955 # soname into executable. Probably we can add versioning support to
14956 # collect2, so additional links can be useful in future.
14957 aix,yes) # traditional libtool
14958 dynamic_linker='AIX unversionable lib.so'
14959 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14960 # instead of lib<name>.a to let people know that these are not
14961 # typical AIX shared libraries.
14962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14964 aix,no) # traditional AIX only
14965 dynamic_linker='AIX lib.a(lib.so.V)'
14966 # We preserve .a as extension for shared libraries through AIX4.2
14967 # and later when we are not doing run time linking.
14968 library_names_spec='$libname$release.a $libname.a'
14969 soname_spec='$libname$release$shared_ext$major'
14971 svr4,*) # full svr4 only
14972 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14973 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14974 # We do not specify a path in Import Files, so LIBPATH fires.
14975 shlibpath_overrides_runpath=yes
14977 *,yes) # both, prefer svr4
14978 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14979 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14980 # unpreferred sharedlib libNAME.a needs extra handling
14981 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14982 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14983 # We do not specify a path in Import Files, so LIBPATH fires.
14984 shlibpath_overrides_runpath=yes
14986 *,no) # both, prefer aix
14987 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14988 library_names_spec='$libname$release.a $libname.a'
14989 soname_spec='$libname$release$shared_ext$major'
14990 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14991 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14992 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14995 shlibpath_var=LIBPATH
15002 # Since July 2007 AmigaOS4 officially supports .so libraries.
15003 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15007 library_names_spec='$libname.ixlibrary $libname.a'
15008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15009 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15015 library_names_spec='$libname$shared_ext'
15016 dynamic_linker="$host_os ld.so"
15017 shlibpath_var=LIBRARY_PATH
15021 version_type=linux # correct to gnu/linux during the next big refactor
15023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15024 soname_spec='$libname$release$shared_ext$major'
15025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15029 # the default ld.so.conf also contains /usr/contrib/lib and
15030 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15031 # libtool to hard-code these into programs
15034 cygwin* | mingw* | pw32* | cegcc*)
15035 version_type=windows
15040 case $GCC,$cc_basename in
15043 library_names_spec='$libname.dll.a'
15044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15045 postinstall_cmds='base_file=`basename \$file`~
15046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15047 dldir=$destdir/`dirname \$dlpath`~
15048 test -d \$dldir || mkdir -p \$dldir~
15049 $install_prog $dir/$dlname \$dldir/$dlname~
15050 chmod a+x \$dldir/$dlname~
15051 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15052 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15055 dlpath=$dir/\$dldll~
15057 shlibpath_overrides_runpath=yes
15061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15062 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15066 # MinGW DLLs use traditional 'lib' prefix
15067 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15070 # pw32 DLLs use 'pw' prefix rather than 'lib'
15071 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15074 dynamic_linker='Win32 ld.exe'
15079 libname_spec='$name'
15080 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15081 library_names_spec='$libname.dll.lib'
15085 sys_lib_search_path_spec=
15088 for lt_path in $LIB
15091 # Let DOS variable expansion print the short 8.3 style file name.
15092 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15093 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15096 # Convert to MSYS style.
15097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15100 # Convert to unix form, then to dos form, then back to unix form
15101 # but this time dos style (no spaces!) so that the unix form looks
15102 # like /cygdrive/c/PROGRA~1:/cygdr...
15103 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15104 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15105 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15108 sys_lib_search_path_spec=$LIB
15109 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15110 # It is most probably a Windows format PATH.
15111 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15113 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15115 # FIXME: find the short name or the path components, as spaces are
15116 # common. (e.g. "Program Files" -> "PROGRA~1")
15120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15121 postinstall_cmds='base_file=`basename \$file`~
15122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15123 dldir=$destdir/`dirname \$dlpath`~
15124 test -d \$dldir || mkdir -p \$dldir~
15125 $install_prog $dir/$dlname \$dldir/$dlname'
15126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15127 dlpath=$dir/\$dldll~
15129 shlibpath_overrides_runpath=yes
15130 dynamic_linker='Win32 link.exe'
15134 # Assume MSVC wrapper
15135 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15136 dynamic_linker='Win32 ld.exe'
15139 # FIXME: first we should search . and the directory the executable is in
15143 darwin* | rhapsody*)
15144 dynamic_linker="$host_os dyld"
15145 version_type=darwin
15148 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
15149 soname_spec='$libname$release$major$shared_ext'
15150 shlibpath_overrides_runpath=yes
15151 shlibpath_var=DYLD_LIBRARY_PATH
15152 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
15154 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15158 version_type=linux # correct to gnu/linux during the next big refactor
15161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15162 soname_spec='$libname$release$shared_ext$major'
15163 shlibpath_var=LD_LIBRARY_PATH
15166 freebsd* | dragonfly*)
15167 # DragonFly does not have aout. When/if they implement a new
15168 # versioning mechanism, adjust this.
15169 if test -x /usr/bin/objformat; then
15170 objformat=`/usr/bin/objformat`
15173 freebsd[23].*) objformat=aout ;;
15174 *) objformat=elf ;;
15177 # Handle Gentoo/FreeBSD as it was Linux
15178 case $host_vendor in
15180 version_type=linux ;;
15182 version_type=freebsd-$objformat ;;
15185 case $version_type in
15187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15188 soname_spec='$libname$release$shared_ext$major'
15193 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15203 shlibpath_var=LD_LIBRARY_PATH
15206 shlibpath_overrides_runpath=yes
15208 freebsd3.[01]* | freebsdelf3.[01]*)
15209 shlibpath_overrides_runpath=yes
15210 hardcode_into_libs=yes
15212 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15213 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15214 shlibpath_overrides_runpath=no
15215 hardcode_into_libs=yes
15217 *) # from 4.6 on, and DragonFly
15218 shlibpath_overrides_runpath=yes
15219 hardcode_into_libs=yes
15225 version_type=linux # correct to gnu/linux during the next big refactor
15228 dynamic_linker="$host_os runtime_loader"
15229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15230 soname_spec='$libname$release$shared_ext$major'
15231 shlibpath_var=LIBRARY_PATH
15232 shlibpath_overrides_runpath=no
15233 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15234 hardcode_into_libs=yes
15237 hpux9* | hpux10* | hpux11*)
15238 # Give a soname corresponding to the major version so that dld.sl refuses to
15239 # link against other versions.
15246 hardcode_into_libs=yes
15247 dynamic_linker="$host_os dld.so"
15248 shlibpath_var=LD_LIBRARY_PATH
15249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15251 soname_spec='$libname$release$shared_ext$major'
15252 if test 32 = "$HPUX_IA64_MODE"; then
15253 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15254 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15256 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15257 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15262 hardcode_into_libs=yes
15263 dynamic_linker="$host_os dld.sl"
15264 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15267 soname_spec='$libname$release$shared_ext$major'
15268 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15273 dynamic_linker="$host_os dld.sl"
15274 shlibpath_var=SHLIB_PATH
15275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15277 soname_spec='$libname$release$shared_ext$major'
15280 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15281 postinstall_cmds='chmod 555 $lib'
15282 # or fails outright, so override atomically:
15283 install_override_mode=555
15287 version_type=linux # correct to gnu/linux during the next big refactor
15290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15291 soname_spec='$libname$release$shared_ext$major'
15292 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=no
15295 hardcode_into_libs=yes
15298 irix5* | irix6* | nonstopux*)
15300 nonstopux*) version_type=nonstopux ;;
15302 if test yes = "$lt_cv_prog_gnu_ld"; then
15303 version_type=linux # correct to gnu/linux during the next big refactor
15310 soname_spec='$libname$release$shared_ext$major'
15311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15313 irix5* | nonstopux*)
15314 libsuff= shlibsuff=
15317 case $LD in # libtool.m4 will add one of these switches to LD
15318 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15319 libsuff= shlibsuff= libmagic=32-bit;;
15320 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15321 libsuff=32 shlibsuff=N32 libmagic=N32;;
15322 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15323 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15324 *) libsuff= shlibsuff= libmagic=never-match;;
15328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15329 shlibpath_overrides_runpath=no
15330 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15331 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15332 hardcode_into_libs=yes
15335 # No shared lib support for Linux oldld, aout, or coff.
15336 linux*oldld* | linux*aout* | linux*coff*)
15341 version_type=none # Android doesn't support versioned libraries.
15344 library_names_spec='$libname$release$shared_ext'
15345 soname_spec='$libname$release$shared_ext'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=yes
15350 # This implies no fast_install, which is unacceptable.
15351 # Some rework will be needed to allow for fast_install
15352 # before this can be enabled.
15353 hardcode_into_libs=yes
15355 dynamic_linker='Android linker'
15356 # Don't embed -rpath directories since the linker doesn't support them.
15357 hardcode_libdir_flag_spec_CXX='-L$libdir'
15360 # This must be glibc/ELF.
15361 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15362 version_type=linux # correct to gnu/linux during the next big refactor
15365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15366 soname_spec='$libname$release$shared_ext$major'
15367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15368 shlibpath_var=LD_LIBRARY_PATH
15369 shlibpath_overrides_runpath=no
15371 # Some binutils ld are patched to set DT_RUNPATH
15372 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15373 $as_echo_n "(cached) " >&6
15375 lt_cv_shlibpath_overrides_runpath=no
15376 save_LDFLAGS=$LDFLAGS
15377 save_libdir=$libdir
15378 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15379 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15391 if ac_fn_cxx_try_link "$LINENO"; then :
15392 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15393 lt_cv_shlibpath_overrides_runpath=yes
15396 rm -f core conftest.err conftest.$ac_objext \
15397 conftest$ac_exeext conftest.$ac_ext
15398 LDFLAGS=$save_LDFLAGS
15399 libdir=$save_libdir
15403 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15405 # This implies no fast_install, which is unacceptable.
15406 # Some rework will be needed to allow for fast_install
15407 # before this can be enabled.
15408 hardcode_into_libs=yes
15410 # Ideally, we could use ldconfig to report *all* directores which are
15411 # searched for libraries, however this is still not possible. Aside from not
15412 # being certain /sbin/ldconfig is available, command
15413 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15414 # even though it is searched at run-time. Try to do the best guess by
15415 # appending ld.so.conf contents (and includes) to the search path.
15416 if test -f /etc/ld.so.conf; then
15417 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' ' '`
15418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15421 # We used to test for /lib/ld.so.1 and disable shared libraries on
15422 # powerpc, because MkLinux only supported shared libraries with the
15423 # GNU dynamic linker. Since this was broken with cross compilers,
15424 # most powerpc-linux boxes support dynamic linking these days and
15425 # people can always --disable-shared, the test was removed, and we
15426 # assume the GNU/Linux dynamic linker is in use.
15427 dynamic_linker='GNU/Linux ld.so'
15434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15435 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15437 dynamic_linker='NetBSD (a.out) ld.so'
15439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15440 soname_spec='$libname$release$shared_ext$major'
15441 dynamic_linker='NetBSD ld.elf_so'
15443 shlibpath_var=LD_LIBRARY_PATH
15444 shlibpath_overrides_runpath=yes
15445 hardcode_into_libs=yes
15449 version_type=linux # correct to gnu/linux during the next big refactor
15450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15451 shlibpath_var=LD_LIBRARY_PATH
15452 shlibpath_overrides_runpath=yes
15459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15460 soname_spec='$libname$release$shared_ext$major'
15461 shlibpath_var=LD_LIBRARY_PATH
15462 shlibpath_overrides_runpath=no
15463 hardcode_into_libs=yes
15464 dynamic_linker='ldqnx.so'
15467 openbsd* | bitrig*)
15469 sys_lib_dlsearch_path_spec=/usr/lib
15471 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15476 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=yes
15483 libname_spec='$name'
15484 version_type=windows
15488 # OS/2 can only load a DLL with a base name of 8 characters or less.
15489 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15490 v=$($ECHO $release$versuffix | tr -d .-);
15491 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15492 $ECHO $n$v`$shared_ext'
15493 library_names_spec='${libname}_dll.$libext'
15494 dynamic_linker='OS/2 ld.exe'
15495 shlibpath_var=BEGINLIBPATH
15496 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15498 postinstall_cmds='base_file=`basename \$file`~
15499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15500 dldir=$destdir/`dirname \$dlpath`~
15501 test -d \$dldir || mkdir -p \$dldir~
15502 $install_prog $dir/$dlname \$dldir/$dlname~
15503 chmod a+x \$dldir/$dlname~
15504 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15505 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15508 dlpath=$dir/\$dldll~
15512 osf3* | osf4* | osf5*)
15516 soname_spec='$libname$release$shared_ext$major'
15517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15518 shlibpath_var=LD_LIBRARY_PATH
15519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15528 version_type=linux # correct to gnu/linux during the next big refactor
15531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15532 soname_spec='$libname$release$shared_ext$major'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=yes
15535 hardcode_into_libs=yes
15536 # ldd complains unless libraries are executable
15537 postinstall_cmds='chmod +x $lib'
15542 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15544 shlibpath_var=LD_LIBRARY_PATH
15545 shlibpath_overrides_runpath=yes
15546 if test yes = "$with_gnu_ld"; then
15553 version_type=linux # correct to gnu/linux during the next big refactor
15554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15555 soname_spec='$libname$release$shared_ext$major'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 case $host_vendor in
15559 shlibpath_overrides_runpath=no
15561 runpath_var=LD_RUN_PATH
15569 shlibpath_overrides_runpath=no
15570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15576 if test -d /usr/nec; then
15577 version_type=linux # correct to gnu/linux during the next big refactor
15578 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15579 soname_spec='$libname$shared_ext.$major'
15580 shlibpath_var=LD_LIBRARY_PATH
15584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15589 soname_spec='$libname$release$shared_ext$major'
15590 shlibpath_var=LD_LIBRARY_PATH
15591 shlibpath_overrides_runpath=yes
15592 hardcode_into_libs=yes
15593 if test yes = "$with_gnu_ld"; then
15594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15599 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15603 sys_lib_dlsearch_path_spec='/usr/lib'
15607 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15608 version_type=linux # correct to gnu/linux during the next big refactor
15611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 shlibpath_overrides_runpath=no
15614 hardcode_into_libs=yes
15618 version_type=linux # correct to gnu/linux during the next big refactor
15619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15620 soname_spec='$libname$release$shared_ext$major'
15621 shlibpath_var=LD_LIBRARY_PATH
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15629 $as_echo "$dynamic_linker" >&6; }
15630 test no = "$dynamic_linker" && can_build_shared=no
15632 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15633 if test yes = "$GCC"; then
15634 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15637 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15638 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15641 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15642 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15645 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15646 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15648 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15649 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15651 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15652 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15695 hardcode_action_CXX=
15696 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15697 test -n "$runpath_var_CXX" ||
15698 test yes = "$hardcode_automatic_CXX"; then
15700 # We can hardcode non-existent directories.
15701 if test no != "$hardcode_direct_CXX" &&
15702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15703 # have to relink, otherwise we might link with an installed library
15704 # when we should be linking with a yet-to-be-installed one
15705 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15706 test no != "$hardcode_minus_L_CXX"; then
15707 # Linking always hardcodes the temporary library directory.
15708 hardcode_action_CXX=relink
15710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15711 hardcode_action_CXX=immediate
15714 # We cannot hardcode anything, or else we can only hardcode existing
15716 hardcode_action_CXX=unsupported
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15719 $as_echo "$hardcode_action_CXX" >&6; }
15721 if test relink = "$hardcode_action_CXX" ||
15722 test yes = "$inherit_rpath_CXX"; then
15723 # Fast installation is not supported
15724 enable_fast_install=no
15725 elif test yes = "$shlibpath_overrides_runpath" ||
15726 test no = "$enable_shared"; then
15727 # Fast installation is not necessary
15728 enable_fast_install=needless
15737 fi # test -n "$compiler"
15740 CFLAGS=$lt_save_CFLAGS
15744 with_gnu_ld=$lt_save_with_gnu_ld
15745 lt_cv_path_LDCXX=$lt_cv_path_LD
15746 lt_cv_path_LD=$lt_save_path_LD
15747 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15748 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15749 fi # test yes != "$_lt_caught_CXX_error"
15752 ac_cpp='$CPP $CPPFLAGS'
15753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15758 # Find a good install program. We prefer a C program (faster),
15759 # so one script is as good as another. But avoid the broken or
15760 # incompatible versions:
15761 # SysV /etc/install, /usr/sbin/install
15762 # SunOS /usr/etc/install
15763 # IRIX /sbin/install
15765 # AmigaOS /C/install, which installs bootblocks on floppy discs
15766 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15767 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15768 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15769 # OS/2's system install, which has a completely different semantic
15770 # ./install, which can be erroneously created by make from ./install.sh.
15771 # Reject install programs that cannot install multiple files.
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15773 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15774 if test -z "$INSTALL"; then
15775 if ${ac_cv_path_install+:} false; then :
15776 $as_echo_n "(cached) " >&6
15778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779 for as_dir in $PATH
15782 test -z "$as_dir" && as_dir=.
15783 # Account for people who put trailing slashes in PATH elements.
15784 case $as_dir/ in #((
15785 ./ | .// | /[cC]/* | \
15786 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15787 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15790 # OSF1 and SCO ODT 3.0 have their own names for install.
15791 # Don't use installbsd from OSF since it installs stuff as root
15793 for ac_prog in ginstall scoinst install; do
15794 for ac_exec_ext in '' $ac_executable_extensions; do
15795 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15796 if test $ac_prog = install &&
15797 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15798 # AIX install. It has an incompatible calling convention.
15800 elif test $ac_prog = install &&
15801 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15802 # program-specific install script used by HP pwplus--don't use.
15805 rm -rf conftest.one conftest.two conftest.dir
15806 echo one > conftest.one
15807 echo two > conftest.two
15809 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15810 test -s conftest.one && test -s conftest.two &&
15811 test -s conftest.dir/conftest.one &&
15812 test -s conftest.dir/conftest.two
15814 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15827 rm -rf conftest.one conftest.two conftest.dir
15830 if test "${ac_cv_path_install+set}" = set; then
15831 INSTALL=$ac_cv_path_install
15833 # As a last resort, use the slow shell script. Don't cache a
15834 # value for INSTALL within a source directory, because that will
15835 # break other packages using the cache if that directory is
15836 # removed, or if the value is a relative name.
15837 INSTALL=$ac_install_sh
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15841 $as_echo "$INSTALL" >&6; }
15843 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15844 # It thinks the first close brace ends the variable substitution.
15845 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15847 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15849 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15852 if test "$GCC" = yes ; then
15853 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
15854 CFLAGS="$OLDCFLAGS -fexceptions"
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
15856 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15868 if ac_fn_c_try_link "$LINENO"; then :
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15870 $as_echo "yes" >&6; }
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
15875 rm -f core conftest.err conftest.$ac_objext \
15876 conftest$ac_exeext conftest.$ac_ext
15877 if test "x$CXXFLAGS" = x ; then
15878 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
15881 CFLAGS="${CFLAGS} -fno-strict-aliasing"
15882 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
15883 LDFLAGS="${LDFLAGS} -fno-strict-aliasing"
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15887 $as_echo_n "checking for ANSI C header files... " >&6; }
15888 if ${ac_cv_header_stdc+:} false; then :
15889 $as_echo_n "(cached) " >&6
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893 #include <stdlib.h>
15894 #include <stdarg.h>
15895 #include <string.h>
15906 if ac_fn_c_try_compile "$LINENO"; then :
15907 ac_cv_header_stdc=yes
15909 ac_cv_header_stdc=no
15911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15913 if test $ac_cv_header_stdc = yes; then
15914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15917 #include <string.h>
15920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15921 $EGREP "memchr" >/dev/null 2>&1; then :
15924 ac_cv_header_stdc=no
15930 if test $ac_cv_header_stdc = yes; then
15931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15934 #include <stdlib.h>
15937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15938 $EGREP "free" >/dev/null 2>&1; then :
15941 ac_cv_header_stdc=no
15947 if test $ac_cv_header_stdc = yes; then
15948 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15949 if test "$cross_compiling" = yes; then :
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15955 #include <stdlib.h>
15956 #if ((' ' & 0x0FF) == 0x020)
15957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15960 # define ISLOWER(c) \
15961 (('a' <= (c) && (c) <= 'i') \
15962 || ('j' <= (c) && (c) <= 'r') \
15963 || ('s' <= (c) && (c) <= 'z'))
15964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15972 for (i = 0; i < 256; i++)
15973 if (XOR (islower (i), ISLOWER (i))
15974 || toupper (i) != TOUPPER (i))
15979 if ac_fn_c_try_run "$LINENO"; then :
15982 ac_cv_header_stdc=no
15984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15985 conftest.$ac_objext conftest.beam conftest.$ac_ext
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15991 $as_echo "$ac_cv_header_stdc" >&6; }
15992 if test $ac_cv_header_stdc = yes; then
15994 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16001 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16002 if ${ac_cv_c_bigendian+:} false; then :
16003 $as_echo_n "(cached) " >&6
16005 ac_cv_c_bigendian=unknown
16006 # See if sys/param.h defines the BYTE_ORDER macro.
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16009 #include <sys/types.h>
16010 #include <sys/param.h>
16015 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16016 bogus endian macros
16022 if ac_fn_c_try_compile "$LINENO"; then :
16023 # It does; now see whether it defined to BIG_ENDIAN or not.
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16026 #include <sys/types.h>
16027 #include <sys/param.h>
16032 #if BYTE_ORDER != BIG_ENDIAN
16039 if ac_fn_c_try_compile "$LINENO"; then :
16040 ac_cv_c_bigendian=yes
16042 ac_cv_c_bigendian=no
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047 if test $ac_cv_c_bigendian = unknown; then
16048 if test "$cross_compiling" = yes; then :
16049 echo $ac_n "cross-compiling... " 2>&6
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16054 /* Are we little or big endian? From Harbison&Steele. */
16058 char c[sizeof (long)];
16061 exit (u.c[sizeof (long) - 1] == 1);
16064 if ac_fn_c_try_run "$LINENO"; then :
16065 ac_cv_c_bigendian=no
16067 ac_cv_c_bigendian=yes
16069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16070 conftest.$ac_objext conftest.beam conftest.$ac_ext
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16076 $as_echo "$ac_cv_c_bigendian" >&6; }
16077 if test $ac_cv_c_bigendian = unknown; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16079 $as_echo_n "checking to probe for byte ordering... " >&6; }
16081 cat >conftest.c <<EOF
16082 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16083 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16084 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16085 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16086 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16087 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16088 int main() { _ascii (); _ebcdic (); return 0; }
16090 if test -f conftest.c ; then
16091 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
16092 if test `grep -l BIGenDianSyS conftest.o` ; then
16093 echo $ac_n ' big endian probe OK, ' 1>&6
16094 ac_cv_c_bigendian=yes
16096 if test `grep -l LiTTleEnDian conftest.o` ; then
16097 echo $ac_n ' little endian probe OK, ' 1>&6
16098 if test $ac_cv_c_bigendian = yes ; then
16099 ac_cv_c_bigendian=unknown;
16101 ac_cv_c_bigendian=no
16104 echo $ac_n 'guessing bigendian ... ' >&6
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16108 $as_echo "$ac_cv_c_bigendian" >&6; }
16110 if test $ac_cv_c_bigendian = yes; then
16112 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16119 cat >>confdefs.h <<_ACEOF
16120 #define BYTEORDER $BYTEORDER
16123 if test $ac_cv_c_bigendian = unknown; then
16124 as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16129 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16130 if ${ac_cv_c_const+:} false; then :
16131 $as_echo_n "(cached) " >&6
16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134 /* end confdefs.h. */
16140 #ifndef __cplusplus
16141 /* Ultrix mips cc rejects this sort of thing. */
16142 typedef int charset[2];
16143 const charset cs = { 0, 0 };
16144 /* SunOS 4.1.1 cc rejects this. */
16145 char const *const *pcpcc;
16147 /* NEC SVR4.0.2 mips cc rejects this. */
16148 struct point {int x, y;};
16149 static struct point const zero = {0,0};
16150 /* AIX XL C 1.02.0.0 rejects this.
16151 It does not let you subtract one const X* pointer from another in
16152 an arm of an if-expression whose if-part is not a constant
16154 const char *g = "string";
16155 pcpcc = &g + (g ? g-g : 0);
16156 /* HPUX 7.0 cc rejects these. */
16158 ppc = (char**) pcpcc;
16159 pcpcc = (char const *const *) ppc;
16160 { /* SCO 3.2v4 cc rejects this sort of thing. */
16163 char const *s = 0 ? (char *) 0 : (char const *) 0;
16168 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16169 int x[] = {25, 17};
16170 const int *foo = &x[0];
16173 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16174 typedef const int *iptr;
16178 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16179 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16180 struct s { int j; const int *ap[3]; } bx;
16181 struct s *b = &bx; b->j = 5;
16183 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16184 const int foo = 10;
16185 if (!foo) return 0;
16187 return !cs[0] && !zero.x;
16194 if ac_fn_c_try_compile "$LINENO"; then :
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16202 $as_echo "$ac_cv_c_const" >&6; }
16203 if test $ac_cv_c_const = no; then
16205 $as_echo "#define const /**/" >>confdefs.h
16209 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16210 if test "x$ac_cv_type_size_t" = xyes; then :
16214 cat >>confdefs.h <<_ACEOF
16215 #define size_t unsigned int
16220 for ac_func in memmove bcopy
16222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16224 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16225 cat >>confdefs.h <<_ACEOF
16226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16235 # Check whether --with-libbsd was given.
16236 if test "${with_libbsd+set}" = set; then :
16237 withval=$with_libbsd;
16242 if test "x${with_libbsd}" != xno; then :
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
16245 $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
16246 if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
16247 $as_echo_n "(cached) " >&6
16249 ac_check_lib_save_LIBS=$LIBS
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16254 /* Override any GCC internal prototype to avoid an error.
16255 Use char because int might match the return type of a GCC
16256 builtin and then its argument prototype would still apply. */
16260 char arc4random_buf ();
16264 return arc4random_buf ();
16269 if ac_fn_c_try_link "$LINENO"; then :
16270 ac_cv_lib_bsd_arc4random_buf=yes
16272 ac_cv_lib_bsd_arc4random_buf=no
16274 rm -f core conftest.err conftest.$ac_objext \
16275 conftest$ac_exeext conftest.$ac_ext
16276 LIBS=$ac_check_lib_save_LIBS
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
16279 $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
16280 if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
16281 cat >>confdefs.h <<_ACEOF
16282 #define HAVE_LIBBSD 1
16289 if test "x${with_libbsd}" = xyes; then :
16291 as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
16300 $as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16304 #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */
16305 #if defined(HAVE_LIBBSD)
16306 # include <bsd/stdlib.h>
16309 arc4random_buf(NULL, 0U);
16314 if ac_fn_c_try_link "$LINENO"; then :
16317 $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16320 $as_echo "yes" >&6; }
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16325 $as_echo "no" >&6; }
16328 rm -f core conftest.err conftest.$ac_objext \
16329 conftest$ac_exeext conftest.$ac_ext
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
16333 $as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16337 #include <stdlib.h> /* for NULL */
16338 #include <sys/random.h>
16340 return getrandom(NULL, 0U, 0U);
16344 if ac_fn_c_try_compile "$LINENO"; then :
16347 $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16350 $as_echo "yes" >&6; }
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16355 $as_echo "no" >&6; }
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
16358 $as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16362 #include <stdlib.h> /* for NULL */
16363 #include <unistd.h> /* for syscall */
16364 #include <sys/syscall.h> /* for SYS_getrandom */
16366 syscall(SYS_getrandom, NULL, 0, 0);
16371 if ac_fn_c_try_link "$LINENO"; then :
16374 $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16377 $as_echo "yes" >&6; }
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16382 $as_echo "no" >&6; }
16385 rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16392 for ac_header in fcntl.h unistd.h
16394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16395 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16397 cat >>confdefs.h <<_ACEOF
16398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16405 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16406 if test "x$ac_cv_type_off_t" = xyes; then :
16410 cat >>confdefs.h <<_ACEOF
16411 #define off_t long int
16419 for ac_header in $ac_header_list
16421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16422 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16425 cat >>confdefs.h <<_ACEOF
16426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16440 for ac_func in getpagesize
16442 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16443 if test "x$ac_cv_func_getpagesize" = xyes; then :
16444 cat >>confdefs.h <<_ACEOF
16445 #define HAVE_GETPAGESIZE 1
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16452 $as_echo_n "checking for working mmap... " >&6; }
16453 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16454 $as_echo_n "(cached) " >&6
16456 if test "$cross_compiling" = yes; then :
16457 ac_cv_func_mmap_fixed_mapped=no
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16461 $ac_includes_default
16462 /* malloc might have been renamed as rpl_malloc. */
16465 /* Thanks to Mike Haertel and Jim Avera for this test.
16466 Here is a matrix of mmap possibilities:
16467 mmap private not fixed
16468 mmap private fixed at somewhere currently unmapped
16469 mmap private fixed at somewhere already mapped
16470 mmap shared not fixed
16471 mmap shared fixed at somewhere currently unmapped
16472 mmap shared fixed at somewhere already mapped
16473 For private mappings, we should verify that changes cannot be read()
16474 back from the file, nor mmap's back from the file at a different
16475 address. (There have been systems where private was not correctly
16476 implemented like the infamous i386 svr4.0, and systems where the
16477 VM page cache was not coherent with the file system buffer cache
16478 like early versions of FreeBSD and possibly contemporary NetBSD.)
16479 For shared mappings, we should conversely verify that changes get
16480 propagated back to all the places they're supposed to be.
16482 Grep wants private fixed already mapped.
16483 The main things grep needs to know about mmap are:
16484 * does it exist and is it safe to write into the mmap'd area
16485 * how to use it (BSD variants) */
16488 #include <sys/mman.h>
16490 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16494 /* This mess was copied from the GNU getpagesize.h. */
16495 #ifndef HAVE_GETPAGESIZE
16496 # ifdef _SC_PAGESIZE
16497 # define getpagesize() sysconf(_SC_PAGESIZE)
16498 # else /* no _SC_PAGESIZE */
16499 # ifdef HAVE_SYS_PARAM_H
16500 # include <sys/param.h>
16501 # ifdef EXEC_PAGESIZE
16502 # define getpagesize() EXEC_PAGESIZE
16503 # else /* no EXEC_PAGESIZE */
16505 # define getpagesize() NBPG * CLSIZE
16508 # endif /* no CLSIZE */
16509 # else /* no NBPG */
16511 # define getpagesize() NBPC
16512 # else /* no NBPC */
16514 # define getpagesize() PAGESIZE
16515 # endif /* PAGESIZE */
16516 # endif /* no NBPC */
16517 # endif /* no NBPG */
16518 # endif /* no EXEC_PAGESIZE */
16519 # else /* no HAVE_SYS_PARAM_H */
16520 # define getpagesize() 8192 /* punt totally */
16521 # endif /* no HAVE_SYS_PARAM_H */
16522 # endif /* no _SC_PAGESIZE */
16524 #endif /* no HAVE_GETPAGESIZE */
16529 char *data, *data2, *data3;
16530 const char *cdata2;
16534 pagesize = getpagesize ();
16536 /* First, make a file with some known garbage in it. */
16537 data = (char *) malloc (pagesize);
16540 for (i = 0; i < pagesize; ++i)
16541 *(data + i) = rand ();
16543 fd = creat ("conftest.mmap", 0600);
16546 if (write (fd, data, pagesize) != pagesize)
16550 /* Next, check that the tail of a page is zero-filled. File must have
16551 non-zero length, otherwise we risk SIGBUS for entire page. */
16552 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16556 if (write (fd2, cdata2, 1) != 1)
16558 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16559 if (data2 == MAP_FAILED)
16561 for (i = 0; i < pagesize; ++i)
16565 if (munmap (data2, pagesize))
16568 /* Next, try to mmap the file at a fixed address which already has
16569 something else allocated at it. If we can, also make sure that
16570 we see the same garbage. */
16571 fd = open ("conftest.mmap", O_RDWR);
16574 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16575 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16577 for (i = 0; i < pagesize; ++i)
16578 if (*(data + i) != *(data2 + i))
16581 /* Finally, make sure that changes to the mapped area do not
16582 percolate back to the file as seen by read(). (This is a bug on
16583 some variants of i386 svr4.0.) */
16584 for (i = 0; i < pagesize; ++i)
16585 *(data2 + i) = *(data2 + i) + 1;
16586 data3 = (char *) malloc (pagesize);
16589 if (read (fd, data3, pagesize) != pagesize)
16591 for (i = 0; i < pagesize; ++i)
16592 if (*(data + i) != *(data3 + i))
16598 if ac_fn_c_try_run "$LINENO"; then :
16599 ac_cv_func_mmap_fixed_mapped=yes
16601 ac_cv_func_mmap_fixed_mapped=no
16603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16604 conftest.$ac_objext conftest.beam conftest.$ac_ext
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16609 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16610 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16612 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16615 rm -f conftest.mmap conftest.txt
16618 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
16619 FILEMAP=unixfilemap
16621 FILEMAP=readfilemap
16627 # ------------------ #
16628 # Checks to see if ANSI C99 CPP variable __func__ works.
16629 # If not, perhaps __FUNCTION__ works instead.
16630 # If not, we'll just define __func__ to "".
16633 case $ac_cv_prog_cc_stdc in #(
16635 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
16638 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
16639 if ${ac_cv_prog_cc_c99+:} false; then :
16640 $as_echo_n "(cached) " >&6
16642 ac_cv_prog_cc_c99=no
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16646 #include <stdarg.h>
16647 #include <stdbool.h>
16648 #include <stdlib.h>
16652 // Check varargs macros. These examples are taken from C99 6.10.3.5.
16653 #define debug(...) fprintf (stderr, __VA_ARGS__)
16654 #define showlist(...) puts (#__VA_ARGS__)
16655 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16657 test_varargs_macros (void)
16662 debug ("X = %d\n", x);
16663 showlist (The first, second, and third items.);
16664 report (x>y, "x is %d but y is %d", x, y);
16667 // Check long long types.
16668 #define BIG64 18446744073709551615ull
16669 #define BIG32 4294967295ul
16670 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16672 your preprocessor is broken;
16676 your preprocessor is broken;
16678 static long long int bignum = -9223372036854775807LL;
16679 static unsigned long long int ubignum = BIG64;
16681 struct incomplete_array
16687 struct named_init {
16689 const wchar_t *name;
16693 typedef const char *ccp;
16696 test_restrict (ccp restrict text)
16698 // See if C++-style comments work.
16699 // Iterate through items via the restricted pointer.
16700 // Also check for declarations in for loops.
16701 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16706 // Check varargs and va_copy.
16708 test_varargs (const char *format, ...)
16711 va_start (args, format);
16713 va_copy (args_copy, args);
16723 case 's': // string
16724 str = va_arg (args_copy, const char *);
16727 number = va_arg (args_copy, int);
16730 fnumber = va_arg (args_copy, double);
16736 va_end (args_copy);
16745 _Bool success = false;
16748 if (test_restrict ("String literal") == 0)
16750 char *restrict newvar = "Another string";
16753 test_varargs ("s, d' f .", "string", 65, 34.234);
16754 test_varargs_macros ();
16756 // Check flexible array members.
16757 struct incomplete_array *ia =
16758 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16760 for (int i = 0; i < ia->datasize; ++i)
16761 ia->data[i] = i * 1.234;
16763 // Check named initializers.
16764 struct named_init ni = {
16766 .name = L"Test wide string",
16767 .average = 543.34343,
16772 int dynamic_array[ni.number];
16773 dynamic_array[ni.number - 1] = 543;
16775 // work around unused variable warnings
16776 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16777 || dynamic_array[ni.number - 1] != 543);
16783 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
16785 CC="$ac_save_CC $ac_arg"
16786 if ac_fn_c_try_compile "$LINENO"; then :
16787 ac_cv_prog_cc_c99=$ac_arg
16789 rm -f core conftest.err conftest.$ac_objext
16790 test "x$ac_cv_prog_cc_c99" != "xno" && break
16792 rm -f conftest.$ac_ext
16797 case "x$ac_cv_prog_cc_c99" in
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16800 $as_echo "none needed" >&6; } ;;
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16803 $as_echo "unsupported" >&6; } ;;
16805 CC="$CC $ac_cv_prog_cc_c99"
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
16807 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16809 if test "x$ac_cv_prog_cc_c99" != xno; then :
16810 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16813 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16814 if ${ac_cv_prog_cc_c89+:} false; then :
16815 $as_echo_n "(cached) " >&6
16817 ac_cv_prog_cc_c89=no
16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16821 #include <stdarg.h>
16824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16825 struct buf { int x; };
16826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16827 static char *e (p, i)
16833 static char *f (char * (*g) (char **, int), char **p, ...)
16838 s = g (p, va_arg (v,int));
16843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16844 function prototypes and stuff, but not '\xHH' hex character constants.
16845 These don't provoke an error unfortunately, instead are silently treated
16846 as 'x'. The following induces an error, until -std is added to get
16847 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16848 array size at least. It's necessary to write '\x00'==0 to get something
16849 that's true only with -std. */
16850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16853 inside strings and character constants. */
16855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16857 int test (int i, double x);
16858 struct s1 {int (*f) (int a);};
16859 struct s2 {int (*f) (double a);};
16860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16866 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16872 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16874 CC="$ac_save_CC $ac_arg"
16875 if ac_fn_c_try_compile "$LINENO"; then :
16876 ac_cv_prog_cc_c89=$ac_arg
16878 rm -f core conftest.err conftest.$ac_objext
16879 test "x$ac_cv_prog_cc_c89" != "xno" && break
16881 rm -f conftest.$ac_ext
16886 case "x$ac_cv_prog_cc_c89" in
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16889 $as_echo "none needed" >&6; } ;;
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16892 $as_echo "unsupported" >&6; } ;;
16894 CC="$CC $ac_cv_prog_cc_c89"
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16896 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16898 if test "x$ac_cv_prog_cc_c89" != xno; then :
16899 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
16901 ac_cv_prog_cc_stdc=no
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
16908 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
16909 if ${ac_cv_prog_cc_stdc+:} false; then :
16910 $as_echo_n "(cached) " >&6
16913 case $ac_cv_prog_cc_stdc in #(
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16916 $as_echo "unsupported" >&6; } ;; #(
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16919 $as_echo "none needed" >&6; } ;; #(
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
16922 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
16926 $as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
16927 if ${ac_cv_cpp_func+:} false; then :
16928 $as_echo_n "(cached) " >&6
16930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931 /* end confdefs.h. */
16936 const char *foo = __func__;
16941 if ac_fn_c_try_compile "$LINENO"; then :
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h. */
16950 const char *foo = __FUNCTION__;
16955 if ac_fn_c_try_compile "$LINENO"; then :
16956 ac_cv_cpp_func=__FUNCTION__
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
16965 $as_echo "$ac_cv_cpp_func" >&6; }
16966 if test $ac_cv_cpp_func = __FUNCTION__; then
16968 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
16970 elif test $ac_cv_cpp_func = no; then
16972 $as_echo "#define __func__ \"\"" >>confdefs.h
16979 $as_echo "#define XML_NS 1" >>confdefs.h
16982 $as_echo "#define XML_DTD 1" >>confdefs.h
16985 # Check whether --enable-xml-context was given.
16986 if test "${enable_xml_context+set}" = set; then :
16987 enableval=$enable_xml_context; enable_xml_context=${enableval}
16990 if test "x${enable_xml_context}" != "xno"; then :
16992 if test "x${enable_xml_context}" == "xyes" \
16993 -o "x${enable_xml_context}" == "x"; then :
16995 enable_xml_context=1024
16999 cat >>confdefs.h <<_ACEOF
17000 #define XML_CONTEXT_BYTES ${enable_xml_context}
17006 ac_config_files="$ac_config_files Makefile expat.pc"
17008 ac_config_files="$ac_config_files run.sh"
17010 cat >confcache <<\_ACEOF
17011 # This file is a shell script that caches the results of configure
17012 # tests run on this system so they can be shared between configure
17013 # scripts and configure runs, see configure's option --config-cache.
17014 # It is not useful on other systems. If it contains results you don't
17015 # want to keep, you may remove or edit it.
17017 # config.status only pays attention to the cache file if you give it
17018 # the --recheck option to rerun configure.
17020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17022 # following values.
17026 # The following way of writing the cache mishandles newlines in values,
17027 # but we know of no workaround that is simple, portable, and efficient.
17028 # So, we kill variables containing newlines.
17029 # Ultrix sh set writes to stderr and can't be redirected directly,
17030 # and sets the high bit in the cache file unless we assign to the vars.
17032 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17033 eval ac_val=\$$ac_var
17037 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17041 _ | IFS | as_nl) ;; #(
17042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17043 *) { eval $ac_var=; unset $ac_var;} ;;
17049 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17050 *${as_nl}ac_space=\ *)
17051 # `set' does not quote correctly, so add quotes: double-quote
17052 # substitution turns \\\\ into \\, and sed turns \\ into \.
17055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17058 # `set' quotes correctly as required by POSIX, so do not add quotes.
17059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17070 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17072 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17073 if test -w "$cache_file"; then
17074 if test "x$cache_file" != "x/dev/null"; then
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17076 $as_echo "$as_me: updating cache $cache_file" >&6;}
17077 if test ! -f "$cache_file" || test -h "$cache_file"; then
17078 cat confcache >"$cache_file"
17080 case $cache_file in #(
17082 mv -f confcache "$cache_file"$$ &&
17083 mv -f "$cache_file"$$ "$cache_file" ;; #(
17085 mv -f confcache "$cache_file" ;;
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17091 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17097 # Let make expand exec_prefix.
17098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17100 DEFS=-DHAVE_CONFIG_H
17105 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17106 # 1. Remove the extension, and $U if already installed.
17107 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17108 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17109 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17110 # will be set to the directory where LIBOBJS objects are built.
17111 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17112 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17114 LIBOBJS=$ac_libobjs
17116 LTLIBOBJS=$ac_ltlibobjs
17120 : "${CONFIG_STATUS=./config.status}"
17122 ac_clean_files_save=$ac_clean_files
17123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17125 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17127 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17129 # Generated by $as_me.
17130 # Run this file to recreate the current configuration.
17131 # Compiler output produced by configure, useful for debugging
17132 # configure, is in config.log if it exists.
17135 ac_cs_recheck=false
17138 SHELL=\${CONFIG_SHELL-$SHELL}
17141 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17142 ## -------------------- ##
17143 ## M4sh Initialization. ##
17144 ## -------------------- ##
17146 # Be more Bourne compatible
17147 DUALCASE=1; export DUALCASE # for MKS sh
17148 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17151 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17152 # is contrary to our usage. Disable this feature.
17153 alias -g '${1+"$@"}'='"$@"'
17154 setopt NO_GLOB_SUBST
17156 case `(set -o) 2>/dev/null` in #(
17168 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17169 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17172 # Prefer a ksh shell builtin over an external printf program on Solaris,
17173 # but without wasting forks for bash or zsh.
17174 if test -z "$BASH_VERSION$ZSH_VERSION" \
17175 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17176 as_echo='print -r --'
17177 as_echo_n='print -rn --'
17178 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17179 as_echo='printf %s\n'
17180 as_echo_n='printf %s'
17182 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17183 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17184 as_echo_n='/usr/ucb/echo -n'
17186 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17187 as_echo_n_body='eval
17191 expr "X$arg" : "X\\(.*\\)$as_nl";
17192 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17194 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17196 export as_echo_n_body
17197 as_echo_n='sh -c $as_echo_n_body as_echo'
17199 export as_echo_body
17200 as_echo='sh -c $as_echo_body as_echo'
17203 # The user is always right.
17204 if test "${PATH_SEPARATOR+set}" != set; then
17206 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17207 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17214 # We need space, tab and new line, in precisely that order. Quoting is
17215 # there to prevent editors from complaining about space-tab.
17216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17217 # splitting by setting IFS to empty value.)
17220 # Find who we are. Look in the path if we contain no directory separator.
17223 *[\\/]* ) as_myself=$0 ;;
17224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17225 for as_dir in $PATH
17228 test -z "$as_dir" && as_dir=.
17229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17235 # We did not find ourselves, most probably we were run as `sh COMMAND'
17236 # in which case we are not to be found in the path.
17237 if test "x$as_myself" = x; then
17240 if test ! -f "$as_myself"; then
17241 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17245 # Unset variables that we do not need and which cause bugs (e.g. in
17246 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17247 # suppresses any "Segmentation fault" message there. '((' could
17248 # trigger a bug in pdksh 5.2.14.
17249 for as_var in BASH_ENV ENV MAIL MAILPATH
17250 do eval test x\${$as_var+set} = xset \
17251 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17264 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17267 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17268 # ----------------------------------------
17269 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17270 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17271 # script with STATUS, using 1 if that was 0.
17274 as_status=$1; test $as_status -eq 0 && as_status=1
17276 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17277 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17279 $as_echo "$as_me: error: $2" >&2
17280 as_fn_exit $as_status
17284 # as_fn_set_status STATUS
17285 # -----------------------
17286 # Set $? to STATUS, without forking.
17287 as_fn_set_status ()
17290 } # as_fn_set_status
17292 # as_fn_exit STATUS
17293 # -----------------
17294 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17298 as_fn_set_status $1
17304 # Portably unset VAR.
17307 { eval $1=; unset $1;}
17309 as_unset=as_fn_unset
17310 # as_fn_append VAR VALUE
17311 # ----------------------
17312 # Append the text in VALUE to the end of the definition contained in VAR. Take
17313 # advantage of any shell optimizations that allow amortized linear growth over
17314 # repeated appends, instead of the typical quadratic growth present in naive
17316 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17317 eval 'as_fn_append ()
17328 # as_fn_arith ARG...
17329 # ------------------
17330 # Perform arithmetic evaluation on the ARGs, and store the result in the
17331 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17332 # must be portable across $(()) and expr.
17333 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17334 eval 'as_fn_arith ()
17341 as_val=`expr "$@" || test $? -eq 1`
17346 if expr a : '\(a\)' >/dev/null 2>&1 &&
17347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17354 as_basename=basename
17359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17365 as_me=`$as_basename -- "$0" ||
17366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17367 X"$0" : 'X\(//\)$' \| \
17368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17370 sed '/^.*\/\([^/][^/]*\)\/*$/{
17384 # Avoid depending upon Character Ranges.
17385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17388 as_cr_digits='0123456789'
17389 as_cr_alnum=$as_cr_Letters$as_cr_digits
17391 ECHO_C= ECHO_N= ECHO_T=
17392 case `echo -n x` in #(((((
17394 case `echo 'xy\c'` in
17395 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17397 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17404 rm -f conf$$ conf$$.exe conf$$.file
17405 if test -d conf$$.dir; then
17406 rm -f conf$$.dir/conf$$.file
17409 mkdir conf$$.dir 2>/dev/null
17411 if (echo >conf$$.file) 2>/dev/null; then
17412 if ln -s conf$$.file conf$$ 2>/dev/null; then
17414 # ... but there are two gotchas:
17415 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17416 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17417 # In both cases, we have to default to `cp -pR'.
17418 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17420 elif ln conf$$.file conf$$ 2>/dev/null; then
17428 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17429 rmdir conf$$.dir 2>/dev/null
17434 # Create "$as_dir" as a directory, including parents if necessary.
17439 -*) as_dir=./$as_dir;;
17441 test -d "$as_dir" || eval $as_mkdir_p || {
17445 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17446 *) as_qdir=$as_dir;;
17448 as_dirs="'$as_qdir' $as_dirs"
17449 as_dir=`$as_dirname -- "$as_dir" ||
17450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17451 X"$as_dir" : 'X\(//\)[^/]' \| \
17452 X"$as_dir" : 'X\(//\)$' \| \
17453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17454 $as_echo X"$as_dir" |
17455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17459 /^X\(\/\/\)[^/].*/{
17472 test -d "$as_dir" && break
17474 test -z "$as_dirs" || eval "mkdir $as_dirs"
17475 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17479 if mkdir -p . 2>/dev/null; then
17480 as_mkdir_p='mkdir -p "$as_dir"'
17482 test -d ./-p && rmdir ./-p
17487 # as_fn_executable_p FILE
17488 # -----------------------
17489 # Test if FILE is an executable regular file.
17490 as_fn_executable_p ()
17492 test -f "$1" && test -x "$1"
17493 } # as_fn_executable_p
17494 as_test_x='test -x'
17495 as_executable_p=as_fn_executable_p
17497 # Sed expression to map a string onto a valid CPP name.
17498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17500 # Sed expression to map a string onto a valid variable name.
17501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17505 ## ----------------------------------- ##
17506 ## Main body of $CONFIG_STATUS script. ##
17507 ## ----------------------------------- ##
17509 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17512 # Save the log message, to keep $0 and so on meaningful, and to
17513 # report actual input values of CONFIG_FILES etc. instead of their
17514 # values after options handling.
17516 This file was extended by expat $as_me 2.2.1, which was
17517 generated by GNU Autoconf 2.69. Invocation command line was
17519 CONFIG_FILES = $CONFIG_FILES
17520 CONFIG_HEADERS = $CONFIG_HEADERS
17521 CONFIG_LINKS = $CONFIG_LINKS
17522 CONFIG_COMMANDS = $CONFIG_COMMANDS
17525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17530 case $ac_config_files in *"
17531 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17534 case $ac_config_headers in *"
17535 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17540 # Files that config.status was made for.
17541 config_files="$ac_config_files"
17542 config_headers="$ac_config_headers"
17543 config_commands="$ac_config_commands"
17547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17549 \`$as_me' instantiates files and other configuration actions
17550 from templates according to the current configuration. Unless the files
17551 and actions are specified as TAGs, all are instantiated by default.
17553 Usage: $0 [OPTION]... [TAG]...
17555 -h, --help print this help, then exit
17556 -V, --version print version number and configuration settings, then exit
17557 --config print configuration, then exit
17558 -q, --quiet, --silent
17559 do not print progress messages
17560 -d, --debug don't remove temporary files
17561 --recheck update $as_me by reconfiguring in the same conditions
17562 --file=FILE[:TEMPLATE]
17563 instantiate the configuration file FILE
17564 --header=FILE[:TEMPLATE]
17565 instantiate the configuration header FILE
17567 Configuration files:
17570 Configuration headers:
17573 Configuration commands:
17576 Report bugs to <expat-bugs@libexpat.org>."
17579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17580 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17582 expat config.status 2.2.1
17583 configured by $0, generated by GNU Autoconf 2.69,
17584 with options \\"\$ac_cs_config\\"
17586 Copyright (C) 2012 Free Software Foundation, Inc.
17587 This config.status script is free software; the Free Software Foundation
17588 gives unlimited permission to copy, distribute and modify it."
17594 test -n "\$AWK" || AWK=awk
17597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17598 # The default lists apply if the user does not specify any file.
17604 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17605 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17609 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17621 # Handling of the options.
17622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17624 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17625 $as_echo "$ac_cs_version"; exit ;;
17626 --config | --confi | --conf | --con | --co | --c )
17627 $as_echo "$ac_cs_config"; exit ;;
17628 --debug | --debu | --deb | --de | --d | -d )
17630 --file | --fil | --fi | --f )
17633 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17634 '') as_fn_error $? "missing file argument" ;;
17636 as_fn_append CONFIG_FILES " '$ac_optarg'"
17637 ac_need_defaults=false;;
17638 --header | --heade | --head | --hea )
17641 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17643 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17644 ac_need_defaults=false;;
17646 # Conflict between --help and --header
17647 as_fn_error $? "ambiguous option: \`$1'
17648 Try \`$0 --help' for more information.";;
17649 --help | --hel | -h )
17650 $as_echo "$ac_cs_usage"; exit ;;
17651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17652 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17655 # This is an error.
17656 -*) as_fn_error $? "unrecognized option: \`$1'
17657 Try \`$0 --help' for more information." ;;
17659 *) as_fn_append ac_config_targets " $1"
17660 ac_need_defaults=false ;;
17666 ac_configure_extra_args=
17668 if $ac_cs_silent; then
17670 ac_configure_extra_args="$ac_configure_extra_args --silent"
17674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17675 if \$ac_cs_recheck; then
17676 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17679 CONFIG_SHELL='$SHELL'
17680 export CONFIG_SHELL
17685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17690 ## Running $as_me. ##
17696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17702 # The HP-UX ksh and POSIX shell print the target directory to stdout
17703 # if CDPATH is set.
17704 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17706 sed_quote_subst='$sed_quote_subst'
17707 double_quote_subst='$double_quote_subst'
17708 delay_variable_subst='$delay_variable_subst'
17709 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17710 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17711 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17712 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17713 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17714 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17715 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17716 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17717 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17718 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17719 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17720 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17721 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17722 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17723 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17724 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17725 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17726 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17727 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17728 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17729 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17730 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17731 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17732 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17733 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17734 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17735 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17736 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17737 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17738 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17739 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17740 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17741 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17742 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17743 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17744 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17745 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17746 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17747 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17748 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17749 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17750 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17751 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17752 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17753 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17754 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17755 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17756 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17757 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17758 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17759 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17760 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17761 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17762 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17763 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17764 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17765 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17766 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17767 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17768 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"`'
17769 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17770 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17771 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17772 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17773 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17774 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17775 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17776 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17777 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17778 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17779 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17780 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17781 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17782 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17783 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17784 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17785 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17786 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17787 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17788 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17789 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17790 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17791 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17792 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17793 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17794 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17795 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17796 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17797 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17798 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17799 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17800 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17801 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17802 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17803 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17804 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17805 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17806 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17807 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17808 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17809 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17810 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17811 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17812 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17813 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17814 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17815 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17816 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17817 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17818 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17819 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17820 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17821 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17822 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17823 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17824 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17825 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17826 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17827 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17828 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17829 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17830 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17831 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17832 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17833 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17834 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17835 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17836 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17837 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17838 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17839 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17840 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17841 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17842 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17843 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17844 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17845 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17846 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17847 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17848 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17849 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17850 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17851 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17852 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17853 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17854 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17855 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17856 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17857 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17858 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17859 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17860 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17861 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17862 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17863 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17864 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17865 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17866 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17867 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17868 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17869 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17870 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17871 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17872 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17873 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17874 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17875 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17876 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17877 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17878 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17879 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17880 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17881 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17882 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17883 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17884 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17885 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17886 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17887 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17888 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17889 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17890 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17891 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17892 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17893 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17894 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17895 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17896 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17897 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17898 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17901 LTCFLAGS='$LTCFLAGS'
17902 compiler='$compiler_DEFAULT'
17904 # A function that is used when there is no print builtin or printf.
17905 func_fallback_echo ()
17907 eval 'cat <<_LTECHO_EOF
17912 # Quote evaled strings.
17929 deplibs_check_method \
17933 sharedlib_from_linklib_cmd \
17936 archiver_list_spec \
17942 lt_cv_sys_global_symbol_pipe \
17943 lt_cv_sys_global_symbol_to_cdecl \
17944 lt_cv_sys_global_symbol_to_import \
17945 lt_cv_sys_global_symbol_to_c_name_address \
17946 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17947 lt_cv_nm_interface \
17948 nm_file_list_spec \
17949 lt_cv_truncate_bin \
17950 lt_prog_compiler_no_builtin_flag \
17951 lt_prog_compiler_pic \
17952 lt_prog_compiler_wl \
17953 lt_prog_compiler_static \
17954 lt_cv_prog_compiler_c_o \
17963 export_dynamic_flag_spec \
17964 whole_archive_flag_spec \
17965 compiler_needs_object \
17967 allow_undefined_flag \
17968 no_undefined_flag \
17969 hardcode_libdir_flag_spec \
17970 hardcode_libdir_separator \
17974 variables_saved_for_relink \
17976 library_names_spec \
17978 install_override_mode \
17982 compiler_lib_search_dirs \
17987 compiler_lib_search_path \
17991 lt_prog_compiler_no_builtin_flag_CXX \
17992 lt_prog_compiler_pic_CXX \
17993 lt_prog_compiler_wl_CXX \
17994 lt_prog_compiler_static_CXX \
17995 lt_cv_prog_compiler_c_o_CXX \
17996 export_dynamic_flag_spec_CXX \
17997 whole_archive_flag_spec_CXX \
17998 compiler_needs_object_CXX \
18000 allow_undefined_flag_CXX \
18001 no_undefined_flag_CXX \
18002 hardcode_libdir_flag_spec_CXX \
18003 hardcode_libdir_separator_CXX \
18004 exclude_expsyms_CXX \
18005 include_expsyms_CXX \
18006 file_list_spec_CXX \
18007 compiler_lib_search_dirs_CXX \
18008 predep_objects_CXX \
18009 postdep_objects_CXX \
18012 compiler_lib_search_path_CXX; do
18013 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18014 *[\\\\\\\`\\"\\\$]*)
18015 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18018 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18023 # Double-quote double-evaled strings.
18024 for var in reload_cmds \
18025 old_postinstall_cmds \
18026 old_postuninstall_cmds \
18028 extract_expsyms_cmds \
18029 old_archive_from_new_cmds \
18030 old_archive_from_expsyms_cmds \
18032 archive_expsym_cmds \
18034 module_expsym_cmds \
18035 export_symbols_cmds \
18039 postuninstall_cmds \
18041 sys_lib_search_path_spec \
18042 configure_time_dlsearch_path \
18043 configure_time_lt_sys_library_path \
18045 old_archive_cmds_CXX \
18046 old_archive_from_new_cmds_CXX \
18047 old_archive_from_expsyms_cmds_CXX \
18049 archive_expsym_cmds_CXX \
18051 module_expsym_cmds_CXX \
18052 export_symbols_cmds_CXX \
18054 postlink_cmds_CXX; do
18055 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18056 *[\\\\\\\`\\"\\\$]*)
18057 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18060 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18065 ac_aux_dir='$ac_aux_dir'
18067 # See if we are running on zsh, and set the options that allow our
18068 # commands through without removal of \ escapes INIT.
18069 if test -n "\${ZSH_VERSION+set}"; then
18070 setopt NO_GLOB_SUBST
18086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18088 # Handling of arguments.
18089 for ac_config_target in $ac_config_targets
18091 case $ac_config_target in
18092 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
18093 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18094 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18095 "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
18096 "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
18098 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18103 # If the user did not use the arguments to specify the items to instantiate,
18104 # then the envvar interface is used. Set only those that are not.
18105 # We use the long form for the default assignment because of an extremely
18106 # bizarre bug on SunOS 4.1.3.
18107 if $ac_need_defaults; then
18108 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18109 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18110 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18113 # Have a temporary directory for convenience. Make it in the build tree
18114 # simply because there is no reason against having it here, and in addition,
18115 # creating and moving files from /tmp can sometimes cause problems.
18116 # Hook for its removal unless debugging.
18117 # Note that there is a small window in which the directory will not be cleaned:
18118 # after its creation but before its name has been assigned to `$tmp'.
18122 trap 'exit_status=$?
18123 : "${ac_tmp:=$tmp}"
18124 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18126 trap 'as_fn_exit 1' 1 2 13 15
18128 # Create a (secure) tmp directory for tmp files.
18131 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18135 tmp=./conf$$-$RANDOM
18136 (umask 077 && mkdir "$tmp")
18137 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18140 # Set up the scripts for CONFIG_FILES section.
18141 # No need to generate them if there are no CONFIG_FILES.
18142 # This happens for instance with `./config.status config.h'.
18143 if test -n "$CONFIG_FILES"; then
18146 ac_cr=`echo X | tr X '\015'`
18147 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18148 # But we know of no other shell where ac_cr would be empty at this
18149 # point, so we can use a bashism as a fallback.
18150 if test "x$ac_cr" = x; then
18151 eval ac_cr=\$\'\\r\'
18153 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18154 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18157 ac_cs_awk_cr=$ac_cr
18160 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18165 echo "cat >conf$$subs.awk <<_ACEOF" &&
18166 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18168 } >conf$$subs.sh ||
18169 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18170 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18172 for ac_last_try in false false false false false :; do
18173 . ./conf$$subs.sh ||
18174 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18176 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18177 if test $ac_delim_n = $ac_delim_num; then
18179 elif $ac_last_try; then
18180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18182 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18185 rm -f conf$$subs.sh
18187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18188 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18192 s/^/S["/; s/!.*/"]=/
18202 s/\(.\{148\}\)..*/\1/
18204 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18216 s/\(.\{148\}\)..*/\1/
18218 s/["\\]/\\&/g; s/^/"/; s/$/"/
18222 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18227 ' <conf$$subs.awk | sed '
18232 ' >>$CONFIG_STATUS || ac_write_fail=1
18233 rm -f conf$$subs.awk
18234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18236 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18237 for (key in S) S_is_set[key] = 1
18243 nfields = split(line, field, "@")
18245 len = length(field[1])
18246 for (i = 2; i < nfields; i++) {
18248 keylen = length(key)
18249 if (S_is_set[key]) {
18251 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18252 len += length(value) + length(field[++i])
18263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18264 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18265 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18268 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18269 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18272 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18273 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18274 # trailing colons and then remove the whole line if VPATH becomes empty
18275 # (actually we leave an empty line to preserve line numbers).
18276 if test "x$srcdir" = x.; then
18277 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18296 fi # test -n "$CONFIG_FILES"
18298 # Set up the scripts for CONFIG_HEADERS section.
18299 # No need to generate them if there are no CONFIG_HEADERS.
18300 # This happens for instance with `./config.status Makefile'.
18301 if test -n "$CONFIG_HEADERS"; then
18302 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18306 # Transform confdefs.h into an awk script `defines.awk', embedded as
18307 # here-document in config.status, that substitutes the proper values into
18308 # config.h.in to produce config.h.
18310 # Create a delimiter string that does not exist in confdefs.h, to ease
18311 # handling of long lines.
18313 for ac_last_try in false false :; do
18314 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18315 if test -z "$ac_tt"; then
18317 elif $ac_last_try; then
18318 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18324 # For the awk script, D is an array of macro values keyed by name,
18325 # likewise P contains macro parameters if any. Preserve backslash
18326 # newline sequences.
18328 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18330 s/.\{148\}/&'"$ac_delim"'/g
18333 s/^[ ]*#[ ]*define[ ][ ]*/ /
18340 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18342 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18346 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18347 D["\1"]=" \3\\\\\\n"\\/p
18349 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18354 s/.\{148\}/&'"$ac_delim"'/g
18359 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18362 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18364 ' <confdefs.h | sed '
18365 s/'"$ac_delim"'/"\\\
18366 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18369 for (key in D) D_is_set[key] = 1
18372 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18374 split(line, arg, " ")
18375 if (arg[1] == "#") {
18379 defundef = substr(arg[1], 2)
18382 split(mac1, mac2, "(") #)
18384 prefix = substr(line, 1, index(line, defundef) - 1)
18385 if (D_is_set[macro]) {
18386 # Preserve the white space surrounding the "#".
18387 print prefix "define", macro P[macro] D[macro]
18390 # Replace #undef with comments. This is necessary, for example,
18391 # in the case of _POSIX_SOURCE, which is predefined and required
18392 # on some systems where configure will not decide to define it.
18393 if (defundef == "undef") {
18394 print "/*", prefix defundef, macro, "*/"
18402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18403 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18404 fi # test -n "$CONFIG_HEADERS"
18407 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18412 :[FHLC]) ac_mode=$ac_tag; continue;;
18414 case $ac_mode$ac_tag in
18416 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18417 :[FH]-) ac_tag=-:-;;
18418 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18435 -) ac_f="$ac_tmp/stdin";;
18436 *) # Look for the file first in the build tree, then in the source tree
18437 # (if the path is not absolute). The absolute path cannot be DOS-style,
18438 # because $ac_f cannot contain `:'.
18442 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18444 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18446 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18447 as_fn_append ac_file_inputs " '$ac_f'"
18450 # Let's still pretend it is `configure' which instantiates (i.e., don't
18451 # use $as_me), people would be surprised to read:
18452 # /* config.h. Generated by config.status. */
18453 configure_input='Generated from '`
18454 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18456 if test x"$ac_file" != x-; then
18457 configure_input="$ac_file. $configure_input"
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18459 $as_echo "$as_me: creating $ac_file" >&6;}
18461 # Neutralize special characters interpreted by sed in replacement strings.
18462 case $configure_input in #(
18463 *\&* | *\|* | *\\* )
18464 ac_sed_conf_input=`$as_echo "$configure_input" |
18465 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18466 *) ac_sed_conf_input=$configure_input;;
18470 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18476 ac_dir=`$as_dirname -- "$ac_file" ||
18477 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18478 X"$ac_file" : 'X\(//\)[^/]' \| \
18479 X"$ac_file" : 'X\(//\)$' \| \
18480 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18481 $as_echo X"$ac_file" |
18482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18486 /^X\(\/\/\)[^/].*/{
18499 as_dir="$ac_dir"; as_fn_mkdir_p
18503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18506 # A ".." for each directory in $ac_dir_suffix.
18507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18508 case $ac_top_builddir_sub in
18509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18513 ac_abs_top_builddir=$ac_pwd
18514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18515 # for backward compatibility:
18516 ac_top_builddir=$ac_top_build_prefix
18519 .) # We are building in place.
18521 ac_top_srcdir=$ac_top_builddir_sub
18522 ac_abs_top_srcdir=$ac_pwd ;;
18523 [\\/]* | ?:[\\/]* ) # Absolute name.
18524 ac_srcdir=$srcdir$ac_dir_suffix;
18525 ac_top_srcdir=$srcdir
18526 ac_abs_top_srcdir=$srcdir ;;
18527 *) # Relative name.
18528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18529 ac_top_srcdir=$ac_top_build_prefix$srcdir
18530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18542 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18543 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18548 # If the template does not know about datarootdir, expand it.
18549 # FIXME: This hack should be removed a few years after 2.60.
18550 ac_datarootdir_hack=; ac_datarootdir_seen=
18561 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18562 *datarootdir*) ac_datarootdir_seen=yes;;
18563 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18565 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18568 ac_datarootdir_hack='
18569 s&@datadir@&$datadir&g
18570 s&@docdir@&$docdir&g
18571 s&@infodir@&$infodir&g
18572 s&@localedir@&$localedir&g
18573 s&@mandir@&$mandir&g
18574 s&\\\${datarootdir}&$datarootdir&g' ;;
18578 # Neutralize VPATH when `$srcdir' = `.'.
18579 # Shell code in configure.ac might set extrasub.
18580 # FIXME: do we really want to maintain this feature?
18581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18582 ac_sed_extra="$ac_vpsub
18585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18588 s|@configure_input@|$ac_sed_conf_input|;t t
18589 s&@top_builddir@&$ac_top_builddir_sub&;t t
18590 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18591 s&@srcdir@&$ac_srcdir&;t t
18592 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18593 s&@top_srcdir@&$ac_top_srcdir&;t t
18594 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18595 s&@builddir@&$ac_builddir&;t t
18596 s&@abs_builddir@&$ac_abs_builddir&;t t
18597 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18598 s&@INSTALL@&$ac_INSTALL&;t t
18599 $ac_datarootdir_hack
18601 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18602 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18604 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18605 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18606 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18607 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18609 which seems to be undefined. Please make sure it is defined" >&5
18610 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18611 which seems to be undefined. Please make sure it is defined" >&2;}
18613 rm -f "$ac_tmp/stdin"
18615 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18616 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18618 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18624 if test x"$ac_file" != x-; then
18626 $as_echo "/* $configure_input */" \
18627 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18628 } >"$ac_tmp/config.h" \
18629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18630 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18632 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18635 mv "$ac_tmp/config.h" "$ac_file" \
18636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18639 $as_echo "/* $configure_input */" \
18640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18641 || as_fn_error $? "could not create -" "$LINENO" 5
18645 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18646 $as_echo "$as_me: executing $ac_file commands" >&6;}
18651 case $ac_file$ac_mode in
18654 # See if we are running on zsh, and set the options that allow our
18655 # commands through without removal of \ escapes.
18656 if test -n "${ZSH_VERSION+set}"; then
18657 setopt NO_GLOB_SUBST
18661 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18664 cat <<_LT_EOF >> "$cfgfile"
18666 # Generated automatically by $as_me ($PACKAGE) $VERSION
18667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18670 # Provide generalized library-building support services.
18671 # Written by Gordon Matzigkeit, 1996
18673 # Copyright (C) 2014 Free Software Foundation, Inc.
18674 # This is free software; see the source for copying conditions. There is NO
18675 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18677 # GNU Libtool is free software; you can redistribute it and/or modify
18678 # it under the terms of the GNU General Public License as published by
18679 # the Free Software Foundation; either version 2 of of the License, or
18680 # (at your option) any later version.
18682 # As a special exception to the GNU General Public License, if you
18683 # distribute this file as part of a program or library that is built
18684 # using GNU Libtool, you may include this file under the same
18685 # distribution terms that you use for the rest of that program.
18687 # GNU Libtool is distributed in the hope that it will be useful, but
18688 # WITHOUT ANY WARRANTY; without even the implied warranty of
18689 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18690 # GNU General Public License for more details.
18692 # You should have received a copy of the GNU General Public License
18693 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18696 # The names of the tagged configurations supported by this script.
18697 available_tags='CXX '
18699 # Configured defaults for sys_lib_dlsearch_path munging.
18700 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18702 # ### BEGIN LIBTOOL CONFIG
18704 # Assembler program.
18707 # DLL creation program.
18708 DLLTOOL=$lt_DLLTOOL
18710 # Object dumper program.
18711 OBJDUMP=$lt_OBJDUMP
18713 # Which release of libtool.m4 was used?
18714 macro_version=$macro_version
18715 macro_revision=$macro_revision
18717 # Whether or not to build shared libraries.
18718 build_libtool_libs=$enable_shared
18720 # Whether or not to build static libraries.
18721 build_old_libs=$enable_static
18723 # What type of objects to build.
18726 # Whether or not to optimize for fast installation.
18727 fast_install=$enable_fast_install
18729 # Shared archive member basename,for filename based shared library versioning on AIX.
18730 shared_archive_member_spec=$shared_archive_member_spec
18732 # Shell to use when invoking shell scripts.
18735 # An echo program that protects backslashes.
18738 # The PATH separator for the build system.
18739 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18742 host_alias=$host_alias
18746 # The build system.
18747 build_alias=$build_alias
18751 # A sed program that does not truncate output.
18754 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18755 Xsed="\$SED -e 1s/^X//"
18757 # A grep program that handles long lines.
18763 # A literal string matcher.
18766 # A BSD- or MS-compatible name lister.
18769 # Whether we need soft or hard links.
18772 # What is the maximum length of a command?
18773 max_cmd_len=$max_cmd_len
18775 # Object file suffix (normally "o").
18778 # Executable file suffix (normally "").
18781 # whether the shell understands "unset".
18784 # turn spaces into newlines.
18787 # turn newlines into spaces.
18790 # convert \$build file names to \$host format.
18791 to_host_file_cmd=$lt_cv_to_host_file_cmd
18793 # convert \$build files to toolchain format.
18794 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18796 # Method to check whether dependent libraries are shared objects.
18797 deplibs_check_method=$lt_deplibs_check_method
18799 # Command to use when deplibs_check_method = "file_magic".
18800 file_magic_cmd=$lt_file_magic_cmd
18802 # How to find potential files when deplibs_check_method = "file_magic".
18803 file_magic_glob=$lt_file_magic_glob
18805 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18806 want_nocaseglob=$lt_want_nocaseglob
18808 # Command to associate shared and link libraries.
18809 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18814 # Flags to create an archive.
18815 AR_FLAGS=$lt_AR_FLAGS
18817 # How to feed a file listing to the archiver.
18818 archiver_list_spec=$lt_archiver_list_spec
18820 # A symbol stripping program.
18823 # Commands used to install an old-style archive.
18825 old_postinstall_cmds=$lt_old_postinstall_cmds
18826 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18828 # Whether to use a lock for old archive extraction.
18829 lock_old_archive_extraction=$lock_old_archive_extraction
18834 # LTCC compiler flags.
18835 LTCFLAGS=$lt_CFLAGS
18837 # Take the output of nm and produce a listing of raw symbols and C names.
18838 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18840 # Transform the output of nm in a proper C declaration.
18841 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18843 # Transform the output of nm into a list of symbols to manually relocate.
18844 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18846 # Transform the output of nm in a C name address pair.
18847 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18849 # Transform the output of nm in a C name address pair when lib prefix is needed.
18850 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18852 # The name lister interface.
18853 nm_interface=$lt_lt_cv_nm_interface
18855 # Specify filename containing input files for \$NM.
18856 nm_file_list_spec=$lt_nm_file_list_spec
18858 # The root where to search for dependent libraries,and where our libraries should be installed.
18859 lt_sysroot=$lt_sysroot
18861 # Command to truncate a binary pipe.
18862 lt_truncate_bin=$lt_lt_cv_truncate_bin
18864 # The name of the directory that contains temporary libtool files.
18867 # Used to examine libraries when file_magic_cmd begins with "file".
18868 MAGIC_CMD=$MAGIC_CMD
18870 # Must we lock files when doing compilation?
18871 need_locks=$lt_need_locks
18874 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18876 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18877 DSYMUTIL=$lt_DSYMUTIL
18879 # Tool to change global to local symbols on Mac OS X.
18882 # Tool to manipulate fat objects and archives on Mac OS X.
18885 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18888 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18889 OTOOL64=$lt_OTOOL64
18891 # Old archive suffix (normally "a").
18894 # Shared library suffix (normally ".so").
18895 shrext_cmds=$lt_shrext_cmds
18897 # The commands to extract the exported symbol list from a shared archive.
18898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18900 # Variables whose values should be saved in libtool wrapper scripts and
18901 # restored at link time.
18902 variables_saved_for_relink=$lt_variables_saved_for_relink
18904 # Do we need the "lib" prefix for modules?
18905 need_lib_prefix=$need_lib_prefix
18907 # Do we need a version for libraries?
18908 need_version=$need_version
18910 # Library versioning type.
18911 version_type=$version_type
18913 # Shared library runtime path variable.
18914 runpath_var=$runpath_var
18916 # Shared library path variable.
18917 shlibpath_var=$shlibpath_var
18919 # Is shlibpath searched before the hard-coded library search path?
18920 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18922 # Format of library name prefix.
18923 libname_spec=$lt_libname_spec
18925 # List of archive names. First name is the real one, the rest are links.
18926 # The last name is the one that the linker finds with -lNAME
18927 library_names_spec=$lt_library_names_spec
18929 # The coded name of the library, if different from the real name.
18930 soname_spec=$lt_soname_spec
18932 # Permission mode override for installation of shared libraries.
18933 install_override_mode=$lt_install_override_mode
18935 # Command to use after installation of a shared archive.
18936 postinstall_cmds=$lt_postinstall_cmds
18938 # Command to use after uninstallation of a shared archive.
18939 postuninstall_cmds=$lt_postuninstall_cmds
18941 # Commands used to finish a libtool library installation in a directory.
18942 finish_cmds=$lt_finish_cmds
18944 # As "finish_cmds", except a single script fragment to be evaled but
18946 finish_eval=$lt_finish_eval
18948 # Whether we should hardcode library paths into libraries.
18949 hardcode_into_libs=$hardcode_into_libs
18951 # Compile-time system search path for libraries.
18952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18954 # Detected run-time system search path for libraries.
18955 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18957 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18958 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18960 # Whether dlopen is supported.
18961 dlopen_support=$enable_dlopen
18963 # Whether dlopen of programs is supported.
18964 dlopen_self=$enable_dlopen_self
18966 # Whether dlopen of statically linked programs is supported.
18967 dlopen_self_static=$enable_dlopen_self_static
18969 # Commands to strip libraries.
18970 old_striplib=$lt_old_striplib
18971 striplib=$lt_striplib
18974 # The linker used to build libraries.
18977 # How to create reloadable object files.
18978 reload_flag=$lt_reload_flag
18979 reload_cmds=$lt_reload_cmds
18981 # Commands used to build an old-style archive.
18982 old_archive_cmds=$lt_old_archive_cmds
18984 # A language specific compiler.
18987 # Is the compiler the GNU compiler?
18990 # Compiler flag to turn off builtin functions.
18991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18993 # Additional compiler flags for building library objects.
18994 pic_flag=$lt_lt_prog_compiler_pic
18996 # How to pass a linker flag through the compiler.
18997 wl=$lt_lt_prog_compiler_wl
18999 # Compiler flag to prevent dynamic linking.
19000 link_static_flag=$lt_lt_prog_compiler_static
19002 # Does compiler simultaneously support -c and -o options?
19003 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19005 # Whether or not to add -lc for building shared libraries.
19006 build_libtool_need_lc=$archive_cmds_need_lc
19008 # Whether or not to disallow shared libs when runtime libs are static.
19009 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19011 # Compiler flag to allow reflexive dlopens.
19012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19014 # Compiler flag to generate shared objects directly from archives.
19015 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19017 # Whether the compiler copes with passing no objects directly.
19018 compiler_needs_object=$lt_compiler_needs_object
19020 # Create an old-style archive from a shared archive.
19021 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19023 # Create a temporary old-style archive to link instead of a shared archive.
19024 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19026 # Commands used to build a shared archive.
19027 archive_cmds=$lt_archive_cmds
19028 archive_expsym_cmds=$lt_archive_expsym_cmds
19030 # Commands used to build a loadable module if different from building
19031 # a shared archive.
19032 module_cmds=$lt_module_cmds
19033 module_expsym_cmds=$lt_module_expsym_cmds
19035 # Whether we are building with GNU ld or not.
19036 with_gnu_ld=$lt_with_gnu_ld
19038 # Flag that allows shared libraries with undefined symbols to be built.
19039 allow_undefined_flag=$lt_allow_undefined_flag
19041 # Flag that enforces no undefined symbols.
19042 no_undefined_flag=$lt_no_undefined_flag
19044 # Flag to hardcode \$libdir into a binary during linking.
19045 # This must work even if \$libdir does not exist
19046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19048 # Whether we need a single "-rpath" flag with a separated argument.
19049 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19051 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19052 # DIR into the resulting binary.
19053 hardcode_direct=$hardcode_direct
19055 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19056 # DIR into the resulting binary and the resulting library dependency is
19057 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19058 # library is relocated.
19059 hardcode_direct_absolute=$hardcode_direct_absolute
19061 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19062 # into the resulting binary.
19063 hardcode_minus_L=$hardcode_minus_L
19065 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19066 # into the resulting binary.
19067 hardcode_shlibpath_var=$hardcode_shlibpath_var
19069 # Set to "yes" if building a shared library automatically hardcodes DIR
19070 # into the library and all subsequent libraries and executables linked
19072 hardcode_automatic=$hardcode_automatic
19074 # Set to yes if linker adds runtime paths of dependent libraries
19075 # to runtime path list.
19076 inherit_rpath=$inherit_rpath
19078 # Whether libtool must link a program against all its dependency libraries.
19079 link_all_deplibs=$link_all_deplibs
19081 # Set to "yes" if exported symbols are required.
19082 always_export_symbols=$always_export_symbols
19084 # The commands to list exported symbols.
19085 export_symbols_cmds=$lt_export_symbols_cmds
19087 # Symbols that should not be listed in the preloaded symbols.
19088 exclude_expsyms=$lt_exclude_expsyms
19090 # Symbols that must always be exported.
19091 include_expsyms=$lt_include_expsyms
19093 # Commands necessary for linking programs (against libraries) with templates.
19094 prelink_cmds=$lt_prelink_cmds
19096 # Commands necessary for finishing linking programs.
19097 postlink_cmds=$lt_postlink_cmds
19099 # Specify filename containing input files.
19100 file_list_spec=$lt_file_list_spec
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action
19105 # The directories searched by this compiler when creating a shared library.
19106 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19108 # Dependencies to place before and after the objects being linked to
19109 # create a shared library.
19110 predep_objects=$lt_predep_objects
19111 postdep_objects=$lt_postdep_objects
19112 predeps=$lt_predeps
19113 postdeps=$lt_postdeps
19115 # The library search path used internally by the compiler when linking
19116 # a shared library.
19117 compiler_lib_search_path=$lt_compiler_lib_search_path
19119 # ### END LIBTOOL CONFIG
19123 cat <<'_LT_EOF' >> "$cfgfile"
19125 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19127 # func_munge_path_list VARIABLE PATH
19128 # -----------------------------------
19129 # VARIABLE is name of variable containing _space_ separated list of
19130 # directories to be munged by the contents of PATH, which is string
19133 # string "DIR[ DIR]" will be prepended to VARIABLE
19135 # string "DIR[ DIR]" will be appended to VARIABLE
19136 # "DIRP[:DIRP]::[DIRA:]DIRA"
19137 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19138 # "DIRA[ DIRA]" will be appended to VARIABLE
19140 # VARIABLE will be replaced by "DIR[ DIR]"
19141 func_munge_path_list ()
19147 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19150 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19153 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19154 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19157 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19163 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19164 func_cc_basename ()
19166 for cc_temp in $*""; do
19168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19174 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19178 # ### END FUNCTIONS SHARED WITH CONFIGURE
19184 cat <<\_LT_EOF >> "$cfgfile"
19185 # AIX sometimes has problems with the GCC collect2 program. For some
19186 # reason, if we set the COLLECT_NAMES environment variable, the problems
19187 # vanish in a puff of smoke.
19188 if test set != "${COLLECT_NAMES+set}"; then
19190 export COLLECT_NAMES
19197 ltmain=$ac_aux_dir/ltmain.sh
19200 # We use sed instead of cat because bash on DJGPP gets confused if
19201 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19202 # text mode, it properly converts lines to CR/LF. This bash problem
19203 # is reportedly fixed, but why not run on old versions too?
19204 sed '$q' "$ltmain" >> "$cfgfile" \
19205 || (rm -f "$cfgfile"; exit 1)
19207 mv -f "$cfgfile" "$ofile" ||
19208 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19212 cat <<_LT_EOF >> "$ofile"
19214 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19216 # The linker used to build libraries.
19219 # How to create reloadable object files.
19220 reload_flag=$lt_reload_flag_CXX
19221 reload_cmds=$lt_reload_cmds_CXX
19223 # Commands used to build an old-style archive.
19224 old_archive_cmds=$lt_old_archive_cmds_CXX
19226 # A language specific compiler.
19227 CC=$lt_compiler_CXX
19229 # Is the compiler the GNU compiler?
19232 # Compiler flag to turn off builtin functions.
19233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19235 # Additional compiler flags for building library objects.
19236 pic_flag=$lt_lt_prog_compiler_pic_CXX
19238 # How to pass a linker flag through the compiler.
19239 wl=$lt_lt_prog_compiler_wl_CXX
19241 # Compiler flag to prevent dynamic linking.
19242 link_static_flag=$lt_lt_prog_compiler_static_CXX
19244 # Does compiler simultaneously support -c and -o options?
19245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19247 # Whether or not to add -lc for building shared libraries.
19248 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19250 # Whether or not to disallow shared libs when runtime libs are static.
19251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19253 # Compiler flag to allow reflexive dlopens.
19254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19256 # Compiler flag to generate shared objects directly from archives.
19257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19259 # Whether the compiler copes with passing no objects directly.
19260 compiler_needs_object=$lt_compiler_needs_object_CXX
19262 # Create an old-style archive from a shared archive.
19263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19265 # Create a temporary old-style archive to link instead of a shared archive.
19266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19268 # Commands used to build a shared archive.
19269 archive_cmds=$lt_archive_cmds_CXX
19270 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19272 # Commands used to build a loadable module if different from building
19273 # a shared archive.
19274 module_cmds=$lt_module_cmds_CXX
19275 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19277 # Whether we are building with GNU ld or not.
19278 with_gnu_ld=$lt_with_gnu_ld_CXX
19280 # Flag that allows shared libraries with undefined symbols to be built.
19281 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19283 # Flag that enforces no undefined symbols.
19284 no_undefined_flag=$lt_no_undefined_flag_CXX
19286 # Flag to hardcode \$libdir into a binary during linking.
19287 # This must work even if \$libdir does not exist
19288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19290 # Whether we need a single "-rpath" flag with a separated argument.
19291 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19293 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19294 # DIR into the resulting binary.
19295 hardcode_direct=$hardcode_direct_CXX
19297 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19298 # DIR into the resulting binary and the resulting library dependency is
19299 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19300 # library is relocated.
19301 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19303 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19304 # into the resulting binary.
19305 hardcode_minus_L=$hardcode_minus_L_CXX
19307 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19308 # into the resulting binary.
19309 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19311 # Set to "yes" if building a shared library automatically hardcodes DIR
19312 # into the library and all subsequent libraries and executables linked
19314 hardcode_automatic=$hardcode_automatic_CXX
19316 # Set to yes if linker adds runtime paths of dependent libraries
19317 # to runtime path list.
19318 inherit_rpath=$inherit_rpath_CXX
19320 # Whether libtool must link a program against all its dependency libraries.
19321 link_all_deplibs=$link_all_deplibs_CXX
19323 # Set to "yes" if exported symbols are required.
19324 always_export_symbols=$always_export_symbols_CXX
19326 # The commands to list exported symbols.
19327 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19329 # Symbols that should not be listed in the preloaded symbols.
19330 exclude_expsyms=$lt_exclude_expsyms_CXX
19332 # Symbols that must always be exported.
19333 include_expsyms=$lt_include_expsyms_CXX
19335 # Commands necessary for linking programs (against libraries) with templates.
19336 prelink_cmds=$lt_prelink_cmds_CXX
19338 # Commands necessary for finishing linking programs.
19339 postlink_cmds=$lt_postlink_cmds_CXX
19341 # Specify filename containing input files.
19342 file_list_spec=$lt_file_list_spec_CXX
19344 # How to hardcode a shared library path into an executable.
19345 hardcode_action=$hardcode_action_CXX
19347 # The directories searched by this compiler when creating a shared library.
19348 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19350 # Dependencies to place before and after the objects being linked to
19351 # create a shared library.
19352 predep_objects=$lt_predep_objects_CXX
19353 postdep_objects=$lt_postdep_objects_CXX
19354 predeps=$lt_predeps_CXX
19355 postdeps=$lt_postdeps_CXX
19357 # The library search path used internally by the compiler when linking
19358 # a shared library.
19359 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19361 # ### END LIBTOOL TAG CONFIG: CXX
19365 "run.sh":F) chmod +x run.sh ;;
19373 ac_clean_files=$ac_clean_files_save
19375 test $ac_write_fail = 0 ||
19376 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19379 # configure is writing to config.log, and then calls config.status.
19380 # config.status does its own redirection, appending to config.log.
19381 # Unfortunately, on DOS this fails, as config.log is still kept open
19382 # by configure, so config.status won't be able to write to it; its
19383 # output is simply discarded. So we exec the FD to /dev/null,
19384 # effectively closing config.log, so it can be properly (re)opened and
19385 # appended to by config.status. When coming back to configure, we
19386 # need to make the FD available again.
19387 if test "$no_create" != yes; then
19389 ac_config_status_args=
19390 test "$silent" = yes &&
19391 ac_config_status_args="$ac_config_status_args --quiet"
19393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19396 # would make configure fail if this is the last instruction.
19397 $ac_cs_success || as_fn_exit 1
19399 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19401 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19405 abs_srcdir="`cd $srcdir && pwd`"
19406 abs_builddir="`pwd`"
19407 if test "$abs_srcdir" != "$abs_builddir"; then