2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for expat 2.2.2.
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.2'
594 PACKAGE_STRING='expat 2.2.2'
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.2 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.2:";;
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.2
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.2, 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=4 # 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:
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11635 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11636 if ${ac_cv_prog_cc_c99+:} false; then :
11637 $as_echo_n "(cached) " >&6
11639 ac_cv_prog_cc_c99=no
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643 #include <stdarg.h>
11644 #include <stdbool.h>
11645 #include <stdlib.h>
11649 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11650 #define debug(...) fprintf (stderr, __VA_ARGS__)
11651 #define showlist(...) puts (#__VA_ARGS__)
11652 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11654 test_varargs_macros (void)
11659 debug ("X = %d\n", x);
11660 showlist (The first, second, and third items.);
11661 report (x>y, "x is %d but y is %d", x, y);
11664 // Check long long types.
11665 #define BIG64 18446744073709551615ull
11666 #define BIG32 4294967295ul
11667 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11669 your preprocessor is broken;
11673 your preprocessor is broken;
11675 static long long int bignum = -9223372036854775807LL;
11676 static unsigned long long int ubignum = BIG64;
11678 struct incomplete_array
11684 struct named_init {
11686 const wchar_t *name;
11690 typedef const char *ccp;
11693 test_restrict (ccp restrict text)
11695 // See if C++-style comments work.
11696 // Iterate through items via the restricted pointer.
11697 // Also check for declarations in for loops.
11698 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11703 // Check varargs and va_copy.
11705 test_varargs (const char *format, ...)
11708 va_start (args, format);
11710 va_copy (args_copy, args);
11720 case 's': // string
11721 str = va_arg (args_copy, const char *);
11724 number = va_arg (args_copy, int);
11727 fnumber = va_arg (args_copy, double);
11733 va_end (args_copy);
11742 _Bool success = false;
11745 if (test_restrict ("String literal") == 0)
11747 char *restrict newvar = "Another string";
11750 test_varargs ("s, d' f .", "string", 65, 34.234);
11751 test_varargs_macros ();
11753 // Check flexible array members.
11754 struct incomplete_array *ia =
11755 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11757 for (int i = 0; i < ia->datasize; ++i)
11758 ia->data[i] = i * 1.234;
11760 // Check named initializers.
11761 struct named_init ni = {
11763 .name = L"Test wide string",
11764 .average = 543.34343,
11769 int dynamic_array[ni.number];
11770 dynamic_array[ni.number - 1] = 543;
11772 // work around unused variable warnings
11773 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11774 || dynamic_array[ni.number - 1] != 543);
11780 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11782 CC="$ac_save_CC $ac_arg"
11783 if ac_fn_c_try_compile "$LINENO"; then :
11784 ac_cv_prog_cc_c99=$ac_arg
11786 rm -f core conftest.err conftest.$ac_objext
11787 test "x$ac_cv_prog_cc_c99" != "xno" && break
11789 rm -f conftest.$ac_ext
11794 case "x$ac_cv_prog_cc_c99" in
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11797 $as_echo "none needed" >&6; } ;;
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11800 $as_echo "unsupported" >&6; } ;;
11802 CC="$CC $ac_cv_prog_cc_c99"
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11804 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11806 if test "x$ac_cv_prog_cc_c99" != xno; then :
11812 ac_cpp='$CXXCPP $CPPFLAGS'
11813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11816 if test -z "$CXX"; then
11817 if test -n "$CCC"; then
11820 if test -n "$ac_tool_prefix"; then
11821 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826 $as_echo_n "checking for $ac_word... " >&6; }
11827 if ${ac_cv_prog_CXX+:} false; then :
11828 $as_echo_n "(cached) " >&6
11830 if test -n "$CXX"; then
11831 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11840 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 CXX=$ac_cv_prog_CXX
11851 if test -n "$CXX"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11853 $as_echo "$CXX" >&6; }
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11860 test -n "$CXX" && break
11863 if test -z "$CXX"; then
11865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11867 # Extract the first word of "$ac_prog", so it can be a program name with args.
11868 set dummy $ac_prog; ac_word=$2
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870 $as_echo_n "checking for $ac_word... " >&6; }
11871 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11872 $as_echo_n "(cached) " >&6
11874 if test -n "$ac_ct_CXX"; then
11875 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH
11881 test -z "$as_dir" && as_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
11883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11884 ac_cv_prog_ac_ct_CXX="$ac_prog"
11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11895 if test -n "$ac_ct_CXX"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11897 $as_echo "$ac_ct_CXX" >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11904 test -n "$ac_ct_CXX" && break
11907 if test "x$ac_ct_CXX" = x; then
11910 case $cross_compiling:$ac_tool_warned in
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11914 ac_tool_warned=yes ;;
11922 # Provide some information about the compiler.
11923 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11926 for ac_option in --version -v -V -qversion; do
11927 { { ac_try="$ac_compiler $ac_option >&5"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11933 $as_echo "$ac_try_echo"; } >&5
11934 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11936 if test -s conftest.err; then
11938 ... rest of stderr output deleted ...
11939 10q' conftest.err >conftest.er1
11940 cat conftest.er1 >&5
11942 rm -f conftest.er1 conftest.err
11943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11944 test $ac_status = 0; }
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11948 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11949 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11950 $as_echo_n "(cached) " >&6
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11966 if ac_fn_cxx_try_compile "$LINENO"; then :
11967 ac_compiler_gnu=yes
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11976 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11977 if test $ac_compiler_gnu = yes; then
11982 ac_test_CXXFLAGS=${CXXFLAGS+set}
11983 ac_save_CXXFLAGS=$CXXFLAGS
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11985 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11986 if ${ac_cv_prog_cxx_g+:} false; then :
11987 $as_echo_n "(cached) " >&6
11989 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11990 ac_cxx_werror_flag=yes
11991 ac_cv_prog_cxx_g=no
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
12004 if ac_fn_cxx_try_compile "$LINENO"; then :
12005 ac_cv_prog_cxx_g=yes
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12019 if ac_fn_cxx_try_compile "$LINENO"; then :
12022 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12035 if ac_fn_cxx_try_compile "$LINENO"; then :
12036 ac_cv_prog_cxx_g=yes
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12046 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12047 if test "$ac_test_CXXFLAGS" = set; then
12048 CXXFLAGS=$ac_save_CXXFLAGS
12049 elif test $ac_cv_prog_cxx_g = yes; then
12050 if test "$GXX" = yes; then
12056 if test "$GXX" = yes; then
12063 ac_cpp='$CPP $CPPFLAGS'
12064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12070 func_stripname_cnf ()
12073 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12074 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12076 } # func_stripname_cnf
12078 if test -n "$CXX" && ( test no != "$CXX" &&
12079 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12080 (test g++ != "$CXX"))); then
12082 ac_cpp='$CXXCPP $CPPFLAGS'
12083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12087 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12088 if test -z "$CXXCPP"; then
12089 if ${ac_cv_prog_CXXCPP+:} false; then :
12090 $as_echo_n "(cached) " >&6
12092 # Double quotes because CXXCPP needs to be expanded
12093 for CXXCPP in "$CXX -E" "/lib/cpp"
12095 ac_preproc_ok=false
12096 for ac_cxx_preproc_warn_flag in '' yes
12098 # Use a header file that comes with gcc, so configuring glibc
12099 # with a fresh cross-compiler works.
12100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12101 # <limits.h> exists even on freestanding compilers.
12102 # On the NeXT, cc -E runs the code through the compiler's parser,
12103 # not just through cpp. "Syntax error" is here to catch this case.
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12107 # include <limits.h>
12109 # include <assert.h>
12113 if ac_fn_cxx_try_cpp "$LINENO"; then :
12116 # Broken: fails on valid input.
12119 rm -f conftest.err conftest.i conftest.$ac_ext
12121 # OK, works on sane cases. Now check whether nonexistent headers
12122 # can be detected and how.
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #include <ac_nonexistent.h>
12127 if ac_fn_cxx_try_cpp "$LINENO"; then :
12128 # Broken: success on invalid input.
12131 # Passes both tests.
12135 rm -f conftest.err conftest.i conftest.$ac_ext
12138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12139 rm -f conftest.i conftest.err conftest.$ac_ext
12140 if $ac_preproc_ok; then :
12145 ac_cv_prog_CXXCPP=$CXXCPP
12148 CXXCPP=$ac_cv_prog_CXXCPP
12150 ac_cv_prog_CXXCPP=$CXXCPP
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12153 $as_echo "$CXXCPP" >&6; }
12154 ac_preproc_ok=false
12155 for ac_cxx_preproc_warn_flag in '' yes
12157 # Use a header file that comes with gcc, so configuring glibc
12158 # with a fresh cross-compiler works.
12159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12160 # <limits.h> exists even on freestanding compilers.
12161 # On the NeXT, cc -E runs the code through the compiler's parser,
12162 # not just through cpp. "Syntax error" is here to catch this case.
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12166 # include <limits.h>
12168 # include <assert.h>
12172 if ac_fn_cxx_try_cpp "$LINENO"; then :
12175 # Broken: fails on valid input.
12178 rm -f conftest.err conftest.i conftest.$ac_ext
12180 # OK, works on sane cases. Now check whether nonexistent headers
12181 # can be detected and how.
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12184 #include <ac_nonexistent.h>
12186 if ac_fn_cxx_try_cpp "$LINENO"; then :
12187 # Broken: success on invalid input.
12190 # Passes both tests.
12194 rm -f conftest.err conftest.i conftest.$ac_ext
12197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12198 rm -f conftest.i conftest.err conftest.$ac_ext
12199 if $ac_preproc_ok; then :
12202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12204 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12205 See \`config.log' for more details" "$LINENO" 5; }
12209 ac_cpp='$CPP $CPPFLAGS'
12210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12215 _lt_caught_CXX_error=yes
12219 ac_cpp='$CXXCPP $CPPFLAGS'
12220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12224 archive_cmds_need_lc_CXX=no
12225 allow_undefined_flag_CXX=
12226 always_export_symbols_CXX=no
12227 archive_expsym_cmds_CXX=
12228 compiler_needs_object_CXX=no
12229 export_dynamic_flag_spec_CXX=
12230 hardcode_direct_CXX=no
12231 hardcode_direct_absolute_CXX=no
12232 hardcode_libdir_flag_spec_CXX=
12233 hardcode_libdir_separator_CXX=
12234 hardcode_minus_L_CXX=no
12235 hardcode_shlibpath_var_CXX=unsupported
12236 hardcode_automatic_CXX=no
12237 inherit_rpath_CXX=no
12239 module_expsym_cmds_CXX=
12240 link_all_deplibs_CXX=unknown
12241 old_archive_cmds_CXX=$old_archive_cmds
12242 reload_flag_CXX=$reload_flag
12243 reload_cmds_CXX=$reload_cmds
12244 no_undefined_flag_CXX=
12245 whole_archive_flag_spec_CXX=
12246 enable_shared_with_static_runtimes_CXX=no
12248 # Source file extension for C++ test sources.
12251 # Object file extension for compiled C++ test sources.
12255 # No sense in running all these tests if we already determined that
12256 # the CXX compiler isn't working. Some variables (like enable_shared)
12257 # are currently assumed to apply to all compilers on this platform,
12258 # and will be corrupted by setting them based on a non-working compiler.
12259 if test yes != "$_lt_caught_CXX_error"; then
12260 # Code to be used in simple compile tests
12261 lt_simple_compile_test_code="int some_variable = 0;"
12263 # Code to be used in simple link tests
12264 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12266 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12273 # If no C compiler was specified, use CC.
12276 # If no C compiler flags were specified, use CFLAGS.
12277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12279 # Allow CC to be a program name with arguments.
12283 # save warnings/boilerplate of simple test code
12284 ac_outfile=conftest.$ac_objext
12285 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12286 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12287 _lt_compiler_boilerplate=`cat conftest.err`
12290 ac_outfile=conftest.$ac_objext
12291 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12292 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12293 _lt_linker_boilerplate=`cat conftest.err`
12297 # Allow CC to be a program name with arguments.
12299 lt_save_CFLAGS=$CFLAGS
12303 lt_save_with_gnu_ld=$with_gnu_ld
12304 lt_save_path_LD=$lt_cv_path_LD
12305 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12306 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12308 $as_unset lt_cv_prog_gnu_ld
12310 if test -n "${lt_cv_path_LDCXX+set}"; then
12311 lt_cv_path_LD=$lt_cv_path_LDCXX
12313 $as_unset lt_cv_path_LD
12315 test -z "${LDCXX+set}" || LD=$LDCXX
12320 func_cc_basename $compiler
12321 cc_basename=$func_cc_basename_result
12324 if test -n "$compiler"; then
12325 # We don't want -fno-exception when compiling C++ code, so set the
12326 # no_builtin_flag separately
12327 if test yes = "$GXX"; then
12328 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12330 lt_prog_compiler_no_builtin_flag_CXX=
12333 if test yes = "$GXX"; then
12334 # Set up default GNU C++ configuration
12338 # Check whether --with-gnu-ld was given.
12339 if test "${with_gnu_ld+set}" = set; then :
12340 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12346 if test yes = "$GCC"; then
12347 # Check if gcc -print-prog-name=ld gives a path.
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12349 $as_echo_n "checking for ld used by $CC... " >&6; }
12352 # gcc leaves a trailing carriage return, which upsets mingw
12353 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12355 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12358 # Accept absolute paths.
12360 re_direlt='/[^/][^/]*/\.\./'
12361 # Canonicalize the pathname of ld
12362 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12363 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12364 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12366 test -z "$LD" && LD=$ac_prog
12369 # If it fails, then pretend we aren't using GCC.
12373 # If it is relative, then search for the first ld in PATH.
12374 with_gnu_ld=unknown
12377 elif test yes = "$with_gnu_ld"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12379 $as_echo_n "checking for GNU ld... " >&6; }
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12382 $as_echo_n "checking for non-GNU ld... " >&6; }
12384 if ${lt_cv_path_LD+:} false; then :
12385 $as_echo_n "(cached) " >&6
12387 if test -z "$LD"; then
12388 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12389 for ac_dir in $PATH; do
12391 test -z "$ac_dir" && ac_dir=.
12392 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12393 lt_cv_path_LD=$ac_dir/$ac_prog
12394 # Check to see if the program is GNU ld. I'd rather use --version,
12395 # but apparently some variants of GNU ld only accept -v.
12396 # Break only if it was the GNU/non-GNU ld that we prefer.
12397 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12398 *GNU* | *'with BFD'*)
12399 test no != "$with_gnu_ld" && break
12402 test yes != "$with_gnu_ld" && break
12409 lt_cv_path_LD=$LD # Let the user override the test with a path.
12414 if test -n "$LD"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12416 $as_echo "$LD" >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12421 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12423 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12424 if ${lt_cv_prog_gnu_ld+:} false; then :
12425 $as_echo_n "(cached) " >&6
12427 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12428 case `$LD -v 2>&1 </dev/null` in
12429 *GNU* | *'with BFD'*)
12430 lt_cv_prog_gnu_ld=yes
12433 lt_cv_prog_gnu_ld=no
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12438 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12439 with_gnu_ld=$lt_cv_prog_gnu_ld
12447 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12448 # archiving commands below assume that GNU ld is being used.
12449 if test yes = "$with_gnu_ld"; then
12450 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12451 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'
12453 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12454 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12456 # If archive_cmds runs LD, not CC, wlarc should be empty
12457 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12458 # investigate it a little bit more. (MM)
12461 # ancient GNU ld didn't support --whole-archive et. al.
12462 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12463 $GREP 'no-whole-archive' > /dev/null; then
12464 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12466 whole_archive_flag_spec_CXX=
12472 # A generic and very simple default shared library creation
12473 # command for GNU C++ for the case where it uses the native
12474 # linker, instead of GNU ld. If possible, this setting should
12475 # overridden to take advantage of the native linker features on
12476 # the platform it is being used on.
12477 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12480 # Commands to make compiler produce verbose output that lists
12481 # what "hidden" libraries, object files and flags are used when
12482 # linking a shared library.
12483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12491 # PORTME: fill in a description of your system's C++ link characteristics
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12493 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12497 # FIXME: insert proper C++ library support
12501 if test ia64 = "$host_cpu"; then
12502 # On IA64, the linker does run time linking by default, so we don't
12503 # have to do anything special.
12504 aix_use_runtimelinking=no
12505 exp_sym_flag='-Bexport'
12508 aix_use_runtimelinking=no
12510 # Test if we are trying to use run time linking or normal
12511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12512 # have runtime linking enabled, and use it for executables.
12513 # For shared libraries, we enable/disable runtime linking
12514 # depending on the kind of the shared library created -
12515 # when "with_aix_soname,aix_use_runtimelinking" is:
12516 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12517 # "aix,yes" lib.so shared, rtl:yes, for executables
12518 # lib.a static archive
12519 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12520 # lib.a(lib.so.V) shared, rtl:no, for executables
12521 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12522 # lib.a(lib.so.V) shared, rtl:no
12523 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12524 # lib.a static archive
12525 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12526 for ld_flag in $LDFLAGS; do
12529 aix_use_runtimelinking=yes
12534 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12535 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12536 # so we don't have lib.a shared libs to link our executables.
12537 # We have to force runtime linking in this case.
12538 aix_use_runtimelinking=yes
12539 LDFLAGS="$LDFLAGS -Wl,-brtl"
12544 exp_sym_flag='-bexport'
12545 no_entry_flag='-bnoentry'
12548 # When large executables or shared objects are built, AIX ld can
12549 # have problems creating the table of contents. If linking a library
12550 # or program results in "error TOC overflow" add -mminimal-toc to
12551 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12552 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12554 archive_cmds_CXX=''
12555 hardcode_direct_CXX=yes
12556 hardcode_direct_absolute_CXX=yes
12557 hardcode_libdir_separator_CXX=':'
12558 link_all_deplibs_CXX=yes
12559 file_list_spec_CXX='$wl-f,'
12560 case $with_aix_soname,$aix_use_runtimelinking in
12561 aix,*) ;; # no import file
12562 svr4,* | *,yes) # use import file
12563 # The Import File defines what to hardcode.
12564 hardcode_direct_CXX=no
12565 hardcode_direct_absolute_CXX=no
12569 if test yes = "$GXX"; then
12570 case $host_os in aix4.[012]|aix4.[012].*)
12571 # We only want to do this on AIX 4.2 and lower, the check
12572 # below for broken collect2 doesn't work under 4.3+
12573 collect2name=`$CC -print-prog-name=collect2`
12574 if test -f "$collect2name" &&
12575 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12577 # We have reworked collect2
12580 # We have old collect2
12581 hardcode_direct_CXX=unsupported
12582 # It fails to find uninstalled libraries when the uninstalled
12583 # path is not listed in the libpath. Setting hardcode_minus_L
12584 # to unsupported forces relinking
12585 hardcode_minus_L_CXX=yes
12586 hardcode_libdir_flag_spec_CXX='-L$libdir'
12587 hardcode_libdir_separator_CXX=
12590 shared_flag='-shared'
12591 if test yes = "$aix_use_runtimelinking"; then
12592 shared_flag=$shared_flag' $wl-G'
12594 # Need to ensure runtime linking is disabled for the traditional
12595 # shared library, or the linker may eventually find shared libraries
12596 # /with/ Import File - we do not want to mix them.
12597 shared_flag_aix='-shared'
12598 shared_flag_svr4='-shared $wl-G'
12601 if test ia64 = "$host_cpu"; then
12602 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12603 # chokes on -Wl,-G. The following line is correct:
12606 if test yes = "$aix_use_runtimelinking"; then
12607 shared_flag='$wl-G'
12609 shared_flag='$wl-bM:SRE'
12611 shared_flag_aix='$wl-bM:SRE'
12612 shared_flag_svr4='$wl-G'
12616 export_dynamic_flag_spec_CXX='$wl-bexpall'
12617 # It seems that -bexpall does not export symbols beginning with
12618 # underscore (_), so it is better to generate a list of symbols to
12620 always_export_symbols_CXX=yes
12621 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12622 # Warning - without using the other runtime loading flags (-brtl),
12623 # -berok will link without error, but may produce a broken library.
12624 # The "-G" linker flag allows undefined symbols.
12625 no_undefined_flag_CXX='-bernotok'
12626 # Determine the default libpath from the value encoded in an empty
12628 if test set = "${lt_cv_aix_libpath+set}"; then
12629 aix_libpath=$lt_cv_aix_libpath
12631 if ${lt_cv_aix_libpath__CXX+:} false; then :
12632 $as_echo_n "(cached) " >&6
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12645 if ac_fn_cxx_try_link "$LINENO"; then :
12647 lt_aix_libpath_sed='
12648 /Import File Strings/,/^$/ {
12650 s/^0 *\([^ ]*\) *$/\1/
12654 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12655 # Check for a 64-bit object if we didn't find anything.
12656 if test -z "$lt_cv_aix_libpath__CXX"; then
12657 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12660 rm -f core conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12662 if test -z "$lt_cv_aix_libpath__CXX"; then
12663 lt_cv_aix_libpath__CXX=/usr/lib:/lib
12668 aix_libpath=$lt_cv_aix_libpath__CXX
12671 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
12673 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
12675 if test ia64 = "$host_cpu"; then
12676 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
12677 allow_undefined_flag_CXX="-z nodefs"
12678 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"
12680 # Determine the default libpath from the value encoded in an
12681 # empty executable.
12682 if test set = "${lt_cv_aix_libpath+set}"; then
12683 aix_libpath=$lt_cv_aix_libpath
12685 if ${lt_cv_aix_libpath__CXX+:} false; then :
12686 $as_echo_n "(cached) " >&6
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12699 if ac_fn_cxx_try_link "$LINENO"; then :
12701 lt_aix_libpath_sed='
12702 /Import File Strings/,/^$/ {
12704 s/^0 *\([^ ]*\) *$/\1/
12708 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12709 # Check for a 64-bit object if we didn't find anything.
12710 if test -z "$lt_cv_aix_libpath__CXX"; then
12711 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12714 rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext conftest.$ac_ext
12716 if test -z "$lt_cv_aix_libpath__CXX"; then
12717 lt_cv_aix_libpath__CXX=/usr/lib:/lib
12722 aix_libpath=$lt_cv_aix_libpath__CXX
12725 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
12726 # Warning - without using the other run time loading flags,
12727 # -berok will link without error, but may produce a broken library.
12728 no_undefined_flag_CXX=' $wl-bernotok'
12729 allow_undefined_flag_CXX=' $wl-berok'
12730 if test yes = "$with_gnu_ld"; then
12731 # We only use this code for GNU lds that support --whole-archive.
12732 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
12734 # Exported symbols can be pulled into shared objects from archives
12735 whole_archive_flag_spec_CXX='$convenience'
12737 archive_cmds_need_lc_CXX=yes
12738 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12739 # -brtl affects multiple linker settings, -berok does not and is overridden later
12740 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12741 if test svr4 != "$with_aix_soname"; then
12742 # This is similar to how AIX traditionally builds its shared
12743 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
12744 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'
12746 if test aix != "$with_aix_soname"; then
12747 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'
12749 # used by -dlpreopen to get the symbols
12750 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12752 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
12758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12759 allow_undefined_flag_CXX=unsupported
12760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12761 # support --undefined. This deserves some investigation. FIXME
12762 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12769 case $cc_basename in
12771 # FIXME: insert proper C++ library support
12777 cygwin* | mingw* | pw32* | cegcc*)
12778 case $GXX,$cc_basename in
12781 # hardcode_libdir_flag_spec is actually meaningless, as there is
12782 # no search path for DLLs.
12783 hardcode_libdir_flag_spec_CXX=' '
12784 allow_undefined_flag_CXX=unsupported
12785 always_export_symbols_CXX=yes
12786 file_list_spec_CXX='@'
12787 # Tell ltmain to make .lib files, not .a files.
12789 # Tell ltmain to make .dll files, not .so files.
12791 # FIXME: Setting linknames here is a bad hack.
12792 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12793 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12794 cp "$export_symbols" "$output_objdir/$soname.def";
12795 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12797 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12799 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12801 # The linker will not automatically build a static lib if we build a DLL.
12802 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12803 enable_shared_with_static_runtimes_CXX=yes
12805 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12806 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12807 lt_tool_outputfile="@TOOL_OUTPUT@"~
12808 case $lt_outputfile in
12811 lt_outputfile=$lt_outputfile.exe
12812 lt_tool_outputfile=$lt_tool_outputfile.exe
12815 func_to_tool_file "$lt_outputfile"~
12816 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12817 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12818 $RM "$lt_outputfile.manifest";
12823 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12824 # as there is no search path for DLLs.
12825 hardcode_libdir_flag_spec_CXX='-L$libdir'
12826 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
12827 allow_undefined_flag_CXX=unsupported
12828 always_export_symbols_CXX=no
12829 enable_shared_with_static_runtimes_CXX=yes
12831 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12832 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'
12833 # If the export-symbols file already is a .def file, use it as
12834 # is; otherwise, prepend EXPORTS...
12835 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12836 cp $export_symbols $output_objdir/$soname.def;
12838 echo EXPORTS > $output_objdir/$soname.def;
12839 cat $export_symbols >> $output_objdir/$soname.def;
12841 $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'
12848 darwin* | rhapsody*)
12851 archive_cmds_need_lc_CXX=no
12852 hardcode_direct_CXX=no
12853 hardcode_automatic_CXX=yes
12854 hardcode_shlibpath_var_CXX=unsupported
12855 if test yes = "$lt_cv_ld_force_load"; then
12856 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\"`'
12859 whole_archive_flag_spec_CXX=''
12861 link_all_deplibs_CXX=yes
12862 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
12863 case $cc_basename in
12864 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12865 *) _lt_dar_can_shared=$GCC ;;
12867 if test yes = "$_lt_dar_can_shared"; then
12868 output_verbose_link_cmd=func_echo_all
12869 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"
12870 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12871 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"
12872 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"
12873 if test yes != "$lt_cv_apple_cc_single_mod"; then
12874 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"
12875 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"
12885 hardcode_libdir_flag_spec_CXX='-L$libdir'
12886 hardcode_minus_L_CXX=yes
12887 allow_undefined_flag_CXX=unsupported
12889 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12890 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12891 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12892 $ECHO EXPORTS >> $output_objdir/$libname.def~
12893 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12894 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12895 emximp -o $lib $output_objdir/$libname.def'
12896 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12897 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12898 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12899 $ECHO EXPORTS >> $output_objdir/$libname.def~
12900 prefix_cmds="$SED"~
12901 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12902 prefix_cmds="$prefix_cmds -e 1d";
12904 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12905 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12906 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12907 emximp -o $lib $output_objdir/$libname.def'
12908 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12909 enable_shared_with_static_runtimes_CXX=yes
12913 case $cc_basename in
12915 # FIXME: insert proper C++ library support
12919 # Green Hills C++ Compiler
12920 # FIXME: insert proper C++ library support
12924 # FIXME: insert proper C++ library support
12931 # C++ shared libraries reported to be fairly broken before
12937 archive_cmds_need_lc_CXX=no
12940 freebsd* | dragonfly*)
12941 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12947 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12948 link_all_deplibs_CXX=yes
12952 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
12953 hardcode_libdir_separator_CXX=:
12954 export_dynamic_flag_spec_CXX='$wl-E'
12955 hardcode_direct_CXX=yes
12956 hardcode_minus_L_CXX=yes # Not in the search PATH,
12957 # but as the default
12958 # location of the library.
12960 case $cc_basename in
12962 # FIXME: insert proper C++ library support
12966 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'
12967 # Commands to make compiler produce verbose output that lists
12968 # what "hidden" libraries, object files and flags are used when
12969 # linking a shared library.
12971 # There doesn't appear to be a way to prevent this compiler from
12972 # explicitly linking system object files so we need to strip them
12973 # from the output so that they don't get included in the library
12975 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"'
12978 if test yes = "$GXX"; then
12979 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'
12981 # FIXME: insert proper C++ library support
12989 if test no = "$with_gnu_ld"; then
12990 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
12991 hardcode_libdir_separator_CXX=:
12997 export_dynamic_flag_spec_CXX='$wl-E'
13003 hardcode_direct_CXX=no
13004 hardcode_shlibpath_var_CXX=no
13007 hardcode_direct_CXX=yes
13008 hardcode_direct_absolute_CXX=yes
13009 hardcode_minus_L_CXX=yes # Not in the search PATH,
13010 # but as the default
13011 # location of the library.
13015 case $cc_basename in
13017 # FIXME: insert proper C++ library support
13023 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13026 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13029 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032 # Commands to make compiler produce verbose output that lists
13033 # what "hidden" libraries, object files and flags are used when
13034 # linking a shared library.
13036 # There doesn't appear to be a way to prevent this compiler from
13037 # explicitly linking system object files so we need to strip them
13038 # from the output so that they don't get included in the library
13040 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"'
13043 if test yes = "$GXX"; then
13044 if test no = "$with_gnu_ld"; then
13047 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13050 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053 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'
13058 # FIXME: insert proper C++ library support
13066 hardcode_direct_CXX=no
13067 hardcode_shlibpath_var_CXX=no
13068 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13069 export_dynamic_flag_spec_CXX='$wl-E'
13070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13071 # Instead, shared libraries are loaded at an image base (0x10000000 by
13072 # default) and relocated if they conflict, which is a slow very memory
13073 # consuming and fragmenting process. To avoid this, we pick a random,
13074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13075 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13076 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'
13077 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'
13080 case $cc_basename in
13083 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'
13085 # Archives containing C++ object files must be created using
13086 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13087 # necessary to make sure instantiated templates are included
13089 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13092 if test yes = "$GXX"; then
13093 if test no = "$with_gnu_ld"; then
13094 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'
13096 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'
13099 link_all_deplibs_CXX=yes
13102 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13103 hardcode_libdir_separator_CXX=:
13104 inherit_rpath_CXX=yes
13107 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13108 case $cc_basename in
13110 # Kuck and Associates, Inc. (KAI) C++ Compiler
13112 # KCC will only create a shared library if the output file
13113 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13114 # to its proper name (with version) after linking.
13115 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'
13116 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'
13117 # Commands to make compiler produce verbose output that lists
13118 # what "hidden" libraries, object files and flags are used when
13119 # linking a shared library.
13121 # There doesn't appear to be a way to prevent this compiler from
13122 # explicitly linking system object files so we need to strip them
13123 # from the output so that they don't get included in the library
13125 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"'
13127 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13128 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13130 # Archives containing C++ object files must be created using
13131 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13132 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13137 # version 8.0 and above of icpc choke on multiply defined symbols
13138 # if we add $predep_objects and $postdep_objects, however 7.1 and
13139 # earlier do not add the objects themselves.
13140 case `$CC -V 2>&1` in
13142 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13143 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'
13145 *) # Version 8.0 or newer
13148 ia64*) tmp_idyn=' -i_dynamic';;
13150 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13151 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'
13154 archive_cmds_need_lc_CXX=no
13155 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13156 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13157 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13160 # Portland Group C++ compiler
13162 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13163 prelink_cmds_CXX='tpldir=Template.dir~
13165 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13166 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13167 old_archive_cmds_CXX='tpldir=Template.dir~
13169 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13170 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13172 archive_cmds_CXX='tpldir=Template.dir~
13174 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13175 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13176 archive_expsym_cmds_CXX='tpldir=Template.dir~
13178 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13179 $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'
13181 *) # Version 6 and above use weak symbols
13182 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13183 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'
13187 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13188 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13189 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'
13193 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13194 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'
13196 runpath_var=LD_RUN_PATH
13197 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13198 hardcode_libdir_separator_CXX=:
13200 # Commands to make compiler produce verbose output that lists
13201 # what "hidden" libraries, object files and flags are used when
13202 # linking a shared library.
13204 # There doesn't appear to be a way to prevent this compiler from
13205 # explicitly linking system object files so we need to strip them
13206 # from the output so that they don't get included in the library
13208 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'
13210 xl* | mpixl* | bgxl*)
13211 # IBM XL 8.0 on PPC, with GNU ld
13212 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13213 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13214 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13215 if test yes = "$supports_anon_versioning"; then
13216 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13218 echo "local: *; };" >> $output_objdir/$libname.ver~
13219 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13223 case `$CC -V 2>&1 | sed 5q` in
13226 no_undefined_flag_CXX=' -zdefs'
13227 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13228 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'
13229 hardcode_libdir_flag_spec_CXX='-R$libdir'
13230 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'
13231 compiler_needs_object_CXX=yes
13233 # Not sure whether something based on
13234 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13236 output_verbose_link_cmd='func_echo_all'
13238 # Archives containing C++ object files must be created using
13239 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13240 # necessary to make sure instantiated templates are included
13242 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13250 # FIXME: insert proper C++ library support
13255 # FIXME: insert proper C++ library support
13260 case $cc_basename in
13262 # FIXME: insert proper C++ library support
13266 # FIXME: insert proper C++ library support
13273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13274 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13276 hardcode_libdir_flag_spec_CXX='-R$libdir'
13277 hardcode_direct_CXX=yes
13278 hardcode_shlibpath_var_CXX=no
13280 # Workaround some broken pre-1.5 toolchains
13281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13288 openbsd* | bitrig*)
13289 if test -f /usr/libexec/ld.so; then
13290 hardcode_direct_CXX=yes
13291 hardcode_shlibpath_var_CXX=no
13292 hardcode_direct_absolute_CXX=yes
13293 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13294 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13296 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13297 export_dynamic_flag_spec_CXX='$wl-E'
13298 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13300 output_verbose_link_cmd=func_echo_all
13306 osf3* | osf4* | osf5*)
13307 case $cc_basename in
13309 # Kuck and Associates, Inc. (KAI) C++ Compiler
13311 # KCC will only create a shared library if the output file
13312 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13313 # to its proper name (with version) after linking.
13314 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'
13316 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13317 hardcode_libdir_separator_CXX=:
13319 # Archives containing C++ object files must be created using
13320 # the KAI C++ compiler.
13322 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13323 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13327 # Rational C++ 2.4.1
13328 # FIXME: insert proper C++ library support
13334 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13335 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'
13336 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13339 allow_undefined_flag_CXX=' -expect_unresolved \*'
13340 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'
13341 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13342 echo "-hidden">> $lib.exp~
13343 $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~
13345 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13349 hardcode_libdir_separator_CXX=:
13351 # Commands to make compiler produce verbose output that lists
13352 # what "hidden" libraries, object files and flags are used when
13353 # linking a shared library.
13355 # There doesn't appear to be a way to prevent this compiler from
13356 # explicitly linking system object files so we need to strip them
13357 # from the output so that they don't get included in the library
13359 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"'
13362 if test yes,no = "$GXX,$with_gnu_ld"; then
13363 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13366 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'
13369 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'
13373 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13374 hardcode_libdir_separator_CXX=:
13376 # Commands to make compiler produce verbose output that lists
13377 # what "hidden" libraries, object files and flags are used when
13378 # linking a shared library.
13379 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13382 # FIXME: insert proper C++ library support
13390 # FIXME: insert proper C++ library support
13395 case $cc_basename in
13398 # FIXME: insert proper C++ library support
13403 # FIXME: insert proper C++ library support
13407 # FIXME: insert proper C++ library support
13414 case $cc_basename in
13416 # Sun C++ 4.2, 5.x and Centerline C++
13417 archive_cmds_need_lc_CXX=yes
13418 no_undefined_flag_CXX=' -zdefs'
13419 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13420 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13421 $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'
13423 hardcode_libdir_flag_spec_CXX='-R$libdir'
13424 hardcode_shlibpath_var_CXX=no
13426 solaris2.[0-5] | solaris2.[0-5].*) ;;
13428 # The compiler driver will combine and reorder linker options,
13429 # but understands '-z linker_flag'.
13430 # Supported since Solaris 2.6 (maybe 2.5.1?)
13431 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13434 link_all_deplibs_CXX=yes
13436 output_verbose_link_cmd='func_echo_all'
13438 # Archives containing C++ object files must be created using
13439 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13440 # necessary to make sure instantiated templates are included
13442 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13445 # Green Hills C++ Compiler
13446 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13448 # The C++ compiler must be used to create the archive.
13449 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13452 # GNU C++ compiler with Solaris linker
13453 if test yes,no = "$GXX,$with_gnu_ld"; then
13454 no_undefined_flag_CXX=' $wl-z ${wl}defs'
13455 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13456 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13457 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13458 $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'
13460 # Commands to make compiler produce verbose output that lists
13461 # what "hidden" libraries, object files and flags are used when
13462 # linking a shared library.
13463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13465 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13467 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13468 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13469 $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'
13471 # Commands to make compiler produce verbose output that lists
13472 # what "hidden" libraries, object files and flags are used when
13473 # linking a shared library.
13474 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13477 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13479 solaris2.[0-5] | solaris2.[0-5].*) ;;
13481 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13490 no_undefined_flag_CXX='$wl-z,text'
13491 archive_cmds_need_lc_CXX=no
13492 hardcode_shlibpath_var_CXX=no
13493 runpath_var='LD_RUN_PATH'
13495 case $cc_basename in
13497 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13498 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13507 sysv5* | sco3.2v5* | sco5v6*)
13508 # Note: We CANNOT use -z defs as we might desire, because we do not
13509 # link with -lc, and that would cause any symbols used from libc to
13510 # always be unresolved, which means just about no library would
13511 # ever link correctly. If we're not using GNU ld we use -z text
13512 # though, which does catch some bad symbols but isn't as heavy-handed
13514 no_undefined_flag_CXX='$wl-z,text'
13515 allow_undefined_flag_CXX='$wl-z,nodefs'
13516 archive_cmds_need_lc_CXX=no
13517 hardcode_shlibpath_var_CXX=no
13518 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13519 hardcode_libdir_separator_CXX=':'
13520 link_all_deplibs_CXX=yes
13521 export_dynamic_flag_spec_CXX='$wl-Bexport'
13522 runpath_var='LD_RUN_PATH'
13524 case $cc_basename in
13526 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13528 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13529 '"$old_archive_cmds_CXX"
13530 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13531 '"$reload_cmds_CXX"
13534 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13535 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13541 case $cc_basename in
13543 # NonStop-UX NCC 3.20
13544 # FIXME: insert proper C++ library support
13548 # FIXME: insert proper C++ library support
13555 # FIXME: insert proper C++ library support
13560 # FIXME: insert proper C++ library support
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13566 $as_echo "$ld_shlibs_CXX" >&6; }
13567 test no = "$ld_shlibs_CXX" && can_build_shared=no
13573 ## There is no encapsulation within the following macros, do not change
13574 ## the running order or otherwise move them around unless you know exactly
13575 ## what you are doing...
13576 # Dependencies to place before and after the object being linked:
13577 predep_objects_CXX=
13578 postdep_objects_CXX=
13581 compiler_lib_search_path_CXX=
13583 cat > conftest.$ac_ext <<_LT_EOF
13587 Foo (void) { a = 0; }
13594 _lt_libdeps_save_CFLAGS=$CFLAGS
13595 case "$CC $CFLAGS " in #(
13596 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13597 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13598 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13602 (eval $ac_compile) 2>&5
13604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605 test $ac_status = 0; }; then
13606 # Parse the compiler output and extract the necessary
13607 # objects, libraries and library flags.
13609 # Sentinel used to keep track of whether or not we are before
13610 # the conftest object file.
13611 pre_test_object_deps_done=no
13613 for p in `eval "$output_verbose_link_cmd"`; do
13617 # Some compilers place space between "-{L,R}" and the path.
13618 # Remove the space.
13619 if test x-L = "$p" ||
13620 test x-R = "$p"; then
13625 # Expand the sysroot to ease extracting the directories later.
13626 if test -z "$prev"; then
13628 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13629 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13630 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13634 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13636 if test no = "$pre_test_object_deps_done"; then
13639 # Internal compiler library paths should come after those
13640 # provided the user. The postdeps already come after the
13641 # user supplied libs so there is no need to process them.
13642 if test -z "$compiler_lib_search_path_CXX"; then
13643 compiler_lib_search_path_CXX=$prev$p
13645 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
13648 # The "-l" case would never come before the object being
13649 # linked, so don't bother handling this case.
13652 if test -z "$postdeps_CXX"; then
13653 postdeps_CXX=$prev$p
13655 postdeps_CXX="${postdeps_CXX} $prev$p"
13661 *.lto.$objext) ;; # Ignore GCC LTO objects
13663 # This assumes that the test object file only shows up
13664 # once in the compiler output.
13665 if test "$p" = "conftest.$objext"; then
13666 pre_test_object_deps_done=yes
13670 if test no = "$pre_test_object_deps_done"; then
13671 if test -z "$predep_objects_CXX"; then
13672 predep_objects_CXX=$p
13674 predep_objects_CXX="$predep_objects_CXX $p"
13677 if test -z "$postdep_objects_CXX"; then
13678 postdep_objects_CXX=$p
13680 postdep_objects_CXX="$postdep_objects_CXX $p"
13685 *) ;; # Ignore the rest.
13693 echo "libtool.m4: error: problem compiling CXX test program"
13696 $RM -f confest.$objext
13697 CFLAGS=$_lt_libdeps_save_CFLAGS
13699 # PORTME: override above test on systems where it is broken
13702 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13703 # hack all around it, let's just trust "g++" to DTRT.
13704 predep_objects_CXX=
13705 postdep_objects_CXX=
13711 case " $postdeps_CXX " in
13712 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13714 compiler_lib_search_dirs_CXX=
13715 if test -n "${compiler_lib_search_path_CXX}"; then
13716 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
13749 lt_prog_compiler_wl_CXX=
13750 lt_prog_compiler_pic_CXX=
13751 lt_prog_compiler_static_CXX=
13754 # C++ specific cases for pic, static, wl, etc.
13755 if test yes = "$GXX"; then
13756 lt_prog_compiler_wl_CXX='-Wl,'
13757 lt_prog_compiler_static_CXX='-static'
13761 # All AIX code is PIC.
13762 if test ia64 = "$host_cpu"; then
13763 # AIX 5 now supports IA64 processor
13764 lt_prog_compiler_static_CXX='-Bstatic'
13766 lt_prog_compiler_pic_CXX='-fPIC'
13772 # see comment about AmigaOS4 .so support
13773 lt_prog_compiler_pic_CXX='-fPIC'
13776 # FIXME: we need at least 68020 code to build shared libraries, but
13777 # adding the '-m68020' flag to GCC prevents building anything better,
13779 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13784 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13785 # PIC is the default for these OSes.
13787 mingw* | cygwin* | os2* | pw32* | cegcc*)
13788 # This hack is so that the source file can tell whether it is being
13789 # built for inclusion in a dll (and should export symbols for example).
13790 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13791 # (--disable-auto-import) libraries
13792 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13795 lt_prog_compiler_static_CXX='$wl-static'
13799 darwin* | rhapsody*)
13800 # PIC is the default on this platform
13801 # Common symbols not allowed in MH_DYLIB files
13802 lt_prog_compiler_pic_CXX='-fno-common'
13805 # DJGPP does not support shared libraries at all
13806 lt_prog_compiler_pic_CXX=
13809 # PIC is the default for Haiku.
13810 # The "-static" flag exists, but is broken.
13811 lt_prog_compiler_static_CXX=
13814 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13815 # Instead, we relocate shared libraries at runtime.
13818 if test -d /usr/nec; then
13819 lt_prog_compiler_pic_CXX=-Kconform_pic
13823 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13824 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13825 # sets the default TLS model and affects inlining.
13830 lt_prog_compiler_pic_CXX='-fPIC'
13835 # QNX uses GNU C++, but need to define -shared option too, otherwise
13836 # it will coredump.
13837 lt_prog_compiler_pic_CXX='-fPIC -shared'
13840 lt_prog_compiler_pic_CXX='-fPIC'
13846 # All AIX code is PIC.
13847 if test ia64 = "$host_cpu"; then
13848 # AIX 5 now supports IA64 processor
13849 lt_prog_compiler_static_CXX='-Bstatic'
13851 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13855 case $cc_basename in
13857 # Green Hills C++ Compiler
13858 # _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"
13862 mingw* | cygwin* | os2* | pw32* | cegcc*)
13863 # This hack is so that the source file can tell whether it is being
13864 # built for inclusion in a dll (and should export symbols for example).
13865 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13868 case $cc_basename in
13870 lt_prog_compiler_pic_CXX='-KPIC'
13873 # Green Hills C++ Compiler
13874 lt_prog_compiler_pic_CXX='-pic'
13880 freebsd* | dragonfly*)
13881 # FreeBSD uses GNU C++
13883 hpux9* | hpux10* | hpux11*)
13884 case $cc_basename in
13886 lt_prog_compiler_wl_CXX='-Wl,'
13887 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
13888 if test ia64 != "$host_cpu"; then
13889 lt_prog_compiler_pic_CXX='+Z'
13893 lt_prog_compiler_wl_CXX='-Wl,'
13894 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
13900 lt_prog_compiler_pic_CXX='+Z'
13909 # This is c89, which is MS Visual C++ (no shared libs)
13910 # Anyone wants to do a port?
13912 irix5* | irix6* | nonstopux*)
13913 case $cc_basename in
13915 lt_prog_compiler_wl_CXX='-Wl,'
13916 lt_prog_compiler_static_CXX='-non_shared'
13917 # CC pic flag -KPIC is the default.
13923 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13924 case $cc_basename in
13927 lt_prog_compiler_wl_CXX='--backend -Wl,'
13928 lt_prog_compiler_pic_CXX='-fPIC'
13931 # old Intel C++ for x86_64, which still supported -KPIC.
13932 lt_prog_compiler_wl_CXX='-Wl,'
13933 lt_prog_compiler_pic_CXX='-KPIC'
13934 lt_prog_compiler_static_CXX='-static'
13937 # Intel C++, used to be incompatible with GCC.
13938 # ICC 10 doesn't accept -KPIC any more.
13939 lt_prog_compiler_wl_CXX='-Wl,'
13940 lt_prog_compiler_pic_CXX='-fPIC'
13941 lt_prog_compiler_static_CXX='-static'
13944 # Portland Group C++ compiler
13945 lt_prog_compiler_wl_CXX='-Wl,'
13946 lt_prog_compiler_pic_CXX='-fpic'
13947 lt_prog_compiler_static_CXX='-Bstatic'
13951 # Make sure the PIC flag is empty. It appears that all Alpha
13952 # Linux and Compaq Tru64 Unix objects are PIC.
13953 lt_prog_compiler_pic_CXX=
13954 lt_prog_compiler_static_CXX='-non_shared'
13956 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13957 # IBM XL 8.0, 9.0 on PPC and BlueGene
13958 lt_prog_compiler_wl_CXX='-Wl,'
13959 lt_prog_compiler_pic_CXX='-qpic'
13960 lt_prog_compiler_static_CXX='-qstaticlink'
13963 case `$CC -V 2>&1 | sed 5q` in
13966 lt_prog_compiler_pic_CXX='-KPIC'
13967 lt_prog_compiler_static_CXX='-Bstatic'
13968 lt_prog_compiler_wl_CXX='-Qoption ld '
13979 case $cc_basename in
13981 lt_prog_compiler_pic_CXX='-W c,exportall'
13990 # QNX uses GNU C++, but need to define -shared option too, otherwise
13991 # it will coredump.
13992 lt_prog_compiler_pic_CXX='-fPIC -shared'
13994 osf3* | osf4* | osf5*)
13995 case $cc_basename in
13997 lt_prog_compiler_wl_CXX='--backend -Wl,'
14000 # Rational C++ 2.4.1
14001 lt_prog_compiler_pic_CXX='-pic'
14004 # Digital/Compaq C++
14005 lt_prog_compiler_wl_CXX='-Wl,'
14006 # Make sure the PIC flag is empty. It appears that all Alpha
14007 # Linux and Compaq Tru64 Unix objects are PIC.
14008 lt_prog_compiler_pic_CXX=
14009 lt_prog_compiler_static_CXX='-non_shared'
14018 case $cc_basename in
14020 # Sun C++ 4.2, 5.x and Centerline C++
14021 lt_prog_compiler_pic_CXX='-KPIC'
14022 lt_prog_compiler_static_CXX='-Bstatic'
14023 lt_prog_compiler_wl_CXX='-Qoption ld '
14026 # Green Hills C++ Compiler
14027 lt_prog_compiler_pic_CXX='-PIC'
14034 case $cc_basename in
14037 lt_prog_compiler_pic_CXX='-pic'
14038 lt_prog_compiler_static_CXX='-Bstatic'
14042 lt_prog_compiler_pic_CXX='-pic'
14048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14049 case $cc_basename in
14051 lt_prog_compiler_wl_CXX='-Wl,'
14052 lt_prog_compiler_pic_CXX='-KPIC'
14053 lt_prog_compiler_static_CXX='-Bstatic'
14058 case $cc_basename in
14060 # NonStop-UX NCC 3.20
14061 lt_prog_compiler_pic_CXX='-KPIC'
14070 lt_prog_compiler_can_build_shared_CXX=no
14076 # For platforms that do not support PIC, -DPIC is meaningless:
14078 lt_prog_compiler_pic_CXX=
14081 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14086 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14087 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14088 $as_echo_n "(cached) " >&6
14090 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14093 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14094 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14097 # Check to make sure the PIC flag actually works.
14099 if test -n "$lt_prog_compiler_pic_CXX"; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14101 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14102 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14103 $as_echo_n "(cached) " >&6
14105 lt_cv_prog_compiler_pic_works_CXX=no
14106 ac_outfile=conftest.$ac_objext
14107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14108 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14109 # Insert the option either (1) after the last *FLAGS variable, or
14110 # (2) before a word containing "conftest.", or (3) at the end.
14111 # Note that $ac_compile itself does not contain backslashes and begins
14112 # with a dollar sign (not a hyphen), so the echo should work correctly.
14113 # The option is referenced via a variable to avoid confusing sed.
14114 lt_compile=`echo "$ac_compile" | $SED \
14115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14117 -e 's:$: $lt_compiler_flag:'`
14118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14119 (eval "$lt_compile" 2>conftest.err)
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 if (exit $ac_status) && test -s "$ac_outfile"; then
14124 # The compiler can only warn and ignore the option if not recognized
14125 # So say no if there are warnings other than the usual output.
14126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14129 lt_cv_prog_compiler_pic_works_CXX=yes
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14136 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14138 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14139 case $lt_prog_compiler_pic_CXX in
14141 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14144 lt_prog_compiler_pic_CXX=
14145 lt_prog_compiler_can_build_shared_CXX=no
14155 # Check to make sure the static flag actually works.
14157 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14159 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14160 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14161 $as_echo_n "(cached) " >&6
14163 lt_cv_prog_compiler_static_works_CXX=no
14164 save_LDFLAGS=$LDFLAGS
14165 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14166 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14167 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14168 # The linker can only warn and ignore the option if not recognized
14169 # So say no if there are warnings
14170 if test -s conftest.err; then
14171 # Append any errors to the config.log.
14172 cat conftest.err 1>&5
14173 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14175 if diff conftest.exp conftest.er2 >/dev/null; then
14176 lt_cv_prog_compiler_static_works_CXX=yes
14179 lt_cv_prog_compiler_static_works_CXX=yes
14183 LDFLAGS=$save_LDFLAGS
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14187 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14189 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14192 lt_prog_compiler_static_CXX=
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14199 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14200 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14201 $as_echo_n "(cached) " >&6
14203 lt_cv_prog_compiler_c_o_CXX=no
14204 $RM -r conftest 2>/dev/null
14208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14210 lt_compiler_flag="-o out/conftest2.$ac_objext"
14211 # Insert the option either (1) after the last *FLAGS variable, or
14212 # (2) before a word containing "conftest.", or (3) at the end.
14213 # Note that $ac_compile itself does not contain backslashes and begins
14214 # with a dollar sign (not a hyphen), so the echo should work correctly.
14215 lt_compile=`echo "$ac_compile" | $SED \
14216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14218 -e 's:$: $lt_compiler_flag:'`
14219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14220 (eval "$lt_compile" 2>out/conftest.err)
14222 cat out/conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14226 # The compiler can only warn and ignore the option if not recognized
14227 # So say no if there are warnings
14228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14229 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14230 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14231 lt_cv_prog_compiler_c_o_CXX=yes
14236 # SGI C++ compiler will create directory out/ii_files/ for
14237 # template instantiation
14238 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14239 $RM out/* && rmdir out
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14246 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14252 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14253 $as_echo_n "(cached) " >&6
14255 lt_cv_prog_compiler_c_o_CXX=no
14256 $RM -r conftest 2>/dev/null
14260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14262 lt_compiler_flag="-o out/conftest2.$ac_objext"
14263 # Insert the option either (1) after the last *FLAGS variable, or
14264 # (2) before a word containing "conftest.", or (3) at the end.
14265 # Note that $ac_compile itself does not contain backslashes and begins
14266 # with a dollar sign (not a hyphen), so the echo should work correctly.
14267 lt_compile=`echo "$ac_compile" | $SED \
14268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14270 -e 's:$: $lt_compiler_flag:'`
14271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14272 (eval "$lt_compile" 2>out/conftest.err)
14274 cat out/conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14278 # The compiler can only warn and ignore the option if not recognized
14279 # So say no if there are warnings
14280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14283 lt_cv_prog_compiler_c_o_CXX=yes
14288 # SGI C++ compiler will create directory out/ii_files/ for
14289 # template instantiation
14290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14291 $RM out/* && rmdir out
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14298 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14303 hard_links=nottested
14304 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14305 # do not overwrite the value of need_locks provided by the user
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14307 $as_echo_n "checking if we can lock with hard links... " >&6; }
14310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14312 ln conftest.a conftest.b 2>&5 || hard_links=no
14313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14315 $as_echo "$hard_links" >&6; }
14316 if test no = "$hard_links"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14318 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14328 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14330 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14331 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14334 # If we're using GNU nm, then we don't want the "-C" option.
14335 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14336 # Without the "-l" option, or with the "-B" option, AIX nm treats
14337 # weak defined symbols like other global defined symbols, whereas
14338 # GNU nm marks them as "W".
14339 # While the 'weak' keyword is ignored in the Export File, we need
14340 # it in the Import File for the 'aix-soname' feature, so we have
14341 # to replace the "-B" option with "-P" for AIX nm.
14342 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14343 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'
14345 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'
14349 export_symbols_cmds_CXX=$ltdll_cmds
14351 cygwin* | mingw* | cegcc*)
14352 case $cc_basename in
14354 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14357 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'
14358 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14363 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14368 $as_echo "$ld_shlibs_CXX" >&6; }
14369 test no = "$ld_shlibs_CXX" && can_build_shared=no
14371 with_gnu_ld_CXX=$with_gnu_ld
14379 # Do we need to explicitly link libc?
14381 case "x$archive_cmds_need_lc_CXX" in
14383 # Assume -lc should be added
14384 archive_cmds_need_lc_CXX=yes
14386 if test yes,yes = "$GCC,$enable_shared"; then
14387 case $archive_cmds_CXX in
14389 # FIXME: we may have to deal with multi-command sequences.
14392 # Test whether the compiler implicitly links with -lc since on some
14393 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14394 # to ld, don't add -lc before -lgcc.
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14396 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14397 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14398 $as_echo_n "(cached) " >&6
14401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14404 (eval $ac_compile) 2>&5
14406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14407 test $ac_status = 0; } 2>conftest.err; then
14410 libobjs=conftest.$ac_objext
14412 wl=$lt_prog_compiler_wl_CXX
14413 pic_flag=$lt_prog_compiler_pic_CXX
14419 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14420 allow_undefined_flag_CXX=
14421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14422 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425 test $ac_status = 0; }
14427 lt_cv_archive_cmds_need_lc_CXX=no
14429 lt_cv_archive_cmds_need_lc_CXX=yes
14431 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14433 cat conftest.err 1>&5
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14439 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14440 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14509 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14511 library_names_spec=
14512 libname_spec='lib$name'
14516 postuninstall_cmds=
14520 shlibpath_overrides_runpath=unknown
14522 dynamic_linker="$host_os ld.so"
14523 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14524 need_lib_prefix=unknown
14525 hardcode_into_libs=no
14527 # when you set need_version to no, make sure it does not cause -set_version
14528 # flags to be left without arguments
14529 need_version=unknown
14535 version_type=linux # correct to gnu/linux during the next big refactor
14536 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14537 shlibpath_var=LIBPATH
14539 # AIX 3 has no versioning support, so we append a major version to the name.
14540 soname_spec='$libname$release$shared_ext$major'
14544 version_type=linux # correct to gnu/linux during the next big refactor
14547 hardcode_into_libs=yes
14548 if test ia64 = "$host_cpu"; then
14549 # AIX 5 supports IA64
14550 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14551 shlibpath_var=LD_LIBRARY_PATH
14553 # With GCC up to 2.95.x, collect2 would create an import file
14554 # for dependence libraries. The import file would start with
14555 # the line '#! .'. This would cause the generated library to
14556 # depend on '.', always an invalid library. This was fixed in
14557 # development snapshots of GCC prior to 3.0.
14559 aix4 | aix4.[01] | aix4.[01].*)
14560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14562 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14565 can_build_shared=no
14569 # Using Import Files as archive members, it is possible to support
14570 # filename-based versioning of shared library archives on AIX. While
14571 # this would work for both with and without runtime linking, it will
14572 # prevent static linking of such archives. So we do filename-based
14573 # shared library versioning with .so extension only, which is used
14574 # when both runtime linking and shared linking is enabled.
14575 # Unfortunately, runtime linking may impact performance, so we do
14576 # not want this to be the default eventually. Also, we use the
14577 # versioned .so libs for executables only if there is the -brtl
14578 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14579 # To allow for filename-based versioning support, we need to create
14580 # libNAME.so.V as an archive file, containing:
14581 # *) an Import File, referring to the versioned filename of the
14582 # archive as well as the shared archive member, telling the
14583 # bitwidth (32 or 64) of that shared object, and providing the
14584 # list of exported symbols of that shared object, eventually
14585 # decorated with the 'weak' keyword
14586 # *) the shared object with the F_LOADONLY flag set, to really avoid
14587 # it being seen by the linker.
14588 # At run time we better use the real file rather than another symlink,
14589 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14591 case $with_aix_soname,$aix_use_runtimelinking in
14592 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14593 # soname into executable. Probably we can add versioning support to
14594 # collect2, so additional links can be useful in future.
14595 aix,yes) # traditional libtool
14596 dynamic_linker='AIX unversionable lib.so'
14597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14598 # instead of lib<name>.a to let people know that these are not
14599 # typical AIX shared libraries.
14600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14602 aix,no) # traditional AIX only
14603 dynamic_linker='AIX lib.a(lib.so.V)'
14604 # We preserve .a as extension for shared libraries through AIX4.2
14605 # and later when we are not doing run time linking.
14606 library_names_spec='$libname$release.a $libname.a'
14607 soname_spec='$libname$release$shared_ext$major'
14609 svr4,*) # full svr4 only
14610 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14611 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14612 # We do not specify a path in Import Files, so LIBPATH fires.
14613 shlibpath_overrides_runpath=yes
14615 *,yes) # both, prefer svr4
14616 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14617 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14618 # unpreferred sharedlib libNAME.a needs extra handling
14619 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"'
14620 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"'
14621 # We do not specify a path in Import Files, so LIBPATH fires.
14622 shlibpath_overrides_runpath=yes
14624 *,no) # both, prefer aix
14625 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14626 library_names_spec='$libname$release.a $libname.a'
14627 soname_spec='$libname$release$shared_ext$major'
14628 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14629 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)'
14630 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"'
14633 shlibpath_var=LIBPATH
14640 # Since July 2007 AmigaOS4 officially supports .so libraries.
14641 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14645 library_names_spec='$libname.ixlibrary $libname.a'
14646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14647 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'
14653 library_names_spec='$libname$shared_ext'
14654 dynamic_linker="$host_os ld.so"
14655 shlibpath_var=LIBRARY_PATH
14659 version_type=linux # correct to gnu/linux during the next big refactor
14661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14662 soname_spec='$libname$release$shared_ext$major'
14663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14667 # the default ld.so.conf also contains /usr/contrib/lib and
14668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14669 # libtool to hard-code these into programs
14672 cygwin* | mingw* | pw32* | cegcc*)
14673 version_type=windows
14678 case $GCC,$cc_basename in
14681 library_names_spec='$libname.dll.a'
14682 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14683 postinstall_cmds='base_file=`basename \$file`~
14684 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14685 dldir=$destdir/`dirname \$dlpath`~
14686 test -d \$dldir || mkdir -p \$dldir~
14687 $install_prog $dir/$dlname \$dldir/$dlname~
14688 chmod a+x \$dldir/$dlname~
14689 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14690 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14693 dlpath=$dir/\$dldll~
14695 shlibpath_overrides_runpath=yes
14699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14700 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14704 # MinGW DLLs use traditional 'lib' prefix
14705 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14708 # pw32 DLLs use 'pw' prefix rather than 'lib'
14709 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14712 dynamic_linker='Win32 ld.exe'
14717 libname_spec='$name'
14718 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14719 library_names_spec='$libname.dll.lib'
14723 sys_lib_search_path_spec=
14726 for lt_path in $LIB
14729 # Let DOS variable expansion print the short 8.3 style file name.
14730 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14731 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14734 # Convert to MSYS style.
14735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14738 # Convert to unix form, then to dos form, then back to unix form
14739 # but this time dos style (no spaces!) so that the unix form looks
14740 # like /cygdrive/c/PROGRA~1:/cygdr...
14741 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14742 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14743 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14746 sys_lib_search_path_spec=$LIB
14747 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14748 # It is most probably a Windows format PATH.
14749 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14753 # FIXME: find the short name or the path components, as spaces are
14754 # common. (e.g. "Program Files" -> "PROGRA~1")
14758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14759 postinstall_cmds='base_file=`basename \$file`~
14760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14761 dldir=$destdir/`dirname \$dlpath`~
14762 test -d \$dldir || mkdir -p \$dldir~
14763 $install_prog $dir/$dlname \$dldir/$dlname'
14764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14765 dlpath=$dir/\$dldll~
14767 shlibpath_overrides_runpath=yes
14768 dynamic_linker='Win32 link.exe'
14772 # Assume MSVC wrapper
14773 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14774 dynamic_linker='Win32 ld.exe'
14777 # FIXME: first we should search . and the directory the executable is in
14781 darwin* | rhapsody*)
14782 dynamic_linker="$host_os dyld"
14783 version_type=darwin
14786 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
14787 soname_spec='$libname$release$major$shared_ext'
14788 shlibpath_overrides_runpath=yes
14789 shlibpath_var=DYLD_LIBRARY_PATH
14790 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
14792 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14796 version_type=linux # correct to gnu/linux during the next big refactor
14799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14800 soname_spec='$libname$release$shared_ext$major'
14801 shlibpath_var=LD_LIBRARY_PATH
14804 freebsd* | dragonfly*)
14805 # DragonFly does not have aout. When/if they implement a new
14806 # versioning mechanism, adjust this.
14807 if test -x /usr/bin/objformat; then
14808 objformat=`/usr/bin/objformat`
14811 freebsd[23].*) objformat=aout ;;
14812 *) objformat=elf ;;
14815 # Handle Gentoo/FreeBSD as it was Linux
14816 case $host_vendor in
14818 version_type=linux ;;
14820 version_type=freebsd-$objformat ;;
14823 case $version_type in
14825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14826 soname_spec='$libname$release$shared_ext$major'
14831 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14836 soname_spec='${libname}${release}${shared_ext}$major'
14841 shlibpath_var=LD_LIBRARY_PATH
14844 shlibpath_overrides_runpath=yes
14846 freebsd3.[01]* | freebsdelf3.[01]*)
14847 shlibpath_overrides_runpath=yes
14848 hardcode_into_libs=yes
14850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14852 shlibpath_overrides_runpath=no
14853 hardcode_into_libs=yes
14855 *) # from 4.6 on, and DragonFly
14856 shlibpath_overrides_runpath=yes
14857 hardcode_into_libs=yes
14863 version_type=linux # correct to gnu/linux during the next big refactor
14866 dynamic_linker="$host_os runtime_loader"
14867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14868 soname_spec='$libname$release$shared_ext$major'
14869 shlibpath_var=LIBRARY_PATH
14870 shlibpath_overrides_runpath=no
14871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14872 hardcode_into_libs=yes
14875 hpux9* | hpux10* | hpux11*)
14876 # Give a soname corresponding to the major version so that dld.sl refuses to
14877 # link against other versions.
14884 hardcode_into_libs=yes
14885 dynamic_linker="$host_os dld.so"
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14889 soname_spec='$libname$release$shared_ext$major'
14890 if test 32 = "$HPUX_IA64_MODE"; then
14891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14892 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14895 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14900 hardcode_into_libs=yes
14901 dynamic_linker="$host_os dld.sl"
14902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14905 soname_spec='$libname$release$shared_ext$major'
14906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14911 dynamic_linker="$host_os dld.sl"
14912 shlibpath_var=SHLIB_PATH
14913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14915 soname_spec='$libname$release$shared_ext$major'
14918 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14919 postinstall_cmds='chmod 555 $lib'
14920 # or fails outright, so override atomically:
14921 install_override_mode=555
14925 version_type=linux # correct to gnu/linux during the next big refactor
14928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14929 soname_spec='$libname$release$shared_ext$major'
14930 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=no
14933 hardcode_into_libs=yes
14936 irix5* | irix6* | nonstopux*)
14938 nonstopux*) version_type=nonstopux ;;
14940 if test yes = "$lt_cv_prog_gnu_ld"; then
14941 version_type=linux # correct to gnu/linux during the next big refactor
14948 soname_spec='$libname$release$shared_ext$major'
14949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14951 irix5* | nonstopux*)
14952 libsuff= shlibsuff=
14955 case $LD in # libtool.m4 will add one of these switches to LD
14956 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14957 libsuff= shlibsuff= libmagic=32-bit;;
14958 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14959 libsuff=32 shlibsuff=N32 libmagic=N32;;
14960 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14961 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14962 *) libsuff= shlibsuff= libmagic=never-match;;
14966 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14967 shlibpath_overrides_runpath=no
14968 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14969 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14970 hardcode_into_libs=yes
14973 # No shared lib support for Linux oldld, aout, or coff.
14974 linux*oldld* | linux*aout* | linux*coff*)
14979 version_type=none # Android doesn't support versioned libraries.
14982 library_names_spec='$libname$release$shared_ext'
14983 soname_spec='$libname$release$shared_ext'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 shlibpath_overrides_runpath=yes
14988 # This implies no fast_install, which is unacceptable.
14989 # Some rework will be needed to allow for fast_install
14990 # before this can be enabled.
14991 hardcode_into_libs=yes
14993 dynamic_linker='Android linker'
14994 # Don't embed -rpath directories since the linker doesn't support them.
14995 hardcode_libdir_flag_spec_CXX='-L$libdir'
14998 # This must be glibc/ELF.
14999 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15000 version_type=linux # correct to gnu/linux during the next big refactor
15003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15004 soname_spec='$libname$release$shared_ext$major'
15005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 shlibpath_overrides_runpath=no
15009 # Some binutils ld are patched to set DT_RUNPATH
15010 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15011 $as_echo_n "(cached) " >&6
15013 lt_cv_shlibpath_overrides_runpath=no
15014 save_LDFLAGS=$LDFLAGS
15015 save_libdir=$libdir
15016 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15017 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15029 if ac_fn_cxx_try_link "$LINENO"; then :
15030 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15031 lt_cv_shlibpath_overrides_runpath=yes
15034 rm -f core conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15036 LDFLAGS=$save_LDFLAGS
15037 libdir=$save_libdir
15041 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15043 # This implies no fast_install, which is unacceptable.
15044 # Some rework will be needed to allow for fast_install
15045 # before this can be enabled.
15046 hardcode_into_libs=yes
15048 # Ideally, we could use ldconfig to report *all* directores which are
15049 # searched for libraries, however this is still not possible. Aside from not
15050 # being certain /sbin/ldconfig is available, command
15051 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15052 # even though it is searched at run-time. Try to do the best guess by
15053 # appending ld.so.conf contents (and includes) to the search path.
15054 if test -f /etc/ld.so.conf; then
15055 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' ' '`
15056 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15059 # We used to test for /lib/ld.so.1 and disable shared libraries on
15060 # powerpc, because MkLinux only supported shared libraries with the
15061 # GNU dynamic linker. Since this was broken with cross compilers,
15062 # most powerpc-linux boxes support dynamic linking these days and
15063 # people can always --disable-shared, the test was removed, and we
15064 # assume the GNU/Linux dynamic linker is in use.
15065 dynamic_linker='GNU/Linux ld.so'
15072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15073 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15075 dynamic_linker='NetBSD (a.out) ld.so'
15077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15078 soname_spec='$libname$release$shared_ext$major'
15079 dynamic_linker='NetBSD ld.elf_so'
15081 shlibpath_var=LD_LIBRARY_PATH
15082 shlibpath_overrides_runpath=yes
15083 hardcode_into_libs=yes
15087 version_type=linux # correct to gnu/linux during the next big refactor
15088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 shlibpath_overrides_runpath=yes
15097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15098 soname_spec='$libname$release$shared_ext$major'
15099 shlibpath_var=LD_LIBRARY_PATH
15100 shlibpath_overrides_runpath=no
15101 hardcode_into_libs=yes
15102 dynamic_linker='ldqnx.so'
15105 openbsd* | bitrig*)
15107 sys_lib_dlsearch_path_spec=/usr/lib
15109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15114 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15116 shlibpath_var=LD_LIBRARY_PATH
15117 shlibpath_overrides_runpath=yes
15121 libname_spec='$name'
15122 version_type=windows
15126 # OS/2 can only load a DLL with a base name of 8 characters or less.
15127 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15128 v=$($ECHO $release$versuffix | tr -d .-);
15129 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15130 $ECHO $n$v`$shared_ext'
15131 library_names_spec='${libname}_dll.$libext'
15132 dynamic_linker='OS/2 ld.exe'
15133 shlibpath_var=BEGINLIBPATH
15134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15136 postinstall_cmds='base_file=`basename \$file`~
15137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15138 dldir=$destdir/`dirname \$dlpath`~
15139 test -d \$dldir || mkdir -p \$dldir~
15140 $install_prog $dir/$dlname \$dldir/$dlname~
15141 chmod a+x \$dldir/$dlname~
15142 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15143 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15146 dlpath=$dir/\$dldll~
15150 osf3* | osf4* | osf5*)
15154 soname_spec='$libname$release$shared_ext$major'
15155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15166 version_type=linux # correct to gnu/linux during the next big refactor
15169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15170 soname_spec='$libname$release$shared_ext$major'
15171 shlibpath_var=LD_LIBRARY_PATH
15172 shlibpath_overrides_runpath=yes
15173 hardcode_into_libs=yes
15174 # ldd complains unless libraries are executable
15175 postinstall_cmds='chmod +x $lib'
15180 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 shlibpath_overrides_runpath=yes
15184 if test yes = "$with_gnu_ld"; then
15191 version_type=linux # correct to gnu/linux during the next big refactor
15192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15193 soname_spec='$libname$release$shared_ext$major'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 case $host_vendor in
15197 shlibpath_overrides_runpath=no
15199 runpath_var=LD_RUN_PATH
15207 shlibpath_overrides_runpath=no
15208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15214 if test -d /usr/nec; then
15215 version_type=linux # correct to gnu/linux during the next big refactor
15216 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15217 soname_spec='$libname$shared_ext.$major'
15218 shlibpath_var=LD_LIBRARY_PATH
15222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15227 soname_spec='$libname$release$shared_ext$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 shlibpath_overrides_runpath=yes
15230 hardcode_into_libs=yes
15231 if test yes = "$with_gnu_ld"; then
15232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15234 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15241 sys_lib_dlsearch_path_spec='/usr/lib'
15245 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15246 version_type=linux # correct to gnu/linux during the next big refactor
15249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 shlibpath_overrides_runpath=no
15252 hardcode_into_libs=yes
15256 version_type=linux # correct to gnu/linux during the next big refactor
15257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15258 soname_spec='$libname$release$shared_ext$major'
15259 shlibpath_var=LD_LIBRARY_PATH
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15267 $as_echo "$dynamic_linker" >&6; }
15268 test no = "$dynamic_linker" && can_build_shared=no
15270 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15271 if test yes = "$GCC"; then
15272 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15275 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15276 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15279 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15280 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15283 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15284 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15286 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15287 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15289 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15290 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15332 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15333 hardcode_action_CXX=
15334 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15335 test -n "$runpath_var_CXX" ||
15336 test yes = "$hardcode_automatic_CXX"; then
15338 # We can hardcode non-existent directories.
15339 if test no != "$hardcode_direct_CXX" &&
15340 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15341 # have to relink, otherwise we might link with an installed library
15342 # when we should be linking with a yet-to-be-installed one
15343 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15344 test no != "$hardcode_minus_L_CXX"; then
15345 # Linking always hardcodes the temporary library directory.
15346 hardcode_action_CXX=relink
15348 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15349 hardcode_action_CXX=immediate
15352 # We cannot hardcode anything, or else we can only hardcode existing
15354 hardcode_action_CXX=unsupported
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15357 $as_echo "$hardcode_action_CXX" >&6; }
15359 if test relink = "$hardcode_action_CXX" ||
15360 test yes = "$inherit_rpath_CXX"; then
15361 # Fast installation is not supported
15362 enable_fast_install=no
15363 elif test yes = "$shlibpath_overrides_runpath" ||
15364 test no = "$enable_shared"; then
15365 # Fast installation is not necessary
15366 enable_fast_install=needless
15375 fi # test -n "$compiler"
15378 CFLAGS=$lt_save_CFLAGS
15382 with_gnu_ld=$lt_save_with_gnu_ld
15383 lt_cv_path_LDCXX=$lt_cv_path_LD
15384 lt_cv_path_LD=$lt_save_path_LD
15385 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15386 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15387 fi # test yes != "$_lt_caught_CXX_error"
15390 ac_cpp='$CPP $CPPFLAGS'
15391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15396 # Find a good install program. We prefer a C program (faster),
15397 # so one script is as good as another. But avoid the broken or
15398 # incompatible versions:
15399 # SysV /etc/install, /usr/sbin/install
15400 # SunOS /usr/etc/install
15401 # IRIX /sbin/install
15403 # AmigaOS /C/install, which installs bootblocks on floppy discs
15404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15407 # OS/2's system install, which has a completely different semantic
15408 # ./install, which can be erroneously created by make from ./install.sh.
15409 # Reject install programs that cannot install multiple files.
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15411 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15412 if test -z "$INSTALL"; then
15413 if ${ac_cv_path_install+:} false; then :
15414 $as_echo_n "(cached) " >&6
15416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15417 for as_dir in $PATH
15420 test -z "$as_dir" && as_dir=.
15421 # Account for people who put trailing slashes in PATH elements.
15422 case $as_dir/ in #((
15423 ./ | .// | /[cC]/* | \
15424 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15425 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15428 # OSF1 and SCO ODT 3.0 have their own names for install.
15429 # Don't use installbsd from OSF since it installs stuff as root
15431 for ac_prog in ginstall scoinst install; do
15432 for ac_exec_ext in '' $ac_executable_extensions; do
15433 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15434 if test $ac_prog = install &&
15435 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15436 # AIX install. It has an incompatible calling convention.
15438 elif test $ac_prog = install &&
15439 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15440 # program-specific install script used by HP pwplus--don't use.
15443 rm -rf conftest.one conftest.two conftest.dir
15444 echo one > conftest.one
15445 echo two > conftest.two
15447 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15448 test -s conftest.one && test -s conftest.two &&
15449 test -s conftest.dir/conftest.one &&
15450 test -s conftest.dir/conftest.two
15452 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15465 rm -rf conftest.one conftest.two conftest.dir
15468 if test "${ac_cv_path_install+set}" = set; then
15469 INSTALL=$ac_cv_path_install
15471 # As a last resort, use the slow shell script. Don't cache a
15472 # value for INSTALL within a source directory, because that will
15473 # break other packages using the cache if that directory is
15474 # removed, or if the value is a relative name.
15475 INSTALL=$ac_install_sh
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15479 $as_echo "$INSTALL" >&6; }
15481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15482 # It thinks the first close brace ends the variable substitution.
15483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15490 if test "$GCC" = yes ; then
15491 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
15492 CFLAGS="$OLDCFLAGS -fexceptions"
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
15494 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h. */
15506 if ac_fn_c_try_link "$LINENO"; then :
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15508 $as_echo "yes" >&6; }
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15511 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
15513 rm -f core conftest.err conftest.$ac_objext \
15514 conftest$ac_exeext conftest.$ac_ext
15515 if test "x$CXXFLAGS" = x ; then
15516 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
15519 CFLAGS="${CFLAGS} -fno-strict-aliasing"
15520 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
15521 LDFLAGS="${LDFLAGS} -fno-strict-aliasing"
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15525 $as_echo_n "checking for ANSI C header files... " >&6; }
15526 if ${ac_cv_header_stdc+:} false; then :
15527 $as_echo_n "(cached) " >&6
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15531 #include <stdlib.h>
15532 #include <stdarg.h>
15533 #include <string.h>
15544 if ac_fn_c_try_compile "$LINENO"; then :
15545 ac_cv_header_stdc=yes
15547 ac_cv_header_stdc=no
15549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551 if test $ac_cv_header_stdc = yes; then
15552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555 #include <string.h>
15558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15559 $EGREP "memchr" >/dev/null 2>&1; then :
15562 ac_cv_header_stdc=no
15568 if test $ac_cv_header_stdc = yes; then
15569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15572 #include <stdlib.h>
15575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15576 $EGREP "free" >/dev/null 2>&1; then :
15579 ac_cv_header_stdc=no
15585 if test $ac_cv_header_stdc = yes; then
15586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15587 if test "$cross_compiling" = yes; then :
15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h. */
15593 #include <stdlib.h>
15594 #if ((' ' & 0x0FF) == 0x020)
15595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15598 # define ISLOWER(c) \
15599 (('a' <= (c) && (c) <= 'i') \
15600 || ('j' <= (c) && (c) <= 'r') \
15601 || ('s' <= (c) && (c) <= 'z'))
15602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15610 for (i = 0; i < 256; i++)
15611 if (XOR (islower (i), ISLOWER (i))
15612 || toupper (i) != TOUPPER (i))
15617 if ac_fn_c_try_run "$LINENO"; then :
15620 ac_cv_header_stdc=no
15622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15623 conftest.$ac_objext conftest.beam conftest.$ac_ext
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15629 $as_echo "$ac_cv_header_stdc" >&6; }
15630 if test $ac_cv_header_stdc = yes; then
15632 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15639 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15640 if ${ac_cv_c_bigendian+:} false; then :
15641 $as_echo_n "(cached) " >&6
15643 ac_cv_c_bigendian=unknown
15644 # See if sys/param.h defines the BYTE_ORDER macro.
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 #include <sys/types.h>
15648 #include <sys/param.h>
15653 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15654 bogus endian macros
15660 if ac_fn_c_try_compile "$LINENO"; then :
15661 # It does; now see whether it defined to BIG_ENDIAN or not.
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15664 #include <sys/types.h>
15665 #include <sys/param.h>
15670 #if BYTE_ORDER != BIG_ENDIAN
15677 if ac_fn_c_try_compile "$LINENO"; then :
15678 ac_cv_c_bigendian=yes
15680 ac_cv_c_bigendian=no
15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 if test $ac_cv_c_bigendian = unknown; then
15686 if test "$cross_compiling" = yes; then :
15687 echo $ac_n "cross-compiling... " 2>&6
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15692 /* Are we little or big endian? From Harbison&Steele. */
15696 char c[sizeof (long)];
15699 exit (u.c[sizeof (long) - 1] == 1);
15702 if ac_fn_c_try_run "$LINENO"; then :
15703 ac_cv_c_bigendian=no
15705 ac_cv_c_bigendian=yes
15707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15708 conftest.$ac_objext conftest.beam conftest.$ac_ext
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15714 $as_echo "$ac_cv_c_bigendian" >&6; }
15715 if test $ac_cv_c_bigendian = unknown; then
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
15717 $as_echo_n "checking to probe for byte ordering... " >&6; }
15719 cat >conftest.c <<EOF
15720 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15721 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15722 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
15723 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15724 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15725 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
15726 int main() { _ascii (); _ebcdic (); return 0; }
15728 if test -f conftest.c ; then
15729 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
15730 if test `grep -l BIGenDianSyS conftest.o` ; then
15731 echo $ac_n ' big endian probe OK, ' 1>&6
15732 ac_cv_c_bigendian=yes
15734 if test `grep -l LiTTleEnDian conftest.o` ; then
15735 echo $ac_n ' little endian probe OK, ' 1>&6
15736 if test $ac_cv_c_bigendian = yes ; then
15737 ac_cv_c_bigendian=unknown;
15739 ac_cv_c_bigendian=no
15742 echo $ac_n 'guessing bigendian ... ' >&6
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15746 $as_echo "$ac_cv_c_bigendian" >&6; }
15748 if test $ac_cv_c_bigendian = yes; then
15750 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15757 cat >>confdefs.h <<_ACEOF
15758 #define BYTEORDER $BYTEORDER
15761 if test $ac_cv_c_bigendian = unknown; then
15762 as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15767 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15768 if ${ac_cv_c_const+:} false; then :
15769 $as_echo_n "(cached) " >&6
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15778 #ifndef __cplusplus
15779 /* Ultrix mips cc rejects this sort of thing. */
15780 typedef int charset[2];
15781 const charset cs = { 0, 0 };
15782 /* SunOS 4.1.1 cc rejects this. */
15783 char const *const *pcpcc;
15785 /* NEC SVR4.0.2 mips cc rejects this. */
15786 struct point {int x, y;};
15787 static struct point const zero = {0,0};
15788 /* AIX XL C 1.02.0.0 rejects this.
15789 It does not let you subtract one const X* pointer from another in
15790 an arm of an if-expression whose if-part is not a constant
15792 const char *g = "string";
15793 pcpcc = &g + (g ? g-g : 0);
15794 /* HPUX 7.0 cc rejects these. */
15796 ppc = (char**) pcpcc;
15797 pcpcc = (char const *const *) ppc;
15798 { /* SCO 3.2v4 cc rejects this sort of thing. */
15801 char const *s = 0 ? (char *) 0 : (char const *) 0;
15806 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15807 int x[] = {25, 17};
15808 const int *foo = &x[0];
15811 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15812 typedef const int *iptr;
15816 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15817 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15818 struct s { int j; const int *ap[3]; } bx;
15819 struct s *b = &bx; b->j = 5;
15821 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15822 const int foo = 10;
15823 if (!foo) return 0;
15825 return !cs[0] && !zero.x;
15832 if ac_fn_c_try_compile "$LINENO"; then :
15837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15840 $as_echo "$ac_cv_c_const" >&6; }
15841 if test $ac_cv_c_const = no; then
15843 $as_echo "#define const /**/" >>confdefs.h
15847 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15848 if test "x$ac_cv_type_size_t" = xyes; then :
15852 cat >>confdefs.h <<_ACEOF
15853 #define size_t unsigned int
15858 for ac_func in memmove bcopy
15860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15862 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15863 cat >>confdefs.h <<_ACEOF
15864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15873 # Check whether --with-libbsd was given.
15874 if test "${with_libbsd+set}" = set; then :
15875 withval=$with_libbsd;
15880 if test "x${with_libbsd}" != xno; then :
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
15883 $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
15884 if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
15885 $as_echo_n "(cached) " >&6
15887 ac_check_lib_save_LIBS=$LIBS
15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h. */
15892 /* Override any GCC internal prototype to avoid an error.
15893 Use char because int might match the return type of a GCC
15894 builtin and then its argument prototype would still apply. */
15898 char arc4random_buf ();
15902 return arc4random_buf ();
15907 if ac_fn_c_try_link "$LINENO"; then :
15908 ac_cv_lib_bsd_arc4random_buf=yes
15910 ac_cv_lib_bsd_arc4random_buf=no
15912 rm -f core conftest.err conftest.$ac_objext \
15913 conftest$ac_exeext conftest.$ac_ext
15914 LIBS=$ac_check_lib_save_LIBS
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
15917 $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
15918 if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
15919 cat >>confdefs.h <<_ACEOF
15920 #define HAVE_LIBBSD 1
15927 if test "x${with_libbsd}" = xyes; then :
15929 as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
15938 $as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15942 #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */
15943 #if defined(HAVE_LIBBSD)
15944 # include <bsd/stdlib.h>
15947 arc4random_buf(NULL, 0U);
15952 if ac_fn_c_try_link "$LINENO"; then :
15955 $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958 $as_echo "yes" >&6; }
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15963 $as_echo "no" >&6; }
15966 rm -f core conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
15971 $as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15975 #include <stdlib.h> /* for NULL */
15976 #include <sys/random.h>
15978 return getrandom(NULL, 0U, 0U);
15982 if ac_fn_c_try_link "$LINENO"; then :
15985 $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15988 $as_echo "yes" >&6; }
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15993 $as_echo "no" >&6; }
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
15996 $as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16000 #include <stdlib.h> /* for NULL */
16001 #include <unistd.h> /* for syscall */
16002 #include <sys/syscall.h> /* for SYS_getrandom */
16004 syscall(SYS_getrandom, NULL, 0, 0);
16009 if ac_fn_c_try_link "$LINENO"; then :
16012 $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16015 $as_echo "yes" >&6; }
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16023 rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16027 rm -f core conftest.err conftest.$ac_objext \
16028 conftest$ac_exeext conftest.$ac_ext
16031 for ac_header in fcntl.h unistd.h
16033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16034 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16035 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16036 cat >>confdefs.h <<_ACEOF
16037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16044 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16045 if test "x$ac_cv_type_off_t" = xyes; then :
16049 cat >>confdefs.h <<_ACEOF
16050 #define off_t long int
16058 for ac_header in $ac_header_list
16060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16064 cat >>confdefs.h <<_ACEOF
16065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16079 for ac_func in getpagesize
16081 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16082 if test "x$ac_cv_func_getpagesize" = xyes; then :
16083 cat >>confdefs.h <<_ACEOF
16084 #define HAVE_GETPAGESIZE 1
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16091 $as_echo_n "checking for working mmap... " >&6; }
16092 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16093 $as_echo_n "(cached) " >&6
16095 if test "$cross_compiling" = yes; then :
16096 ac_cv_func_mmap_fixed_mapped=no
16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16100 $ac_includes_default
16101 /* malloc might have been renamed as rpl_malloc. */
16104 /* Thanks to Mike Haertel and Jim Avera for this test.
16105 Here is a matrix of mmap possibilities:
16106 mmap private not fixed
16107 mmap private fixed at somewhere currently unmapped
16108 mmap private fixed at somewhere already mapped
16109 mmap shared not fixed
16110 mmap shared fixed at somewhere currently unmapped
16111 mmap shared fixed at somewhere already mapped
16112 For private mappings, we should verify that changes cannot be read()
16113 back from the file, nor mmap's back from the file at a different
16114 address. (There have been systems where private was not correctly
16115 implemented like the infamous i386 svr4.0, and systems where the
16116 VM page cache was not coherent with the file system buffer cache
16117 like early versions of FreeBSD and possibly contemporary NetBSD.)
16118 For shared mappings, we should conversely verify that changes get
16119 propagated back to all the places they're supposed to be.
16121 Grep wants private fixed already mapped.
16122 The main things grep needs to know about mmap are:
16123 * does it exist and is it safe to write into the mmap'd area
16124 * how to use it (BSD variants) */
16127 #include <sys/mman.h>
16129 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16133 /* This mess was copied from the GNU getpagesize.h. */
16134 #ifndef HAVE_GETPAGESIZE
16135 # ifdef _SC_PAGESIZE
16136 # define getpagesize() sysconf(_SC_PAGESIZE)
16137 # else /* no _SC_PAGESIZE */
16138 # ifdef HAVE_SYS_PARAM_H
16139 # include <sys/param.h>
16140 # ifdef EXEC_PAGESIZE
16141 # define getpagesize() EXEC_PAGESIZE
16142 # else /* no EXEC_PAGESIZE */
16144 # define getpagesize() NBPG * CLSIZE
16147 # endif /* no CLSIZE */
16148 # else /* no NBPG */
16150 # define getpagesize() NBPC
16151 # else /* no NBPC */
16153 # define getpagesize() PAGESIZE
16154 # endif /* PAGESIZE */
16155 # endif /* no NBPC */
16156 # endif /* no NBPG */
16157 # endif /* no EXEC_PAGESIZE */
16158 # else /* no HAVE_SYS_PARAM_H */
16159 # define getpagesize() 8192 /* punt totally */
16160 # endif /* no HAVE_SYS_PARAM_H */
16161 # endif /* no _SC_PAGESIZE */
16163 #endif /* no HAVE_GETPAGESIZE */
16168 char *data, *data2, *data3;
16169 const char *cdata2;
16173 pagesize = getpagesize ();
16175 /* First, make a file with some known garbage in it. */
16176 data = (char *) malloc (pagesize);
16179 for (i = 0; i < pagesize; ++i)
16180 *(data + i) = rand ();
16182 fd = creat ("conftest.mmap", 0600);
16185 if (write (fd, data, pagesize) != pagesize)
16189 /* Next, check that the tail of a page is zero-filled. File must have
16190 non-zero length, otherwise we risk SIGBUS for entire page. */
16191 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16195 if (write (fd2, cdata2, 1) != 1)
16197 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16198 if (data2 == MAP_FAILED)
16200 for (i = 0; i < pagesize; ++i)
16204 if (munmap (data2, pagesize))
16207 /* Next, try to mmap the file at a fixed address which already has
16208 something else allocated at it. If we can, also make sure that
16209 we see the same garbage. */
16210 fd = open ("conftest.mmap", O_RDWR);
16213 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16214 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16216 for (i = 0; i < pagesize; ++i)
16217 if (*(data + i) != *(data2 + i))
16220 /* Finally, make sure that changes to the mapped area do not
16221 percolate back to the file as seen by read(). (This is a bug on
16222 some variants of i386 svr4.0.) */
16223 for (i = 0; i < pagesize; ++i)
16224 *(data2 + i) = *(data2 + i) + 1;
16225 data3 = (char *) malloc (pagesize);
16228 if (read (fd, data3, pagesize) != pagesize)
16230 for (i = 0; i < pagesize; ++i)
16231 if (*(data + i) != *(data3 + i))
16237 if ac_fn_c_try_run "$LINENO"; then :
16238 ac_cv_func_mmap_fixed_mapped=yes
16240 ac_cv_func_mmap_fixed_mapped=no
16242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16243 conftest.$ac_objext conftest.beam conftest.$ac_ext
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16248 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16249 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16251 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16254 rm -f conftest.mmap conftest.txt
16257 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
16258 FILEMAP=unixfilemap
16260 FILEMAP=readfilemap
16266 $as_echo "#define XML_NS 1" >>confdefs.h
16269 $as_echo "#define XML_DTD 1" >>confdefs.h
16272 # Check whether --enable-xml-context was given.
16273 if test "${enable_xml_context+set}" = set; then :
16274 enableval=$enable_xml_context; enable_xml_context=${enableval}
16277 if test "x${enable_xml_context}" != "xno"; then :
16279 if test "x${enable_xml_context}" = "xyes" \
16280 -o "x${enable_xml_context}" = "x"; then :
16282 enable_xml_context=1024
16286 cat >>confdefs.h <<_ACEOF
16287 #define XML_CONTEXT_BYTES ${enable_xml_context}
16293 ac_config_files="$ac_config_files Makefile expat.pc"
16295 ac_config_files="$ac_config_files run.sh"
16297 cat >confcache <<\_ACEOF
16298 # This file is a shell script that caches the results of configure
16299 # tests run on this system so they can be shared between configure
16300 # scripts and configure runs, see configure's option --config-cache.
16301 # It is not useful on other systems. If it contains results you don't
16302 # want to keep, you may remove or edit it.
16304 # config.status only pays attention to the cache file if you give it
16305 # the --recheck option to rerun configure.
16307 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16308 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16309 # following values.
16313 # The following way of writing the cache mishandles newlines in values,
16314 # but we know of no workaround that is simple, portable, and efficient.
16315 # So, we kill variables containing newlines.
16316 # Ultrix sh set writes to stderr and can't be redirected directly,
16317 # and sets the high bit in the cache file unless we assign to the vars.
16319 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16320 eval ac_val=\$$ac_var
16324 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16325 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16328 _ | IFS | as_nl) ;; #(
16329 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16330 *) { eval $ac_var=; unset $ac_var;} ;;
16336 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16337 *${as_nl}ac_space=\ *)
16338 # `set' does not quote correctly, so add quotes: double-quote
16339 # substitution turns \\\\ into \\, and sed turns \\ into \.
16342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16345 # `set' quotes correctly as required by POSIX, so do not add quotes.
16346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16355 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16357 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16359 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16360 if test -w "$cache_file"; then
16361 if test "x$cache_file" != "x/dev/null"; then
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16363 $as_echo "$as_me: updating cache $cache_file" >&6;}
16364 if test ! -f "$cache_file" || test -h "$cache_file"; then
16365 cat confcache >"$cache_file"
16367 case $cache_file in #(
16369 mv -f confcache "$cache_file"$$ &&
16370 mv -f "$cache_file"$$ "$cache_file" ;; #(
16372 mv -f confcache "$cache_file" ;;
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16378 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16384 # Let make expand exec_prefix.
16385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16387 DEFS=-DHAVE_CONFIG_H
16392 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16393 # 1. Remove the extension, and $U if already installed.
16394 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16395 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16396 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16397 # will be set to the directory where LIBOBJS objects are built.
16398 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16399 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16401 LIBOBJS=$ac_libobjs
16403 LTLIBOBJS=$ac_ltlibobjs
16407 : "${CONFIG_STATUS=./config.status}"
16409 ac_clean_files_save=$ac_clean_files
16410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16412 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16414 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16416 # Generated by $as_me.
16417 # Run this file to recreate the current configuration.
16418 # Compiler output produced by configure, useful for debugging
16419 # configure, is in config.log if it exists.
16422 ac_cs_recheck=false
16425 SHELL=\${CONFIG_SHELL-$SHELL}
16428 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16429 ## -------------------- ##
16430 ## M4sh Initialization. ##
16431 ## -------------------- ##
16433 # Be more Bourne compatible
16434 DUALCASE=1; export DUALCASE # for MKS sh
16435 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16438 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16439 # is contrary to our usage. Disable this feature.
16440 alias -g '${1+"$@"}'='"$@"'
16441 setopt NO_GLOB_SUBST
16443 case `(set -o) 2>/dev/null` in #(
16455 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16456 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16457 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16459 # Prefer a ksh shell builtin over an external printf program on Solaris,
16460 # but without wasting forks for bash or zsh.
16461 if test -z "$BASH_VERSION$ZSH_VERSION" \
16462 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16463 as_echo='print -r --'
16464 as_echo_n='print -rn --'
16465 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16466 as_echo='printf %s\n'
16467 as_echo_n='printf %s'
16469 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16470 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16471 as_echo_n='/usr/ucb/echo -n'
16473 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16474 as_echo_n_body='eval
16478 expr "X$arg" : "X\\(.*\\)$as_nl";
16479 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16481 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16483 export as_echo_n_body
16484 as_echo_n='sh -c $as_echo_n_body as_echo'
16486 export as_echo_body
16487 as_echo='sh -c $as_echo_body as_echo'
16490 # The user is always right.
16491 if test "${PATH_SEPARATOR+set}" != set; then
16493 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16494 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16501 # We need space, tab and new line, in precisely that order. Quoting is
16502 # there to prevent editors from complaining about space-tab.
16503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16504 # splitting by setting IFS to empty value.)
16507 # Find who we are. Look in the path if we contain no directory separator.
16510 *[\\/]* ) as_myself=$0 ;;
16511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16515 test -z "$as_dir" && as_dir=.
16516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16522 # We did not find ourselves, most probably we were run as `sh COMMAND'
16523 # in which case we are not to be found in the path.
16524 if test "x$as_myself" = x; then
16527 if test ! -f "$as_myself"; then
16528 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16532 # Unset variables that we do not need and which cause bugs (e.g. in
16533 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16534 # suppresses any "Segmentation fault" message there. '((' could
16535 # trigger a bug in pdksh 5.2.14.
16536 for as_var in BASH_ENV ENV MAIL MAILPATH
16537 do eval test x\${$as_var+set} = xset \
16538 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16551 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16554 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16555 # ----------------------------------------
16556 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16557 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16558 # script with STATUS, using 1 if that was 0.
16561 as_status=$1; test $as_status -eq 0 && as_status=1
16563 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16564 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16566 $as_echo "$as_me: error: $2" >&2
16567 as_fn_exit $as_status
16571 # as_fn_set_status STATUS
16572 # -----------------------
16573 # Set $? to STATUS, without forking.
16574 as_fn_set_status ()
16577 } # as_fn_set_status
16579 # as_fn_exit STATUS
16580 # -----------------
16581 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16585 as_fn_set_status $1
16591 # Portably unset VAR.
16594 { eval $1=; unset $1;}
16596 as_unset=as_fn_unset
16597 # as_fn_append VAR VALUE
16598 # ----------------------
16599 # Append the text in VALUE to the end of the definition contained in VAR. Take
16600 # advantage of any shell optimizations that allow amortized linear growth over
16601 # repeated appends, instead of the typical quadratic growth present in naive
16603 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16604 eval 'as_fn_append ()
16615 # as_fn_arith ARG...
16616 # ------------------
16617 # Perform arithmetic evaluation on the ARGs, and store the result in the
16618 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16619 # must be portable across $(()) and expr.
16620 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16621 eval 'as_fn_arith ()
16628 as_val=`expr "$@" || test $? -eq 1`
16633 if expr a : '\(a\)' >/dev/null 2>&1 &&
16634 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16640 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16641 as_basename=basename
16646 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16652 as_me=`$as_basename -- "$0" ||
16653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16654 X"$0" : 'X\(//\)$' \| \
16655 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16657 sed '/^.*\/\([^/][^/]*\)\/*$/{
16671 # Avoid depending upon Character Ranges.
16672 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16673 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16674 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16675 as_cr_digits='0123456789'
16676 as_cr_alnum=$as_cr_Letters$as_cr_digits
16678 ECHO_C= ECHO_N= ECHO_T=
16679 case `echo -n x` in #(((((
16681 case `echo 'xy\c'` in
16682 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16684 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16691 rm -f conf$$ conf$$.exe conf$$.file
16692 if test -d conf$$.dir; then
16693 rm -f conf$$.dir/conf$$.file
16696 mkdir conf$$.dir 2>/dev/null
16698 if (echo >conf$$.file) 2>/dev/null; then
16699 if ln -s conf$$.file conf$$ 2>/dev/null; then
16701 # ... but there are two gotchas:
16702 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16703 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16704 # In both cases, we have to default to `cp -pR'.
16705 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16707 elif ln conf$$.file conf$$ 2>/dev/null; then
16715 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16716 rmdir conf$$.dir 2>/dev/null
16721 # Create "$as_dir" as a directory, including parents if necessary.
16726 -*) as_dir=./$as_dir;;
16728 test -d "$as_dir" || eval $as_mkdir_p || {
16732 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16733 *) as_qdir=$as_dir;;
16735 as_dirs="'$as_qdir' $as_dirs"
16736 as_dir=`$as_dirname -- "$as_dir" ||
16737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16738 X"$as_dir" : 'X\(//\)[^/]' \| \
16739 X"$as_dir" : 'X\(//\)$' \| \
16740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16741 $as_echo X"$as_dir" |
16742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16746 /^X\(\/\/\)[^/].*/{
16759 test -d "$as_dir" && break
16761 test -z "$as_dirs" || eval "mkdir $as_dirs"
16762 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16766 if mkdir -p . 2>/dev/null; then
16767 as_mkdir_p='mkdir -p "$as_dir"'
16769 test -d ./-p && rmdir ./-p
16774 # as_fn_executable_p FILE
16775 # -----------------------
16776 # Test if FILE is an executable regular file.
16777 as_fn_executable_p ()
16779 test -f "$1" && test -x "$1"
16780 } # as_fn_executable_p
16781 as_test_x='test -x'
16782 as_executable_p=as_fn_executable_p
16784 # Sed expression to map a string onto a valid CPP name.
16785 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16787 # Sed expression to map a string onto a valid variable name.
16788 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16792 ## ----------------------------------- ##
16793 ## Main body of $CONFIG_STATUS script. ##
16794 ## ----------------------------------- ##
16796 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16799 # Save the log message, to keep $0 and so on meaningful, and to
16800 # report actual input values of CONFIG_FILES etc. instead of their
16801 # values after options handling.
16803 This file was extended by expat $as_me 2.2.2, which was
16804 generated by GNU Autoconf 2.69. Invocation command line was
16806 CONFIG_FILES = $CONFIG_FILES
16807 CONFIG_HEADERS = $CONFIG_HEADERS
16808 CONFIG_LINKS = $CONFIG_LINKS
16809 CONFIG_COMMANDS = $CONFIG_COMMANDS
16812 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16817 case $ac_config_files in *"
16818 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16821 case $ac_config_headers in *"
16822 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16827 # Files that config.status was made for.
16828 config_files="$ac_config_files"
16829 config_headers="$ac_config_headers"
16830 config_commands="$ac_config_commands"
16834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16836 \`$as_me' instantiates files and other configuration actions
16837 from templates according to the current configuration. Unless the files
16838 and actions are specified as TAGs, all are instantiated by default.
16840 Usage: $0 [OPTION]... [TAG]...
16842 -h, --help print this help, then exit
16843 -V, --version print version number and configuration settings, then exit
16844 --config print configuration, then exit
16845 -q, --quiet, --silent
16846 do not print progress messages
16847 -d, --debug don't remove temporary files
16848 --recheck update $as_me by reconfiguring in the same conditions
16849 --file=FILE[:TEMPLATE]
16850 instantiate the configuration file FILE
16851 --header=FILE[:TEMPLATE]
16852 instantiate the configuration header FILE
16854 Configuration files:
16857 Configuration headers:
16860 Configuration commands:
16863 Report bugs to <expat-bugs@libexpat.org>."
16866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16867 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16869 expat config.status 2.2.2
16870 configured by $0, generated by GNU Autoconf 2.69,
16871 with options \\"\$ac_cs_config\\"
16873 Copyright (C) 2012 Free Software Foundation, Inc.
16874 This config.status script is free software; the Free Software Foundation
16875 gives unlimited permission to copy, distribute and modify it."
16881 test -n "\$AWK" || AWK=awk
16884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16885 # The default lists apply if the user does not specify any file.
16891 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16892 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16896 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16908 # Handling of the options.
16909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16911 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16912 $as_echo "$ac_cs_version"; exit ;;
16913 --config | --confi | --conf | --con | --co | --c )
16914 $as_echo "$ac_cs_config"; exit ;;
16915 --debug | --debu | --deb | --de | --d | -d )
16917 --file | --fil | --fi | --f )
16920 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16921 '') as_fn_error $? "missing file argument" ;;
16923 as_fn_append CONFIG_FILES " '$ac_optarg'"
16924 ac_need_defaults=false;;
16925 --header | --heade | --head | --hea )
16928 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16930 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16931 ac_need_defaults=false;;
16933 # Conflict between --help and --header
16934 as_fn_error $? "ambiguous option: \`$1'
16935 Try \`$0 --help' for more information.";;
16936 --help | --hel | -h )
16937 $as_echo "$ac_cs_usage"; exit ;;
16938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16942 # This is an error.
16943 -*) as_fn_error $? "unrecognized option: \`$1'
16944 Try \`$0 --help' for more information." ;;
16946 *) as_fn_append ac_config_targets " $1"
16947 ac_need_defaults=false ;;
16953 ac_configure_extra_args=
16955 if $ac_cs_silent; then
16957 ac_configure_extra_args="$ac_configure_extra_args --silent"
16961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16962 if \$ac_cs_recheck; then
16963 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16965 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16966 CONFIG_SHELL='$SHELL'
16967 export CONFIG_SHELL
16972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16977 ## Running $as_me. ##
16983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16989 # The HP-UX ksh and POSIX shell print the target directory to stdout
16990 # if CDPATH is set.
16991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16993 sed_quote_subst='$sed_quote_subst'
16994 double_quote_subst='$double_quote_subst'
16995 delay_variable_subst='$delay_variable_subst'
16996 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16997 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16998 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16999 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17000 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17001 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17002 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17003 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17004 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17005 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17006 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17007 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17008 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17009 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17010 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17011 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17012 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17013 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17014 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17015 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17016 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17017 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17018 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17019 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17020 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17021 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17022 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17023 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17024 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17025 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17026 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17027 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17028 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17029 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17030 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17031 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17032 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17033 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17034 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17035 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17036 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17037 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17038 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17039 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17040 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17041 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17042 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17043 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17044 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17045 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17046 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17047 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17048 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17049 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17050 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17051 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17052 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17053 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17054 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17055 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"`'
17056 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17057 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17058 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17059 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17060 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17061 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17062 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17063 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17064 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17065 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17066 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17067 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17068 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17069 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17070 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17071 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17072 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17073 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17074 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17075 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17076 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17077 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17078 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17079 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17080 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17081 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17082 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17083 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17084 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17085 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17086 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17087 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17088 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17089 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17090 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17091 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17092 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17093 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17094 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17095 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17096 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17097 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17098 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17099 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17100 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17101 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17102 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17103 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17104 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17105 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17106 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17107 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17108 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17109 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17110 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17111 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17112 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17113 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17114 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17115 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17116 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17117 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17118 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17119 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17120 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17121 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17122 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17123 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17124 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17125 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17126 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17127 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17128 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17129 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17130 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17131 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17132 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17133 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17134 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17135 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17136 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17137 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17138 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17139 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17140 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17141 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17142 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17143 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17144 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17145 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17146 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17147 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17148 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17149 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17150 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17151 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17152 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17153 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17154 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17155 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17156 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17157 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17158 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17159 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17160 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17161 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17162 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17163 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17164 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17165 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17166 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17167 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17168 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17169 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17170 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17171 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17172 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17173 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17174 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17175 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17176 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17177 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17178 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17179 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17180 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17181 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17182 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17183 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17184 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17185 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17188 LTCFLAGS='$LTCFLAGS'
17189 compiler='$compiler_DEFAULT'
17191 # A function that is used when there is no print builtin or printf.
17192 func_fallback_echo ()
17194 eval 'cat <<_LTECHO_EOF
17199 # Quote evaled strings.
17216 deplibs_check_method \
17220 sharedlib_from_linklib_cmd \
17223 archiver_list_spec \
17229 lt_cv_sys_global_symbol_pipe \
17230 lt_cv_sys_global_symbol_to_cdecl \
17231 lt_cv_sys_global_symbol_to_import \
17232 lt_cv_sys_global_symbol_to_c_name_address \
17233 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17234 lt_cv_nm_interface \
17235 nm_file_list_spec \
17236 lt_cv_truncate_bin \
17237 lt_prog_compiler_no_builtin_flag \
17238 lt_prog_compiler_pic \
17239 lt_prog_compiler_wl \
17240 lt_prog_compiler_static \
17241 lt_cv_prog_compiler_c_o \
17250 export_dynamic_flag_spec \
17251 whole_archive_flag_spec \
17252 compiler_needs_object \
17254 allow_undefined_flag \
17255 no_undefined_flag \
17256 hardcode_libdir_flag_spec \
17257 hardcode_libdir_separator \
17261 variables_saved_for_relink \
17263 library_names_spec \
17265 install_override_mode \
17269 compiler_lib_search_dirs \
17274 compiler_lib_search_path \
17278 lt_prog_compiler_no_builtin_flag_CXX \
17279 lt_prog_compiler_pic_CXX \
17280 lt_prog_compiler_wl_CXX \
17281 lt_prog_compiler_static_CXX \
17282 lt_cv_prog_compiler_c_o_CXX \
17283 export_dynamic_flag_spec_CXX \
17284 whole_archive_flag_spec_CXX \
17285 compiler_needs_object_CXX \
17287 allow_undefined_flag_CXX \
17288 no_undefined_flag_CXX \
17289 hardcode_libdir_flag_spec_CXX \
17290 hardcode_libdir_separator_CXX \
17291 exclude_expsyms_CXX \
17292 include_expsyms_CXX \
17293 file_list_spec_CXX \
17294 compiler_lib_search_dirs_CXX \
17295 predep_objects_CXX \
17296 postdep_objects_CXX \
17299 compiler_lib_search_path_CXX; do
17300 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17301 *[\\\\\\\`\\"\\\$]*)
17302 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17305 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17310 # Double-quote double-evaled strings.
17311 for var in reload_cmds \
17312 old_postinstall_cmds \
17313 old_postuninstall_cmds \
17315 extract_expsyms_cmds \
17316 old_archive_from_new_cmds \
17317 old_archive_from_expsyms_cmds \
17319 archive_expsym_cmds \
17321 module_expsym_cmds \
17322 export_symbols_cmds \
17326 postuninstall_cmds \
17328 sys_lib_search_path_spec \
17329 configure_time_dlsearch_path \
17330 configure_time_lt_sys_library_path \
17332 old_archive_cmds_CXX \
17333 old_archive_from_new_cmds_CXX \
17334 old_archive_from_expsyms_cmds_CXX \
17336 archive_expsym_cmds_CXX \
17338 module_expsym_cmds_CXX \
17339 export_symbols_cmds_CXX \
17341 postlink_cmds_CXX; do
17342 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17343 *[\\\\\\\`\\"\\\$]*)
17344 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17347 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17352 ac_aux_dir='$ac_aux_dir'
17354 # See if we are running on zsh, and set the options that allow our
17355 # commands through without removal of \ escapes INIT.
17356 if test -n "\${ZSH_VERSION+set}"; then
17357 setopt NO_GLOB_SUBST
17373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17375 # Handling of arguments.
17376 for ac_config_target in $ac_config_targets
17378 case $ac_config_target in
17379 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
17380 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17381 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17382 "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
17383 "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
17385 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17390 # If the user did not use the arguments to specify the items to instantiate,
17391 # then the envvar interface is used. Set only those that are not.
17392 # We use the long form for the default assignment because of an extremely
17393 # bizarre bug on SunOS 4.1.3.
17394 if $ac_need_defaults; then
17395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17397 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17400 # Have a temporary directory for convenience. Make it in the build tree
17401 # simply because there is no reason against having it here, and in addition,
17402 # creating and moving files from /tmp can sometimes cause problems.
17403 # Hook for its removal unless debugging.
17404 # Note that there is a small window in which the directory will not be cleaned:
17405 # after its creation but before its name has been assigned to `$tmp'.
17409 trap 'exit_status=$?
17410 : "${ac_tmp:=$tmp}"
17411 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17413 trap 'as_fn_exit 1' 1 2 13 15
17415 # Create a (secure) tmp directory for tmp files.
17418 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17422 tmp=./conf$$-$RANDOM
17423 (umask 077 && mkdir "$tmp")
17424 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17427 # Set up the scripts for CONFIG_FILES section.
17428 # No need to generate them if there are no CONFIG_FILES.
17429 # This happens for instance with `./config.status config.h'.
17430 if test -n "$CONFIG_FILES"; then
17433 ac_cr=`echo X | tr X '\015'`
17434 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17435 # But we know of no other shell where ac_cr would be empty at this
17436 # point, so we can use a bashism as a fallback.
17437 if test "x$ac_cr" = x; then
17438 eval ac_cr=\$\'\\r\'
17440 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17441 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17444 ac_cs_awk_cr=$ac_cr
17447 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17452 echo "cat >conf$$subs.awk <<_ACEOF" &&
17453 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17455 } >conf$$subs.sh ||
17456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17457 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17459 for ac_last_try in false false false false false :; do
17460 . ./conf$$subs.sh ||
17461 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17463 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17464 if test $ac_delim_n = $ac_delim_num; then
17466 elif $ac_last_try; then
17467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17472 rm -f conf$$subs.sh
17474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17475 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17479 s/^/S["/; s/!.*/"]=/
17489 s/\(.\{148\}\)..*/\1/
17491 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17496 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17503 s/\(.\{148\}\)..*/\1/
17505 s/["\\]/\\&/g; s/^/"/; s/$/"/
17509 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17514 ' <conf$$subs.awk | sed '
17519 ' >>$CONFIG_STATUS || ac_write_fail=1
17520 rm -f conf$$subs.awk
17521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17523 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17524 for (key in S) S_is_set[key] = 1
17530 nfields = split(line, field, "@")
17532 len = length(field[1])
17533 for (i = 2; i < nfields; i++) {
17535 keylen = length(key)
17536 if (S_is_set[key]) {
17538 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17539 len += length(value) + length(field[++i])
17550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17551 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17552 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17555 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17556 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17559 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17560 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17561 # trailing colons and then remove the whole line if VPATH becomes empty
17562 # (actually we leave an empty line to preserve line numbers).
17563 if test "x$srcdir" = x.; then
17564 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17583 fi # test -n "$CONFIG_FILES"
17585 # Set up the scripts for CONFIG_HEADERS section.
17586 # No need to generate them if there are no CONFIG_HEADERS.
17587 # This happens for instance with `./config.status Makefile'.
17588 if test -n "$CONFIG_HEADERS"; then
17589 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17593 # Transform confdefs.h into an awk script `defines.awk', embedded as
17594 # here-document in config.status, that substitutes the proper values into
17595 # config.h.in to produce config.h.
17597 # Create a delimiter string that does not exist in confdefs.h, to ease
17598 # handling of long lines.
17600 for ac_last_try in false false :; do
17601 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17602 if test -z "$ac_tt"; then
17604 elif $ac_last_try; then
17605 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17611 # For the awk script, D is an array of macro values keyed by name,
17612 # likewise P contains macro parameters if any. Preserve backslash
17613 # newline sequences.
17615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17617 s/.\{148\}/&'"$ac_delim"'/g
17620 s/^[ ]*#[ ]*define[ ][ ]*/ /
17627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17629 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17634 D["\1"]=" \3\\\\\\n"\\/p
17636 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17641 s/.\{148\}/&'"$ac_delim"'/g
17646 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17649 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17651 ' <confdefs.h | sed '
17652 s/'"$ac_delim"'/"\\\
17653 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17656 for (key in D) D_is_set[key] = 1
17659 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17661 split(line, arg, " ")
17662 if (arg[1] == "#") {
17666 defundef = substr(arg[1], 2)
17669 split(mac1, mac2, "(") #)
17671 prefix = substr(line, 1, index(line, defundef) - 1)
17672 if (D_is_set[macro]) {
17673 # Preserve the white space surrounding the "#".
17674 print prefix "define", macro P[macro] D[macro]
17677 # Replace #undef with comments. This is necessary, for example,
17678 # in the case of _POSIX_SOURCE, which is predefined and required
17679 # on some systems where configure will not decide to define it.
17680 if (defundef == "undef") {
17681 print "/*", prefix defundef, macro, "*/"
17689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17690 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17691 fi # test -n "$CONFIG_HEADERS"
17694 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17699 :[FHLC]) ac_mode=$ac_tag; continue;;
17701 case $ac_mode$ac_tag in
17703 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17704 :[FH]-) ac_tag=-:-;;
17705 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17722 -) ac_f="$ac_tmp/stdin";;
17723 *) # Look for the file first in the build tree, then in the source tree
17724 # (if the path is not absolute). The absolute path cannot be DOS-style,
17725 # because $ac_f cannot contain `:'.
17729 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17731 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17733 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17734 as_fn_append ac_file_inputs " '$ac_f'"
17737 # Let's still pretend it is `configure' which instantiates (i.e., don't
17738 # use $as_me), people would be surprised to read:
17739 # /* config.h. Generated by config.status. */
17740 configure_input='Generated from '`
17741 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17743 if test x"$ac_file" != x-; then
17744 configure_input="$ac_file. $configure_input"
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17746 $as_echo "$as_me: creating $ac_file" >&6;}
17748 # Neutralize special characters interpreted by sed in replacement strings.
17749 case $configure_input in #(
17750 *\&* | *\|* | *\\* )
17751 ac_sed_conf_input=`$as_echo "$configure_input" |
17752 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17753 *) ac_sed_conf_input=$configure_input;;
17757 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17763 ac_dir=`$as_dirname -- "$ac_file" ||
17764 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17765 X"$ac_file" : 'X\(//\)[^/]' \| \
17766 X"$ac_file" : 'X\(//\)$' \| \
17767 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17768 $as_echo X"$ac_file" |
17769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17773 /^X\(\/\/\)[^/].*/{
17786 as_dir="$ac_dir"; as_fn_mkdir_p
17790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17792 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17793 # A ".." for each directory in $ac_dir_suffix.
17794 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17795 case $ac_top_builddir_sub in
17796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17800 ac_abs_top_builddir=$ac_pwd
17801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17802 # for backward compatibility:
17803 ac_top_builddir=$ac_top_build_prefix
17806 .) # We are building in place.
17808 ac_top_srcdir=$ac_top_builddir_sub
17809 ac_abs_top_srcdir=$ac_pwd ;;
17810 [\\/]* | ?:[\\/]* ) # Absolute name.
17811 ac_srcdir=$srcdir$ac_dir_suffix;
17812 ac_top_srcdir=$srcdir
17813 ac_abs_top_srcdir=$srcdir ;;
17814 *) # Relative name.
17815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17816 ac_top_srcdir=$ac_top_build_prefix$srcdir
17817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17829 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17830 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17835 # If the template does not know about datarootdir, expand it.
17836 # FIXME: This hack should be removed a few years after 2.60.
17837 ac_datarootdir_hack=; ac_datarootdir_seen=
17848 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17849 *datarootdir*) ac_datarootdir_seen=yes;;
17850 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17852 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17855 ac_datarootdir_hack='
17856 s&@datadir@&$datadir&g
17857 s&@docdir@&$docdir&g
17858 s&@infodir@&$infodir&g
17859 s&@localedir@&$localedir&g
17860 s&@mandir@&$mandir&g
17861 s&\\\${datarootdir}&$datarootdir&g' ;;
17865 # Neutralize VPATH when `$srcdir' = `.'.
17866 # Shell code in configure.ac might set extrasub.
17867 # FIXME: do we really want to maintain this feature?
17868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17869 ac_sed_extra="$ac_vpsub
17872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17875 s|@configure_input@|$ac_sed_conf_input|;t t
17876 s&@top_builddir@&$ac_top_builddir_sub&;t t
17877 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17878 s&@srcdir@&$ac_srcdir&;t t
17879 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17880 s&@top_srcdir@&$ac_top_srcdir&;t t
17881 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17882 s&@builddir@&$ac_builddir&;t t
17883 s&@abs_builddir@&$ac_abs_builddir&;t t
17884 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17885 s&@INSTALL@&$ac_INSTALL&;t t
17886 $ac_datarootdir_hack
17888 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17889 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17892 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17893 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17894 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17896 which seems to be undefined. Please make sure it is defined" >&5
17897 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17898 which seems to be undefined. Please make sure it is defined" >&2;}
17900 rm -f "$ac_tmp/stdin"
17902 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17903 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17911 if test x"$ac_file" != x-; then
17913 $as_echo "/* $configure_input */" \
17914 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17915 } >"$ac_tmp/config.h" \
17916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17917 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17919 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17922 mv "$ac_tmp/config.h" "$ac_file" \
17923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17926 $as_echo "/* $configure_input */" \
17927 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17928 || as_fn_error $? "could not create -" "$LINENO" 5
17932 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17933 $as_echo "$as_me: executing $ac_file commands" >&6;}
17938 case $ac_file$ac_mode in
17941 # See if we are running on zsh, and set the options that allow our
17942 # commands through without removal of \ escapes.
17943 if test -n "${ZSH_VERSION+set}"; then
17944 setopt NO_GLOB_SUBST
17948 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17951 cat <<_LT_EOF >> "$cfgfile"
17953 # Generated automatically by $as_me ($PACKAGE) $VERSION
17954 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17955 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17957 # Provide generalized library-building support services.
17958 # Written by Gordon Matzigkeit, 1996
17960 # Copyright (C) 2014 Free Software Foundation, Inc.
17961 # This is free software; see the source for copying conditions. There is NO
17962 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17964 # GNU Libtool is free software; you can redistribute it and/or modify
17965 # it under the terms of the GNU General Public License as published by
17966 # the Free Software Foundation; either version 2 of of the License, or
17967 # (at your option) any later version.
17969 # As a special exception to the GNU General Public License, if you
17970 # distribute this file as part of a program or library that is built
17971 # using GNU Libtool, you may include this file under the same
17972 # distribution terms that you use for the rest of that program.
17974 # GNU Libtool is distributed in the hope that it will be useful, but
17975 # WITHOUT ANY WARRANTY; without even the implied warranty of
17976 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17977 # GNU General Public License for more details.
17979 # You should have received a copy of the GNU General Public License
17980 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17983 # The names of the tagged configurations supported by this script.
17984 available_tags='CXX '
17986 # Configured defaults for sys_lib_dlsearch_path munging.
17987 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17989 # ### BEGIN LIBTOOL CONFIG
17991 # Assembler program.
17994 # DLL creation program.
17995 DLLTOOL=$lt_DLLTOOL
17997 # Object dumper program.
17998 OBJDUMP=$lt_OBJDUMP
18000 # Which release of libtool.m4 was used?
18001 macro_version=$macro_version
18002 macro_revision=$macro_revision
18004 # Whether or not to build shared libraries.
18005 build_libtool_libs=$enable_shared
18007 # Whether or not to build static libraries.
18008 build_old_libs=$enable_static
18010 # What type of objects to build.
18013 # Whether or not to optimize for fast installation.
18014 fast_install=$enable_fast_install
18016 # Shared archive member basename,for filename based shared library versioning on AIX.
18017 shared_archive_member_spec=$shared_archive_member_spec
18019 # Shell to use when invoking shell scripts.
18022 # An echo program that protects backslashes.
18025 # The PATH separator for the build system.
18026 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18029 host_alias=$host_alias
18033 # The build system.
18034 build_alias=$build_alias
18038 # A sed program that does not truncate output.
18041 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18042 Xsed="\$SED -e 1s/^X//"
18044 # A grep program that handles long lines.
18050 # A literal string matcher.
18053 # A BSD- or MS-compatible name lister.
18056 # Whether we need soft or hard links.
18059 # What is the maximum length of a command?
18060 max_cmd_len=$max_cmd_len
18062 # Object file suffix (normally "o").
18065 # Executable file suffix (normally "").
18068 # whether the shell understands "unset".
18071 # turn spaces into newlines.
18074 # turn newlines into spaces.
18077 # convert \$build file names to \$host format.
18078 to_host_file_cmd=$lt_cv_to_host_file_cmd
18080 # convert \$build files to toolchain format.
18081 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18083 # Method to check whether dependent libraries are shared objects.
18084 deplibs_check_method=$lt_deplibs_check_method
18086 # Command to use when deplibs_check_method = "file_magic".
18087 file_magic_cmd=$lt_file_magic_cmd
18089 # How to find potential files when deplibs_check_method = "file_magic".
18090 file_magic_glob=$lt_file_magic_glob
18092 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18093 want_nocaseglob=$lt_want_nocaseglob
18095 # Command to associate shared and link libraries.
18096 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18101 # Flags to create an archive.
18102 AR_FLAGS=$lt_AR_FLAGS
18104 # How to feed a file listing to the archiver.
18105 archiver_list_spec=$lt_archiver_list_spec
18107 # A symbol stripping program.
18110 # Commands used to install an old-style archive.
18112 old_postinstall_cmds=$lt_old_postinstall_cmds
18113 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18115 # Whether to use a lock for old archive extraction.
18116 lock_old_archive_extraction=$lock_old_archive_extraction
18121 # LTCC compiler flags.
18122 LTCFLAGS=$lt_CFLAGS
18124 # Take the output of nm and produce a listing of raw symbols and C names.
18125 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18127 # Transform the output of nm in a proper C declaration.
18128 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18130 # Transform the output of nm into a list of symbols to manually relocate.
18131 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18133 # Transform the output of nm in a C name address pair.
18134 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18136 # Transform the output of nm in a C name address pair when lib prefix is needed.
18137 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18139 # The name lister interface.
18140 nm_interface=$lt_lt_cv_nm_interface
18142 # Specify filename containing input files for \$NM.
18143 nm_file_list_spec=$lt_nm_file_list_spec
18145 # The root where to search for dependent libraries,and where our libraries should be installed.
18146 lt_sysroot=$lt_sysroot
18148 # Command to truncate a binary pipe.
18149 lt_truncate_bin=$lt_lt_cv_truncate_bin
18151 # The name of the directory that contains temporary libtool files.
18154 # Used to examine libraries when file_magic_cmd begins with "file".
18155 MAGIC_CMD=$MAGIC_CMD
18157 # Must we lock files when doing compilation?
18158 need_locks=$lt_need_locks
18161 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18163 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18164 DSYMUTIL=$lt_DSYMUTIL
18166 # Tool to change global to local symbols on Mac OS X.
18169 # Tool to manipulate fat objects and archives on Mac OS X.
18172 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18175 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18176 OTOOL64=$lt_OTOOL64
18178 # Old archive suffix (normally "a").
18181 # Shared library suffix (normally ".so").
18182 shrext_cmds=$lt_shrext_cmds
18184 # The commands to extract the exported symbol list from a shared archive.
18185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18187 # Variables whose values should be saved in libtool wrapper scripts and
18188 # restored at link time.
18189 variables_saved_for_relink=$lt_variables_saved_for_relink
18191 # Do we need the "lib" prefix for modules?
18192 need_lib_prefix=$need_lib_prefix
18194 # Do we need a version for libraries?
18195 need_version=$need_version
18197 # Library versioning type.
18198 version_type=$version_type
18200 # Shared library runtime path variable.
18201 runpath_var=$runpath_var
18203 # Shared library path variable.
18204 shlibpath_var=$shlibpath_var
18206 # Is shlibpath searched before the hard-coded library search path?
18207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18209 # Format of library name prefix.
18210 libname_spec=$lt_libname_spec
18212 # List of archive names. First name is the real one, the rest are links.
18213 # The last name is the one that the linker finds with -lNAME
18214 library_names_spec=$lt_library_names_spec
18216 # The coded name of the library, if different from the real name.
18217 soname_spec=$lt_soname_spec
18219 # Permission mode override for installation of shared libraries.
18220 install_override_mode=$lt_install_override_mode
18222 # Command to use after installation of a shared archive.
18223 postinstall_cmds=$lt_postinstall_cmds
18225 # Command to use after uninstallation of a shared archive.
18226 postuninstall_cmds=$lt_postuninstall_cmds
18228 # Commands used to finish a libtool library installation in a directory.
18229 finish_cmds=$lt_finish_cmds
18231 # As "finish_cmds", except a single script fragment to be evaled but
18233 finish_eval=$lt_finish_eval
18235 # Whether we should hardcode library paths into libraries.
18236 hardcode_into_libs=$hardcode_into_libs
18238 # Compile-time system search path for libraries.
18239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18241 # Detected run-time system search path for libraries.
18242 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18244 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18245 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18247 # Whether dlopen is supported.
18248 dlopen_support=$enable_dlopen
18250 # Whether dlopen of programs is supported.
18251 dlopen_self=$enable_dlopen_self
18253 # Whether dlopen of statically linked programs is supported.
18254 dlopen_self_static=$enable_dlopen_self_static
18256 # Commands to strip libraries.
18257 old_striplib=$lt_old_striplib
18258 striplib=$lt_striplib
18261 # The linker used to build libraries.
18264 # How to create reloadable object files.
18265 reload_flag=$lt_reload_flag
18266 reload_cmds=$lt_reload_cmds
18268 # Commands used to build an old-style archive.
18269 old_archive_cmds=$lt_old_archive_cmds
18271 # A language specific compiler.
18274 # Is the compiler the GNU compiler?
18277 # Compiler flag to turn off builtin functions.
18278 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18280 # Additional compiler flags for building library objects.
18281 pic_flag=$lt_lt_prog_compiler_pic
18283 # How to pass a linker flag through the compiler.
18284 wl=$lt_lt_prog_compiler_wl
18286 # Compiler flag to prevent dynamic linking.
18287 link_static_flag=$lt_lt_prog_compiler_static
18289 # Does compiler simultaneously support -c and -o options?
18290 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18292 # Whether or not to add -lc for building shared libraries.
18293 build_libtool_need_lc=$archive_cmds_need_lc
18295 # Whether or not to disallow shared libs when runtime libs are static.
18296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18298 # Compiler flag to allow reflexive dlopens.
18299 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18301 # Compiler flag to generate shared objects directly from archives.
18302 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18304 # Whether the compiler copes with passing no objects directly.
18305 compiler_needs_object=$lt_compiler_needs_object
18307 # Create an old-style archive from a shared archive.
18308 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18310 # Create a temporary old-style archive to link instead of a shared archive.
18311 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18313 # Commands used to build a shared archive.
18314 archive_cmds=$lt_archive_cmds
18315 archive_expsym_cmds=$lt_archive_expsym_cmds
18317 # Commands used to build a loadable module if different from building
18318 # a shared archive.
18319 module_cmds=$lt_module_cmds
18320 module_expsym_cmds=$lt_module_expsym_cmds
18322 # Whether we are building with GNU ld or not.
18323 with_gnu_ld=$lt_with_gnu_ld
18325 # Flag that allows shared libraries with undefined symbols to be built.
18326 allow_undefined_flag=$lt_allow_undefined_flag
18328 # Flag that enforces no undefined symbols.
18329 no_undefined_flag=$lt_no_undefined_flag
18331 # Flag to hardcode \$libdir into a binary during linking.
18332 # This must work even if \$libdir does not exist
18333 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18335 # Whether we need a single "-rpath" flag with a separated argument.
18336 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18338 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18339 # DIR into the resulting binary.
18340 hardcode_direct=$hardcode_direct
18342 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18343 # DIR into the resulting binary and the resulting library dependency is
18344 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18345 # library is relocated.
18346 hardcode_direct_absolute=$hardcode_direct_absolute
18348 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18349 # into the resulting binary.
18350 hardcode_minus_L=$hardcode_minus_L
18352 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18353 # into the resulting binary.
18354 hardcode_shlibpath_var=$hardcode_shlibpath_var
18356 # Set to "yes" if building a shared library automatically hardcodes DIR
18357 # into the library and all subsequent libraries and executables linked
18359 hardcode_automatic=$hardcode_automatic
18361 # Set to yes if linker adds runtime paths of dependent libraries
18362 # to runtime path list.
18363 inherit_rpath=$inherit_rpath
18365 # Whether libtool must link a program against all its dependency libraries.
18366 link_all_deplibs=$link_all_deplibs
18368 # Set to "yes" if exported symbols are required.
18369 always_export_symbols=$always_export_symbols
18371 # The commands to list exported symbols.
18372 export_symbols_cmds=$lt_export_symbols_cmds
18374 # Symbols that should not be listed in the preloaded symbols.
18375 exclude_expsyms=$lt_exclude_expsyms
18377 # Symbols that must always be exported.
18378 include_expsyms=$lt_include_expsyms
18380 # Commands necessary for linking programs (against libraries) with templates.
18381 prelink_cmds=$lt_prelink_cmds
18383 # Commands necessary for finishing linking programs.
18384 postlink_cmds=$lt_postlink_cmds
18386 # Specify filename containing input files.
18387 file_list_spec=$lt_file_list_spec
18389 # How to hardcode a shared library path into an executable.
18390 hardcode_action=$hardcode_action
18392 # The directories searched by this compiler when creating a shared library.
18393 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18395 # Dependencies to place before and after the objects being linked to
18396 # create a shared library.
18397 predep_objects=$lt_predep_objects
18398 postdep_objects=$lt_postdep_objects
18399 predeps=$lt_predeps
18400 postdeps=$lt_postdeps
18402 # The library search path used internally by the compiler when linking
18403 # a shared library.
18404 compiler_lib_search_path=$lt_compiler_lib_search_path
18406 # ### END LIBTOOL CONFIG
18410 cat <<'_LT_EOF' >> "$cfgfile"
18412 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18414 # func_munge_path_list VARIABLE PATH
18415 # -----------------------------------
18416 # VARIABLE is name of variable containing _space_ separated list of
18417 # directories to be munged by the contents of PATH, which is string
18420 # string "DIR[ DIR]" will be prepended to VARIABLE
18422 # string "DIR[ DIR]" will be appended to VARIABLE
18423 # "DIRP[:DIRP]::[DIRA:]DIRA"
18424 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18425 # "DIRA[ DIRA]" will be appended to VARIABLE
18427 # VARIABLE will be replaced by "DIR[ DIR]"
18428 func_munge_path_list ()
18434 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18437 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18440 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18441 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18444 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18450 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18451 func_cc_basename ()
18453 for cc_temp in $*""; do
18455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18461 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18465 # ### END FUNCTIONS SHARED WITH CONFIGURE
18471 cat <<\_LT_EOF >> "$cfgfile"
18472 # AIX sometimes has problems with the GCC collect2 program. For some
18473 # reason, if we set the COLLECT_NAMES environment variable, the problems
18474 # vanish in a puff of smoke.
18475 if test set != "${COLLECT_NAMES+set}"; then
18477 export COLLECT_NAMES
18484 ltmain=$ac_aux_dir/ltmain.sh
18487 # We use sed instead of cat because bash on DJGPP gets confused if
18488 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18489 # text mode, it properly converts lines to CR/LF. This bash problem
18490 # is reportedly fixed, but why not run on old versions too?
18491 sed '$q' "$ltmain" >> "$cfgfile" \
18492 || (rm -f "$cfgfile"; exit 1)
18494 mv -f "$cfgfile" "$ofile" ||
18495 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18499 cat <<_LT_EOF >> "$ofile"
18501 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18503 # The linker used to build libraries.
18506 # How to create reloadable object files.
18507 reload_flag=$lt_reload_flag_CXX
18508 reload_cmds=$lt_reload_cmds_CXX
18510 # Commands used to build an old-style archive.
18511 old_archive_cmds=$lt_old_archive_cmds_CXX
18513 # A language specific compiler.
18514 CC=$lt_compiler_CXX
18516 # Is the compiler the GNU compiler?
18519 # Compiler flag to turn off builtin functions.
18520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18522 # Additional compiler flags for building library objects.
18523 pic_flag=$lt_lt_prog_compiler_pic_CXX
18525 # How to pass a linker flag through the compiler.
18526 wl=$lt_lt_prog_compiler_wl_CXX
18528 # Compiler flag to prevent dynamic linking.
18529 link_static_flag=$lt_lt_prog_compiler_static_CXX
18531 # Does compiler simultaneously support -c and -o options?
18532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18534 # Whether or not to add -lc for building shared libraries.
18535 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18537 # Whether or not to disallow shared libs when runtime libs are static.
18538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18540 # Compiler flag to allow reflexive dlopens.
18541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18543 # Compiler flag to generate shared objects directly from archives.
18544 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18546 # Whether the compiler copes with passing no objects directly.
18547 compiler_needs_object=$lt_compiler_needs_object_CXX
18549 # Create an old-style archive from a shared archive.
18550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18552 # Create a temporary old-style archive to link instead of a shared archive.
18553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18555 # Commands used to build a shared archive.
18556 archive_cmds=$lt_archive_cmds_CXX
18557 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18559 # Commands used to build a loadable module if different from building
18560 # a shared archive.
18561 module_cmds=$lt_module_cmds_CXX
18562 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18564 # Whether we are building with GNU ld or not.
18565 with_gnu_ld=$lt_with_gnu_ld_CXX
18567 # Flag that allows shared libraries with undefined symbols to be built.
18568 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18570 # Flag that enforces no undefined symbols.
18571 no_undefined_flag=$lt_no_undefined_flag_CXX
18573 # Flag to hardcode \$libdir into a binary during linking.
18574 # This must work even if \$libdir does not exist
18575 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18577 # Whether we need a single "-rpath" flag with a separated argument.
18578 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18580 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18581 # DIR into the resulting binary.
18582 hardcode_direct=$hardcode_direct_CXX
18584 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18585 # DIR into the resulting binary and the resulting library dependency is
18586 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18587 # library is relocated.
18588 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18590 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18591 # into the resulting binary.
18592 hardcode_minus_L=$hardcode_minus_L_CXX
18594 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18595 # into the resulting binary.
18596 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18598 # Set to "yes" if building a shared library automatically hardcodes DIR
18599 # into the library and all subsequent libraries and executables linked
18601 hardcode_automatic=$hardcode_automatic_CXX
18603 # Set to yes if linker adds runtime paths of dependent libraries
18604 # to runtime path list.
18605 inherit_rpath=$inherit_rpath_CXX
18607 # Whether libtool must link a program against all its dependency libraries.
18608 link_all_deplibs=$link_all_deplibs_CXX
18610 # Set to "yes" if exported symbols are required.
18611 always_export_symbols=$always_export_symbols_CXX
18613 # The commands to list exported symbols.
18614 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18616 # Symbols that should not be listed in the preloaded symbols.
18617 exclude_expsyms=$lt_exclude_expsyms_CXX
18619 # Symbols that must always be exported.
18620 include_expsyms=$lt_include_expsyms_CXX
18622 # Commands necessary for linking programs (against libraries) with templates.
18623 prelink_cmds=$lt_prelink_cmds_CXX
18625 # Commands necessary for finishing linking programs.
18626 postlink_cmds=$lt_postlink_cmds_CXX
18628 # Specify filename containing input files.
18629 file_list_spec=$lt_file_list_spec_CXX
18631 # How to hardcode a shared library path into an executable.
18632 hardcode_action=$hardcode_action_CXX
18634 # The directories searched by this compiler when creating a shared library.
18635 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18637 # Dependencies to place before and after the objects being linked to
18638 # create a shared library.
18639 predep_objects=$lt_predep_objects_CXX
18640 postdep_objects=$lt_postdep_objects_CXX
18641 predeps=$lt_predeps_CXX
18642 postdeps=$lt_postdeps_CXX
18644 # The library search path used internally by the compiler when linking
18645 # a shared library.
18646 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18648 # ### END LIBTOOL TAG CONFIG: CXX
18652 "run.sh":F) chmod +x run.sh ;;
18660 ac_clean_files=$ac_clean_files_save
18662 test $ac_write_fail = 0 ||
18663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18666 # configure is writing to config.log, and then calls config.status.
18667 # config.status does its own redirection, appending to config.log.
18668 # Unfortunately, on DOS this fails, as config.log is still kept open
18669 # by configure, so config.status won't be able to write to it; its
18670 # output is simply discarded. So we exec the FD to /dev/null,
18671 # effectively closing config.log, so it can be properly (re)opened and
18672 # appended to by config.status. When coming back to configure, we
18673 # need to make the FD available again.
18674 if test "$no_create" != yes; then
18676 ac_config_status_args=
18677 test "$silent" = yes &&
18678 ac_config_status_args="$ac_config_status_args --quiet"
18680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18683 # would make configure fail if this is the last instruction.
18684 $ac_cs_success || as_fn_exit 1
18686 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18688 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18692 abs_srcdir="`cd $srcdir && pwd`"
18693 abs_builddir="`pwd`"
18694 if test "$abs_srcdir" != "$abs_builddir"; then