2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Automated Testing Framework 0.16.
5 # Report bugs to <atf-devel@NetBSD.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
16 # Copyright (c) 2007-2012 The NetBSD Foundation, Inc.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
31 case `(set -o) 2>/dev/null` in #(
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59 as_echo_n='/usr/ucb/echo -n'
61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
66 expr "X$arg" : "X\\(.*\\)$as_nl";
67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72 as_echo_n='sh -c $as_echo_n_body as_echo'
75 as_echo='sh -c $as_echo_body as_echo'
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
95 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 # Unset variables that we do not need and which cause bugs (e.g. in
121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122 # suppresses any "Segmentation fault" message there. '((' could
123 # trigger a bug in pdksh 5.2.14.
124 for as_var in BASH_ENV ENV MAIL MAILPATH
125 do eval test x\${$as_var+set} = xset \
126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 case \`(set -o) 2>/dev/null\` in #(
158 as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172 exitcode=1; echo positional parameters were not saved.
174 test x\$exitcode = x0 || exit 1"
175 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
180 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
181 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184 PATH=/empty FPATH=/empty; export PATH FPATH
185 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
186 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null; then :
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 test -z "$as_dir" && as_dir=.
205 for as_base in sh bash ksh sh5; do
206 # Try only shells that exist, to save several forks.
207 as_shell=$as_dir/$as_base
208 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 CONFIG_SHELL=$as_shell as_have_required=yes
211 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
219 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
221 CONFIG_SHELL=$SHELL as_have_required=yes
226 if test "x$CONFIG_SHELL" != x; then :
227 # We cannot yet assume a decent shell, so we have to provide a
228 # neutralization value for shells without unset; and this also
229 # works around shells that cannot unset nonexistent variables.
230 # Preserve -v and -x to the replacement shell.
233 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
236 *v*x* | *x*v* ) as_opts=-vx ;;
241 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
244 if test x$as_have_required = xno; then :
245 $as_echo "$0: This script requires a shell more modern than all"
246 $as_echo "$0: the shells that I found on your system."
247 if test x${ZSH_VERSION+set} = xset ; then
248 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
249 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
251 $as_echo "$0: Please tell bug-autoconf@gnu.org and
252 $0: atf-devel@NetBSD.org about your system, including any
253 $0: error possibly output before this message. Then install
254 $0: a modern shell, or manually run the script under such a
255 $0: shell if you do have one."
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Unset more variables known to interfere with behavior of common tools.
264 CLICOLOR_FORCE= GREP_OPTIONS=
265 unset CLICOLOR_FORCE GREP_OPTIONS
267 ## --------------------- ##
268 ## M4sh Shell Functions. ##
269 ## --------------------- ##
272 # Portably unset VAR.
275 { eval $1=; unset $1;}
279 # as_fn_set_status STATUS
280 # -----------------------
281 # Set $? to STATUS, without forking.
289 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
299 # Create "$as_dir" as a directory, including parents if necessary.
304 -*) as_dir=./$as_dir;;
306 test -d "$as_dir" || eval $as_mkdir_p || {
310 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
313 as_dirs="'$as_qdir' $as_dirs"
314 as_dir=`$as_dirname -- "$as_dir" ||
315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
316 X"$as_dir" : 'X\(//\)[^/]' \| \
317 X"$as_dir" : 'X\(//\)$' \| \
318 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
319 $as_echo X"$as_dir" |
320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
337 test -d "$as_dir" && break
339 test -z "$as_dirs" || eval "mkdir $as_dirs"
340 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
344 # as_fn_append VAR VALUE
345 # ----------------------
346 # Append the text in VALUE to the end of the definition contained in VAR. Take
347 # advantage of any shell optimizations that allow amortized linear growth over
348 # repeated appends, instead of the typical quadratic growth present in naive
350 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
351 eval 'as_fn_append ()
364 # Perform arithmetic evaluation on the ARGs, and store the result in the
365 # global $as_val. Take advantage of shells that can avoid forks. The arguments
366 # must be portable across $(()) and expr.
367 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
375 as_val=`expr "$@" || test $? -eq 1`
380 # as_fn_error STATUS ERROR [LINENO LOG_FD]
381 # ----------------------------------------
382 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
383 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
384 # script with STATUS, using 1 if that was 0.
387 as_status=$1; test $as_status -eq 0 && as_status=1
389 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
390 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
392 $as_echo "$as_me: error: $2" >&2
393 as_fn_exit $as_status
396 if expr a : '\(a\)' >/dev/null 2>&1 &&
397 test "X`expr 00001 : '.*\(...\)'`" = X001; then
403 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
409 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
415 as_me=`$as_basename -- "$0" ||
416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
417 X"$0" : 'X\(//\)$' \| \
418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
420 sed '/^.*\/\([^/][^/]*\)\/*$/{
434 # Avoid depending upon Character Ranges.
435 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
436 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
437 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
438 as_cr_digits='0123456789'
439 as_cr_alnum=$as_cr_Letters$as_cr_digits
442 as_lineno_1=$LINENO as_lineno_1a=$LINENO
443 as_lineno_2=$LINENO as_lineno_2a=$LINENO
444 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
445 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
446 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
458 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
462 chmod +x "$as_me.lineno" ||
463 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
465 # Don't try to exec as it changes $[0], causing all sort of problems
466 # (the dirname of $[0] is not the place where we might find the
467 # original and so on. Autoconf is especially sensitive to this).
469 # Exit status is that of the last command.
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in #(((((
476 case `echo 'xy\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
491 mkdir conf$$.dir 2>/dev/null
493 if (echo >conf$$.file) 2>/dev/null; then
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511 rmdir conf$$.dir 2>/dev/null
513 if mkdir -p . 2>/dev/null; then
514 as_mkdir_p='mkdir -p "$as_dir"'
516 test -d ./-p && rmdir ./-p
520 if test -x / >/dev/null 2>&1; then
523 if ls -dL / >/dev/null 2>&1; then
530 if test -d "$1"; then
536 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
537 ???[sx]*):;;*)false;;esac;fi
541 as_executable_p=$as_test_x
543 # Sed expression to map a string onto a valid CPP name.
544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546 # Sed expression to map a string onto a valid variable name.
547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549 SHELL=${CONFIG_SHELL-/bin/sh}
552 test -n "$DJDIR" || exec 7<&0 </dev/null
556 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix=/usr/local
565 ac_config_libobj_dir=.
572 # Identity of this package.
573 PACKAGE_NAME='Automated Testing Framework'
574 PACKAGE_TARNAME='atf'
575 PACKAGE_VERSION='0.16'
576 PACKAGE_STRING='Automated Testing Framework 0.16'
577 PACKAGE_BUGREPORT='atf-devel@NetBSD.org'
578 PACKAGE_URL='http://code.google.com/p/kyua/wiki/ATF'
580 ac_unique_file="atf-c.h"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
617 ac_subst_vars='am__EXEEXT_FALSE
647 ATTRIBUTE_FORMAT_PRINTF
705 INSTALL_STRIP_PROGRAM
759 program_transform_name
772 enable_option_checking
777 enable_dependency_tracking
784 ac_precious_vars='build_alias
808 # Initialize some variables set by options.
810 ac_init_version=false
811 ac_unrecognized_opts=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
822 program_transform_name=s,x,x,
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir='${datarootdir}/info'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 # Accept the important Cygnus configure options, so we can diagnose typos.
875 case $ac_dashdash$ac_option in
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
897 cache_file=config.cache ;;
899 -datadir | --datadir | --datadi | --datad)
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
911 -disable-* | --disable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
925 eval enable_$ac_useropt=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
951 eval enable_$ac_useropt=\$ac_optarg ;;
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
966 -help | --help | --hel | --he | -h)
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 htmldir=$ac_optarg ;;
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
996 -libdir | --libdir | --libdi | --libd)
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1087 -psdir | --psdir | --psdi | --psd | --ps)
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 sbindir=$ac_optarg ;;
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 sharedstatedir=$ac_optarg ;;
1113 -site | --site | --sit)
1115 -site=* | --site=* | --sit=*)
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1155 eval with_$ac_useropt=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1171 eval with_$ac_useropt=no ;;
1174 # Obsolete; use --with-x.
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1191 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information"
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 as_fn_error $? "missing argument to $ac_option"
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 # Check all directory arguments for consistency.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1242 # Be sure to have absolute directory names.
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1255 target=$target_alias
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
1261 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1262 If a cross compiler is detected then cross compile mode will be used" >&2
1263 elif test "x$build_alias" != "x$host_alias"; then
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271 test "$silent" = yes && exec 6>/dev/null
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1314 ac_srcdir_defaulted=no
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1348 \`configure' configures Automated Testing Framework 0.16 to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/atf]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 --target=TARGET configure for building compilers for TARGET [HOST]
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of Automated Testing Framework 0.16:";;
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-shared[=PKGS] build shared libraries [default=yes]
1428 --enable-static[=PKGS] build static libraries [default=yes]
1429 --enable-fast-install[=PKGS]
1430 optimize for fast installation [default=yes]
1431 --disable-dependency-tracking speeds up one-time build
1432 --enable-dependency-tracking do not reject slow dependency extractors
1433 --disable-libtool-lock avoid locking (might break parallel builds)
1434 --enable-tools Enables the build of the deprecated ATF tools
1435 --enable-developer enable developer features
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-sysroot=DIR Search for dependent libraries within DIR
1444 (or the compiler's sysroot if not specified).
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1455 CXX C++ compiler command
1456 CXXFLAGS C++ compiler flags
1457 CXXCPP C++ preprocessor
1459 C compiler to use at runtime
1461 C compiler flags to use at runtime
1463 C/C++ preprocessor to use at runtime
1465 C/C++ preprocessor flags to use at runtime
1467 C++ compiler to use at runtime
1469 C++ compiler flags to use at runtime
1471 Subdirectory of sysconfdir under which to look for files
1472 ATF_WORKDIR Default location to use for ATF work directories
1473 ATF_SHELL Location of the POSIX shell interpreter to use
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 Report bugs to <atf-devel@NetBSD.org>.
1479 Automated Testing Framework home page: <http://code.google.com/p/kyua/wiki/ATF>.
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1509 .) # We are building in place.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1542 Automated Testing Framework configure 0.16
1543 generated by GNU Autoconf 2.68
1545 Copyright (C) 2010 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1549 Copyright (c) 2007-2012 The NetBSD Foundation, Inc.
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_compile
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest$ac_exeext
1603 if { { ac_try="$ac_link"
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_link") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest$ac_exeext && {
1622 test "$cross_compiling" = yes ||
1623 $as_test_x conftest$ac_exeext
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634 # interfere with the next link command; also delete a directory that is
1635 # left behind by Apple's compiler. We do this before executing the actions.
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_link
1642 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists and can be compiled using the include files in
1645 # INCLUDES, setting the cache variable VAR accordingly.
1646 ac_fn_c_check_header_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if eval \${$3+:} false; then :
1652 $as_echo_n "(cached) " >&6
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1659 if ac_fn_c_try_compile "$LINENO"; then :
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 } # ac_fn_c_check_header_compile
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1744 ac_retval=$ac_status
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1752 # ac_fn_c_check_func LINENO FUNC VAR
1753 # ----------------------------------
1754 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1755 ac_fn_c_check_func ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1767 #define $2 innocuous_$2
1769 /* System header to define __stub macros and hopefully few prototypes,
1770 which can conflict with char $2 (); below.
1771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1772 <limits.h> exists even on freestanding compilers. */
1775 # include <limits.h>
1777 # include <assert.h>
1782 /* Override any GCC internal prototype to avoid an error.
1783 Use char because int might match the return type of a GCC
1784 builtin and then its argument prototype would still apply. */
1789 /* The GNU C library defines this for functions which it implements
1790 to always fail with ENOSYS. Some functions are actually named
1791 something starting with __ and the normal name is an alias. */
1792 #if defined __stub_$2 || defined __stub___$2
1804 if ac_fn_c_try_link "$LINENO"; then :
1809 rm -f core conftest.err conftest.$ac_objext \
1810 conftest$ac_exeext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 } # ac_fn_c_check_func
1819 # ac_fn_cxx_try_compile LINENO
1820 # ----------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_cxx_try_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_cxx_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_cxx_try_compile
1857 # ac_fn_cxx_try_cpp LINENO
1858 # ------------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_cxx_try_cpp ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_cpp conftest.$ac_ext"
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } > conftest.i && {
1879 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1880 test ! -s conftest.err
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_cxx_try_cpp
1894 # ac_fn_cxx_try_link LINENO
1895 # -------------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_link ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_cxx_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 $as_test_x conftest$ac_exeext
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_cxx_try_link
1940 # ac_fn_cxx_try_run LINENO
1941 # ------------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1943 # that executables *can* be run.
1944 ac_fn_cxx_try_run ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if { { ac_try="$ac_link"
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>&5
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1958 { { case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_try") 2>&5
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; }; }; then :
1970 $as_echo "$as_me: program exited with status $ac_status" >&5
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1974 ac_retval=$ac_status
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1980 } # ac_fn_cxx_try_run
1982 # ac_fn_cxx_check_func LINENO FUNC VAR
1983 # ------------------------------------
1984 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1985 ac_fn_cxx_check_func ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1997 #define $2 innocuous_$2
1999 /* System header to define __stub macros and hopefully few prototypes,
2000 which can conflict with char $2 (); below.
2001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2002 <limits.h> exists even on freestanding compilers. */
2005 # include <limits.h>
2007 # include <assert.h>
2012 /* Override any GCC internal prototype to avoid an error.
2013 Use char because int might match the return type of a GCC
2014 builtin and then its argument prototype would still apply. */
2019 /* The GNU C library defines this for functions which it implements
2020 to always fail with ENOSYS. Some functions are actually named
2021 something starting with __ and the normal name is an alias. */
2022 #if defined __stub_$2 || defined __stub___$2
2034 if ac_fn_cxx_try_link "$LINENO"; then :
2039 rm -f core conftest.err conftest.$ac_objext \
2040 conftest$ac_exeext conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047 } # ac_fn_cxx_check_func
2049 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2050 # ---------------------------------------------
2051 # Tests whether TYPE exists after having included INCLUDES, setting cache
2052 # variable VAR accordingly.
2053 ac_fn_cxx_check_type ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059 $as_echo_n "(cached) " >&6
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2074 if ac_fn_cxx_try_compile "$LINENO"; then :
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2087 if ac_fn_cxx_try_compile "$LINENO"; then :
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 } # ac_fn_cxx_check_type
2102 cat >config.log <<_ACEOF
2103 This file contains any messages produced by compilers while
2104 running configure, to aid debugging if configure makes a mistake.
2106 It was created by Automated Testing Framework $as_me 0.16, which was
2107 generated by GNU Autoconf 2.68. Invocation command line was
2119 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2120 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2121 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2122 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2123 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2125 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2126 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2128 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2129 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2130 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2131 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2132 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2133 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2134 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 test -z "$as_dir" && as_dir=.
2143 $as_echo "PATH: $as_dir"
2159 # Keep a trace of the command line.
2160 # Strip out --no-create and --no-recursion so they do not pile up.
2161 # Strip out --silent because we don't want to record it for future runs.
2162 # Also quote any args containing shell meta-characters.
2163 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_must_keep_next=false
2173 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2175 | -silent | --silent | --silen | --sile | --sil)
2178 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2183 as_fn_append ac_configure_args1 " '$ac_arg'"
2184 if test $ac_must_keep_next = true; then
2185 ac_must_keep_next=false # Got value, back to normal.
2188 *=* | --config-cache | -C | -disable-* | --disable-* \
2189 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2190 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2191 | -with-* | --with-* | -without-* | --without-* | --x)
2192 case "$ac_configure_args0 " in
2193 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196 -* ) ac_must_keep_next=true ;;
2199 as_fn_append ac_configure_args " '$ac_arg'"
2204 { ac_configure_args0=; unset ac_configure_args0;}
2205 { ac_configure_args1=; unset ac_configure_args1;}
2207 # When interrupted or exit'd, cleanup temporary files, and complete
2208 # config.log. We remove comments because anyway the quotes in there
2209 # would cause problems or look ugly.
2210 # WARNING: Use '\'' to represent an apostrophe within the trap.
2211 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2212 trap 'exit_status=$?
2213 # Save into config.log some information that might help in debugging.
2217 $as_echo "## ---------------- ##
2218 ## Cache variables. ##
2219 ## ---------------- ##"
2221 # The following way of writing the cache mishandles newlines in values,
2223 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2224 eval ac_val=\$$ac_var
2228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2232 _ | IFS | as_nl) ;; #(
2233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2234 *) { eval $ac_var=; unset $ac_var;} ;;
2239 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2240 *${as_nl}ac_space=\ *)
2242 "s/'\''/'\''\\\\'\'''\''/g;
2243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2253 $as_echo "## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##"
2257 for ac_var in $ac_subst_vars
2259 eval ac_val=\$$ac_var
2261 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 $as_echo "$ac_var='\''$ac_val'\''"
2267 if test -n "$ac_subst_files"; then
2268 $as_echo "## ------------------- ##
2269 ## File substitutions. ##
2270 ## ------------------- ##"
2272 for ac_var in $ac_subst_files
2274 eval ac_val=\$$ac_var
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 $as_echo "$ac_var='\''$ac_val'\''"
2283 if test -s confdefs.h; then
2284 $as_echo "## ----------- ##
2291 test "$ac_signal" != 0 &&
2292 $as_echo "$as_me: caught signal $ac_signal"
2293 $as_echo "$as_me: exit $exit_status"
2295 rm -f core *.core core.conftest.* &&
2296 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2299 for ac_signal in 1 2 13 15; do
2300 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2305 rm -f -r conftest* confdefs.h
2307 $as_echo "/* confdefs.h */" > confdefs.h
2309 # Predefined preprocessor variables.
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_NAME "$PACKAGE_NAME"
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_STRING "$PACKAGE_STRING"
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_URL "$PACKAGE_URL"
2336 # Let the site file select an alternate cache file if it wants to.
2337 # Prefer an explicitly selected file to automatically selected ones.
2340 if test -n "$CONFIG_SITE"; then
2341 # We do not want a PATH search for config.site.
2342 case $CONFIG_SITE in #((
2343 -*) ac_site_file1=./$CONFIG_SITE;;
2344 */*) ac_site_file1=$CONFIG_SITE;;
2345 *) ac_site_file1=./$CONFIG_SITE;;
2347 elif test "x$prefix" != xNONE; then
2348 ac_site_file1=$prefix/share/config.site
2349 ac_site_file2=$prefix/etc/config.site
2351 ac_site_file1=$ac_default_prefix/share/config.site
2352 ac_site_file2=$ac_default_prefix/etc/config.site
2354 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2356 test "x$ac_site_file" = xNONE && continue
2357 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360 sed 's/^/| /' "$ac_site_file" >&5
2362 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364 as_fn_error $? "failed to load site script $ac_site_file
2365 See \`config.log' for more details" "$LINENO" 5; }
2369 if test -r "$cache_file"; then
2370 # Some versions of bash will fail to source /dev/null (special files
2371 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2372 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2374 $as_echo "$as_me: loading cache $cache_file" >&6;}
2376 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2377 *) . "./$cache_file";;
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2382 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386 # Check that the precious variables saved in the cache have kept the same
2388 ac_cache_corrupted=false
2389 for ac_var in $ac_precious_vars; do
2390 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2391 eval ac_new_set=\$ac_env_${ac_var}_set
2392 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2393 eval ac_new_val=\$ac_env_${ac_var}_value
2394 case $ac_old_set,$ac_new_set in
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2405 if test "x$ac_old_val" != "x$ac_new_val"; then
2406 # differences in whitespace do not lead to failure.
2407 ac_old_val_w=`echo x $ac_old_val`
2408 ac_new_val_w=`echo x $ac_new_val`
2409 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2411 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2412 ac_cache_corrupted=:
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2415 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2416 eval $ac_var=\$ac_old_val
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2419 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2421 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2424 # Pass precious variables to config.status.
2425 if test "$ac_new_set" = set; then
2427 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428 *) ac_arg=$ac_var=$ac_new_val ;;
2430 case " $ac_configure_args " in
2431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2432 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 if $ac_cache_corrupted; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2440 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2441 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2443 ## -------------------- ##
2444 ## Main body of script. ##
2445 ## -------------------- ##
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 $as_echo "#define PACKAGE_COPYRIGHT \"Copyright (c) 2007-2012 The NetBSD Foundation, Inc.\"" >>confdefs.h
2460 for ac_dir in admin "$srcdir"/admin; do
2461 if test -f "$ac_dir/install-sh"; then
2463 ac_install_sh="$ac_aux_dir/install-sh -c"
2465 elif test -f "$ac_dir/install.sh"; then
2467 ac_install_sh="$ac_aux_dir/install.sh -c"
2469 elif test -f "$ac_dir/shtool"; then
2471 ac_install_sh="$ac_aux_dir/shtool install -c"
2475 if test -z "$ac_aux_dir"; then
2476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in admin \"$srcdir\"/admin" "$LINENO" 5
2479 # These three variables are undocumented and unsupported,
2480 # and are intended to be withdrawn in a future Autoconf release.
2481 # They can cause serious problems if a builder's source tree is in a directory
2482 # whose full name contains unusual characters.
2483 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2484 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2485 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2488 ac_config_headers="$ac_config_headers bconfig.h"
2492 ac_config_commands="$ac_config_commands bootstrap/atconfig"
2495 # Make sure we can run config.sub.
2496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2497 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2500 $as_echo_n "checking build system type... " >&6; }
2501 if ${ac_cv_build+:} false; then :
2502 $as_echo_n "(cached) " >&6
2504 ac_build_alias=$build_alias
2505 test "x$ac_build_alias" = x &&
2506 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2507 test "x$ac_build_alias" = x &&
2508 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2509 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2510 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2514 $as_echo "$ac_cv_build" >&6; }
2515 case $ac_cv_build in
2517 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2520 ac_save_IFS=$IFS; IFS='-'
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2530 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2534 $as_echo_n "checking host system type... " >&6; }
2535 if ${ac_cv_host+:} false; then :
2536 $as_echo_n "(cached) " >&6
2538 if test "x$host_alias" = x; then
2539 ac_cv_host=$ac_cv_build
2541 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2542 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2547 $as_echo "$ac_cv_host" >&6; }
2550 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2553 ac_save_IFS=$IFS; IFS='-'
2559 # Remember, the first character of IFS is used to create $*,
2560 # except with old shells:
2563 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2567 $as_echo_n "checking target system type... " >&6; }
2568 if ${ac_cv_target+:} false; then :
2569 $as_echo_n "(cached) " >&6
2571 if test "x$target_alias" = x; then
2572 ac_cv_target=$ac_cv_host
2574 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2580 $as_echo "$ac_cv_target" >&6; }
2581 case $ac_cv_target in
2583 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2585 target=$ac_cv_target
2586 ac_save_IFS=$IFS; IFS='-'
2592 # Remember, the first character of IFS is used to create $*,
2593 # except with old shells:
2596 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2599 # The aliases save the names the user supplied, while $host etc.
2600 # will get canonicalized.
2601 test -n "$target_alias" &&
2602 test "$program_prefix$program_suffix$program_transform_name" = \
2604 program_prefix=${target_alias}-
2606 am__api_version='1.11'
2608 # Find a good install program. We prefer a C program (faster),
2609 # so one script is as good as another. But avoid the broken or
2610 # incompatible versions:
2611 # SysV /etc/install, /usr/sbin/install
2612 # SunOS /usr/etc/install
2613 # IRIX /sbin/install
2615 # AmigaOS /C/install, which installs bootblocks on floppy discs
2616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2619 # OS/2's system install, which has a completely different semantic
2620 # ./install, which can be erroneously created by make from ./install.sh.
2621 # Reject install programs that cannot install multiple files.
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2623 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2624 if test -z "$INSTALL"; then
2625 if ${ac_cv_path_install+:} false; then :
2626 $as_echo_n "(cached) " >&6
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 # Account for people who put trailing slashes in PATH elements.
2634 case $as_dir/ in #((
2635 ./ | .// | /[cC]/* | \
2636 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2637 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2640 # OSF1 and SCO ODT 3.0 have their own names for install.
2641 # Don't use installbsd from OSF since it installs stuff as root
2643 for ac_prog in ginstall scoinst install; do
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2646 if test $ac_prog = install &&
2647 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648 # AIX install. It has an incompatible calling convention.
2650 elif test $ac_prog = install &&
2651 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2652 # program-specific install script used by HP pwplus--don't use.
2655 rm -rf conftest.one conftest.two conftest.dir
2656 echo one > conftest.one
2657 echo two > conftest.two
2659 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2660 test -s conftest.one && test -s conftest.two &&
2661 test -s conftest.dir/conftest.one &&
2662 test -s conftest.dir/conftest.two
2664 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2677 rm -rf conftest.one conftest.two conftest.dir
2680 if test "${ac_cv_path_install+set}" = set; then
2681 INSTALL=$ac_cv_path_install
2683 # As a last resort, use the slow shell script. Don't cache a
2684 # value for INSTALL within a source directory, because that will
2685 # break other packages using the cache if that directory is
2686 # removed, or if the value is a relative name.
2687 INSTALL=$ac_install_sh
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2691 $as_echo "$INSTALL" >&6; }
2693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2694 # It thinks the first close brace ends the variable substitution.
2695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2702 $as_echo_n "checking whether build environment is sane... " >&6; }
2705 echo timestamp > conftest.file
2706 # Reject unsafe characters in $srcdir or the absolute working directory
2707 # name. Accept space and tab only in the latter.
2711 *[\\\"\#\$\&\'\`$am_lf]*)
2712 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2715 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2716 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2719 # Do `set' in a subshell so we don't clobber the current shell's
2720 # arguments. Must try -L first in case configure is actually a
2721 # symlink; some systems play weird games with the mod time of symlinks
2722 # (eg FreeBSD returns the mod time of the symlink's containing
2725 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2726 if test "$*" = "X"; then
2728 set X `ls -t "$srcdir/configure" conftest.file`
2731 if test "$*" != "X $srcdir/configure conftest.file" \
2732 && test "$*" != "X conftest.file $srcdir/configure"; then
2734 # If neither matched, then we have a broken ls. This can happen
2735 # if, for instance, CONFIG_SHELL is bash and it inherits a
2736 # broken ls alias from the environment. This has actually
2737 # happened. Such a system could not be considered "sane".
2738 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2739 alias in your environment" "$LINENO" 5
2742 test "$2" = conftest.file
2748 as_fn_error $? "newly created file is older than distributed files!
2749 Check your system clock" "$LINENO" 5
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752 $as_echo "yes" >&6; }
2753 test "$program_prefix" != NONE &&
2754 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2755 # Use a double $ so make ignores it.
2756 test "$program_suffix" != NONE &&
2757 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2758 # Double any \ or $.
2759 # By default was `s,x,x', remove it if useless.
2760 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2761 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2763 # expand $ac_aux_dir to an absolute path
2764 am_aux_dir=`cd $ac_aux_dir && pwd`
2766 if test x"${MISSING+set}" != xset; then
2769 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2771 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2774 # Use eval to expand $SHELL
2775 if eval "$MISSING --run true"; then
2776 am_missing_run="$MISSING --run "
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2780 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2783 if test x"${install_sh}" != xset; then
2786 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2788 install_sh="\${SHELL} $am_aux_dir/install-sh"
2792 # Installed binaries are usually stripped using `strip' when the user
2793 # run `make install-strip'. However `strip' might not be the right
2794 # tool to use in cross-compilation environments, therefore Automake
2795 # will honor the `STRIP' environment variable to overrule this program.
2796 if test "$cross_compiling" != no; then
2797 if test -n "$ac_tool_prefix"; then
2798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}strip; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_STRIP+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 if test -n "$STRIP"; then
2806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 STRIP=$ac_cv_prog_STRIP
2826 if test -n "$STRIP"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2828 $as_echo "$STRIP" >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2836 if test -z "$ac_cv_prog_STRIP"; then
2838 # Extract the first word of "strip", so it can be a program name with args.
2839 set dummy strip; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$ac_ct_STRIP"; then
2846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_ac_ct_STRIP="strip"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2866 if test -n "$ac_ct_STRIP"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2868 $as_echo "$ac_ct_STRIP" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2874 if test "x$ac_ct_STRIP" = x; then
2877 case $cross_compiling:$ac_tool_warned in
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881 ac_tool_warned=yes ;;
2886 STRIP="$ac_cv_prog_STRIP"
2890 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2893 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2894 if test -z "$MKDIR_P"; then
2895 if ${ac_cv_path_mkdir+:} false; then :
2896 $as_echo_n "(cached) " >&6
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2902 test -z "$as_dir" && as_dir=.
2903 for ac_prog in mkdir gmkdir; do
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2907 'mkdir (GNU coreutils) '* | \
2908 'mkdir (coreutils) '* | \
2909 'mkdir (fileutils) '4.1*)
2910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2920 test -d ./--version && rmdir ./--version
2921 if test "${ac_cv_path_mkdir+set}" = set; then
2922 MKDIR_P="$ac_cv_path_mkdir -p"
2924 # As a last resort, use the slow shell script. Don't cache a
2925 # value for MKDIR_P within a source directory, because that will
2926 # break other packages using the cache if that directory is
2927 # removed, or if the value is a relative name.
2928 MKDIR_P="$ac_install_sh -d"
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2932 $as_echo "$MKDIR_P" >&6; }
2936 [\\/$]* | ?:[\\/]*) ;;
2937 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2940 for ac_prog in gawk mawk nawk awk
2942 # Extract the first word of "$ac_prog", so it can be a program name with args.
2943 set dummy $ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_AWK+:} false; then :
2947 $as_echo_n "(cached) " >&6
2949 if test -n "$AWK"; then
2950 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_AWK="$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 if test -n "$AWK"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2972 $as_echo "$AWK" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2979 test -n "$AWK" && break
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2983 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2985 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2986 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 cat >conftest.make <<\_ACEOF
2992 @echo '@@@%%%=$(MAKE)=@@@%%%'
2994 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2995 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2997 eval ac_cv_prog_make_${ac_make}_set=yes;;
2999 eval ac_cv_prog_make_${ac_make}_set=no;;
3003 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 SET_MAKE="MAKE=${MAKE-make}"
3013 rm -rf .tst 2>/dev/null
3014 mkdir .tst 2>/dev/null
3015 if test -d .tst; then
3020 rmdir .tst 2>/dev/null
3022 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3023 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3024 # is not polluted with repeated "-I."
3025 am__isrc=' -I$(srcdir)'
3026 # test to see if srcdir already configured
3027 if test -f $srcdir/config.status; then
3028 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3032 # test whether we have cygpath
3033 if test -z "$CYGPATH_W"; then
3034 if (cygpath --version) >/dev/null 2>/dev/null; then
3035 CYGPATH_W='cygpath -w'
3042 # Define the identity of the package.
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE "$PACKAGE"
3052 cat >>confdefs.h <<_ACEOF
3053 #define VERSION "$VERSION"
3056 # Some tools Automake needs.
3058 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3061 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3064 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3067 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3070 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3072 # We need awk for the "check" target. The system "awk" is bad on
3074 # Always define AMTAR for backward compatibility. Yes, it's still used
3075 # in the wild :-( We should find a proper way to deprecate it ...
3078 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3088 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3093 macro_version='2.4.2'
3094 macro_revision='1.3337'
3108 ltmain="$ac_aux_dir/ltmain.sh"
3110 # Backslashify metacharacters that are still active within
3111 # double-quoted strings.
3112 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3114 # Same as above, but do not quote variable references.
3115 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3117 # Sed substitution to delay expansion of an escaped shell variable in a
3118 # double_quote_subst'ed string.
3119 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3121 # Sed substitution to delay expansion of an escaped single quote.
3122 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3124 # Sed substitution to avoid accidental globbing in evaled expressions
3125 no_glob_subst='s/\*/\\\*/g'
3127 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3128 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3132 $as_echo_n "checking how to print strings... " >&6; }
3133 # Test print first, because it will be a builtin if present.
3134 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3135 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3137 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3140 # Use this function as a fallback that always works.
3141 func_fallback_echo ()
3143 eval 'cat <<_LTECHO_EOF
3147 ECHO='func_fallback_echo'
3150 # func_echo_all arg...
3151 # Invoke $ECHO with all args, space-separated.
3158 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3159 $as_echo "printf" >&6; } ;;
3160 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3161 $as_echo "print -r" >&6; } ;;
3162 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3163 $as_echo "cat" >&6; } ;;
3179 DEPDIR="${am__leading_dot}deps"
3181 ac_config_commands="$ac_config_commands depfiles"
3184 am_make=${MAKE-make}
3185 cat > confinc << 'END'
3187 @echo this is the am__doit target
3190 # If we don't find an include directive, just comment out the code.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3192 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3196 # First try GNU make style include.
3197 echo "include confinc" > confmf
3198 # Ignore all kinds of additional output from `make'.
3199 case `$am_make -s -f confmf 2> /dev/null` in #(
3200 *the\ am__doit\ target*)
3206 # Now try BSD make style include.
3207 if test "$am__include" = "#"; then
3208 echo '.include "confinc"' > confmf
3209 case `$am_make -s -f confmf 2> /dev/null` in #(
3210 *the\ am__doit\ target*)
3211 am__include=.include
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3220 $as_echo "$_am_result" >&6; }
3221 rm -f confinc confmf
3223 # Check whether --enable-dependency-tracking was given.
3224 if test "${enable_dependency_tracking+set}" = set; then :
3225 enableval=$enable_dependency_tracking;
3228 if test "x$enable_dependency_tracking" != xno; then
3229 am_depcomp="$ac_aux_dir/depcomp"
3233 if test "x$enable_dependency_tracking" != xno; then
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 if test -n "$ac_tool_prefix"; then
3248 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3249 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_CC+:} false; then :
3253 $as_echo_n "(cached) " >&6
3255 if test -n "$CC"; then
3256 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 if test -n "$CC"; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278 $as_echo "$CC" >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3286 if test -z "$ac_cv_prog_CC"; then
3288 # Extract the first word of "gcc", so it can be a program name with args.
3289 set dummy gcc; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3293 $as_echo_n "(cached) " >&6
3295 if test -n "$ac_ct_CC"; then
3296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305 ac_cv_prog_ac_ct_CC="gcc"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3316 if test -n "$ac_ct_CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3318 $as_echo "$ac_ct_CC" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3324 if test "x$ac_ct_CC" = x; then
3327 case $cross_compiling:$ac_tool_warned in
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331 ac_tool_warned=yes ;;
3339 if test -z "$CC"; then
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}cc; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_CC+:} false; then :
3346 $as_echo_n "(cached) " >&6
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC="${ac_tool_prefix}cc"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 if test -n "$CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3380 if test -z "$CC"; then
3381 # Extract the first word of "cc", so it can be a program name with args.
3382 set dummy cc; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if ${ac_cv_prog_CC+:} false; then :
3386 $as_echo_n "(cached) " >&6
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3400 ac_prog_rejected=yes
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 if test $ac_prog_rejected = yes; then
3412 # We found a bogon in the path, so make sure we never use it.
3413 set dummy $ac_cv_prog_CC
3415 if test $# != 0; then
3416 # We chose a different compiler from the bogus one.
3417 # However, it has the same basename, so the bogon will be chosen
3418 # first if we set CC to just the basename; use the full file name.
3420 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3426 if test -n "$CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428 $as_echo "$CC" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3436 if test -z "$CC"; then
3437 if test -n "$ac_tool_prefix"; then
3438 for ac_prog in cl.exe
3440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_prog_CC+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC="$CC" # Let the user override the test.
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 if test -n "$CC"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3477 test -n "$CC" && break
3480 if test -z "$CC"; then
3482 for ac_prog in cl.exe
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3489 $as_echo_n "(cached) " >&6
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_ac_ct_CC="$ac_prog"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3514 $as_echo "$ac_ct_CC" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3521 test -n "$ac_ct_CC" && break
3524 if test "x$ac_ct_CC" = x; then
3527 case $cross_compiling:$ac_tool_warned in
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3531 ac_tool_warned=yes ;;
3540 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error $? "no acceptable C compiler found in \$PATH
3543 See \`config.log' for more details" "$LINENO" 5; }
3545 # Provide some information about the compiler.
3546 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3549 for ac_option in --version -v -V -qversion; do
3550 { { ac_try="$ac_compiler $ac_option >&5"
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3556 $as_echo "$ac_try_echo"; } >&5
3557 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3559 if test -s conftest.err; then
3561 ... rest of stderr output deleted ...
3562 10q' conftest.err >conftest.er1
3563 cat conftest.er1 >&5
3565 rm -f conftest.er1 conftest.err
3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567 test $ac_status = 0; }
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3581 ac_clean_files_save=$ac_clean_files
3582 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3583 # Try to create an executable without -o first, disregard a.out.
3584 # It will help us diagnose broken compilers, and finding out an intuition
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3587 $as_echo_n "checking whether the C compiler works... " >&6; }
3588 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3590 # The possible output files:
3591 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3594 for ac_file in $ac_files
3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3598 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3603 if { { ac_try="$ac_link_default"
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_link_default") 2>&5
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }; then :
3614 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3615 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3616 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3617 # so that the user can short-circuit this test for compilers unknown to
3619 for ac_file in $ac_files ''
3621 test -f "$ac_file" || continue
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3626 # We found the default executable, but exeext='' is most
3630 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3632 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3634 # We set ac_cv_exeext here because the later test for it is not
3635 # safe: cross compilers may not add the suffix if given an `-o'
3636 # argument, so we may need to know it at that point already.
3637 # Even if this section looks crufty: it has the advantage of
3644 test "$ac_cv_exeext" = no && ac_cv_exeext=
3649 if test -z "$ac_file"; then :
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 $as_echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 as_fn_error 77 "C compiler cannot create executables
3658 See \`config.log' for more details" "$LINENO" 5; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3661 $as_echo "yes" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3664 $as_echo_n "checking for C compiler default output file name... " >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3666 $as_echo "$ac_file" >&6; }
3667 ac_exeext=$ac_cv_exeext
3669 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3670 ac_clean_files=$ac_clean_files_save
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3672 $as_echo_n "checking for suffix of executables... " >&6; }
3673 if { { ac_try="$ac_link"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_link") 2>&5
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; then :
3684 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3685 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3686 # work properly (i.e., refer to `conftest.exe'), while it won't with
3688 for ac_file in conftest.exe conftest conftest.*; do
3689 test -f "$ac_file" || continue
3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3692 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3701 See \`config.log' for more details" "$LINENO" 5; }
3703 rm -f conftest conftest$ac_cv_exeext
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3705 $as_echo "$ac_cv_exeext" >&6; }
3707 rm -f conftest.$ac_ext
3708 EXEEXT=$ac_cv_exeext
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3716 FILE *f = fopen ("conftest.out", "w");
3717 return ferror (f) || fclose (f) != 0;
3723 ac_clean_files="$ac_clean_files conftest.out"
3724 # Check that the compiler produces executables we can run. If not, either
3725 # the compiler is broken, or we cross compile.
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3727 $as_echo_n "checking whether we are cross compiling... " >&6; }
3728 if test "$cross_compiling" != yes; then
3729 { { ac_try="$ac_link"
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_link") 2>&5
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }
3740 if { ac_try='./conftest$ac_cv_exeext'
3741 { { case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_try") 2>&5
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }; }; then
3753 if test "$cross_compiling" = maybe; then
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error $? "cannot run C compiled programs.
3759 If you meant to cross compile, use \`--host'.
3760 See \`config.log' for more details" "$LINENO" 5; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3765 $as_echo "$cross_compiling" >&6; }
3767 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3768 ac_clean_files=$ac_clean_files_save
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3770 $as_echo_n "checking for suffix of object files... " >&6; }
3771 if ${ac_cv_objext+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3785 rm -f conftest.o conftest.obj
3786 if { { ac_try="$ac_compile"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793 (eval "$ac_compile") 2>&5
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }; then :
3797 for ac_file in conftest.o conftest.obj conftest.*; do
3798 test -f "$ac_file" || continue;
3800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3801 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3806 $as_echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 as_fn_error $? "cannot compute suffix of object files: cannot compile
3812 See \`config.log' for more details" "$LINENO" 5; }
3814 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3817 $as_echo "$ac_cv_objext" >&6; }
3818 OBJEXT=$ac_cv_objext
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3821 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3822 if ${ac_cv_c_compiler_gnu+:} false; then :
3823 $as_echo_n "(cached) " >&6
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3839 if ac_fn_c_try_compile "$LINENO"; then :
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3849 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3850 if test $ac_compiler_gnu = yes; then
3855 ac_test_CFLAGS=${CFLAGS+set}
3856 ac_save_CFLAGS=$CFLAGS
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3858 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3859 if ${ac_cv_prog_cc_g+:} false; then :
3860 $as_echo_n "(cached) " >&6
3862 ac_save_c_werror_flag=$ac_c_werror_flag
3863 ac_c_werror_flag=yes
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3877 if ac_fn_c_try_compile "$LINENO"; then :
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3892 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_c_werror_flag=$ac_save_c_werror_flag
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3908 if ac_fn_c_try_compile "$LINENO"; then :
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 ac_c_werror_flag=$ac_save_c_werror_flag
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3919 $as_echo "$ac_cv_prog_cc_g" >&6; }
3920 if test "$ac_test_CFLAGS" = set; then
3921 CFLAGS=$ac_save_CFLAGS
3922 elif test $ac_cv_prog_cc_g = yes; then
3923 if test "$GCC" = yes; then
3929 if test "$GCC" = yes; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3936 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3937 if ${ac_cv_prog_cc_c89+:} false; then :
3938 $as_echo_n "(cached) " >&6
3940 ac_cv_prog_cc_c89=no
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3946 #include <sys/types.h>
3947 #include <sys/stat.h>
3948 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3949 struct buf { int x; };
3950 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3951 static char *e (p, i)
3957 static char *f (char * (*g) (char **, int), char **p, ...)
3962 s = g (p, va_arg (v,int));
3967 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3968 function prototypes and stuff, but not '\xHH' hex character constants.
3969 These don't provoke an error unfortunately, instead are silently treated
3970 as 'x'. The following induces an error, until -std is added to get
3971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3972 array size at least. It's necessary to write '\x00'==0 to get something
3973 that's true only with -std. */
3974 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3976 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3977 inside strings and character constants. */
3979 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3981 int test (int i, double x);
3982 struct s1 {int (*f) (int a);};
3983 struct s2 {int (*f) (double a);};
3984 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3990 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3995 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3998 CC="$ac_save_CC $ac_arg"
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_cv_prog_cc_c89=$ac_arg
4002 rm -f core conftest.err conftest.$ac_objext
4003 test "x$ac_cv_prog_cc_c89" != "xno" && break
4005 rm -f conftest.$ac_ext
4010 case "x$ac_cv_prog_cc_c89" in
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4013 $as_echo "none needed" >&6; } ;;
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4016 $as_echo "unsupported" >&6; } ;;
4018 CC="$CC $ac_cv_prog_cc_c89"
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4020 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4022 if test "x$ac_cv_prog_cc_c89" != xno; then :
4027 ac_cpp='$CPP $CPPFLAGS'
4028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4032 depcc="$CC" am_compiler_list=
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4035 $as_echo_n "checking dependency style of $depcc... " >&6; }
4036 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4037 $as_echo_n "(cached) " >&6
4039 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4040 # We make a subdir and do the tests there. Otherwise we can end up
4041 # making bogus files that we don't know about and never remove. For
4042 # instance it was reported that on HP-UX the gcc test will end up
4043 # making a dummy file named `D' -- because `-MD' means `put the output
4047 # Copy depcomp to subdir because otherwise we won't find it if we're
4048 # using a relative directory.
4049 cp "$am_depcomp" conftest.dir
4051 # We will build objects and dependencies in a subdirectory because
4052 # it helps to detect inapplicable dependency modes. For instance
4053 # both Tru64's cc and ICC support -MD to output dependencies as a
4054 # side effect of compilation, but ICC will put the dependencies in
4055 # the current directory while Tru64 will put them in the object
4059 am_cv_CC_dependencies_compiler_type=none
4060 if test "$am_compiler_list" = ""; then
4061 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4064 case " $depcc " in #(
4065 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4068 for depmode in $am_compiler_list; do
4069 # Setup a source with many dependencies, because some compilers
4070 # like to wrap large dependency lists on column 80 (with \), and
4071 # we should not choose a depcomp mode which is confused by this.
4073 # We need to recreate these files for each test, as the compiler may
4074 # overwrite some of them when testing with obscure command lines.
4075 # This happens at least with the AIX C compiler.
4077 for i in 1 2 3 4 5 6; do
4078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4079 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4080 # Solaris 8's {/usr,}/bin/sh.
4081 touch sub/conftst$i.h
4083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4085 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4086 # mode. It turns out that the SunPro C++ compiler does not properly
4087 # handle `-M -o', and we need to detect this. Also, some Intel
4088 # versions had trouble with output in subdirs
4089 am__obj=sub/conftest.${OBJEXT-o}
4090 am__minus_obj="-o $am__obj"
4093 # This depmode causes a compiler race in universal mode.
4094 test "$am__universal" = false || continue
4097 # after this tag, mechanisms are not by side-effect, so they'll
4098 # only be used when explicitly requested
4099 if test "x$enable_dependency_tracking" = xyes; then
4105 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4106 # This compiler won't grok `-c -o', but also, the minuso test has
4107 # not run yet. These depmodes are late enough in the game, and
4108 # so weak that their functioning should not be impacted.
4109 am__obj=conftest.${OBJEXT-o}
4114 if depmode=$depmode \
4115 source=sub/conftest.c object=$am__obj \
4116 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4117 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4118 >/dev/null 2>conftest.err &&
4119 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4120 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4121 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4122 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4123 # icc doesn't choke on unknown options, it will just issue warnings
4124 # or remarks (even with -Werror). So we grep stderr for any message
4125 # that says an option was ignored or not supported.
4126 # When given -MP, icc 7.0 and 7.1 complain thusly:
4127 # icc: Command line warning: ignoring option '-M'; no argument required
4128 # The diagnosis changed in icc 8.0:
4129 # icc: Command line remark: option '-MP' not supported
4130 if (grep 'ignoring option' conftest.err ||
4131 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4132 am_cv_CC_dependencies_compiler_type=$depmode
4141 am_cv_CC_dependencies_compiler_type=none
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4146 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4147 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4150 test "x$enable_dependency_tracking" != xno \
4151 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4153 am__fastdepCC_FALSE='#'
4155 am__fastdepCC_TRUE='#'
4156 am__fastdepCC_FALSE=
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4161 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4162 if ${ac_cv_path_SED+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4166 for ac_i in 1 2 3 4 5 6 7; do
4167 ac_script="$ac_script$as_nl$ac_script"
4169 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4170 { ac_script=; unset ac_script;}
4171 if test -z "$SED"; then
4172 ac_path_SED_found=false
4173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir=.
4179 for ac_prog in sed gsed; do
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4182 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4183 # Check for GNU ac_path_SED and select it if it is found.
4184 # Check for GNU $ac_path_SED
4185 case `"$ac_path_SED" --version 2>&1` in
4187 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4190 $as_echo_n 0123456789 >"conftest.in"
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 $as_echo '' >> "conftest.nl"
4197 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199 as_fn_arith $ac_count + 1 && ac_count=$as_val
4200 if test $ac_count -gt ${ac_path_SED_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_SED="$ac_path_SED"
4203 ac_path_SED_max=$ac_count
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4211 $ac_path_SED_found && break 3
4216 if test -z "$ac_cv_path_SED"; then
4217 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4225 $as_echo "$ac_cv_path_SED" >&6; }
4226 SED="$ac_cv_path_SED"
4229 test -z "$SED" && SED=sed
4230 Xsed="$SED -e 1s/^X//"
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4243 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4244 if ${ac_cv_path_GREP+:} false; then :
4245 $as_echo_n "(cached) " >&6
4247 if test -z "$GREP"; then
4248 ac_path_GREP_found=false
4249 # Loop through the user's path and test for each of PROGNAME-LIST
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4254 test -z "$as_dir" && as_dir=.
4255 for ac_prog in grep ggrep; do
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4258 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4259 # Check for GNU ac_path_GREP and select it if it is found.
4260 # Check for GNU $ac_path_GREP
4261 case `"$ac_path_GREP" --version 2>&1` in
4263 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4266 $as_echo_n 0123456789 >"conftest.in"
4269 cat "conftest.in" "conftest.in" >"conftest.tmp"
4270 mv "conftest.tmp" "conftest.in"
4271 cp "conftest.in" "conftest.nl"
4272 $as_echo 'GREP' >> "conftest.nl"
4273 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4275 as_fn_arith $ac_count + 1 && ac_count=$as_val
4276 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4277 # Best one so far, save it but keep looking for a better one
4278 ac_cv_path_GREP="$ac_path_GREP"
4279 ac_path_GREP_max=$ac_count
4281 # 10*(2^10) chars as input seems more than enough
4282 test $ac_count -gt 10 && break
4284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287 $ac_path_GREP_found && break 3
4292 if test -z "$ac_cv_path_GREP"; then
4293 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4296 ac_cv_path_GREP=$GREP
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4301 $as_echo "$ac_cv_path_GREP" >&6; }
4302 GREP="$ac_cv_path_GREP"
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4306 $as_echo_n "checking for egrep... " >&6; }
4307 if ${ac_cv_path_EGREP+:} false; then :
4308 $as_echo_n "(cached) " >&6
4310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4311 then ac_cv_path_EGREP="$GREP -E"
4313 if test -z "$EGREP"; then
4314 ac_path_EGREP_found=false
4315 # Loop through the user's path and test for each of PROGNAME-LIST
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4320 test -z "$as_dir" && as_dir=.
4321 for ac_prog in egrep; do
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4324 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4325 # Check for GNU ac_path_EGREP and select it if it is found.
4326 # Check for GNU $ac_path_EGREP
4327 case `"$ac_path_EGREP" --version 2>&1` in
4329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4332 $as_echo_n 0123456789 >"conftest.in"
4335 cat "conftest.in" "conftest.in" >"conftest.tmp"
4336 mv "conftest.tmp" "conftest.in"
4337 cp "conftest.in" "conftest.nl"
4338 $as_echo 'EGREP' >> "conftest.nl"
4339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4341 as_fn_arith $ac_count + 1 && ac_count=$as_val
4342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4343 # Best one so far, save it but keep looking for a better one
4344 ac_cv_path_EGREP="$ac_path_EGREP"
4345 ac_path_EGREP_max=$ac_count
4347 # 10*(2^10) chars as input seems more than enough
4348 test $ac_count -gt 10 && break
4350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4353 $ac_path_EGREP_found && break 3
4358 if test -z "$ac_cv_path_EGREP"; then
4359 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4362 ac_cv_path_EGREP=$EGREP
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4368 $as_echo "$ac_cv_path_EGREP" >&6; }
4369 EGREP="$ac_cv_path_EGREP"
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4373 $as_echo_n "checking for fgrep... " >&6; }
4374 if ${ac_cv_path_FGREP+:} false; then :
4375 $as_echo_n "(cached) " >&6
4377 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4378 then ac_cv_path_FGREP="$GREP -F"
4380 if test -z "$FGREP"; then
4381 ac_path_FGREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in fgrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4391 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4392 # Check for GNU ac_path_FGREP and select it if it is found.
4393 # Check for GNU $ac_path_FGREP
4394 case `"$ac_path_FGREP" --version 2>&1` in
4396 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4399 $as_echo_n 0123456789 >"conftest.in"
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'FGREP' >> "conftest.nl"
4406 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_FGREP="$ac_path_FGREP"
4412 ac_path_FGREP_max=$ac_count
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4420 $ac_path_FGREP_found && break 3
4425 if test -z "$ac_cv_path_FGREP"; then
4426 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4429 ac_cv_path_FGREP=$FGREP
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4435 $as_echo "$ac_cv_path_FGREP" >&6; }
4436 FGREP="$ac_cv_path_FGREP"
4439 test -z "$GREP" && GREP=grep
4459 # Check whether --with-gnu-ld was given.
4460 if test "${with_gnu_ld+set}" = set; then :
4461 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4467 if test "$GCC" = yes; then
4468 # Check if gcc -print-prog-name=ld gives a path.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4470 $as_echo_n "checking for ld used by $CC... " >&6; }
4473 # gcc leaves a trailing carriage return which upsets mingw
4474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4479 # Accept absolute paths.
4481 re_direlt='/[^/][^/]*/\.\./'
4482 # Canonicalize the pathname of ld
4483 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4484 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4485 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4487 test -z "$LD" && LD="$ac_prog"
4490 # If it fails, then pretend we aren't using GCC.
4494 # If it is relative, then search for the first ld in PATH.
4498 elif test "$with_gnu_ld" = yes; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4500 $as_echo_n "checking for GNU ld... " >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4503 $as_echo_n "checking for non-GNU ld... " >&6; }
4505 if ${lt_cv_path_LD+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 if test -z "$LD"; then
4509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4510 for ac_dir in $PATH; do
4512 test -z "$ac_dir" && ac_dir=.
4513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4514 lt_cv_path_LD="$ac_dir/$ac_prog"
4515 # Check to see if the program is GNU ld. I'd rather use --version,
4516 # but apparently some variants of GNU ld only accept -v.
4517 # Break only if it was the GNU/non-GNU ld that we prefer.
4518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4519 *GNU* | *'with BFD'*)
4520 test "$with_gnu_ld" != no && break
4523 test "$with_gnu_ld" != yes && break
4530 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4535 if test -n "$LD"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4537 $as_echo "$LD" >&6; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4542 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4544 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4545 if ${lt_cv_prog_gnu_ld+:} false; then :
4546 $as_echo_n "(cached) " >&6
4548 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4549 case `$LD -v 2>&1 </dev/null` in
4550 *GNU* | *'with BFD'*)
4551 lt_cv_prog_gnu_ld=yes
4554 lt_cv_prog_gnu_ld=no
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4559 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4560 with_gnu_ld=$lt_cv_prog_gnu_ld
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4571 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4572 if ${lt_cv_path_NM+:} false; then :
4573 $as_echo_n "(cached) " >&6
4575 if test -n "$NM"; then
4576 # Let the user override the test.
4579 lt_nm_to_check="${ac_tool_prefix}nm"
4580 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4581 lt_nm_to_check="$lt_nm_to_check nm"
4583 for lt_tmp_nm in $lt_nm_to_check; do
4584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4585 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4587 test -z "$ac_dir" && ac_dir=.
4588 tmp_nm="$ac_dir/$lt_tmp_nm"
4589 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4590 # Check to see if the nm accepts a BSD-compat flag.
4591 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4592 # nm: unknown option "B" ignored
4593 # Tru64's nm complains that /dev/null is an invalid object file
4594 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4595 */dev/null* | *'Invalid file or object type'*)
4596 lt_cv_path_NM="$tmp_nm -B"
4600 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4602 lt_cv_path_NM="$tmp_nm -p"
4606 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4607 continue # so that we can try to find one that supports BSD flags
4616 : ${lt_cv_path_NM=no}
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4620 $as_echo "$lt_cv_path_NM" >&6; }
4621 if test "$lt_cv_path_NM" != "no"; then
4624 # Didn't find any BSD compatible name lister, look for dumpbin.
4625 if test -n "$DUMPBIN"; then :
4626 # Let the user override the test.
4628 if test -n "$ac_tool_prefix"; then
4629 for ac_prog in dumpbin "link -dump"
4631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_DUMPBIN+:} false; then :
4636 $as_echo_n "(cached) " >&6
4638 if test -n "$DUMPBIN"; then
4639 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4648 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 DUMPBIN=$ac_cv_prog_DUMPBIN
4659 if test -n "$DUMPBIN"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4661 $as_echo "$DUMPBIN" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4668 test -n "$DUMPBIN" && break
4671 if test -z "$DUMPBIN"; then
4672 ac_ct_DUMPBIN=$DUMPBIN
4673 for ac_prog in dumpbin "link -dump"
4675 # Extract the first word of "$ac_prog", so it can be a program name with args.
4676 set dummy $ac_prog; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4680 $as_echo_n "(cached) " >&6
4682 if test -n "$ac_ct_DUMPBIN"; then
4683 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4703 if test -n "$ac_ct_DUMPBIN"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4705 $as_echo "$ac_ct_DUMPBIN" >&6; }
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4712 test -n "$ac_ct_DUMPBIN" && break
4715 if test "x$ac_ct_DUMPBIN" = x; then
4718 case $cross_compiling:$ac_tool_warned in
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4724 DUMPBIN=$ac_ct_DUMPBIN
4728 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4730 DUMPBIN="$DUMPBIN -symbols"
4738 if test "$DUMPBIN" != ":"; then
4742 test -z "$NM" && NM=nm
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4750 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4751 if ${lt_cv_nm_interface+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 lt_cv_nm_interface="BSD nm"
4755 echo "int some_variable = 0;" > conftest.$ac_ext
4756 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4757 (eval "$ac_compile" 2>conftest.err)
4758 cat conftest.err >&5
4759 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4760 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4761 cat conftest.err >&5
4762 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4763 cat conftest.out >&5
4764 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4765 lt_cv_nm_interface="MS dumpbin"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4770 $as_echo "$lt_cv_nm_interface" >&6; }
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4773 $as_echo_n "checking whether ln -s works... " >&6; }
4775 if test "$LN_S" = "ln -s"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777 $as_echo "yes" >&6; }
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4780 $as_echo "no, using $LN_S" >&6; }
4783 # find the maximum length of command line arguments
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4785 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4786 if ${lt_cv_sys_max_cmd_len+:} false; then :
4787 $as_echo_n "(cached) " >&6
4794 # On DJGPP, this test can blow up pretty badly due to problems in libc
4795 # (any single argument exceeding 2000 bytes causes a buffer overrun
4796 # during glob expansion). Even if it were fixed, the result of this
4797 # check would be larger than it should be.
4798 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4802 # Under GNU Hurd, this test is not required because there is
4803 # no limit to the length of command line arguments.
4804 # Libtool will interpret -1 as no limit whatsoever
4805 lt_cv_sys_max_cmd_len=-1;
4808 cygwin* | mingw* | cegcc*)
4809 # On Win9x/ME, this test blows up -- it succeeds, but takes
4810 # about 5 minutes as the teststring grows exponentially.
4811 # Worse, since 9x/ME are not pre-emptively multitasking,
4812 # you end up with a "frozen" computer, even though with patience
4813 # the test eventually succeeds (with a max line length of 256k).
4814 # Instead, let's just punt: use the minimum linelength reported by
4815 # all of the supported platforms: 8192 (on NT/2K/XP).
4816 lt_cv_sys_max_cmd_len=8192;
4820 # On MiNT this can take a long time and run out of memory.
4821 lt_cv_sys_max_cmd_len=8192;
4825 # On AmigaOS with pdksh, this test takes hours, literally.
4826 # So we just punt and use a minimum line length of 8192.
4827 lt_cv_sys_max_cmd_len=8192;
4830 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4831 # This has been around since 386BSD, at least. Likely further.
4832 if test -x /sbin/sysctl; then
4833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4834 elif test -x /usr/sbin/sysctl; then
4835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4839 # And add a safety zone
4840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4846 lt_cv_sys_max_cmd_len=196608
4850 # The test takes a long time on OS/2.
4851 lt_cv_sys_max_cmd_len=8192
4855 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4856 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4857 # nice to cause kernel panics so lets avoid the loop below.
4858 # First set a reasonable default.
4859 lt_cv_sys_max_cmd_len=16384
4861 if test -x /sbin/sysconfig; then
4862 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4863 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4868 lt_cv_sys_max_cmd_len=102400
4870 sysv5* | sco5v6* | sysv4.2uw2*)
4871 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4872 if test -n "$kargmax"; then
4873 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4875 lt_cv_sys_max_cmd_len=32768
4879 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4880 if test -n "$lt_cv_sys_max_cmd_len"; then
4881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4884 # Make teststring a little bigger before we do anything with it.
4885 # a 1K string should be a reasonable start.
4886 for i in 1 2 3 4 5 6 7 8 ; do
4887 teststring=$teststring$teststring
4889 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4890 # If test is not a shell built-in, we'll probably end up computing a
4891 # maximum length that is only half of the actual maximum length, but
4893 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4894 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4895 test $i != 17 # 1/2 MB should be enough
4898 teststring=$teststring$teststring
4900 # Only check the string length outside the loop.
4901 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4903 # Add a significant safety factor because C++ compilers can tack on
4904 # massive amounts of additional arguments before passing them to the
4905 # linker. It appears as though 1/2 is a usable value.
4906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4913 if test -n $lt_cv_sys_max_cmd_len ; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4915 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4918 $as_echo "none" >&6; }
4920 max_cmd_len=$lt_cv_sys_max_cmd_len
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4932 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4933 # Try some XSI features
4936 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4938 && eval 'test $(( 1 + 1 )) -eq 2 \
4939 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4942 $as_echo "$xsi_shell" >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4946 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4948 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4950 && lt_shell_append=yes
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4952 $as_echo "$lt_shell_append" >&6; }
4955 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4965 # test EBCDIC or ASCII
4966 case `echo X|tr X '\101'` in
4967 A) # ASCII based system
4968 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4969 lt_SP2NL='tr \040 \012'
4970 lt_NL2SP='tr \015\012 \040\040'
4972 *) # EBCDIC based system
4973 lt_SP2NL='tr \100 \n'
4974 lt_NL2SP='tr \r\n \100\100'
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4987 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4988 if ${lt_cv_to_host_file_cmd+:} false; then :
4989 $as_echo_n "(cached) " >&6
4994 *-*-mingw* ) # actually msys
4995 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4998 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5000 * ) # otherwise, assume *nix
5001 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5007 *-*-mingw* ) # actually msys
5008 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5011 lt_cv_to_host_file_cmd=func_convert_file_noop
5013 * ) # otherwise, assume *nix
5014 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5018 * ) # unhandled hosts (and "normal" native builds)
5019 lt_cv_to_host_file_cmd=func_convert_file_noop
5025 to_host_file_cmd=$lt_cv_to_host_file_cmd
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5027 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5034 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5035 if ${lt_cv_to_tool_file_cmd+:} false; then :
5036 $as_echo_n "(cached) " >&6
5038 #assume ordinary cross tools, or native build.
5039 lt_cv_to_tool_file_cmd=func_convert_file_noop
5043 *-*-mingw* ) # actually msys
5044 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5052 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5054 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5061 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5062 if ${lt_cv_ld_reload_flag+:} false; then :
5063 $as_echo_n "(cached) " >&6
5065 lt_cv_ld_reload_flag='-r'
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5068 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5069 reload_flag=$lt_cv_ld_reload_flag
5070 case $reload_flag in
5072 *) reload_flag=" $reload_flag" ;;
5074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5076 cygwin* | mingw* | pw32* | cegcc*)
5077 if test "$GCC" != yes; then
5082 if test "$GCC" = yes; then
5083 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5085 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5098 if test -n "$ac_tool_prefix"; then
5099 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5100 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_prog_OBJDUMP+:} false; then :
5104 $as_echo_n "(cached) " >&6
5106 if test -n "$OBJDUMP"; then
5107 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 OBJDUMP=$ac_cv_prog_OBJDUMP
5127 if test -n "$OBJDUMP"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5129 $as_echo "$OBJDUMP" >&6; }
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5137 if test -z "$ac_cv_prog_OBJDUMP"; then
5138 ac_ct_OBJDUMP=$OBJDUMP
5139 # Extract the first word of "objdump", so it can be a program name with args.
5140 set dummy objdump; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5144 $as_echo_n "(cached) " >&6
5146 if test -n "$ac_ct_OBJDUMP"; then
5147 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5167 if test -n "$ac_ct_OBJDUMP"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5169 $as_echo "$ac_ct_OBJDUMP" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5175 if test "x$ac_ct_OBJDUMP" = x; then
5178 case $cross_compiling:$ac_tool_warned in
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5182 ac_tool_warned=yes ;;
5184 OBJDUMP=$ac_ct_OBJDUMP
5187 OBJDUMP="$ac_cv_prog_OBJDUMP"
5190 test -z "$OBJDUMP" && OBJDUMP=objdump
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5201 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5202 if ${lt_cv_deplibs_check_method+:} false; then :
5203 $as_echo_n "(cached) " >&6
5205 lt_cv_file_magic_cmd='$MAGIC_CMD'
5206 lt_cv_file_magic_test_file=
5207 lt_cv_deplibs_check_method='unknown'
5208 # Need to set the preceding variable on all platforms that support
5209 # interlibrary dependencies.
5210 # 'none' -- dependencies not supported.
5211 # `unknown' -- same as none, but documents that we really don't know.
5212 # 'pass_all' -- all dependencies passed with no checks.
5213 # 'test_compile' -- check by making test program.
5214 # 'file_magic [[regex]]' -- check by looking for files in library path
5215 # which responds to the $file_magic_cmd with a given extended regex.
5216 # If you have `file' or equivalent on your system and you're not sure
5217 # whether `pass_all' will *always* work, you probably want this one.
5221 lt_cv_deplibs_check_method=pass_all
5225 lt_cv_deplibs_check_method=pass_all
5229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5230 lt_cv_file_magic_cmd='/usr/bin/file -L'
5231 lt_cv_file_magic_test_file=/shlib/libc.so
5235 # func_win32_libid is a shell function defined in ltmain.sh
5236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237 lt_cv_file_magic_cmd='func_win32_libid'
5241 # Base MSYS/MinGW do not provide the 'file' command needed by
5242 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5243 # unless we find 'file', for example because we are cross-compiling.
5244 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5245 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5247 lt_cv_file_magic_cmd='func_win32_libid'
5249 # Keep this pattern in sync with the one in func_win32_libid.
5250 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5251 lt_cv_file_magic_cmd='$OBJDUMP -f'
5256 # use the weaker test based on 'objdump'. See mingw*.
5257 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5258 lt_cv_file_magic_cmd='$OBJDUMP -f'
5261 darwin* | rhapsody*)
5262 lt_cv_deplibs_check_method=pass_all
5265 freebsd* | dragonfly*)
5266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5269 # Not sure whether the presence of OpenBSD here was a mistake.
5270 # Let's accept both of them until this is cleared up.
5271 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5272 lt_cv_file_magic_cmd=/usr/bin/file
5273 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5277 lt_cv_deplibs_check_method=pass_all
5282 lt_cv_deplibs_check_method=pass_all
5286 lt_cv_deplibs_check_method=pass_all
5289 hpux10.20* | hpux11*)
5290 lt_cv_file_magic_cmd=/usr/bin/file
5293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5294 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5297 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]'
5298 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5302 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5308 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5312 irix5* | irix6* | nonstopux*)
5314 *-32|*"-32 ") libmagic=32-bit;;
5315 *-n32|*"-n32 ") libmagic=N32;;
5316 *-64|*"-64 ") libmagic=64-bit;;
5317 *) libmagic=never-match;;
5319 lt_cv_deplibs_check_method=pass_all
5322 # This must be glibc/ELF.
5323 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5324 lt_cv_deplibs_check_method=pass_all
5328 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5337 lt_cv_file_magic_cmd=/usr/bin/file
5338 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5342 lt_cv_deplibs_check_method=pass_all
5346 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5353 osf3* | osf4* | osf5*)
5354 lt_cv_deplibs_check_method=pass_all
5358 lt_cv_deplibs_check_method=pass_all
5362 lt_cv_deplibs_check_method=pass_all
5365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5366 lt_cv_deplibs_check_method=pass_all
5370 case $host_vendor in
5372 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]'
5373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5376 lt_cv_deplibs_check_method=pass_all
5379 lt_cv_file_magic_cmd='/bin/file'
5380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5383 lt_cv_file_magic_cmd='/bin/file'
5384 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5385 lt_cv_file_magic_test_file=/lib/libc.so
5388 lt_cv_deplibs_check_method=pass_all
5391 lt_cv_deplibs_check_method=pass_all
5397 lt_cv_deplibs_check_method=pass_all
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5403 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5407 if test "$build" = "$host"; then
5410 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5413 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5419 file_magic_cmd=$lt_cv_file_magic_cmd
5420 deplibs_check_method=$lt_cv_deplibs_check_method
5421 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5444 if test -n "$ac_tool_prefix"; then
5445 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_DLLTOOL+:} false; then :
5450 $as_echo_n "(cached) " >&6
5452 if test -n "$DLLTOOL"; then
5453 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 DLLTOOL=$ac_cv_prog_DLLTOOL
5473 if test -n "$DLLTOOL"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5475 $as_echo "$DLLTOOL" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5483 if test -z "$ac_cv_prog_DLLTOOL"; then
5484 ac_ct_DLLTOOL=$DLLTOOL
5485 # Extract the first word of "dlltool", so it can be a program name with args.
5486 set dummy dlltool; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5490 $as_echo_n "(cached) " >&6
5492 if test -n "$ac_ct_DLLTOOL"; then
5493 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5513 if test -n "$ac_ct_DLLTOOL"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5515 $as_echo "$ac_ct_DLLTOOL" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5521 if test "x$ac_ct_DLLTOOL" = x; then
5524 case $cross_compiling:$ac_tool_warned in
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5530 DLLTOOL=$ac_ct_DLLTOOL
5533 DLLTOOL="$ac_cv_prog_DLLTOOL"
5536 test -z "$DLLTOOL" && DLLTOOL=dlltool
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5548 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5549 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5550 $as_echo_n "(cached) " >&6
5552 lt_cv_sharedlib_from_linklib_cmd='unknown'
5555 cygwin* | mingw* | pw32* | cegcc*)
5556 # two different shell functions defined in ltmain.sh
5557 # decide which to use based on capabilities of $DLLTOOL
5558 case `$DLLTOOL --help 2>&1` in
5559 *--identify-strict*)
5560 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5563 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5568 # fallback: assume linklib IS sharedlib
5569 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5575 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5576 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5577 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5586 if test -n "$ac_tool_prefix"; then
5589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_AR+:} false; then :
5594 $as_echo_n "(cached) " >&6
5596 if test -n "$AR"; then
5597 ac_cv_prog_AR="$AR" # Let the user override the test.
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 if test -n "$AR"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5619 $as_echo "$AR" >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5626 test -n "$AR" && break
5629 if test -z "$AR"; then
5633 # Extract the first word of "$ac_prog", so it can be a program name with args.
5634 set dummy $ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5638 $as_echo_n "(cached) " >&6
5640 if test -n "$ac_ct_AR"; then
5641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_ac_ct_AR="$ac_prog"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5661 if test -n "$ac_ct_AR"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5663 $as_echo "$ac_ct_AR" >&6; }
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5670 test -n "$ac_ct_AR" && break
5673 if test "x$ac_ct_AR" = x; then
5676 case $cross_compiling:$ac_tool_warned in
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680 ac_tool_warned=yes ;;
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5700 $as_echo_n "checking for archiver @FILE support... " >&6; }
5701 if ${lt_cv_ar_at_file+:} false; then :
5702 $as_echo_n "(cached) " >&6
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717 echo conftest.$ac_objext > conftest.lst
5718 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5720 (eval $lt_ar_try) 2>&5
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; }
5724 if test "$ac_status" -eq 0; then
5725 # Ensure the archiver fails upon bogus file names.
5726 rm -f conftest.$ac_objext libconftest.a
5727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5728 (eval $lt_ar_try) 2>&5
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; }
5732 if test "$ac_status" -ne 0; then
5736 rm -f conftest.* libconftest.a
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5743 $as_echo "$lt_cv_ar_at_file" >&6; }
5745 if test "x$lt_cv_ar_at_file" = xno; then
5748 archiver_list_spec=$lt_cv_ar_at_file
5757 if test -n "$ac_tool_prefix"; then
5758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5759 set dummy ${ac_tool_prefix}strip; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_prog_STRIP+:} false; then :
5763 $as_echo_n "(cached) " >&6
5765 if test -n "$STRIP"; then
5766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 STRIP=$ac_cv_prog_STRIP
5786 if test -n "$STRIP"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5788 $as_echo "$STRIP" >&6; }
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5796 if test -z "$ac_cv_prog_STRIP"; then
5798 # Extract the first word of "strip", so it can be a program name with args.
5799 set dummy strip; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5803 $as_echo_n "(cached) " >&6
5805 if test -n "$ac_ct_STRIP"; then
5806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_ac_ct_STRIP="strip"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5826 if test -n "$ac_ct_STRIP"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5828 $as_echo "$ac_ct_STRIP" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5834 if test "x$ac_ct_STRIP" = x; then
5837 case $cross_compiling:$ac_tool_warned in
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841 ac_tool_warned=yes ;;
5846 STRIP="$ac_cv_prog_STRIP"
5849 test -z "$STRIP" && STRIP=:
5856 if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_prog_RANLIB+:} false; then :
5862 $as_echo_n "(cached) " >&6
5864 if test -n "$RANLIB"; then
5865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 RANLIB=$ac_cv_prog_RANLIB
5885 if test -n "$RANLIB"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5887 $as_echo "$RANLIB" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5895 if test -z "$ac_cv_prog_RANLIB"; then
5896 ac_ct_RANLIB=$RANLIB
5897 # Extract the first word of "ranlib", so it can be a program name with args.
5898 set dummy ranlib; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5902 $as_echo_n "(cached) " >&6
5904 if test -n "$ac_ct_RANLIB"; then
5905 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_ac_ct_RANLIB="ranlib"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5925 if test -n "$ac_ct_RANLIB"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5927 $as_echo "$ac_ct_RANLIB" >&6; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5933 if test "x$ac_ct_RANLIB" = x; then
5936 case $cross_compiling:$ac_tool_warned in
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940 ac_tool_warned=yes ;;
5942 RANLIB=$ac_ct_RANLIB
5945 RANLIB="$ac_cv_prog_RANLIB"
5948 test -z "$RANLIB" && RANLIB=:
5955 # Determine commands to create old-style static archives.
5956 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5957 old_postinstall_cmds='chmod 644 $oldlib'
5958 old_postuninstall_cmds=
5960 if test -n "$RANLIB"; then
5963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5969 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5974 lock_old_archive_extraction=yes ;;
5976 lock_old_archive_extraction=no ;;
6017 # If no C compiler was specified, use CC.
6020 # If no C compiler flags were specified, use CFLAGS.
6021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6023 # Allow CC to be a program name with arguments.
6027 # Check for command to grab the raw symbol name followed by C symbol from nm.
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6029 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6030 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6031 $as_echo_n "(cached) " >&6
6034 # These are sane defaults that work on at least a few old systems.
6035 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6037 # Character class describing NM global symbol codes.
6038 symcode='[BCDEGRST]'
6040 # Regexp to match symbols that can be accessed directly from C.
6041 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6043 # Define system-specific variables.
6048 cygwin* | mingw* | pw32* | cegcc*)
6049 symcode='[ABCDGISTW]'
6052 if test "$host_cpu" = ia64; then
6053 symcode='[ABCDEGRST]'
6057 symcode='[BCDEGRST]'
6060 symcode='[BCDEGQRST]'
6071 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6079 # If we're using GNU nm, then use its standard symbol codes.
6080 case `$NM -V 2>&1` in
6081 *GNU* | *'with BFD'*)
6082 symcode='[ABCDGIRSTW]' ;;
6085 # Transform an extracted symbol line into a proper C declaration.
6086 # Some systems (esp. on ia64) link data and code symbols differently,
6087 # so use this general approach.
6088 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6090 # Transform an extracted symbol line into symbol name and symbol address
6091 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6092 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6094 # Handle CRLF in mingw tool chain
6098 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6102 # Try without a prefix underscore, then with it.
6103 for ac_symprfx in "" "_"; do
6105 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6106 symxfrm="\\1 $ac_symprfx\\2 \\2"
6108 # Write the raw and C identifiers.
6109 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6110 # Fake it for dumpbin and say T for any non-static function
6111 # and D for any global variable.
6112 # Also find C++ and __fastcall symbols from MSVC++,
6113 # which start with @ or ?.
6114 lt_cv_sys_global_symbol_pipe="$AWK '"\
6115 " {last_section=section; section=\$ 3};"\
6116 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6117 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6118 " \$ 0!~/External *\|/{next};"\
6119 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6120 " {if(hide[section]) next};"\
6121 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6122 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6123 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6124 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6125 " ' prfx=^$ac_symprfx"
6127 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6129 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6131 # Check to see that the pipe works correctly.
6135 cat > conftest.$ac_ext <<_LT_EOF
6140 void nm_test_func(void);
6141 void nm_test_func(void){}
6145 int main(){nm_test_var='a';nm_test_func();return(0);}
6148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6149 (eval $ac_compile) 2>&5
6151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6152 test $ac_status = 0; }; then
6153 # Now try to grab the symbols.
6155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6156 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6159 test $ac_status = 0; } && test -s "$nlist"; then
6160 # Try sorting and uniquifying the output.
6161 if sort "$nlist" | uniq > "$nlist"T; then
6162 mv -f "$nlist"T "$nlist"
6167 # Make sure that we snagged all the symbols we need.
6168 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6169 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6170 cat <<_LT_EOF > conftest.$ac_ext
6171 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6172 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6173 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6174 relocations are performed -- see ld's documentation on pseudo-relocs. */
6175 # define LT_DLSYM_CONST
6176 #elif defined(__osf__)
6177 /* This system does not cope well with relocations in const data. */
6178 # define LT_DLSYM_CONST
6180 # define LT_DLSYM_CONST const
6188 # Now generate the symbol file.
6189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6191 cat <<_LT_EOF >> conftest.$ac_ext
6193 /* The mapping between symbol names and symbols. */
6194 LT_DLSYM_CONST struct {
6198 lt__PROGRAM__LTX_preloaded_symbols[] =
6200 { "@PROGRAM@", (void *) 0 },
6202 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6203 cat <<\_LT_EOF >> conftest.$ac_ext
6207 /* This works around a problem in FreeBSD linker */
6208 #ifdef FREEBSD_WORKAROUND
6209 static const void *lt_preloaded_setup() {
6210 return lt__PROGRAM__LTX_preloaded_symbols;
6218 # Now try linking the two files.
6219 mv conftest.$ac_objext conftstm.$ac_objext
6220 lt_globsym_save_LIBS=$LIBS
6221 lt_globsym_save_CFLAGS=$CFLAGS
6222 LIBS="conftstm.$ac_objext"
6223 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6225 (eval $ac_link) 2>&5
6227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6228 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6231 LIBS=$lt_globsym_save_LIBS
6232 CFLAGS=$lt_globsym_save_CFLAGS
6234 echo "cannot find nm_test_func in $nlist" >&5
6237 echo "cannot find nm_test_var in $nlist" >&5
6240 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6243 echo "$progname: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6246 rm -rf conftest* conftst*
6248 # Do not use the global_symbol_pipe unless it works.
6249 if test "$pipe_works" = yes; then
6252 lt_cv_sys_global_symbol_pipe=
6258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6259 lt_cv_sys_global_symbol_to_cdecl=
6261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6263 $as_echo "failed" >&6; }
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6266 $as_echo "ok" >&6; }
6269 # Response file support.
6270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6271 nm_file_list_spec='@'
6272 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6273 nm_file_list_spec='@'
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6303 $as_echo_n "checking for sysroot... " >&6; }
6305 # Check whether --with-sysroot was given.
6306 if test "${with_sysroot+set}" = set; then :
6307 withval=$with_sysroot;
6314 case ${with_sysroot} in #(
6316 if test "$GCC" = yes; then
6317 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6321 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6327 $as_echo "${with_sysroot}" >&6; }
6328 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6333 $as_echo "${lt_sysroot:-no}" >&6; }
6339 # Check whether --enable-libtool-lock was given.
6340 if test "${enable_libtool_lock+set}" = set; then :
6341 enableval=$enable_libtool_lock;
6344 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6346 # Some flags need to be propagated to the compiler or linker for good
6350 # Find out which ABI we are using.
6351 echo 'int i;' > conftest.$ac_ext
6352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6353 (eval $ac_compile) 2>&5
6355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6356 test $ac_status = 0; }; then
6357 case `/usr/bin/file conftest.$ac_objext` in
6369 # Find out which ABI we are using.
6370 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6372 (eval $ac_compile) 2>&5
6374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; }; then
6376 if test "$lt_cv_prog_gnu_ld" = yes; then
6377 case `/usr/bin/file conftest.$ac_objext` in
6379 LD="${LD-ld} -melf32bsmip"
6382 LD="${LD-ld} -melf32bmipn32"
6385 LD="${LD-ld} -melf64bmip"
6389 case `/usr/bin/file conftest.$ac_objext` in
6405 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6406 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6407 # Find out which ABI we are using.
6408 echo 'int i;' > conftest.$ac_ext
6409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6410 (eval $ac_compile) 2>&5
6412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6413 test $ac_status = 0; }; then
6414 case `/usr/bin/file conftest.o` in
6417 x86_64-*kfreebsd*-gnu)
6418 LD="${LD-ld} -m elf_i386_fbsd"
6421 LD="${LD-ld} -m elf_i386"
6423 ppc64-*linux*|powerpc64-*linux*)
6424 LD="${LD-ld} -m elf32ppclinux"
6427 LD="${LD-ld} -m elf_s390"
6430 LD="${LD-ld} -m elf32_sparc"
6436 x86_64-*kfreebsd*-gnu)
6437 LD="${LD-ld} -m elf_x86_64_fbsd"
6440 LD="${LD-ld} -m elf_x86_64"
6442 ppc*-*linux*|powerpc*-*linux*)
6443 LD="${LD-ld} -m elf64ppc"
6445 s390*-*linux*|s390*-*tpf*)
6446 LD="${LD-ld} -m elf64_s390"
6449 LD="${LD-ld} -m elf64_sparc"
6459 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6460 SAVE_CFLAGS="$CFLAGS"
6461 CFLAGS="$CFLAGS -belf"
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6463 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6464 if ${lt_cv_cc_needs_belf+:} false; then :
6465 $as_echo_n "(cached) " >&6
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6484 if ac_fn_c_try_link "$LINENO"; then :
6485 lt_cv_cc_needs_belf=yes
6487 lt_cv_cc_needs_belf=no
6489 rm -f core conftest.err conftest.$ac_objext \
6490 conftest$ac_exeext conftest.$ac_ext
6492 ac_cpp='$CPP $CPPFLAGS'
6493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6499 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6500 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6501 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6502 CFLAGS="$SAVE_CFLAGS"
6506 # Find out which ABI we are using.
6507 echo 'int i;' > conftest.$ac_ext
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509 (eval $ac_compile) 2>&5
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; }; then
6513 case `/usr/bin/file conftest.o` in
6515 case $lt_cv_prog_gnu_ld in
6519 LD="${LD-ld} -m elf_x86_64"
6522 LD="${LD-ld} -m elf64_sparc"
6525 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6526 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6531 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6543 need_locks="$enable_libtool_lock"
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}mt; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6551 $as_echo_n "(cached) " >&6
6553 if test -n "$MANIFEST_TOOL"; then
6554 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6574 if test -n "$MANIFEST_TOOL"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6576 $as_echo "$MANIFEST_TOOL" >&6; }
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6584 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6585 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6586 # Extract the first word of "mt", so it can be a program name with args.
6587 set dummy mt; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6591 $as_echo_n "(cached) " >&6
6593 if test -n "$ac_ct_MANIFEST_TOOL"; then
6594 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6614 if test -n "$ac_ct_MANIFEST_TOOL"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6616 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6622 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6625 case $cross_compiling:$ac_tool_warned in
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6631 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6634 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6637 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6639 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6640 if ${lt_cv_path_mainfest_tool+:} false; then :
6641 $as_echo_n "(cached) " >&6
6643 lt_cv_path_mainfest_tool=no
6644 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6645 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6646 cat conftest.err >&5
6647 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6648 lt_cv_path_mainfest_tool=yes
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6653 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6654 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6664 rhapsody* | darwin*)
6665 if test -n "$ac_tool_prefix"; then
6666 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6671 $as_echo_n "(cached) " >&6
6673 if test -n "$DSYMUTIL"; then
6674 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6694 if test -n "$DSYMUTIL"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6696 $as_echo "$DSYMUTIL" >&6; }
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6704 if test -z "$ac_cv_prog_DSYMUTIL"; then
6705 ac_ct_DSYMUTIL=$DSYMUTIL
6706 # Extract the first word of "dsymutil", so it can be a program name with args.
6707 set dummy dsymutil; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 if test -n "$ac_ct_DSYMUTIL"; then
6714 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6734 if test -n "$ac_ct_DSYMUTIL"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6736 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6742 if test "x$ac_ct_DSYMUTIL" = x; then
6745 case $cross_compiling:$ac_tool_warned in
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749 ac_tool_warned=yes ;;
6751 DSYMUTIL=$ac_ct_DSYMUTIL
6754 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_NMEDIT+:} false; then :
6763 $as_echo_n "(cached) " >&6
6765 if test -n "$NMEDIT"; then
6766 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 NMEDIT=$ac_cv_prog_NMEDIT
6786 if test -n "$NMEDIT"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6788 $as_echo "$NMEDIT" >&6; }
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6796 if test -z "$ac_cv_prog_NMEDIT"; then
6797 ac_ct_NMEDIT=$NMEDIT
6798 # Extract the first word of "nmedit", so it can be a program name with args.
6799 set dummy nmedit; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6803 $as_echo_n "(cached) " >&6
6805 if test -n "$ac_ct_NMEDIT"; then
6806 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6826 if test -n "$ac_ct_NMEDIT"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6828 $as_echo "$ac_ct_NMEDIT" >&6; }
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6834 if test "x$ac_ct_NMEDIT" = x; then
6837 case $cross_compiling:$ac_tool_warned in
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6843 NMEDIT=$ac_ct_NMEDIT
6846 NMEDIT="$ac_cv_prog_NMEDIT"
6849 if test -n "$ac_tool_prefix"; then
6850 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_LIPO+:} false; then :
6855 $as_echo_n "(cached) " >&6
6857 if test -n "$LIPO"; then
6858 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 LIPO=$ac_cv_prog_LIPO
6878 if test -n "$LIPO"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6880 $as_echo "$LIPO" >&6; }
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6888 if test -z "$ac_cv_prog_LIPO"; then
6890 # Extract the first word of "lipo", so it can be a program name with args.
6891 set dummy lipo; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6895 $as_echo_n "(cached) " >&6
6897 if test -n "$ac_ct_LIPO"; then
6898 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_ac_ct_LIPO="lipo"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6918 if test -n "$ac_ct_LIPO"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6920 $as_echo "$ac_ct_LIPO" >&6; }
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6926 if test "x$ac_ct_LIPO" = x; then
6929 case $cross_compiling:$ac_tool_warned in
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933 ac_tool_warned=yes ;;
6938 LIPO="$ac_cv_prog_LIPO"
6941 if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}otool; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_OTOOL+:} false; then :
6947 $as_echo_n "(cached) " >&6
6949 if test -n "$OTOOL"; then
6950 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 OTOOL=$ac_cv_prog_OTOOL
6970 if test -n "$OTOOL"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6972 $as_echo "$OTOOL" >&6; }
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6980 if test -z "$ac_cv_prog_OTOOL"; then
6982 # Extract the first word of "otool", so it can be a program name with args.
6983 set dummy otool; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6987 $as_echo_n "(cached) " >&6
6989 if test -n "$ac_ct_OTOOL"; then
6990 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_prog_ac_ct_OTOOL="otool"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7010 if test -n "$ac_ct_OTOOL"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7012 $as_echo "$ac_ct_OTOOL" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7018 if test "x$ac_ct_OTOOL" = x; then
7021 case $cross_compiling:$ac_tool_warned in
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025 ac_tool_warned=yes ;;
7030 OTOOL="$ac_cv_prog_OTOOL"
7033 if test -n "$ac_tool_prefix"; then
7034 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7035 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if ${ac_cv_prog_OTOOL64+:} false; then :
7039 $as_echo_n "(cached) " >&6
7041 if test -n "$OTOOL64"; then
7042 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 OTOOL64=$ac_cv_prog_OTOOL64
7062 if test -n "$OTOOL64"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7064 $as_echo "$OTOOL64" >&6; }
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7072 if test -z "$ac_cv_prog_OTOOL64"; then
7073 ac_ct_OTOOL64=$OTOOL64
7074 # Extract the first word of "otool64", so it can be a program name with args.
7075 set dummy otool64; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7079 $as_echo_n "(cached) " >&6
7081 if test -n "$ac_ct_OTOOL64"; then
7082 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_prog_ac_ct_OTOOL64="otool64"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7102 if test -n "$ac_ct_OTOOL64"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7104 $as_echo "$ac_ct_OTOOL64" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7110 if test "x$ac_ct_OTOOL64" = x; then
7113 case $cross_compiling:$ac_tool_warned in
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7117 ac_tool_warned=yes ;;
7119 OTOOL64=$ac_ct_OTOOL64
7122 OTOOL64="$ac_cv_prog_OTOOL64"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7152 $as_echo_n "checking for -single_module linker flag... " >&6; }
7153 if ${lt_cv_apple_cc_single_mod+:} false; then :
7154 $as_echo_n "(cached) " >&6
7156 lt_cv_apple_cc_single_mod=no
7157 if test -z "${LT_MULTI_MODULE}"; then
7158 # By default we will add the -single_module flag. You can override
7159 # by either setting the environment variable LT_MULTI_MODULE
7160 # non-empty at configure time, or by adding -multi_module to the
7162 rm -rf libconftest.dylib*
7163 echo "int foo(void){return 1;}" > conftest.c
7164 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7165 -dynamiclib -Wl,-single_module conftest.c" >&5
7166 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7167 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7169 # If there is a non-empty error log, and "single_module"
7170 # appears in it, assume the flag caused a linker warning
7171 if test -s conftest.err && $GREP single_module conftest.err; then
7172 cat conftest.err >&5
7173 # Otherwise, if the output was created with a 0 exit code from
7174 # the compiler, it worked.
7175 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7176 lt_cv_apple_cc_single_mod=yes
7178 cat conftest.err >&5
7180 rm -rf libconftest.dylib*
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7185 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7188 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7189 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7190 $as_echo_n "(cached) " >&6
7192 lt_cv_ld_exported_symbols_list=no
7193 save_LDFLAGS=$LDFLAGS
7194 echo "_main" > conftest.sym
7195 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7207 if ac_fn_c_try_link "$LINENO"; then :
7208 lt_cv_ld_exported_symbols_list=yes
7210 lt_cv_ld_exported_symbols_list=no
7212 rm -f core conftest.err conftest.$ac_objext \
7213 conftest$ac_exeext conftest.$ac_ext
7214 LDFLAGS="$save_LDFLAGS"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7218 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7221 $as_echo_n "checking for -force_load linker flag... " >&6; }
7222 if ${lt_cv_ld_force_load+:} false; then :
7223 $as_echo_n "(cached) " >&6
7225 lt_cv_ld_force_load=no
7226 cat > conftest.c << _LT_EOF
7227 int forced_loaded() { return 2;}
7229 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7230 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7231 echo "$AR cru libconftest.a conftest.o" >&5
7232 $AR cru libconftest.a conftest.o 2>&5
7233 echo "$RANLIB libconftest.a" >&5
7234 $RANLIB libconftest.a 2>&5
7235 cat > conftest.c << _LT_EOF
7236 int main() { return 0;}
7238 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7239 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7241 if test -s conftest.err && $GREP force_load conftest.err; then
7242 cat conftest.err >&5
7243 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7244 lt_cv_ld_force_load=yes
7246 cat conftest.err >&5
7248 rm -f conftest.err libconftest.a conftest conftest.c
7249 rm -rf conftest.dSYM
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7253 $as_echo "$lt_cv_ld_force_load" >&6; }
7255 rhapsody* | darwin1.[012])
7256 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7258 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7259 darwin*) # darwin 5.x on
7260 # if running on 10.5 or later, the deployment target defaults
7261 # to the OS version, if on x86, and 10.4, the deployment
7262 # target defaults to 10.4. Don't you love it?
7263 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7264 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7265 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7267 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7269 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7273 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7274 _lt_dar_single_mod='$single_module'
7276 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7277 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7279 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7281 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7282 _lt_dsymutil='~$DSYMUTIL $lib || :'
7290 ac_cpp='$CPP $CPPFLAGS'
7291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7295 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7296 # On Suns, sometimes $CPP names a directory.
7297 if test -n "$CPP" && test -d "$CPP"; then
7300 if test -z "$CPP"; then
7301 if ${ac_cv_prog_CPP+:} false; then :
7302 $as_echo_n "(cached) " >&6
7304 # Double quotes because CPP needs to be expanded
7305 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7308 for ac_c_preproc_warn_flag in '' yes
7310 # Use a header file that comes with gcc, so configuring glibc
7311 # with a fresh cross-compiler works.
7312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7313 # <limits.h> exists even on freestanding compilers.
7314 # On the NeXT, cc -E runs the code through the compiler's parser,
7315 # not just through cpp. "Syntax error" is here to catch this case.
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7319 # include <limits.h>
7321 # include <assert.h>
7325 if ac_fn_c_try_cpp "$LINENO"; then :
7328 # Broken: fails on valid input.
7331 rm -f conftest.err conftest.i conftest.$ac_ext
7333 # OK, works on sane cases. Now check whether nonexistent headers
7334 # can be detected and how.
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 #include <ac_nonexistent.h>
7339 if ac_fn_c_try_cpp "$LINENO"; then :
7340 # Broken: success on invalid input.
7343 # Passes both tests.
7347 rm -f conftest.err conftest.i conftest.$ac_ext
7350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7351 rm -f conftest.i conftest.err conftest.$ac_ext
7352 if $ac_preproc_ok; then :
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7365 $as_echo "$CPP" >&6; }
7367 for ac_c_preproc_warn_flag in '' yes
7369 # Use a header file that comes with gcc, so configuring glibc
7370 # with a fresh cross-compiler works.
7371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7372 # <limits.h> exists even on freestanding compilers.
7373 # On the NeXT, cc -E runs the code through the compiler's parser,
7374 # not just through cpp. "Syntax error" is here to catch this case.
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7378 # include <limits.h>
7380 # include <assert.h>
7384 if ac_fn_c_try_cpp "$LINENO"; then :
7387 # Broken: fails on valid input.
7390 rm -f conftest.err conftest.i conftest.$ac_ext
7392 # OK, works on sane cases. Now check whether nonexistent headers
7393 # can be detected and how.
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7396 #include <ac_nonexistent.h>
7398 if ac_fn_c_try_cpp "$LINENO"; then :
7399 # Broken: success on invalid input.
7402 # Passes both tests.
7406 rm -f conftest.err conftest.i conftest.$ac_ext
7409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7410 rm -f conftest.i conftest.err conftest.$ac_ext
7411 if $ac_preproc_ok; then :
7414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7416 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7417 See \`config.log' for more details" "$LINENO" 5; }
7421 ac_cpp='$CPP $CPPFLAGS'
7422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7428 $as_echo_n "checking for ANSI C header files... " >&6; }
7429 if ${ac_cv_header_stdc+:} false; then :
7430 $as_echo_n "(cached) " >&6
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7447 if ac_fn_c_try_compile "$LINENO"; then :
7448 ac_cv_header_stdc=yes
7450 ac_cv_header_stdc=no
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 if test $ac_cv_header_stdc = yes; then
7455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7462 $EGREP "memchr" >/dev/null 2>&1; then :
7465 ac_cv_header_stdc=no
7471 if test $ac_cv_header_stdc = yes; then
7472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7479 $EGREP "free" >/dev/null 2>&1; then :
7482 ac_cv_header_stdc=no
7488 if test $ac_cv_header_stdc = yes; then
7489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7490 if test "$cross_compiling" = yes; then :
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7497 #if ((' ' & 0x0FF) == 0x020)
7498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7501 # define ISLOWER(c) \
7502 (('a' <= (c) && (c) <= 'i') \
7503 || ('j' <= (c) && (c) <= 'r') \
7504 || ('s' <= (c) && (c) <= 'z'))
7505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7513 for (i = 0; i < 256; i++)
7514 if (XOR (islower (i), ISLOWER (i))
7515 || toupper (i) != TOUPPER (i))
7520 if ac_fn_c_try_run "$LINENO"; then :
7523 ac_cv_header_stdc=no
7525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7526 conftest.$ac_objext conftest.beam conftest.$ac_ext
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7532 $as_echo "$ac_cv_header_stdc" >&6; }
7533 if test $ac_cv_header_stdc = yes; then
7535 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7539 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7541 inttypes.h stdint.h unistd.h
7543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7544 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7546 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7547 cat >>confdefs.h <<_ACEOF
7548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7556 for ac_header in dlfcn.h
7558 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7560 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7561 cat >>confdefs.h <<_ACEOF
7562 #define HAVE_DLFCN_H 1
7583 # Check whether --enable-shared was given.
7584 if test "${enable_shared+set}" = set; then :
7585 enableval=$enable_shared; p=${PACKAGE-default}
7587 yes) enable_shared=yes ;;
7588 no) enable_shared=no ;;
7591 # Look at the argument we got. We use all the common list separators.
7592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7593 for pkg in $enableval; do
7595 if test "X$pkg" = "X$p"; then
7614 # Check whether --enable-static was given.
7615 if test "${enable_static+set}" = set; then :
7616 enableval=$enable_static; p=${PACKAGE-default}
7618 yes) enable_static=yes ;;
7619 no) enable_static=no ;;
7622 # Look at the argument we got. We use all the common list separators.
7623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7624 for pkg in $enableval; do
7626 if test "X$pkg" = "X$p"; then
7646 # Check whether --with-pic was given.
7647 if test "${with_pic+set}" = set; then :
7648 withval=$with_pic; lt_p=${PACKAGE-default}
7650 yes|no) pic_mode=$withval ;;
7653 # Look at the argument we got. We use all the common list separators.
7654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655 for lt_pkg in $withval; do
7657 if test "X$lt_pkg" = "X$lt_p"; then
7669 test -z "$pic_mode" && pic_mode=default
7677 # Check whether --enable-fast-install was given.
7678 if test "${enable_fast_install+set}" = set; then :
7679 enableval=$enable_fast_install; p=${PACKAGE-default}
7681 yes) enable_fast_install=yes ;;
7682 no) enable_fast_install=no ;;
7684 enable_fast_install=no
7685 # Look at the argument we got. We use all the common list separators.
7686 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7687 for pkg in $enableval; do
7689 if test "X$pkg" = "X$p"; then
7690 enable_fast_install=yes
7697 enable_fast_install=yes
7710 # This can be used to rebuild libtool when needed
7711 LIBTOOL_DEPS="$ltmain"
7713 # Always use our own libtool.
7714 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7745 test -z "$LN_S" && LN_S="ln -s"
7760 if test -n "${ZSH_VERSION+set}" ; then
7761 setopt NO_GLOB_SUBST
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7765 $as_echo_n "checking for objdir... " >&6; }
7766 if ${lt_cv_objdir+:} false; then :
7767 $as_echo_n "(cached) " >&6
7769 rm -f .libs 2>/dev/null
7770 mkdir .libs 2>/dev/null
7771 if test -d .libs; then
7774 # MS-DOS does not allow filenames that begin with a dot.
7777 rmdir .libs 2>/dev/null
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7780 $as_echo "$lt_cv_objdir" >&6; }
7781 objdir=$lt_cv_objdir
7787 cat >>confdefs.h <<_ACEOF
7788 #define LT_OBJDIR "$lt_cv_objdir/"
7796 # AIX sometimes has problems with the GCC collect2 program. For some
7797 # reason, if we set the COLLECT_NAMES environment variable, the problems
7798 # vanish in a puff of smoke.
7799 if test "X${COLLECT_NAMES+set}" != Xset; then
7801 export COLLECT_NAMES
7808 can_build_shared=yes
7810 # All known linkers require a `.a' archive for static linking (except MSVC,
7811 # which needs '.lib').
7814 with_gnu_ld="$lt_cv_prog_gnu_ld"
7817 old_CFLAGS="$CFLAGS"
7819 # Set sane defaults for various variables
7820 test -z "$CC" && CC=cc
7821 test -z "$LTCC" && LTCC=$CC
7822 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7823 test -z "$LD" && LD=ld
7824 test -z "$ac_objext" && ac_objext=o
7826 for cc_temp in $compiler""; do
7828 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7829 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7834 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7837 # Only perform the check for file, if the check method requires it
7838 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7839 case $deplibs_check_method in
7841 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7843 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7844 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7845 $as_echo_n "(cached) " >&6
7849 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7852 lt_save_MAGIC_CMD="$MAGIC_CMD"
7853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7854 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7855 for ac_dir in $ac_dummy; do
7857 test -z "$ac_dir" && ac_dir=.
7858 if test -f $ac_dir/${ac_tool_prefix}file; then
7859 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7860 if test -n "$file_magic_test_file"; then
7861 case $deplibs_check_method in
7863 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7864 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7865 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7866 $EGREP "$file_magic_regex" > /dev/null; then
7871 *** Warning: the command libtool uses to detect shared libraries,
7872 *** $file_magic_cmd, produces output that libtool cannot recognize.
7873 *** The result is that libtool may fail to recognize shared libraries
7874 *** as such. This will affect the creation of libtool libraries that
7875 *** depend on shared libraries, but programs linked with such libtool
7876 *** libraries will work regardless of this problem. Nevertheless, you
7877 *** may want to report the problem to your system manager and/or to
7878 *** bug-libtool@gnu.org
7888 MAGIC_CMD="$lt_save_MAGIC_CMD"
7893 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7894 if test -n "$MAGIC_CMD"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7896 $as_echo "$MAGIC_CMD" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7906 if test -z "$lt_cv_path_MAGIC_CMD"; then
7907 if test -n "$ac_tool_prefix"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7909 $as_echo_n "checking for file... " >&6; }
7910 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7911 $as_echo_n "(cached) " >&6
7915 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7918 lt_save_MAGIC_CMD="$MAGIC_CMD"
7919 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7920 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7921 for ac_dir in $ac_dummy; do
7923 test -z "$ac_dir" && ac_dir=.
7924 if test -f $ac_dir/file; then
7925 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7926 if test -n "$file_magic_test_file"; then
7927 case $deplibs_check_method in
7929 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7932 $EGREP "$file_magic_regex" > /dev/null; then
7937 *** Warning: the command libtool uses to detect shared libraries,
7938 *** $file_magic_cmd, produces output that libtool cannot recognize.
7939 *** The result is that libtool may fail to recognize shared libraries
7940 *** as such. This will affect the creation of libtool libraries that
7941 *** depend on shared libraries, but programs linked with such libtool
7942 *** libraries will work regardless of this problem. Nevertheless, you
7943 *** may want to report the problem to your system manager and/or to
7944 *** bug-libtool@gnu.org
7954 MAGIC_CMD="$lt_save_MAGIC_CMD"
7959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7960 if test -n "$MAGIC_CMD"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7962 $as_echo "$MAGIC_CMD" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7978 # Use C for the default configuration in the libtool script
7982 ac_cpp='$CPP $CPPFLAGS'
7983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988 # Source file extension for C test sources.
7991 # Object file extension for compiled C test sources.
7995 # Code to be used in simple compile tests
7996 lt_simple_compile_test_code="int some_variable = 0;"
7998 # Code to be used in simple link tests
7999 lt_simple_link_test_code='int main(){return(0);}'
8007 # If no C compiler was specified, use CC.
8010 # If no C compiler flags were specified, use CFLAGS.
8011 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8013 # Allow CC to be a program name with arguments.
8016 # Save the default compiler, since it gets overwritten when the other
8017 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8018 compiler_DEFAULT=$CC
8020 # save warnings/boilerplate of simple test code
8021 ac_outfile=conftest.$ac_objext
8022 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8024 _lt_compiler_boilerplate=`cat conftest.err`
8027 ac_outfile=conftest.$ac_objext
8028 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8030 _lt_linker_boilerplate=`cat conftest.err`
8035 ## There is no encapsulation within the following macros, do not change
8036 ## the running order or otherwise move them around unless you know exactly
8037 ## what you are doing...
8038 if test -n "$compiler"; then
8040 lt_prog_compiler_no_builtin_flag=
8042 if test "$GCC" = yes; then
8043 case $cc_basename in
8045 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8047 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8051 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8052 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8053 $as_echo_n "(cached) " >&6
8055 lt_cv_prog_compiler_rtti_exceptions=no
8056 ac_outfile=conftest.$ac_objext
8057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8058 lt_compiler_flag="-fno-rtti -fno-exceptions"
8059 # Insert the option either (1) after the last *FLAGS variable, or
8060 # (2) before a word containing "conftest.", or (3) at the end.
8061 # Note that $ac_compile itself does not contain backslashes and begins
8062 # with a dollar sign (not a hyphen), so the echo should work correctly.
8063 # The option is referenced via a variable to avoid confusing sed.
8064 lt_compile=`echo "$ac_compile" | $SED \
8065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8067 -e 's:$: $lt_compiler_flag:'`
8068 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8069 (eval "$lt_compile" 2>conftest.err)
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 if (exit $ac_status) && test -s "$ac_outfile"; then
8074 # The compiler can only warn and ignore the option if not recognized
8075 # So say no if there are warnings other than the usual output.
8076 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8078 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8079 lt_cv_prog_compiler_rtti_exceptions=yes
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8086 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8088 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8089 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8101 lt_prog_compiler_wl=
8102 lt_prog_compiler_pic=
8103 lt_prog_compiler_static=
8106 if test "$GCC" = yes; then
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_static='-static'
8112 # All AIX code is PIC.
8113 if test "$host_cpu" = ia64; then
8114 # AIX 5 now supports IA64 processor
8115 lt_prog_compiler_static='-Bstatic'
8122 # see comment about AmigaOS4 .so support
8123 lt_prog_compiler_pic='-fPIC'
8126 # FIXME: we need at least 68020 code to build shared libraries, but
8127 # adding the `-m68020' flag to GCC prevents building anything better,
8129 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8134 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8135 # PIC is the default for these OSes.
8138 mingw* | cygwin* | pw32* | os2* | cegcc*)
8139 # This hack is so that the source file can tell whether it is being
8140 # built for inclusion in a dll (and should export symbols for example).
8141 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8142 # (--disable-auto-import) libraries
8143 lt_prog_compiler_pic='-DDLL_EXPORT'
8146 darwin* | rhapsody*)
8147 # PIC is the default on this platform
8148 # Common symbols not allowed in MH_DYLIB files
8149 lt_prog_compiler_pic='-fno-common'
8153 # PIC is the default for Haiku.
8154 # The "-static" flag exists, but is broken.
8155 lt_prog_compiler_static=
8159 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8160 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8161 # sets the default TLS model and affects inlining.
8167 lt_prog_compiler_pic='-fPIC'
8173 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8174 # Instead, we relocate shared libraries at runtime.
8178 # Just because we use GCC doesn't mean we suddenly get shared libraries
8179 # on systems that don't support them.
8180 lt_prog_compiler_can_build_shared=no
8185 # QNX uses GNU C++, but need to define -shared option too, otherwise
8187 lt_prog_compiler_pic='-fPIC -shared'
8191 if test -d /usr/nec; then
8192 lt_prog_compiler_pic=-Kconform_pic
8197 lt_prog_compiler_pic='-fPIC'
8201 case $cc_basename in
8202 nvcc*) # Cuda Compiler Driver 2.2
8203 lt_prog_compiler_wl='-Xlinker '
8204 if test -n "$lt_prog_compiler_pic"; then
8205 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8210 # PORTME Check for flag to pass linker flags through the system compiler.
8213 lt_prog_compiler_wl='-Wl,'
8214 if test "$host_cpu" = ia64; then
8215 # AIX 5 now supports IA64 processor
8216 lt_prog_compiler_static='-Bstatic'
8218 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8222 mingw* | cygwin* | pw32* | os2* | cegcc*)
8223 # This hack is so that the source file can tell whether it is being
8224 # built for inclusion in a dll (and should export symbols for example).
8225 lt_prog_compiler_pic='-DDLL_EXPORT'
8228 hpux9* | hpux10* | hpux11*)
8229 lt_prog_compiler_wl='-Wl,'
8230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8237 lt_prog_compiler_pic='+Z'
8240 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8241 lt_prog_compiler_static='${wl}-a ${wl}archive'
8244 irix5* | irix6* | nonstopux*)
8245 lt_prog_compiler_wl='-Wl,'
8246 # PIC (with -KPIC) is the default.
8247 lt_prog_compiler_static='-non_shared'
8250 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8251 case $cc_basename in
8252 # old Intel for x86_64 which still supported -KPIC.
8254 lt_prog_compiler_wl='-Wl,'
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-static'
8258 # icc used to be incompatible with GCC.
8259 # ICC 10 doesn't accept -KPIC any more.
8261 lt_prog_compiler_wl='-Wl,'
8262 lt_prog_compiler_pic='-fPIC'
8263 lt_prog_compiler_static='-static'
8265 # Lahey Fortran 8.1.
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_pic='--shared'
8269 lt_prog_compiler_static='--static'
8272 # NAG Fortran compiler
8273 lt_prog_compiler_wl='-Wl,-Wl,,'
8274 lt_prog_compiler_pic='-PIC'
8275 lt_prog_compiler_static='-Bstatic'
8277 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8278 # Portland Group compilers (*not* the Pentium gcc compiler,
8279 # which looks to be a dead project)
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-fpic'
8282 lt_prog_compiler_static='-Bstatic'
8285 lt_prog_compiler_wl='-Wl,'
8286 # All Alpha code is PIC.
8287 lt_prog_compiler_static='-non_shared'
8289 xl* | bgxl* | bgf* | mpixl*)
8290 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_pic='-qpic'
8293 lt_prog_compiler_static='-qstaticlink'
8296 case `$CC -V 2>&1 | sed 5q` in
8297 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8298 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8299 lt_prog_compiler_pic='-KPIC'
8300 lt_prog_compiler_static='-Bstatic'
8301 lt_prog_compiler_wl=''
8303 *Sun\ F* | *Sun*Fortran*)
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-Bstatic'
8306 lt_prog_compiler_wl='-Qoption ld '
8310 lt_prog_compiler_pic='-KPIC'
8311 lt_prog_compiler_static='-Bstatic'
8312 lt_prog_compiler_wl='-Wl,'
8314 *Intel*\ [CF]*Compiler*)
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_pic='-fPIC'
8317 lt_prog_compiler_static='-static'
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-fpic'
8322 lt_prog_compiler_static='-Bstatic'
8330 lt_prog_compiler_pic='-KPIC'
8331 lt_prog_compiler_static='-Bstatic'
8335 # QNX uses GNU C++, but need to define -shared option too, otherwise
8337 lt_prog_compiler_pic='-fPIC -shared'
8340 osf3* | osf4* | osf5*)
8341 lt_prog_compiler_wl='-Wl,'
8342 # All OSF/1 code is PIC.
8343 lt_prog_compiler_static='-non_shared'
8347 lt_prog_compiler_static='-non_shared'
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-Bstatic'
8353 case $cc_basename in
8354 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8355 lt_prog_compiler_wl='-Qoption ld ';;
8357 lt_prog_compiler_wl='-Wl,';;
8362 lt_prog_compiler_wl='-Qoption ld '
8363 lt_prog_compiler_pic='-PIC'
8364 lt_prog_compiler_static='-Bstatic'
8367 sysv4 | sysv4.2uw2* | sysv4.3*)
8368 lt_prog_compiler_wl='-Wl,'
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-Bstatic'
8374 if test -d /usr/nec ;then
8375 lt_prog_compiler_pic='-Kconform_pic'
8376 lt_prog_compiler_static='-Bstatic'
8380 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_pic='-KPIC'
8383 lt_prog_compiler_static='-Bstatic'
8387 lt_prog_compiler_wl='-Wl,'
8388 lt_prog_compiler_can_build_shared=no
8392 lt_prog_compiler_pic='-pic'
8393 lt_prog_compiler_static='-Bstatic'
8397 lt_prog_compiler_can_build_shared=no
8403 # For platforms which do not support PIC, -DPIC is meaningless:
8405 lt_prog_compiler_pic=
8408 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8413 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8414 if ${lt_cv_prog_compiler_pic+:} false; then :
8415 $as_echo_n "(cached) " >&6
8417 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8420 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8421 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8424 # Check to make sure the PIC flag actually works.
8426 if test -n "$lt_prog_compiler_pic"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8428 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8429 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8430 $as_echo_n "(cached) " >&6
8432 lt_cv_prog_compiler_pic_works=no
8433 ac_outfile=conftest.$ac_objext
8434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8435 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8436 # Insert the option either (1) after the last *FLAGS variable, or
8437 # (2) before a word containing "conftest.", or (3) at the end.
8438 # Note that $ac_compile itself does not contain backslashes and begins
8439 # with a dollar sign (not a hyphen), so the echo should work correctly.
8440 # The option is referenced via a variable to avoid confusing sed.
8441 lt_compile=`echo "$ac_compile" | $SED \
8442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8444 -e 's:$: $lt_compiler_flag:'`
8445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8446 (eval "$lt_compile" 2>conftest.err)
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 if (exit $ac_status) && test -s "$ac_outfile"; then
8451 # The compiler can only warn and ignore the option if not recognized
8452 # So say no if there are warnings other than the usual output.
8453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8456 lt_cv_prog_compiler_pic_works=yes
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8463 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8465 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8466 case $lt_prog_compiler_pic in
8468 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8471 lt_prog_compiler_pic=
8472 lt_prog_compiler_can_build_shared=no
8488 # Check to make sure the static flag actually works.
8490 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8492 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8493 if ${lt_cv_prog_compiler_static_works+:} false; then :
8494 $as_echo_n "(cached) " >&6
8496 lt_cv_prog_compiler_static_works=no
8497 save_LDFLAGS="$LDFLAGS"
8498 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8499 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8500 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8501 # The linker can only warn and ignore the option if not recognized
8502 # So say no if there are warnings
8503 if test -s conftest.err; then
8504 # Append any errors to the config.log.
8505 cat conftest.err 1>&5
8506 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8508 if diff conftest.exp conftest.er2 >/dev/null; then
8509 lt_cv_prog_compiler_static_works=yes
8512 lt_cv_prog_compiler_static_works=yes
8516 LDFLAGS="$save_LDFLAGS"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8520 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8522 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8525 lt_prog_compiler_static=
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8535 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8536 if ${lt_cv_prog_compiler_c_o+:} false; then :
8537 $as_echo_n "(cached) " >&6
8539 lt_cv_prog_compiler_c_o=no
8540 $RM -r conftest 2>/dev/null
8544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8546 lt_compiler_flag="-o out/conftest2.$ac_objext"
8547 # Insert the option either (1) after the last *FLAGS variable, or
8548 # (2) before a word containing "conftest.", or (3) at the end.
8549 # Note that $ac_compile itself does not contain backslashes and begins
8550 # with a dollar sign (not a hyphen), so the echo should work correctly.
8551 lt_compile=`echo "$ac_compile" | $SED \
8552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8554 -e 's:$: $lt_compiler_flag:'`
8555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8556 (eval "$lt_compile" 2>out/conftest.err)
8558 cat out/conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8562 # The compiler can only warn and ignore the option if not recognized
8563 # So say no if there are warnings
8564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8565 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8566 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8567 lt_cv_prog_compiler_c_o=yes
8572 # SGI C++ compiler will create directory out/ii_files/ for
8573 # template instantiation
8574 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8575 $RM out/* && rmdir out
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8582 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8590 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8591 if ${lt_cv_prog_compiler_c_o+:} false; then :
8592 $as_echo_n "(cached) " >&6
8594 lt_cv_prog_compiler_c_o=no
8595 $RM -r conftest 2>/dev/null
8599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8601 lt_compiler_flag="-o out/conftest2.$ac_objext"
8602 # Insert the option either (1) after the last *FLAGS variable, or
8603 # (2) before a word containing "conftest.", or (3) at the end.
8604 # Note that $ac_compile itself does not contain backslashes and begins
8605 # with a dollar sign (not a hyphen), so the echo should work correctly.
8606 lt_compile=`echo "$ac_compile" | $SED \
8607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8609 -e 's:$: $lt_compiler_flag:'`
8610 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8611 (eval "$lt_compile" 2>out/conftest.err)
8613 cat out/conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8617 # The compiler can only warn and ignore the option if not recognized
8618 # So say no if there are warnings
8619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8622 lt_cv_prog_compiler_c_o=yes
8627 # SGI C++ compiler will create directory out/ii_files/ for
8628 # template instantiation
8629 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8630 $RM out/* && rmdir out
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8637 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8642 hard_links="nottested"
8643 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8644 # do not overwrite the value of need_locks provided by the user
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8646 $as_echo_n "checking if we can lock with hard links... " >&6; }
8649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8651 ln conftest.a conftest.b 2>&5 || hard_links=no
8652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8654 $as_echo "$hard_links" >&6; }
8655 if test "$hard_links" = no; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8657 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8670 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8673 allow_undefined_flag=
8674 always_export_symbols=no
8676 archive_expsym_cmds=
8677 compiler_needs_object=no
8678 enable_shared_with_static_runtimes=no
8679 export_dynamic_flag_spec=
8680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8681 hardcode_automatic=no
8683 hardcode_direct_absolute=no
8684 hardcode_libdir_flag_spec=
8685 hardcode_libdir_separator=
8687 hardcode_shlibpath_var=unsupported
8689 link_all_deplibs=unknown
8692 old_archive_from_new_cmds=
8693 old_archive_from_expsyms_cmds=
8694 thread_safe_flag_spec=
8695 whole_archive_flag_spec=
8696 # include_expsyms should be a list of space-separated symbols to be *always*
8697 # included in the symbol list
8699 # exclude_expsyms can be an extended regexp of symbols to exclude
8700 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8701 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8702 # as well as any symbol that contains `d'.
8703 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8704 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8705 # platforms (ab)use it in PIC code, but their linkers get confused if
8706 # the symbol is explicitly referenced. Since portable code cannot
8707 # rely on this symbol name, it's probably fine to never include it in
8708 # preloaded symbol tables.
8709 # Exclude shared library initialization/finalization symbols.
8710 extract_expsyms_cmds=
8713 cygwin* | mingw* | pw32* | cegcc*)
8714 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8715 # When not using gcc, we currently assume that we are using
8716 # Microsoft Visual C++.
8717 if test "$GCC" != yes; then
8722 # we just hope/assume this is gcc and not c89 (= MSVC++)
8732 # On some targets, GNU ld is compatible enough with the native linker
8733 # that we're better off using the native interface for both.
8734 lt_use_gnu_ld_interface=no
8735 if test "$with_gnu_ld" = yes; then
8738 # The AIX port of GNU ld has always aspired to compatibility
8739 # with the native linker. However, as the warning in the GNU ld
8740 # block says, versions before 2.19.5* couldn't really create working
8741 # shared libraries, regardless of the interface used.
8742 case `$LD -v 2>&1` in
8743 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8744 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8745 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8747 lt_use_gnu_ld_interface=yes
8752 lt_use_gnu_ld_interface=yes
8757 if test "$lt_use_gnu_ld_interface" = yes; then
8758 # If archive_cmds runs LD, not CC, wlarc should be empty
8761 # Set some defaults for GNU ld with shared library support. These
8762 # are reset later if shared libraries are not supported. Putting them
8763 # here allows them to be overridden if necessary.
8764 runpath_var=LD_RUN_PATH
8765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8766 export_dynamic_flag_spec='${wl}--export-dynamic'
8767 # ancient GNU ld didn't support --whole-archive et. al.
8768 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8769 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8771 whole_archive_flag_spec=
8773 supports_anon_versioning=no
8774 case `$LD -v 2>&1` in
8775 *GNU\ gold*) supports_anon_versioning=yes ;;
8776 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8777 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8778 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8779 *\ 2.11.*) ;; # other 2.11 versions
8780 *) supports_anon_versioning=yes ;;
8783 # See if GNU ld supports shared libraries.
8786 # On AIX/PPC, the GNU linker is very broken
8787 if test "$host_cpu" != ia64; then
8791 *** Warning: the GNU linker, at least up to release 2.19, is reported
8792 *** to be unable to reliably create shared libraries on AIX.
8793 *** Therefore, libtool is disabling shared libraries support. If you
8794 *** really care for shared libraries, you may want to install binutils
8795 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8796 *** You will then need to restart the configuration process.
8805 # see comment about AmigaOS4 .so support
8806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8807 archive_expsym_cmds=''
8810 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)'
8811 hardcode_libdir_flag_spec='-L$libdir'
8812 hardcode_minus_L=yes
8818 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8819 allow_undefined_flag=unsupported
8820 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8821 # support --undefined. This deserves some investigation. FIXME
8822 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 cygwin* | mingw* | pw32* | cegcc*)
8829 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8830 # as there is no search path for DLLs.
8831 hardcode_libdir_flag_spec='-L$libdir'
8832 export_dynamic_flag_spec='${wl}--export-all-symbols'
8833 allow_undefined_flag=unsupported
8834 always_export_symbols=no
8835 enable_shared_with_static_runtimes=yes
8836 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'
8837 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8839 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8841 # If the export-symbols file already is a .def file (1st line
8842 # is EXPORTS), use it as is; otherwise, prepend...
8843 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8844 cp $export_symbols $output_objdir/$soname.def;
8846 echo EXPORTS > $output_objdir/$soname.def;
8847 cat $export_symbols >> $output_objdir/$soname.def;
8849 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857 link_all_deplibs=yes
8862 hardcode_shlibpath_var=no
8863 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8864 export_dynamic_flag_spec='${wl}-E'
8865 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8866 # Instead, shared libraries are loaded at an image base (0x10000000 by
8867 # default) and relocated if they conflict, which is a slow very memory
8868 # consuming and fragmenting process. To avoid this, we pick a random,
8869 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8870 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8872 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'
8875 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8877 if test "$host_os" = linux-dietlibc; then
8878 case $cc_basename in
8879 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8882 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8883 && test "$tmp_diet" = no
8885 tmp_addflag=' $pic_flag'
8886 tmp_sharedflag='-shared'
8887 case $cc_basename,$host_cpu in
8888 pgcc*) # Portland Group C compiler
8889 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'
8890 tmp_addflag=' $pic_flag'
8892 pgf77* | pgf90* | pgf95* | pgfortran*)
8893 # Portland Group f77 and f90 compilers
8894 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'
8895 tmp_addflag=' $pic_flag -Mnomain' ;;
8896 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8897 tmp_addflag=' -i_dynamic' ;;
8898 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8899 tmp_addflag=' -i_dynamic -nofor_main' ;;
8900 ifc* | ifort*) # Intel Fortran compiler
8901 tmp_addflag=' -nofor_main' ;;
8902 lf95*) # Lahey Fortran 8.1
8903 whole_archive_flag_spec=
8904 tmp_sharedflag='--shared' ;;
8905 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8906 tmp_sharedflag='-qmkshrobj'
8908 nvcc*) # Cuda Compiler Driver 2.2
8909 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'
8910 compiler_needs_object=yes
8913 case `$CC -V 2>&1 | sed 5q` in
8914 *Sun\ C*) # Sun C 5.9
8915 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'
8916 compiler_needs_object=yes
8917 tmp_sharedflag='-G' ;;
8918 *Sun\ F*) # Sun Fortran 8.3
8919 tmp_sharedflag='-G' ;;
8921 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8923 if test "x$supports_anon_versioning" = xyes; then
8924 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8925 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8926 echo "local: *; };" >> $output_objdir/$libname.ver~
8927 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8930 case $cc_basename in
8931 xlf* | bgf* | bgxlf* | mpixlf*)
8932 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8933 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8935 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8936 if test "x$supports_anon_versioning" = xyes; then
8937 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8939 echo "local: *; };" >> $output_objdir/$libname.ver~
8940 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8951 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8954 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8960 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8965 *** create shared libraries on Solaris systems. Therefore, libtool
8966 *** is disabling shared libraries support. We urge you to upgrade GNU
8967 *** binutils to release 2.9.1 or newer. Another option is to modify
8968 *** your PATH or compiler configuration so that the native linker is
8969 *** used, and then restart.
8972 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8973 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8981 case `$LD -v 2>&1` in
8982 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8986 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8987 *** reliably create shared libraries on SCO systems. Therefore, libtool
8988 *** is disabling shared libraries support. We urge you to upgrade GNU
8989 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8990 *** your PATH or compiler configuration so that the native linker is
8991 *** used, and then restart.
8996 # For security reasons, it is highly recommended that you always
8997 # use absolute paths for naming shared libraries, and exclude the
8998 # DT_RUNPATH tag from executables and libraries. But doing so
8999 # requires that you compile everything twice, which is a pain.
9000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9012 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9015 hardcode_shlibpath_var=no
9019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9020 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9021 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9028 if test "$ld_shlibs" = no; then
9030 hardcode_libdir_flag_spec=
9031 export_dynamic_flag_spec=
9032 whole_archive_flag_spec=
9035 # PORTME fill in a description of your system's linker (not GNU ld)
9038 allow_undefined_flag=unsupported
9039 always_export_symbols=yes
9040 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'
9041 # Note: this linker hardcodes the directories in LIBPATH if there
9042 # are no directories specified by -L.
9043 hardcode_minus_L=yes
9044 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9045 # Neither direct hardcoding nor static linking is supported with a
9047 hardcode_direct=unsupported
9052 if test "$host_cpu" = ia64; then
9053 # On IA64, the linker does run time linking by default, so we don't
9054 # have to do anything special.
9055 aix_use_runtimelinking=no
9056 exp_sym_flag='-Bexport'
9059 # If we're using GNU nm, then we don't want the "-C" option.
9060 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9061 # Also, AIX nm treats weak defined symbols like other global
9062 # defined symbols, whereas GNU nm marks them as "W".
9063 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9064 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9066 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9068 aix_use_runtimelinking=no
9070 # Test if we are trying to use run time linking or normal
9071 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9072 # need to do runtime linking.
9073 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9074 for ld_flag in $LDFLAGS; do
9075 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9076 aix_use_runtimelinking=yes
9083 exp_sym_flag='-bexport'
9084 no_entry_flag='-bnoentry'
9087 # When large executables or shared objects are built, AIX ld can
9088 # have problems creating the table of contents. If linking a library
9089 # or program results in "error TOC overflow" add -mminimal-toc to
9090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9095 hardcode_direct_absolute=yes
9096 hardcode_libdir_separator=':'
9097 link_all_deplibs=yes
9098 file_list_spec='${wl}-f,'
9100 if test "$GCC" = yes; then
9101 case $host_os in aix4.[012]|aix4.[012].*)
9102 # We only want to do this on AIX 4.2 and lower, the check
9103 # below for broken collect2 doesn't work under 4.3+
9104 collect2name=`${CC} -print-prog-name=collect2`
9105 if test -f "$collect2name" &&
9106 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9108 # We have reworked collect2
9111 # We have old collect2
9112 hardcode_direct=unsupported
9113 # It fails to find uninstalled libraries when the uninstalled
9114 # path is not listed in the libpath. Setting hardcode_minus_L
9115 # to unsupported forces relinking
9116 hardcode_minus_L=yes
9117 hardcode_libdir_flag_spec='-L$libdir'
9118 hardcode_libdir_separator=
9122 shared_flag='-shared'
9123 if test "$aix_use_runtimelinking" = yes; then
9124 shared_flag="$shared_flag "'${wl}-G'
9128 if test "$host_cpu" = ia64; then
9129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9130 # chokes on -Wl,-G. The following line is correct:
9133 if test "$aix_use_runtimelinking" = yes; then
9134 shared_flag='${wl}-G'
9136 shared_flag='${wl}-bM:SRE'
9141 export_dynamic_flag_spec='${wl}-bexpall'
9142 # It seems that -bexpall does not export symbols beginning with
9143 # underscore (_), so it is better to generate a list of symbols to export.
9144 always_export_symbols=yes
9145 if test "$aix_use_runtimelinking" = yes; then
9146 # Warning - without using the other runtime loading flags (-brtl),
9147 # -berok will link without error, but may produce a broken library.
9148 allow_undefined_flag='-berok'
9149 # Determine the default libpath from the value encoded in an
9151 if test "${lt_cv_aix_libpath+set}" = set; then
9152 aix_libpath=$lt_cv_aix_libpath
9154 if ${lt_cv_aix_libpath_+:} false; then :
9155 $as_echo_n "(cached) " >&6
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9168 if ac_fn_c_try_link "$LINENO"; then :
9170 lt_aix_libpath_sed='
9171 /Import File Strings/,/^$/ {
9173 s/^0 *\([^ ]*\) *$/\1/
9177 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9178 # Check for a 64-bit object if we didn't find anything.
9179 if test -z "$lt_cv_aix_libpath_"; then
9180 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9183 rm -f core conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185 if test -z "$lt_cv_aix_libpath_"; then
9186 lt_cv_aix_libpath_="/usr/lib:/lib"
9191 aix_libpath=$lt_cv_aix_libpath_
9194 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9195 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9197 if test "$host_cpu" = ia64; then
9198 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9199 allow_undefined_flag="-z nodefs"
9200 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"
9202 # Determine the default libpath from the value encoded in an
9204 if test "${lt_cv_aix_libpath+set}" = set; then
9205 aix_libpath=$lt_cv_aix_libpath
9207 if ${lt_cv_aix_libpath_+:} false; then :
9208 $as_echo_n "(cached) " >&6
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9221 if ac_fn_c_try_link "$LINENO"; then :
9223 lt_aix_libpath_sed='
9224 /Import File Strings/,/^$/ {
9226 s/^0 *\([^ ]*\) *$/\1/
9230 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9231 # Check for a 64-bit object if we didn't find anything.
9232 if test -z "$lt_cv_aix_libpath_"; then
9233 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9236 rm -f core conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 if test -z "$lt_cv_aix_libpath_"; then
9239 lt_cv_aix_libpath_="/usr/lib:/lib"
9244 aix_libpath=$lt_cv_aix_libpath_
9247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9248 # Warning - without using the other run time loading flags,
9249 # -berok will link without error, but may produce a broken library.
9250 no_undefined_flag=' ${wl}-bernotok'
9251 allow_undefined_flag=' ${wl}-berok'
9252 if test "$with_gnu_ld" = yes; then
9253 # We only use this code for GNU lds that support --whole-archive.
9254 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9256 # Exported symbols can be pulled into shared objects from archives
9257 whole_archive_flag_spec='$convenience'
9259 archive_cmds_need_lc=yes
9260 # This is similar to how AIX traditionally builds its shared libraries.
9261 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9269 # see comment about AmigaOS4 .so support
9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271 archive_expsym_cmds=''
9274 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)'
9275 hardcode_libdir_flag_spec='-L$libdir'
9276 hardcode_minus_L=yes
9282 export_dynamic_flag_spec=-rdynamic
9285 cygwin* | mingw* | pw32* | cegcc*)
9286 # When not using gcc, we currently assume that we are using
9287 # Microsoft Visual C++.
9288 # hardcode_libdir_flag_spec is actually meaningless, as there is
9289 # no search path for DLLs.
9290 case $cc_basename in
9293 hardcode_libdir_flag_spec=' '
9294 allow_undefined_flag=unsupported
9295 always_export_symbols=yes
9297 # Tell ltmain to make .lib files, not .a files.
9299 # Tell ltmain to make .dll files, not .so files.
9301 # FIXME: Setting linknames here is a bad hack.
9302 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9303 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9304 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9306 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9308 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9310 # The linker will not automatically build a static lib if we build a DLL.
9311 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9312 enable_shared_with_static_runtimes=yes
9313 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9316 old_postinstall_cmds='chmod 644 $oldlib'
9317 postlink_cmds='lt_outputfile="@OUTPUT@"~
9318 lt_tool_outputfile="@TOOL_OUTPUT@"~
9319 case $lt_outputfile in
9322 lt_outputfile="$lt_outputfile.exe"
9323 lt_tool_outputfile="$lt_tool_outputfile.exe"
9326 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9327 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9328 $RM "$lt_outputfile.manifest";
9332 # Assume MSVC wrapper
9333 hardcode_libdir_flag_spec=' '
9334 allow_undefined_flag=unsupported
9335 # Tell ltmain to make .lib files, not .a files.
9337 # Tell ltmain to make .dll files, not .so files.
9339 # FIXME: Setting linknames here is a bad hack.
9340 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9341 # The linker will automatically build a .lib file if we build a DLL.
9342 old_archive_from_new_cmds='true'
9343 # FIXME: Should let the user specify the lib program.
9344 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9345 enable_shared_with_static_runtimes=yes
9350 darwin* | rhapsody*)
9353 archive_cmds_need_lc=no
9355 hardcode_automatic=yes
9356 hardcode_shlibpath_var=unsupported
9357 if test "$lt_cv_ld_force_load" = "yes"; then
9358 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\"`'
9361 whole_archive_flag_spec=''
9363 link_all_deplibs=yes
9364 allow_undefined_flag="$_lt_dar_allow_undefined"
9365 case $cc_basename in
9366 ifort*) _lt_dar_can_shared=yes ;;
9367 *) _lt_dar_can_shared=$GCC ;;
9369 if test "$_lt_dar_can_shared" = "yes"; then
9370 output_verbose_link_cmd=func_echo_all
9371 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9372 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9373 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}"
9374 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}"
9383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_libdir_flag_spec='-L$libdir'
9385 hardcode_shlibpath_var=no
9388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9389 # support. Future versions do this automatically, but an explicit c++rt0.o
9390 # does not break anything, and helps significantly (at the cost of a little
9393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9394 hardcode_libdir_flag_spec='-R$libdir'
9396 hardcode_shlibpath_var=no
9399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9403 hardcode_minus_L=yes
9404 hardcode_shlibpath_var=no
9407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9408 freebsd* | dragonfly*)
9409 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9410 hardcode_libdir_flag_spec='-R$libdir'
9412 hardcode_shlibpath_var=no
9416 if test "$GCC" = yes; then
9417 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9419 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9422 hardcode_libdir_separator=:
9425 # hardcode_minus_L: Not really in the search PATH,
9426 # but as the default location of the library.
9427 hardcode_minus_L=yes
9428 export_dynamic_flag_spec='${wl}-E'
9432 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9433 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9437 if test "$with_gnu_ld" = no; then
9438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9439 hardcode_libdir_separator=:
9441 hardcode_direct_absolute=yes
9442 export_dynamic_flag_spec='${wl}-E'
9443 # hardcode_minus_L: Not really in the search PATH,
9444 # but as the default location of the library.
9445 hardcode_minus_L=yes
9450 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9453 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9459 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9468 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9472 # Older versions of the 11.00 compiler do not understand -b yet
9473 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9475 $as_echo_n "checking if $CC understands -b... " >&6; }
9476 if ${lt_cv_prog_compiler__b+:} false; then :
9477 $as_echo_n "(cached) " >&6
9479 lt_cv_prog_compiler__b=no
9480 save_LDFLAGS="$LDFLAGS"
9481 LDFLAGS="$LDFLAGS -b"
9482 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9484 # The linker can only warn and ignore the option if not recognized
9485 # So say no if there are warnings
9486 if test -s conftest.err; then
9487 # Append any errors to the config.log.
9488 cat conftest.err 1>&5
9489 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9491 if diff conftest.exp conftest.er2 >/dev/null; then
9492 lt_cv_prog_compiler__b=yes
9495 lt_cv_prog_compiler__b=yes
9499 LDFLAGS="$save_LDFLAGS"
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9503 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9505 if test x"$lt_cv_prog_compiler__b" = xyes; then
9506 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9508 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9514 if test "$with_gnu_ld" = no; then
9515 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9516 hardcode_libdir_separator=:
9521 hardcode_shlibpath_var=no
9525 hardcode_direct_absolute=yes
9526 export_dynamic_flag_spec='${wl}-E'
9528 # hardcode_minus_L: Not really in the search PATH,
9529 # but as the default location of the library.
9530 hardcode_minus_L=yes
9536 irix5* | irix6* | nonstopux*)
9537 if test "$GCC" = yes; then
9538 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'
9539 # Try to use the -exported_symbol ld option, if it does not
9540 # work, assume that -exports_file does not work either and
9541 # implicitly export all symbols.
9542 # This should be the same for all languages, so no per-tag cache variable.
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9544 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9545 if ${lt_cv_irix_exported_symbol+:} false; then :
9546 $as_echo_n "(cached) " >&6
9548 save_LDFLAGS="$LDFLAGS"
9549 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9552 int foo (void) { return 0; }
9554 if ac_fn_c_try_link "$LINENO"; then :
9555 lt_cv_irix_exported_symbol=yes
9557 lt_cv_irix_exported_symbol=no
9559 rm -f core conftest.err conftest.$ac_objext \
9560 conftest$ac_exeext conftest.$ac_ext
9561 LDFLAGS="$save_LDFLAGS"
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9564 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9565 if test "$lt_cv_irix_exported_symbol" = yes; then
9566 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'
9569 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'
9570 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'
9572 archive_cmds_need_lc='no'
9573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9574 hardcode_libdir_separator=:
9576 link_all_deplibs=yes
9580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9583 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9585 hardcode_libdir_flag_spec='-R$libdir'
9587 hardcode_shlibpath_var=no
9591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9594 hardcode_libdir_separator=:
9595 hardcode_shlibpath_var=no
9602 if test -f /usr/libexec/ld.so; then
9604 hardcode_shlibpath_var=no
9605 hardcode_direct_absolute=yes
9606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9610 export_dynamic_flag_spec='${wl}-E'
9613 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9615 hardcode_libdir_flag_spec='-R$libdir'
9618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9629 hardcode_libdir_flag_spec='-L$libdir'
9630 hardcode_minus_L=yes
9631 allow_undefined_flag=unsupported
9632 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9633 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9637 if test "$GCC" = yes; then
9638 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9639 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'
9641 allow_undefined_flag=' -expect_unresolved \*'
9642 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'
9644 archive_cmds_need_lc='no'
9645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9646 hardcode_libdir_separator=:
9649 osf4* | osf5*) # as osf3* with the addition of -msym flag
9650 if test "$GCC" = yes; then
9651 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9652 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'
9653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655 allow_undefined_flag=' -expect_unresolved \*'
9656 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'
9657 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~
9658 $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'
9660 # Both c and cxx compiler support -rpath directly
9661 hardcode_libdir_flag_spec='-rpath $libdir'
9663 archive_cmds_need_lc='no'
9664 hardcode_libdir_separator=:
9668 no_undefined_flag=' -z defs'
9669 if test "$GCC" = yes; then
9671 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9673 $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'
9675 case `$CC -V 2>&1` in
9678 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9680 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9684 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9686 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9690 hardcode_libdir_flag_spec='-R$libdir'
9691 hardcode_shlibpath_var=no
9693 solaris2.[0-5] | solaris2.[0-5].*) ;;
9695 # The compiler driver will combine and reorder linker options,
9696 # but understands `-z linker_flag'. GCC discards it without `$wl',
9697 # but is careful enough not to reorder.
9698 # Supported since Solaris 2.6 (maybe 2.5.1?)
9699 if test "$GCC" = yes; then
9700 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9702 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9706 link_all_deplibs=yes
9710 if test "x$host_vendor" = xsequent; then
9711 # Use $CC to link under sequent, because it throws in some extra .o
9712 # files that make .init and .fini sections work.
9713 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_libdir_flag_spec='-L$libdir'
9719 hardcode_minus_L=yes
9720 hardcode_shlibpath_var=no
9724 case $host_vendor in
9726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727 hardcode_direct=yes # is this really true???
9730 ## LD is ld it makes a PLAMLIB
9731 ## CC just makes a GrossModule.
9732 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9733 reload_cmds='$CC -r -o $output$reload_objs'
9737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9741 runpath_var='LD_RUN_PATH'
9742 hardcode_shlibpath_var=no
9746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_shlibpath_var=no
9748 export_dynamic_flag_spec='-Bexport'
9752 if test -d /usr/nec; then
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_shlibpath_var=no
9755 runpath_var=LD_RUN_PATH
9756 hardcode_runpath_var=yes
9761 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9762 no_undefined_flag='${wl}-z,text'
9763 archive_cmds_need_lc=no
9764 hardcode_shlibpath_var=no
9765 runpath_var='LD_RUN_PATH'
9767 if test "$GCC" = yes; then
9768 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 sysv5* | sco3.2v5* | sco5v6*)
9777 # Note: We can NOT use -z defs as we might desire, because we do not
9778 # link with -lc, and that would cause any symbols used from libc to
9779 # always be unresolved, which means just about no library would
9780 # ever link correctly. If we're not using GNU ld we use -z text
9781 # though, which does catch some bad symbols but isn't as heavy-handed
9783 no_undefined_flag='${wl}-z,text'
9784 allow_undefined_flag='${wl}-z,nodefs'
9785 archive_cmds_need_lc=no
9786 hardcode_shlibpath_var=no
9787 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9788 hardcode_libdir_separator=':'
9789 link_all_deplibs=yes
9790 export_dynamic_flag_spec='${wl}-Bexport'
9791 runpath_var='LD_RUN_PATH'
9793 if test "$GCC" = yes; then
9794 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9795 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804 hardcode_libdir_flag_spec='-L$libdir'
9805 hardcode_shlibpath_var=no
9813 if test x$host_vendor = xsni; then
9815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9816 export_dynamic_flag_spec='${wl}-Blargedynsym'
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9823 $as_echo "$ld_shlibs" >&6; }
9824 test "$ld_shlibs" = no && can_build_shared=no
9826 with_gnu_ld=$with_gnu_ld
9843 # Do we need to explicitly link libc?
9845 case "x$archive_cmds_need_lc" in
9847 # Assume -lc should be added
9848 archive_cmds_need_lc=yes
9850 if test "$enable_shared" = yes && test "$GCC" = yes; then
9851 case $archive_cmds in
9853 # FIXME: we may have to deal with multi-command sequences.
9856 # Test whether the compiler implicitly links with -lc since on some
9857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9858 # to ld, don't add -lc before -lgcc.
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9861 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9862 $as_echo_n "(cached) " >&6
9865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9868 (eval $ac_compile) 2>&5
9870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9871 test $ac_status = 0; } 2>conftest.err; then
9874 libobjs=conftest.$ac_objext
9876 wl=$lt_prog_compiler_wl
9877 pic_flag=$lt_prog_compiler_pic
9883 lt_save_allow_undefined_flag=$allow_undefined_flag
9884 allow_undefined_flag=
9885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9886 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9889 test $ac_status = 0; }
9891 lt_cv_archive_cmds_need_lc=no
9893 lt_cv_archive_cmds_need_lc=yes
9895 allow_undefined_flag=$lt_save_allow_undefined_flag
9897 cat conftest.err 1>&5
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9903 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9904 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10063 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10065 if test "$GCC" = yes; then
10067 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10068 *) lt_awk_arg="/^libraries:/" ;;
10071 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10072 *) lt_sed_strip_eq="s,=/,/,g" ;;
10074 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10075 case $lt_search_path_spec in
10077 # if the path contains ";" then we assume it to be the separator
10078 # otherwise default to the standard path separator (i.e. ":") - it is
10079 # assumed that no part of a normal pathname contains ";" but that should
10080 # okay in the real world where ";" in dirpaths is itself problematic.
10081 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10084 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10087 # Ok, now we have the path, separated by spaces, we can step through it
10088 # and add multilib dir if necessary.
10089 lt_tmp_lt_search_path_spec=
10090 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10091 for lt_sys_path in $lt_search_path_spec; do
10092 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10093 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10095 test -d "$lt_sys_path" && \
10096 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10099 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10100 BEGIN {RS=" "; FS="/|\n";} {
10103 for (lt_i = NF; lt_i > 0; lt_i--) {
10104 if ($lt_i != "" && $lt_i != ".") {
10105 if ($lt_i == "..") {
10108 if (lt_count == 0) {
10109 lt_foo="/" $lt_i lt_foo;
10116 if (lt_foo != "") { lt_freq[lt_foo]++; }
10117 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10119 # AWK program above erroneously prepends '/' to C:/dos/paths
10122 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10123 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10125 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10129 library_names_spec=
10130 libname_spec='lib$name'
10134 postuninstall_cmds=
10138 shlibpath_overrides_runpath=unknown
10140 dynamic_linker="$host_os ld.so"
10141 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10142 need_lib_prefix=unknown
10143 hardcode_into_libs=no
10145 # when you set need_version to no, make sure it does not cause -set_version
10146 # flags to be left without arguments
10147 need_version=unknown
10151 version_type=linux # correct to gnu/linux during the next big refactor
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10153 shlibpath_var=LIBPATH
10155 # AIX 3 has no versioning support, so we append a major version to the name.
10156 soname_spec='${libname}${release}${shared_ext}$major'
10160 version_type=linux # correct to gnu/linux during the next big refactor
10163 hardcode_into_libs=yes
10164 if test "$host_cpu" = ia64; then
10165 # AIX 5 supports IA64
10166 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10167 shlibpath_var=LD_LIBRARY_PATH
10169 # With GCC up to 2.95.x, collect2 would create an import file
10170 # for dependence libraries. The import file would start with
10171 # the line `#! .'. This would cause the generated library to
10172 # depend on `.', always an invalid library. This was fixed in
10173 # development snapshots of GCC prior to 3.0.
10175 aix4 | aix4.[01] | aix4.[01].*)
10176 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10178 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10181 can_build_shared=no
10185 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10186 # soname into executable. Probably we can add versioning support to
10187 # collect2, so additional links can be useful in future.
10188 if test "$aix_use_runtimelinking" = yes; then
10189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10190 # instead of lib<name>.a to let people know that these are not
10191 # typical AIX shared libraries.
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194 # We preserve .a as extension for shared libraries through AIX4.2
10195 # and later when we are not doing run time linking.
10196 library_names_spec='${libname}${release}.a $libname.a'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LIBPATH
10206 # Since July 2007 AmigaOS4 officially supports .so libraries.
10207 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 library_names_spec='$libname.ixlibrary $libname.a'
10212 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10213 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10219 library_names_spec='${libname}${shared_ext}'
10220 dynamic_linker="$host_os ld.so"
10221 shlibpath_var=LIBRARY_PATH
10225 version_type=linux # correct to gnu/linux during the next big refactor
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10232 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10233 # the default ld.so.conf also contains /usr/contrib/lib and
10234 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10235 # libtool to hard-code these into programs
10238 cygwin* | mingw* | pw32* | cegcc*)
10239 version_type=windows
10244 case $GCC,$cc_basename in
10247 library_names_spec='$libname.dll.a'
10248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10249 postinstall_cmds='base_file=`basename \${file}`~
10250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10251 dldir=$destdir/`dirname \$dlpath`~
10252 test -d \$dldir || mkdir -p \$dldir~
10253 $install_prog $dir/$dlname \$dldir/$dlname~
10254 chmod a+x \$dldir/$dlname~
10255 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10256 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10259 dlpath=$dir/\$dldll~
10261 shlibpath_overrides_runpath=yes
10265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10266 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10268 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10271 # MinGW DLLs use traditional 'lib' prefix
10272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10275 # pw32 DLLs use 'pw' prefix rather than 'lib'
10276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10279 dynamic_linker='Win32 ld.exe'
10284 libname_spec='$name'
10285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10286 library_names_spec='${libname}.dll.lib'
10290 sys_lib_search_path_spec=
10293 for lt_path in $LIB
10296 # Let DOS variable expansion print the short 8.3 style file name.
10297 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10298 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10301 # Convert to MSYS style.
10302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10305 # Convert to unix form, then to dos form, then back to unix form
10306 # but this time dos style (no spaces!) so that the unix form looks
10307 # like /cygdrive/c/PROGRA~1:/cygdr...
10308 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10309 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10310 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10313 sys_lib_search_path_spec="$LIB"
10314 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10315 # It is most probably a Windows format PATH.
10316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10320 # FIXME: find the short name or the path components, as spaces are
10321 # common. (e.g. "Program Files" -> "PROGRA~1")
10325 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10326 postinstall_cmds='base_file=`basename \${file}`~
10327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10328 dldir=$destdir/`dirname \$dlpath`~
10329 test -d \$dldir || mkdir -p \$dldir~
10330 $install_prog $dir/$dlname \$dldir/$dlname'
10331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10332 dlpath=$dir/\$dldll~
10334 shlibpath_overrides_runpath=yes
10335 dynamic_linker='Win32 link.exe'
10339 # Assume MSVC wrapper
10340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10341 dynamic_linker='Win32 ld.exe'
10344 # FIXME: first we should search . and the directory the executable is in
10348 darwin* | rhapsody*)
10349 dynamic_linker="$host_os dyld"
10350 version_type=darwin
10353 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10354 soname_spec='${libname}${release}${major}$shared_ext'
10355 shlibpath_overrides_runpath=yes
10356 shlibpath_var=DYLD_LIBRARY_PATH
10357 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10364 version_type=linux # correct to gnu/linux during the next big refactor
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10372 freebsd* | dragonfly*)
10373 # DragonFly does not have aout. When/if they implement a new
10374 # versioning mechanism, adjust this.
10375 if test -x /usr/bin/objformat; then
10376 objformat=`/usr/bin/objformat`
10379 freebsd[23].*) objformat=aout ;;
10380 *) objformat=elf ;;
10383 version_type=freebsd-$objformat
10384 case $version_type in
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
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 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=no
10424 hardcode_into_libs=yes
10428 version_type=linux # correct to gnu/linux during the next big refactor
10431 dynamic_linker="$host_os runtime_loader"
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 shlibpath_var=LIBRARY_PATH
10435 shlibpath_overrides_runpath=yes
10436 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10437 hardcode_into_libs=yes
10440 hpux9* | hpux10* | hpux11*)
10441 # Give a soname corresponding to the major version so that dld.sl refuses to
10442 # link against other versions.
10449 hardcode_into_libs=yes
10450 dynamic_linker="$host_os dld.so"
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 if test "X$HPUX_IA64_MODE" = X32; then
10456 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10458 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10464 hardcode_into_libs=yes
10465 dynamic_linker="$host_os dld.sl"
10466 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
10470 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10471 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10475 dynamic_linker="$host_os dld.sl"
10476 shlibpath_var=SHLIB_PATH
10477 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10482 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10483 postinstall_cmds='chmod 555 $lib'
10484 # or fails outright, so override atomically:
10485 install_override_mode=555
10489 version_type=linux # correct to gnu/linux during the next big refactor
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=no
10497 hardcode_into_libs=yes
10500 irix5* | irix6* | nonstopux*)
10502 nonstopux*) version_type=nonstopux ;;
10504 if test "$lt_cv_prog_gnu_ld" = yes; then
10505 version_type=linux # correct to gnu/linux during the next big refactor
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10515 irix5* | nonstopux*)
10516 libsuff= shlibsuff=
10519 case $LD in # libtool.m4 will add one of these switches to LD
10520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10521 libsuff= shlibsuff= libmagic=32-bit;;
10522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10523 libsuff=32 shlibsuff=N32 libmagic=N32;;
10524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10526 *) libsuff= shlibsuff= libmagic=never-match;;
10530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10531 shlibpath_overrides_runpath=no
10532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10534 hardcode_into_libs=yes
10537 # No shared lib support for Linux oldld, aout, or coff.
10538 linux*oldld* | linux*aout* | linux*coff*)
10542 # This must be glibc/ELF.
10543 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10544 version_type=linux # correct to gnu/linux during the next big refactor
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 shlibpath_overrides_runpath=no
10553 # Some binutils ld are patched to set DT_RUNPATH
10554 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10555 $as_echo_n "(cached) " >&6
10557 lt_cv_shlibpath_overrides_runpath=no
10558 save_LDFLAGS=$LDFLAGS
10559 save_libdir=$libdir
10560 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10561 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10573 if ac_fn_c_try_link "$LINENO"; then :
10574 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10575 lt_cv_shlibpath_overrides_runpath=yes
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 LDFLAGS=$save_LDFLAGS
10581 libdir=$save_libdir
10585 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10587 # This implies no fast_install, which is unacceptable.
10588 # Some rework will be needed to allow for fast_install
10589 # before this can be enabled.
10590 hardcode_into_libs=yes
10592 # Add ABI-specific directories to the system library path.
10593 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10595 # Append ld.so.conf contents to the search path
10596 if test -f /etc/ld.so.conf; then
10597 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' ' '`
10598 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10602 # We used to test for /lib/ld.so.1 and disable shared libraries on
10603 # powerpc, because MkLinux only supported shared libraries with the
10604 # GNU dynamic linker. Since this was broken with cross compilers,
10605 # most powerpc-linux boxes support dynamic linking these days and
10606 # people can always --disable-shared, the test was removed, and we
10607 # assume the GNU/Linux dynamic linker is in use.
10608 dynamic_linker='GNU/Linux ld.so'
10615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10618 dynamic_linker='NetBSD (a.out) ld.so'
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 dynamic_linker='NetBSD ld.elf_so'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes
10626 hardcode_into_libs=yes
10630 version_type=linux # correct to gnu/linux during the next big refactor
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 shlibpath_overrides_runpath=no
10644 hardcode_into_libs=yes
10645 dynamic_linker='ldqnx.so'
10650 sys_lib_dlsearch_path_spec="/usr/lib"
10652 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10654 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10655 *) need_version=no ;;
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10662 openbsd2.[89] | openbsd2.[89].*)
10663 shlibpath_overrides_runpath=no
10666 shlibpath_overrides_runpath=yes
10670 shlibpath_overrides_runpath=yes
10675 libname_spec='$name'
10678 library_names_spec='$libname${shared_ext} $libname.a'
10679 dynamic_linker='OS/2 ld.exe'
10680 shlibpath_var=LIBPATH
10683 osf3* | osf4* | osf5*)
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10699 version_type=linux # correct to gnu/linux during the next big refactor
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=yes
10706 hardcode_into_libs=yes
10707 # ldd complains unless libraries are executable
10708 postinstall_cmds='chmod +x $lib'
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes
10717 if test "$with_gnu_ld" = yes; then
10724 version_type=linux # correct to gnu/linux during the next big refactor
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 case $host_vendor in
10730 shlibpath_overrides_runpath=no
10732 runpath_var=LD_RUN_PATH
10740 shlibpath_overrides_runpath=no
10741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10747 if test -d /usr/nec ;then
10748 version_type=linux # correct to gnu/linux during the next big refactor
10749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10750 soname_spec='$libname${shared_ext}.$major'
10751 shlibpath_var=LD_LIBRARY_PATH
10755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10756 version_type=freebsd-elf
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 shlibpath_overrides_runpath=yes
10763 hardcode_into_libs=yes
10764 if test "$with_gnu_ld" = yes; then
10765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10774 sys_lib_dlsearch_path_spec='/usr/lib'
10778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10779 version_type=linux # correct to gnu/linux during the next big refactor
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=no
10785 hardcode_into_libs=yes
10789 version_type=linux # correct to gnu/linux during the next big refactor
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LD_LIBRARY_PATH
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10800 $as_echo "$dynamic_linker" >&6; }
10801 test "$dynamic_linker" = no && can_build_shared=no
10803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10804 if test "$GCC" = yes; then
10805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10809 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10812 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10907 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10909 if test -n "$hardcode_libdir_flag_spec" ||
10910 test -n "$runpath_var" ||
10911 test "X$hardcode_automatic" = "Xyes" ; then
10913 # We can hardcode non-existent directories.
10914 if test "$hardcode_direct" != no &&
10915 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10916 # have to relink, otherwise we might link with an installed library
10917 # when we should be linking with a yet-to-be-installed one
10918 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10919 test "$hardcode_minus_L" != no; then
10920 # Linking always hardcodes the temporary library directory.
10921 hardcode_action=relink
10923 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10924 hardcode_action=immediate
10927 # We cannot hardcode anything, or else we can only hardcode existing
10929 hardcode_action=unsupported
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10932 $as_echo "$hardcode_action" >&6; }
10934 if test "$hardcode_action" = relink ||
10935 test "$inherit_rpath" = yes; then
10936 # Fast installation is not supported
10937 enable_fast_install=no
10938 elif test "$shlibpath_overrides_runpath" = yes ||
10939 test "$enable_shared" = no; then
10940 # Fast installation is not necessary
10941 enable_fast_install=needless
10949 if test "x$enable_dlopen" != xyes; then
10950 enable_dlopen=unknown
10951 enable_dlopen_self=unknown
10952 enable_dlopen_self_static=unknown
10959 lt_cv_dlopen="load_add_on"
10961 lt_cv_dlopen_self=yes
10964 mingw* | pw32* | cegcc*)
10965 lt_cv_dlopen="LoadLibrary"
10970 lt_cv_dlopen="dlopen"
10975 # if libdl is installed we need to link against it
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10978 if ${ac_cv_lib_dl_dlopen+:} false; then :
10979 $as_echo_n "(cached) " >&6
10981 ac_check_lib_save_LIBS=$LIBS
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
11001 if ac_fn_c_try_link "$LINENO"; then :
11002 ac_cv_lib_dl_dlopen=yes
11004 ac_cv_lib_dl_dlopen=no
11006 rm -f core conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11012 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11016 lt_cv_dlopen="dyld"
11018 lt_cv_dlopen_self=yes
11025 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11026 if test "x$ac_cv_func_shl_load" = xyes; then :
11027 lt_cv_dlopen="shl_load"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11030 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11031 if ${ac_cv_lib_dld_shl_load+:} false; then :
11032 $as_echo_n "(cached) " >&6
11034 ac_check_lib_save_LIBS=$LIBS
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11049 return shl_load ();
11054 if ac_fn_c_try_link "$LINENO"; then :
11055 ac_cv_lib_dld_shl_load=yes
11057 ac_cv_lib_dld_shl_load=no
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11064 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11065 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11066 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11068 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11069 if test "x$ac_cv_func_dlopen" = xyes; then :
11070 lt_cv_dlopen="dlopen"
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11073 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11074 if ${ac_cv_lib_dl_dlopen+:} false; then :
11075 $as_echo_n "(cached) " >&6
11077 ac_check_lib_save_LIBS=$LIBS
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11082 /* Override any GCC internal prototype to avoid an error.
11083 Use char because int might match the return type of a GCC
11084 builtin and then its argument prototype would still apply. */
11097 if ac_fn_c_try_link "$LINENO"; then :
11098 ac_cv_lib_dl_dlopen=yes
11100 ac_cv_lib_dl_dlopen=no
11102 rm -f core conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11107 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11108 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11112 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11113 if ${ac_cv_lib_svld_dlopen+:} false; then :
11114 $as_echo_n "(cached) " >&6
11116 ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lsvld $LIBS"
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11136 if ac_fn_c_try_link "$LINENO"; then :
11137 ac_cv_lib_svld_dlopen=yes
11139 ac_cv_lib_svld_dlopen=no
11141 rm -f core conftest.err conftest.$ac_objext \
11142 conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11146 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11147 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11151 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11152 if ${ac_cv_lib_dld_dld_link+:} false; then :
11153 $as_echo_n "(cached) " >&6
11155 ac_check_lib_save_LIBS=$LIBS
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 /* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11170 return dld_link ();
11175 if ac_fn_c_try_link "$LINENO"; then :
11176 ac_cv_lib_dld_dld_link=yes
11178 ac_cv_lib_dld_dld_link=no
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11185 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11186 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11187 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11208 if test "x$lt_cv_dlopen" != xno; then
11214 case $lt_cv_dlopen in
11216 save_CPPFLAGS="$CPPFLAGS"
11217 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11219 save_LDFLAGS="$LDFLAGS"
11220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11223 LIBS="$lt_cv_dlopen_libs $LIBS"
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11226 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11227 if ${lt_cv_dlopen_self+:} false; then :
11228 $as_echo_n "(cached) " >&6
11230 if test "$cross_compiling" = yes; then :
11231 lt_cv_dlopen_self=cross
11233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11234 lt_status=$lt_dlunknown
11235 cat > conftest.$ac_ext <<_LT_EOF
11236 #line $LINENO "configure"
11237 #include "confdefs.h"
11246 # define LT_DLGLOBAL RTLD_GLOBAL
11249 # define LT_DLGLOBAL DL_GLOBAL
11251 # define LT_DLGLOBAL 0
11255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11256 find out it does not work in some platform. */
11257 #ifndef LT_DLLAZY_OR_NOW
11259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11262 # define LT_DLLAZY_OR_NOW DL_LAZY
11265 # define LT_DLLAZY_OR_NOW RTLD_NOW
11268 # define LT_DLLAZY_OR_NOW DL_NOW
11270 # define LT_DLLAZY_OR_NOW 0
11277 /* When -fvisbility=hidden is used, assume the code has been annotated
11278 correspondingly for the symbols needed. */
11279 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11280 int fnord () __attribute__((visibility("default")));
11283 int fnord () { return 42; }
11286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11287 int status = $lt_dlunknown;
11291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11294 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11295 else puts (dlerror ());
11297 /* dlclose (self); */
11305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11306 (eval $ac_link) 2>&5
11308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11309 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11310 (./conftest; exit; ) >&5 2>/dev/null
11312 case x$lt_status in
11313 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11314 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11315 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11318 # compilation failed
11319 lt_cv_dlopen_self=no
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11327 $as_echo "$lt_cv_dlopen_self" >&6; }
11329 if test "x$lt_cv_dlopen_self" = xyes; then
11330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11332 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11333 if ${lt_cv_dlopen_self_static+:} false; then :
11334 $as_echo_n "(cached) " >&6
11336 if test "$cross_compiling" = yes; then :
11337 lt_cv_dlopen_self_static=cross
11339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11340 lt_status=$lt_dlunknown
11341 cat > conftest.$ac_ext <<_LT_EOF
11342 #line $LINENO "configure"
11343 #include "confdefs.h"
11352 # define LT_DLGLOBAL RTLD_GLOBAL
11355 # define LT_DLGLOBAL DL_GLOBAL
11357 # define LT_DLGLOBAL 0
11361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11362 find out it does not work in some platform. */
11363 #ifndef LT_DLLAZY_OR_NOW
11365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11368 # define LT_DLLAZY_OR_NOW DL_LAZY
11371 # define LT_DLLAZY_OR_NOW RTLD_NOW
11374 # define LT_DLLAZY_OR_NOW DL_NOW
11376 # define LT_DLLAZY_OR_NOW 0
11383 /* When -fvisbility=hidden is used, assume the code has been annotated
11384 correspondingly for the symbols needed. */
11385 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11386 int fnord () __attribute__((visibility("default")));
11389 int fnord () { return 42; }
11392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11393 int status = $lt_dlunknown;
11397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11400 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11401 else puts (dlerror ());
11403 /* dlclose (self); */
11411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11412 (eval $ac_link) 2>&5
11414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11415 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11416 (./conftest; exit; ) >&5 2>/dev/null
11418 case x$lt_status in
11419 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11420 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11421 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11424 # compilation failed
11425 lt_cv_dlopen_self_static=no
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11433 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11436 CPPFLAGS="$save_CPPFLAGS"
11437 LDFLAGS="$save_LDFLAGS"
11442 case $lt_cv_dlopen_self in
11443 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11444 *) enable_dlopen_self=unknown ;;
11447 case $lt_cv_dlopen_self_static in
11448 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11449 *) enable_dlopen_self_static=unknown ;;
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11472 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11473 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11474 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11475 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11477 $as_echo "yes" >&6; }
11479 # FIXME - insert some real tests, host_os isn't really good enough
11482 if test -n "$STRIP" ; then
11483 striplib="$STRIP -x"
11484 old_striplib="$STRIP -S"
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11486 $as_echo "yes" >&6; }
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11510 # Report which library types will actually be built
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11512 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11514 $as_echo "$can_build_shared" >&6; }
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11517 $as_echo_n "checking whether to build shared libraries... " >&6; }
11518 test "$can_build_shared" = "no" && enable_shared=no
11520 # On AIX, shared libraries and static libraries use the same namespace, and
11521 # are all built from PIC.
11524 test "$enable_shared" = yes && enable_static=no
11525 if test -n "$RANLIB"; then
11526 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11527 postinstall_cmds='$RANLIB $lib'
11532 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11533 test "$enable_shared" = yes && enable_static=no
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11538 $as_echo "$enable_shared" >&6; }
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11541 $as_echo_n "checking whether to build static libraries... " >&6; }
11542 # Make sure either enable_shared or enable_static is yes.
11543 test "$enable_shared" = yes || enable_static=yes
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11545 $as_echo "$enable_static" >&6; }
11552 ac_cpp='$CPP $CPPFLAGS'
11553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11573 ac_config_commands="$ac_config_commands libtool"
11578 # Only expand once:
11582 # Check whether --enable-tools was given.
11583 if test "${enable_tools+set}" = set; then :
11584 enableval=$enable_tools; case $enableval in
11585 yes|no) enable_tools=${enableval} ;;
11586 *) as_fn_error $? "Invalid value passed to --enable-tools" "$LINENO" 5 ;;
11592 ENABLE_TOOLS=${enable_tools}
11594 if test "${enable_tools}" = yes; then
11596 ENABLE_TOOLS_FALSE='#'
11598 ENABLE_TOOLS_TRUE='#'
11599 ENABLE_TOOLS_FALSE=
11605 ac_cpp='$CPP $CPPFLAGS'
11606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11611 ac_cpp='$CPP $CPPFLAGS'
11612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11615 if test -n "$ac_tool_prefix"; then
11616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11619 $as_echo_n "checking for $ac_word... " >&6; }
11620 if ${ac_cv_prog_CC+:} false; then :
11621 $as_echo_n "(cached) " >&6
11623 if test -n "$CC"; then
11624 ac_cv_prog_CC="$CC" # Let the user override the test.
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 if test -n "$CC"; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11646 $as_echo "$CC" >&6; }
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 $as_echo "no" >&6; }
11654 if test -z "$ac_cv_prog_CC"; then
11656 # Extract the first word of "gcc", so it can be a program name with args.
11657 set dummy gcc; ac_word=$2
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11659 $as_echo_n "checking for $ac_word... " >&6; }
11660 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11661 $as_echo_n "(cached) " >&6
11663 if test -n "$ac_ct_CC"; then
11664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673 ac_cv_prog_ac_ct_CC="gcc"
11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11684 if test -n "$ac_ct_CC"; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11686 $as_echo "$ac_ct_CC" >&6; }
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11692 if test "x$ac_ct_CC" = x; then
11695 case $cross_compiling:$ac_tool_warned in
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11699 ac_tool_warned=yes ;;
11704 CC="$ac_cv_prog_CC"
11707 if test -z "$CC"; then
11708 if test -n "$ac_tool_prefix"; then
11709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11710 set dummy ${ac_tool_prefix}cc; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_prog_CC+:} false; then :
11714 $as_echo_n "(cached) " >&6
11716 if test -n "$CC"; then
11717 ac_cv_prog_CC="$CC" # Let the user override the test.
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726 ac_cv_prog_CC="${ac_tool_prefix}cc"
11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 if test -n "$CC"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11739 $as_echo "$CC" >&6; }
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11748 if test -z "$CC"; then
11749 # Extract the first word of "cc", so it can be a program name with args.
11750 set dummy cc; ac_word=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if ${ac_cv_prog_CC+:} false; then :
11754 $as_echo_n "(cached) " >&6
11756 if test -n "$CC"; then
11757 ac_cv_prog_CC="$CC" # Let the user override the test.
11759 ac_prog_rejected=no
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11764 test -z "$as_dir" && as_dir=.
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11768 ac_prog_rejected=yes
11772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 if test $ac_prog_rejected = yes; then
11780 # We found a bogon in the path, so make sure we never use it.
11781 set dummy $ac_cv_prog_CC
11783 if test $# != 0; then
11784 # We chose a different compiler from the bogus one.
11785 # However, it has the same basename, so the bogon will be chosen
11786 # first if we set CC to just the basename; use the full file name.
11788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11794 if test -n "$CC"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11796 $as_echo "$CC" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11804 if test -z "$CC"; then
11805 if test -n "$ac_tool_prefix"; then
11806 for ac_prog in cl.exe
11808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if ${ac_cv_prog_CC+:} false; then :
11813 $as_echo_n "(cached) " >&6
11815 if test -n "$CC"; then
11816 ac_cv_prog_CC="$CC" # Let the user override the test.
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 if test -n "$CC"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11838 $as_echo "$CC" >&6; }
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11845 test -n "$CC" && break
11848 if test -z "$CC"; then
11850 for ac_prog in cl.exe
11852 # Extract the first word of "$ac_prog", so it can be a program name with args.
11853 set dummy $ac_prog; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11857 $as_echo_n "(cached) " >&6
11859 if test -n "$ac_ct_CC"; then
11860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11869 ac_cv_prog_ac_ct_CC="$ac_prog"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11880 if test -n "$ac_ct_CC"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11882 $as_echo "$ac_ct_CC" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11889 test -n "$ac_ct_CC" && break
11892 if test "x$ac_ct_CC" = x; then
11895 case $cross_compiling:$ac_tool_warned in
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11899 ac_tool_warned=yes ;;
11908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11910 as_fn_error $? "no acceptable C compiler found in \$PATH
11911 See \`config.log' for more details" "$LINENO" 5; }
11913 # Provide some information about the compiler.
11914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11917 for ac_option in --version -v -V -qversion; do
11918 { { ac_try="$ac_compiler $ac_option >&5"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11924 $as_echo "$ac_try_echo"; } >&5
11925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11927 if test -s conftest.err; then
11929 ... rest of stderr output deleted ...
11930 10q' conftest.err >conftest.er1
11931 cat conftest.er1 >&5
11933 rm -f conftest.er1 conftest.err
11934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11935 test $ac_status = 0; }
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11939 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11940 if ${ac_cv_c_compiler_gnu+:} false; then :
11941 $as_echo_n "(cached) " >&6
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11957 if ac_fn_c_try_compile "$LINENO"; then :
11958 ac_compiler_gnu=yes
11962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11967 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11968 if test $ac_compiler_gnu = yes; then
11973 ac_test_CFLAGS=${CFLAGS+set}
11974 ac_save_CFLAGS=$CFLAGS
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11976 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11977 if ${ac_cv_prog_cc_g+:} false; then :
11978 $as_echo_n "(cached) " >&6
11980 ac_save_c_werror_flag=$ac_c_werror_flag
11981 ac_c_werror_flag=yes
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11995 if ac_fn_c_try_compile "$LINENO"; then :
11996 ac_cv_prog_cc_g=yes
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12010 if ac_fn_c_try_compile "$LINENO"; then :
12013 ac_c_werror_flag=$ac_save_c_werror_flag
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12026 if ac_fn_c_try_compile "$LINENO"; then :
12027 ac_cv_prog_cc_g=yes
12029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 ac_c_werror_flag=$ac_save_c_werror_flag
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12037 $as_echo "$ac_cv_prog_cc_g" >&6; }
12038 if test "$ac_test_CFLAGS" = set; then
12039 CFLAGS=$ac_save_CFLAGS
12040 elif test $ac_cv_prog_cc_g = yes; then
12041 if test "$GCC" = yes; then
12047 if test "$GCC" = yes; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12055 if ${ac_cv_prog_cc_c89+:} false; then :
12056 $as_echo_n "(cached) " >&6
12058 ac_cv_prog_cc_c89=no
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12062 #include <stdarg.h>
12064 #include <sys/types.h>
12065 #include <sys/stat.h>
12066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12067 struct buf { int x; };
12068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12069 static char *e (p, i)
12075 static char *f (char * (*g) (char **, int), char **p, ...)
12080 s = g (p, va_arg (v,int));
12085 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12086 function prototypes and stuff, but not '\xHH' hex character constants.
12087 These don't provoke an error unfortunately, instead are silently treated
12088 as 'x'. The following induces an error, until -std is added to get
12089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12090 array size at least. It's necessary to write '\x00'==0 to get something
12091 that's true only with -std. */
12092 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12094 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12095 inside strings and character constants. */
12097 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12099 int test (int i, double x);
12100 struct s1 {int (*f) (int a);};
12101 struct s2 {int (*f) (double a);};
12102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12108 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12113 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12114 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12116 CC="$ac_save_CC $ac_arg"
12117 if ac_fn_c_try_compile "$LINENO"; then :
12118 ac_cv_prog_cc_c89=$ac_arg
12120 rm -f core conftest.err conftest.$ac_objext
12121 test "x$ac_cv_prog_cc_c89" != "xno" && break
12123 rm -f conftest.$ac_ext
12128 case "x$ac_cv_prog_cc_c89" in
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12131 $as_echo "none needed" >&6; } ;;
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12134 $as_echo "unsupported" >&6; } ;;
12136 CC="$CC $ac_cv_prog_cc_c89"
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12140 if test "x$ac_cv_prog_cc_c89" != xno; then :
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12150 depcc="$CC" am_compiler_list=
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12153 $as_echo_n "checking dependency style of $depcc... " >&6; }
12154 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12155 $as_echo_n "(cached) " >&6
12157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12158 # We make a subdir and do the tests there. Otherwise we can end up
12159 # making bogus files that we don't know about and never remove. For
12160 # instance it was reported that on HP-UX the gcc test will end up
12161 # making a dummy file named `D' -- because `-MD' means `put the output
12163 rm -rf conftest.dir
12165 # Copy depcomp to subdir because otherwise we won't find it if we're
12166 # using a relative directory.
12167 cp "$am_depcomp" conftest.dir
12169 # We will build objects and dependencies in a subdirectory because
12170 # it helps to detect inapplicable dependency modes. For instance
12171 # both Tru64's cc and ICC support -MD to output dependencies as a
12172 # side effect of compilation, but ICC will put the dependencies in
12173 # the current directory while Tru64 will put them in the object
12177 am_cv_CC_dependencies_compiler_type=none
12178 if test "$am_compiler_list" = ""; then
12179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12181 am__universal=false
12182 case " $depcc " in #(
12183 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12186 for depmode in $am_compiler_list; do
12187 # Setup a source with many dependencies, because some compilers
12188 # like to wrap large dependency lists on column 80 (with \), and
12189 # we should not choose a depcomp mode which is confused by this.
12191 # We need to recreate these files for each test, as the compiler may
12192 # overwrite some of them when testing with obscure command lines.
12193 # This happens at least with the AIX C compiler.
12195 for i in 1 2 3 4 5 6; do
12196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12197 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12198 # Solaris 8's {/usr,}/bin/sh.
12199 touch sub/conftst$i.h
12201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12203 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12204 # mode. It turns out that the SunPro C++ compiler does not properly
12205 # handle `-M -o', and we need to detect this. Also, some Intel
12206 # versions had trouble with output in subdirs
12207 am__obj=sub/conftest.${OBJEXT-o}
12208 am__minus_obj="-o $am__obj"
12211 # This depmode causes a compiler race in universal mode.
12212 test "$am__universal" = false || continue
12215 # after this tag, mechanisms are not by side-effect, so they'll
12216 # only be used when explicitly requested
12217 if test "x$enable_dependency_tracking" = xyes; then
12223 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12224 # This compiler won't grok `-c -o', but also, the minuso test has
12225 # not run yet. These depmodes are late enough in the game, and
12226 # so weak that their functioning should not be impacted.
12227 am__obj=conftest.${OBJEXT-o}
12232 if depmode=$depmode \
12233 source=sub/conftest.c object=$am__obj \
12234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12235 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12236 >/dev/null 2>conftest.err &&
12237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12239 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12241 # icc doesn't choke on unknown options, it will just issue warnings
12242 # or remarks (even with -Werror). So we grep stderr for any message
12243 # that says an option was ignored or not supported.
12244 # When given -MP, icc 7.0 and 7.1 complain thusly:
12245 # icc: Command line warning: ignoring option '-M'; no argument required
12246 # The diagnosis changed in icc 8.0:
12247 # icc: Command line remark: option '-MP' not supported
12248 if (grep 'ignoring option' conftest.err ||
12249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12250 am_cv_CC_dependencies_compiler_type=$depmode
12257 rm -rf conftest.dir
12259 am_cv_CC_dependencies_compiler_type=none
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12264 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12265 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12268 test "x$enable_dependency_tracking" != xno \
12269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12270 am__fastdepCC_TRUE=
12271 am__fastdepCC_FALSE='#'
12273 am__fastdepCC_TRUE='#'
12274 am__fastdepCC_FALSE=
12278 if test "x$CC" != xcc; then
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12280 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12283 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12285 set dummy $CC; ac_cc=`$as_echo "$2" |
12286 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12287 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12288 $as_echo_n "(cached) " >&6
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12301 # Make sure it works both with $CC and with simple cc.
12302 # We do the test twice because some compilers refuse to overwrite an
12303 # existing .o file with -o, though they will create one.
12304 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12306 if { { case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12311 $as_echo "$ac_try_echo"; } >&5
12312 (eval "$ac_try") 2>&5
12314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12315 test $ac_status = 0; } &&
12316 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12321 $as_echo "$ac_try_echo"; } >&5
12322 (eval "$ac_try") 2>&5
12324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12325 test $ac_status = 0; };
12327 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12328 if test "x$CC" != xcc; then
12329 # Test first that cc exists at all.
12330 if { ac_try='cc -c conftest.$ac_ext >&5'
12331 { { case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12336 $as_echo "$ac_try_echo"; } >&5
12337 (eval "$ac_try") 2>&5
12339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340 test $ac_status = 0; }; }; then
12341 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12343 if { { case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12348 $as_echo "$ac_try_echo"; } >&5
12349 (eval "$ac_try") 2>&5
12351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12352 test $ac_status = 0; } &&
12353 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12358 $as_echo "$ac_try_echo"; } >&5
12359 (eval "$ac_try") 2>&5
12361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12362 test $ac_status = 0; };
12367 # cc exists but doesn't like -o.
12368 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12373 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12375 rm -f core conftest*
12378 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12385 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12389 # FIXME: we rely on the cache variable name because
12390 # there is no other way.
12392 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12393 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12394 if test "$am_t" != yes; then
12395 # Losing compiler, so override with the script.
12396 # FIXME: It is wrong to rewrite CC.
12397 # But if we don't then we get into trouble of one sort or another.
12398 # A longer-term fix would be to have automake use am__CC in this case,
12399 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12400 CC="$am_aux_dir/compile $CC"
12406 ac_cpp='$CXXCPP $CPPFLAGS'
12407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12412 ac_cpp='$CXXCPP $CPPFLAGS'
12413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12416 if test -z "$CXX"; then
12417 if test -n "$CCC"; then
12420 if test -n "$ac_tool_prefix"; then
12421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if ${ac_cv_prog_CXX+:} false; then :
12428 $as_echo_n "(cached) " >&6
12430 if test -n "$CXX"; then
12431 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12440 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 CXX=$ac_cv_prog_CXX
12451 if test -n "$CXX"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12453 $as_echo "$CXX" >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12460 test -n "$CXX" && break
12463 if test -z "$CXX"; then
12465 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12467 # Extract the first word of "$ac_prog", so it can be a program name with args.
12468 set dummy $ac_prog; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12472 $as_echo_n "(cached) " >&6
12474 if test -n "$ac_ct_CXX"; then
12475 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12481 test -z "$as_dir" && as_dir=.
12482 for ac_exec_ext in '' $ac_executable_extensions; do
12483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12484 ac_cv_prog_ac_ct_CXX="$ac_prog"
12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12494 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12495 if test -n "$ac_ct_CXX"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12497 $as_echo "$ac_ct_CXX" >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12504 test -n "$ac_ct_CXX" && break
12507 if test "x$ac_ct_CXX" = x; then
12510 case $cross_compiling:$ac_tool_warned in
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12514 ac_tool_warned=yes ;;
12522 # Provide some information about the compiler.
12523 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12526 for ac_option in --version -v -V -qversion; do
12527 { { ac_try="$ac_compiler $ac_option >&5"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12533 $as_echo "$ac_try_echo"; } >&5
12534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12536 if test -s conftest.err; then
12538 ... rest of stderr output deleted ...
12539 10q' conftest.err >conftest.er1
12540 cat conftest.er1 >&5
12542 rm -f conftest.er1 conftest.err
12543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12544 test $ac_status = 0; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12548 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12549 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12550 $as_echo_n "(cached) " >&6
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12566 if ac_fn_cxx_try_compile "$LINENO"; then :
12567 ac_compiler_gnu=yes
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12576 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12577 if test $ac_compiler_gnu = yes; then
12582 ac_test_CXXFLAGS=${CXXFLAGS+set}
12583 ac_save_CXXFLAGS=$CXXFLAGS
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12585 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12586 if ${ac_cv_prog_cxx_g+:} false; then :
12587 $as_echo_n "(cached) " >&6
12589 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12590 ac_cxx_werror_flag=yes
12591 ac_cv_prog_cxx_g=no
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12604 if ac_fn_cxx_try_compile "$LINENO"; then :
12605 ac_cv_prog_cxx_g=yes
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12619 if ac_fn_cxx_try_compile "$LINENO"; then :
12622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12635 if ac_fn_cxx_try_compile "$LINENO"; then :
12636 ac_cv_prog_cxx_g=yes
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12646 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12647 if test "$ac_test_CXXFLAGS" = set; then
12648 CXXFLAGS=$ac_save_CXXFLAGS
12649 elif test $ac_cv_prog_cxx_g = yes; then
12650 if test "$GXX" = yes; then
12656 if test "$GXX" = yes; then
12663 ac_cpp='$CXXCPP $CPPFLAGS'
12664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12668 depcc="$CXX" am_compiler_list=
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12671 $as_echo_n "checking dependency style of $depcc... " >&6; }
12672 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12673 $as_echo_n "(cached) " >&6
12675 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12676 # We make a subdir and do the tests there. Otherwise we can end up
12677 # making bogus files that we don't know about and never remove. For
12678 # instance it was reported that on HP-UX the gcc test will end up
12679 # making a dummy file named `D' -- because `-MD' means `put the output
12681 rm -rf conftest.dir
12683 # Copy depcomp to subdir because otherwise we won't find it if we're
12684 # using a relative directory.
12685 cp "$am_depcomp" conftest.dir
12687 # We will build objects and dependencies in a subdirectory because
12688 # it helps to detect inapplicable dependency modes. For instance
12689 # both Tru64's cc and ICC support -MD to output dependencies as a
12690 # side effect of compilation, but ICC will put the dependencies in
12691 # the current directory while Tru64 will put them in the object
12695 am_cv_CXX_dependencies_compiler_type=none
12696 if test "$am_compiler_list" = ""; then
12697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12699 am__universal=false
12700 case " $depcc " in #(
12701 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12704 for depmode in $am_compiler_list; do
12705 # Setup a source with many dependencies, because some compilers
12706 # like to wrap large dependency lists on column 80 (with \), and
12707 # we should not choose a depcomp mode which is confused by this.
12709 # We need to recreate these files for each test, as the compiler may
12710 # overwrite some of them when testing with obscure command lines.
12711 # This happens at least with the AIX C compiler.
12713 for i in 1 2 3 4 5 6; do
12714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12716 # Solaris 8's {/usr,}/bin/sh.
12717 touch sub/conftst$i.h
12719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12721 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12722 # mode. It turns out that the SunPro C++ compiler does not properly
12723 # handle `-M -o', and we need to detect this. Also, some Intel
12724 # versions had trouble with output in subdirs
12725 am__obj=sub/conftest.${OBJEXT-o}
12726 am__minus_obj="-o $am__obj"
12729 # This depmode causes a compiler race in universal mode.
12730 test "$am__universal" = false || continue
12733 # after this tag, mechanisms are not by side-effect, so they'll
12734 # only be used when explicitly requested
12735 if test "x$enable_dependency_tracking" = xyes; then
12741 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12742 # This compiler won't grok `-c -o', but also, the minuso test has
12743 # not run yet. These depmodes are late enough in the game, and
12744 # so weak that their functioning should not be impacted.
12745 am__obj=conftest.${OBJEXT-o}
12750 if depmode=$depmode \
12751 source=sub/conftest.c object=$am__obj \
12752 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12753 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12754 >/dev/null 2>conftest.err &&
12755 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12756 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12757 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12758 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12759 # icc doesn't choke on unknown options, it will just issue warnings
12760 # or remarks (even with -Werror). So we grep stderr for any message
12761 # that says an option was ignored or not supported.
12762 # When given -MP, icc 7.0 and 7.1 complain thusly:
12763 # icc: Command line warning: ignoring option '-M'; no argument required
12764 # The diagnosis changed in icc 8.0:
12765 # icc: Command line remark: option '-MP' not supported
12766 if (grep 'ignoring option' conftest.err ||
12767 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12768 am_cv_CXX_dependencies_compiler_type=$depmode
12775 rm -rf conftest.dir
12777 am_cv_CXX_dependencies_compiler_type=none
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12782 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12783 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12786 test "x$enable_dependency_tracking" != xno \
12787 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12788 am__fastdepCXX_TRUE=
12789 am__fastdepCXX_FALSE='#'
12791 am__fastdepCXX_TRUE='#'
12792 am__fastdepCXX_FALSE=
12798 func_stripname_cnf ()
12801 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12802 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12804 } # func_stripname_cnf
12806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12807 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12808 (test "X$CXX" != "Xg++"))) ; then
12810 ac_cpp='$CXXCPP $CPPFLAGS'
12811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12815 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12816 if test -z "$CXXCPP"; then
12817 if ${ac_cv_prog_CXXCPP+:} false; then :
12818 $as_echo_n "(cached) " >&6
12820 # Double quotes because CXXCPP needs to be expanded
12821 for CXXCPP in "$CXX -E" "/lib/cpp"
12823 ac_preproc_ok=false
12824 for ac_cxx_preproc_warn_flag in '' yes
12826 # Use a header file that comes with gcc, so configuring glibc
12827 # with a fresh cross-compiler works.
12828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12829 # <limits.h> exists even on freestanding compilers.
12830 # On the NeXT, cc -E runs the code through the compiler's parser,
12831 # not just through cpp. "Syntax error" is here to catch this case.
12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12835 # include <limits.h>
12837 # include <assert.h>
12841 if ac_fn_cxx_try_cpp "$LINENO"; then :
12844 # Broken: fails on valid input.
12847 rm -f conftest.err conftest.i conftest.$ac_ext
12849 # OK, works on sane cases. Now check whether nonexistent headers
12850 # can be detected and how.
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853 #include <ac_nonexistent.h>
12855 if ac_fn_cxx_try_cpp "$LINENO"; then :
12856 # Broken: success on invalid input.
12859 # Passes both tests.
12863 rm -f conftest.err conftest.i conftest.$ac_ext
12866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12867 rm -f conftest.i conftest.err conftest.$ac_ext
12868 if $ac_preproc_ok; then :
12873 ac_cv_prog_CXXCPP=$CXXCPP
12876 CXXCPP=$ac_cv_prog_CXXCPP
12878 ac_cv_prog_CXXCPP=$CXXCPP
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12881 $as_echo "$CXXCPP" >&6; }
12882 ac_preproc_ok=false
12883 for ac_cxx_preproc_warn_flag in '' yes
12885 # Use a header file that comes with gcc, so configuring glibc
12886 # with a fresh cross-compiler works.
12887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12888 # <limits.h> exists even on freestanding compilers.
12889 # On the NeXT, cc -E runs the code through the compiler's parser,
12890 # not just through cpp. "Syntax error" is here to catch this case.
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12894 # include <limits.h>
12896 # include <assert.h>
12900 if ac_fn_cxx_try_cpp "$LINENO"; then :
12903 # Broken: fails on valid input.
12906 rm -f conftest.err conftest.i conftest.$ac_ext
12908 # OK, works on sane cases. Now check whether nonexistent headers
12909 # can be detected and how.
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912 #include <ac_nonexistent.h>
12914 if ac_fn_cxx_try_cpp "$LINENO"; then :
12915 # Broken: success on invalid input.
12918 # Passes both tests.
12922 rm -f conftest.err conftest.i conftest.$ac_ext
12925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12926 rm -f conftest.i conftest.err conftest.$ac_ext
12927 if $ac_preproc_ok; then :
12930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12932 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12933 See \`config.log' for more details" "$LINENO" 5; }
12937 ac_cpp='$CXXCPP $CPPFLAGS'
12938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12943 _lt_caught_CXX_error=yes
12947 ac_cpp='$CXXCPP $CPPFLAGS'
12948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12952 archive_cmds_need_lc_CXX=no
12953 allow_undefined_flag_CXX=
12954 always_export_symbols_CXX=no
12955 archive_expsym_cmds_CXX=
12956 compiler_needs_object_CXX=no
12957 export_dynamic_flag_spec_CXX=
12958 hardcode_direct_CXX=no
12959 hardcode_direct_absolute_CXX=no
12960 hardcode_libdir_flag_spec_CXX=
12961 hardcode_libdir_separator_CXX=
12962 hardcode_minus_L_CXX=no
12963 hardcode_shlibpath_var_CXX=unsupported
12964 hardcode_automatic_CXX=no
12965 inherit_rpath_CXX=no
12967 module_expsym_cmds_CXX=
12968 link_all_deplibs_CXX=unknown
12969 old_archive_cmds_CXX=$old_archive_cmds
12970 reload_flag_CXX=$reload_flag
12971 reload_cmds_CXX=$reload_cmds
12972 no_undefined_flag_CXX=
12973 whole_archive_flag_spec_CXX=
12974 enable_shared_with_static_runtimes_CXX=no
12976 # Source file extension for C++ test sources.
12979 # Object file extension for compiled C++ test sources.
12983 # No sense in running all these tests if we already determined that
12984 # the CXX compiler isn't working. Some variables (like enable_shared)
12985 # are currently assumed to apply to all compilers on this platform,
12986 # and will be corrupted by setting them based on a non-working compiler.
12987 if test "$_lt_caught_CXX_error" != yes; then
12988 # Code to be used in simple compile tests
12989 lt_simple_compile_test_code="int some_variable = 0;"
12991 # Code to be used in simple link tests
12992 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12994 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13001 # If no C compiler was specified, use CC.
13004 # If no C compiler flags were specified, use CFLAGS.
13005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13007 # Allow CC to be a program name with arguments.
13011 # save warnings/boilerplate of simple test code
13012 ac_outfile=conftest.$ac_objext
13013 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13014 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13015 _lt_compiler_boilerplate=`cat conftest.err`
13018 ac_outfile=conftest.$ac_objext
13019 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13020 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13021 _lt_linker_boilerplate=`cat conftest.err`
13025 # Allow CC to be a program name with arguments.
13027 lt_save_CFLAGS=$CFLAGS
13031 lt_save_with_gnu_ld=$with_gnu_ld
13032 lt_save_path_LD=$lt_cv_path_LD
13033 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13034 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13036 $as_unset lt_cv_prog_gnu_ld
13038 if test -n "${lt_cv_path_LDCXX+set}"; then
13039 lt_cv_path_LD=$lt_cv_path_LDCXX
13041 $as_unset lt_cv_path_LD
13043 test -z "${LDCXX+set}" || LD=$LDCXX
13048 for cc_temp in $compiler""; do
13050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13056 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13059 if test -n "$compiler"; then
13060 # We don't want -fno-exception when compiling C++ code, so set the
13061 # no_builtin_flag separately
13062 if test "$GXX" = yes; then
13063 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13065 lt_prog_compiler_no_builtin_flag_CXX=
13068 if test "$GXX" = yes; then
13069 # Set up default GNU C++ configuration
13073 # Check whether --with-gnu-ld was given.
13074 if test "${with_gnu_ld+set}" = set; then :
13075 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13081 if test "$GCC" = yes; then
13082 # Check if gcc -print-prog-name=ld gives a path.
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13084 $as_echo_n "checking for ld used by $CC... " >&6; }
13087 # gcc leaves a trailing carriage return which upsets mingw
13088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13093 # Accept absolute paths.
13095 re_direlt='/[^/][^/]*/\.\./'
13096 # Canonicalize the pathname of ld
13097 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13098 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13099 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13101 test -z "$LD" && LD="$ac_prog"
13104 # If it fails, then pretend we aren't using GCC.
13108 # If it is relative, then search for the first ld in PATH.
13109 with_gnu_ld=unknown
13112 elif test "$with_gnu_ld" = yes; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13114 $as_echo_n "checking for GNU ld... " >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13117 $as_echo_n "checking for non-GNU ld... " >&6; }
13119 if ${lt_cv_path_LD+:} false; then :
13120 $as_echo_n "(cached) " >&6
13122 if test -z "$LD"; then
13123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13124 for ac_dir in $PATH; do
13126 test -z "$ac_dir" && ac_dir=.
13127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13128 lt_cv_path_LD="$ac_dir/$ac_prog"
13129 # Check to see if the program is GNU ld. I'd rather use --version,
13130 # but apparently some variants of GNU ld only accept -v.
13131 # Break only if it was the GNU/non-GNU ld that we prefer.
13132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13133 *GNU* | *'with BFD'*)
13134 test "$with_gnu_ld" != no && break
13137 test "$with_gnu_ld" != yes && break
13144 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13148 LD="$lt_cv_path_LD"
13149 if test -n "$LD"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13151 $as_echo "$LD" >&6; }
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13156 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13158 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13159 if ${lt_cv_prog_gnu_ld+:} false; then :
13160 $as_echo_n "(cached) " >&6
13162 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13163 case `$LD -v 2>&1 </dev/null` in
13164 *GNU* | *'with BFD'*)
13165 lt_cv_prog_gnu_ld=yes
13168 lt_cv_prog_gnu_ld=no
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13173 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13174 with_gnu_ld=$lt_cv_prog_gnu_ld
13182 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13183 # archiving commands below assume that GNU ld is being used.
13184 if test "$with_gnu_ld" = yes; then
13185 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13186 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'
13188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13189 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13191 # If archive_cmds runs LD, not CC, wlarc should be empty
13192 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13193 # investigate it a little bit more. (MM)
13196 # ancient GNU ld didn't support --whole-archive et. al.
13197 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13198 $GREP 'no-whole-archive' > /dev/null; then
13199 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13201 whole_archive_flag_spec_CXX=
13207 # A generic and very simple default shared library creation
13208 # command for GNU C++ for the case where it uses the native
13209 # linker, instead of GNU ld. If possible, this setting should
13210 # overridden to take advantage of the native linker features on
13211 # the platform it is being used on.
13212 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13215 # Commands to make compiler produce verbose output that lists
13216 # what "hidden" libraries, object files and flags are used when
13217 # linking a shared library.
13218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13226 # PORTME: fill in a description of your system's C++ link characteristics
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13228 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13232 # FIXME: insert proper C++ library support
13236 if test "$host_cpu" = ia64; then
13237 # On IA64, the linker does run time linking by default, so we don't
13238 # have to do anything special.
13239 aix_use_runtimelinking=no
13240 exp_sym_flag='-Bexport'
13243 aix_use_runtimelinking=no
13245 # Test if we are trying to use run time linking or normal
13246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13247 # need to do runtime linking.
13248 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13249 for ld_flag in $LDFLAGS; do
13252 aix_use_runtimelinking=yes
13260 exp_sym_flag='-bexport'
13261 no_entry_flag='-bnoentry'
13264 # When large executables or shared objects are built, AIX ld can
13265 # have problems creating the table of contents. If linking a library
13266 # or program results in "error TOC overflow" add -mminimal-toc to
13267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13270 archive_cmds_CXX=''
13271 hardcode_direct_CXX=yes
13272 hardcode_direct_absolute_CXX=yes
13273 hardcode_libdir_separator_CXX=':'
13274 link_all_deplibs_CXX=yes
13275 file_list_spec_CXX='${wl}-f,'
13277 if test "$GXX" = yes; then
13278 case $host_os in aix4.[012]|aix4.[012].*)
13279 # We only want to do this on AIX 4.2 and lower, the check
13280 # below for broken collect2 doesn't work under 4.3+
13281 collect2name=`${CC} -print-prog-name=collect2`
13282 if test -f "$collect2name" &&
13283 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13285 # We have reworked collect2
13288 # We have old collect2
13289 hardcode_direct_CXX=unsupported
13290 # It fails to find uninstalled libraries when the uninstalled
13291 # path is not listed in the libpath. Setting hardcode_minus_L
13292 # to unsupported forces relinking
13293 hardcode_minus_L_CXX=yes
13294 hardcode_libdir_flag_spec_CXX='-L$libdir'
13295 hardcode_libdir_separator_CXX=
13298 shared_flag='-shared'
13299 if test "$aix_use_runtimelinking" = yes; then
13300 shared_flag="$shared_flag "'${wl}-G'
13304 if test "$host_cpu" = ia64; then
13305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13306 # chokes on -Wl,-G. The following line is correct:
13309 if test "$aix_use_runtimelinking" = yes; then
13310 shared_flag='${wl}-G'
13312 shared_flag='${wl}-bM:SRE'
13317 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13318 # It seems that -bexpall does not export symbols beginning with
13319 # underscore (_), so it is better to generate a list of symbols to
13321 always_export_symbols_CXX=yes
13322 if test "$aix_use_runtimelinking" = yes; then
13323 # Warning - without using the other runtime loading flags (-brtl),
13324 # -berok will link without error, but may produce a broken library.
13325 allow_undefined_flag_CXX='-berok'
13326 # Determine the default libpath from the value encoded in an empty
13328 if test "${lt_cv_aix_libpath+set}" = set; then
13329 aix_libpath=$lt_cv_aix_libpath
13331 if ${lt_cv_aix_libpath__CXX+:} false; then :
13332 $as_echo_n "(cached) " >&6
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13345 if ac_fn_cxx_try_link "$LINENO"; then :
13347 lt_aix_libpath_sed='
13348 /Import File Strings/,/^$/ {
13350 s/^0 *\([^ ]*\) *$/\1/
13354 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13355 # Check for a 64-bit object if we didn't find anything.
13356 if test -z "$lt_cv_aix_libpath__CXX"; then
13357 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13360 rm -f core conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext conftest.$ac_ext
13362 if test -z "$lt_cv_aix_libpath__CXX"; then
13363 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13368 aix_libpath=$lt_cv_aix_libpath__CXX
13371 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13373 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13375 if test "$host_cpu" = ia64; then
13376 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13377 allow_undefined_flag_CXX="-z nodefs"
13378 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"
13380 # Determine the default libpath from the value encoded in an
13381 # empty executable.
13382 if test "${lt_cv_aix_libpath+set}" = set; then
13383 aix_libpath=$lt_cv_aix_libpath
13385 if ${lt_cv_aix_libpath__CXX+:} false; then :
13386 $as_echo_n "(cached) " >&6
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13399 if ac_fn_cxx_try_link "$LINENO"; then :
13401 lt_aix_libpath_sed='
13402 /Import File Strings/,/^$/ {
13404 s/^0 *\([^ ]*\) *$/\1/
13408 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13409 # Check for a 64-bit object if we didn't find anything.
13410 if test -z "$lt_cv_aix_libpath__CXX"; then
13411 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13414 rm -f core conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13416 if test -z "$lt_cv_aix_libpath__CXX"; then
13417 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13422 aix_libpath=$lt_cv_aix_libpath__CXX
13425 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13426 # Warning - without using the other run time loading flags,
13427 # -berok will link without error, but may produce a broken library.
13428 no_undefined_flag_CXX=' ${wl}-bernotok'
13429 allow_undefined_flag_CXX=' ${wl}-berok'
13430 if test "$with_gnu_ld" = yes; then
13431 # We only use this code for GNU lds that support --whole-archive.
13432 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13434 # Exported symbols can be pulled into shared objects from archives
13435 whole_archive_flag_spec_CXX='$convenience'
13437 archive_cmds_need_lc_CXX=yes
13438 # This is similar to how AIX traditionally builds its shared
13440 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13447 allow_undefined_flag_CXX=unsupported
13448 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13449 # support --undefined. This deserves some investigation. FIXME
13450 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13457 case $cc_basename in
13459 # FIXME: insert proper C++ library support
13465 cygwin* | mingw* | pw32* | cegcc*)
13466 case $GXX,$cc_basename in
13469 # hardcode_libdir_flag_spec is actually meaningless, as there is
13470 # no search path for DLLs.
13471 hardcode_libdir_flag_spec_CXX=' '
13472 allow_undefined_flag_CXX=unsupported
13473 always_export_symbols_CXX=yes
13474 file_list_spec_CXX='@'
13475 # Tell ltmain to make .lib files, not .a files.
13477 # Tell ltmain to make .dll files, not .so files.
13479 # FIXME: Setting linknames here is a bad hack.
13480 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13481 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13482 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13484 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13486 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13488 # The linker will not automatically build a static lib if we build a DLL.
13489 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13490 enable_shared_with_static_runtimes_CXX=yes
13492 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13493 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13494 lt_tool_outputfile="@TOOL_OUTPUT@"~
13495 case $lt_outputfile in
13498 lt_outputfile="$lt_outputfile.exe"
13499 lt_tool_outputfile="$lt_tool_outputfile.exe"
13502 func_to_tool_file "$lt_outputfile"~
13503 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13504 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13505 $RM "$lt_outputfile.manifest";
13510 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13511 # as there is no search path for DLLs.
13512 hardcode_libdir_flag_spec_CXX='-L$libdir'
13513 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13514 allow_undefined_flag_CXX=unsupported
13515 always_export_symbols_CXX=no
13516 enable_shared_with_static_runtimes_CXX=yes
13518 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13519 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'
13520 # If the export-symbols file already is a .def file (1st line
13521 # is EXPORTS), use it as is; otherwise, prepend...
13522 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13523 cp $export_symbols $output_objdir/$soname.def;
13525 echo EXPORTS > $output_objdir/$soname.def;
13526 cat $export_symbols >> $output_objdir/$soname.def;
13528 $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'
13535 darwin* | rhapsody*)
13538 archive_cmds_need_lc_CXX=no
13539 hardcode_direct_CXX=no
13540 hardcode_automatic_CXX=yes
13541 hardcode_shlibpath_var_CXX=unsupported
13542 if test "$lt_cv_ld_force_load" = "yes"; then
13543 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\"`'
13546 whole_archive_flag_spec_CXX=''
13548 link_all_deplibs_CXX=yes
13549 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13550 case $cc_basename in
13551 ifort*) _lt_dar_can_shared=yes ;;
13552 *) _lt_dar_can_shared=$GCC ;;
13554 if test "$_lt_dar_can_shared" = "yes"; then
13555 output_verbose_link_cmd=func_echo_all
13556 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}"
13557 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13558 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}"
13559 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}"
13560 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13561 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}"
13562 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}"
13572 case $cc_basename in
13574 # FIXME: insert proper C++ library support
13578 # Green Hills C++ Compiler
13579 # FIXME: insert proper C++ library support
13583 # FIXME: insert proper C++ library support
13590 # C++ shared libraries reported to be fairly broken before
13596 archive_cmds_need_lc_CXX=no
13599 freebsd* | dragonfly*)
13600 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13609 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13610 link_all_deplibs_CXX=yes
13614 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13615 hardcode_libdir_separator_CXX=:
13616 export_dynamic_flag_spec_CXX='${wl}-E'
13617 hardcode_direct_CXX=yes
13618 hardcode_minus_L_CXX=yes # Not in the search PATH,
13619 # but as the default
13620 # location of the library.
13622 case $cc_basename in
13624 # FIXME: insert proper C++ library support
13628 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13629 # Commands to make compiler produce verbose output that lists
13630 # what "hidden" libraries, object files and flags are used when
13631 # linking a shared library.
13633 # There doesn't appear to be a way to prevent this compiler from
13634 # explicitly linking system object files so we need to strip them
13635 # from the output so that they don't get included in the library
13637 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"'
13640 if test "$GXX" = yes; then
13641 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13643 # FIXME: insert proper C++ library support
13651 if test $with_gnu_ld = no; then
13652 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13653 hardcode_libdir_separator_CXX=:
13659 export_dynamic_flag_spec_CXX='${wl}-E'
13665 hardcode_direct_CXX=no
13666 hardcode_shlibpath_var_CXX=no
13669 hardcode_direct_CXX=yes
13670 hardcode_direct_absolute_CXX=yes
13671 hardcode_minus_L_CXX=yes # Not in the search PATH,
13672 # but as the default
13673 # location of the library.
13677 case $cc_basename in
13679 # FIXME: insert proper C++ library support
13685 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13688 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13694 # Commands to make compiler produce verbose output that lists
13695 # what "hidden" libraries, object files and flags are used when
13696 # linking a shared library.
13698 # There doesn't appear to be a way to prevent this compiler from
13699 # explicitly linking system object files so we need to strip them
13700 # from the output so that they don't get included in the library
13702 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"'
13705 if test "$GXX" = yes; then
13706 if test $with_gnu_ld = no; then
13709 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13712 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13715 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'
13720 # FIXME: insert proper C++ library support
13728 hardcode_direct_CXX=no
13729 hardcode_shlibpath_var_CXX=no
13730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13731 export_dynamic_flag_spec_CXX='${wl}-E'
13732 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13733 # Instead, shared libraries are loaded at an image base (0x10000000 by
13734 # default) and relocated if they conflict, which is a slow very memory
13735 # consuming and fragmenting process. To avoid this, we pick a random,
13736 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13737 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13738 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'
13739 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'
13742 case $cc_basename in
13745 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'
13747 # Archives containing C++ object files must be created using
13748 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13749 # necessary to make sure instantiated templates are included
13751 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13754 if test "$GXX" = yes; then
13755 if test "$with_gnu_ld" = no; then
13756 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'
13758 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'
13761 link_all_deplibs_CXX=yes
13764 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13765 hardcode_libdir_separator_CXX=:
13766 inherit_rpath_CXX=yes
13769 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13770 case $cc_basename in
13772 # Kuck and Associates, Inc. (KAI) C++ Compiler
13774 # KCC will only create a shared library if the output file
13775 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13776 # to its proper name (with version) after linking.
13777 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'
13778 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'
13779 # Commands to make compiler produce verbose output that lists
13780 # what "hidden" libraries, object files and flags are used when
13781 # linking a shared library.
13783 # There doesn't appear to be a way to prevent this compiler from
13784 # explicitly linking system object files so we need to strip them
13785 # from the output so that they don't get included in the library
13787 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"'
13789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13792 # Archives containing C++ object files must be created using
13793 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13794 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13799 # version 8.0 and above of icpc choke on multiply defined symbols
13800 # if we add $predep_objects and $postdep_objects, however 7.1 and
13801 # earlier do not add the objects themselves.
13802 case `$CC -V 2>&1` in
13804 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13805 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'
13807 *) # Version 8.0 or newer
13810 ia64*) tmp_idyn=' -i_dynamic';;
13812 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13813 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'
13816 archive_cmds_need_lc_CXX=no
13817 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13818 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13819 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13822 # Portland Group C++ compiler
13824 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13825 prelink_cmds_CXX='tpldir=Template.dir~
13827 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13828 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13829 old_archive_cmds_CXX='tpldir=Template.dir~
13831 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13832 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13834 archive_cmds_CXX='tpldir=Template.dir~
13836 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13837 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13838 archive_expsym_cmds_CXX='tpldir=Template.dir~
13840 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13841 $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'
13843 *) # Version 6 and above use weak symbols
13844 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13845 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'
13849 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13850 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13851 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'
13855 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13856 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'
13858 runpath_var=LD_RUN_PATH
13859 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13860 hardcode_libdir_separator_CXX=:
13862 # Commands to make compiler produce verbose output that lists
13863 # what "hidden" libraries, object files and flags are used when
13864 # linking a shared library.
13866 # There doesn't appear to be a way to prevent this compiler from
13867 # explicitly linking system object files so we need to strip them
13868 # from the output so that they don't get included in the library
13870 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'
13872 xl* | mpixl* | bgxl*)
13873 # IBM XL 8.0 on PPC, with GNU ld
13874 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13875 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13876 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13877 if test "x$supports_anon_versioning" = xyes; then
13878 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13880 echo "local: *; };" >> $output_objdir/$libname.ver~
13881 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13885 case `$CC -V 2>&1 | sed 5q` in
13888 no_undefined_flag_CXX=' -zdefs'
13889 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13890 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'
13891 hardcode_libdir_flag_spec_CXX='-R$libdir'
13892 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'
13893 compiler_needs_object_CXX=yes
13895 # Not sure whether something based on
13896 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13898 output_verbose_link_cmd='func_echo_all'
13900 # Archives containing C++ object files must be created using
13901 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13902 # necessary to make sure instantiated templates are included
13904 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13912 # FIXME: insert proper C++ library support
13917 # FIXME: insert proper C++ library support
13922 case $cc_basename in
13924 # FIXME: insert proper C++ library support
13928 # FIXME: insert proper C++ library support
13935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13936 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13938 hardcode_libdir_flag_spec_CXX='-R$libdir'
13939 hardcode_direct_CXX=yes
13940 hardcode_shlibpath_var_CXX=no
13942 # Workaround some broken pre-1.5 toolchains
13943 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13951 # C++ shared libraries are fairly broken
13956 if test -f /usr/libexec/ld.so; then
13957 hardcode_direct_CXX=yes
13958 hardcode_shlibpath_var_CXX=no
13959 hardcode_direct_absolute_CXX=yes
13960 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13961 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13963 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13964 export_dynamic_flag_spec_CXX='${wl}-E'
13965 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13967 output_verbose_link_cmd=func_echo_all
13973 osf3* | osf4* | osf5*)
13974 case $cc_basename in
13976 # Kuck and Associates, Inc. (KAI) C++ Compiler
13978 # KCC will only create a shared library if the output file
13979 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13980 # to its proper name (with version) after linking.
13981 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'
13983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13984 hardcode_libdir_separator_CXX=:
13986 # Archives containing C++ object files must be created using
13987 # the KAI C++ compiler.
13989 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13990 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13994 # Rational C++ 2.4.1
13995 # FIXME: insert proper C++ library support
14001 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14002 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'
14003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14006 allow_undefined_flag_CXX=' -expect_unresolved \*'
14007 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'
14008 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14009 echo "-hidden">> $lib.exp~
14010 $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~
14012 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14016 hardcode_libdir_separator_CXX=:
14018 # Commands to make compiler produce verbose output that lists
14019 # what "hidden" libraries, object files and flags are used when
14020 # linking a shared library.
14022 # There doesn't appear to be a way to prevent this compiler from
14023 # explicitly linking system object files so we need to strip them
14024 # from the output so that they don't get included in the library
14026 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"'
14029 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14030 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14033 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'
14036 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'
14040 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14041 hardcode_libdir_separator_CXX=:
14043 # Commands to make compiler produce verbose output that lists
14044 # what "hidden" libraries, object files and flags are used when
14045 # linking a shared library.
14046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14049 # FIXME: insert proper C++ library support
14057 # FIXME: insert proper C++ library support
14062 case $cc_basename in
14065 # FIXME: insert proper C++ library support
14070 # FIXME: insert proper C++ library support
14074 # FIXME: insert proper C++ library support
14081 case $cc_basename in
14083 # Sun C++ 4.2, 5.x and Centerline C++
14084 archive_cmds_need_lc_CXX=yes
14085 no_undefined_flag_CXX=' -zdefs'
14086 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14087 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14088 $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'
14090 hardcode_libdir_flag_spec_CXX='-R$libdir'
14091 hardcode_shlibpath_var_CXX=no
14093 solaris2.[0-5] | solaris2.[0-5].*) ;;
14095 # The compiler driver will combine and reorder linker options,
14096 # but understands `-z linker_flag'.
14097 # Supported since Solaris 2.6 (maybe 2.5.1?)
14098 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14101 link_all_deplibs_CXX=yes
14103 output_verbose_link_cmd='func_echo_all'
14105 # Archives containing C++ object files must be created using
14106 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14107 # necessary to make sure instantiated templates are included
14109 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14112 # Green Hills C++ Compiler
14113 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14115 # The C++ compiler must be used to create the archive.
14116 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14119 # GNU C++ compiler with Solaris linker
14120 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14121 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14122 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14123 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14124 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14125 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14127 # Commands to make compiler produce verbose output that lists
14128 # what "hidden" libraries, object files and flags are used when
14129 # linking a shared library.
14130 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14132 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14134 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14135 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14136 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14138 # Commands to make compiler produce verbose output that lists
14139 # what "hidden" libraries, object files and flags are used when
14140 # linking a shared library.
14141 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14144 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14146 solaris2.[0-5] | solaris2.[0-5].*) ;;
14148 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14156 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14157 no_undefined_flag_CXX='${wl}-z,text'
14158 archive_cmds_need_lc_CXX=no
14159 hardcode_shlibpath_var_CXX=no
14160 runpath_var='LD_RUN_PATH'
14162 case $cc_basename in
14164 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14165 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14168 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14169 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14174 sysv5* | sco3.2v5* | sco5v6*)
14175 # Note: We can NOT use -z defs as we might desire, because we do not
14176 # link with -lc, and that would cause any symbols used from libc to
14177 # always be unresolved, which means just about no library would
14178 # ever link correctly. If we're not using GNU ld we use -z text
14179 # though, which does catch some bad symbols but isn't as heavy-handed
14181 no_undefined_flag_CXX='${wl}-z,text'
14182 allow_undefined_flag_CXX='${wl}-z,nodefs'
14183 archive_cmds_need_lc_CXX=no
14184 hardcode_shlibpath_var_CXX=no
14185 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14186 hardcode_libdir_separator_CXX=':'
14187 link_all_deplibs_CXX=yes
14188 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14189 runpath_var='LD_RUN_PATH'
14191 case $cc_basename in
14193 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14194 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14195 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14196 '"$old_archive_cmds_CXX"
14197 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14198 '"$reload_cmds_CXX"
14201 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14202 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14208 case $cc_basename in
14210 # NonStop-UX NCC 3.20
14211 # FIXME: insert proper C++ library support
14215 # FIXME: insert proper C++ library support
14222 # FIXME: insert proper C++ library support
14227 # FIXME: insert proper C++ library support
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14233 $as_echo "$ld_shlibs_CXX" >&6; }
14234 test "$ld_shlibs_CXX" = no && can_build_shared=no
14240 ## There is no encapsulation within the following macros, do not change
14241 ## the running order or otherwise move them around unless you know exactly
14242 ## what you are doing...
14243 # Dependencies to place before and after the object being linked:
14244 predep_objects_CXX=
14245 postdep_objects_CXX=
14248 compiler_lib_search_path_CXX=
14250 cat > conftest.$ac_ext <<_LT_EOF
14254 Foo (void) { a = 0; }
14261 _lt_libdeps_save_CFLAGS=$CFLAGS
14262 case "$CC $CFLAGS " in #(
14263 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14264 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14265 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14269 (eval $ac_compile) 2>&5
14271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14272 test $ac_status = 0; }; then
14273 # Parse the compiler output and extract the necessary
14274 # objects, libraries and library flags.
14276 # Sentinel used to keep track of whether or not we are before
14277 # the conftest object file.
14278 pre_test_object_deps_done=no
14280 for p in `eval "$output_verbose_link_cmd"`; do
14281 case ${prev}${p} in
14284 # Some compilers place space between "-{L,R}" and the path.
14285 # Remove the space.
14286 if test $p = "-L" ||
14287 test $p = "-R"; then
14292 # Expand the sysroot to ease extracting the directories later.
14293 if test -z "$prev"; then
14295 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14296 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14297 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14301 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14303 if test "$pre_test_object_deps_done" = no; then
14306 # Internal compiler library paths should come after those
14307 # provided the user. The postdeps already come after the
14308 # user supplied libs so there is no need to process them.
14309 if test -z "$compiler_lib_search_path_CXX"; then
14310 compiler_lib_search_path_CXX="${prev}${p}"
14312 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14315 # The "-l" case would never come before the object being
14316 # linked, so don't bother handling this case.
14319 if test -z "$postdeps_CXX"; then
14320 postdeps_CXX="${prev}${p}"
14322 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14328 *.lto.$objext) ;; # Ignore GCC LTO objects
14330 # This assumes that the test object file only shows up
14331 # once in the compiler output.
14332 if test "$p" = "conftest.$objext"; then
14333 pre_test_object_deps_done=yes
14337 if test "$pre_test_object_deps_done" = no; then
14338 if test -z "$predep_objects_CXX"; then
14339 predep_objects_CXX="$p"
14341 predep_objects_CXX="$predep_objects_CXX $p"
14344 if test -z "$postdep_objects_CXX"; then
14345 postdep_objects_CXX="$p"
14347 postdep_objects_CXX="$postdep_objects_CXX $p"
14352 *) ;; # Ignore the rest.
14360 echo "libtool.m4: error: problem compiling CXX test program"
14363 $RM -f confest.$objext
14364 CFLAGS=$_lt_libdeps_save_CFLAGS
14366 # PORTME: override above test on systems where it is broken
14369 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14370 # hack all around it, let's just trust "g++" to DTRT.
14371 predep_objects_CXX=
14372 postdep_objects_CXX=
14377 case `$CC -V 2>&1 | sed 5q` in
14381 # The more standards-conforming stlport4 library is
14382 # incompatible with the Cstd library. Avoid specifying
14383 # it if it's in CXXFLAGS. Ignore libCrun as
14384 # -library=stlport4 depends on it.
14385 case " $CXX $CXXFLAGS " in
14386 *" -library=stlport4 "*)
14387 solaris_use_stlport4=yes
14391 if test "$solaris_use_stlport4" != yes; then
14392 postdeps_CXX='-library=Cstd -library=Crun'
14399 case $cc_basename in
14401 # The more standards-conforming stlport4 library is
14402 # incompatible with the Cstd library. Avoid specifying
14403 # it if it's in CXXFLAGS. Ignore libCrun as
14404 # -library=stlport4 depends on it.
14405 case " $CXX $CXXFLAGS " in
14406 *" -library=stlport4 "*)
14407 solaris_use_stlport4=yes
14411 # Adding this requires a known-good setup of shared libraries for
14412 # Sun compiler versions before 5.6, else PIC objects from an old
14413 # archive will be linked into the output, leading to subtle bugs.
14414 if test "$solaris_use_stlport4" != yes; then
14415 postdeps_CXX='-library=Cstd -library=Crun'
14423 case " $postdeps_CXX " in
14424 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14426 compiler_lib_search_dirs_CXX=
14427 if test -n "${compiler_lib_search_path_CXX}"; then
14428 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14461 lt_prog_compiler_wl_CXX=
14462 lt_prog_compiler_pic_CXX=
14463 lt_prog_compiler_static_CXX=
14466 # C++ specific cases for pic, static, wl, etc.
14467 if test "$GXX" = yes; then
14468 lt_prog_compiler_wl_CXX='-Wl,'
14469 lt_prog_compiler_static_CXX='-static'
14473 # All AIX code is PIC.
14474 if test "$host_cpu" = ia64; then
14475 # AIX 5 now supports IA64 processor
14476 lt_prog_compiler_static_CXX='-Bstatic'
14483 # see comment about AmigaOS4 .so support
14484 lt_prog_compiler_pic_CXX='-fPIC'
14487 # FIXME: we need at least 68020 code to build shared libraries, but
14488 # adding the `-m68020' flag to GCC prevents building anything better,
14490 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14495 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14496 # PIC is the default for these OSes.
14498 mingw* | cygwin* | os2* | pw32* | cegcc*)
14499 # This hack is so that the source file can tell whether it is being
14500 # built for inclusion in a dll (and should export symbols for example).
14501 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14502 # (--disable-auto-import) libraries
14503 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14505 darwin* | rhapsody*)
14506 # PIC is the default on this platform
14507 # Common symbols not allowed in MH_DYLIB files
14508 lt_prog_compiler_pic_CXX='-fno-common'
14511 # DJGPP does not support shared libraries at all
14512 lt_prog_compiler_pic_CXX=
14515 # PIC is the default for Haiku.
14516 # The "-static" flag exists, but is broken.
14517 lt_prog_compiler_static_CXX=
14520 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14521 # Instead, we relocate shared libraries at runtime.
14524 if test -d /usr/nec; then
14525 lt_prog_compiler_pic_CXX=-Kconform_pic
14529 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14530 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14531 # sets the default TLS model and affects inlining.
14536 lt_prog_compiler_pic_CXX='-fPIC'
14541 # QNX uses GNU C++, but need to define -shared option too, otherwise
14542 # it will coredump.
14543 lt_prog_compiler_pic_CXX='-fPIC -shared'
14546 lt_prog_compiler_pic_CXX='-fPIC'
14552 # All AIX code is PIC.
14553 if test "$host_cpu" = ia64; then
14554 # AIX 5 now supports IA64 processor
14555 lt_prog_compiler_static_CXX='-Bstatic'
14557 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14561 case $cc_basename in
14563 # Green Hills C++ Compiler
14564 # _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"
14568 mingw* | cygwin* | os2* | pw32* | cegcc*)
14569 # This hack is so that the source file can tell whether it is being
14570 # built for inclusion in a dll (and should export symbols for example).
14571 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14574 case $cc_basename in
14576 lt_prog_compiler_pic_CXX='-KPIC'
14579 # Green Hills C++ Compiler
14580 lt_prog_compiler_pic_CXX='-pic'
14586 freebsd* | dragonfly*)
14587 # FreeBSD uses GNU C++
14589 hpux9* | hpux10* | hpux11*)
14590 case $cc_basename in
14592 lt_prog_compiler_wl_CXX='-Wl,'
14593 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14594 if test "$host_cpu" != ia64; then
14595 lt_prog_compiler_pic_CXX='+Z'
14599 lt_prog_compiler_wl_CXX='-Wl,'
14600 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14606 lt_prog_compiler_pic_CXX='+Z'
14615 # This is c89, which is MS Visual C++ (no shared libs)
14616 # Anyone wants to do a port?
14618 irix5* | irix6* | nonstopux*)
14619 case $cc_basename in
14621 lt_prog_compiler_wl_CXX='-Wl,'
14622 lt_prog_compiler_static_CXX='-non_shared'
14623 # CC pic flag -KPIC is the default.
14629 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14630 case $cc_basename in
14633 lt_prog_compiler_wl_CXX='--backend -Wl,'
14634 lt_prog_compiler_pic_CXX='-fPIC'
14637 # old Intel C++ for x86_64 which still supported -KPIC.
14638 lt_prog_compiler_wl_CXX='-Wl,'
14639 lt_prog_compiler_pic_CXX='-KPIC'
14640 lt_prog_compiler_static_CXX='-static'
14643 # Intel C++, used to be incompatible with GCC.
14644 # ICC 10 doesn't accept -KPIC any more.
14645 lt_prog_compiler_wl_CXX='-Wl,'
14646 lt_prog_compiler_pic_CXX='-fPIC'
14647 lt_prog_compiler_static_CXX='-static'
14650 # Portland Group C++ compiler
14651 lt_prog_compiler_wl_CXX='-Wl,'
14652 lt_prog_compiler_pic_CXX='-fpic'
14653 lt_prog_compiler_static_CXX='-Bstatic'
14657 # Make sure the PIC flag is empty. It appears that all Alpha
14658 # Linux and Compaq Tru64 Unix objects are PIC.
14659 lt_prog_compiler_pic_CXX=
14660 lt_prog_compiler_static_CXX='-non_shared'
14662 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14663 # IBM XL 8.0, 9.0 on PPC and BlueGene
14664 lt_prog_compiler_wl_CXX='-Wl,'
14665 lt_prog_compiler_pic_CXX='-qpic'
14666 lt_prog_compiler_static_CXX='-qstaticlink'
14669 case `$CC -V 2>&1 | sed 5q` in
14672 lt_prog_compiler_pic_CXX='-KPIC'
14673 lt_prog_compiler_static_CXX='-Bstatic'
14674 lt_prog_compiler_wl_CXX='-Qoption ld '
14685 case $cc_basename in
14687 lt_prog_compiler_pic_CXX='-W c,exportall'
14696 # QNX uses GNU C++, but need to define -shared option too, otherwise
14697 # it will coredump.
14698 lt_prog_compiler_pic_CXX='-fPIC -shared'
14700 osf3* | osf4* | osf5*)
14701 case $cc_basename in
14703 lt_prog_compiler_wl_CXX='--backend -Wl,'
14706 # Rational C++ 2.4.1
14707 lt_prog_compiler_pic_CXX='-pic'
14710 # Digital/Compaq C++
14711 lt_prog_compiler_wl_CXX='-Wl,'
14712 # Make sure the PIC flag is empty. It appears that all Alpha
14713 # Linux and Compaq Tru64 Unix objects are PIC.
14714 lt_prog_compiler_pic_CXX=
14715 lt_prog_compiler_static_CXX='-non_shared'
14724 case $cc_basename in
14726 # Sun C++ 4.2, 5.x and Centerline C++
14727 lt_prog_compiler_pic_CXX='-KPIC'
14728 lt_prog_compiler_static_CXX='-Bstatic'
14729 lt_prog_compiler_wl_CXX='-Qoption ld '
14732 # Green Hills C++ Compiler
14733 lt_prog_compiler_pic_CXX='-PIC'
14740 case $cc_basename in
14743 lt_prog_compiler_pic_CXX='-pic'
14744 lt_prog_compiler_static_CXX='-Bstatic'
14748 lt_prog_compiler_pic_CXX='-pic'
14754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14755 case $cc_basename in
14757 lt_prog_compiler_wl_CXX='-Wl,'
14758 lt_prog_compiler_pic_CXX='-KPIC'
14759 lt_prog_compiler_static_CXX='-Bstatic'
14764 case $cc_basename in
14766 # NonStop-UX NCC 3.20
14767 lt_prog_compiler_pic_CXX='-KPIC'
14776 lt_prog_compiler_can_build_shared_CXX=no
14782 # For platforms which do not support PIC, -DPIC is meaningless:
14784 lt_prog_compiler_pic_CXX=
14787 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14792 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14793 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14794 $as_echo_n "(cached) " >&6
14796 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14799 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14800 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14803 # Check to make sure the PIC flag actually works.
14805 if test -n "$lt_prog_compiler_pic_CXX"; then
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14807 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14808 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14809 $as_echo_n "(cached) " >&6
14811 lt_cv_prog_compiler_pic_works_CXX=no
14812 ac_outfile=conftest.$ac_objext
14813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14814 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14815 # Insert the option either (1) after the last *FLAGS variable, or
14816 # (2) before a word containing "conftest.", or (3) at the end.
14817 # Note that $ac_compile itself does not contain backslashes and begins
14818 # with a dollar sign (not a hyphen), so the echo should work correctly.
14819 # The option is referenced via a variable to avoid confusing sed.
14820 lt_compile=`echo "$ac_compile" | $SED \
14821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14823 -e 's:$: $lt_compiler_flag:'`
14824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14825 (eval "$lt_compile" 2>conftest.err)
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 if (exit $ac_status) && test -s "$ac_outfile"; then
14830 # The compiler can only warn and ignore the option if not recognized
14831 # So say no if there are warnings other than the usual output.
14832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14835 lt_cv_prog_compiler_pic_works_CXX=yes
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14842 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14844 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14845 case $lt_prog_compiler_pic_CXX in
14847 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14850 lt_prog_compiler_pic_CXX=
14851 lt_prog_compiler_can_build_shared_CXX=no
14861 # Check to make sure the static flag actually works.
14863 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14865 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14866 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14867 $as_echo_n "(cached) " >&6
14869 lt_cv_prog_compiler_static_works_CXX=no
14870 save_LDFLAGS="$LDFLAGS"
14871 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14872 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14874 # The linker can only warn and ignore the option if not recognized
14875 # So say no if there are warnings
14876 if test -s conftest.err; then
14877 # Append any errors to the config.log.
14878 cat conftest.err 1>&5
14879 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14881 if diff conftest.exp conftest.er2 >/dev/null; then
14882 lt_cv_prog_compiler_static_works_CXX=yes
14885 lt_cv_prog_compiler_static_works_CXX=yes
14889 LDFLAGS="$save_LDFLAGS"
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14893 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14895 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14898 lt_prog_compiler_static_CXX=
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14905 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14906 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14907 $as_echo_n "(cached) " >&6
14909 lt_cv_prog_compiler_c_o_CXX=no
14910 $RM -r conftest 2>/dev/null
14914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14916 lt_compiler_flag="-o out/conftest2.$ac_objext"
14917 # Insert the option either (1) after the last *FLAGS variable, or
14918 # (2) before a word containing "conftest.", or (3) at the end.
14919 # Note that $ac_compile itself does not contain backslashes and begins
14920 # with a dollar sign (not a hyphen), so the echo should work correctly.
14921 lt_compile=`echo "$ac_compile" | $SED \
14922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14924 -e 's:$: $lt_compiler_flag:'`
14925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14926 (eval "$lt_compile" 2>out/conftest.err)
14928 cat out/conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14932 # The compiler can only warn and ignore the option if not recognized
14933 # So say no if there are warnings
14934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14937 lt_cv_prog_compiler_c_o_CXX=yes
14942 # SGI C++ compiler will create directory out/ii_files/ for
14943 # template instantiation
14944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14945 $RM out/* && rmdir out
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14952 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14957 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14958 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14959 $as_echo_n "(cached) " >&6
14961 lt_cv_prog_compiler_c_o_CXX=no
14962 $RM -r conftest 2>/dev/null
14966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14968 lt_compiler_flag="-o out/conftest2.$ac_objext"
14969 # Insert the option either (1) after the last *FLAGS variable, or
14970 # (2) before a word containing "conftest.", or (3) at the end.
14971 # Note that $ac_compile itself does not contain backslashes and begins
14972 # with a dollar sign (not a hyphen), so the echo should work correctly.
14973 lt_compile=`echo "$ac_compile" | $SED \
14974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14976 -e 's:$: $lt_compiler_flag:'`
14977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14978 (eval "$lt_compile" 2>out/conftest.err)
14980 cat out/conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14984 # The compiler can only warn and ignore the option if not recognized
14985 # So say no if there are warnings
14986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14989 lt_cv_prog_compiler_c_o_CXX=yes
14994 # SGI C++ compiler will create directory out/ii_files/ for
14995 # template instantiation
14996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14997 $RM out/* && rmdir out
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15004 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15009 hard_links="nottested"
15010 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15011 # do not overwrite the value of need_locks provided by the user
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15013 $as_echo_n "checking if we can lock with hard links... " >&6; }
15016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15018 ln conftest.a conftest.b 2>&5 || hard_links=no
15019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15021 $as_echo "$hard_links" >&6; }
15022 if test "$hard_links" = no; then
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15024 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15034 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15036 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15037 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15040 # If we're using GNU nm, then we don't want the "-C" option.
15041 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15042 # Also, AIX nm treats weak defined symbols like other global defined
15043 # symbols, whereas GNU nm marks them as "W".
15044 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15045 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15047 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15051 export_symbols_cmds_CXX="$ltdll_cmds"
15053 cygwin* | mingw* | cegcc*)
15054 case $cc_basename in
15056 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15059 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'
15060 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15065 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15070 $as_echo "$ld_shlibs_CXX" >&6; }
15071 test "$ld_shlibs_CXX" = no && can_build_shared=no
15073 with_gnu_ld_CXX=$with_gnu_ld
15081 # Do we need to explicitly link libc?
15083 case "x$archive_cmds_need_lc_CXX" in
15085 # Assume -lc should be added
15086 archive_cmds_need_lc_CXX=yes
15088 if test "$enable_shared" = yes && test "$GCC" = yes; then
15089 case $archive_cmds_CXX in
15091 # FIXME: we may have to deal with multi-command sequences.
15094 # Test whether the compiler implicitly links with -lc since on some
15095 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15096 # to ld, don't add -lc before -lgcc.
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15098 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15099 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15100 $as_echo_n "(cached) " >&6
15103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15106 (eval $ac_compile) 2>&5
15108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15109 test $ac_status = 0; } 2>conftest.err; then
15112 libobjs=conftest.$ac_objext
15114 wl=$lt_prog_compiler_wl_CXX
15115 pic_flag=$lt_prog_compiler_pic_CXX
15121 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15122 allow_undefined_flag_CXX=
15123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15124 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15127 test $ac_status = 0; }
15129 lt_cv_archive_cmds_need_lc_CXX=no
15131 lt_cv_archive_cmds_need_lc_CXX=yes
15133 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15135 cat conftest.err 1>&5
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15141 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15142 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15211 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15213 library_names_spec=
15214 libname_spec='lib$name'
15218 postuninstall_cmds=
15222 shlibpath_overrides_runpath=unknown
15224 dynamic_linker="$host_os ld.so"
15225 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15226 need_lib_prefix=unknown
15227 hardcode_into_libs=no
15229 # when you set need_version to no, make sure it does not cause -set_version
15230 # flags to be left without arguments
15231 need_version=unknown
15235 version_type=linux # correct to gnu/linux during the next big refactor
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15237 shlibpath_var=LIBPATH
15239 # AIX 3 has no versioning support, so we append a major version to the name.
15240 soname_spec='${libname}${release}${shared_ext}$major'
15244 version_type=linux # correct to gnu/linux during the next big refactor
15247 hardcode_into_libs=yes
15248 if test "$host_cpu" = ia64; then
15249 # AIX 5 supports IA64
15250 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15251 shlibpath_var=LD_LIBRARY_PATH
15253 # With GCC up to 2.95.x, collect2 would create an import file
15254 # for dependence libraries. The import file would start with
15255 # the line `#! .'. This would cause the generated library to
15256 # depend on `.', always an invalid library. This was fixed in
15257 # development snapshots of GCC prior to 3.0.
15259 aix4 | aix4.[01] | aix4.[01].*)
15260 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15262 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15265 can_build_shared=no
15269 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15270 # soname into executable. Probably we can add versioning support to
15271 # collect2, so additional links can be useful in future.
15272 if test "$aix_use_runtimelinking" = yes; then
15273 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15274 # instead of lib<name>.a to let people know that these are not
15275 # typical AIX shared libraries.
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 # We preserve .a as extension for shared libraries through AIX4.2
15279 # and later when we are not doing run time linking.
15280 library_names_spec='${libname}${release}.a $libname.a'
15281 soname_spec='${libname}${release}${shared_ext}$major'
15283 shlibpath_var=LIBPATH
15290 # Since July 2007 AmigaOS4 officially supports .so libraries.
15291 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295 library_names_spec='$libname.ixlibrary $libname.a'
15296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15297 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15303 library_names_spec='${libname}${shared_ext}'
15304 dynamic_linker="$host_os ld.so"
15305 shlibpath_var=LIBRARY_PATH
15309 version_type=linux # correct to gnu/linux during the next big refactor
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15314 shlibpath_var=LD_LIBRARY_PATH
15315 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15316 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15317 # the default ld.so.conf also contains /usr/contrib/lib and
15318 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15319 # libtool to hard-code these into programs
15322 cygwin* | mingw* | pw32* | cegcc*)
15323 version_type=windows
15328 case $GCC,$cc_basename in
15331 library_names_spec='$libname.dll.a'
15332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15333 postinstall_cmds='base_file=`basename \${file}`~
15334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15335 dldir=$destdir/`dirname \$dlpath`~
15336 test -d \$dldir || mkdir -p \$dldir~
15337 $install_prog $dir/$dlname \$dldir/$dlname~
15338 chmod a+x \$dldir/$dlname~
15339 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15340 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15343 dlpath=$dir/\$dldll~
15345 shlibpath_overrides_runpath=yes
15349 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15350 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15354 # MinGW DLLs use traditional 'lib' prefix
15355 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15358 # pw32 DLLs use 'pw' prefix rather than 'lib'
15359 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15362 dynamic_linker='Win32 ld.exe'
15367 libname_spec='$name'
15368 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15369 library_names_spec='${libname}.dll.lib'
15373 sys_lib_search_path_spec=
15376 for lt_path in $LIB
15379 # Let DOS variable expansion print the short 8.3 style file name.
15380 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15381 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15384 # Convert to MSYS style.
15385 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15388 # Convert to unix form, then to dos form, then back to unix form
15389 # but this time dos style (no spaces!) so that the unix form looks
15390 # like /cygdrive/c/PROGRA~1:/cygdr...
15391 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15392 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15393 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15396 sys_lib_search_path_spec="$LIB"
15397 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15398 # It is most probably a Windows format PATH.
15399 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15401 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15403 # FIXME: find the short name or the path components, as spaces are
15404 # common. (e.g. "Program Files" -> "PROGRA~1")
15408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15409 postinstall_cmds='base_file=`basename \${file}`~
15410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15411 dldir=$destdir/`dirname \$dlpath`~
15412 test -d \$dldir || mkdir -p \$dldir~
15413 $install_prog $dir/$dlname \$dldir/$dlname'
15414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15415 dlpath=$dir/\$dldll~
15417 shlibpath_overrides_runpath=yes
15418 dynamic_linker='Win32 link.exe'
15422 # Assume MSVC wrapper
15423 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15424 dynamic_linker='Win32 ld.exe'
15427 # FIXME: first we should search . and the directory the executable is in
15431 darwin* | rhapsody*)
15432 dynamic_linker="$host_os dyld"
15433 version_type=darwin
15436 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15437 soname_spec='${libname}${release}${major}$shared_ext'
15438 shlibpath_overrides_runpath=yes
15439 shlibpath_var=DYLD_LIBRARY_PATH
15440 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15446 version_type=linux # correct to gnu/linux during the next big refactor
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 shlibpath_var=LD_LIBRARY_PATH
15454 freebsd* | dragonfly*)
15455 # DragonFly does not have aout. When/if they implement a new
15456 # versioning mechanism, adjust this.
15457 if test -x /usr/bin/objformat; then
15458 objformat=`/usr/bin/objformat`
15461 freebsd[23].*) objformat=aout ;;
15462 *) objformat=elf ;;
15465 version_type=freebsd-$objformat
15466 case $version_type in
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15477 shlibpath_var=LD_LIBRARY_PATH
15480 shlibpath_overrides_runpath=yes
15482 freebsd3.[01]* | freebsdelf3.[01]*)
15483 shlibpath_overrides_runpath=yes
15484 hardcode_into_libs=yes
15486 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15487 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15488 shlibpath_overrides_runpath=no
15489 hardcode_into_libs=yes
15491 *) # from 4.6 on, and DragonFly
15492 shlibpath_overrides_runpath=yes
15493 hardcode_into_libs=yes
15499 version_type=linux # correct to gnu/linux during the next big refactor
15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15503 soname_spec='${libname}${release}${shared_ext}$major'
15504 shlibpath_var=LD_LIBRARY_PATH
15505 shlibpath_overrides_runpath=no
15506 hardcode_into_libs=yes
15510 version_type=linux # correct to gnu/linux during the next big refactor
15513 dynamic_linker="$host_os runtime_loader"
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 shlibpath_var=LIBRARY_PATH
15517 shlibpath_overrides_runpath=yes
15518 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15519 hardcode_into_libs=yes
15522 hpux9* | hpux10* | hpux11*)
15523 # Give a soname corresponding to the major version so that dld.sl refuses to
15524 # link against other versions.
15531 hardcode_into_libs=yes
15532 dynamic_linker="$host_os dld.so"
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 if test "X$HPUX_IA64_MODE" = X32; then
15538 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15546 hardcode_into_libs=yes
15547 dynamic_linker="$host_os dld.sl"
15548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15557 dynamic_linker="$host_os dld.sl"
15558 shlibpath_var=SHLIB_PATH
15559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15564 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15565 postinstall_cmds='chmod 555 $lib'
15566 # or fails outright, so override atomically:
15567 install_override_mode=555
15571 version_type=linux # correct to gnu/linux during the next big refactor
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15575 soname_spec='${libname}${release}${shared_ext}$major'
15576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=no
15579 hardcode_into_libs=yes
15582 irix5* | irix6* | nonstopux*)
15584 nonstopux*) version_type=nonstopux ;;
15586 if test "$lt_cv_prog_gnu_ld" = yes; then
15587 version_type=linux # correct to gnu/linux during the next big refactor
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15597 irix5* | nonstopux*)
15598 libsuff= shlibsuff=
15601 case $LD in # libtool.m4 will add one of these switches to LD
15602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15603 libsuff= shlibsuff= libmagic=32-bit;;
15604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15605 libsuff=32 shlibsuff=N32 libmagic=N32;;
15606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15608 *) libsuff= shlibsuff= libmagic=never-match;;
15612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15613 shlibpath_overrides_runpath=no
15614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15616 hardcode_into_libs=yes
15619 # No shared lib support for Linux oldld, aout, or coff.
15620 linux*oldld* | linux*aout* | linux*coff*)
15624 # This must be glibc/ELF.
15625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15626 version_type=linux # correct to gnu/linux during the next big refactor
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630 soname_spec='${libname}${release}${shared_ext}$major'
15631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 shlibpath_overrides_runpath=no
15635 # Some binutils ld are patched to set DT_RUNPATH
15636 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15637 $as_echo_n "(cached) " >&6
15639 lt_cv_shlibpath_overrides_runpath=no
15640 save_LDFLAGS=$LDFLAGS
15641 save_libdir=$libdir
15642 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15643 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15655 if ac_fn_cxx_try_link "$LINENO"; then :
15656 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15657 lt_cv_shlibpath_overrides_runpath=yes
15660 rm -f core conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662 LDFLAGS=$save_LDFLAGS
15663 libdir=$save_libdir
15667 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15669 # This implies no fast_install, which is unacceptable.
15670 # Some rework will be needed to allow for fast_install
15671 # before this can be enabled.
15672 hardcode_into_libs=yes
15674 # Add ABI-specific directories to the system library path.
15675 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15677 # Append ld.so.conf contents to the search path
15678 if test -f /etc/ld.so.conf; then
15679 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' ' '`
15680 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15684 # We used to test for /lib/ld.so.1 and disable shared libraries on
15685 # powerpc, because MkLinux only supported shared libraries with the
15686 # GNU dynamic linker. Since this was broken with cross compilers,
15687 # most powerpc-linux boxes support dynamic linking these days and
15688 # people can always --disable-shared, the test was removed, and we
15689 # assume the GNU/Linux dynamic linker is in use.
15690 dynamic_linker='GNU/Linux ld.so'
15697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15700 dynamic_linker='NetBSD (a.out) ld.so'
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15703 soname_spec='${libname}${release}${shared_ext}$major'
15704 dynamic_linker='NetBSD ld.elf_so'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 shlibpath_overrides_runpath=yes
15708 hardcode_into_libs=yes
15712 version_type=linux # correct to gnu/linux during the next big refactor
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath=yes
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723 soname_spec='${libname}${release}${shared_ext}$major'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 shlibpath_overrides_runpath=no
15726 hardcode_into_libs=yes
15727 dynamic_linker='ldqnx.so'
15732 sys_lib_dlsearch_path_spec="/usr/lib"
15734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15737 *) need_version=no ;;
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15741 shlibpath_var=LD_LIBRARY_PATH
15742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15744 openbsd2.[89] | openbsd2.[89].*)
15745 shlibpath_overrides_runpath=no
15748 shlibpath_overrides_runpath=yes
15752 shlibpath_overrides_runpath=yes
15757 libname_spec='$name'
15760 library_names_spec='$libname${shared_ext} $libname.a'
15761 dynamic_linker='OS/2 ld.exe'
15762 shlibpath_var=LIBPATH
15765 osf3* | osf4* | osf5*)
15769 soname_spec='${libname}${release}${shared_ext}$major'
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15781 version_type=linux # correct to gnu/linux during the next big refactor
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 soname_spec='${libname}${release}${shared_ext}$major'
15786 shlibpath_var=LD_LIBRARY_PATH
15787 shlibpath_overrides_runpath=yes
15788 hardcode_into_libs=yes
15789 # ldd complains unless libraries are executable
15790 postinstall_cmds='chmod +x $lib'
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15797 shlibpath_var=LD_LIBRARY_PATH
15798 shlibpath_overrides_runpath=yes
15799 if test "$with_gnu_ld" = yes; then
15806 version_type=linux # correct to gnu/linux during the next big refactor
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808 soname_spec='${libname}${release}${shared_ext}$major'
15809 shlibpath_var=LD_LIBRARY_PATH
15810 case $host_vendor in
15812 shlibpath_overrides_runpath=no
15814 runpath_var=LD_RUN_PATH
15822 shlibpath_overrides_runpath=no
15823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15829 if test -d /usr/nec ;then
15830 version_type=linux # correct to gnu/linux during the next big refactor
15831 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15832 soname_spec='$libname${shared_ext}.$major'
15833 shlibpath_var=LD_LIBRARY_PATH
15837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15838 version_type=freebsd-elf
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 shlibpath_overrides_runpath=yes
15845 hardcode_into_libs=yes
15846 if test "$with_gnu_ld" = yes; then
15847 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15852 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15856 sys_lib_dlsearch_path_spec='/usr/lib'
15860 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15861 version_type=linux # correct to gnu/linux during the next big refactor
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865 shlibpath_var=LD_LIBRARY_PATH
15866 shlibpath_overrides_runpath=no
15867 hardcode_into_libs=yes
15871 version_type=linux # correct to gnu/linux during the next big refactor
15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873 soname_spec='${libname}${release}${shared_ext}$major'
15874 shlibpath_var=LD_LIBRARY_PATH
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15882 $as_echo "$dynamic_linker" >&6; }
15883 test "$dynamic_linker" = no && can_build_shared=no
15885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15886 if test "$GCC" = yes; then
15887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15890 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15891 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15893 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15894 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15935 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15936 hardcode_action_CXX=
15937 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15938 test -n "$runpath_var_CXX" ||
15939 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15941 # We can hardcode non-existent directories.
15942 if test "$hardcode_direct_CXX" != no &&
15943 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15944 # have to relink, otherwise we might link with an installed library
15945 # when we should be linking with a yet-to-be-installed one
15946 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15947 test "$hardcode_minus_L_CXX" != no; then
15948 # Linking always hardcodes the temporary library directory.
15949 hardcode_action_CXX=relink
15951 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15952 hardcode_action_CXX=immediate
15955 # We cannot hardcode anything, or else we can only hardcode existing
15957 hardcode_action_CXX=unsupported
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15960 $as_echo "$hardcode_action_CXX" >&6; }
15962 if test "$hardcode_action_CXX" = relink ||
15963 test "$inherit_rpath_CXX" = yes; then
15964 # Fast installation is not supported
15965 enable_fast_install=no
15966 elif test "$shlibpath_overrides_runpath" = yes ||
15967 test "$enable_shared" = no; then
15968 # Fast installation is not necessary
15969 enable_fast_install=needless
15978 fi # test -n "$compiler"
15981 CFLAGS=$lt_save_CFLAGS
15985 with_gnu_ld=$lt_save_with_gnu_ld
15986 lt_cv_path_LDCXX=$lt_cv_path_LD
15987 lt_cv_path_LD=$lt_save_path_LD
15988 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15989 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15990 fi # test "$_lt_caught_CXX_error" != yes
15993 ac_cpp='$CXXCPP $CPPFLAGS'
15994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
16000 $as_echo_n "checking whether the C++ compiler works... " >&6; }
16001 if ${atf_cv_prog_cxx_works+:} false; then :
16002 $as_echo_n "(cached) " >&6
16005 ac_cpp='$CXXCPP $CPPFLAGS'
16006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16021 if ac_fn_cxx_try_link "$LINENO"; then :
16022 atf_cv_prog_cxx_works=yes
16024 atf_cv_prog_cxx_works=no
16026 rm -f core conftest.err conftest.$ac_objext \
16027 conftest$ac_exeext conftest.$ac_ext
16029 ac_cpp='$CXXCPP $CPPFLAGS'
16030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $atf_cv_prog_cxx_works" >&5
16036 $as_echo "$atf_cv_prog_cxx_works" >&6; }
16037 if test "${atf_cv_prog_cxx_works}" = no; then
16038 as_fn_error $? "C++ compiler cannot create executables" "$LINENO" 5
16044 # Check whether --enable-developer was given.
16045 if test "${enable_developer+set}" = set; then :
16046 enableval=$enable_developer;
16048 if test -d ${srcdir}/.git; then
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: building from HEAD; developer mode autoenabled" >&5
16050 $as_echo "$as_me: building from HEAD; developer mode autoenabled" >&6;}
16051 enable_developer=yes
16053 enable_developer=no
16059 # The following warning flags should also be enabled but cannot be.
16060 # Reasons given below.
16062 # -Wold-style-cast: Raises errors when using TIOCGWINSZ, at least under
16063 # Mac OS X. This is due to the way _IOR is defined.
16066 try_c_cxx_flags="-D_FORTIFY_SOURCE=2 \
16071 -Wredundant-decls \
16078 try_c_flags="-Wmissing-prototypes \
16080 -Wstrict-prototypes"
16082 try_cxx_flags="-Wabi \
16083 -Wctor-dtor-privacy \
16085 -Wno-non-template-friend \
16086 -Wno-pmf-conversions \
16087 -Wnon-virtual-dtor \
16088 -Woverloaded-virtual \
16093 if test ${enable_developer} = yes; then
16095 try_c_cxx_flags="${try_c_cxx_flags} -g -Werror"
16098 try_c_cxx_flags="${try_c_cxx_flags} -DNDEBUG"
16103 ac_cpp='$CPP $CPPFLAGS'
16104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16109 for f in ${try_c_cxx_flags} ${try_c_flags}; do
16114 if test x"${kyua_CC_has_werror-unset}" = xunset; then
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror" >&5
16116 $as_echo_n "checking whether ${CC} supports -Werror... " >&6; }
16117 saved_flags="${CFLAGS}"
16118 kyua_CC_has_werror=no
16119 CFLAGS="${CFLAGS} -Werror"
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16131 if ac_fn_c_try_link "$LINENO"; then :
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16133 $as_echo "yes" >&6; }
16134 kyua_CC_has_werror=yes
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137 $as_echo "no" >&6; }
16139 rm -f core conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16141 CFLAGS="${saved_flags}"
16144 if test "${f}" = "-Werror"; then
16145 found=${kyua_CC_has_werror}
16148 if test ${kyua_CC_has_werror} = yes; then
16150 if test x"${found-unset}" = xunset; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
16152 $as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
16153 saved_flags="${CFLAGS}"
16155 CFLAGS="${CFLAGS} -Werror ${f}"
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16167 if ac_fn_c_try_link "$LINENO"; then :
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16169 $as_echo "yes" >&6; }
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16175 rm -f core conftest.err conftest.$ac_objext \
16176 conftest$ac_exeext conftest.$ac_ext
16177 CFLAGS="${saved_flags}"
16182 if test x"${found-unset}" = xunset; then
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
16184 $as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
16185 saved_flags="${CFLAGS}"
16187 CFLAGS="${CFLAGS} ${f}"
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h. */
16199 if ac_fn_c_try_link "$LINENO"; then :
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16201 $as_echo "yes" >&6; }
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16205 $as_echo "no" >&6; }
16207 rm -f core conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
16209 CFLAGS="${saved_flags}"
16214 if test ${found} = yes; then
16215 valid_cflags="${valid_cflags} ${f}"
16220 if test -n "${valid_cflags}"; then
16221 CFLAGS="${CFLAGS} ${valid_cflags}"
16224 ac_cpp='$CXXCPP $CPPFLAGS'
16225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16232 ac_cpp='$CXXCPP $CPPFLAGS'
16233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16238 for f in ${try_c_cxx_flags} ${try_cxx_flags}; do
16243 if test x"${kyua_CXX_has_werror-unset}" = xunset; then
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror" >&5
16245 $as_echo_n "checking whether ${CXX} supports -Werror... " >&6; }
16246 saved_flags="${CXXFLAGS}"
16247 kyua_CXX_has_werror=no
16248 CXXFLAGS="${CXXFLAGS} -Werror"
16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h. */
16260 if ac_fn_cxx_try_link "$LINENO"; then :
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16262 $as_echo "yes" >&6; }
16263 kyua_CXX_has_werror=yes
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266 $as_echo "no" >&6; }
16268 rm -f core conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16270 CXXFLAGS="${saved_flags}"
16273 if test "${f}" = "-Werror"; then
16274 found=${kyua_CXX_has_werror}
16277 if test ${kyua_CXX_has_werror} = yes; then
16279 if test x"${found-unset}" = xunset; then
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
16281 $as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
16282 saved_flags="${CXXFLAGS}"
16284 CXXFLAGS="${CXXFLAGS} -Werror ${f}"
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16296 if ac_fn_cxx_try_link "$LINENO"; then :
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16298 $as_echo "yes" >&6; }
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16302 $as_echo "no" >&6; }
16304 rm -f core conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16306 CXXFLAGS="${saved_flags}"
16311 if test x"${found-unset}" = xunset; then
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
16313 $as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
16314 saved_flags="${CXXFLAGS}"
16316 CXXFLAGS="${CXXFLAGS} ${f}"
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16328 if ac_fn_cxx_try_link "$LINENO"; then :
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16330 $as_echo "yes" >&6; }
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334 $as_echo "no" >&6; }
16336 rm -f core conftest.err conftest.$ac_objext \
16337 conftest$ac_exeext conftest.$ac_ext
16338 CXXFLAGS="${saved_flags}"
16343 if test ${found} = yes; then
16344 valid_cxxflags="${valid_cxxflags} ${f}"
16349 if test -n "${valid_cxxflags}"; then
16350 CXXFLAGS="${CXXFLAGS} ${valid_cxxflags}"
16353 ac_cpp='$CXXCPP $CPPFLAGS'
16354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is in std" >&5
16365 $as_echo_n "checking whether vsnprintf is in std... " >&6; }
16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h. */
16375 const char* fmt = NULL;
16376 std::vsnprintf(buf, 0, fmt, ap);
16382 if ac_fn_cxx_try_compile "$LINENO"; then :
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16384 $as_echo "yes" >&6; }
16386 $as_echo "#define HAVE_VSNPRINTF_IN_STD 1" >>confdefs.h
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 ac_cpp='$CPP $CPPFLAGS'
16399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt allows a + sign for POSIX behavior" >&5
16404 $as_echo_n "checking whether getopt allows a + sign for POSIX behavior... " >&6; }
16405 if test "$cross_compiling" = yes; then :
16406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16408 as_fn_error $? "cannot run test program while cross compiling
16409 See \`config.log' for more details" "$LINENO" 5; }
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16413 #include <stdlib.h>
16414 #include <string.h>
16415 #include <unistd.h>
16422 strdup("conftest"),
16429 int seen_a = 0, seen_plus = 0;
16431 while ((ch = getopt(argc, argv, "+a:")) != -1) {
16447 return (seen_a && !seen_plus) ? EXIT_SUCCESS : EXIT_FAILURE;
16453 if ac_fn_c_try_run "$LINENO"; then :
16454 getopt_allows_plus=yes
16456 $as_echo "#define HAVE_GNU_GETOPT 1" >>confdefs.h
16459 getopt_allows_plus=no
16461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16462 conftest.$ac_objext conftest.beam conftest.$ac_ext
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${getopt_allows_plus}" >&5
16466 $as_echo "${getopt_allows_plus}" >&6; }
16468 ac_cpp='$CXXCPP $CPPFLAGS'
16469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16475 ac_cpp='$CPP $CPPFLAGS'
16476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset" >&5
16481 $as_echo_n "checking whether getopt has optreset... " >&6; }
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16484 #include <stdlib.h>
16485 #include <unistd.h>
16491 return EXIT_SUCCESS;
16497 if ac_fn_c_try_compile "$LINENO"; then :
16498 getopt_has_optreset=yes
16500 getopt_has_optreset=no
16502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16503 if test x"${getopt_has_optreset}" = yes; then
16505 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${getopt_has_optreset}" >&5
16509 $as_echo "${getopt_has_optreset}" >&6; }
16511 ac_cpp='$CXXCPP $CPPFLAGS'
16512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__format__(__printf__, a, b))) is supported" >&5
16520 $as_echo_n "checking whether __attribute__((__format__(__printf__, a, b))) is supported... " >&6; }
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16524 #include <stdarg.h>
16527 static void test_printf(const char *, ...)
16528 __attribute__((__format__(__printf__, 1, 2)));
16531 test_printf(const char *format, ...)
16535 va_start(ap, format);
16536 vprintf(format, ap);
16543 test_printf("foo %s", "bar");
16550 if ac_fn_cxx_try_compile "$LINENO"; then :
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16552 $as_echo "yes" >&6; }
16553 value="__attribute__((__format__(__printf__, a, b)))"
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16556 $as_echo "no" >&6; }
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 ATTRIBUTE_FORMAT_PRINTF=${value}
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__noreturn__)) is supported" >&5
16566 $as_echo_n "checking whether __attribute__((__noreturn__)) is supported... " >&6; }
16567 if test "$cross_compiling" = yes; then :
16568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16570 as_fn_error $? "cannot run test program while cross compiling
16571 See \`config.log' for more details" "$LINENO" 5; }
16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16574 /* end confdefs.h. */
16580 #if ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
16590 if ac_fn_cxx_try_run "$LINENO"; then :
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16592 $as_echo "yes" >&6; }
16593 value="__attribute__((__noreturn__))"
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16596 $as_echo "no" >&6; }
16600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16601 conftest.$ac_objext conftest.beam conftest.$ac_ext
16604 ATTRIBUTE_NORETURN=${value}
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__unused__)) is supported" >&5
16609 $as_echo_n "checking whether __attribute__((__unused__)) is supported... " >&6; }
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16614 function(int a __attribute__((__unused__)))
16628 if ac_fn_cxx_try_compile "$LINENO"; then :
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16630 $as_echo "yes" >&6; }
16631 value="__attribute__((__unused__))"
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16634 $as_echo "no" >&6; }
16638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 ATTRIBUTE_UNUSED=${value}
16644 for ac_func in putenv setenv unsetenv
16646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16647 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16649 cat >>confdefs.h <<_ACEOF
16650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv is in std" >&5
16660 $as_echo_n "checking whether putenv is in std... " >&6; }
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16667 std::putenv("a=b");
16673 if ac_fn_cxx_try_compile "$LINENO"; then :
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16675 $as_echo "yes" >&6; }
16677 $as_echo "#define HAVE_PUTENV_IN_STD 1" >>confdefs.h
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16681 $as_echo "no" >&6; }
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv is in std" >&5
16690 $as_echo_n "checking whether setenv is in std... " >&6; }
16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h. */
16697 std::setenv("a", "b");
16703 if ac_fn_cxx_try_compile "$LINENO"; then :
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16705 $as_echo "yes" >&6; }
16707 $as_echo "#define HAVE_SETENV_IN_STD 1" >>confdefs.h
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711 $as_echo "no" >&6; }
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv is in std" >&5
16720 $as_echo_n "checking whether unsetenv is in std... " >&6; }
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16727 std::unsetenv("a");
16733 if ac_fn_cxx_try_compile "$LINENO"; then :
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16735 $as_echo "yes" >&6; }
16737 $as_echo "#define HAVE_UNSETENV_IN_STD 1" >>confdefs.h
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16741 $as_echo "no" >&6; }
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basename takes a constant pointer" >&5
16750 $as_echo_n "checking whether basename takes a constant pointer... " >&6; }
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753 #include <libgen.h>
16758 const char* s = "/foo/bar/";
16759 (void)::basename(s);
16765 if ac_fn_cxx_try_compile "$LINENO"; then :
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16767 $as_echo "yes" >&6; }
16769 $as_echo "#define HAVE_CONST_BASENAME 1" >>confdefs.h
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16773 $as_echo "no" >&6; }
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirname takes a constant pointer" >&5
16778 $as_echo_n "checking whether dirname takes a constant pointer... " >&6; }
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #include <libgen.h>
16786 const char* s = "/foo/bar/";
16787 (void)::dirname(s);
16793 if ac_fn_cxx_try_compile "$LINENO"; then :
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16795 $as_echo "yes" >&6; }
16797 $as_echo "#define HAVE_CONST_DIRNAME 1" >>confdefs.h
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16801 $as_echo "no" >&6; }
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd(NULL, 0) works" >&5
16806 $as_echo_n "checking whether getcwd(NULL, 0) works... " >&6; }
16807 if test "$cross_compiling" = yes; then :
16808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16810 as_fn_error $? "cannot run test program while cross compiling
16811 See \`config.log' for more details" "$LINENO" 5; }
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16815 #include <stdlib.h>
16816 #include <unistd.h>
16821 char *cwd = getcwd(NULL, 0);
16822 return (cwd != NULL) ? EXIT_SUCCESS : EXIT_FAILURE;
16828 if ac_fn_cxx_try_run "$LINENO"; then :
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16830 $as_echo "yes" >&6; }
16832 $as_echo "#define HAVE_GETCWD_DYN 1" >>confdefs.h
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836 $as_echo "no" >&6; }
16838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16839 conftest.$ac_objext conftest.beam conftest.$ac_ext
16843 for ac_func in unmount
16845 ac_fn_cxx_check_func "$LINENO" "unmount" "ac_cv_func_unmount"
16846 if test "x$ac_cv_func_unmount" = xyes; then :
16847 cat >>confdefs.h <<_ACEOF
16848 #define HAVE_UNMOUNT 1
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is in std" >&5
16859 $as_echo_n "checking whether snprintf is in std... " >&6; }
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16867 std::snprintf(&buf, 1, "");
16873 if ac_fn_cxx_try_compile "$LINENO"; then :
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16875 $as_echo "yes" >&6; }
16877 $as_echo "#define HAVE_SNPRINTF_IN_STD 1" >>confdefs.h
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16881 $as_echo "no" >&6; }
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the last valid signal" >&5
16890 $as_echo_n "checking for the last valid signal... " >&6; }
16891 if test "$cross_compiling" = yes; then :
16892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16894 as_fn_error $? "cannot run test program while cross compiling
16895 See \`config.log' for more details" "$LINENO" 5; }
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16901 #include <signal.h>
16904 #include <stdlib.h>
16915 if (i != SIGKILL && i != SIGSTOP) {
16916 struct sigaction sa;
16919 sa.sa_handler = SIG_IGN;
16920 sigemptyset(&sa.sa_mask);
16923 ret = sigaction(i, &sa, NULL);
16925 if (errno == EINVAL) {
16929 err(EXIT_FAILURE, "sigaction failed");
16934 errx(EXIT_FAILURE, "too much signals");
16936 f = fopen("conftest.cnt", "w");
16938 err(EXIT_FAILURE, "failed to open file");
16940 fprintf(f, "%d\n", i);
16943 return EXIT_SUCCESS;
16949 if ac_fn_cxx_try_run "$LINENO"; then :
16950 if test ! -f conftest.cnt; then
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed; assuming ${last_signo}" >&5
16953 $as_echo "failed; assuming ${last_signo}" >&6; }
16955 last_signo=$(cat conftest.cnt)
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${last_signo}" >&5
16958 $as_echo "${last_signo}" >&6; }
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed; assuming ${last_signo}" >&5
16963 $as_echo "failed; assuming ${last_signo}" >&6; }
16965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16966 conftest.$ac_objext conftest.beam conftest.$ac_ext
16970 cat >>confdefs.h <<_ACEOF
16971 #define LAST_SIGNO ${last_signo}
16976 ac_fn_cxx_check_type "$LINENO" "timer_t" "ac_cv_type_timer_t" "#include <time.h>
16978 if test "x$ac_cv_type_timer_t" = xyes; then :
16985 test x"${ATF_BUILD_CC-unset}" = x"unset" && ATF_BUILD_CC="${CC}"
16990 test x"${ATF_BUILD_CFLAGS-unset}" = x"unset" && ATF_BUILD_CFLAGS="${CFLAGS}"
16995 test x"${ATF_BUILD_CPP-unset}" = x"unset" && ATF_BUILD_CPP="${CPP}"
17000 test x"${ATF_BUILD_CPPFLAGS-unset}" = x"unset" && ATF_BUILD_CPPFLAGS="${CPPFLAGS}"
17005 test x"${ATF_BUILD_CXX-unset}" = x"unset" && ATF_BUILD_CXX="${CXX}"
17010 test x"${ATF_BUILD_CXXFLAGS-unset}" = x"unset" && ATF_BUILD_CXXFLAGS="${CXXFLAGS}"
17015 if test "${srcdir}" = .; then
17018 target_srcdir="${srcdir}/"
17023 atf_arch=`uname -p`
17024 atf_machine=`uname -m`
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: Machine type: ${atf_machine}, architecture: ${atf_arch}" >&5
17027 $as_echo "$as_me: Machine type: ${atf_machine}, architecture: ${atf_arch}" >&6;}
17028 atf_arch=${atf_arch}
17030 atf_machine=${atf_machine}
17035 if test x"${ATF_CONFSUBDIR-unset}" = x"unset"; then
17038 case ${ATF_CONFSUBDIR} in
17040 as_fn_error $? "ATF_CONFSUBDIR must hold a relative path" "$LINENO" 5
17046 if test x"${ATF_CONFSUBDIR}" = x""; then
17047 atf_confdir=\${sysconfdir}
17050 atf_confdir=\${sysconfdir}/${ATF_CONFSUBDIR}
17055 if test x"${ATF_WORKDIR}" = x""; then
17056 for t in /tmp /var/tmp; do
17057 if test -d ${t}; then
17062 if test x"${ATF_WORKDIR}" = x""; then
17063 as_fn_error $? "Could not guess a value for ATF_WORKDIR" "$LINENO" 5
17066 case ${ATF_WORKDIR} in
17070 as_fn_error $? "ATF_WORKDIR must hold an absolute path" "$LINENO" 5
17075 atf_aclocaldir=\${datadir}/aclocal
17077 atf_cssdir=\${datadir}/examples/atf
17079 atf_dtddir=\${datadir}/xml/atf
17081 atf_egdir=\${datadir}/examples/atf
17083 atf_pkgconfigdir=\${libdir}/pkgconfig
17085 atf_xsldir=\${datadir}/xsl/atf
17090 if test x"${ATF_SHELL}" = x""; then
17091 for ac_prog in bash sh
17093 # Extract the first word of "$ac_prog", so it can be a program name with args.
17094 set dummy $ac_prog; ac_word=$2
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17096 $as_echo_n "checking for $ac_word... " >&6; }
17097 if ${ac_cv_path_ATF_SHELL+:} false; then :
17098 $as_echo_n "(cached) " >&6
17102 ac_cv_path_ATF_SHELL="$ATF_SHELL" # Let the user override the test with a path.
17105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106 for as_dir in $PATH
17109 test -z "$as_dir" && as_dir=.
17110 for ac_exec_ext in '' $ac_executable_extensions; do
17111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17112 ac_cv_path_ATF_SHELL="$as_dir/$ac_word$ac_exec_ext"
17113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17123 ATF_SHELL=$ac_cv_path_ATF_SHELL
17124 if test -n "$ATF_SHELL"; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATF_SHELL" >&5
17126 $as_echo "$ATF_SHELL" >&6; }
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17129 $as_echo "no" >&6; }
17133 test -n "$ATF_SHELL" && break
17137 case ${ATF_SHELL} in
17141 as_fn_error $? "ATF_SHELL must hold an absolute path" "$LINENO" 5
17145 if test x"${ATF_SHELL}" = x""; then
17146 as_fn_error $? "No POSIX shell interpreter found; maybe set ATF_SHELL?" "$LINENO" 5
17150 # Extract the first word of "gdb", so it can be a program name with args.
17151 set dummy gdb; ac_word=$2
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17153 $as_echo_n "checking for $ac_word... " >&6; }
17154 if ${ac_cv_path_GDB+:} false; then :
17155 $as_echo_n "(cached) " >&6
17159 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163 for as_dir in $PATH
17166 test -z "$as_dir" && as_dir=.
17167 for ac_exec_ext in '' $ac_executable_extensions; do
17168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17169 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
17170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17180 GDB=$ac_cv_path_GDB
17181 if test -n "$GDB"; then
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
17183 $as_echo "$GDB" >&6; }
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 $as_echo "no" >&6; }
17190 # Extract the first word of "kyua", so it can be a program name with args.
17191 set dummy kyua; ac_word=$2
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17193 $as_echo_n "checking for $ac_word... " >&6; }
17194 if ${ac_cv_path_KYUA+:} false; then :
17195 $as_echo_n "(cached) " >&6
17199 ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
17202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17203 for as_dir in $PATH
17206 test -z "$as_dir" && as_dir=.
17207 for ac_exec_ext in '' $ac_executable_extensions; do
17208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17209 ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
17210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17220 KYUA=$ac_cv_path_KYUA
17221 if test -n "$KYUA"; then
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
17223 $as_echo "$KYUA" >&6; }
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17226 $as_echo "no" >&6; }
17230 if test -n "${KYUA}"; then
17232 HAVE_KYUA_FALSE='#'
17238 # Extract the first word of "git", so it can be a program name with args.
17239 set dummy git; ac_word=$2
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17241 $as_echo_n "checking for $ac_word... " >&6; }
17242 if ${ac_cv_path_GIT+:} false; then :
17243 $as_echo_n "(cached) " >&6
17247 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
17250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17251 for as_dir in $PATH
17254 test -z "$as_dir" && as_dir=.
17255 for ac_exec_ext in '' $ac_executable_extensions; do
17256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17257 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
17258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17268 GIT=$ac_cv_path_GIT
17269 if test -n "$GIT"; then
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
17271 $as_echo "$GIT" >&6; }
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274 $as_echo "no" >&6; }
17280 ac_config_files="$ac_config_files Makefile atf-c/defs.h"
17282 cat >confcache <<\_ACEOF
17283 # This file is a shell script that caches the results of configure
17284 # tests run on this system so they can be shared between configure
17285 # scripts and configure runs, see configure's option --config-cache.
17286 # It is not useful on other systems. If it contains results you don't
17287 # want to keep, you may remove or edit it.
17289 # config.status only pays attention to the cache file if you give it
17290 # the --recheck option to rerun configure.
17292 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17293 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17294 # following values.
17298 # The following way of writing the cache mishandles newlines in values,
17299 # but we know of no workaround that is simple, portable, and efficient.
17300 # So, we kill variables containing newlines.
17301 # Ultrix sh set writes to stderr and can't be redirected directly,
17302 # and sets the high bit in the cache file unless we assign to the vars.
17304 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17305 eval ac_val=\$$ac_var
17309 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17310 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17313 _ | IFS | as_nl) ;; #(
17314 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17315 *) { eval $ac_var=; unset $ac_var;} ;;
17321 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17322 *${as_nl}ac_space=\ *)
17323 # `set' does not quote correctly, so add quotes: double-quote
17324 # substitution turns \\\\ into \\, and sed turns \\ into \.
17327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17330 # `set' quotes correctly as required by POSIX, so do not add quotes.
17331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17340 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17342 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17344 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17345 if test -w "$cache_file"; then
17346 if test "x$cache_file" != "x/dev/null"; then
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17348 $as_echo "$as_me: updating cache $cache_file" >&6;}
17349 if test ! -f "$cache_file" || test -h "$cache_file"; then
17350 cat confcache >"$cache_file"
17352 case $cache_file in #(
17354 mv -f confcache "$cache_file"$$ &&
17355 mv -f "$cache_file"$$ "$cache_file" ;; #(
17357 mv -f confcache "$cache_file" ;;
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17363 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17368 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17369 # Let make expand exec_prefix.
17370 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17372 DEFS=-DHAVE_CONFIG_H
17377 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17378 # 1. Remove the extension, and $U if already installed.
17379 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17380 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17381 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17382 # will be set to the directory where LIBOBJS objects are built.
17383 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17384 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17386 LIBOBJS=$ac_libobjs
17388 LTLIBOBJS=$ac_ltlibobjs
17391 if test -n "$EXEEXT"; then
17393 am__EXEEXT_FALSE='#'
17395 am__EXEEXT_TRUE='#'
17399 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17400 as_fn_error $? "conditional \"AMDEP\" was never defined.
17401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17403 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17404 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17407 if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
17408 as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
17409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17411 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17412 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17415 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17416 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17419 if test -z "${HAVE_KYUA_TRUE}" && test -z "${HAVE_KYUA_FALSE}"; then
17420 as_fn_error $? "conditional \"HAVE_KYUA\" was never defined.
17421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17424 : "${CONFIG_STATUS=./config.status}"
17426 ac_clean_files_save=$ac_clean_files
17427 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17429 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17431 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17433 # Generated by $as_me.
17434 # Run this file to recreate the current configuration.
17435 # Compiler output produced by configure, useful for debugging
17436 # configure, is in config.log if it exists.
17439 ac_cs_recheck=false
17442 SHELL=\${CONFIG_SHELL-$SHELL}
17445 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17446 ## -------------------- ##
17447 ## M4sh Initialization. ##
17448 ## -------------------- ##
17450 # Be more Bourne compatible
17451 DUALCASE=1; export DUALCASE # for MKS sh
17452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17455 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17456 # is contrary to our usage. Disable this feature.
17457 alias -g '${1+"$@"}'='"$@"'
17458 setopt NO_GLOB_SUBST
17460 case `(set -o) 2>/dev/null` in #(
17472 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17473 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17474 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17476 # Prefer a ksh shell builtin over an external printf program on Solaris,
17477 # but without wasting forks for bash or zsh.
17478 if test -z "$BASH_VERSION$ZSH_VERSION" \
17479 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17480 as_echo='print -r --'
17481 as_echo_n='print -rn --'
17482 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17483 as_echo='printf %s\n'
17484 as_echo_n='printf %s'
17486 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17487 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17488 as_echo_n='/usr/ucb/echo -n'
17490 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17491 as_echo_n_body='eval
17495 expr "X$arg" : "X\\(.*\\)$as_nl";
17496 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17498 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17500 export as_echo_n_body
17501 as_echo_n='sh -c $as_echo_n_body as_echo'
17503 export as_echo_body
17504 as_echo='sh -c $as_echo_body as_echo'
17507 # The user is always right.
17508 if test "${PATH_SEPARATOR+set}" != set; then
17510 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17511 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17518 # We need space, tab and new line, in precisely that order. Quoting is
17519 # there to prevent editors from complaining about space-tab.
17520 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17521 # splitting by setting IFS to empty value.)
17524 # Find who we are. Look in the path if we contain no directory separator.
17527 *[\\/]* ) as_myself=$0 ;;
17528 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17529 for as_dir in $PATH
17532 test -z "$as_dir" && as_dir=.
17533 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17539 # We did not find ourselves, most probably we were run as `sh COMMAND'
17540 # in which case we are not to be found in the path.
17541 if test "x$as_myself" = x; then
17544 if test ! -f "$as_myself"; then
17545 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17549 # Unset variables that we do not need and which cause bugs (e.g. in
17550 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17551 # suppresses any "Segmentation fault" message there. '((' could
17552 # trigger a bug in pdksh 5.2.14.
17553 for as_var in BASH_ENV ENV MAIL MAILPATH
17554 do eval test x\${$as_var+set} = xset \
17555 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17571 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17572 # ----------------------------------------
17573 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17574 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17575 # script with STATUS, using 1 if that was 0.
17578 as_status=$1; test $as_status -eq 0 && as_status=1
17580 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17581 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17583 $as_echo "$as_me: error: $2" >&2
17584 as_fn_exit $as_status
17588 # as_fn_set_status STATUS
17589 # -----------------------
17590 # Set $? to STATUS, without forking.
17591 as_fn_set_status ()
17594 } # as_fn_set_status
17596 # as_fn_exit STATUS
17597 # -----------------
17598 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17602 as_fn_set_status $1
17608 # Portably unset VAR.
17611 { eval $1=; unset $1;}
17613 as_unset=as_fn_unset
17614 # as_fn_append VAR VALUE
17615 # ----------------------
17616 # Append the text in VALUE to the end of the definition contained in VAR. Take
17617 # advantage of any shell optimizations that allow amortized linear growth over
17618 # repeated appends, instead of the typical quadratic growth present in naive
17620 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17621 eval 'as_fn_append ()
17632 # as_fn_arith ARG...
17633 # ------------------
17634 # Perform arithmetic evaluation on the ARGs, and store the result in the
17635 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17636 # must be portable across $(()) and expr.
17637 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17638 eval 'as_fn_arith ()
17645 as_val=`expr "$@" || test $? -eq 1`
17650 if expr a : '\(a\)' >/dev/null 2>&1 &&
17651 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17657 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17658 as_basename=basename
17663 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17669 as_me=`$as_basename -- "$0" ||
17670 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17671 X"$0" : 'X\(//\)$' \| \
17672 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17674 sed '/^.*\/\([^/][^/]*\)\/*$/{
17688 # Avoid depending upon Character Ranges.
17689 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17690 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17691 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17692 as_cr_digits='0123456789'
17693 as_cr_alnum=$as_cr_Letters$as_cr_digits
17695 ECHO_C= ECHO_N= ECHO_T=
17696 case `echo -n x` in #(((((
17698 case `echo 'xy\c'` in
17699 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17701 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17708 rm -f conf$$ conf$$.exe conf$$.file
17709 if test -d conf$$.dir; then
17710 rm -f conf$$.dir/conf$$.file
17713 mkdir conf$$.dir 2>/dev/null
17715 if (echo >conf$$.file) 2>/dev/null; then
17716 if ln -s conf$$.file conf$$ 2>/dev/null; then
17718 # ... but there are two gotchas:
17719 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17720 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17721 # In both cases, we have to default to `cp -p'.
17722 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17724 elif ln conf$$.file conf$$ 2>/dev/null; then
17732 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17733 rmdir conf$$.dir 2>/dev/null
17738 # Create "$as_dir" as a directory, including parents if necessary.
17743 -*) as_dir=./$as_dir;;
17745 test -d "$as_dir" || eval $as_mkdir_p || {
17749 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17750 *) as_qdir=$as_dir;;
17752 as_dirs="'$as_qdir' $as_dirs"
17753 as_dir=`$as_dirname -- "$as_dir" ||
17754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17755 X"$as_dir" : 'X\(//\)[^/]' \| \
17756 X"$as_dir" : 'X\(//\)$' \| \
17757 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17758 $as_echo X"$as_dir" |
17759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17763 /^X\(\/\/\)[^/].*/{
17776 test -d "$as_dir" && break
17778 test -z "$as_dirs" || eval "mkdir $as_dirs"
17779 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17783 if mkdir -p . 2>/dev/null; then
17784 as_mkdir_p='mkdir -p "$as_dir"'
17786 test -d ./-p && rmdir ./-p
17790 if test -x / >/dev/null 2>&1; then
17791 as_test_x='test -x'
17793 if ls -dL / >/dev/null 2>&1; then
17800 if test -d "$1"; then
17806 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17807 ???[sx]*):;;*)false;;esac;fi
17811 as_executable_p=$as_test_x
17813 # Sed expression to map a string onto a valid CPP name.
17814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17816 # Sed expression to map a string onto a valid variable name.
17817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17821 ## ----------------------------------- ##
17822 ## Main body of $CONFIG_STATUS script. ##
17823 ## ----------------------------------- ##
17825 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828 # Save the log message, to keep $0 and so on meaningful, and to
17829 # report actual input values of CONFIG_FILES etc. instead of their
17830 # values after options handling.
17832 This file was extended by Automated Testing Framework $as_me 0.16, which was
17833 generated by GNU Autoconf 2.68. Invocation command line was
17835 CONFIG_FILES = $CONFIG_FILES
17836 CONFIG_HEADERS = $CONFIG_HEADERS
17837 CONFIG_LINKS = $CONFIG_LINKS
17838 CONFIG_COMMANDS = $CONFIG_COMMANDS
17841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17846 case $ac_config_files in *"
17847 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17850 case $ac_config_headers in *"
17851 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17856 # Files that config.status was made for.
17857 config_files="$ac_config_files"
17858 config_headers="$ac_config_headers"
17859 config_commands="$ac_config_commands"
17863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17865 \`$as_me' instantiates files and other configuration actions
17866 from templates according to the current configuration. Unless the files
17867 and actions are specified as TAGs, all are instantiated by default.
17869 Usage: $0 [OPTION]... [TAG]...
17871 -h, --help print this help, then exit
17872 -V, --version print version number and configuration settings, then exit
17873 --config print configuration, then exit
17874 -q, --quiet, --silent
17875 do not print progress messages
17876 -d, --debug don't remove temporary files
17877 --recheck update $as_me by reconfiguring in the same conditions
17878 --file=FILE[:TEMPLATE]
17879 instantiate the configuration file FILE
17880 --header=FILE[:TEMPLATE]
17881 instantiate the configuration header FILE
17883 Configuration files:
17886 Configuration headers:
17889 Configuration commands:
17892 Report bugs to <atf-devel@NetBSD.org>.
17893 Automated Testing Framework home page: <http://code.google.com/p/kyua/wiki/ATF>."
17896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17897 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17899 Automated Testing Framework config.status 0.16
17900 configured by $0, generated by GNU Autoconf 2.68,
17901 with options \\"\$ac_cs_config\\"
17903 Copyright (C) 2010 Free Software Foundation, Inc.
17904 This config.status script is free software; the Free Software Foundation
17905 gives unlimited permission to copy, distribute and modify it."
17912 test -n "\$AWK" || AWK=awk
17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916 # The default lists apply if the user does not specify any file.
17922 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17923 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17927 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17939 # Handling of the options.
17940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17942 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17943 $as_echo "$ac_cs_version"; exit ;;
17944 --config | --confi | --conf | --con | --co | --c )
17945 $as_echo "$ac_cs_config"; exit ;;
17946 --debug | --debu | --deb | --de | --d | -d )
17948 --file | --fil | --fi | --f )
17951 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17952 '') as_fn_error $? "missing file argument" ;;
17954 as_fn_append CONFIG_FILES " '$ac_optarg'"
17955 ac_need_defaults=false;;
17956 --header | --heade | --head | --hea )
17959 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17961 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17962 ac_need_defaults=false;;
17964 # Conflict between --help and --header
17965 as_fn_error $? "ambiguous option: \`$1'
17966 Try \`$0 --help' for more information.";;
17967 --help | --hel | -h )
17968 $as_echo "$ac_cs_usage"; exit ;;
17969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17970 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17973 # This is an error.
17974 -*) as_fn_error $? "unrecognized option: \`$1'
17975 Try \`$0 --help' for more information." ;;
17977 *) as_fn_append ac_config_targets " $1"
17978 ac_need_defaults=false ;;
17984 ac_configure_extra_args=
17986 if $ac_cs_silent; then
17988 ac_configure_extra_args="$ac_configure_extra_args --silent"
17992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993 if \$ac_cs_recheck; then
17994 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17996 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17997 CONFIG_SHELL='$SHELL'
17998 export CONFIG_SHELL
18003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18007 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18008 ## Running $as_me. ##
18014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18019 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18022 # The HP-UX ksh and POSIX shell print the target directory to stdout
18023 # if CDPATH is set.
18024 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18026 sed_quote_subst='$sed_quote_subst'
18027 double_quote_subst='$double_quote_subst'
18028 delay_variable_subst='$delay_variable_subst'
18029 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18030 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18031 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18032 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18033 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18034 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18035 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18036 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18037 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18038 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18039 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18040 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18041 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18042 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18043 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18044 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18045 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18046 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18047 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18048 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18049 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18050 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18051 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18052 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18053 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18054 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18055 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18056 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18057 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18058 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18059 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18060 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18061 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18062 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18063 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18064 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18065 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18066 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18067 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18068 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18069 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18070 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18071 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18072 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18073 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18074 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18075 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18076 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18077 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18078 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18079 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18080 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18081 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18082 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18083 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18084 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18085 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"`'
18086 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18087 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18088 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18089 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18090 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18091 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18092 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18093 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18094 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18095 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18096 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18097 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18098 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18099 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18100 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18101 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18102 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18103 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18104 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18105 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18106 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18107 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18108 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18109 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18110 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18111 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18112 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18113 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18114 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18115 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18116 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18117 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18118 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18119 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18120 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18121 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18122 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18123 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18124 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18125 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18126 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18127 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18128 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18129 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18130 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18131 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18132 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18133 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18134 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18135 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18136 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18137 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18138 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18139 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18140 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18141 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18142 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18143 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18144 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18145 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18146 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18147 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18148 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18149 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18150 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18151 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18152 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18153 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18154 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18155 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18156 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18157 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18158 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18159 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18160 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18161 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18162 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18163 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18164 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18165 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18166 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18167 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18168 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18169 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18170 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18171 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18172 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18173 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18174 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18175 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18176 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18177 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18178 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18179 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18180 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18181 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18182 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18183 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18184 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18185 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18186 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18187 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18188 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18189 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18190 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18191 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18192 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18193 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18194 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18195 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18196 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18197 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18198 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18199 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18200 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18201 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18202 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18203 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18204 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18205 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18206 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18207 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18208 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18209 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18210 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18211 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18212 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18215 LTCFLAGS='$LTCFLAGS'
18216 compiler='$compiler_DEFAULT'
18218 # A function that is used when there is no print builtin or printf.
18219 func_fallback_echo ()
18221 eval 'cat <<_LTECHO_EOF
18226 # Quote evaled strings.
18241 deplibs_check_method \
18246 sharedlib_from_linklib_cmd \
18249 archiver_list_spec \
18255 lt_cv_sys_global_symbol_pipe \
18256 lt_cv_sys_global_symbol_to_cdecl \
18257 lt_cv_sys_global_symbol_to_c_name_address \
18258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18259 nm_file_list_spec \
18260 lt_prog_compiler_no_builtin_flag \
18261 lt_prog_compiler_pic \
18262 lt_prog_compiler_wl \
18263 lt_prog_compiler_static \
18264 lt_cv_prog_compiler_c_o \
18273 export_dynamic_flag_spec \
18274 whole_archive_flag_spec \
18275 compiler_needs_object \
18277 allow_undefined_flag \
18278 no_undefined_flag \
18279 hardcode_libdir_flag_spec \
18280 hardcode_libdir_separator \
18284 variables_saved_for_relink \
18286 library_names_spec \
18288 install_override_mode \
18292 compiler_lib_search_dirs \
18297 compiler_lib_search_path \
18301 lt_prog_compiler_no_builtin_flag_CXX \
18302 lt_prog_compiler_pic_CXX \
18303 lt_prog_compiler_wl_CXX \
18304 lt_prog_compiler_static_CXX \
18305 lt_cv_prog_compiler_c_o_CXX \
18306 export_dynamic_flag_spec_CXX \
18307 whole_archive_flag_spec_CXX \
18308 compiler_needs_object_CXX \
18310 allow_undefined_flag_CXX \
18311 no_undefined_flag_CXX \
18312 hardcode_libdir_flag_spec_CXX \
18313 hardcode_libdir_separator_CXX \
18314 exclude_expsyms_CXX \
18315 include_expsyms_CXX \
18316 file_list_spec_CXX \
18317 compiler_lib_search_dirs_CXX \
18318 predep_objects_CXX \
18319 postdep_objects_CXX \
18322 compiler_lib_search_path_CXX; do
18323 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18324 *[\\\\\\\`\\"\\\$]*)
18325 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18328 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18333 # Double-quote double-evaled strings.
18334 for var in reload_cmds \
18335 old_postinstall_cmds \
18336 old_postuninstall_cmds \
18338 extract_expsyms_cmds \
18339 old_archive_from_new_cmds \
18340 old_archive_from_expsyms_cmds \
18342 archive_expsym_cmds \
18344 module_expsym_cmds \
18345 export_symbols_cmds \
18349 postuninstall_cmds \
18351 sys_lib_search_path_spec \
18352 sys_lib_dlsearch_path_spec \
18354 old_archive_cmds_CXX \
18355 old_archive_from_new_cmds_CXX \
18356 old_archive_from_expsyms_cmds_CXX \
18358 archive_expsym_cmds_CXX \
18360 module_expsym_cmds_CXX \
18361 export_symbols_cmds_CXX \
18363 postlink_cmds_CXX; do
18364 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18365 *[\\\\\\\`\\"\\\$]*)
18366 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18369 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18374 ac_aux_dir='$ac_aux_dir'
18375 xsi_shell='$xsi_shell'
18376 lt_shell_append='$lt_shell_append'
18378 # See if we are running on zsh, and set the options which allow our
18379 # commands through without removal of \ escapes INIT.
18380 if test -n "\${ZSH_VERSION+set}" ; then
18381 setopt NO_GLOB_SUBST
18387 TIMESTAMP='$TIMESTAMP'
18398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18400 # Handling of arguments.
18401 for ac_config_target in $ac_config_targets
18403 case $ac_config_target in
18404 "bconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS bconfig.h" ;;
18405 "bootstrap/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS bootstrap/atconfig" ;;
18406 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18407 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18408 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18409 "atf-c/defs.h") CONFIG_FILES="$CONFIG_FILES atf-c/defs.h" ;;
18411 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18416 # If the user did not use the arguments to specify the items to instantiate,
18417 # then the envvar interface is used. Set only those that are not.
18418 # We use the long form for the default assignment because of an extremely
18419 # bizarre bug on SunOS 4.1.3.
18420 if $ac_need_defaults; then
18421 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18423 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18426 # Have a temporary directory for convenience. Make it in the build tree
18427 # simply because there is no reason against having it here, and in addition,
18428 # creating and moving files from /tmp can sometimes cause problems.
18429 # Hook for its removal unless debugging.
18430 # Note that there is a small window in which the directory will not be cleaned:
18431 # after its creation but before its name has been assigned to `$tmp'.
18435 trap 'exit_status=$?
18436 : "${ac_tmp:=$tmp}"
18437 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18439 trap 'as_fn_exit 1' 1 2 13 15
18441 # Create a (secure) tmp directory for tmp files.
18444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18448 tmp=./conf$$-$RANDOM
18449 (umask 077 && mkdir "$tmp")
18450 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18453 # Set up the scripts for CONFIG_FILES section.
18454 # No need to generate them if there are no CONFIG_FILES.
18455 # This happens for instance with `./config.status config.h'.
18456 if test -n "$CONFIG_FILES"; then
18459 ac_cr=`echo X | tr X '\015'`
18460 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18461 # But we know of no other shell where ac_cr would be empty at this
18462 # point, so we can use a bashism as a fallback.
18463 if test "x$ac_cr" = x; then
18464 eval ac_cr=\$\'\\r\'
18466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18470 ac_cs_awk_cr=$ac_cr
18473 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18478 echo "cat >conf$$subs.awk <<_ACEOF" &&
18479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18481 } >conf$$subs.sh ||
18482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18483 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18485 for ac_last_try in false false false false false :; do
18486 . ./conf$$subs.sh ||
18487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18489 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18490 if test $ac_delim_n = $ac_delim_num; then
18492 elif $ac_last_try; then
18493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18498 rm -f conf$$subs.sh
18500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18501 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18505 s/^/S["/; s/!.*/"]=/
18515 s/\(.\{148\}\)..*/\1/
18517 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18529 s/\(.\{148\}\)..*/\1/
18531 s/["\\]/\\&/g; s/^/"/; s/$/"/
18535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18540 ' <conf$$subs.awk | sed '
18545 ' >>$CONFIG_STATUS || ac_write_fail=1
18546 rm -f conf$$subs.awk
18547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18550 for (key in S) S_is_set[key] = 1
18556 nfields = split(line, field, "@")
18558 len = length(field[1])
18559 for (i = 2; i < nfields; i++) {
18561 keylen = length(key)
18562 if (S_is_set[key]) {
18564 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18565 len += length(value) + length(field[++i])
18576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18581 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18587 # trailing colons and then remove the whole line if VPATH becomes empty
18588 # (actually we leave an empty line to preserve line numbers).
18589 if test "x$srcdir" = x.; then
18590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18609 fi # test -n "$CONFIG_FILES"
18611 # Set up the scripts for CONFIG_HEADERS section.
18612 # No need to generate them if there are no CONFIG_HEADERS.
18613 # This happens for instance with `./config.status Makefile'.
18614 if test -n "$CONFIG_HEADERS"; then
18615 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18619 # Transform confdefs.h into an awk script `defines.awk', embedded as
18620 # here-document in config.status, that substitutes the proper values into
18621 # config.h.in to produce config.h.
18623 # Create a delimiter string that does not exist in confdefs.h, to ease
18624 # handling of long lines.
18626 for ac_last_try in false false :; do
18627 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18628 if test -z "$ac_tt"; then
18630 elif $ac_last_try; then
18631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18637 # For the awk script, D is an array of macro values keyed by name,
18638 # likewise P contains macro parameters if any. Preserve backslash
18639 # newline sequences.
18641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18643 s/.\{148\}/&'"$ac_delim"'/g
18646 s/^[ ]*#[ ]*define[ ][ ]*/ /
18653 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18655 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18660 D["\1"]=" \3\\\\\\n"\\/p
18662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18667 s/.\{148\}/&'"$ac_delim"'/g
18672 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18675 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18677 ' <confdefs.h | sed '
18678 s/'"$ac_delim"'/"\\\
18679 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18682 for (key in D) D_is_set[key] = 1
18685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18687 split(line, arg, " ")
18688 if (arg[1] == "#") {
18692 defundef = substr(arg[1], 2)
18695 split(mac1, mac2, "(") #)
18697 prefix = substr(line, 1, index(line, defundef) - 1)
18698 if (D_is_set[macro]) {
18699 # Preserve the white space surrounding the "#".
18700 print prefix "define", macro P[macro] D[macro]
18703 # Replace #undef with comments. This is necessary, for example,
18704 # in the case of _POSIX_SOURCE, which is predefined and required
18705 # on some systems where configure will not decide to define it.
18706 if (defundef == "undef") {
18707 print "/*", prefix defundef, macro, "*/"
18715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18717 fi # test -n "$CONFIG_HEADERS"
18720 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18725 :[FHLC]) ac_mode=$ac_tag; continue;;
18727 case $ac_mode$ac_tag in
18729 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18730 :[FH]-) ac_tag=-:-;;
18731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18748 -) ac_f="$ac_tmp/stdin";;
18749 *) # Look for the file first in the build tree, then in the source tree
18750 # (if the path is not absolute). The absolute path cannot be DOS-style,
18751 # because $ac_f cannot contain `:'.
18755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18757 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18759 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18760 as_fn_append ac_file_inputs " '$ac_f'"
18763 # Let's still pretend it is `configure' which instantiates (i.e., don't
18764 # use $as_me), people would be surprised to read:
18765 # /* config.h. Generated by config.status. */
18766 configure_input='Generated from '`
18767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18769 if test x"$ac_file" != x-; then
18770 configure_input="$ac_file. $configure_input"
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18772 $as_echo "$as_me: creating $ac_file" >&6;}
18774 # Neutralize special characters interpreted by sed in replacement strings.
18775 case $configure_input in #(
18776 *\&* | *\|* | *\\* )
18777 ac_sed_conf_input=`$as_echo "$configure_input" |
18778 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18779 *) ac_sed_conf_input=$configure_input;;
18783 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18789 ac_dir=`$as_dirname -- "$ac_file" ||
18790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18791 X"$ac_file" : 'X\(//\)[^/]' \| \
18792 X"$ac_file" : 'X\(//\)$' \| \
18793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18794 $as_echo X"$ac_file" |
18795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18799 /^X\(\/\/\)[^/].*/{
18812 as_dir="$ac_dir"; as_fn_mkdir_p
18816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18818 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18819 # A ".." for each directory in $ac_dir_suffix.
18820 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18821 case $ac_top_builddir_sub in
18822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18826 ac_abs_top_builddir=$ac_pwd
18827 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18828 # for backward compatibility:
18829 ac_top_builddir=$ac_top_build_prefix
18832 .) # We are building in place.
18834 ac_top_srcdir=$ac_top_builddir_sub
18835 ac_abs_top_srcdir=$ac_pwd ;;
18836 [\\/]* | ?:[\\/]* ) # Absolute name.
18837 ac_srcdir=$srcdir$ac_dir_suffix;
18838 ac_top_srcdir=$srcdir
18839 ac_abs_top_srcdir=$srcdir ;;
18840 *) # Relative name.
18841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18842 ac_top_srcdir=$ac_top_build_prefix$srcdir
18843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18858 ac_MKDIR_P=$MKDIR_P
18860 [\\/$]* | ?:[\\/]* ) ;;
18861 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18866 # If the template does not know about datarootdir, expand it.
18867 # FIXME: This hack should be removed a few years after 2.60.
18868 ac_datarootdir_hack=; ac_datarootdir_seen=
18879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18880 *datarootdir*) ac_datarootdir_seen=yes;;
18881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18883 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18886 ac_datarootdir_hack='
18887 s&@datadir@&$datadir&g
18888 s&@docdir@&$docdir&g
18889 s&@infodir@&$infodir&g
18890 s&@localedir@&$localedir&g
18891 s&@mandir@&$mandir&g
18892 s&\\\${datarootdir}&$datarootdir&g' ;;
18896 # Neutralize VPATH when `$srcdir' = `.'.
18897 # Shell code in configure.ac might set extrasub.
18898 # FIXME: do we really want to maintain this feature?
18899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18900 ac_sed_extra="$ac_vpsub
18903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18906 s|@configure_input@|$ac_sed_conf_input|;t t
18907 s&@top_builddir@&$ac_top_builddir_sub&;t t
18908 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18909 s&@srcdir@&$ac_srcdir&;t t
18910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18911 s&@top_srcdir@&$ac_top_srcdir&;t t
18912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18913 s&@builddir@&$ac_builddir&;t t
18914 s&@abs_builddir@&$ac_abs_builddir&;t t
18915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18916 s&@INSTALL@&$ac_INSTALL&;t t
18917 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18918 $ac_datarootdir_hack
18920 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18921 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18924 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18926 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18928 which seems to be undefined. Please make sure it is defined" >&5
18929 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18930 which seems to be undefined. Please make sure it is defined" >&2;}
18932 rm -f "$ac_tmp/stdin"
18934 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18935 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18943 if test x"$ac_file" != x-; then
18945 $as_echo "/* $configure_input */" \
18946 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18947 } >"$ac_tmp/config.h" \
18948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18949 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18951 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18954 mv "$ac_tmp/config.h" "$ac_file" \
18955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18958 $as_echo "/* $configure_input */" \
18959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18960 || as_fn_error $? "could not create -" "$LINENO" 5
18962 # Compute "$ac_file"'s index in $config_headers.
18965 for _am_header in $config_headers :; do
18966 case $_am_header in
18967 $_am_arg | $_am_arg:* )
18970 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18973 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18974 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18975 X"$_am_arg" : 'X\(//\)[^/]' \| \
18976 X"$_am_arg" : 'X\(//\)$' \| \
18977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18978 $as_echo X"$_am_arg" |
18979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18983 /^X\(\/\/\)[^/].*/{
18995 s/.*/./; q'`/stamp-h$_am_stamp_count
18998 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18999 $as_echo "$as_me: executing $ac_file commands" >&6;}
19004 case $ac_file$ac_mode in
19005 "bootstrap/atconfig":C) cat >bootstrap/atconfig <<ATEOF
19006 # Configurable variable values for building test suites.
19008 # Copyright (C) 2010 Free Software Foundation, Inc.
19010 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
19011 at_testdir='bootstrap'
19012 abs_builddir='$ac_abs_builddir'
19013 at_srcdir='$ac_srcdir'
19014 abs_srcdir='$ac_abs_srcdir'
19015 at_top_srcdir='$ac_top_srcdir'
19016 abs_top_srcdir='$ac_abs_top_srcdir'
19017 at_top_build_prefix='$ac_top_build_prefix'
19018 abs_top_builddir='$ac_abs_top_builddir'
19020 # Backward compatibility with Autotest <= 2.59b:
19021 at_top_builddir=\$at_top_build_prefix
19023 AUTOTEST_PATH='bootstrap'
19025 SHELL=\${CONFIG_SHELL-'$SHELL'}
19028 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19029 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19030 # are listed without --file. Let's play safe and only enable the eval
19031 # if we detect the quoting.
19032 case $CONFIG_FILES in
19033 *\'*) eval set x "$CONFIG_FILES" ;;
19034 *) set x $CONFIG_FILES ;;
19039 # Strip MF so we end up with the name of the file.
19040 mf=`echo "$mf" | sed -e 's/:.*$//'`
19041 # Check whether this is an Automake generated Makefile or not.
19042 # We used to match only the files named `Makefile.in', but
19043 # some people rename them; so instead we look at the file content.
19044 # Grep'ing the first line is not enough: some people post-process
19045 # each Makefile.in and add a new line on top of each file to say so.
19046 # Grep'ing the whole file is not good either: AIX grep has a line
19047 # limit of 2048, but all sed's we know have understand at least 4000.
19048 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19049 dirpart=`$as_dirname -- "$mf" ||
19050 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19051 X"$mf" : 'X\(//\)[^/]' \| \
19052 X"$mf" : 'X\(//\)$' \| \
19053 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19059 /^X\(\/\/\)[^/].*/{
19075 # Extract the definition of DEPDIR, am__include, and am__quote
19076 # from the Makefile without running `make'.
19077 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19078 test -z "$DEPDIR" && continue
19079 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19080 test -z "am__include" && continue
19081 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19082 # When using ansi2knr, U may be empty or an underscore; expand it
19083 U=`sed -n 's/^U = //p' < "$mf"`
19084 # Find all dependency output files, they are included files with
19085 # $(DEPDIR) in their names. We invoke sed twice because it is the
19086 # simplest approach to changing $(DEPDIR) to its actual value in the
19088 for file in `sed -n "
19089 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19090 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19091 # Make sure the directory exists.
19092 test -f "$dirpart/$file" && continue
19093 fdir=`$as_dirname -- "$file" ||
19094 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19095 X"$file" : 'X\(//\)[^/]' \| \
19096 X"$file" : 'X\(//\)$' \| \
19097 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19098 $as_echo X"$file" |
19099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19103 /^X\(\/\/\)[^/].*/{
19116 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19117 # echo "creating $dirpart/$file"
19118 echo '# dummy' > "$dirpart/$file"
19125 # See if we are running on zsh, and set the options which allow our
19126 # commands through without removal of \ escapes.
19127 if test -n "${ZSH_VERSION+set}" ; then
19128 setopt NO_GLOB_SUBST
19131 cfgfile="${ofile}T"
19132 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19135 cat <<_LT_EOF >> "$cfgfile"
19138 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19139 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19141 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19143 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19144 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19146 # Written by Gordon Matzigkeit, 1996
19148 # This file is part of GNU Libtool.
19150 # GNU Libtool is free software; you can redistribute it and/or
19151 # modify it under the terms of the GNU General Public License as
19152 # published by the Free Software Foundation; either version 2 of
19153 # the License, or (at your option) any later version.
19155 # As a special exception to the GNU General Public License,
19156 # if you distribute this file as part of a program or library that
19157 # is built using GNU Libtool, you may include this file under the
19158 # same distribution terms that you use for the rest of that program.
19160 # GNU Libtool is distributed in the hope that it will be useful,
19161 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19163 # GNU General Public License for more details.
19165 # You should have received a copy of the GNU General Public License
19166 # along with GNU Libtool; see the file COPYING. If not, a copy
19167 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19168 # obtained by writing to the Free Software Foundation, Inc.,
19169 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19172 # The names of the tagged configurations supported by this script.
19173 available_tags="CXX "
19175 # ### BEGIN LIBTOOL CONFIG
19177 # Which release of libtool.m4 was used?
19178 macro_version=$macro_version
19179 macro_revision=$macro_revision
19181 # Whether or not to build shared libraries.
19182 build_libtool_libs=$enable_shared
19184 # Whether or not to build static libraries.
19185 build_old_libs=$enable_static
19187 # What type of objects to build.
19190 # Whether or not to optimize for fast installation.
19191 fast_install=$enable_fast_install
19193 # Shell to use when invoking shell scripts.
19196 # An echo program that protects backslashes.
19199 # The PATH separator for the build system.
19200 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19203 host_alias=$host_alias
19207 # The build system.
19208 build_alias=$build_alias
19212 # A sed program that does not truncate output.
19215 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19216 Xsed="\$SED -e 1s/^X//"
19218 # A grep program that handles long lines.
19224 # A literal string matcher.
19227 # A BSD- or MS-compatible name lister.
19230 # Whether we need soft or hard links.
19233 # What is the maximum length of a command?
19234 max_cmd_len=$max_cmd_len
19236 # Object file suffix (normally "o").
19239 # Executable file suffix (normally "").
19242 # whether the shell understands "unset".
19245 # turn spaces into newlines.
19248 # turn newlines into spaces.
19251 # convert \$build file names to \$host format.
19252 to_host_file_cmd=$lt_cv_to_host_file_cmd
19254 # convert \$build files to toolchain format.
19255 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19257 # An object symbol dumper.
19258 OBJDUMP=$lt_OBJDUMP
19260 # Method to check whether dependent libraries are shared objects.
19261 deplibs_check_method=$lt_deplibs_check_method
19263 # Command to use when deplibs_check_method = "file_magic".
19264 file_magic_cmd=$lt_file_magic_cmd
19266 # How to find potential files when deplibs_check_method = "file_magic".
19267 file_magic_glob=$lt_file_magic_glob
19269 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19270 want_nocaseglob=$lt_want_nocaseglob
19272 # DLL creation program.
19273 DLLTOOL=$lt_DLLTOOL
19275 # Command to associate shared and link libraries.
19276 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19281 # Flags to create an archive.
19282 AR_FLAGS=$lt_AR_FLAGS
19284 # How to feed a file listing to the archiver.
19285 archiver_list_spec=$lt_archiver_list_spec
19287 # A symbol stripping program.
19290 # Commands used to install an old-style archive.
19292 old_postinstall_cmds=$lt_old_postinstall_cmds
19293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19295 # Whether to use a lock for old archive extraction.
19296 lock_old_archive_extraction=$lock_old_archive_extraction
19301 # LTCC compiler flags.
19302 LTCFLAGS=$lt_CFLAGS
19304 # Take the output of nm and produce a listing of raw symbols and C names.
19305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19307 # Transform the output of nm in a proper C declaration.
19308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19310 # Transform the output of nm in a C name address pair.
19311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19313 # Transform the output of nm in a C name address pair when lib prefix is needed.
19314 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19316 # Specify filename containing input files for \$NM.
19317 nm_file_list_spec=$lt_nm_file_list_spec
19319 # The root where to search for dependent libraries,and in which our libraries should be installed.
19320 lt_sysroot=$lt_sysroot
19322 # The name of the directory that contains temporary libtool files.
19325 # Used to examine libraries when file_magic_cmd begins with "file".
19326 MAGIC_CMD=$MAGIC_CMD
19328 # Must we lock files when doing compilation?
19329 need_locks=$lt_need_locks
19332 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19334 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19335 DSYMUTIL=$lt_DSYMUTIL
19337 # Tool to change global to local symbols on Mac OS X.
19340 # Tool to manipulate fat objects and archives on Mac OS X.
19343 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19346 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19347 OTOOL64=$lt_OTOOL64
19349 # Old archive suffix (normally "a").
19352 # Shared library suffix (normally ".so").
19353 shrext_cmds=$lt_shrext_cmds
19355 # The commands to extract the exported symbol list from a shared archive.
19356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19358 # Variables whose values should be saved in libtool wrapper scripts and
19359 # restored at link time.
19360 variables_saved_for_relink=$lt_variables_saved_for_relink
19362 # Do we need the "lib" prefix for modules?
19363 need_lib_prefix=$need_lib_prefix
19365 # Do we need a version for libraries?
19366 need_version=$need_version
19368 # Library versioning type.
19369 version_type=$version_type
19371 # Shared library runtime path variable.
19372 runpath_var=$runpath_var
19374 # Shared library path variable.
19375 shlibpath_var=$shlibpath_var
19377 # Is shlibpath searched before the hard-coded library search path?
19378 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19380 # Format of library name prefix.
19381 libname_spec=$lt_libname_spec
19383 # List of archive names. First name is the real one, the rest are links.
19384 # The last name is the one that the linker finds with -lNAME
19385 library_names_spec=$lt_library_names_spec
19387 # The coded name of the library, if different from the real name.
19388 soname_spec=$lt_soname_spec
19390 # Permission mode override for installation of shared libraries.
19391 install_override_mode=$lt_install_override_mode
19393 # Command to use after installation of a shared archive.
19394 postinstall_cmds=$lt_postinstall_cmds
19396 # Command to use after uninstallation of a shared archive.
19397 postuninstall_cmds=$lt_postuninstall_cmds
19399 # Commands used to finish a libtool library installation in a directory.
19400 finish_cmds=$lt_finish_cmds
19402 # As "finish_cmds", except a single script fragment to be evaled but
19404 finish_eval=$lt_finish_eval
19406 # Whether we should hardcode library paths into libraries.
19407 hardcode_into_libs=$hardcode_into_libs
19409 # Compile-time system search path for libraries.
19410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19412 # Run-time system search path for libraries.
19413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19415 # Whether dlopen is supported.
19416 dlopen_support=$enable_dlopen
19418 # Whether dlopen of programs is supported.
19419 dlopen_self=$enable_dlopen_self
19421 # Whether dlopen of statically linked programs is supported.
19422 dlopen_self_static=$enable_dlopen_self_static
19424 # Commands to strip libraries.
19425 old_striplib=$lt_old_striplib
19426 striplib=$lt_striplib
19429 # The linker used to build libraries.
19432 # How to create reloadable object files.
19433 reload_flag=$lt_reload_flag
19434 reload_cmds=$lt_reload_cmds
19436 # Commands used to build an old-style archive.
19437 old_archive_cmds=$lt_old_archive_cmds
19439 # A language specific compiler.
19442 # Is the compiler the GNU compiler?
19445 # Compiler flag to turn off builtin functions.
19446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19448 # Additional compiler flags for building library objects.
19449 pic_flag=$lt_lt_prog_compiler_pic
19451 # How to pass a linker flag through the compiler.
19452 wl=$lt_lt_prog_compiler_wl
19454 # Compiler flag to prevent dynamic linking.
19455 link_static_flag=$lt_lt_prog_compiler_static
19457 # Does compiler simultaneously support -c and -o options?
19458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19460 # Whether or not to add -lc for building shared libraries.
19461 build_libtool_need_lc=$archive_cmds_need_lc
19463 # Whether or not to disallow shared libs when runtime libs are static.
19464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19466 # Compiler flag to allow reflexive dlopens.
19467 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19469 # Compiler flag to generate shared objects directly from archives.
19470 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19472 # Whether the compiler copes with passing no objects directly.
19473 compiler_needs_object=$lt_compiler_needs_object
19475 # Create an old-style archive from a shared archive.
19476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19478 # Create a temporary old-style archive to link instead of a shared archive.
19479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19481 # Commands used to build a shared archive.
19482 archive_cmds=$lt_archive_cmds
19483 archive_expsym_cmds=$lt_archive_expsym_cmds
19485 # Commands used to build a loadable module if different from building
19486 # a shared archive.
19487 module_cmds=$lt_module_cmds
19488 module_expsym_cmds=$lt_module_expsym_cmds
19490 # Whether we are building with GNU ld or not.
19491 with_gnu_ld=$lt_with_gnu_ld
19493 # Flag that allows shared libraries with undefined symbols to be built.
19494 allow_undefined_flag=$lt_allow_undefined_flag
19496 # Flag that enforces no undefined symbols.
19497 no_undefined_flag=$lt_no_undefined_flag
19499 # Flag to hardcode \$libdir into a binary during linking.
19500 # This must work even if \$libdir does not exist
19501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19503 # Whether we need a single "-rpath" flag with a separated argument.
19504 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19506 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19507 # DIR into the resulting binary.
19508 hardcode_direct=$hardcode_direct
19510 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19511 # DIR into the resulting binary and the resulting library dependency is
19512 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19513 # library is relocated.
19514 hardcode_direct_absolute=$hardcode_direct_absolute
19516 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19517 # into the resulting binary.
19518 hardcode_minus_L=$hardcode_minus_L
19520 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19521 # into the resulting binary.
19522 hardcode_shlibpath_var=$hardcode_shlibpath_var
19524 # Set to "yes" if building a shared library automatically hardcodes DIR
19525 # into the library and all subsequent libraries and executables linked
19527 hardcode_automatic=$hardcode_automatic
19529 # Set to yes if linker adds runtime paths of dependent libraries
19530 # to runtime path list.
19531 inherit_rpath=$inherit_rpath
19533 # Whether libtool must link a program against all its dependency libraries.
19534 link_all_deplibs=$link_all_deplibs
19536 # Set to "yes" if exported symbols are required.
19537 always_export_symbols=$always_export_symbols
19539 # The commands to list exported symbols.
19540 export_symbols_cmds=$lt_export_symbols_cmds
19542 # Symbols that should not be listed in the preloaded symbols.
19543 exclude_expsyms=$lt_exclude_expsyms
19545 # Symbols that must always be exported.
19546 include_expsyms=$lt_include_expsyms
19548 # Commands necessary for linking programs (against libraries) with templates.
19549 prelink_cmds=$lt_prelink_cmds
19551 # Commands necessary for finishing linking programs.
19552 postlink_cmds=$lt_postlink_cmds
19554 # Specify filename containing input files.
19555 file_list_spec=$lt_file_list_spec
19557 # How to hardcode a shared library path into an executable.
19558 hardcode_action=$hardcode_action
19560 # The directories searched by this compiler when creating a shared library.
19561 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19563 # Dependencies to place before and after the objects being linked to
19564 # create a shared library.
19565 predep_objects=$lt_predep_objects
19566 postdep_objects=$lt_postdep_objects
19567 predeps=$lt_predeps
19568 postdeps=$lt_postdeps
19570 # The library search path used internally by the compiler when linking
19571 # a shared library.
19572 compiler_lib_search_path=$lt_compiler_lib_search_path
19574 # ### END LIBTOOL CONFIG
19580 cat <<\_LT_EOF >> "$cfgfile"
19581 # AIX sometimes has problems with the GCC collect2 program. For some
19582 # reason, if we set the COLLECT_NAMES environment variable, the problems
19583 # vanish in a puff of smoke.
19584 if test "X${COLLECT_NAMES+set}" != Xset; then
19586 export COLLECT_NAMES
19593 ltmain="$ac_aux_dir/ltmain.sh"
19596 # We use sed instead of cat because bash on DJGPP gets confused if
19597 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19598 # text mode, it properly converts lines to CR/LF. This bash problem
19599 # is reportedly fixed, but why not run on old versions too?
19600 sed '$q' "$ltmain" >> "$cfgfile" \
19601 || (rm -f "$cfgfile"; exit 1)
19603 if test x"$xsi_shell" = xyes; then
19604 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19608 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19609 \ * ) func_dirname_result="${3}" ;;\
19611 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19612 && mv -f "$cfgfile.tmp" "$cfgfile" \
19613 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19614 test 0 -eq $? || _lt_function_replace_fail=:
19617 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19620 \ func_basename_result="${1##*/}"\
19621 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19622 && mv -f "$cfgfile.tmp" "$cfgfile" \
19623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19624 test 0 -eq $? || _lt_function_replace_fail=:
19627 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19628 func_dirname_and_basename ()\
19631 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19632 \ * ) func_dirname_result="${3}" ;;\
19634 \ func_basename_result="${1##*/}"\
19635 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19636 && mv -f "$cfgfile.tmp" "$cfgfile" \
19637 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19638 test 0 -eq $? || _lt_function_replace_fail=:
19641 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19644 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19645 \ # positional parameters, so assign one to ordinary parameter first.\
19646 \ func_stripname_result=${3}\
19647 \ func_stripname_result=${func_stripname_result#"${1}"}\
19648 \ func_stripname_result=${func_stripname_result%"${2}"}\
19649 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19650 && mv -f "$cfgfile.tmp" "$cfgfile" \
19651 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19652 test 0 -eq $? || _lt_function_replace_fail=:
19655 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19656 func_split_long_opt ()\
19658 \ func_split_long_opt_name=${1%%=*}\
19659 \ func_split_long_opt_arg=${1#*=}\
19660 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19661 && mv -f "$cfgfile.tmp" "$cfgfile" \
19662 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19663 test 0 -eq $? || _lt_function_replace_fail=:
19666 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19667 func_split_short_opt ()\
19669 \ func_split_short_opt_arg=${1#??}\
19670 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19671 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19672 && mv -f "$cfgfile.tmp" "$cfgfile" \
19673 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19674 test 0 -eq $? || _lt_function_replace_fail=:
19677 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19681 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19682 \ *) func_lo2o_result=${1} ;;\
19684 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19685 && mv -f "$cfgfile.tmp" "$cfgfile" \
19686 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19687 test 0 -eq $? || _lt_function_replace_fail=:
19690 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19693 func_xform_result=${1%.*}.lo\
19694 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19695 && mv -f "$cfgfile.tmp" "$cfgfile" \
19696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19697 test 0 -eq $? || _lt_function_replace_fail=:
19700 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19703 func_arith_result=$(( $* ))\
19704 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19705 && mv -f "$cfgfile.tmp" "$cfgfile" \
19706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19707 test 0 -eq $? || _lt_function_replace_fail=:
19710 sed -e '/^func_len ()$/,/^} # func_len /c\
19713 func_len_result=${#1}\
19714 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19715 && mv -f "$cfgfile.tmp" "$cfgfile" \
19716 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19717 test 0 -eq $? || _lt_function_replace_fail=:
19721 if test x"$lt_shell_append" = xyes; then
19722 sed -e '/^func_append ()$/,/^} # func_append /c\
19725 eval "${1}+=\\${2}"\
19726 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19727 && mv -f "$cfgfile.tmp" "$cfgfile" \
19728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19729 test 0 -eq $? || _lt_function_replace_fail=:
19732 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19733 func_append_quoted ()\
19735 \ func_quote_for_eval "${2}"\
19736 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19737 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19738 && mv -f "$cfgfile.tmp" "$cfgfile" \
19739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19740 test 0 -eq $? || _lt_function_replace_fail=:
19743 # Save a `func_append' function call where possible by direct use of '+='
19744 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19745 && mv -f "$cfgfile.tmp" "$cfgfile" \
19746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19747 test 0 -eq $? || _lt_function_replace_fail=:
19749 # Save a `func_append' function call even when '+=' is not available
19750 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19751 && mv -f "$cfgfile.tmp" "$cfgfile" \
19752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19753 test 0 -eq $? || _lt_function_replace_fail=:
19756 if test x"$_lt_function_replace_fail" = x":"; then
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19758 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19762 mv -f "$cfgfile" "$ofile" ||
19763 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19767 cat <<_LT_EOF >> "$ofile"
19769 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19771 # The linker used to build libraries.
19774 # How to create reloadable object files.
19775 reload_flag=$lt_reload_flag_CXX
19776 reload_cmds=$lt_reload_cmds_CXX
19778 # Commands used to build an old-style archive.
19779 old_archive_cmds=$lt_old_archive_cmds_CXX
19781 # A language specific compiler.
19782 CC=$lt_compiler_CXX
19784 # Is the compiler the GNU compiler?
19787 # Compiler flag to turn off builtin functions.
19788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19790 # Additional compiler flags for building library objects.
19791 pic_flag=$lt_lt_prog_compiler_pic_CXX
19793 # How to pass a linker flag through the compiler.
19794 wl=$lt_lt_prog_compiler_wl_CXX
19796 # Compiler flag to prevent dynamic linking.
19797 link_static_flag=$lt_lt_prog_compiler_static_CXX
19799 # Does compiler simultaneously support -c and -o options?
19800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19802 # Whether or not to add -lc for building shared libraries.
19803 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19805 # Whether or not to disallow shared libs when runtime libs are static.
19806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19808 # Compiler flag to allow reflexive dlopens.
19809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19811 # Compiler flag to generate shared objects directly from archives.
19812 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19814 # Whether the compiler copes with passing no objects directly.
19815 compiler_needs_object=$lt_compiler_needs_object_CXX
19817 # Create an old-style archive from a shared archive.
19818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19820 # Create a temporary old-style archive to link instead of a shared archive.
19821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19823 # Commands used to build a shared archive.
19824 archive_cmds=$lt_archive_cmds_CXX
19825 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19827 # Commands used to build a loadable module if different from building
19828 # a shared archive.
19829 module_cmds=$lt_module_cmds_CXX
19830 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19832 # Whether we are building with GNU ld or not.
19833 with_gnu_ld=$lt_with_gnu_ld_CXX
19835 # Flag that allows shared libraries with undefined symbols to be built.
19836 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19838 # Flag that enforces no undefined symbols.
19839 no_undefined_flag=$lt_no_undefined_flag_CXX
19841 # Flag to hardcode \$libdir into a binary during linking.
19842 # This must work even if \$libdir does not exist
19843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19845 # Whether we need a single "-rpath" flag with a separated argument.
19846 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19848 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19849 # DIR into the resulting binary.
19850 hardcode_direct=$hardcode_direct_CXX
19852 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19853 # DIR into the resulting binary and the resulting library dependency is
19854 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19855 # library is relocated.
19856 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19858 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19859 # into the resulting binary.
19860 hardcode_minus_L=$hardcode_minus_L_CXX
19862 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19863 # into the resulting binary.
19864 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19866 # Set to "yes" if building a shared library automatically hardcodes DIR
19867 # into the library and all subsequent libraries and executables linked
19869 hardcode_automatic=$hardcode_automatic_CXX
19871 # Set to yes if linker adds runtime paths of dependent libraries
19872 # to runtime path list.
19873 inherit_rpath=$inherit_rpath_CXX
19875 # Whether libtool must link a program against all its dependency libraries.
19876 link_all_deplibs=$link_all_deplibs_CXX
19878 # Set to "yes" if exported symbols are required.
19879 always_export_symbols=$always_export_symbols_CXX
19881 # The commands to list exported symbols.
19882 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19884 # Symbols that should not be listed in the preloaded symbols.
19885 exclude_expsyms=$lt_exclude_expsyms_CXX
19887 # Symbols that must always be exported.
19888 include_expsyms=$lt_include_expsyms_CXX
19890 # Commands necessary for linking programs (against libraries) with templates.
19891 prelink_cmds=$lt_prelink_cmds_CXX
19893 # Commands necessary for finishing linking programs.
19894 postlink_cmds=$lt_postlink_cmds_CXX
19896 # Specify filename containing input files.
19897 file_list_spec=$lt_file_list_spec_CXX
19899 # How to hardcode a shared library path into an executable.
19900 hardcode_action=$hardcode_action_CXX
19902 # The directories searched by this compiler when creating a shared library.
19903 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19905 # Dependencies to place before and after the objects being linked to
19906 # create a shared library.
19907 predep_objects=$lt_predep_objects_CXX
19908 postdep_objects=$lt_postdep_objects_CXX
19909 predeps=$lt_predeps_CXX
19910 postdeps=$lt_postdeps_CXX
19912 # The library search path used internally by the compiler when linking
19913 # a shared library.
19914 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19916 # ### END LIBTOOL TAG CONFIG: CXX
19927 ac_clean_files=$ac_clean_files_save
19929 test $ac_write_fail = 0 ||
19930 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19933 # configure is writing to config.log, and then calls config.status.
19934 # config.status does its own redirection, appending to config.log.
19935 # Unfortunately, on DOS this fails, as config.log is still kept open
19936 # by configure, so config.status won't be able to write to it; its
19937 # output is simply discarded. So we exec the FD to /dev/null,
19938 # effectively closing config.log, so it can be properly (re)opened and
19939 # appended to by config.status. When coming back to configure, we
19940 # need to make the FD available again.
19941 if test "$no_create" != yes; then
19943 ac_config_status_args=
19944 test "$silent" = yes &&
19945 ac_config_status_args="$ac_config_status_args --quiet"
19947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19950 # would make configure fail if this is the last instruction.
19951 $ac_cs_success || as_fn_exit 1
19953 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19955 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19959 if test ${enable_tools} = yes; then
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building the deprecated ATF tools (atf-run and atf-report);" >&5
19961 $as_echo "$as_me: WARNING: Building the deprecated ATF tools (atf-run and atf-report);" >&2;}
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please migrate to Kyua as soon as feasible." >&5
19963 $as_echo "$as_me: WARNING: please migrate to Kyua as soon as feasible." >&2;}