2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.0cvs'
719 PACKAGE_STRING='llvm 2.0cvs'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
886 CONVENIENCE_LTDL_TRUE
887 CONVENIENCE_LTDL_FALSE
923 ac_precious_vars='build_alias
939 ac_subdirs_all='projects/sample
947 projects/llvm-poolalloc
948 projects/llvm-kernel'
950 # Initialize some variables set by options.
952 ac_init_version=false
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name=s,x,x,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1008 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1054 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1057 eval enable_$ac_feature=no ;;
1059 -docdir | --docdir | --docdi | --doc | --do)
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1069 -enable-* | --enable-*)
1070 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1076 eval enable_$ac_feature=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 sbindir=$ac_optarg ;;
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 sharedstatedir=$ac_optarg ;;
1238 -site | --site | --sit)
1240 -site=* | --site=* | --sit=*)
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1267 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1270 { echo "$as_me: error: invalid package name: $ac_package" >&2
1271 { (exit 1); exit 1; }; }
1272 ac_package=`echo $ac_package| sed 's/-/_/g'`
1273 eval with_$ac_package=\$ac_optarg ;;
1275 -without-* | --without-*)
1276 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_package=`echo $ac_package | sed 's/-/_/g'`
1282 eval with_$ac_package=no ;;
1285 # Obsolete; use --with-x.
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1302 -*) { echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312 { (exit 1); exit 1; }; }
1313 eval $ac_envvar=\$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 { echo "$as_me: error: missing argument to $ac_option" >&2
1330 { (exit 1); exit 1; }; }
1333 # Be sure to have absolute directory names.
1334 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val=\$$ac_var
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345 { (exit 1); exit 1; }; }
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1353 target=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369 test "$silent" = yes && exec 6>/dev/null
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 { echo "$as_me: error: Working directory cannot be determined" >&2
1376 { (exit 1); exit 1; }; }
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 { echo "$as_me: error: pwd does not report name of working directory" >&2
1379 { (exit 1); exit 1; }; }
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$0" ||
1387 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$0" : 'X\(//\)[^/]' \| \
1389 X"$0" : 'X\(//\)$' \| \
1390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1414 ac_srcdir_defaulted=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419 { (exit 1); exit 1; }; }
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424 { (exit 1); exit 1; }; }
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 # Report the --help message.
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1450 \`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1457 Defaults for the options are specified in brackets.
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1481 For better control, use the options below.
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 --target=TARGET configure for building compilers for TARGET [HOST]
1514 if test -n "$ac_init_help"; then
1515 case $ac_init_help in
1516 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1525 --enable-debug-runtime
1526 --enable-jit Enable Just In Time Compiling (default is YES)
1527 --enable-doxygen Build doxygen documentation (default is NO)
1528 --enable-threads Use threads if available (default is YES)
1529 --enable-pic Build LLVM with Position Independent Code (default
1531 --enable-targets Build specific host targets:
1532 all,host-only,{target-name} (default=all)
1533 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1535 --enable-ltdl-install install libltdl
1536 --enable-shared[=PKGS] build shared libraries
1537 [default=enable_shared_default]
1538 --enable-static[=PKGS] build static libraries
1539 [default=enable_static_default]
1540 --enable-fast-install[=PKGS]
1541 optimize for fast installation
1542 [default=enable_Fast_install_default]
1543 --disable-libtool-lock avoid locking (might break parallel builds)
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1550 --with-extra-options Specify addtional options to compile LLVM with
1551 --with-tclinclude directory where tcl headers are
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-pic try to use only PIC/non-PIC objects [default=use
1555 --with-tags[=TAGS] include additional configurations [automatic]
1557 Some influential environment variables:
1558 CC C compiler command
1559 CFLAGS C compiler flags
1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
1562 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
1565 CXX C++ compiler command
1566 CXXFLAGS C++ compiler flags
1567 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1568 the first program found out of: `bison -y', `byacc', `yacc'.
1569 YFLAGS The list of arguments that will be passed by default to $YACC.
1570 This script will default YFLAGS to the empty string to avoid a
1571 default value of `-d' given by some make applications.
1572 CXXCPP C++ preprocessor
1573 F77 Fortran 77 compiler command
1574 FFLAGS Fortran 77 compiler flags
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1579 Report bugs to <llvmbugs@cs.uiuc.edu>.
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" || continue
1591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 ac_abs_top_builddir=$ac_pwd
1602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir=$ac_top_build_prefix
1607 .) # We are building in place.
1609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
1612 ac_srcdir=$srcdir$ac_dir_suffix;
1613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1629 $SHELL "$ac_srcdir/configure" --help=recursive
1631 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 cd "$ac_pwd" || { ac_status=$?; break; }
1637 test -n "$ac_init_help" && exit $ac_status
1638 if $ac_init_version; then
1640 llvm configure 2.0cvs
1641 generated by GNU Autoconf 2.60
1643 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1644 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1648 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1652 cat >config.log <<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1656 It was created by llvm $as_me 2.0cvs, which was
1657 generated by GNU Autoconf 2.60. Invocation command line was
1669 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1678 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1679 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1680 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1682 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1683 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1684 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 echo "PATH: $as_dir"
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1717 ac_must_keep_next=false
1723 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725 | -silent | --silent | --silen | --sile | --sil)
1728 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1733 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734 if test $ac_must_keep_next = true; then
1735 ac_must_keep_next=false # Got value, back to normal.
1738 *=* | --config-cache | -C | -disable-* | --disable-* \
1739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741 | -with-* | --with-* | -without-* | --without-* | --x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1746 -* ) ac_must_keep_next=true ;;
1749 ac_configure_args="$ac_configure_args '$ac_arg'"
1754 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log. We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1768 ## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##
1773 # The following way of writing the cache mishandles newlines in values,
1775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776 eval ac_val=\$$ac_var
1780 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1781 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1784 _ | IFS | as_nl) ;; #(
1785 *) $as_unset $ac_var ;;
1790 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791 *${as_nl}ac_space=\ *)
1793 "s/'\''/'\''\\\\'\'''\''/g;
1794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1805 ## ----------------- ##
1806 ## Output variables. ##
1807 ## ----------------- ##
1810 for ac_var in $ac_subst_vars
1812 eval ac_val=\$$ac_var
1814 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816 echo "$ac_var='\''$ac_val'\''"
1820 if test -n "$ac_subst_files"; then
1822 ## ------------------- ##
1823 ## File substitutions. ##
1824 ## ------------------- ##
1827 for ac_var in $ac_subst_files
1829 eval ac_val=\$$ac_var
1831 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 echo "$ac_var='\''$ac_val'\''"
1838 if test -s confdefs.h; then
1848 test "$ac_signal" != 0 &&
1849 echo "$as_me: caught signal $ac_signal"
1850 echo "$as_me: exit $exit_status"
1852 rm -f core *.core core.conftest.* &&
1853 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1856 for ac_signal in 1 2 13 15; do
1857 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1861 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1862 rm -f -r conftest* confdefs.h
1864 # Predefined preprocessor variables.
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_NAME "$PACKAGE_NAME"
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_STRING "$PACKAGE_STRING"
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1891 # Let the site file select an alternate cache file if it wants to.
1892 # Prefer explicitly selected file to automatically selected ones.
1893 if test -n "$CONFIG_SITE"; then
1894 set x "$CONFIG_SITE"
1895 elif test "x$prefix" != xNONE; then
1896 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1898 set x "$ac_default_prefix/share/config.site" \
1899 "$ac_default_prefix/etc/config.site"
1904 if test -r "$ac_site_file"; then
1905 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1906 echo "$as_me: loading site script $ac_site_file" >&6;}
1907 sed 's/^/| /' "$ac_site_file" >&5
1912 if test -r "$cache_file"; then
1913 # Some versions of bash will fail to source /dev/null (special
1914 # files actually), so we avoid doing that.
1915 if test -f "$cache_file"; then
1916 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1917 echo "$as_me: loading cache $cache_file" >&6;}
1919 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1920 *) . "./$cache_file";;
1924 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1925 echo "$as_me: creating cache $cache_file" >&6;}
1929 # Check that the precious variables saved in the cache have kept the same
1931 ac_cache_corrupted=false
1932 for ac_var in $ac_precious_vars; do
1933 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1934 eval ac_new_set=\$ac_env_${ac_var}_set
1935 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1936 eval ac_new_val=\$ac_env_${ac_var}_value
1937 case $ac_old_set,$ac_new_set in
1939 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1943 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1944 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1945 ac_cache_corrupted=: ;;
1948 if test "x$ac_old_val" != "x$ac_new_val"; then
1949 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1950 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1951 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1952 echo "$as_me: former value: $ac_old_val" >&2;}
1953 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1954 echo "$as_me: current value: $ac_new_val" >&2;}
1955 ac_cache_corrupted=:
1958 # Pass precious variables to config.status.
1959 if test "$ac_new_set" = set; then
1961 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962 *) ac_arg=$ac_var=$ac_new_val ;;
1964 case " $ac_configure_args " in
1965 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1966 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970 if $ac_cache_corrupted; then
1971 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975 { (exit 1); exit 1; }; }
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2019 for ac_dir in autoconf "$srcdir"/autoconf; do
2020 if test -f "$ac_dir/install-sh"; then
2022 ac_install_sh="$ac_aux_dir/install-sh -c"
2024 elif test -f "$ac_dir/install.sh"; then
2026 ac_install_sh="$ac_aux_dir/install.sh -c"
2028 elif test -f "$ac_dir/shtool"; then
2030 ac_install_sh="$ac_aux_dir/shtool install -c"
2034 if test -z "$ac_aux_dir"; then
2035 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2036 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2037 { (exit 1); exit 1; }; }
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2050 if test ${srcdir} != "." ; then
2051 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2052 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2053 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2054 { (exit 1); exit 1; }; }
2058 for i in `ls ${srcdir}/projects`
2060 if test -d ${srcdir}/projects/${i} ; then
2063 "sample") subdirs="$subdirs projects/sample"
2065 "Stacker") subdirs="$subdirs projects/Stacker"
2067 "privbracket") subdirs="$subdirs projects/privbracket"
2069 "llvm-test") subdirs="$subdirs projects/llvm-test"
2071 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
2073 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
2075 "llvm-java") subdirs="$subdirs projects/llvm-java"
2077 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
2079 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2081 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
2084 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2085 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2092 # Make sure we can run config.sub.
2093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2094 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2095 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2096 { (exit 1); exit 1; }; }
2098 { echo "$as_me:$LINENO: checking build system type" >&5
2099 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_build+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 ac_build_alias=$build_alias
2104 test "x$ac_build_alias" = x &&
2105 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2106 test "x$ac_build_alias" = x &&
2107 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2108 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2109 { (exit 1); exit 1; }; }
2110 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2111 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2112 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2113 { (exit 1); exit 1; }; }
2116 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2117 echo "${ECHO_T}$ac_cv_build" >&6; }
2118 case $ac_cv_build in
2120 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2121 echo "$as_me: error: invalid value of canonical build" >&2;}
2122 { (exit 1); exit 1; }; };;
2125 ac_save_IFS=$IFS; IFS='-'
2131 # Remember, the first character of IFS is used to create $*,
2132 # except with old shells:
2135 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2138 { echo "$as_me:$LINENO: checking host system type" >&5
2139 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2140 if test "${ac_cv_host+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 if test "x$host_alias" = x; then
2144 ac_cv_host=$ac_cv_build
2146 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2147 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2148 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2149 { (exit 1); exit 1; }; }
2153 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2154 echo "${ECHO_T}$ac_cv_host" >&6; }
2157 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2158 echo "$as_me: error: invalid value of canonical host" >&2;}
2159 { (exit 1); exit 1; }; };;
2162 ac_save_IFS=$IFS; IFS='-'
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2172 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2175 { echo "$as_me:$LINENO: checking target system type" >&5
2176 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2177 if test "${ac_cv_target+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test "x$target_alias" = x; then
2181 ac_cv_target=$ac_cv_host
2183 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2184 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2185 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2186 { (exit 1); exit 1; }; }
2190 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191 echo "${ECHO_T}$ac_cv_target" >&6; }
2192 case $ac_cv_target in
2194 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2195 echo "$as_me: error: invalid value of canonical target" >&2;}
2196 { (exit 1); exit 1; }; };;
2198 target=$ac_cv_target
2199 ac_save_IFS=$IFS; IFS='-'
2205 # Remember, the first character of IFS is used to create $*,
2206 # except with old shells:
2209 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2212 # The aliases save the names the user supplied, while $host etc.
2213 # will get canonicalized.
2214 test -n "$target_alias" &&
2215 test "$program_prefix$program_suffix$program_transform_name" = \
2217 program_prefix=${target_alias}-
2219 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2220 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2221 if test "${llvm_cv_os_type+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="AIX"
2229 llvm_cv_platform_type="Unix" ;;
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="IRIX"
2234 llvm_cv_platform_type="Unix" ;;
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="Cygwin"
2239 llvm_cv_platform_type="Unix" ;;
2241 llvm_cv_link_all_option="-Wl,-all_load"
2242 llvm_cv_link_all_option="-Wl,-noall_load"
2243 llvm_cv_os_type="Darwin"
2244 llvm_cv_platform_type="Unix" ;;
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="FreeBSD"
2249 llvm_cv_platform_type="Unix" ;;
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="OpenBSD"
2254 llvm_cv_platform_type="Unix" ;;
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="HP-UX"
2259 llvm_cv_platform_type="Unix" ;;
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="Interix"
2264 llvm_cv_platform_type="Unix" ;;
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="Linux"
2269 llvm_cv_platform_type="Unix" ;;
2271 llvm_cv_link_all_option="-Wl,-z,allextract"
2272 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2273 llvm_cv_os_type="SunOS"
2274 llvm_cv_platform_type="Unix" ;;
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Win32"
2279 llvm_cv_platform_type="Win32" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="MingW"
2284 llvm_cv_platform_type="Win32" ;;
2286 llvm_cv_link_all_option=""
2287 llvm_cv_no_link_all_option=""
2288 llvm_cv_os_type="Unknown"
2289 llvm_cv_platform_type="Unknown" ;;
2292 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2293 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2295 if test "$llvm_cv_os_type" = "Unknown" ; then
2296 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2297 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2298 { (exit 1); exit 1; }; }
2304 LINKALL=$llvm_cv_link_all_option
2306 NOLINKALL=$llvm_cv_no_link_all_option
2309 case $llvm_cv_platform_type in
2312 cat >>confdefs.h <<\_ACEOF
2313 #define LLVM_ON_UNIX 1
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_WIN32 1
2334 { echo "$as_me:$LINENO: checking target architecture" >&5
2335 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2336 if test "${llvm_cv_target_arch+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 i?86-*) llvm_cv_target_arch="x86" ;;
2341 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2342 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2343 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2344 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2345 ia64-*) llvm_cv_target_arch="IA64" ;;
2346 *) llvm_cv_target_arch="Unknown" ;;
2349 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2350 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2352 if test "$llvm_cv_target_arch" = "Unknown" ; then
2353 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2354 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2357 ARCH=$llvm_cv_target_arch
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365 if test -n "$ac_tool_prefix"; then
2366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2370 if test "${ac_cv_prog_CC+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 if test -n "$CC"; then
2374 ac_cv_prog_CC="$CC" # Let the user override the test.
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2383 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 if test -n "$CC"; then
2395 { echo "$as_me:$LINENO: result: $CC" >&5
2396 echo "${ECHO_T}$CC" >&6; }
2398 { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2404 if test -z "$ac_cv_prog_CC"; then
2406 # Extract the first word of "gcc", so it can be a program name with args.
2407 set dummy gcc; ac_word=$2
2408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 if test -n "$ac_ct_CC"; then
2414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2423 ac_cv_prog_ac_ct_CC="gcc"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434 if test -n "$ac_ct_CC"; then
2435 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2436 echo "${ECHO_T}$ac_ct_CC" >&6; }
2438 { echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6; }
2442 if test "x$ac_ct_CC" = x; then
2445 case $cross_compiling:$ac_tool_warned in
2447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet. If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&5
2450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2451 whose name does not start with the host triplet. If you think this
2452 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2453 ac_tool_warned=yes ;;
2461 if test -z "$CC"; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}cc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_CC="${ac_tool_prefix}cc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 if test -n "$CC"; then
2492 { echo "$as_me:$LINENO: result: $CC" >&5
2493 echo "${ECHO_T}$CC" >&6; }
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2502 if test -z "$CC"; then
2503 # Extract the first word of "cc", so it can be a program name with args.
2504 set dummy cc; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_CC+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2522 ac_prog_rejected=yes
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 if test $ac_prog_rejected = yes; then
2534 # We found a bogon in the path, so make sure we never use it.
2535 set dummy $ac_cv_prog_CC
2537 if test $# != 0; then
2538 # We chose a different compiler from the bogus one.
2539 # However, it has the same basename, so the bogon will be chosen
2540 # first if we set CC to just the basename; use the full file name.
2542 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2548 if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2558 if test -z "$CC"; then
2559 if test -n "$ac_tool_prefix"; then
2560 for ac_prog in cl.exe
2562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 if test -n "$CC"; then
2591 { echo "$as_me:$LINENO: result: $CC" >&5
2592 echo "${ECHO_T}$CC" >&6; }
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2599 test -n "$CC" && break
2602 if test -z "$CC"; then
2604 for ac_prog in cl.exe
2606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2607 set dummy $ac_prog; ac_word=$2
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 if test -n "$ac_ct_CC"; then
2614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_ac_ct_CC="$ac_prog"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2634 if test -n "$ac_ct_CC"; then
2635 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636 echo "${ECHO_T}$ac_ct_CC" >&6; }
2638 { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2643 test -n "$ac_ct_CC" && break
2646 if test "x$ac_ct_CC" = x; then
2649 case $cross_compiling:$ac_tool_warned in
2651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&5
2654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2655 whose name does not start with the host triplet. If you think this
2656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2657 ac_tool_warned=yes ;;
2666 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2667 See \`config.log' for more details." >&5
2668 echo "$as_me: error: no acceptable C compiler found in \$PATH
2669 See \`config.log' for more details." >&2;}
2670 { (exit 1); exit 1; }; }
2672 # Provide some information about the compiler.
2673 echo "$as_me:$LINENO: checking for C compiler version" >&5
2674 ac_compiler=`set X $ac_compile; echo $2`
2675 { (ac_try="$ac_compiler --version >&5"
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compiler --version >&5") 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2685 { (ac_try="$ac_compiler -v >&5"
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compiler -v >&5") 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2695 { (ac_try="$ac_compiler -V >&5"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compiler -V >&5") 2>&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2706 cat >conftest.$ac_ext <<_ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2721 ac_clean_files_save=$ac_clean_files
2722 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2723 # Try to create an executable without -o first, disregard a.out.
2724 # It will help us diagnose broken compilers, and finding out an intuition
2726 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2727 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2728 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2730 # List of possible output files, starting from the most likely.
2731 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2732 # only as a last resort. b.out is created by i960 compilers.
2733 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2735 # The IRIX 6 linker writes into existing files which may not be
2736 # executable, retaining their permissions. Remove them first so a
2737 # subsequent execution test works.
2739 for ac_file in $ac_files
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2743 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2748 if { (ac_try="$ac_link_default"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_link_default") 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; then
2758 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2759 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2760 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2761 # so that the user can short-circuit this test for compilers unknown to
2763 for ac_file in $ac_files
2765 test -f "$ac_file" || continue
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2770 # We found the default executable, but exeext='' is most
2774 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2778 # We set ac_cv_exeext here because the later test for it is not
2779 # safe: cross compilers may not add the suffix if given an `-o'
2780 # argument, so we may need to know it at that point already.
2781 # Even if this section looks crufty: it has the advantage of
2788 test "$ac_cv_exeext" = no && ac_cv_exeext=
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2795 See \`config.log' for more details." >&5
2796 echo "$as_me: error: C compiler cannot create executables
2797 See \`config.log' for more details." >&2;}
2798 { (exit 77); exit 77; }; }
2801 ac_exeext=$ac_cv_exeext
2802 { echo "$as_me:$LINENO: result: $ac_file" >&5
2803 echo "${ECHO_T}$ac_file" >&6; }
2805 # Check that the compiler produces executables we can run. If not, either
2806 # the compiler is broken, or we cross compile.
2807 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2808 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2809 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2810 # If not cross compiling, check that we can run a simple program.
2811 if test "$cross_compiling" != yes; then
2812 if { ac_try='./$ac_file'
2813 { (case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_try") 2>&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2824 if test "$cross_compiling" = maybe; then
2827 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2828 If you meant to cross compile, use \`--host'.
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: cannot run C compiled programs.
2831 If you meant to cross compile, use \`--host'.
2832 See \`config.log' for more details." >&2;}
2833 { (exit 1); exit 1; }; }
2837 { echo "$as_me:$LINENO: result: yes" >&5
2838 echo "${ECHO_T}yes" >&6; }
2840 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2841 ac_clean_files=$ac_clean_files_save
2842 # Check that the compiler produces executables we can run. If not, either
2843 # the compiler is broken, or we cross compile.
2844 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2845 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2846 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2847 echo "${ECHO_T}$cross_compiling" >&6; }
2849 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2850 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2851 if { (ac_try="$ac_link"
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_link") 2>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; then
2861 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2862 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2863 # work properly (i.e., refer to `conftest.exe'), while it won't with
2865 for ac_file in conftest.exe conftest conftest.*; do
2866 test -f "$ac_file" || continue
2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2869 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2875 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2878 See \`config.log' for more details." >&2;}
2879 { (exit 1); exit 1; }; }
2882 rm -f conftest$ac_cv_exeext
2883 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2884 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2886 rm -f conftest.$ac_ext
2887 EXEEXT=$ac_cv_exeext
2889 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2890 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2891 if test "${ac_cv_objext+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 cat >conftest.$ac_ext <<_ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2909 rm -f conftest.o conftest.obj
2910 if { (ac_try="$ac_compile"
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_compile") 2>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; then
2920 for ac_file in conftest.o conftest.obj conftest.*; do
2921 test -f "$ac_file" || continue;
2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2924 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2932 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2933 See \`config.log' for more details." >&5
2934 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2935 See \`config.log' for more details." >&2;}
2936 { (exit 1); exit 1; }; }
2939 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2941 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2942 echo "${ECHO_T}$ac_cv_objext" >&6; }
2943 OBJEXT=$ac_cv_objext
2945 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2946 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2947 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 cat >conftest.$ac_ext <<_ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2968 rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_compile") 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2983 { (case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_try") 2>&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; } &&
2992 { ac_try='test -s conftest.$ac_objext'
2993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_try") 2>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3014 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3015 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3016 GCC=`test $ac_compiler_gnu = yes && echo yes`
3017 ac_test_CFLAGS=${CFLAGS+set}
3018 ac_save_CFLAGS=$CFLAGS
3019 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3020 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_cc_g+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 ac_save_c_werror_flag=$ac_c_werror_flag
3025 ac_c_werror_flag=yes
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3052 grep -v '^ *+' conftest.er1 >conftest.err
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } &&
3057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; } &&
3067 { ac_try='test -s conftest.$ac_objext'
3068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_try") 2>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3083 cat >conftest.$ac_ext <<_ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_compile") 2>conftest.er1
3107 grep -v '^ *+' conftest.er1 >conftest.err
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3113 { (case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_try") 2>&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; } &&
3122 { ac_try='test -s conftest.$ac_objext'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 ac_c_werror_flag=$ac_save_c_werror_flag
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3154 rm -f conftest.$ac_objext
3155 if { (ac_try="$ac_compile"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3163 grep -v '^ *+' conftest.er1 >conftest.err
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169 { (case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_try") 2>&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3216 if test "$GCC" = yes; then
3222 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3223 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3224 if test "${ac_cv_prog_cc_c89+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 ac_cv_prog_cc_c89=no
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3237 #include <sys/types.h>
3238 #include <sys/stat.h>
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3253 s = g (p, va_arg (v,int));
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 CC="$ac_save_CC $ac_arg"
3290 rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
3304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3305 { (case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_try") 2>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3324 ac_cv_prog_cc_c89=$ac_arg
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3332 rm -f core conftest.err conftest.$ac_objext
3333 test "x$ac_cv_prog_cc_c89" != "xno" && break
3335 rm -f conftest.$ac_ext
3340 case "x$ac_cv_prog_cc_c89" in
3342 { echo "$as_me:$LINENO: result: none needed" >&5
3343 echo "${ECHO_T}none needed" >&6; } ;;
3345 { echo "$as_me:$LINENO: result: unsupported" >&5
3346 echo "${ECHO_T}unsupported" >&6; } ;;
3348 CC="$CC $ac_cv_prog_cc_c89"
3349 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3350 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3372 if test -z "$CPP"; then
3373 if test "${ac_cv_prog_CPP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 # Double quotes because CPP needs to be expanded
3377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3380 for ac_c_preproc_warn_flag in '' yes
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385 # <limits.h> exists even on freestanding compilers.
3386 # On the NeXT, cc -E runs the code through the compiler's parser,
3387 # not just through cpp. "Syntax error" is here to catch this case.
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3395 # include <limits.h>
3397 # include <assert.h>
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423 if test -z "$ac_cpp_err"; then
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 # Broken: fails on valid input.
3433 rm -f conftest.err conftest.$ac_ext
3435 # OK, works on sane cases. Now check whether nonexistent headers
3436 # can be detected and how.
3437 cat >conftest.$ac_ext <<_ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 #include <ac_nonexistent.h>
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3467 if test -z "$ac_cpp_err"; then
3468 # Broken: success on invalid input.
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 # Passes both tests.
3479 rm -f conftest.err conftest.$ac_ext
3482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483 rm -f conftest.err conftest.$ac_ext
3484 if $ac_preproc_ok; then
3496 { echo "$as_me:$LINENO: result: $CPP" >&5
3497 echo "${ECHO_T}$CPP" >&6; }
3499 for ac_c_preproc_warn_flag in '' yes
3501 # Use a header file that comes with gcc, so configuring glibc
3502 # with a fresh cross-compiler works.
3503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504 # <limits.h> exists even on freestanding compilers.
3505 # On the NeXT, cc -E runs the code through the compiler's parser,
3506 # not just through cpp. "Syntax error" is here to catch this case.
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3514 # include <limits.h>
3516 # include <assert.h>
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3542 if test -z "$ac_cpp_err"; then
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Broken: fails on valid input.
3552 rm -f conftest.err conftest.$ac_ext
3554 # OK, works on sane cases. Now check whether nonexistent headers
3555 # can be detected and how.
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 #include <ac_nonexistent.h>
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } >/dev/null; then
3577 if test -s conftest.err; then
3578 ac_cpp_err=$ac_c_preproc_warn_flag
3579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3586 if test -z "$ac_cpp_err"; then
3587 # Broken: success on invalid input.
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Passes both tests.
3598 rm -f conftest.err conftest.$ac_ext
3601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3602 rm -f conftest.err conftest.$ac_ext
3603 if $ac_preproc_ok; then
3606 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3607 See \`config.log' for more details." >&5
3608 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3609 See \`config.log' for more details." >&2;}
3610 { (exit 1); exit 1; }; }
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3621 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3622 if test "${ac_cv_path_GREP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 # Extract the first word of "grep ggrep" to use in msg output
3626 if test -z "$GREP"; then
3627 set dummy grep ggrep; ac_prog_name=$2
3628 if test "${ac_cv_path_GREP+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 ac_path_GREP_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3637 test -z "$as_dir" && as_dir=.
3638 for ac_prog in grep ggrep; do
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3641 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3642 # Check for GNU ac_path_GREP and select it if it is found.
3643 # Check for GNU $ac_path_GREP
3644 case `"$ac_path_GREP" --version 2>&1` in
3646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3649 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3652 cat "conftest.in" "conftest.in" >"conftest.tmp"
3653 mv "conftest.tmp" "conftest.in"
3654 cp "conftest.in" "conftest.nl"
3655 echo 'GREP' >> "conftest.nl"
3656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658 ac_count=`expr $ac_count + 1`
3659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3660 # Best one so far, save it but keep looking for a better one
3661 ac_cv_path_GREP="$ac_path_GREP"
3662 ac_path_GREP_max=$ac_count
3664 # 10*(2^10) chars as input seems more than enough
3665 test $ac_count -gt 10 && break
3667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671 $ac_path_GREP_found && break 3
3681 GREP="$ac_cv_path_GREP"
3682 if test -z "$GREP"; then
3683 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3684 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3685 { (exit 1); exit 1; }; }
3689 ac_cv_path_GREP=$GREP
3694 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3695 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3696 GREP="$ac_cv_path_GREP"
3699 { echo "$as_me:$LINENO: checking for egrep" >&5
3700 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3701 if test "${ac_cv_path_EGREP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3705 then ac_cv_path_EGREP="$GREP -E"
3707 # Extract the first word of "egrep" to use in msg output
3708 if test -z "$EGREP"; then
3709 set dummy egrep; ac_prog_name=$2
3710 if test "${ac_cv_path_EGREP+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 ac_path_EGREP_found=false
3714 # Loop through the user's path and test for each of PROGNAME-LIST
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3719 test -z "$as_dir" && as_dir=.
3720 for ac_prog in egrep; do
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3723 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3724 # Check for GNU ac_path_EGREP and select it if it is found.
3725 # Check for GNU $ac_path_EGREP
3726 case `"$ac_path_EGREP" --version 2>&1` in
3728 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3731 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3734 cat "conftest.in" "conftest.in" >"conftest.tmp"
3735 mv "conftest.tmp" "conftest.in"
3736 cp "conftest.in" "conftest.nl"
3737 echo 'EGREP' >> "conftest.nl"
3738 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3740 ac_count=`expr $ac_count + 1`
3741 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3742 # Best one so far, save it but keep looking for a better one
3743 ac_cv_path_EGREP="$ac_path_EGREP"
3744 ac_path_EGREP_max=$ac_count
3746 # 10*(2^10) chars as input seems more than enough
3747 test $ac_count -gt 10 && break
3749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3753 $ac_path_EGREP_found && break 3
3763 EGREP="$ac_cv_path_EGREP"
3764 if test -z "$EGREP"; then
3765 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3766 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3767 { (exit 1); exit 1; }; }
3771 ac_cv_path_EGREP=$EGREP
3777 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3778 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3779 EGREP="$ac_cv_path_EGREP"
3782 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3784 if test "${ac_cv_header_stdc+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 cat >conftest.$ac_ext <<_ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3806 rm -f conftest.$ac_objext
3807 if { (ac_try="$ac_compile"
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813 (eval "$ac_compile") 2>conftest.er1
3815 grep -v '^ *+' conftest.er1 >conftest.err
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } &&
3820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3821 { (case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_try") 2>&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_try") 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 ac_cv_header_stdc=yes
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 ac_cv_header_stdc=no
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 if test $ac_cv_header_stdc = yes; then
3851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862 $EGREP "memchr" >/dev/null 2>&1; then
3865 ac_cv_header_stdc=no
3871 if test $ac_cv_header_stdc = yes; then
3872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3883 $EGREP "free" >/dev/null 2>&1; then
3886 ac_cv_header_stdc=no
3892 if test $ac_cv_header_stdc = yes; then
3893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3894 if test "$cross_compiling" = yes; then
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3905 #if ((' ' & 0x0FF) == 0x020)
3906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3909 # define ISLOWER(c) \
3910 (('a' <= (c) && (c) <= 'i') \
3911 || ('j' <= (c) && (c) <= 'r') \
3912 || ('s' <= (c) && (c) <= 'z'))
3913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3921 for (i = 0; i < 256; i++)
3922 if (XOR (islower (i), ISLOWER (i))
3923 || toupper (i) != TOUPPER (i))
3928 rm -f conftest$ac_exeext
3929 if { (ac_try="$ac_link"
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_link") 2>&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3939 { (case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_try") 2>&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3950 echo "$as_me: program exited with status $ac_status" >&5
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3955 ac_cv_header_stdc=no
3957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3963 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3964 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3965 if test $ac_cv_header_stdc = yes; then
3967 cat >>confdefs.h <<\_ACEOF
3968 #define STDC_HEADERS 1
3973 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3983 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3984 inttypes.h stdint.h unistd.h
3986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 $ac_includes_default
4000 #include <$ac_header>
4002 rm -f conftest.$ac_objext
4003 if { (ac_try="$ac_compile"
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_compile") 2>conftest.er1
4011 grep -v '^ *+' conftest.er1 >conftest.err
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4017 { (case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_try") 2>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; } &&
4026 { ac_try='test -s conftest.$ac_objext'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 eval "$as_ac_Header=yes"
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4041 eval "$as_ac_Header=no"
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_res=`eval echo '${'$as_ac_Header'}'`
4047 { echo "$as_me:$LINENO: result: $ac_res" >&5
4048 echo "${ECHO_T}$ac_res" >&6; }
4049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4050 cat >>confdefs.h <<_ACEOF
4051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4059 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4060 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4061 if test "${ac_cv_c_bigendian+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 # See if sys/param.h defines the BYTE_ORDER macro.
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4071 #include <sys/types.h>
4072 #include <sys/param.h>
4077 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4085 rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4094 grep -v '^ *+' conftest.er1 >conftest.err
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4100 { (case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_try") 2>&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_try") 2>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 # It does; now see whether it defined to BIG_ENDIAN or not.
4120 cat >conftest.$ac_ext <<_ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 #include <sys/types.h>
4127 #include <sys/param.h>
4132 #if BYTE_ORDER != BIG_ENDIAN
4140 rm -f conftest.$ac_objext
4141 if { (ac_try="$ac_compile"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_compile") 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; } &&
4164 { ac_try='test -s conftest.$ac_objext'
4165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 ac_cv_c_bigendian=yes
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 ac_cv_c_bigendian=no
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4187 # It does not; compile a test program.
4188 if test "$cross_compiling" = yes; then
4189 # try to guess the endianness by grepping values into an object file
4190 ac_cv_c_bigendian=unknown
4191 cat >conftest.$ac_ext <<_ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4198 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4199 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4200 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4201 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4202 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4206 _ascii (); _ebcdic ();
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4226 { (case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_try") 2>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4246 ac_cv_c_bigendian=yes
4248 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4249 if test "$ac_cv_c_bigendian" = unknown; then
4250 ac_cv_c_bigendian=no
4252 # finding both strings is unlikely to happen, but who knows?
4253 ac_cv_c_bigendian=unknown
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 cat >conftest.$ac_ext <<_ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 $ac_includes_default
4276 /* Are we little or big endian? From Harbison&Steele. */
4280 char c[sizeof (long int)];
4283 return u.c[sizeof (long int) - 1] == 1;
4289 rm -f conftest$ac_exeext
4290 if { (ac_try="$ac_link"
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_link") 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 ac_cv_c_bigendian=no
4311 echo "$as_me: program exited with status $ac_status" >&5
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4316 ac_cv_c_bigendian=yes
4318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4327 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4328 case $ac_cv_c_bigendian in
4336 { { echo "$as_me:$LINENO: error: unknown endianness
4337 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4338 echo "$as_me: error: unknown endianness
4339 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4340 { (exit 1); exit 1; }; } ;;
4344 if test "$cross_compiling" = yes; then
4345 LLVM_CROSS_COMPILING=1
4348 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4349 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4350 if test "${ac_cv_build_exeext+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4354 ac_cv_build_exeext=.exe
4356 ac_build_prefix=${build_alias}-
4358 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4359 set dummy ${ac_build_prefix}gcc; ac_word=$2
4360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4362 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 if test -n "$BUILD_CC"; then
4366 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 BUILD_CC=$ac_cv_prog_BUILD_CC
4386 if test -n "$BUILD_CC"; then
4387 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4388 echo "${ECHO_T}$BUILD_CC" >&6; }
4390 { echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6; }
4395 if test -z "$BUILD_CC"; then
4396 # Extract the first word of "gcc", so it can be a program name with args.
4397 set dummy gcc; ac_word=$2
4398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 if test -n "$BUILD_CC"; then
4404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_BUILD_CC="gcc"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 BUILD_CC=$ac_cv_prog_BUILD_CC
4424 if test -n "$BUILD_CC"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426 echo "${ECHO_T}$BUILD_CC" >&6; }
4428 { echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6; }
4433 if test -z "$BUILD_CC"; then
4434 # Extract the first word of "cc", so it can be a program name with args.
4435 set dummy cc; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4453 ac_prog_rejected=yes
4456 ac_cv_prog_BUILD_CC="cc"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 if test $ac_prog_rejected = yes; then
4465 # We found a bogon in the path, so make sure we never use it.
4466 set dummy $ac_cv_prog_BUILD_CC
4468 if test $# != 0; then
4469 # We chose a different compiler from the bogus one.
4470 # However, it has the same basename, so the bogon will be chosen
4471 # first if we set BUILD_CC to just the basename; use the full file name.
4473 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4478 BUILD_CC=$ac_cv_prog_BUILD_CC
4479 if test -n "$BUILD_CC"; then
4480 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4481 echo "${ECHO_T}$BUILD_CC" >&6; }
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4490 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4491 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4492 { (exit 1); exit 1; }; }
4493 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4495 echo 'int main () { return 0; }' > conftest.$ac_ext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4498 (eval $ac_build_link) 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; then
4502 for file in conftest.*; do
4504 *.c | *.o | *.obj) ;;
4505 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4509 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4510 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4511 { (exit 1); exit 1; }; }
4514 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4519 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4520 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4521 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4522 ac_build_exeext=$BUILD_EXEEXT
4525 LLVM_CROSS_COMPILING=0
4529 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4540 # Check whether --enable-optimized was given.
4541 if test "${enable_optimized+set}" = set; then
4542 enableval=$enable_optimized;
4547 if test ${enableval} = "no" ; then
4551 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4555 # Check whether --enable-assertions was given.
4556 if test "${enable_assertions+set}" = set; then
4557 enableval=$enable_assertions;
4562 if test ${enableval} = "yes" ; then
4566 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4570 # Check whether --enable-debug-runtime was given.
4571 if test "${enable_debug_runtime+set}" = set; then
4572 enableval=$enable_debug_runtime;
4577 if test ${enableval} = "no" ; then
4581 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4585 # Check whether --enable-jit was given.
4586 if test "${enable_jit+set}" = set; then
4587 enableval=$enable_jit;
4592 if test ${enableval} = "no"
4597 case "$llvm_cv_target_arch" in
4598 x86) TARGET_HAS_JIT=1
4600 Sparc) TARGET_HAS_JIT=1
4602 PowerPC) TARGET_HAS_JIT=1
4604 x86_64) TARGET_HAS_JIT=0
4606 Alpha) TARGET_HAS_JIT=1
4608 IA64) TARGET_HAS_JIT=0
4615 # Check whether --enable-doxygen was given.
4616 if test "${enable_doxygen+set}" = set; then
4617 enableval=$enable_doxygen;
4622 case "$enableval" in
4623 yes) ENABLE_DOXYGEN=1
4625 no) ENABLE_DOXYGEN=0
4627 default) ENABLE_DOXYGEN=0
4629 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4630 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4631 { (exit 1); exit 1; }; } ;;
4634 # Check whether --enable-threads was given.
4635 if test "${enable_threads+set}" = set; then
4636 enableval=$enable_threads;
4641 case "$enableval" in
4642 yes) ENABLE_THREADS=1
4644 no) ENABLE_THREADS=0
4646 default) ENABLE_THREADS=1
4648 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4649 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4650 { (exit 1); exit 1; }; } ;;
4653 cat >>confdefs.h <<_ACEOF
4654 #define ENABLE_THREADS $ENABLE_THREADS
4658 # Check whether --enable-pic was given.
4659 if test "${enable_pic+set}" = set; then
4660 enableval=$enable_pic;
4665 case "$enableval" in
4670 default) ENABLE_PIC=0
4672 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4673 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4674 { (exit 1); exit 1; }; } ;;
4677 cat >>confdefs.h <<_ACEOF
4678 #define ENABLE_PIC $ENABLE_PIC
4683 # Check whether --enable-targets was given.
4684 if test "${enable_targets+set}" = set; then
4685 enableval=$enable_targets;
4690 case "$enableval" in
4691 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4693 case "$llvm_cv_target_arch" in
4694 x86) TARGETS_TO_BUILD="X86" ;;
4695 x86_64) TARGETS_TO_BUILD="X86" ;;
4696 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4697 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4698 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4699 IA64) TARGETS_TO_BUILD="IA64" ;;
4700 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4701 echo "$as_me: error: Can not set target to build" >&2;}
4702 { (exit 1); exit 1; }; } ;;
4705 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4707 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4708 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4709 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4710 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4711 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4712 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4713 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4714 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4715 { (exit 1); exit 1; }; } ;;
4720 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4721 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4724 # Check whether --enable-cbe-printf-a was given.
4725 if test "${enable_cbe_printf_a+set}" = set; then
4726 enableval=$enable_cbe_printf_a;
4731 case "$enableval" in
4732 yes) ENABLE_CBE_PRINTF_A=1
4734 no) ENABLE_CBE_PRINTF_A=0
4736 default) ENABLE_CBE_PRINTF_A=1
4738 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4739 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4740 { (exit 1); exit 1; }; } ;;
4743 cat >>confdefs.h <<_ACEOF
4744 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4749 # Check whether --with-llvmgccdir was given.
4750 if test "${with_llvmgccdir+set}" = set; then
4751 withval=$with_llvmgccdir;
4757 default) WITH_LLVMGCCDIR=default ;;
4758 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4759 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4760 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4761 { (exit 1); exit 1; }; } ;;
4765 # Check whether --with-extra-options was given.
4766 if test "${with_extra_options+set}" = set; then
4767 withval=$with_extra_options;
4773 default) EXTRA_OPTIONS= ;;
4774 *) EXTRA_OPTIONS=$withval ;;
4776 EXTRA_OPTIONS=$EXTRA_OPTIONS
4781 ac_cpp='$CPP $CPPFLAGS'
4782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4786 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4787 # On Suns, sometimes $CPP names a directory.
4788 if test -n "$CPP" && test -d "$CPP"; then
4791 if test -z "$CPP"; then
4792 if test "${ac_cv_prog_CPP+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 # Double quotes because CPP needs to be expanded
4796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4799 for ac_c_preproc_warn_flag in '' yes
4801 # Use a header file that comes with gcc, so configuring glibc
4802 # with a fresh cross-compiler works.
4803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4804 # <limits.h> exists even on freestanding compilers.
4805 # On the NeXT, cc -E runs the code through the compiler's parser,
4806 # not just through cpp. "Syntax error" is here to catch this case.
4807 cat >conftest.$ac_ext <<_ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4814 # include <limits.h>
4816 # include <assert.h>
4820 if { (ac_try="$ac_cpp conftest.$ac_ext"
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4828 grep -v '^ *+' conftest.er1 >conftest.err
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } >/dev/null; then
4833 if test -s conftest.err; then
4834 ac_cpp_err=$ac_c_preproc_warn_flag
4835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4842 if test -z "$ac_cpp_err"; then
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 # Broken: fails on valid input.
4852 rm -f conftest.err conftest.$ac_ext
4854 # OK, works on sane cases. Now check whether nonexistent headers
4855 # can be detected and how.
4856 cat >conftest.$ac_ext <<_ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #include <ac_nonexistent.h>
4864 if { (ac_try="$ac_cpp conftest.$ac_ext"
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4872 grep -v '^ *+' conftest.er1 >conftest.err
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } >/dev/null; then
4877 if test -s conftest.err; then
4878 ac_cpp_err=$ac_c_preproc_warn_flag
4879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4886 if test -z "$ac_cpp_err"; then
4887 # Broken: success on invalid input.
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 # Passes both tests.
4898 rm -f conftest.err conftest.$ac_ext
4901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4902 rm -f conftest.err conftest.$ac_ext
4903 if $ac_preproc_ok; then
4915 { echo "$as_me:$LINENO: result: $CPP" >&5
4916 echo "${ECHO_T}$CPP" >&6; }
4918 for ac_c_preproc_warn_flag in '' yes
4920 # Use a header file that comes with gcc, so configuring glibc
4921 # with a fresh cross-compiler works.
4922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4923 # <limits.h> exists even on freestanding compilers.
4924 # On the NeXT, cc -E runs the code through the compiler's parser,
4925 # not just through cpp. "Syntax error" is here to catch this case.
4926 cat >conftest.$ac_ext <<_ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4933 # include <limits.h>
4935 # include <assert.h>
4939 if { (ac_try="$ac_cpp conftest.$ac_ext"
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4947 grep -v '^ *+' conftest.er1 >conftest.err
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } >/dev/null; then
4952 if test -s conftest.err; then
4953 ac_cpp_err=$ac_c_preproc_warn_flag
4954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4961 if test -z "$ac_cpp_err"; then
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 # Broken: fails on valid input.
4971 rm -f conftest.err conftest.$ac_ext
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 #include <ac_nonexistent.h>
4983 if { (ac_try="$ac_cpp conftest.$ac_ext"
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4991 grep -v '^ *+' conftest.er1 >conftest.err
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } >/dev/null; then
4996 if test -s conftest.err; then
4997 ac_cpp_err=$ac_c_preproc_warn_flag
4998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5005 if test -z "$ac_cpp_err"; then
5006 # Broken: success on invalid input.
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 # Passes both tests.
5017 rm -f conftest.err conftest.$ac_ext
5020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5021 rm -f conftest.err conftest.$ac_ext
5022 if $ac_preproc_ok; then
5025 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5026 See \`config.log' for more details." >&5
5027 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5028 See \`config.log' for more details." >&2;}
5029 { (exit 1); exit 1; }; }
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050 if test "${ac_cv_prog_CC+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 if test -n "$CC"; then
5054 ac_cv_prog_CC="$CC" # Let the user override the test.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 if test -n "$CC"; then
5075 { echo "$as_me:$LINENO: result: $CC" >&5
5076 echo "${ECHO_T}$CC" >&6; }
5078 { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5083 test -n "$CC" && break
5086 if test -z "$CC"; then
5090 # Extract the first word of "$ac_prog", so it can be a program name with args.
5091 set dummy $ac_prog; ac_word=$2
5092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 if test -n "$ac_ct_CC"; then
5098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_prog_ac_ct_CC="$ac_prog"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5118 if test -n "$ac_ct_CC"; then
5119 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5120 echo "${ECHO_T}$ac_ct_CC" >&6; }
5122 { echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6; }
5127 test -n "$ac_ct_CC" && break
5130 if test "x$ac_ct_CC" = x; then
5133 case $cross_compiling:$ac_tool_warned in
5135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5136 whose name does not start with the host triplet. If you think this
5137 configuration is useful to you, please write to autoconf@gnu.org." >&5
5138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5139 whose name does not start with the host triplet. If you think this
5140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5141 ac_tool_warned=yes ;;
5148 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5149 See \`config.log' for more details." >&5
5150 echo "$as_me: error: no acceptable C compiler found in \$PATH
5151 See \`config.log' for more details." >&2;}
5152 { (exit 1); exit 1; }; }
5154 # Provide some information about the compiler.
5155 echo "$as_me:$LINENO: checking for C compiler version" >&5
5156 ac_compiler=`set X $ac_compile; echo $2`
5157 { (ac_try="$ac_compiler --version >&5"
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_compiler --version >&5") 2>&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }
5167 { (ac_try="$ac_compiler -v >&5"
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_compiler -v >&5") 2>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }
5177 { (ac_try="$ac_compiler -V >&5"
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_compiler -V >&5") 2>&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }
5188 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5189 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5190 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 cat >conftest.$ac_ext <<_ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5211 rm -f conftest.$ac_objext
5212 if { (ac_try="$ac_compile"
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_compile") 2>conftest.er1
5220 grep -v '^ *+' conftest.er1 >conftest.err
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5226 { (case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_try") 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (case "(($ac_try" in
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_try") 2>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5257 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5258 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5259 GCC=`test $ac_compiler_gnu = yes && echo yes`
5260 ac_test_CFLAGS=${CFLAGS+set}
5261 ac_save_CFLAGS=$CFLAGS
5262 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5264 if test "${ac_cv_prog_cc_g+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_save_c_werror_flag=$ac_c_werror_flag
5268 ac_c_werror_flag=yes
5271 cat >conftest.$ac_ext <<_ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5286 rm -f conftest.$ac_objext
5287 if { (ac_try="$ac_compile"
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_compile") 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5301 { (case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_try") 2>&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_try") 2>&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356 { (case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_try") 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_try") 2>&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 ac_c_werror_flag=$ac_save_c_werror_flag
5382 cat >conftest.$ac_ext <<_ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
5406 grep -v '^ *+' conftest.er1 >conftest.err
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5412 { (case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_try") 2>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; } &&
5421 { ac_try='test -s conftest.$ac_objext'
5422 { (case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_try") 2>&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 ac_c_werror_flag=$ac_save_c_werror_flag
5448 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5449 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5450 if test "$ac_test_CFLAGS" = set; then
5451 CFLAGS=$ac_save_CFLAGS
5452 elif test $ac_cv_prog_cc_g = yes; then
5453 if test "$GCC" = yes; then
5459 if test "$GCC" = yes; then
5465 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5466 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5467 if test "${ac_cv_prog_cc_c89+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 ac_cv_prog_cc_c89=no
5472 cat >conftest.$ac_ext <<_ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5480 #include <sys/types.h>
5481 #include <sys/stat.h>
5482 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5483 struct buf { int x; };
5484 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5485 static char *e (p, i)
5491 static char *f (char * (*g) (char **, int), char **p, ...)
5496 s = g (p, va_arg (v,int));
5501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5502 function prototypes and stuff, but not '\xHH' hex character constants.
5503 These don't provoke an error unfortunately, instead are silently treated
5504 as 'x'. The following induces an error, until -std is added to get
5505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5506 array size at least. It's necessary to write '\x00'==0 to get something
5507 that's true only with -std. */
5508 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5510 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5511 inside strings and character constants. */
5513 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5515 int test (int i, double x);
5516 struct s1 {int (*f) (int a);};
5517 struct s2 {int (*f) (double a);};
5518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5524 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5529 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5530 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5532 CC="$ac_save_CC $ac_arg"
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5542 grep -v '^ *+' conftest.er1 >conftest.err
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5548 { (case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_try") 2>&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; } &&
5557 { ac_try='test -s conftest.$ac_objext'
5558 { (case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_try") 2>&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_prog_cc_c89=$ac_arg
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5575 rm -f core conftest.err conftest.$ac_objext
5576 test "x$ac_cv_prog_cc_c89" != "xno" && break
5578 rm -f conftest.$ac_ext
5583 case "x$ac_cv_prog_cc_c89" in
5585 { echo "$as_me:$LINENO: result: none needed" >&5
5586 echo "${ECHO_T}none needed" >&6; } ;;
5588 { echo "$as_me:$LINENO: result: unsupported" >&5
5589 echo "${ECHO_T}unsupported" >&6; } ;;
5591 CC="$CC $ac_cv_prog_cc_c89"
5592 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5593 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5598 ac_cpp='$CPP $CPPFLAGS'
5599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5604 ac_cpp='$CXXCPP $CPPFLAGS'
5605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5608 if test -z "$CXX"; then
5609 if test -n "$CCC"; then
5612 if test -n "$ac_tool_prefix"; then
5615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5619 if test "${ac_cv_prog_CXX+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 if test -n "$CXX"; then
5623 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 if test -n "$CXX"; then
5644 { echo "$as_me:$LINENO: result: $CXX" >&5
5645 echo "${ECHO_T}$CXX" >&6; }
5647 { echo "$as_me:$LINENO: result: no" >&5
5648 echo "${ECHO_T}no" >&6; }
5652 test -n "$CXX" && break
5655 if test -z "$CXX"; then
5659 # Extract the first word of "$ac_prog", so it can be a program name with args.
5660 set dummy $ac_prog; ac_word=$2
5661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5663 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 if test -n "$ac_ct_CXX"; then
5667 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_ac_ct_CXX="$ac_prog"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5687 if test -n "$ac_ct_CXX"; then
5688 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5689 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5691 { echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6; }
5696 test -n "$ac_ct_CXX" && break
5699 if test "x$ac_ct_CXX" = x; then
5702 case $cross_compiling:$ac_tool_warned in
5704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5705 whose name does not start with the host triplet. If you think this
5706 configuration is useful to you, please write to autoconf@gnu.org." >&5
5707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5708 whose name does not start with the host triplet. If you think this
5709 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5710 ac_tool_warned=yes ;;
5718 # Provide some information about the compiler.
5719 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5720 ac_compiler=`set X $ac_compile; echo $2`
5721 { (ac_try="$ac_compiler --version >&5"
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compiler --version >&5") 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }
5731 { (ac_try="$ac_compiler -v >&5"
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compiler -v >&5") 2>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }
5741 { (ac_try="$ac_compiler -V >&5"
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_compiler -V >&5") 2>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }
5752 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5753 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5754 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5790 { (case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_try") 2>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_try") 2>&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5821 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5822 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5823 GXX=`test $ac_compiler_gnu = yes && echo yes`
5824 ac_test_CXXFLAGS=${CXXFLAGS+set}
5825 ac_save_CXXFLAGS=$CXXFLAGS
5826 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5827 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5828 if test "${ac_cv_prog_cxx_g+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5832 ac_cxx_werror_flag=yes
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5850 rm -f conftest.$ac_objext
5851 if { (ac_try="$ac_compile"
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compile") 2>conftest.er1
5859 grep -v '^ *+' conftest.er1 >conftest.err
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5865 { (case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_try") 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_try") 2>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_cv_prog_cxx_g=yes
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5914 grep -v '^ *+' conftest.er1 >conftest.err
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5944 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5946 cat >conftest.$ac_ext <<_ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5970 grep -v '^ *+' conftest.er1 >conftest.err
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
5975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5976 { (case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_try") 2>&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; } &&
5985 { ac_try='test -s conftest.$ac_objext'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_prog_cxx_g=yes
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6012 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6013 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6014 if test "$ac_test_CXXFLAGS" = set; then
6015 CXXFLAGS=$ac_save_CXXFLAGS
6016 elif test $ac_cv_prog_cxx_g = yes; then
6017 if test "$GXX" = yes; then
6023 if test "$GXX" = yes; then
6030 ac_cpp='$CPP $CPPFLAGS'
6031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035 { echo "$as_me:$LINENO: checking " >&5
6036 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6037 if test "${ac_cv_has_flex+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 for ac_prog in flex lex
6042 # Extract the first word of "$ac_prog", so it can be a program name with args.
6043 set dummy $ac_prog; ac_word=$2
6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046 if test "${ac_cv_prog_LEX+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 if test -n "$LEX"; then
6050 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_LEX="$ac_prog"
6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 if test -n "$LEX"; then
6071 { echo "$as_me:$LINENO: result: $LEX" >&5
6072 echo "${ECHO_T}$LEX" >&6; }
6074 { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6079 test -n "$LEX" && break
6081 test -n "$LEX" || LEX=":"
6083 if test -z "$LEXLIB"
6085 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6086 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6087 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 ac_check_lib_save_LIBS=$LIBS
6092 cat >conftest.$ac_ext <<_ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6099 /* Override any GCC internal prototype to avoid an error.
6100 Use char because int might match the return type of a GCC
6101 builtin and then its argument prototype would still apply. */
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (ac_try="$ac_link"
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_link") 2>conftest.er1
6123 grep -v '^ *+' conftest.er1 >conftest.err
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6129 { (case "(($ac_try" in
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_try") 2>&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try='test -s conftest$ac_exeext'
6139 { (case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_try") 2>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 ac_cv_lib_fl_yywrap=yes
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 ac_cv_lib_fl_yywrap=no
6156 rm -f core conftest.err conftest.$ac_objext \
6157 conftest$ac_exeext conftest.$ac_ext
6158 LIBS=$ac_check_lib_save_LIBS
6160 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6161 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6162 if test $ac_cv_lib_fl_yywrap = yes; then
6165 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6166 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6167 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 ac_check_lib_save_LIBS=$LIBS
6172 cat >conftest.$ac_ext <<_ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6179 /* Override any GCC internal prototype to avoid an error.
6180 Use char because int might match the return type of a GCC
6181 builtin and then its argument prototype would still apply. */
6194 rm -f conftest.$ac_objext conftest$ac_exeext
6195 if { (ac_try="$ac_link"
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_link") 2>conftest.er1
6203 grep -v '^ *+' conftest.er1 >conftest.err
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6209 { (case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_try") 2>&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; } &&
6218 { ac_try='test -s conftest$ac_exeext'
6219 { (case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_try") 2>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_lib_l_yywrap=yes
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6233 ac_cv_lib_l_yywrap=no
6236 rm -f core conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
6238 LIBS=$ac_check_lib_save_LIBS
6240 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6241 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6242 if test $ac_cv_lib_l_yywrap = yes; then
6250 if test "x$LEX" != "x:"; then
6251 { echo "$as_me:$LINENO: checking lex output file root" >&5
6252 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_lex_root+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 # The minimal lex program is just a single line: %%. But some broken lexes
6257 # (Solaris, I think it was) want two %% lines, so accommodate them.
6258 cat >conftest.l <<_ACEOF
6262 { (ac_try="$LEX conftest.l"
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$LEX conftest.l") 2>&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }
6272 if test -f lex.yy.c; then
6273 ac_cv_prog_lex_root=lex.yy
6274 elif test -f lexyy.c; then
6275 ac_cv_prog_lex_root=lexyy
6277 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6278 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6279 { (exit 1); exit 1; }; }
6282 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6283 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6285 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6287 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6288 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6289 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 # POSIX says lex can declare yytext either as a pointer or an array; the
6293 # default is implementation-dependent. Figure out which it is, since
6294 # not all implementations provide the %pointer and %array declarations.
6295 ac_cv_prog_lex_yytext_pointer=no
6296 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6298 LIBS="$LIBS $LEXLIB"
6299 cat >conftest.$ac_ext <<_ACEOF
6300 `cat $LEX_OUTPUT_ROOT.c`
6302 rm -f conftest.$ac_objext conftest$ac_exeext
6303 if { (ac_try="$ac_link"
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_link") 2>conftest.er1
6311 grep -v '^ *+' conftest.er1 >conftest.err
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317 { (case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_try") 2>&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest$ac_exeext'
6327 { (case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_try") 2>&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_cv_prog_lex_yytext_pointer=yes
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6344 rm -f core conftest.err conftest.$ac_objext \
6345 conftest$ac_exeext conftest.$ac_ext
6347 rm -f "${LEX_OUTPUT_ROOT}.c"
6350 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6351 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6352 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6354 cat >>confdefs.h <<\_ACEOF
6355 #define YYTEXT_POINTER 1
6363 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6364 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6365 if test "$LEX" != "flex"; then
6366 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6367 echo "$as_me: error: flex not found but required" >&2;}
6368 { (exit 1); exit 1; }; }
6374 { echo "$as_me:$LINENO: checking " >&5
6375 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6376 if test "${llvm_cv_has_bison+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 for ac_prog in 'bison -y' byacc
6381 # Extract the first word of "$ac_prog", so it can be a program name with args.
6382 set dummy $ac_prog; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_prog_YACC+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 if test -n "$YACC"; then
6389 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_YACC="$ac_prog"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 YACC=$ac_cv_prog_YACC
6409 if test -n "$YACC"; then
6410 { echo "$as_me:$LINENO: result: $YACC" >&5
6411 echo "${ECHO_T}$YACC" >&6; }
6413 { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6418 test -n "$YACC" && break
6420 test -n "$YACC" || YACC="yacc"
6423 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6424 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6425 if test "$YACC" != "bison -y"; then
6427 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6428 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6434 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6435 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6436 if test "${lt_cv_path_NM+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 if test -n "$NM"; then
6440 # Let the user override the test.
6443 lt_nm_to_check="${ac_tool_prefix}nm"
6444 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6445 lt_nm_to_check="$lt_nm_to_check nm"
6447 for lt_tmp_nm in $lt_nm_to_check; do
6448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6449 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6451 test -z "$ac_dir" && ac_dir=.
6452 tmp_nm="$ac_dir/$lt_tmp_nm"
6453 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6454 # Check to see if the nm accepts a BSD-compat flag.
6455 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6456 # nm: unknown option "B" ignored
6457 # Tru64's nm complains that /dev/null is an invalid object file
6458 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6459 */dev/null* | *'Invalid file or object type'*)
6460 lt_cv_path_NM="$tmp_nm -B"
6464 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6466 lt_cv_path_NM="$tmp_nm -p"
6470 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6471 continue # so that we can try to find one that supports BSD flags
6480 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6483 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6484 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6489 { echo "$as_me:$LINENO: checking for GNU make" >&5
6490 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6491 if test "${llvm_cv_gnu_make_command+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 llvm_cv_gnu_make_command=''
6495 for a in "$MAKE" make gmake gnumake ; do
6496 if test -z "$a" ; then continue ; fi ;
6497 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6499 llvm_cv_gnu_make_command=$a ;
6504 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6505 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6506 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6510 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6511 echo "${ECHO_T}\"Not found\"" >&6; };
6515 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6516 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6518 if test "$LN_S" = "ln -s"; then
6519 { echo "$as_me:$LINENO: result: yes" >&5
6520 echo "${ECHO_T}yes" >&6; }
6522 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6523 echo "${ECHO_T}no, using $LN_S" >&6; }
6526 # Extract the first word of "cmp", so it can be a program name with args.
6527 set dummy cmp; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_path_CMP+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6558 if test -n "$CMP"; then
6559 { echo "$as_me:$LINENO: result: $CMP" >&5
6560 echo "${ECHO_T}$CMP" >&6; }
6562 { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6567 # Extract the first word of "cp", so it can be a program name with args.
6568 set dummy cp; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_path_CP+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6599 if test -n "$CP"; then
6600 { echo "$as_me:$LINENO: result: $CP" >&5
6601 echo "${ECHO_T}$CP" >&6; }
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6608 # Extract the first word of "date", so it can be a program name with args.
6609 set dummy date; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_path_DATE+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6639 DATE=$ac_cv_path_DATE
6640 if test -n "$DATE"; then
6641 { echo "$as_me:$LINENO: result: $DATE" >&5
6642 echo "${ECHO_T}$DATE" >&6; }
6644 { echo "$as_me:$LINENO: result: no" >&5
6645 echo "${ECHO_T}no" >&6; }
6649 # Extract the first word of "find", so it can be a program name with args.
6650 set dummy find; ac_word=$2
6651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653 if test "${ac_cv_path_FIND+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6668 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6680 FIND=$ac_cv_path_FIND
6681 if test -n "$FIND"; then
6682 { echo "$as_me:$LINENO: result: $FIND" >&5
6683 echo "${ECHO_T}$FIND" >&6; }
6685 { echo "$as_me:$LINENO: result: no" >&5
6686 echo "${ECHO_T}no" >&6; }
6690 # Extract the first word of "grep", so it can be a program name with args.
6691 set dummy grep; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_GREP+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6721 GREP=$ac_cv_path_GREP
6722 if test -n "$GREP"; then
6723 { echo "$as_me:$LINENO: result: $GREP" >&5
6724 echo "${ECHO_T}$GREP" >&6; }
6726 { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6731 # Extract the first word of "mkdir", so it can be a program name with args.
6732 set dummy mkdir; ac_word=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_path_MKDIR+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6762 MKDIR=$ac_cv_path_MKDIR
6763 if test -n "$MKDIR"; then
6764 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6765 echo "${ECHO_T}$MKDIR" >&6; }
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6772 # Extract the first word of "mv", so it can be a program name with args.
6773 set dummy mv; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_MV+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6804 if test -n "$MV"; then
6805 { echo "$as_me:$LINENO: result: $MV" >&5
6806 echo "${ECHO_T}$MV" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_RANLIB+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 if test -n "$RANLIB"; then
6822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 RANLIB=$ac_cv_prog_RANLIB
6842 if test -n "$RANLIB"; then
6843 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6844 echo "${ECHO_T}$RANLIB" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6852 if test -z "$ac_cv_prog_RANLIB"; then
6853 ac_ct_RANLIB=$RANLIB
6854 # Extract the first word of "ranlib", so it can be a program name with args.
6855 set dummy ranlib; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 if test -n "$ac_ct_RANLIB"; then
6862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_RANLIB="ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6882 if test -n "$ac_ct_RANLIB"; then
6883 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6884 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6890 if test "x$ac_ct_RANLIB" = x; then
6893 case $cross_compiling:$ac_tool_warned in
6895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896 whose name does not start with the host triplet. If you think this
6897 configuration is useful to you, please write to autoconf@gnu.org." >&5
6898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet. If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901 ac_tool_warned=yes ;;
6903 RANLIB=$ac_ct_RANLIB
6906 RANLIB="$ac_cv_prog_RANLIB"
6909 # Extract the first word of "rm", so it can be a program name with args.
6910 set dummy rm; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_path_RM+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6941 if test -n "$RM"; then
6942 { echo "$as_me:$LINENO: result: $RM" >&5
6943 echo "${ECHO_T}$RM" >&6; }
6945 { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6950 # Extract the first word of "sed", so it can be a program name with args.
6951 set dummy sed; ac_word=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_path_SED+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6982 if test -n "$SED"; then
6983 { echo "$as_me:$LINENO: result: $SED" >&5
6984 echo "${ECHO_T}$SED" >&6; }
6986 { echo "$as_me:$LINENO: result: no" >&5
6987 echo "${ECHO_T}no" >&6; }
6991 # Extract the first word of "tar", so it can be a program name with args.
6992 set dummy tar; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_path_TAR+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7023 if test -n "$TAR"; then
7024 { echo "$as_me:$LINENO: result: $TAR" >&5
7025 echo "${ECHO_T}$TAR" >&6; }
7027 { echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6; }
7032 # Extract the first word of "pwd", so it can be a program name with args.
7033 set dummy pwd; ac_word=$2
7034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036 if test "${ac_cv_path_BINPWD+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7063 BINPWD=$ac_cv_path_BINPWD
7064 if test -n "$BINPWD"; then
7065 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7066 echo "${ECHO_T}$BINPWD" >&6; }
7068 { echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6; }
7074 # Extract the first word of "Graphviz", so it can be a program name with args.
7075 set dummy Graphviz; ac_word=$2
7076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7093 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7105 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7106 if test -n "$GRAPHVIZ"; then
7107 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7108 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7110 { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7115 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7117 cat >>confdefs.h <<\_ACEOF
7118 #define HAVE_GRAPHVIZ 1
7121 if test "$llvm_cv_os_type" == "MingW" ; then
7122 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7125 cat >>confdefs.h <<_ACEOF
7126 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7130 # Extract the first word of "dot", so it can be a program name with args.
7131 set dummy dot; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_DOT+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7162 if test -n "$DOT"; then
7163 { echo "$as_me:$LINENO: result: $DOT" >&5
7164 echo "${ECHO_T}$DOT" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7171 if test "$DOT" != "echo dot" ; then
7173 cat >>confdefs.h <<\_ACEOF
7177 if test "$llvm_cv_os_type" == "MingW" ; then
7178 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7181 cat >>confdefs.h <<_ACEOF
7182 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7186 for ac_prog in gv gsview32
7188 # Extract the first word of "$ac_prog", so it can be a program name with args.
7189 set dummy $ac_prog; ac_word=$2
7190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192 if test "${ac_cv_path_GV+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 if test -n "$GV"; then
7220 { echo "$as_me:$LINENO: result: $GV" >&5
7221 echo "${ECHO_T}$GV" >&6; }
7223 { echo "$as_me:$LINENO: result: no" >&5
7224 echo "${ECHO_T}no" >&6; }
7228 test -n "$GV" && break
7230 test -n "$GV" || GV="echo gv"
7232 if test "$GV" != "echo gv" ; then
7234 cat >>confdefs.h <<\_ACEOF
7238 if test "$llvm_cv_os_type" == "MingW" ; then
7239 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7242 cat >>confdefs.h <<_ACEOF
7243 #define LLVM_PATH_GV "$GV${EXEEXT}"
7247 # Extract the first word of "dotty", so it can be a program name with args.
7248 set dummy dotty; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_DOTTY+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7278 DOTTY=$ac_cv_path_DOTTY
7279 if test -n "$DOTTY"; then
7280 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7281 echo "${ECHO_T}$DOTTY" >&6; }
7283 { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7288 if test "$DOTTY" != "echo dotty" ; then
7290 cat >>confdefs.h <<\_ACEOF
7291 #define HAVE_DOTTY 1
7294 if test "$llvm_cv_os_type" == "MingW" ; then
7295 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7298 cat >>confdefs.h <<_ACEOF
7299 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7305 # Extract the first word of "perl", so it can be a program name with args.
7306 set dummy perl; ac_word=$2
7307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7309 if test "${ac_cv_path_PERL+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7336 PERL=$ac_cv_path_PERL
7337 if test -n "$PERL"; then
7338 { echo "$as_me:$LINENO: result: $PERL" >&5
7339 echo "${ECHO_T}$PERL" >&6; }
7341 { echo "$as_me:$LINENO: result: no" >&5
7342 echo "${ECHO_T}no" >&6; }
7346 if test "$PERL" != "none"; then
7347 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7348 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7349 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7350 { echo "$as_me:$LINENO: result: yes" >&5
7351 echo "${ECHO_T}yes" >&6; }
7354 { echo "$as_me:$LINENO: result: not found" >&5
7355 echo "${ECHO_T}not found" >&6; }
7360 if test x"$PERL" = xnone; then
7368 # Find a good install program. We prefer a C program (faster),
7369 # so one script is as good as another. But avoid the broken or
7370 # incompatible versions:
7371 # SysV /etc/install, /usr/sbin/install
7372 # SunOS /usr/etc/install
7373 # IRIX /sbin/install
7375 # AmigaOS /C/install, which installs bootblocks on floppy discs
7376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7379 # OS/2's system install, which has a completely different semantic
7380 # ./install, which can be erroneously created by make from ./install.sh.
7381 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7383 if test -z "$INSTALL"; then
7384 if test "${ac_cv_path_install+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 # Account for people who put trailing slashes in PATH elements.
7394 ./ | .// | /cC/* | \
7395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7396 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7399 # OSF1 and SCO ODT 3.0 have their own names for install.
7400 # Don't use installbsd from OSF since it installs stuff as root
7402 for ac_prog in ginstall scoinst install; do
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7405 if test $ac_prog = install &&
7406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7407 # AIX install. It has an incompatible calling convention.
7409 elif test $ac_prog = install &&
7410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7411 # program-specific install script used by HP pwplus--don't use.
7414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7427 if test "${ac_cv_path_install+set}" = set; then
7428 INSTALL=$ac_cv_path_install
7430 # As a last resort, use the slow shell script. Don't cache a
7431 # value for INSTALL within a source directory, because that will
7432 # break other packages using the cache if that directory is
7433 # removed, or if the value is a relative name.
7434 INSTALL=$ac_install_sh
7437 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7438 echo "${ECHO_T}$INSTALL" >&6; }
7440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7441 # It thinks the first close brace ends the variable substitution.
7442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7449 # Extract the first word of "bzip2", so it can be a program name with args.
7450 set dummy bzip2; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_path_BZIP2+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7480 BZIP2=$ac_cv_path_BZIP2
7481 if test -n "$BZIP2"; then
7482 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7483 echo "${ECHO_T}$BZIP2" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7490 # Extract the first word of "doxygen", so it can be a program name with args.
7491 set dummy doxygen; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7521 DOXYGEN=$ac_cv_path_DOXYGEN
7522 if test -n "$DOXYGEN"; then
7523 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7524 echo "${ECHO_T}$DOXYGEN" >&6; }
7526 { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7531 # Extract the first word of "groff", so it can be a program name with args.
7532 set dummy groff; ac_word=$2
7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535 if test "${ac_cv_path_GROFF+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7562 GROFF=$ac_cv_path_GROFF
7563 if test -n "$GROFF"; then
7564 { echo "$as_me:$LINENO: result: $GROFF" >&5
7565 echo "${ECHO_T}$GROFF" >&6; }
7567 { echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6; }
7572 # Extract the first word of "gzip", so it can be a program name with args.
7573 set dummy gzip; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_GZIP+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7603 GZIP=$ac_cv_path_GZIP
7604 if test -n "$GZIP"; then
7605 { echo "$as_me:$LINENO: result: $GZIP" >&5
7606 echo "${ECHO_T}$GZIP" >&6; }
7608 { echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6; }
7613 # Extract the first word of "pod2html", so it can be a program name with args.
7614 set dummy pod2html; ac_word=$2
7615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7617 if test "${ac_cv_path_POD2HTML+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7632 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7644 POD2HTML=$ac_cv_path_POD2HTML
7645 if test -n "$POD2HTML"; then
7646 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7647 echo "${ECHO_T}$POD2HTML" >&6; }
7649 { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7654 # Extract the first word of "pod2man", so it can be a program name with args.
7655 set dummy pod2man; ac_word=$2
7656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658 if test "${ac_cv_path_POD2MAN+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7685 POD2MAN=$ac_cv_path_POD2MAN
7686 if test -n "$POD2MAN"; then
7687 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7688 echo "${ECHO_T}$POD2MAN" >&6; }
7690 { echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6; }
7695 # Extract the first word of "runtest", so it can be a program name with args.
7696 set dummy runtest; ac_word=$2
7697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7699 if test "${ac_cv_path_RUNTEST+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7714 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7726 RUNTEST=$ac_cv_path_RUNTEST
7727 if test -n "$RUNTEST"; then
7728 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7729 echo "${ECHO_T}$RUNTEST" >&6; }
7731 { echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6; }
7738 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7739 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7741 # Check whether --with-tclinclude was given.
7742 if test "${with_tclinclude+set}" = set; then
7743 withval=$with_tclinclude; with_tclinclude=${withval}
7748 if test "${ac_cv_path_tclsh+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 if test x"${with_tclinclude}" != x ; then
7753 if test -f ${with_tclinclude}/tclsh ; then
7754 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7755 elif test -f ${with_tclinclude}/src/tclsh ; then
7756 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7758 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7759 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7760 { (exit 1); exit 1; }; }
7764 if test x"${ac_cv_path_tclsh}" = x ; then
7765 { echo "$as_me:$LINENO: result: none" >&5
7766 echo "${ECHO_T}none" >&6; }
7767 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770 set dummy $ac_prog; ac_word=$2
7771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773 if test "${ac_cv_path_TCLSH+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7788 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 TCLSH=$ac_cv_path_TCLSH
7800 if test -n "$TCLSH"; then
7801 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7802 echo "${ECHO_T}$TCLSH" >&6; }
7804 { echo "$as_me:$LINENO: result: no" >&5
7805 echo "${ECHO_T}no" >&6; }
7809 test -n "$TCLSH" && break
7812 if test x"${TCLSH}" = x ; then
7813 ac_cv_path_tclsh='';
7815 ac_cv_path_tclsh="${TCLSH}";
7818 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7819 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7820 TCLSH="${ac_cv_path_tclsh}"
7826 # Extract the first word of "zip", so it can be a program name with args.
7827 set dummy zip; ac_word=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_path_ZIP+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7858 if test -n "$ZIP"; then
7859 { echo "$as_me:$LINENO: result: $ZIP" >&5
7860 echo "${ECHO_T}$ZIP" >&6; }
7862 { echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6; }
7868 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7869 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7870 if test "${llvm_cv_link_use_r+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7880 CFLAGS="$CFLAGS -Wl,-R."
7881 cat >conftest.$ac_ext <<_ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7891 int main() { return 0; }
7896 rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (ac_try="$ac_link"
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_link") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7911 { (case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_try") 2>&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; } &&
7920 { ac_try='test -s conftest$ac_exeext'
7921 { (case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_try") 2>&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 llvm_cv_link_use_r=yes
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 llvm_cv_link_use_r=no
7938 rm -f core conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7942 ac_cpp='$CPP $CPPFLAGS'
7943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7949 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7950 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7951 if test "$llvm_cv_link_use_r" = yes ; then
7953 cat >>confdefs.h <<\_ACEOF
7954 #define HAVE_LINK_R 1
7962 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7963 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7964 if test "${ac_cv_c_const+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7977 /* FIXME: Include the comments suggested by Paul. */
7979 /* Ultrix mips cc rejects this. */
7980 typedef int charset[2];
7982 /* SunOS 4.1.1 cc rejects this. */
7983 char const *const *ccp;
7985 /* NEC SVR4.0.2 mips cc rejects this. */
7986 struct point {int x, y;};
7987 static struct point const zero = {0,0};
7988 /* AIX XL C 1.02.0.0 rejects this.
7989 It does not let you subtract one const X* pointer from another in
7990 an arm of an if-expression whose if-part is not a constant
7992 const char *g = "string";
7993 ccp = &g + (g ? g-g : 0);
7994 /* HPUX 7.0 cc rejects these. */
7997 ccp = (char const *const *) p;
7998 { /* SCO 3.2v4 cc rejects this. */
8000 char const *s = 0 ? (char *) 0 : (char const *) 0;
8005 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8007 const int *foo = &x[0];
8010 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8011 typedef const int *iptr;
8015 { /* AIX XL C 1.02.0.0 rejects this saying
8016 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8017 struct s { int j; const int *ap[3]; };
8018 struct s *b; b->j = 5;
8020 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8024 return !x[0] && !zero.x;
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
8056 { (case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_try") 2>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8076 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8077 if test $ac_cv_c_const = no; then
8079 cat >>confdefs.h <<\_ACEOF
8091 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8092 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8093 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8094 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 cat >conftest.$ac_ext <<_ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 #include <sys/types.h>
8116 rm -f conftest.$ac_objext
8117 if { (ac_try="$ac_compile"
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_compile") 2>conftest.er1
8125 grep -v '^ *+' conftest.er1 >conftest.err
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } &&
8130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_try") 2>&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 eval "$as_ac_Header=yes"
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 eval "$as_ac_Header=no"
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 ac_res=`eval echo '${'$as_ac_Header'}'`
8161 { echo "$as_me:$LINENO: result: $ac_res" >&5
8162 echo "${ECHO_T}$ac_res" >&6; }
8163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8164 cat >>confdefs.h <<_ACEOF
8165 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8168 ac_header_dirent=$ac_hdr; break
8172 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8173 if test $ac_header_dirent = dirent.h; then
8174 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8175 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8176 if test "${ac_cv_search_opendir+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 ac_func_search_save_LIBS=$LIBS
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8187 /* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8202 for ac_lib in '' dir; do
8203 if test -z "$ac_lib"; then
8204 ac_res="none required"
8207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_link") 2>conftest.er1
8218 grep -v '^ *+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; } &&
8233 { ac_try='test -s conftest$ac_exeext'
8234 { (case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_try") 2>&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_search_opendir=$ac_res
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8251 rm -f core conftest.err conftest.$ac_objext \
8253 if test "${ac_cv_search_opendir+set}" = set; then
8257 if test "${ac_cv_search_opendir+set}" = set; then
8260 ac_cv_search_opendir=no
8263 LIBS=$ac_func_search_save_LIBS
8265 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8266 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8267 ac_res=$ac_cv_search_opendir
8268 if test "$ac_res" != no; then
8269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8274 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8275 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8276 if test "${ac_cv_search_opendir+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 ac_func_search_save_LIBS=$LIBS
8280 cat >conftest.$ac_ext <<_ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8287 /* Override any GCC internal prototype to avoid an error.
8288 Use char because int might match the return type of a GCC
8289 builtin and then its argument prototype would still apply. */
8302 for ac_lib in '' x; do
8303 if test -z "$ac_lib"; then
8304 ac_res="none required"
8307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (ac_try="$ac_link"
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_link") 2>conftest.er1
8318 grep -v '^ *+' conftest.er1 >conftest.err
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_cv_search_opendir=$ac_res
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8351 rm -f core conftest.err conftest.$ac_objext \
8353 if test "${ac_cv_search_opendir+set}" = set; then
8357 if test "${ac_cv_search_opendir+set}" = set; then
8360 ac_cv_search_opendir=no
8363 LIBS=$ac_func_search_save_LIBS
8365 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8366 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8367 ac_res=$ac_cv_search_opendir
8368 if test "$ac_res" != no; then
8369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8376 for ac_header in dlfcn.h
8378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 ac_res=`eval echo '${'$as_ac_Header'}'`
8386 { echo "$as_me:$LINENO: result: $ac_res" >&5
8387 echo "${ECHO_T}$ac_res" >&6; }
8389 # Is the header compilable?
8390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8392 cat >conftest.$ac_ext <<_ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 $ac_includes_default
8399 #include <$ac_header>
8401 rm -f conftest.$ac_objext
8402 if { (ac_try="$ac_compile"
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8410 grep -v '^ *+' conftest.er1 >conftest.err
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
8415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try='test -s conftest.$ac_objext'
8426 { (case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_try") 2>&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_header_compiler=yes
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 ac_header_compiler=no
8443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445 echo "${ECHO_T}$ac_header_compiler" >&6; }
8447 # Is the header present?
8448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 #include <$ac_header>
8458 if { (ac_try="$ac_cpp conftest.$ac_ext"
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8466 grep -v '^ *+' conftest.er1 >conftest.err
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } >/dev/null; then
8471 if test -s conftest.err; then
8472 ac_cpp_err=$ac_c_preproc_warn_flag
8473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8480 if test -z "$ac_cpp_err"; then
8481 ac_header_preproc=yes
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 ac_header_preproc=no
8489 rm -f conftest.err conftest.$ac_ext
8490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8491 echo "${ECHO_T}$ac_header_preproc" >&6; }
8493 # So? What about this header?
8494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8500 ac_header_preproc=yes
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8516 ## ----------------------------------- ##
8517 ## Report this to llvmbugs@cs.uiuc.edu ##
8518 ## ----------------------------------- ##
8520 ) | sed "s/^/$as_me: WARNING: /" >&2
8523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 eval "$as_ac_Header=\$ac_header_preproc"
8530 ac_res=`eval echo '${'$as_ac_Header'}'`
8531 { echo "$as_me:$LINENO: result: $ac_res" >&5
8532 echo "${ECHO_T}$ac_res" >&6; }
8535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8536 cat >>confdefs.h <<_ACEOF
8537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8544 # Check whether --enable-ltdl-install was given.
8545 if test "${enable_ltdl_install+set}" = set; then
8546 enableval=$enable_ltdl_install;
8552 if test x"${enable_ltdl_install-no}" != xno; then
8554 INSTALL_LTDL_FALSE='#'
8556 INSTALL_LTDL_TRUE='#'
8562 if test x"${enable_ltdl_convenience-no}" != xno; then
8563 CONVENIENCE_LTDL_TRUE=
8564 CONVENIENCE_LTDL_FALSE='#'
8566 CONVENIENCE_LTDL_TRUE='#'
8567 CONVENIENCE_LTDL_FALSE=
8571 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8572 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8574 libname_spec='lib$name'
8582 shlibpath_overrides_runpath=unknown
8584 dynamic_linker="$host_os ld.so"
8585 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8586 if test "$GCC" = yes; then
8587 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8588 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8589 # if the path contains ";" then we assume it to be the separator
8590 # otherwise default to the standard path separator (i.e. ":") - it is
8591 # assumed that no part of a normal pathname contains ";" but that should
8592 # okay in the real world where ";" in dirpaths is itself problematic.
8593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8598 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8600 need_lib_prefix=unknown
8601 hardcode_into_libs=no
8603 # when you set need_version to no, make sure it does not cause -set_version
8604 # flags to be left without arguments
8605 need_version=unknown
8610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8611 shlibpath_var=LIBPATH
8613 # AIX 3 has no versioning support, so we append a major version to the name.
8614 soname_spec='${libname}${release}${shared_ext}$major'
8621 hardcode_into_libs=yes
8622 if test "$host_cpu" = ia64; then
8623 # AIX 5 supports IA64
8624 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8625 shlibpath_var=LD_LIBRARY_PATH
8627 # With GCC up to 2.95.x, collect2 would create an import file
8628 # for dependence libraries. The import file would start with
8629 # the line `#! .'. This would cause the generated library to
8630 # depend on `.', always an invalid library. This was fixed in
8631 # development snapshots of GCC prior to 3.0.
8633 aix4 | aix4.[01] | aix4.[01].*)
8634 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8636 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8643 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8644 # soname into executable. Probably we can add versioning support to
8645 # collect2, so additional links can be useful in future.
8646 if test "$aix_use_runtimelinking" = yes; then
8647 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8648 # instead of lib<name>.a to let people know that these are not
8649 # typical AIX shared libraries.
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8652 # We preserve .a as extension for shared libraries through AIX4.2
8653 # and later when we are not doing run time linking.
8654 library_names_spec='${libname}${release}.a $libname.a'
8655 soname_spec='${libname}${release}${shared_ext}$major'
8657 shlibpath_var=LIBPATH
8662 library_names_spec='$libname.ixlibrary $libname.a'
8663 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8664 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8668 library_names_spec='${libname}${shared_ext}'
8669 dynamic_linker="$host_os ld.so"
8670 shlibpath_var=LIBRARY_PATH
8676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8677 soname_spec='${libname}${release}${shared_ext}$major'
8678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8679 shlibpath_var=LD_LIBRARY_PATH
8680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8682 # the default ld.so.conf also contains /usr/contrib/lib and
8683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8684 # libtool to hard-code these into programs
8687 cygwin* | mingw* | pw32*)
8688 version_type=windows
8693 case $GCC,$host_os in
8694 yes,cygwin* | yes,mingw* | yes,pw32*)
8695 library_names_spec='$libname.dll.a'
8696 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8697 postinstall_cmds='base_file=`basename \${file}`~
8698 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8699 dldir=$destdir/`dirname \$dlpath`~
8700 test -d \$dldir || mkdir -p \$dldir~
8701 $install_prog $dir/$dlname \$dldir/$dlname~
8702 chmod a+x \$dldir/$dlname'
8703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8704 dlpath=$dir/\$dldll~
8706 shlibpath_overrides_runpath=yes
8710 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8711 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8712 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8715 # MinGW DLLs use traditional 'lib' prefix
8716 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8717 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8718 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8719 # It is most probably a Windows format PATH printed by
8720 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8721 # path with ; separators, and with drive letters. We can handle the
8722 # drive letters (cygwin fileutils understands them), so leave them,
8723 # especially as we might pass files found there to a mingw objdump,
8724 # which wouldn't understand a cygwinified path. Ahh.
8725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8731 # pw32 DLLs use 'pw' prefix rather than 'lib'
8732 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8738 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8741 dynamic_linker='Win32 ld.exe'
8742 # FIXME: first we should search . and the directory the executable is in
8746 darwin* | rhapsody*)
8747 dynamic_linker="$host_os dyld"
8751 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8752 soname_spec='${libname}${release}${major}$shared_ext'
8753 shlibpath_overrides_runpath=yes
8754 shlibpath_var=DYLD_LIBRARY_PATH
8755 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8756 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8757 if test "$GCC" = yes; then
8758 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8760 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8762 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 shlibpath_var=LD_LIBRARY_PATH
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 shlibpath_var=LD_LIBRARY_PATH
8785 shlibpath_overrides_runpath=no
8786 hardcode_into_libs=yes
8787 dynamic_linker='GNU ld.so'
8790 freebsd* | dragonfly*)
8791 # DragonFly does not have aout. When/if they implement a new
8792 # versioning mechanism, adjust this.
8793 if test -x /usr/bin/objformat; then
8794 objformat=`/usr/bin/objformat`
8797 freebsd[123]*) objformat=aout ;;
8801 version_type=freebsd-$objformat
8802 case $version_type in
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8813 shlibpath_var=LD_LIBRARY_PATH
8816 shlibpath_overrides_runpath=yes
8818 freebsd3.[01]* | freebsdelf3.[01]*)
8819 shlibpath_overrides_runpath=yes
8820 hardcode_into_libs=yes
8822 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8823 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8824 shlibpath_overrides_runpath=no
8825 hardcode_into_libs=yes
8827 freebsd*) # from 4.6 on
8828 shlibpath_overrides_runpath=yes
8829 hardcode_into_libs=yes
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 hardcode_into_libs=yes
8844 hpux9* | hpux10* | hpux11*)
8845 # Give a soname corresponding to the major version so that dld.sl refuses to
8846 # link against other versions.
8853 hardcode_into_libs=yes
8854 dynamic_linker="$host_os dld.so"
8855 shlibpath_var=LD_LIBRARY_PATH
8856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 if test "X$HPUX_IA64_MODE" = X32; then
8860 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8868 hardcode_into_libs=yes
8869 dynamic_linker="$host_os dld.sl"
8870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8879 dynamic_linker="$host_os dld.sl"
8880 shlibpath_var=SHLIB_PATH
8881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8886 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8887 postinstall_cmds='chmod 555 $lib'
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 shlibpath_overrides_runpath=no
8899 hardcode_into_libs=yes
8902 irix5* | irix6* | nonstopux*)
8904 nonstopux*) version_type=nonstopux ;;
8906 if test "$lt_cv_prog_gnu_ld" = yes; then
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8917 irix5* | nonstopux*)
8921 case $LD in # libtool.m4 will add one of these switches to LD
8922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8923 libsuff= shlibsuff= libmagic=32-bit;;
8924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8925 libsuff=32 shlibsuff=N32 libmagic=N32;;
8926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8928 *) libsuff= shlibsuff= libmagic=never-match;;
8932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8933 shlibpath_overrides_runpath=no
8934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8936 hardcode_into_libs=yes
8939 # No shared lib support for Linux oldld, aout, or coff.
8940 linux*oldld* | linux*aout* | linux*coff*)
8944 # This must be Linux ELF.
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=no
8954 # This implies no fast_install, which is unacceptable.
8955 # Some rework will be needed to allow for fast_install
8956 # before this can be enabled.
8957 hardcode_into_libs=yes
8959 # Append ld.so.conf contents to the search path
8960 if test -f /etc/ld.so.conf; then
8961 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8962 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8965 # We used to test for /lib/ld.so.1 and disable shared libraries on
8966 # powerpc, because MkLinux only supported shared libraries with the
8967 # GNU dynamic linker. Since this was broken with cross compilers,
8968 # most powerpc-linux boxes support dynamic linking these days and
8969 # people can always --disable-shared, the test was removed, and we
8970 # assume the GNU/Linux dynamic linker is in use.
8971 dynamic_linker='GNU/Linux ld.so'
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=no
8982 hardcode_into_libs=yes
8983 dynamic_linker='GNU ld.so'
8990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8993 dynamic_linker='NetBSD (a.out) ld.so'
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 dynamic_linker='NetBSD ld.elf_so'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 shlibpath_overrides_runpath=yes
9001 hardcode_into_libs=yes
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 shlibpath_overrides_runpath=yes
9023 sys_lib_dlsearch_path_spec="/usr/lib"
9025 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9027 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9028 *) need_version=no ;;
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9035 openbsd2.[89] | openbsd2.[89].*)
9036 shlibpath_overrides_runpath=no
9039 shlibpath_overrides_runpath=yes
9043 shlibpath_overrides_runpath=yes
9048 libname_spec='$name'
9051 library_names_spec='$libname${shared_ext} $libname.a'
9052 dynamic_linker='OS/2 ld.exe'
9053 shlibpath_var=LIBPATH
9056 osf3* | osf4* | osf5*)
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9064 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes
9075 hardcode_into_libs=yes
9076 # ldd complains unless libraries are executable
9077 postinstall_cmds='chmod +x $lib'
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9083 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath=yes
9086 if test "$with_gnu_ld" = yes; then
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 case $host_vendor in
9099 shlibpath_overrides_runpath=no
9101 export_dynamic_flag_spec='${wl}-Blargedynsym'
9102 runpath_var=LD_RUN_PATH
9110 shlibpath_overrides_runpath=no
9111 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9117 if test -d /usr/nec ;then
9119 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9120 soname_spec='$libname${shared_ext}.$major'
9121 shlibpath_var=LD_LIBRARY_PATH
9125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9126 version_type=freebsd-elf
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 hardcode_into_libs=yes
9133 if test "$with_gnu_ld" = yes; then
9134 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9135 shlibpath_overrides_runpath=no
9137 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9138 shlibpath_overrides_runpath=yes
9141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9145 sys_lib_dlsearch_path_spec='/usr/lib'
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9159 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9160 echo "${ECHO_T}$dynamic_linker" >&6; }
9161 test "$dynamic_linker" = no && can_build_shared=no
9163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9164 if test "$GCC" = yes; then
9165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9169 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9170 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9171 if test "${libltdl_cv_shlibext+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 eval libltdl_cv_shlibext=$shrext_cmds
9179 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9180 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9181 if test -n "$libltdl_cv_shlibext"; then
9183 cat >>confdefs.h <<_ACEOF
9184 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9190 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9191 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9192 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 libltdl_cv_shlibpath_var="$shlibpath_var"
9197 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9198 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9199 if test -n "$libltdl_cv_shlibpath_var"; then
9201 cat >>confdefs.h <<_ACEOF
9202 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9208 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9209 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9210 if test "${libltdl_cv_sys_search_path+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9215 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9216 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9217 if test -n "$libltdl_cv_sys_search_path"; then
9219 for dir in $libltdl_cv_sys_search_path; do
9220 if test -z "$sys_search_path"; then
9221 sys_search_path="$dir"
9223 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9227 cat >>confdefs.h <<_ACEOF
9228 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9233 { echo "$as_me:$LINENO: checking for objdir" >&5
9234 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9235 if test "${libltdl_cv_objdir+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 libltdl_cv_objdir="$objdir"
9239 if test -n "$objdir"; then
9242 rm -f .libs 2>/dev/null
9243 mkdir .libs 2>/dev/null
9244 if test -d .libs; then
9245 libltdl_cv_objdir=.libs
9247 # MS-DOS does not allow filenames that begin with a dot.
9248 libltdl_cv_objdir=_libs
9250 rmdir .libs 2>/dev/null
9254 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9255 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9257 cat >>confdefs.h <<_ACEOF
9258 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9266 # Check for command to grab the raw symbol name followed by C symbol from nm.
9267 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9268 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9269 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 # These are sane defaults that work on at least a few old systems.
9274 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9276 # Character class describing NM global symbol codes.
9277 symcode='[BCDEGRST]'
9279 # Regexp to match symbols that can be accessed directly from C.
9280 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9282 # Transform an extracted symbol line into a proper C declaration
9283 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9285 # Transform an extracted symbol line into symbol name and symbol address
9286 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9288 # Define system-specific variables.
9293 cygwin* | mingw* | pw32*)
9294 symcode='[ABCDGISTW]'
9296 hpux*) # Its linker distinguishes data from code symbols
9297 if test "$host_cpu" = ia64; then
9298 symcode='[ABCDEGRST]'
9300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9301 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9304 if test "$host_cpu" = ia64; then
9305 symcode='[ABCDGIRSTW]'
9306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9307 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9311 symcode='[BCDEGRST]'
9314 symcode='[BCDEGQRST]'
9325 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9333 # Handle CRLF in mingw tool chain
9337 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9341 # If we're using GNU nm, then use its standard symbol codes.
9342 case `$NM -V 2>&1` in
9343 *GNU* | *'with BFD'*)
9344 symcode='[ABCDGIRSTW]' ;;
9347 # Try without a prefix undercore, then with it.
9348 for ac_symprfx in "" "_"; do
9350 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9351 symxfrm="\\1 $ac_symprfx\\2 \\2"
9353 # Write the raw and C identifiers.
9354 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9356 # Check to see that the pipe works correctly.
9360 cat > conftest.$ac_ext <<EOF
9365 void nm_test_func(){}
9369 int main(){nm_test_var='a';nm_test_func();return(0);}
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; then
9377 # Now try to grab the symbols.
9379 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9380 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } && test -s "$nlist"; then
9384 # Try sorting and uniquifying the output.
9385 if sort "$nlist" | uniq > "$nlist"T; then
9386 mv -f "$nlist"T "$nlist"
9391 # Make sure that we snagged all the symbols we need.
9392 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9393 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9394 cat <<EOF > conftest.$ac_ext
9400 # Now generate the symbol file.
9401 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9403 cat <<EOF >> conftest.$ac_ext
9404 #if defined (__STDC__) && __STDC__
9405 # define lt_ptr_t void *
9407 # define lt_ptr_t char *
9411 /* The mapping between symbol names and symbols. */
9416 lt_preloaded_symbols[] =
9419 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9420 cat <<\EOF >> conftest.$ac_ext
9428 # Now try linking the two files.
9429 mv conftest.$ac_objext conftstm.$ac_objext
9430 lt_save_LIBS="$LIBS"
9431 lt_save_CFLAGS="$CFLAGS"
9432 LIBS="conftstm.$ac_objext"
9433 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9435 (eval $ac_link) 2>&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9441 LIBS="$lt_save_LIBS"
9442 CFLAGS="$lt_save_CFLAGS"
9444 echo "cannot find nm_test_func in $nlist" >&5
9447 echo "cannot find nm_test_var in $nlist" >&5
9450 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9453 echo "$progname: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9456 rm -f conftest* conftst*
9458 # Do not use the global_symbol_pipe unless it works.
9459 if test "$pipe_works" = yes; then
9462 lt_cv_sys_global_symbol_pipe=
9468 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9469 lt_cv_sys_global_symbol_to_cdecl=
9471 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9472 { echo "$as_me:$LINENO: result: failed" >&5
9473 echo "${ECHO_T}failed" >&6; }
9475 { echo "$as_me:$LINENO: result: ok" >&5
9476 echo "${ECHO_T}ok" >&6; }
9480 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9481 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9482 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9486 libltdl_cv_preloaded_symbols=yes
9488 libltdl_cv_preloaded_symbols=no
9492 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9493 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9494 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9496 cat >>confdefs.h <<\_ACEOF
9497 #define HAVE_PRELOADED_SYMBOLS 1
9505 ac_cpp='$CPP $CPPFLAGS'
9506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9511 { echo "$as_me:$LINENO: checking for shl_load" >&5
9512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9513 if test "${ac_cv_func_shl_load+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 cat >conftest.$ac_ext <<_ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9524 #define shl_load innocuous_shl_load
9526 /* System header to define __stub macros and hopefully few prototypes,
9527 which can conflict with char shl_load (); below.
9528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9529 <limits.h> exists even on freestanding compilers. */
9532 # include <limits.h>
9534 # include <assert.h>
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9546 /* The GNU C library defines this for functions which it implements
9547 to always fail with ENOSYS. Some functions are actually named
9548 something starting with __ and the normal name is an alias. */
9549 #if defined __stub_shl_load || defined __stub___shl_load
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_link") 2>conftest.er1
9570 grep -v '^ *+' conftest.er1 >conftest.err
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9576 { (case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_try") 2>&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest$ac_exeext'
9586 { (case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_try") 2>&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 ac_cv_func_shl_load=yes
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_cv_func_shl_load=no
9603 rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9606 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9607 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9608 if test $ac_cv_func_shl_load = yes; then
9610 cat >>confdefs.h <<\_ACEOF
9611 #define HAVE_SHL_LOAD 1
9615 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9616 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9617 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 ac_check_lib_save_LIBS=$LIBS
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9629 /* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (ac_try="$ac_link"
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_link") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_try") 2>&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 ac_cv_lib_dld_shl_load=yes
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_lib_dld_shl_load=no
9686 rm -f core conftest.err conftest.$ac_objext \
9687 conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9690 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9691 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9692 if test $ac_cv_lib_dld_shl_load = yes; then
9694 cat >>confdefs.h <<\_ACEOF
9695 #define HAVE_SHL_LOAD 1
9698 LIBADD_DL="$LIBADD_DL -ldld"
9700 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9701 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9702 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 ac_check_lib_save_LIBS=$LIBS
9707 cat >conftest.$ac_ext <<_ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9714 /* Override any GCC internal prototype to avoid an error.
9715 Use char because int might match the return type of a GCC
9716 builtin and then its argument prototype would still apply. */
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (ac_try="$ac_link"
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744 { (case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_try") 2>&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try='test -s conftest$ac_exeext'
9754 { (case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_try") 2>&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_lib_dl_dlopen=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_lib_dl_dlopen=no
9771 rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
9775 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9777 if test $ac_cv_lib_dl_dlopen = yes; then
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_LIBDL 1
9783 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9785 cat >conftest.$ac_ext <<_ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (ac_try="$ac_link"
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_link") 2>conftest.er1
9812 grep -v '^ *+' conftest.er1 >conftest.err
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9818 { (case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_try") 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_try") 2>&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
9838 cat >>confdefs.h <<\_ACEOF
9839 #define HAVE_LIBDL 1
9841 libltdl_cv_func_dlopen="yes"
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9847 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9848 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 ac_check_lib_save_LIBS=$LIBS
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest$ac_exeext'
9900 { (case "(($ac_try" in
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_try") 2>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_cv_lib_svld_dlopen=yes
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_cv_lib_svld_dlopen=no
9917 rm -f core conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9921 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9922 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9923 if test $ac_cv_lib_svld_dlopen = yes; then
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_LIBDL 1
9929 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9931 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9932 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9933 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 ac_check_lib_save_LIBS=$LIBS
9938 cat >conftest.$ac_ext <<_ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9945 /* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_link") 2>conftest.er1
9969 grep -v '^ *+' conftest.er1 >conftest.err
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; } &&
9984 { ac_try='test -s conftest$ac_exeext'
9985 { (case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_try") 2>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; }; then
9994 ac_cv_lib_dld_dld_link=yes
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9999 ac_cv_lib_dld_dld_link=no
10002 rm -f core conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 LIBS=$ac_check_lib_save_LIBS
10006 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10007 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10008 if test $ac_cv_lib_dld_dld_link = yes; then
10010 cat >>confdefs.h <<\_ACEOF
10014 LIBADD_DL="$LIBADD_DL -ldld"
10016 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10017 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10018 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10029 #define _dyld_func_lookup innocuous__dyld_func_lookup
10031 /* System header to define __stub macros and hopefully few prototypes,
10032 which can conflict with char _dyld_func_lookup (); below.
10033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034 <limits.h> exists even on freestanding compilers. */
10037 # include <limits.h>
10039 # include <assert.h>
10042 #undef _dyld_func_lookup
10044 /* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
10050 char _dyld_func_lookup ();
10051 /* The GNU C library defines this for functions which it implements
10052 to always fail with ENOSYS. Some functions are actually named
10053 something starting with __ and the normal name is an alias. */
10054 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10061 return _dyld_func_lookup ();
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_link") 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10081 { (case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_try") 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; } &&
10090 { ac_try='test -s conftest$ac_exeext'
10091 { (case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_try") 2>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 ac_cv_func__dyld_func_lookup=yes
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10105 ac_cv_func__dyld_func_lookup=no
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10111 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10112 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10113 if test $ac_cv_func__dyld_func_lookup = yes; then
10115 cat >>confdefs.h <<\_ACEOF
10116 #define HAVE_DYLD 1
10130 rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10142 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10144 lt_save_LIBS="$LIBS"
10145 LIBS="$LIBS $LIBADD_DL"
10147 for ac_func in dlerror
10149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 cat >conftest.$ac_ext <<_ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10163 #define $ac_func innocuous_$ac_func
10165 /* System header to define __stub macros and hopefully few prototypes,
10166 which can conflict with char $ac_func (); below.
10167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168 <limits.h> exists even on freestanding compilers. */
10171 # include <limits.h>
10173 # include <assert.h>
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10185 /* The GNU C library defines this for functions which it implements
10186 to always fail with ENOSYS. Some functions are actually named
10187 something starting with __ and the normal name is an alias. */
10188 #if defined __stub_$ac_func || defined __stub___$ac_func
10195 return $ac_func ();
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>conftest.er1
10209 grep -v '^ *+' conftest.er1 >conftest.err
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
10214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_try") 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 eval "$as_ac_var=yes"
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10239 eval "$as_ac_var=no"
10242 rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10245 ac_res=`eval echo '${'$as_ac_var'}'`
10246 { echo "$as_me:$LINENO: result: $ac_res" >&5
10247 echo "${ECHO_T}$ac_res" >&6; }
10248 if test `eval echo '${'$as_ac_var'}'` = yes; then
10249 cat >>confdefs.h <<_ACEOF
10250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10256 LIBS="$lt_save_LIBS"
10259 ac_cpp='$CPP $CPPFLAGS'
10260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10266 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10267 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10268 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 ac_cv_sys_symbol_underscore=no
10272 cat > conftest.$ac_ext <<EOF
10273 void nm_test_func(){}
10274 int main(){nm_test_func;return 0;}
10276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10277 (eval $ac_compile) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; then
10281 # Now try to grab the symbols.
10282 ac_nlist=conftest.nm
10283 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10284 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && test -s "$ac_nlist"; then
10288 # See whether the symbols have a leading underscore.
10289 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10290 ac_cv_sys_symbol_underscore=yes
10292 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10295 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10299 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10302 echo "configure: failed program was:" >&5
10308 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10309 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10312 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10313 if test x"$libltdl_cv_func_dlopen" = xyes ||
10314 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10315 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10316 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10317 if test "${libltdl_cv_need_uscore+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 libltdl_cv_need_uscore=unknown
10322 LIBS="$LIBS $LIBADD_DL"
10323 if test "$cross_compiling" = yes; then :
10324 libltdl_cv_need_uscore=cross
10326 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10327 lt_status=$lt_dlunknown
10328 cat > conftest.$ac_ext <<EOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10339 # define LT_DLGLOBAL RTLD_GLOBAL
10342 # define LT_DLGLOBAL DL_GLOBAL
10344 # define LT_DLGLOBAL 0
10348 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10349 find out it does not work in some platform. */
10350 #ifndef LT_DLLAZY_OR_NOW
10352 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10355 # define LT_DLLAZY_OR_NOW DL_LAZY
10358 # define LT_DLLAZY_OR_NOW RTLD_NOW
10361 # define LT_DLLAZY_OR_NOW DL_NOW
10363 # define LT_DLLAZY_OR_NOW 0
10371 extern "C" void exit (int);
10374 void fnord() { int i=42;}
10377 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10378 int status = $lt_dlunknown;
10382 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10383 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10384 /* dlclose (self); */
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393 (eval $ac_link) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10397 (./conftest; exit; ) >&5 2>/dev/null
10399 case x$lt_status in
10400 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10401 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10402 x$lt_dlunknown|x*) ;;
10405 # compilation failed
10414 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10415 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10419 if test x"$libltdl_cv_need_uscore" = xyes; then
10421 cat >>confdefs.h <<\_ACEOF
10422 #define NEED_USCORE 1
10428 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10429 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10430 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 # PORTME does your system automatically load deplibs for dlopen?
10434 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10435 # For now, we just catch OSes we know something about -- in the
10436 # future, we'll try test this programmatically.
10437 libltdl_cv_sys_dlopen_deplibs=unknown
10439 aix3*|aix4.1.*|aix4.2.*)
10440 # Unknown whether this is true for these versions of AIX, but
10441 # we want this `case' here to explicitly catch those versions.
10442 libltdl_cv_sys_dlopen_deplibs=unknown
10445 libltdl_cv_sys_dlopen_deplibs=yes
10448 # Assuming the user has installed a libdl from somewhere, this is true
10449 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10450 libltdl_cv_sys_dlopen_deplibs=yes
10452 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10453 # GNU and its variants, using gnu ld.so (Glibc)
10454 libltdl_cv_sys_dlopen_deplibs=yes
10457 libltdl_cv_sys_dlopen_deplibs=yes
10460 libltdl_cv_sys_dlopen_deplibs=yes
10462 irix[12345]*|irix6.[01]*)
10463 # Catch all versions of IRIX before 6.2, and indicate that we don't
10464 # know how it worked for any of those versions.
10465 libltdl_cv_sys_dlopen_deplibs=unknown
10468 # The case above catches anything before 6.2, and it's known that
10469 # at 6.2 and later dlopen does load deplibs.
10470 libltdl_cv_sys_dlopen_deplibs=yes
10473 libltdl_cv_sys_dlopen_deplibs=yes
10476 libltdl_cv_sys_dlopen_deplibs=yes
10479 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10480 # it did *not* use an RPATH in a shared library to find objects the
10481 # library depends on, so we explictly say `no'.
10482 libltdl_cv_sys_dlopen_deplibs=no
10484 osf5.0|osf5.0a|osf5.1)
10485 # dlopen *does* load deplibs and with the right loader patch applied
10486 # it even uses RPATH in a shared library to search for shared objects
10487 # that the library depends on, but there's no easy way to know if that
10488 # patch is installed. Since this is the case, all we can really
10489 # say is unknown -- it depends on the patch being installed. If
10490 # it is, this changes to `yes'. Without it, it would be `no'.
10491 libltdl_cv_sys_dlopen_deplibs=unknown
10494 # the two cases above should catch all versions of osf <= 5.1. Read
10495 # the comments above for what we know about them.
10496 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10497 # is used to find them so we can finally say `yes'.
10498 libltdl_cv_sys_dlopen_deplibs=yes
10501 libltdl_cv_sys_dlopen_deplibs=yes
10503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10504 libltdl_cv_sys_dlopen_deplibs=yes
10509 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10510 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10511 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10513 cat >>confdefs.h <<\_ACEOF
10514 #define LTDL_DLOPEN_DEPLIBS 1
10520 for ac_header in argz.h
10522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 ac_res=`eval echo '${'$as_ac_Header'}'`
10530 { echo "$as_me:$LINENO: result: $ac_res" >&5
10531 echo "${ECHO_T}$ac_res" >&6; }
10533 # Is the header compilable?
10534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 $ac_includes_default
10543 #include <$ac_header>
10545 rm -f conftest.$ac_objext
10546 if { (ac_try="$ac_compile"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_compile") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1 >conftest.err
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_try") 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_header_compiler=yes
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 ac_header_compiler=no
10587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10589 echo "${ECHO_T}$ac_header_compiler" >&6; }
10591 # Is the header present?
10592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10594 cat >conftest.$ac_ext <<_ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10600 #include <$ac_header>
10602 if { (ac_try="$ac_cpp conftest.$ac_ext"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } >/dev/null; then
10615 if test -s conftest.err; then
10616 ac_cpp_err=$ac_c_preproc_warn_flag
10617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10624 if test -z "$ac_cpp_err"; then
10625 ac_header_preproc=yes
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 ac_header_preproc=no
10633 rm -f conftest.err conftest.$ac_ext
10634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10635 echo "${ECHO_T}$ac_header_preproc" >&6; }
10637 # So? What about this header?
10638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10644 ac_header_preproc=yes
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10660 ## ----------------------------------- ##
10661 ## Report this to llvmbugs@cs.uiuc.edu ##
10662 ## ----------------------------------- ##
10664 ) | sed "s/^/$as_me: WARNING: /" >&2
10667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 eval "$as_ac_Header=\$ac_header_preproc"
10674 ac_res=`eval echo '${'$as_ac_Header'}'`
10675 { echo "$as_me:$LINENO: result: $ac_res" >&5
10676 echo "${ECHO_T}$ac_res" >&6; }
10679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10680 cat >>confdefs.h <<_ACEOF
10681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10689 { echo "$as_me:$LINENO: checking for error_t" >&5
10690 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10691 if test "${ac_cv_type_error_t+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 cat >conftest.$ac_ext <<_ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10704 typedef error_t ac__type_new_;
10708 if ((ac__type_new_ *) 0)
10710 if (sizeof (ac__type_new_))
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest.$ac_objext'
10741 { (case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_try") 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 ac_cv_type_error_t=yes
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 ac_cv_type_error_t=no
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10761 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10762 if test $ac_cv_type_error_t = yes; then
10764 cat >>confdefs.h <<_ACEOF
10765 #define HAVE_ERROR_T 1
10771 cat >>confdefs.h <<\_ACEOF
10772 #define error_t int
10783 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 cat >conftest.$ac_ext <<_ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10799 #define $ac_func innocuous_$ac_func
10801 /* System header to define __stub macros and hopefully few prototypes,
10802 which can conflict with char $ac_func (); below.
10803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10804 <limits.h> exists even on freestanding compilers. */
10807 # include <limits.h>
10809 # include <assert.h>
10814 /* Override any GCC internal prototype to avoid an error.
10815 Use char because int might match the return type of a GCC
10816 builtin and then its argument prototype would still apply. */
10821 /* The GNU C library defines this for functions which it implements
10822 to always fail with ENOSYS. Some functions are actually named
10823 something starting with __ and the normal name is an alias. */
10824 #if defined __stub_$ac_func || defined __stub___$ac_func
10831 return $ac_func ();
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (ac_try="$ac_link"
10838 case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_link") 2>conftest.er1
10845 grep -v '^ *+' conftest.er1 >conftest.err
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } &&
10850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10851 { (case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_try") 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try='test -s conftest$ac_exeext'
10861 { (case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_try") 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 eval "$as_ac_var=yes"
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 eval "$as_ac_var=no"
10878 rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10881 ac_res=`eval echo '${'$as_ac_var'}'`
10882 { echo "$as_me:$LINENO: result: $ac_res" >&5
10883 echo "${ECHO_T}$ac_res" >&6; }
10884 if test `eval echo '${'$as_ac_var'}'` = yes; then
10885 cat >>confdefs.h <<_ACEOF
10886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10919 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 ac_res=`eval echo '${'$as_ac_Header'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931 echo "${ECHO_T}$ac_res" >&6; }
10933 # Is the header compilable?
10934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10936 cat >conftest.$ac_ext <<_ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 $ac_includes_default
10943 #include <$ac_header>
10945 rm -f conftest.$ac_objext
10946 if { (ac_try="$ac_compile"
10947 case "(($ac_try" in
10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949 *) ac_try_echo=$ac_try;;
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952 (eval "$ac_compile") 2>conftest.er1
10954 grep -v '^ *+' conftest.er1 >conftest.err
10956 cat conftest.err >&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } &&
10959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; } &&
10969 { ac_try='test -s conftest.$ac_objext'
10970 { (case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 (eval "$ac_try") 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_header_compiler=yes
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_header_compiler=no
10987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10989 echo "${ECHO_T}$ac_header_compiler" >&6; }
10991 # Is the header present?
10992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 #include <$ac_header>
11002 if { (ac_try="$ac_cpp conftest.$ac_ext"
11003 case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } >/dev/null; then
11015 if test -s conftest.err; then
11016 ac_cpp_err=$ac_c_preproc_warn_flag
11017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11024 if test -z "$ac_cpp_err"; then
11025 ac_header_preproc=yes
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_header_preproc=no
11033 rm -f conftest.err conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11035 echo "${ECHO_T}$ac_header_preproc" >&6; }
11037 # So? What about this header?
11038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11044 ac_header_preproc=yes
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11060 ## ----------------------------------- ##
11061 ## Report this to llvmbugs@cs.uiuc.edu ##
11062 ## ----------------------------------- ##
11064 ) | sed "s/^/$as_me: WARNING: /" >&2
11067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 eval "$as_ac_Header=\$ac_header_preproc"
11074 ac_res=`eval echo '${'$as_ac_Header'}'`
11075 { echo "$as_me:$LINENO: result: $ac_res" >&5
11076 echo "${ECHO_T}$ac_res" >&6; }
11079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11080 cat >>confdefs.h <<_ACEOF
11081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11092 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 ac_res=`eval echo '${'$as_ac_Header'}'`
11102 { echo "$as_me:$LINENO: result: $ac_res" >&5
11103 echo "${ECHO_T}$ac_res" >&6; }
11105 # Is the header compilable?
11106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11108 cat >conftest.$ac_ext <<_ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 $ac_includes_default
11115 #include <$ac_header>
11117 rm -f conftest.$ac_objext
11118 if { (ac_try="$ac_compile"
11119 case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_compile") 2>conftest.er1
11126 grep -v '^ *+' conftest.er1 >conftest.err
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest.$ac_objext'
11142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_header_compiler=yes
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ac_header_compiler=no
11159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11161 echo "${ECHO_T}$ac_header_compiler" >&6; }
11163 # Is the header present?
11164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11166 cat >conftest.$ac_ext <<_ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
11172 #include <$ac_header>
11174 if { (ac_try="$ac_cpp conftest.$ac_ext"
11175 case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } >/dev/null; then
11187 if test -s conftest.err; then
11188 ac_cpp_err=$ac_c_preproc_warn_flag
11189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11196 if test -z "$ac_cpp_err"; then
11197 ac_header_preproc=yes
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_header_preproc=no
11205 rm -f conftest.err conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11207 echo "${ECHO_T}$ac_header_preproc" >&6; }
11209 # So? What about this header?
11210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11216 ac_header_preproc=yes
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11232 ## ----------------------------------- ##
11233 ## Report this to llvmbugs@cs.uiuc.edu ##
11234 ## ----------------------------------- ##
11236 ) | sed "s/^/$as_me: WARNING: /" >&2
11239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 eval "$as_ac_Header=\$ac_header_preproc"
11246 ac_res=`eval echo '${'$as_ac_Header'}'`
11247 { echo "$as_me:$LINENO: result: $ac_res" >&5
11248 echo "${ECHO_T}$ac_res" >&6; }
11251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11252 cat >>confdefs.h <<_ACEOF
11253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11262 for ac_header in string.h strings.h
11264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 ac_res=`eval echo '${'$as_ac_Header'}'`
11272 { echo "$as_me:$LINENO: result: $ac_res" >&5
11273 echo "${ECHO_T}$ac_res" >&6; }
11275 # Is the header compilable?
11276 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11278 cat >conftest.$ac_ext <<_ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 $ac_includes_default
11285 #include <$ac_header>
11287 rm -f conftest.$ac_objext
11288 if { (ac_try="$ac_compile"
11289 case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_compile") 2>conftest.er1
11296 grep -v '^ *+' conftest.er1 >conftest.err
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } &&
11301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11302 { (case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_try") 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest.$ac_objext'
11312 { (case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_try") 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 ac_header_compiler=yes
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11326 ac_header_compiler=no
11329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11331 echo "${ECHO_T}$ac_header_compiler" >&6; }
11333 # Is the header present?
11334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11336 cat >conftest.$ac_ext <<_ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 #include <$ac_header>
11344 if { (ac_try="$ac_cpp conftest.$ac_ext"
11345 case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11352 grep -v '^ *+' conftest.er1 >conftest.err
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } >/dev/null; then
11357 if test -s conftest.err; then
11358 ac_cpp_err=$ac_c_preproc_warn_flag
11359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11366 if test -z "$ac_cpp_err"; then
11367 ac_header_preproc=yes
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11372 ac_header_preproc=no
11375 rm -f conftest.err conftest.$ac_ext
11376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11377 echo "${ECHO_T}$ac_header_preproc" >&6; }
11379 # So? What about this header?
11380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11386 ac_header_preproc=yes
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11402 ## ----------------------------------- ##
11403 ## Report this to llvmbugs@cs.uiuc.edu ##
11404 ## ----------------------------------- ##
11406 ) | sed "s/^/$as_me: WARNING: /" >&2
11409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 eval "$as_ac_Header=\$ac_header_preproc"
11416 ac_res=`eval echo '${'$as_ac_Header'}'`
11417 { echo "$as_me:$LINENO: result: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11422 cat >>confdefs.h <<_ACEOF
11423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433 for ac_func in strchr index
11435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11449 #define $ac_func innocuous_$ac_func
11451 /* System header to define __stub macros and hopefully few prototypes,
11452 which can conflict with char $ac_func (); below.
11453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11454 <limits.h> exists even on freestanding compilers. */
11457 # include <limits.h>
11459 # include <assert.h>
11464 /* Override any GCC internal prototype to avoid an error.
11465 Use char because int might match the return type of a GCC
11466 builtin and then its argument prototype would still apply. */
11471 /* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474 #if defined __stub_$ac_func || defined __stub___$ac_func
11481 return $ac_func ();
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (ac_try="$ac_link"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_link") 2>conftest.er1
11495 grep -v '^ *+' conftest.er1 >conftest.err
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_try") 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 eval "$as_ac_var=yes"
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 eval "$as_ac_var=no"
11528 rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11531 ac_res=`eval echo '${'$as_ac_var'}'`
11532 { echo "$as_me:$LINENO: result: $ac_res" >&5
11533 echo "${ECHO_T}$ac_res" >&6; }
11534 if test `eval echo '${'$as_ac_var'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11544 for ac_func in strrchr rindex
11546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11547 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 cat >conftest.$ac_ext <<_ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11560 #define $ac_func innocuous_$ac_func
11562 /* System header to define __stub macros and hopefully few prototypes,
11563 which can conflict with char $ac_func (); below.
11564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11565 <limits.h> exists even on freestanding compilers. */
11568 # include <limits.h>
11570 # include <assert.h>
11575 /* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
11582 /* The GNU C library defines this for functions which it implements
11583 to always fail with ENOSYS. Some functions are actually named
11584 something starting with __ and the normal name is an alias. */
11585 #if defined __stub_$ac_func || defined __stub___$ac_func
11592 return $ac_func ();
11597 rm -f conftest.$ac_objext conftest$ac_exeext
11598 if { (ac_try="$ac_link"
11599 case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_link") 2>conftest.er1
11606 grep -v '^ *+' conftest.er1 >conftest.err
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest$ac_exeext'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 eval "$as_ac_var=yes"
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 eval "$as_ac_var=no"
11639 rm -f core conftest.err conftest.$ac_objext \
11640 conftest$ac_exeext conftest.$ac_ext
11642 ac_res=`eval echo '${'$as_ac_var'}'`
11643 { echo "$as_me:$LINENO: result: $ac_res" >&5
11644 echo "${ECHO_T}$ac_res" >&6; }
11645 if test `eval echo '${'$as_ac_var'}'` = yes; then
11646 cat >>confdefs.h <<_ACEOF
11647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11655 for ac_func in memcpy bcopy
11657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11663 cat >conftest.$ac_ext <<_ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11671 #define $ac_func innocuous_$ac_func
11673 /* System header to define __stub macros and hopefully few prototypes,
11674 which can conflict with char $ac_func (); below.
11675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676 <limits.h> exists even on freestanding compilers. */
11679 # include <limits.h>
11681 # include <assert.h>
11686 /* Override any GCC internal prototype to avoid an error.
11687 Use char because int might match the return type of a GCC
11688 builtin and then its argument prototype would still apply. */
11693 /* The GNU C library defines this for functions which it implements
11694 to always fail with ENOSYS. Some functions are actually named
11695 something starting with __ and the normal name is an alias. */
11696 #if defined __stub_$ac_func || defined __stub___$ac_func
11703 return $ac_func ();
11708 rm -f conftest.$ac_objext conftest$ac_exeext
11709 if { (ac_try="$ac_link"
11710 case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_link") 2>conftest.er1
11717 grep -v '^ *+' conftest.er1 >conftest.err
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11723 { (case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_try") 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest$ac_exeext'
11733 { (case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_try") 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 eval "$as_ac_var=yes"
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 eval "$as_ac_var=no"
11750 rm -f core conftest.err conftest.$ac_objext \
11751 conftest$ac_exeext conftest.$ac_ext
11753 ac_res=`eval echo '${'$as_ac_var'}'`
11754 { echo "$as_me:$LINENO: result: $ac_res" >&5
11755 echo "${ECHO_T}$ac_res" >&6; }
11756 if test `eval echo '${'$as_ac_var'}'` = yes; then
11757 cat >>confdefs.h <<_ACEOF
11758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11766 for ac_func in memmove strcmp
11768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 cat >conftest.$ac_ext <<_ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11782 #define $ac_func innocuous_$ac_func
11784 /* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char $ac_func (); below.
11786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11787 <limits.h> exists even on freestanding compilers. */
11790 # include <limits.h>
11792 # include <assert.h>
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11804 /* The GNU C library defines this for functions which it implements
11805 to always fail with ENOSYS. Some functions are actually named
11806 something starting with __ and the normal name is an alias. */
11807 #if defined __stub_$ac_func || defined __stub___$ac_func
11814 return $ac_func ();
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_link") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11834 { (case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_try") 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest$ac_exeext'
11844 { (case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_try") 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 eval "$as_ac_var=yes"
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 eval "$as_ac_var=no"
11861 rm -f core conftest.err conftest.$ac_objext \
11862 conftest$ac_exeext conftest.$ac_ext
11864 ac_res=`eval echo '${'$as_ac_var'}'`
11865 { echo "$as_me:$LINENO: result: $ac_res" >&5
11866 echo "${ECHO_T}$ac_res" >&6; }
11867 if test `eval echo '${'$as_ac_var'}'` = yes; then
11868 cat >>confdefs.h <<_ACEOF
11869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11878 for ac_func in closedir opendir readdir
11880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 cat >conftest.$ac_ext <<_ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11894 #define $ac_func innocuous_$ac_func
11896 /* System header to define __stub macros and hopefully few prototypes,
11897 which can conflict with char $ac_func (); below.
11898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11899 <limits.h> exists even on freestanding compilers. */
11902 # include <limits.h>
11904 # include <assert.h>
11909 /* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
11916 /* The GNU C library defines this for functions which it implements
11917 to always fail with ENOSYS. Some functions are actually named
11918 something starting with __ and the normal name is an alias. */
11919 #if defined __stub_$ac_func || defined __stub___$ac_func
11926 return $ac_func ();
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (ac_try="$ac_link"
11933 case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_link") 2>conftest.er1
11940 grep -v '^ *+' conftest.er1 >conftest.err
11942 cat conftest.err >&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
11945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11946 { (case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_try") 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest$ac_exeext'
11956 { (case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_try") 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 eval "$as_ac_var=yes"
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11970 eval "$as_ac_var=no"
11973 rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11976 ac_res=`eval echo '${'$as_ac_var'}'`
11977 { echo "$as_me:$LINENO: result: $ac_res" >&5
11978 echo "${ECHO_T}$ac_res" >&6; }
11979 if test `eval echo '${'$as_ac_var'}'` = yes; then
11980 cat >>confdefs.h <<_ACEOF
11981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11988 # Check whether --enable-shared was given.
11989 if test "${enable_shared+set}" = set; then
11990 enableval=$enable_shared; p=${PACKAGE-default}
11992 yes) enable_shared=yes ;;
11993 no) enable_shared=no ;;
11996 # Look at the argument we got. We use all the common list separators.
11997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11998 for pkg in $enableval; do
12000 if test "X$pkg" = "X$p"; then
12012 # Check whether --enable-static was given.
12013 if test "${enable_static+set}" = set; then
12014 enableval=$enable_static; p=${PACKAGE-default}
12016 yes) enable_static=yes ;;
12017 no) enable_static=no ;;
12020 # Look at the argument we got. We use all the common list separators.
12021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12022 for pkg in $enableval; do
12024 if test "X$pkg" = "X$p"; then
12036 # Check whether --enable-fast-install was given.
12037 if test "${enable_fast_install+set}" = set; then
12038 enableval=$enable_fast_install; p=${PACKAGE-default}
12040 yes) enable_fast_install=yes ;;
12041 no) enable_fast_install=no ;;
12043 enable_fast_install=no
12044 # Look at the argument we got. We use all the common list separators.
12045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12046 for pkg in $enableval; do
12048 if test "X$pkg" = "X$p"; then
12049 enable_fast_install=yes
12056 enable_fast_install=yes
12060 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12061 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12062 if test "${lt_cv_path_SED+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 # Loop through the user's path and test for sed and gsed.
12066 # Then use that list of sed's as ones to test for truncation.
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12071 test -z "$as_dir" && as_dir=.
12072 for lt_ac_prog in sed gsed; do
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12075 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12082 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12083 # along with /bin/sed that truncates output.
12084 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12085 test ! -f $lt_ac_sed && continue
12086 cat /dev/null > conftest.in
12088 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12089 # Check for GNU sed and select it if it is found.
12090 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12091 lt_cv_path_SED=$lt_ac_sed
12095 cat conftest.in conftest.in >conftest.tmp
12096 mv conftest.tmp conftest.in
12097 cp conftest.in conftest.nl
12099 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12100 cmp -s conftest.out conftest.nl || break
12101 # 10000 chars as input seems more than enough
12102 test $lt_ac_count -gt 10 && break
12103 lt_ac_count=`expr $lt_ac_count + 1`
12104 if test $lt_ac_count -gt $lt_ac_max; then
12105 lt_ac_max=$lt_ac_count
12106 lt_cv_path_SED=$lt_ac_sed
12113 SED=$lt_cv_path_SED
12114 { echo "$as_me:$LINENO: result: $SED" >&5
12115 echo "${ECHO_T}$SED" >&6; }
12118 # Check whether --with-gnu-ld was given.
12119 if test "${with_gnu_ld+set}" = set; then
12120 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12126 if test "$GCC" = yes; then
12127 # Check if gcc -print-prog-name=ld gives a path.
12128 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12129 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12132 # gcc leaves a trailing carriage return which upsets mingw
12133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12138 # Accept absolute paths.
12140 re_direlt='/[^/][^/]*/\.\./'
12141 # Canonicalize the pathname of ld
12142 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12143 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12144 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12146 test -z "$LD" && LD="$ac_prog"
12149 # If it fails, then pretend we aren't using GCC.
12153 # If it is relative, then search for the first ld in PATH.
12154 with_gnu_ld=unknown
12157 elif test "$with_gnu_ld" = yes; then
12158 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12159 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12161 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12162 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12164 if test "${lt_cv_path_LD+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 if test -z "$LD"; then
12168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12169 for ac_dir in $PATH; do
12171 test -z "$ac_dir" && ac_dir=.
12172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12173 lt_cv_path_LD="$ac_dir/$ac_prog"
12174 # Check to see if the program is GNU ld. I'd rather use --version,
12175 # but apparently some variants of GNU ld only accept -v.
12176 # Break only if it was the GNU/non-GNU ld that we prefer.
12177 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12178 *GNU* | *'with BFD'*)
12179 test "$with_gnu_ld" != no && break
12182 test "$with_gnu_ld" != yes && break
12189 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12193 LD="$lt_cv_path_LD"
12194 if test -n "$LD"; then
12195 { echo "$as_me:$LINENO: result: $LD" >&5
12196 echo "${ECHO_T}$LD" >&6; }
12198 { echo "$as_me:$LINENO: result: no" >&5
12199 echo "${ECHO_T}no" >&6; }
12201 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12202 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12203 { (exit 1); exit 1; }; }
12204 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12205 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12206 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12210 case `$LD -v 2>&1 </dev/null` in
12211 *GNU* | *'with BFD'*)
12212 lt_cv_prog_gnu_ld=yes
12215 lt_cv_prog_gnu_ld=no
12219 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12220 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12221 with_gnu_ld=$lt_cv_prog_gnu_ld
12224 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12225 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12226 if test "${lt_cv_ld_reload_flag+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 lt_cv_ld_reload_flag='-r'
12231 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12232 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12233 reload_flag=$lt_cv_ld_reload_flag
12234 case $reload_flag in
12236 *) reload_flag=" $reload_flag" ;;
12238 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12241 if test "$GCC" = yes; then
12242 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12249 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12250 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12251 if test "${lt_cv_deplibs_check_method+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 lt_cv_file_magic_cmd='$MAGIC_CMD'
12255 lt_cv_file_magic_test_file=
12256 lt_cv_deplibs_check_method='unknown'
12257 # Need to set the preceding variable on all platforms that support
12258 # interlibrary dependencies.
12259 # 'none' -- dependencies not supported.
12260 # `unknown' -- same as none, but documents that we really don't know.
12261 # 'pass_all' -- all dependencies passed with no checks.
12262 # 'test_compile' -- check by making test program.
12263 # 'file_magic [[regex]]' -- check by looking for files in library path
12264 # which responds to the $file_magic_cmd with a given extended regex.
12265 # If you have `file' or equivalent on your system and you're not sure
12266 # whether `pass_all' will *always* work, you probably want this one.
12270 lt_cv_deplibs_check_method=pass_all
12274 lt_cv_deplibs_check_method=pass_all
12278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12279 lt_cv_file_magic_cmd='/usr/bin/file -L'
12280 lt_cv_file_magic_test_file=/shlib/libc.so
12284 # func_win32_libid is a shell function defined in ltmain.sh
12285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12286 lt_cv_file_magic_cmd='func_win32_libid'
12290 # Base MSYS/MinGW do not provide the 'file' command needed by
12291 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12292 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12293 lt_cv_file_magic_cmd='$OBJDUMP -f'
12296 darwin* | rhapsody*)
12297 lt_cv_deplibs_check_method=pass_all
12300 freebsd* | kfreebsd*-gnu | dragonfly*)
12301 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12304 # Not sure whether the presence of OpenBSD here was a mistake.
12305 # Let's accept both of them until this is cleared up.
12306 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12307 lt_cv_file_magic_cmd=/usr/bin/file
12308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12312 lt_cv_deplibs_check_method=pass_all
12317 lt_cv_deplibs_check_method=pass_all
12320 hpux10.20* | hpux11*)
12321 lt_cv_file_magic_cmd=/usr/bin/file
12324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12325 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
12329 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12332 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12333 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12339 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12343 irix5* | irix6* | nonstopux*)
12345 *-32|*"-32 ") libmagic=32-bit;;
12346 *-n32|*"-n32 ") libmagic=N32;;
12347 *-64|*"-64 ") libmagic=64-bit;;
12348 *) libmagic=never-match;;
12350 lt_cv_deplibs_check_method=pass_all
12353 # This must be Linux ELF.
12355 lt_cv_deplibs_check_method=pass_all
12359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12368 lt_cv_file_magic_cmd=/usr/bin/file
12369 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12373 lt_cv_deplibs_check_method=unknown
12377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12384 osf3* | osf4* | osf5*)
12385 lt_cv_deplibs_check_method=pass_all
12389 lt_cv_deplibs_check_method=pass_all
12393 case $host_vendor in
12395 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]'
12396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12399 lt_cv_deplibs_check_method=pass_all
12402 lt_cv_file_magic_cmd='/bin/file'
12403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12406 lt_cv_file_magic_cmd='/bin/file'
12407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12408 lt_cv_file_magic_test_file=/lib/libc.so
12411 lt_cv_deplibs_check_method=pass_all
12414 lt_cv_deplibs_check_method=pass_all
12419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12420 lt_cv_deplibs_check_method=pass_all
12425 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12426 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12427 file_magic_cmd=$lt_cv_file_magic_cmd
12428 deplibs_check_method=$lt_cv_deplibs_check_method
12429 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12433 # If no C compiler was specified, use CC.
12436 # If no C compiler flags were specified, use CFLAGS.
12437 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12439 # Allow CC to be a program name with arguments.
12442 # Check whether --enable-libtool-lock was given.
12443 if test "${enable_libtool_lock+set}" = set; then
12444 enableval=$enable_libtool_lock;
12447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12449 # Some flags need to be propagated to the compiler or linker for good
12453 # Find out which ABI we are using.
12454 echo 'int i;' > conftest.$ac_ext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12456 (eval $ac_compile) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; then
12460 case `/usr/bin/file conftest.$ac_objext` in
12462 HPUX_IA64_MODE="32"
12465 HPUX_IA64_MODE="64"
12472 # Find out which ABI we are using.
12473 echo '#line 12473 "configure"' > conftest.$ac_ext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; then
12479 if test "$lt_cv_prog_gnu_ld" = yes; then
12480 case `/usr/bin/file conftest.$ac_objext` in
12482 LD="${LD-ld} -melf32bsmip"
12485 LD="${LD-ld} -melf32bmipn32"
12488 LD="${LD-ld} -melf64bmip"
12492 case `/usr/bin/file conftest.$ac_objext` in
12508 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12509 # Find out which ABI we are using.
12510 echo 'int i;' > conftest.$ac_ext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512 (eval $ac_compile) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; then
12516 case `/usr/bin/file conftest.o` in
12520 LD="${LD-ld} -m elf_i386"
12522 ppc64-*linux*|powerpc64-*linux*)
12523 LD="${LD-ld} -m elf32ppclinux"
12526 LD="${LD-ld} -m elf_s390"
12529 LD="${LD-ld} -m elf32_sparc"
12536 LD="${LD-ld} -m elf_x86_64"
12538 ppc*-*linux*|powerpc*-*linux*)
12539 LD="${LD-ld} -m elf64ppc"
12542 LD="${LD-ld} -m elf64_s390"
12545 LD="${LD-ld} -m elf64_sparc"
12555 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12556 SAVE_CFLAGS="$CFLAGS"
12557 CFLAGS="$CFLAGS -belf"
12558 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12559 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12560 if test "${lt_cv_cc_needs_belf+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 ac_cpp='$CPP $CPPFLAGS'
12565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12569 cat >conftest.$ac_ext <<_ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (ac_try="$ac_link"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_link") 2>conftest.er1
12593 grep -v '^ *+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } &&
12598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12599 { (case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_try") 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
12609 { (case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_try") 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 lt_cv_cc_needs_belf=yes
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 lt_cv_cc_needs_belf=no
12626 rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12629 ac_cpp='$CPP $CPPFLAGS'
12630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12635 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12636 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12637 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12638 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12639 CFLAGS="$SAVE_CFLAGS"
12643 # Find out which ABI we are using.
12644 echo 'int i;' > conftest.$ac_ext
12645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12646 (eval $ac_compile) 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; then
12650 case `/usr/bin/file conftest.o` in
12652 case $lt_cv_prog_gnu_ld in
12653 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12654 *) LD="${LD-ld} -64" ;;
12665 need_locks="$enable_libtool_lock"
12670 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12671 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12672 (test "X$CXX" != "Xg++"))) ; then
12674 ac_cpp='$CXXCPP $CPPFLAGS'
12675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12678 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12679 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12680 if test -z "$CXXCPP"; then
12681 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 # Double quotes because CXXCPP needs to be expanded
12685 for CXXCPP in "$CXX -E" "/lib/cpp"
12687 ac_preproc_ok=false
12688 for ac_cxx_preproc_warn_flag in '' yes
12690 # Use a header file that comes with gcc, so configuring glibc
12691 # with a fresh cross-compiler works.
12692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693 # <limits.h> exists even on freestanding compilers.
12694 # On the NeXT, cc -E runs the code through the compiler's parser,
12695 # not just through cpp. "Syntax error" is here to catch this case.
12696 cat >conftest.$ac_ext <<_ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12703 # include <limits.h>
12705 # include <assert.h>
12709 if { (ac_try="$ac_cpp conftest.$ac_ext"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } >/dev/null; then
12722 if test -s conftest.err; then
12723 ac_cpp_err=$ac_cxx_preproc_warn_flag
12724 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12731 if test -z "$ac_cpp_err"; then
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 # Broken: fails on valid input.
12741 rm -f conftest.err conftest.$ac_ext
12743 # OK, works on sane cases. Now check whether nonexistent headers
12744 # can be detected and how.
12745 cat >conftest.$ac_ext <<_ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 #include <ac_nonexistent.h>
12753 if { (ac_try="$ac_cpp conftest.$ac_ext"
12754 case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12761 grep -v '^ *+' conftest.er1 >conftest.err
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } >/dev/null; then
12766 if test -s conftest.err; then
12767 ac_cpp_err=$ac_cxx_preproc_warn_flag
12768 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12775 if test -z "$ac_cpp_err"; then
12776 # Broken: success on invalid input.
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12782 # Passes both tests.
12787 rm -f conftest.err conftest.$ac_ext
12790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12791 rm -f conftest.err conftest.$ac_ext
12792 if $ac_preproc_ok; then
12797 ac_cv_prog_CXXCPP=$CXXCPP
12800 CXXCPP=$ac_cv_prog_CXXCPP
12802 ac_cv_prog_CXXCPP=$CXXCPP
12804 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12805 echo "${ECHO_T}$CXXCPP" >&6; }
12806 ac_preproc_ok=false
12807 for ac_cxx_preproc_warn_flag in '' yes
12809 # Use a header file that comes with gcc, so configuring glibc
12810 # with a fresh cross-compiler works.
12811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12812 # <limits.h> exists even on freestanding compilers.
12813 # On the NeXT, cc -E runs the code through the compiler's parser,
12814 # not just through cpp. "Syntax error" is here to catch this case.
12815 cat >conftest.$ac_ext <<_ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12822 # include <limits.h>
12824 # include <assert.h>
12828 if { (ac_try="$ac_cpp conftest.$ac_ext"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12836 grep -v '^ *+' conftest.er1 >conftest.err
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } >/dev/null; then
12841 if test -s conftest.err; then
12842 ac_cpp_err=$ac_cxx_preproc_warn_flag
12843 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12850 if test -z "$ac_cpp_err"; then
12853 echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12856 # Broken: fails on valid input.
12860 rm -f conftest.err conftest.$ac_ext
12862 # OK, works on sane cases. Now check whether nonexistent headers
12863 # can be detected and how.
12864 cat >conftest.$ac_ext <<_ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 #include <ac_nonexistent.h>
12872 if { (ac_try="$ac_cpp conftest.$ac_ext"
12873 case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12880 grep -v '^ *+' conftest.er1 >conftest.err
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } >/dev/null; then
12885 if test -s conftest.err; then
12886 ac_cpp_err=$ac_cxx_preproc_warn_flag
12887 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12894 if test -z "$ac_cpp_err"; then
12895 # Broken: success on invalid input.
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 # Passes both tests.
12906 rm -f conftest.err conftest.$ac_ext
12909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12910 rm -f conftest.err conftest.$ac_ext
12911 if $ac_preproc_ok; then
12914 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12915 See \`config.log' for more details." >&5
12916 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12917 See \`config.log' for more details." >&2;}
12918 { (exit 1); exit 1; }; }
12922 ac_cpp='$CXXCPP $CPPFLAGS'
12923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12931 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12932 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12934 if test -n "$ac_tool_prefix"; then
12935 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
12937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12941 if test "${ac_cv_prog_F77+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 if test -n "$F77"; then
12945 ac_cv_prog_F77="$F77" # Let the user override the test.
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12954 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 F77=$ac_cv_prog_F77
12965 if test -n "$F77"; then
12966 { echo "$as_me:$LINENO: result: $F77" >&5
12967 echo "${ECHO_T}$F77" >&6; }
12969 { echo "$as_me:$LINENO: result: no" >&5
12970 echo "${ECHO_T}no" >&6; }
12974 test -n "$F77" && break
12977 if test -z "$F77"; then
12979 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
12981 # Extract the first word of "$ac_prog", so it can be a program name with args.
12982 set dummy $ac_prog; ac_word=$2
12983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12985 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 if test -n "$ac_ct_F77"; then
12989 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12998 ac_cv_prog_ac_ct_F77="$ac_prog"
12999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13008 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13009 if test -n "$ac_ct_F77"; then
13010 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13011 echo "${ECHO_T}$ac_ct_F77" >&6; }
13013 { echo "$as_me:$LINENO: result: no" >&5
13014 echo "${ECHO_T}no" >&6; }
13018 test -n "$ac_ct_F77" && break
13021 if test "x$ac_ct_F77" = x; then
13024 case $cross_compiling:$ac_tool_warned in
13026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13027 whose name does not start with the host triplet. If you think this
13028 configuration is useful to you, please write to autoconf@gnu.org." >&5
13029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13030 whose name does not start with the host triplet. If you think this
13031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13032 ac_tool_warned=yes ;;
13039 # Provide some information about the compiler.
13040 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13041 ac_compiler=`set X $ac_compile; echo $2`
13042 { (ac_try="$ac_compiler --version >&5"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_compiler --version >&5") 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }
13052 { (ac_try="$ac_compiler -v >&5"
13053 case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_compiler -v >&5") 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }
13062 { (ac_try="$ac_compiler -V >&5"
13063 case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_compiler -V >&5") 2>&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }
13074 # If we don't use `.F' as extension, the preprocessor is not run on the
13075 # input file. (Note that this only needs to work for GNU compilers.)
13076 ac_save_ext=$ac_ext
13078 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13079 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13080 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (ac_try="$ac_compile"
13093 case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_compile") 2>conftest.er1
13100 grep -v '^ *+' conftest.er1 >conftest.err
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13106 { (case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_try") 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest.$ac_objext'
13116 { (case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_try") 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_compiler_gnu=yes
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13137 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13138 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13139 ac_ext=$ac_save_ext
13140 ac_test_FFLAGS=${FFLAGS+set}
13141 ac_save_FFLAGS=$FFLAGS
13143 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13144 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13145 if test "${ac_cv_prog_f77_g+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 cat >conftest.$ac_ext <<_ACEOF
13154 rm -f conftest.$ac_objext
13155 if { (ac_try="$ac_compile"
13156 case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_compile") 2>conftest.er1
13163 grep -v '^ *+' conftest.er1 >conftest.err
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
13168 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest.$ac_objext'
13179 { (case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_try") 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 ac_cv_prog_f77_g=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_cv_prog_f77_g=no
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13200 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13201 if test "$ac_test_FFLAGS" = set; then
13202 FFLAGS=$ac_save_FFLAGS
13203 elif test $ac_cv_prog_f77_g = yes; then
13204 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13210 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13217 G77=`test $ac_compiler_gnu = yes && echo yes`
13219 ac_cpp='$CPP $CPPFLAGS'
13220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13226 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13228 # find the maximum length of command line arguments
13229 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13230 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13231 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 # On DJGPP, this test can blow up pretty badly due to problems in libc
13240 # (any single argument exceeding 2000 bytes causes a buffer overrun
13241 # during glob expansion). Even if it were fixed, the result of this
13242 # check would be larger than it should be.
13243 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13247 # Under GNU Hurd, this test is not required because there is
13248 # no limit to the length of command line arguments.
13249 # Libtool will interpret -1 as no limit whatsoever
13250 lt_cv_sys_max_cmd_len=-1;
13254 # On Win9x/ME, this test blows up -- it succeeds, but takes
13255 # about 5 minutes as the teststring grows exponentially.
13256 # Worse, since 9x/ME are not pre-emptively multitasking,
13257 # you end up with a "frozen" computer, even though with patience
13258 # the test eventually succeeds (with a max line length of 256k).
13259 # Instead, let's just punt: use the minimum linelength reported by
13260 # all of the supported platforms: 8192 (on NT/2K/XP).
13261 lt_cv_sys_max_cmd_len=8192;
13265 # On AmigaOS with pdksh, this test takes hours, literally.
13266 # So we just punt and use a minimum line length of 8192.
13267 lt_cv_sys_max_cmd_len=8192;
13270 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13271 # This has been around since 386BSD, at least. Likely further.
13272 if test -x /sbin/sysctl; then
13273 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13274 elif test -x /usr/sbin/sysctl; then
13275 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13277 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13279 # And add a safety zone
13280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13285 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13286 lt_cv_sys_max_cmd_len=196608
13290 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13291 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13292 # nice to cause kernel panics so lets avoid the loop below.
13293 # First set a reasonable default.
13294 lt_cv_sys_max_cmd_len=16384
13296 if test -x /sbin/sysconfig; then
13297 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13298 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13303 lt_cv_sys_max_cmd_len=102400
13305 sysv5* | sco5v6* | sysv4.2uw2*)
13306 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13307 if test -n "$kargmax"; then
13308 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13310 lt_cv_sys_max_cmd_len=32768
13314 # If test is not a shell built-in, we'll probably end up computing a
13315 # maximum length that is only half of the actual maximum length, but
13317 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13318 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13319 = "XX$teststring") >/dev/null 2>&1 &&
13320 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13321 lt_cv_sys_max_cmd_len=$new_result &&
13322 test $i != 17 # 1/2 MB should be enough
13325 teststring=$teststring$teststring
13328 # Add a significant safety factor because C++ compilers can tack on massive
13329 # amounts of additional arguments before passing them to the linker.
13330 # It appears as though 1/2 is a usable value.
13331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13337 if test -n $lt_cv_sys_max_cmd_len ; then
13338 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13339 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13341 { echo "$as_me:$LINENO: result: none" >&5
13342 echo "${ECHO_T}none" >&6; }
13348 # Check for command to grab the raw symbol name followed by C symbol from nm.
13349 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13350 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13351 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 # These are sane defaults that work on at least a few old systems.
13356 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13358 # Character class describing NM global symbol codes.
13359 symcode='[BCDEGRST]'
13361 # Regexp to match symbols that can be accessed directly from C.
13362 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13364 # Transform an extracted symbol line into a proper C declaration
13365 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13367 # Transform an extracted symbol line into symbol name and symbol address
13368 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13370 # Define system-specific variables.
13375 cygwin* | mingw* | pw32*)
13376 symcode='[ABCDGISTW]'
13378 hpux*) # Its linker distinguishes data from code symbols
13379 if test "$host_cpu" = ia64; then
13380 symcode='[ABCDEGRST]'
13382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13383 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13386 if test "$host_cpu" = ia64; then
13387 symcode='[ABCDGIRSTW]'
13388 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13389 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13392 irix* | nonstopux*)
13393 symcode='[BCDEGRST]'
13396 symcode='[BCDEGQRST]'
13407 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13415 # Handle CRLF in mingw tool chain
13419 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13423 # If we're using GNU nm, then use its standard symbol codes.
13424 case `$NM -V 2>&1` in
13425 *GNU* | *'with BFD'*)
13426 symcode='[ABCDGIRSTW]' ;;
13429 # Try without a prefix undercore, then with it.
13430 for ac_symprfx in "" "_"; do
13432 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13433 symxfrm="\\1 $ac_symprfx\\2 \\2"
13435 # Write the raw and C identifiers.
13436 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13438 # Check to see that the pipe works correctly.
13442 cat > conftest.$ac_ext <<EOF
13447 void nm_test_func(){}
13451 int main(){nm_test_var='a';nm_test_func();return(0);}
13454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13455 (eval $ac_compile) 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; then
13459 # Now try to grab the symbols.
13461 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13462 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } && test -s "$nlist"; then
13466 # Try sorting and uniquifying the output.
13467 if sort "$nlist" | uniq > "$nlist"T; then
13468 mv -f "$nlist"T "$nlist"
13473 # Make sure that we snagged all the symbols we need.
13474 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13475 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13476 cat <<EOF > conftest.$ac_ext
13482 # Now generate the symbol file.
13483 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13485 cat <<EOF >> conftest.$ac_ext
13486 #if defined (__STDC__) && __STDC__
13487 # define lt_ptr_t void *
13489 # define lt_ptr_t char *
13493 /* The mapping between symbol names and symbols. */
13498 lt_preloaded_symbols[] =
13501 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13502 cat <<\EOF >> conftest.$ac_ext
13510 # Now try linking the two files.
13511 mv conftest.$ac_objext conftstm.$ac_objext
13512 lt_save_LIBS="$LIBS"
13513 lt_save_CFLAGS="$CFLAGS"
13514 LIBS="conftstm.$ac_objext"
13515 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13517 (eval $ac_link) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13523 LIBS="$lt_save_LIBS"
13524 CFLAGS="$lt_save_CFLAGS"
13526 echo "cannot find nm_test_func in $nlist" >&5
13529 echo "cannot find nm_test_var in $nlist" >&5
13532 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13535 echo "$progname: failed program was:" >&5
13536 cat conftest.$ac_ext >&5
13538 rm -f conftest* conftst*
13540 # Do not use the global_symbol_pipe unless it works.
13541 if test "$pipe_works" = yes; then
13544 lt_cv_sys_global_symbol_pipe=
13550 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13551 lt_cv_sys_global_symbol_to_cdecl=
13553 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13554 { echo "$as_me:$LINENO: result: failed" >&5
13555 echo "${ECHO_T}failed" >&6; }
13557 { echo "$as_me:$LINENO: result: ok" >&5
13558 echo "${ECHO_T}ok" >&6; }
13561 { echo "$as_me:$LINENO: checking for objdir" >&5
13562 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13563 if test "${lt_cv_objdir+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 rm -f .libs 2>/dev/null
13567 mkdir .libs 2>/dev/null
13568 if test -d .libs; then
13571 # MS-DOS does not allow filenames that begin with a dot.
13574 rmdir .libs 2>/dev/null
13576 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13577 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13578 objdir=$lt_cv_objdir
13586 # AIX sometimes has problems with the GCC collect2 program. For some
13587 # reason, if we set the COLLECT_NAMES environment variable, the problems
13588 # vanish in a puff of smoke.
13589 if test "X${COLLECT_NAMES+set}" != Xset; then
13591 export COLLECT_NAMES
13596 # Sed substitution that helps us do robust quoting. It backslashifies
13597 # metacharacters that are still active within double-quoted strings.
13598 Xsed='sed -e 1s/^X//'
13599 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13601 # Same as above, but do not quote variable references.
13602 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13604 # Sed substitution to delay expansion of an escaped shell variable in a
13605 # double_quote_subst'ed string.
13606 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13608 # Sed substitution to avoid accidental globbing in evaled expressions
13609 no_glob_subst='s/\*/\\\*/g'
13614 # Global variables:
13615 default_ofile=mklib
13616 can_build_shared=yes
13618 # All known linkers require a `.a' archive for static linking (except MSVC,
13619 # which needs '.lib').
13621 ltmain="$ac_aux_dir/ltmain.sh"
13622 ofile="$default_ofile"
13623 with_gnu_ld="$lt_cv_prog_gnu_ld"
13625 if test -n "$ac_tool_prefix"; then
13626 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13627 set dummy ${ac_tool_prefix}ar; ac_word=$2
13628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13630 if test "${ac_cv_prog_AR+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 if test -n "$AR"; then
13634 ac_cv_prog_AR="$AR" # Let the user override the test.
13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637 for as_dir in $PATH
13640 test -z "$as_dir" && as_dir=.
13641 for ac_exec_ext in '' $ac_executable_extensions; do
13642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13643 ac_cv_prog_AR="${ac_tool_prefix}ar"
13644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13654 if test -n "$AR"; then
13655 { echo "$as_me:$LINENO: result: $AR" >&5
13656 echo "${ECHO_T}$AR" >&6; }
13658 { echo "$as_me:$LINENO: result: no" >&5
13659 echo "${ECHO_T}no" >&6; }
13664 if test -z "$ac_cv_prog_AR"; then
13666 # Extract the first word of "ar", so it can be a program name with args.
13667 set dummy ar; ac_word=$2
13668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13670 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 if test -n "$ac_ct_AR"; then
13674 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
13682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13683 ac_cv_prog_ac_ct_AR="ar"
13684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13693 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13694 if test -n "$ac_ct_AR"; then
13695 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13696 echo "${ECHO_T}$ac_ct_AR" >&6; }
13698 { echo "$as_me:$LINENO: result: no" >&5
13699 echo "${ECHO_T}no" >&6; }
13702 if test "x$ac_ct_AR" = x; then
13705 case $cross_compiling:$ac_tool_warned in
13707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13708 whose name does not start with the host triplet. If you think this
13709 configuration is useful to you, please write to autoconf@gnu.org." >&5
13710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13711 whose name does not start with the host triplet. If you think this
13712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13713 ac_tool_warned=yes ;;
13718 AR="$ac_cv_prog_AR"
13721 if test -n "$ac_tool_prefix"; then
13722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13726 if test "${ac_cv_prog_RANLIB+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 if test -n "$RANLIB"; then
13730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13749 RANLIB=$ac_cv_prog_RANLIB
13750 if test -n "$RANLIB"; then
13751 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13752 echo "${ECHO_T}$RANLIB" >&6; }
13754 { echo "$as_me:$LINENO: result: no" >&5
13755 echo "${ECHO_T}no" >&6; }
13760 if test -z "$ac_cv_prog_RANLIB"; then
13761 ac_ct_RANLIB=$RANLIB
13762 # Extract the first word of "ranlib", so it can be a program name with args.
13763 set dummy ranlib; ac_word=$2
13764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 if test -n "$ac_ct_RANLIB"; then
13770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13779 ac_cv_prog_ac_ct_RANLIB="ranlib"
13780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13790 if test -n "$ac_ct_RANLIB"; then
13791 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13792 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13794 { echo "$as_me:$LINENO: result: no" >&5
13795 echo "${ECHO_T}no" >&6; }
13798 if test "x$ac_ct_RANLIB" = x; then
13801 case $cross_compiling:$ac_tool_warned in
13803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13804 whose name does not start with the host triplet. If you think this
13805 configuration is useful to you, please write to autoconf@gnu.org." >&5
13806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13807 whose name does not start with the host triplet. If you think this
13808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13809 ac_tool_warned=yes ;;
13811 RANLIB=$ac_ct_RANLIB
13814 RANLIB="$ac_cv_prog_RANLIB"
13817 if test -n "$ac_tool_prefix"; then
13818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13819 set dummy ${ac_tool_prefix}strip; ac_word=$2
13820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13822 if test "${ac_cv_prog_STRIP+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 if test -n "$STRIP"; then
13826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829 for as_dir in $PATH
13832 test -z "$as_dir" && as_dir=.
13833 for ac_exec_ext in '' $ac_executable_extensions; do
13834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 STRIP=$ac_cv_prog_STRIP
13846 if test -n "$STRIP"; then
13847 { echo "$as_me:$LINENO: result: $STRIP" >&5
13848 echo "${ECHO_T}$STRIP" >&6; }
13850 { echo "$as_me:$LINENO: result: no" >&5
13851 echo "${ECHO_T}no" >&6; }
13856 if test -z "$ac_cv_prog_STRIP"; then
13858 # Extract the first word of "strip", so it can be a program name with args.
13859 set dummy strip; ac_word=$2
13860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 if test -n "$ac_ct_STRIP"; then
13866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
13874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13875 ac_cv_prog_ac_ct_STRIP="strip"
13876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13886 if test -n "$ac_ct_STRIP"; then
13887 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13888 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13890 { echo "$as_me:$LINENO: result: no" >&5
13891 echo "${ECHO_T}no" >&6; }
13894 if test "x$ac_ct_STRIP" = x; then
13897 case $cross_compiling:$ac_tool_warned in
13899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13900 whose name does not start with the host triplet. If you think this
13901 configuration is useful to you, please write to autoconf@gnu.org." >&5
13902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13903 whose name does not start with the host triplet. If you think this
13904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13905 ac_tool_warned=yes ;;
13910 STRIP="$ac_cv_prog_STRIP"
13915 old_CFLAGS="$CFLAGS"
13917 # Set sane defaults for various variables
13918 test -z "$AR" && AR=ar
13919 test -z "$AR_FLAGS" && AR_FLAGS=cru
13920 test -z "$AS" && AS=as
13921 test -z "$CC" && CC=cc
13922 test -z "$LTCC" && LTCC=$CC
13923 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13924 test -z "$DLLTOOL" && DLLTOOL=dlltool
13925 test -z "$LD" && LD=ld
13926 test -z "$LN_S" && LN_S="ln -s"
13927 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13928 test -z "$NM" && NM=nm
13929 test -z "$SED" && SED=sed
13930 test -z "$OBJDUMP" && OBJDUMP=objdump
13931 test -z "$RANLIB" && RANLIB=:
13932 test -z "$STRIP" && STRIP=:
13933 test -z "$ac_objext" && ac_objext=o
13935 # Determine commands to create old-style static archives.
13936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13937 old_postinstall_cmds='chmod 644 $oldlib'
13938 old_postuninstall_cmds=
13940 if test -n "$RANLIB"; then
13943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13949 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13952 for cc_temp in $compiler""; do
13954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13963 # Only perform the check for file, if the check method requires it
13964 case $deplibs_check_method in
13966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13967 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13968 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13969 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13977 lt_save_MAGIC_CMD="$MAGIC_CMD"
13978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13980 for ac_dir in $ac_dummy; do
13982 test -z "$ac_dir" && ac_dir=.
13983 if test -f $ac_dir/${ac_tool_prefix}file; then
13984 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13985 if test -n "$file_magic_test_file"; then
13986 case $deplibs_check_method in
13988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13991 $EGREP "$file_magic_regex" > /dev/null; then
13996 *** Warning: the command libtool uses to detect shared libraries,
13997 *** $file_magic_cmd, produces output that libtool cannot recognize.
13998 *** The result is that libtool may fail to recognize shared libraries
13999 *** as such. This will affect the creation of libtool libraries that
14000 *** depend on shared libraries, but programs linked with such libtool
14001 *** libraries will work regardless of this problem. Nevertheless, you
14002 *** may want to report the problem to your system manager and/or to
14003 *** bug-libtool@gnu.org
14013 MAGIC_CMD="$lt_save_MAGIC_CMD"
14018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14019 if test -n "$MAGIC_CMD"; then
14020 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14021 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14023 { echo "$as_me:$LINENO: result: no" >&5
14024 echo "${ECHO_T}no" >&6; }
14027 if test -z "$lt_cv_path_MAGIC_CMD"; then
14028 if test -n "$ac_tool_prefix"; then
14029 { echo "$as_me:$LINENO: checking for file" >&5
14030 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14031 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14039 lt_save_MAGIC_CMD="$MAGIC_CMD"
14040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14042 for ac_dir in $ac_dummy; do
14044 test -z "$ac_dir" && ac_dir=.
14045 if test -f $ac_dir/file; then
14046 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14047 if test -n "$file_magic_test_file"; then
14048 case $deplibs_check_method in
14050 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14053 $EGREP "$file_magic_regex" > /dev/null; then
14058 *** Warning: the command libtool uses to detect shared libraries,
14059 *** $file_magic_cmd, produces output that libtool cannot recognize.
14060 *** The result is that libtool may fail to recognize shared libraries
14061 *** as such. This will affect the creation of libtool libraries that
14062 *** depend on shared libraries, but programs linked with such libtool
14063 *** libraries will work regardless of this problem. Nevertheless, you
14064 *** may want to report the problem to your system manager and/or to
14065 *** bug-libtool@gnu.org
14075 MAGIC_CMD="$lt_save_MAGIC_CMD"
14080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14081 if test -n "$MAGIC_CMD"; then
14082 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14083 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14085 { echo "$as_me:$LINENO: result: no" >&5
14086 echo "${ECHO_T}no" >&6; }
14099 enable_win32_dll=no
14101 # Check whether --enable-libtool-lock was given.
14102 if test "${enable_libtool_lock+set}" = set; then
14103 enableval=$enable_libtool_lock;
14106 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14109 # Check whether --with-pic was given.
14110 if test "${with_pic+set}" = set; then
14111 withval=$with_pic; pic_mode="$withval"
14116 test -z "$pic_mode" && pic_mode=default
14118 # Use C for the default configuration in the libtool script
14122 ac_cpp='$CPP $CPPFLAGS'
14123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14128 # Source file extension for C test sources.
14131 # Object file extension for compiled C test sources.
14135 # Code to be used in simple compile tests
14136 lt_simple_compile_test_code="int some_variable = 0;\n"
14138 # Code to be used in simple link tests
14139 lt_simple_link_test_code='int main(){return(0);}\n'
14142 # If no C compiler was specified, use CC.
14145 # If no C compiler flags were specified, use CFLAGS.
14146 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14148 # Allow CC to be a program name with arguments.
14152 # save warnings/boilerplate of simple test code
14153 ac_outfile=conftest.$ac_objext
14154 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14155 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14156 _lt_compiler_boilerplate=`cat conftest.err`
14159 ac_outfile=conftest.$ac_objext
14160 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14161 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14162 _lt_linker_boilerplate=`cat conftest.err`
14167 lt_prog_compiler_no_builtin_flag=
14169 if test "$GCC" = yes; then
14170 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14173 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14174 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14175 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 lt_cv_prog_compiler_rtti_exceptions=no
14179 ac_outfile=conftest.$ac_objext
14180 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14181 lt_compiler_flag="-fno-rtti -fno-exceptions"
14182 # Insert the option either (1) after the last *FLAGS variable, or
14183 # (2) before a word containing "conftest.", or (3) at the end.
14184 # Note that $ac_compile itself does not contain backslashes and begins
14185 # with a dollar sign (not a hyphen), so the echo should work correctly.
14186 # The option is referenced via a variable to avoid confusing sed.
14187 lt_compile=`echo "$ac_compile" | $SED \
14188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14190 -e 's:$: $lt_compiler_flag:'`
14191 (eval echo "\"\$as_me:14191: $lt_compile\"" >&5)
14192 (eval "$lt_compile" 2>conftest.err)
14194 cat conftest.err >&5
14195 echo "$as_me:14195: \$? = $ac_status" >&5
14196 if (exit $ac_status) && test -s "$ac_outfile"; then
14197 # The compiler can only warn and ignore the option if not recognized
14198 # So say no if there are warnings other than the usual output.
14199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14202 lt_cv_prog_compiler_rtti_exceptions=yes
14208 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14209 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14211 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14212 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14219 lt_prog_compiler_wl=
14220 lt_prog_compiler_pic=
14221 lt_prog_compiler_static=
14223 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14226 if test "$GCC" = yes; then
14227 lt_prog_compiler_wl='-Wl,'
14228 lt_prog_compiler_static='-static'
14232 # All AIX code is PIC.
14233 if test "$host_cpu" = ia64; then
14234 # AIX 5 now supports IA64 processor
14235 lt_prog_compiler_static='-Bstatic'
14240 # FIXME: we need at least 68020 code to build shared libraries, but
14241 # adding the `-m68020' flag to GCC prevents building anything better,
14243 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14246 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14247 # PIC is the default for these OSes.
14250 mingw* | pw32* | os2*)
14251 # This hack is so that the source file can tell whether it is being
14252 # built for inclusion in a dll (and should export symbols for example).
14253 lt_prog_compiler_pic='-DDLL_EXPORT'
14256 darwin* | rhapsody*)
14257 # PIC is the default on this platform
14258 # Common symbols not allowed in MH_DYLIB files
14259 lt_prog_compiler_pic='-fno-common'
14263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14264 # Instead, we relocate shared libraries at runtime.
14268 # Just because we use GCC doesn't mean we suddenly get shared libraries
14269 # on systems that don't support them.
14270 lt_prog_compiler_can_build_shared=no
14275 if test -d /usr/nec; then
14276 lt_prog_compiler_pic=-Kconform_pic
14281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14282 # not for PA HP-UX.
14288 lt_prog_compiler_pic='-fPIC'
14294 lt_prog_compiler_pic='-fPIC'
14298 # PORTME Check for flag to pass linker flags through the system compiler.
14301 lt_prog_compiler_wl='-Wl,'
14302 if test "$host_cpu" = ia64; then
14303 # AIX 5 now supports IA64 processor
14304 lt_prog_compiler_static='-Bstatic'
14306 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14310 # PIC is the default on this platform
14311 # Common symbols not allowed in MH_DYLIB files
14312 case $cc_basename in
14314 lt_prog_compiler_pic='-qnocommon'
14315 lt_prog_compiler_wl='-Wl,'
14320 mingw* | pw32* | os2*)
14321 # This hack is so that the source file can tell whether it is being
14322 # built for inclusion in a dll (and should export symbols for example).
14323 lt_prog_compiler_pic='-DDLL_EXPORT'
14326 hpux9* | hpux10* | hpux11*)
14327 lt_prog_compiler_wl='-Wl,'
14328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14329 # not for PA HP-UX.
14335 lt_prog_compiler_pic='+Z'
14338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14339 lt_prog_compiler_static='${wl}-a ${wl}archive'
14342 irix5* | irix6* | nonstopux*)
14343 lt_prog_compiler_wl='-Wl,'
14344 # PIC (with -KPIC) is the default.
14345 lt_prog_compiler_static='-non_shared'
14349 lt_prog_compiler_pic='-KPIC'
14350 lt_prog_compiler_static='-Bstatic'
14354 case $cc_basename in
14356 lt_prog_compiler_wl='-Wl,'
14357 lt_prog_compiler_pic='-KPIC'
14358 lt_prog_compiler_static='-static'
14360 pgcc* | pgf77* | pgf90* | pgf95*)
14361 # Portland Group compilers (*not* the Pentium gcc compiler,
14362 # which looks to be a dead project)
14363 lt_prog_compiler_wl='-Wl,'
14364 lt_prog_compiler_pic='-fpic'
14365 lt_prog_compiler_static='-Bstatic'
14368 lt_prog_compiler_wl='-Wl,'
14369 # All Alpha code is PIC.
14370 lt_prog_compiler_static='-non_shared'
14375 osf3* | osf4* | osf5*)
14376 lt_prog_compiler_wl='-Wl,'
14377 # All OSF/1 code is PIC.
14378 lt_prog_compiler_static='-non_shared'
14382 lt_prog_compiler_pic='-KPIC'
14383 lt_prog_compiler_static='-Bstatic'
14384 case $cc_basename in
14385 f77* | f90* | f95*)
14386 lt_prog_compiler_wl='-Qoption ld ';;
14388 lt_prog_compiler_wl='-Wl,';;
14393 lt_prog_compiler_wl='-Qoption ld '
14394 lt_prog_compiler_pic='-PIC'
14395 lt_prog_compiler_static='-Bstatic'
14398 sysv4 | sysv4.2uw2* | sysv4.3*)
14399 lt_prog_compiler_wl='-Wl,'
14400 lt_prog_compiler_pic='-KPIC'
14401 lt_prog_compiler_static='-Bstatic'
14405 if test -d /usr/nec ;then
14406 lt_prog_compiler_pic='-Kconform_pic'
14407 lt_prog_compiler_static='-Bstatic'
14411 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14412 lt_prog_compiler_wl='-Wl,'
14413 lt_prog_compiler_pic='-KPIC'
14414 lt_prog_compiler_static='-Bstatic'
14418 lt_prog_compiler_wl='-Wl,'
14419 lt_prog_compiler_can_build_shared=no
14423 lt_prog_compiler_pic='-pic'
14424 lt_prog_compiler_static='-Bstatic'
14428 lt_prog_compiler_can_build_shared=no
14433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14434 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14437 # Check to make sure the PIC flag actually works.
14439 if test -n "$lt_prog_compiler_pic"; then
14441 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14442 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14443 if test "${lt_prog_compiler_pic_works+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 lt_prog_compiler_pic_works=no
14447 ac_outfile=conftest.$ac_objext
14448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14449 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14450 # Insert the option either (1) after the last *FLAGS variable, or
14451 # (2) before a word containing "conftest.", or (3) at the end.
14452 # Note that $ac_compile itself does not contain backslashes and begins
14453 # with a dollar sign (not a hyphen), so the echo should work correctly.
14454 # The option is referenced via a variable to avoid confusing sed.
14455 lt_compile=`echo "$ac_compile" | $SED \
14456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458 -e 's:$: $lt_compiler_flag:'`
14459 (eval echo "\"\$as_me:14459: $lt_compile\"" >&5)
14460 (eval "$lt_compile" 2>conftest.err)
14462 cat conftest.err >&5
14463 echo "$as_me:14463: \$? = $ac_status" >&5
14464 if (exit $ac_status) && test -s "$ac_outfile"; then
14465 # The compiler can only warn and ignore the option if not recognized
14466 # So say no if there are warnings other than the usual output.
14467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14470 lt_prog_compiler_pic_works=yes
14476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14477 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14479 if test x"$lt_prog_compiler_pic_works" = xyes; then
14480 case $lt_prog_compiler_pic in
14482 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14485 lt_prog_compiler_pic=
14486 lt_prog_compiler_can_build_shared=no
14491 # For platforms which do not support PIC, -DPIC is meaningless:
14493 lt_prog_compiler_pic=
14496 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14501 # Check to make sure the static flag actually works.
14503 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14504 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14505 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14506 if test "${lt_prog_compiler_static_works+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 lt_prog_compiler_static_works=no
14510 save_LDFLAGS="$LDFLAGS"
14511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14512 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14514 # The linker can only warn and ignore the option if not recognized
14515 # So say no if there are warnings
14516 if test -s conftest.err; then
14517 # Append any errors to the config.log.
14518 cat conftest.err 1>&5
14519 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521 if diff conftest.exp conftest.er2 >/dev/null; then
14522 lt_prog_compiler_static_works=yes
14525 lt_prog_compiler_static_works=yes
14529 LDFLAGS="$save_LDFLAGS"
14532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14533 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14535 if test x"$lt_prog_compiler_static_works" = xyes; then
14538 lt_prog_compiler_static=
14542 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14544 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 lt_cv_prog_compiler_c_o=no
14548 $rm -r conftest 2>/dev/null
14552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14554 lt_compiler_flag="-o out/conftest2.$ac_objext"
14555 # Insert the option either (1) after the last *FLAGS variable, or
14556 # (2) before a word containing "conftest.", or (3) at the end.
14557 # Note that $ac_compile itself does not contain backslashes and begins
14558 # with a dollar sign (not a hyphen), so the echo should work correctly.
14559 lt_compile=`echo "$ac_compile" | $SED \
14560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14562 -e 's:$: $lt_compiler_flag:'`
14563 (eval echo "\"\$as_me:14563: $lt_compile\"" >&5)
14564 (eval "$lt_compile" 2>out/conftest.err)
14566 cat out/conftest.err >&5
14567 echo "$as_me:14567: \$? = $ac_status" >&5
14568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14570 # The compiler can only warn and ignore the option if not recognized
14571 # So say no if there are warnings
14572 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14575 lt_cv_prog_compiler_c_o=yes
14580 # SGI C++ compiler will create directory out/ii_files/ for
14581 # template instantiation
14582 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14583 $rm out/* && rmdir out
14589 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14593 hard_links="nottested"
14594 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14595 # do not overwrite the value of need_locks provided by the user
14596 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14602 ln conftest.a conftest.b 2>&5 || hard_links=no
14603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14604 { echo "$as_me:$LINENO: result: $hard_links" >&5
14605 echo "${ECHO_T}$hard_links" >&6; }
14606 if test "$hard_links" = no; then
14607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14615 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14619 allow_undefined_flag=
14620 enable_shared_with_static_runtimes=no
14622 archive_expsym_cmds=
14623 old_archive_From_new_cmds=
14624 old_archive_from_expsyms_cmds=
14625 export_dynamic_flag_spec=
14626 whole_archive_flag_spec=
14627 thread_safe_flag_spec=
14628 hardcode_libdir_flag_spec=
14629 hardcode_libdir_flag_spec_ld=
14630 hardcode_libdir_separator=
14632 hardcode_minus_L=no
14633 hardcode_shlibpath_var=unsupported
14634 link_all_deplibs=unknown
14635 hardcode_automatic=no
14637 module_expsym_cmds=
14638 always_export_symbols=no
14639 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14640 # include_expsyms should be a list of space-separated symbols to be *always*
14641 # included in the symbol list
14643 # exclude_expsyms can be an extended regexp of symbols to exclude
14644 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14645 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14646 # as well as any symbol that contains `d'.
14647 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14649 # platforms (ab)use it in PIC code, but their linkers get confused if
14650 # the symbol is explicitly referenced. Since portable code cannot
14651 # rely on this symbol name, it's probably fine to never include it in
14652 # preloaded symbol tables.
14653 extract_expsyms_cmds=
14654 # Just being paranoid about ensuring that cc_basename is set.
14655 for cc_temp in $compiler""; do
14657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14663 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14666 cygwin* | mingw* | pw32*)
14667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14668 # When not using gcc, we currently assume that we are using
14669 # Microsoft Visual C++.
14670 if test "$GCC" != yes; then
14675 # we just hope/assume this is gcc and not c89 (= MSVC++)
14684 if test "$with_gnu_ld" = yes; then
14685 # If archive_cmds runs LD, not CC, wlarc should be empty
14688 # Set some defaults for GNU ld with shared library support. These
14689 # are reset later if shared libraries are not supported. Putting them
14690 # here allows them to be overridden if necessary.
14691 runpath_var=LD_RUN_PATH
14692 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14693 export_dynamic_flag_spec='${wl}--export-dynamic'
14694 # ancient GNU ld didn't support --whole-archive et. al.
14695 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14696 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14698 whole_archive_flag_spec=
14700 supports_anon_versioning=no
14701 case `$LD -v 2>/dev/null` in
14702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14705 *\ 2.11.*) ;; # other 2.11 versions
14706 *) supports_anon_versioning=yes ;;
14709 # See if GNU ld supports shared libraries.
14711 aix3* | aix4* | aix5*)
14712 # On AIX/PPC, the GNU linker is very broken
14713 if test "$host_cpu" != ia64; then
14717 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14718 *** to be unable to reliably create shared libraries on AIX.
14719 *** Therefore, libtool is disabling shared libraries support. If you
14720 *** really care for shared libraries, you may want to modify your PATH
14721 *** so that a non-GNU linker is found, and then restart.
14728 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)'
14729 hardcode_libdir_flag_spec='-L$libdir'
14730 hardcode_minus_L=yes
14732 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14733 # that the semantics of dynamic libraries on AmigaOS, at least up
14734 # to version 4, is to share data among multiple programs linked
14735 # with the same dynamic library. Since this doesn't match the
14736 # behavior of shared libraries on other platforms, we can't use
14742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14743 allow_undefined_flag=unsupported
14744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14745 # support --undefined. This deserves some investigation. FIXME
14746 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14752 cygwin* | mingw* | pw32*)
14753 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14754 # as there is no search path for DLLs.
14755 hardcode_libdir_flag_spec='-L$libdir'
14756 allow_undefined_flag=unsupported
14757 always_export_symbols=no
14758 enable_shared_with_static_runtimes=yes
14759 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14761 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14763 # If the export-symbols file already is a .def file (1st line
14764 # is EXPORTS), use it as is; otherwise, prepend...
14765 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14766 cp $export_symbols $output_objdir/$soname.def;
14768 echo EXPORTS > $output_objdir/$soname.def;
14769 cat $export_symbols >> $output_objdir/$soname.def;
14771 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14779 hardcode_shlibpath_var=no
14780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14781 export_dynamic_flag_spec='${wl}-E'
14782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14783 # Instead, shared libraries are loaded at an image base (0x10000000 by
14784 # default) and relocated if they conflict, which is a slow very memory
14785 # consuming and fragmenting process. To avoid this, we pick a random,
14786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14789 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'
14793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14795 case $cc_basename,$host_cpu in
14796 pgcc*) # Portland Group C compiler
14797 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14798 tmp_addflag=' $pic_flag'
14800 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14801 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14802 tmp_addflag=' $pic_flag -Mnomain' ;;
14803 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14804 tmp_addflag=' -i_dynamic' ;;
14805 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14806 tmp_addflag=' -i_dynamic -nofor_main' ;;
14807 ifc* | ifort*) # Intel Fortran compiler
14808 tmp_addflag=' -nofor_main' ;;
14810 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14812 if test $supports_anon_versioning = yes; then
14813 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14815 $echo "local: *; };" >> $output_objdir/$libname.ver~
14816 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14825 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14829 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14834 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14839 *** create shared libraries on Solaris systems. Therefore, libtool
14840 *** is disabling shared libraries support. We urge you to upgrade GNU
14841 *** binutils to release 2.9.1 or newer. Another option is to modify
14842 *** your PATH or compiler configuration so that the native linker is
14843 *** used, and then restart.
14846 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14855 case `$LD -v 2>&1` in
14856 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14860 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14861 *** reliably create shared libraries on SCO systems. Therefore, libtool
14862 *** is disabling shared libraries support. We urge you to upgrade GNU
14863 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14864 *** your PATH or compiler configuration so that the native linker is
14865 *** used, and then restart.
14870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14871 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14882 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14884 hardcode_direct=yes
14885 hardcode_shlibpath_var=no
14889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14898 if test "$ld_shlibs" = no; then
14900 hardcode_libdir_flag_spec=
14901 export_dynamic_flag_spec=
14902 whole_archive_flag_spec=
14905 # PORTME fill in a description of your system's linker (not GNU ld)
14908 allow_undefined_flag=unsupported
14909 always_export_symbols=yes
14910 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'
14911 # Note: this linker hardcodes the directories in LIBPATH if there
14912 # are no directories specified by -L.
14913 hardcode_minus_L=yes
14914 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14915 # Neither direct hardcoding nor static linking is supported with a
14917 hardcode_direct=unsupported
14922 if test "$host_cpu" = ia64; then
14923 # On IA64, the linker does run time linking by default, so we don't
14924 # have to do anything special.
14925 aix_use_runtimelinking=no
14926 exp_sym_flag='-Bexport'
14929 # If we're using GNU nm, then we don't want the "-C" option.
14930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14931 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14932 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14934 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'
14936 aix_use_runtimelinking=no
14938 # Test if we are trying to use run time linking or normal
14939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14940 # need to do runtime linking.
14941 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14942 for ld_flag in $LDFLAGS; do
14943 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14944 aix_use_runtimelinking=yes
14951 exp_sym_flag='-bexport'
14952 no_entry_flag='-bnoentry'
14955 # When large executables or shared objects are built, AIX ld can
14956 # have problems creating the table of contents. If linking a library
14957 # or program results in "error TOC overflow" add -mminimal-toc to
14958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14962 hardcode_direct=yes
14963 hardcode_libdir_separator=':'
14964 link_all_deplibs=yes
14966 if test "$GCC" = yes; then
14967 case $host_os in aix4.[012]|aix4.[012].*)
14968 # We only want to do this on AIX 4.2 and lower, the check
14969 # below for broken collect2 doesn't work under 4.3+
14970 collect2name=`${CC} -print-prog-name=collect2`
14971 if test -f "$collect2name" && \
14972 strings "$collect2name" | grep resolve_lib_name >/dev/null
14974 # We have reworked collect2
14975 hardcode_direct=yes
14977 # We have old collect2
14978 hardcode_direct=unsupported
14979 # It fails to find uninstalled libraries when the uninstalled
14980 # path is not listed in the libpath. Setting hardcode_minus_L
14981 # to unsupported forces relinking
14982 hardcode_minus_L=yes
14983 hardcode_libdir_flag_spec='-L$libdir'
14984 hardcode_libdir_separator=
14988 shared_flag='-shared'
14989 if test "$aix_use_runtimelinking" = yes; then
14990 shared_flag="$shared_flag "'${wl}-G'
14994 if test "$host_cpu" = ia64; then
14995 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14996 # chokes on -Wl,-G. The following line is correct:
14999 if test "$aix_use_runtimelinking" = yes; then
15000 shared_flag='${wl}-G'
15002 shared_flag='${wl}-bM:SRE'
15007 # It seems that -bexpall does not export symbols beginning with
15008 # underscore (_), so it is better to generate a list of symbols to export.
15009 always_export_symbols=yes
15010 if test "$aix_use_runtimelinking" = yes; then
15011 # Warning - without using the other runtime loading flags (-brtl),
15012 # -berok will link without error, but may produce a broken library.
15013 allow_undefined_flag='-berok'
15014 # Determine the default libpath from the value encoded in an empty executable.
15015 cat >conftest.$ac_ext <<_ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (ac_try="$ac_link"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_link") 2>conftest.er1
15039 grep -v '^ *+' conftest.er1 >conftest.err
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
15044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15045 { (case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_try") 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; } &&
15054 { ac_try='test -s conftest$ac_exeext'
15055 { (case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_try") 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15065 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15067 # Check for a 64-bit object if we didn't find anything.
15068 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15077 rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15081 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15082 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15084 if test "$host_cpu" = ia64; then
15085 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15086 allow_undefined_flag="-z nodefs"
15087 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"
15089 # Determine the default libpath from the value encoded in an empty executable.
15090 cat >conftest.$ac_ext <<_ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (ac_try="$ac_link"
15107 case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_link") 2>conftest.er1
15114 grep -v '^ *+' conftest.er1 >conftest.err
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest$ac_exeext'
15130 { (case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_try") 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15142 # Check for a 64-bit object if we didn't find anything.
15143 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15152 rm -f core conftest.err conftest.$ac_objext \
15153 conftest$ac_exeext conftest.$ac_ext
15154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15156 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15157 # Warning - without using the other run time loading flags,
15158 # -berok will link without error, but may produce a broken library.
15159 no_undefined_flag=' ${wl}-bernotok'
15160 allow_undefined_flag=' ${wl}-berok'
15161 # Exported symbols can be pulled into shared objects from archives
15162 whole_archive_flag_spec='$convenience'
15163 archive_cmds_need_lc=yes
15164 # This is similar to how AIX traditionally builds its shared libraries.
15165 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'
15171 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)'
15172 hardcode_libdir_flag_spec='-L$libdir'
15173 hardcode_minus_L=yes
15174 # see comment about different semantics on the GNU ld section
15179 export_dynamic_flag_spec=-rdynamic
15182 cygwin* | mingw* | pw32*)
15183 # When not using gcc, we currently assume that we are using
15184 # Microsoft Visual C++.
15185 # hardcode_libdir_flag_spec is actually meaningless, as there is
15186 # no search path for DLLs.
15187 hardcode_libdir_flag_spec=' '
15188 allow_undefined_flag=unsupported
15189 # Tell ltmain to make .lib files, not .a files.
15191 # Tell ltmain to make .dll files, not .so files.
15193 # FIXME: Setting linknames here is a bad hack.
15194 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15195 # The linker will automatically build a .lib file if we build a DLL.
15196 old_archive_From_new_cmds='true'
15197 # FIXME: Should let the user specify the lib program.
15198 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15199 fix_srcfile_path='`cygpath -w "$srcfile"`'
15200 enable_shared_with_static_runtimes=yes
15203 darwin* | rhapsody*)
15205 rhapsody* | darwin1.[012])
15206 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15209 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15210 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15212 case ${MACOSX_DEPLOYMENT_TARGET} in
15214 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15217 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15223 archive_cmds_need_lc=no
15225 hardcode_automatic=yes
15226 hardcode_shlibpath_var=unsupported
15227 whole_archive_flag_spec=''
15228 link_all_deplibs=yes
15229 if test "$GCC" = yes ; then
15230 output_verbose_link_cmd='echo'
15231 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15232 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15233 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15234 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15235 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15237 case $cc_basename in
15239 output_verbose_link_cmd='echo'
15240 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15241 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15242 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15243 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15244 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15255 hardcode_libdir_flag_spec='-L$libdir'
15256 hardcode_shlibpath_var=no
15263 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15264 # support. Future versions do this automatically, but an explicit c++rt0.o
15265 # does not break anything, and helps significantly (at the cost of a little
15268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15269 hardcode_libdir_flag_spec='-R$libdir'
15270 hardcode_direct=yes
15271 hardcode_shlibpath_var=no
15274 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15277 hardcode_direct=yes
15278 hardcode_minus_L=yes
15279 hardcode_shlibpath_var=no
15282 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15283 freebsd* | kfreebsd*-gnu | dragonfly*)
15284 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15285 hardcode_libdir_flag_spec='-R$libdir'
15286 hardcode_direct=yes
15287 hardcode_shlibpath_var=no
15291 if test "$GCC" = yes; then
15292 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15294 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'
15296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15297 hardcode_libdir_separator=:
15298 hardcode_direct=yes
15300 # hardcode_minus_L: Not really in the search PATH,
15301 # but as the default location of the library.
15302 hardcode_minus_L=yes
15303 export_dynamic_flag_spec='${wl}-E'
15307 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15308 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15310 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15312 if test "$with_gnu_ld" = no; then
15313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15314 hardcode_libdir_separator=:
15316 hardcode_direct=yes
15317 export_dynamic_flag_spec='${wl}-E'
15319 # hardcode_minus_L: Not really in the search PATH,
15320 # but as the default location of the library.
15321 hardcode_minus_L=yes
15326 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15329 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15332 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15335 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15341 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15344 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15347 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15351 if test "$with_gnu_ld" = no; then
15352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15353 hardcode_libdir_separator=:
15357 hardcode_libdir_flag_spec_ld='+b $libdir'
15359 hardcode_shlibpath_var=no
15362 hardcode_direct=yes
15363 export_dynamic_flag_spec='${wl}-E'
15365 # hardcode_minus_L: Not really in the search PATH,
15366 # but as the default location of the library.
15367 hardcode_minus_L=yes
15373 irix5* | irix6* | nonstopux*)
15374 if test "$GCC" = yes; then
15375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15377 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15378 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15381 hardcode_libdir_separator=:
15382 link_all_deplibs=yes
15386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15389 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15391 hardcode_libdir_flag_spec='-R$libdir'
15392 hardcode_direct=yes
15393 hardcode_shlibpath_var=no
15397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15398 hardcode_direct=yes
15399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15400 hardcode_libdir_separator=:
15401 hardcode_shlibpath_var=no
15405 hardcode_direct=yes
15406 hardcode_shlibpath_var=no
15407 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15408 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15409 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15410 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15411 export_dynamic_flag_spec='${wl}-E'
15414 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15416 hardcode_libdir_flag_spec='-R$libdir'
15419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15420 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15427 hardcode_libdir_flag_spec='-L$libdir'
15428 hardcode_minus_L=yes
15429 allow_undefined_flag=unsupported
15430 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'
15431 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15435 if test "$GCC" = yes; then
15436 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15437 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15439 allow_undefined_flag=' -expect_unresolved \*'
15440 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15443 hardcode_libdir_separator=:
15446 osf4* | osf5*) # as osf3* with the addition of -msym flag
15447 if test "$GCC" = yes; then
15448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15449 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15452 allow_undefined_flag=' -expect_unresolved \*'
15453 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15454 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15455 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15457 # Both c and cxx compiler support -rpath directly
15458 hardcode_libdir_flag_spec='-rpath $libdir'
15460 hardcode_libdir_separator=:
15464 no_undefined_flag=' -z text'
15465 if test "$GCC" = yes; then
15467 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15468 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15469 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15472 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15474 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15476 hardcode_libdir_flag_spec='-R$libdir'
15477 hardcode_shlibpath_var=no
15479 solaris2.[0-5] | solaris2.[0-5].*) ;;
15481 # The compiler driver will combine linker options so we
15482 # cannot just pass the convience library names through
15483 # without $wl, iff we do not link with $LD.
15484 # Luckily, gcc supports the same syntax we need for Sun Studio.
15485 # Supported since Solaris 2.6 (maybe 2.5.1?)
15488 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15490 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15493 link_all_deplibs=yes
15497 if test "x$host_vendor" = xsequent; then
15498 # Use $CC to link under sequent, because it throws in some extra .o
15499 # files that make .init and .fini sections work.
15500 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15502 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15504 hardcode_libdir_flag_spec='-L$libdir'
15505 hardcode_direct=yes
15506 hardcode_minus_L=yes
15507 hardcode_shlibpath_var=no
15511 case $host_vendor in
15513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15514 hardcode_direct=yes # is this really true???
15517 ## LD is ld it makes a PLAMLIB
15518 ## CC just makes a GrossModule.
15519 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15520 reload_cmds='$CC -r -o $output$reload_objs'
15524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15525 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15528 runpath_var='LD_RUN_PATH'
15529 hardcode_shlibpath_var=no
15533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534 hardcode_shlibpath_var=no
15535 export_dynamic_flag_spec='-Bexport'
15539 if test -d /usr/nec; then
15540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_shlibpath_var=no
15542 runpath_var=LD_RUN_PATH
15543 hardcode_runpath_var=yes
15548 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15549 no_undefined_flag='${wl}-z,text'
15550 archive_cmds_need_lc=no
15551 hardcode_shlibpath_var=no
15552 runpath_var='LD_RUN_PATH'
15554 if test "$GCC" = yes; then
15555 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15556 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15558 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15563 sysv5* | sco3.2v5* | sco5v6*)
15564 # Note: We can NOT use -z defs as we might desire, because we do not
15565 # link with -lc, and that would cause any symbols used from libc to
15566 # always be unresolved, which means just about no library would
15567 # ever link correctly. If we're not using GNU ld we use -z text
15568 # though, which does catch some bad symbols but isn't as heavy-handed
15570 no_undefined_flag='${wl}-z,text'
15571 allow_undefined_flag='${wl}-z,nodefs'
15572 archive_cmds_need_lc=no
15573 hardcode_shlibpath_var=no
15574 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15575 hardcode_libdir_separator=':'
15576 link_all_deplibs=yes
15577 export_dynamic_flag_spec='${wl}-Bexport'
15578 runpath_var='LD_RUN_PATH'
15580 if test "$GCC" = yes; then
15581 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15582 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15584 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15591 hardcode_libdir_flag_spec='-L$libdir'
15592 hardcode_shlibpath_var=no
15601 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15602 echo "${ECHO_T}$ld_shlibs" >&6; }
15603 test "$ld_shlibs" = no && can_build_shared=no
15606 # Do we need to explicitly link libc?
15608 case "x$archive_cmds_need_lc" in
15610 # Assume -lc should be added
15611 archive_cmds_need_lc=yes
15613 if test "$enable_shared" = yes && test "$GCC" = yes; then
15614 case $archive_cmds in
15616 # FIXME: we may have to deal with multi-command sequences.
15619 # Test whether the compiler implicitly links with -lc since on some
15620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15621 # to ld, don't add -lc before -lgcc.
15622 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15623 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15628 (eval $ac_compile) 2>&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } 2>conftest.err; then
15634 libobjs=conftest.$ac_objext
15636 wl=$lt_prog_compiler_wl
15637 pic_flag=$lt_prog_compiler_pic
15643 lt_save_allow_undefined_flag=$allow_undefined_flag
15644 allow_undefined_flag=
15645 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15646 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }
15651 archive_cmds_need_lc=no
15653 archive_cmds_need_lc=yes
15655 allow_undefined_flag=$lt_save_allow_undefined_flag
15657 cat conftest.err 1>&5
15660 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15661 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15668 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15669 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15670 library_names_spec=
15671 libname_spec='lib$name'
15675 postuninstall_cmds=
15679 shlibpath_overrides_runpath=unknown
15681 dynamic_linker="$host_os ld.so"
15682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15683 if test "$GCC" = yes; then
15684 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15685 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15686 # if the path contains ";" then we assume it to be the separator
15687 # otherwise default to the standard path separator (i.e. ":") - it is
15688 # assumed that no part of a normal pathname contains ";" but that should
15689 # okay in the real world where ";" in dirpaths is itself problematic.
15690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15695 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15697 need_lib_prefix=unknown
15698 hardcode_into_libs=no
15700 # when you set need_version to no, make sure it does not cause -set_version
15701 # flags to be left without arguments
15702 need_version=unknown
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15708 shlibpath_var=LIBPATH
15710 # AIX 3 has no versioning support, so we append a major version to the name.
15711 soname_spec='${libname}${release}${shared_ext}$major'
15718 hardcode_into_libs=yes
15719 if test "$host_cpu" = ia64; then
15720 # AIX 5 supports IA64
15721 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15722 shlibpath_var=LD_LIBRARY_PATH
15724 # With GCC up to 2.95.x, collect2 would create an import file
15725 # for dependence libraries. The import file would start with
15726 # the line `#! .'. This would cause the generated library to
15727 # depend on `.', always an invalid library. This was fixed in
15728 # development snapshots of GCC prior to 3.0.
15730 aix4 | aix4.[01] | aix4.[01].*)
15731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15733 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15736 can_build_shared=no
15740 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15741 # soname into executable. Probably we can add versioning support to
15742 # collect2, so additional links can be useful in future.
15743 if test "$aix_use_runtimelinking" = yes; then
15744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15745 # instead of lib<name>.a to let people know that these are not
15746 # typical AIX shared libraries.
15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749 # We preserve .a as extension for shared libraries through AIX4.2
15750 # and later when we are not doing run time linking.
15751 library_names_spec='${libname}${release}.a $libname.a'
15752 soname_spec='${libname}${release}${shared_ext}$major'
15754 shlibpath_var=LIBPATH
15759 library_names_spec='$libname.ixlibrary $libname.a'
15760 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15761 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15765 library_names_spec='${libname}${shared_ext}'
15766 dynamic_linker="$host_os ld.so"
15767 shlibpath_var=LIBRARY_PATH
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 soname_spec='${libname}${release}${shared_ext}$major'
15775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15779 # the default ld.so.conf also contains /usr/contrib/lib and
15780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15781 # libtool to hard-code these into programs
15784 cygwin* | mingw* | pw32*)
15785 version_type=windows
15790 case $GCC,$host_os in
15791 yes,cygwin* | yes,mingw* | yes,pw32*)
15792 library_names_spec='$libname.dll.a'
15793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15794 postinstall_cmds='base_file=`basename \${file}`~
15795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15796 dldir=$destdir/`dirname \$dlpath`~
15797 test -d \$dldir || mkdir -p \$dldir~
15798 $install_prog $dir/$dlname \$dldir/$dlname~
15799 chmod a+x \$dldir/$dlname'
15800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15801 dlpath=$dir/\$dldll~
15803 shlibpath_overrides_runpath=yes
15807 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15809 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15812 # MinGW DLLs use traditional 'lib' prefix
15813 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15814 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15815 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15816 # It is most probably a Windows format PATH printed by
15817 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15818 # path with ; separators, and with drive letters. We can handle the
15819 # drive letters (cygwin fileutils understands them), so leave them,
15820 # especially as we might pass files found there to a mingw objdump,
15821 # which wouldn't understand a cygwinified path. Ahh.
15822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15828 # pw32 DLLs use 'pw' prefix rather than 'lib'
15829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15838 dynamic_linker='Win32 ld.exe'
15839 # FIXME: first we should search . and the directory the executable is in
15843 darwin* | rhapsody*)
15844 dynamic_linker="$host_os dyld"
15845 version_type=darwin
15848 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15849 soname_spec='${libname}${release}${major}$shared_ext'
15850 shlibpath_overrides_runpath=yes
15851 shlibpath_var=DYLD_LIBRARY_PATH
15852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15853 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15854 if test "$GCC" = yes; then
15855 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15857 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15859 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15867 soname_spec='${libname}${release}${shared_ext}$major'
15868 shlibpath_var=LD_LIBRARY_PATH
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 shlibpath_overrides_runpath=no
15883 hardcode_into_libs=yes
15884 dynamic_linker='GNU ld.so'
15887 freebsd* | dragonfly*)
15888 # DragonFly does not have aout. When/if they implement a new
15889 # versioning mechanism, adjust this.
15890 if test -x /usr/bin/objformat; then
15891 objformat=`/usr/bin/objformat`
15894 freebsd[123]*) objformat=aout ;;
15895 *) objformat=elf ;;
15898 version_type=freebsd-$objformat
15899 case $version_type in
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15910 shlibpath_var=LD_LIBRARY_PATH
15913 shlibpath_overrides_runpath=yes
15915 freebsd3.[01]* | freebsdelf3.[01]*)
15916 shlibpath_overrides_runpath=yes
15917 hardcode_into_libs=yes
15919 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15920 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15921 shlibpath_overrides_runpath=no
15922 hardcode_into_libs=yes
15924 freebsd*) # from 4.6 on
15925 shlibpath_overrides_runpath=yes
15926 hardcode_into_libs=yes
15935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15936 soname_spec='${libname}${release}${shared_ext}$major'
15937 shlibpath_var=LD_LIBRARY_PATH
15938 hardcode_into_libs=yes
15941 hpux9* | hpux10* | hpux11*)
15942 # Give a soname corresponding to the major version so that dld.sl refuses to
15943 # link against other versions.
15950 hardcode_into_libs=yes
15951 dynamic_linker="$host_os dld.so"
15952 shlibpath_var=LD_LIBRARY_PATH
15953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 if test "X$HPUX_IA64_MODE" = X32; then
15957 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15959 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15965 hardcode_into_libs=yes
15966 dynamic_linker="$host_os dld.sl"
15967 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15976 dynamic_linker="$host_os dld.sl"
15977 shlibpath_var=SHLIB_PATH
15978 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980 soname_spec='${libname}${release}${shared_ext}$major'
15983 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15984 postinstall_cmds='chmod 555 $lib'
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 shlibpath_overrides_runpath=no
15996 hardcode_into_libs=yes
15999 irix5* | irix6* | nonstopux*)
16001 nonstopux*) version_type=nonstopux ;;
16003 if test "$lt_cv_prog_gnu_ld" = yes; then
16011 soname_spec='${libname}${release}${shared_ext}$major'
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16014 irix5* | nonstopux*)
16015 libsuff= shlibsuff=
16018 case $LD in # libtool.m4 will add one of these switches to LD
16019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16020 libsuff= shlibsuff= libmagic=32-bit;;
16021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16022 libsuff=32 shlibsuff=N32 libmagic=N32;;
16023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16025 *) libsuff= shlibsuff= libmagic=never-match;;
16029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16030 shlibpath_overrides_runpath=no
16031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16033 hardcode_into_libs=yes
16036 # No shared lib support for Linux oldld, aout, or coff.
16037 linux*oldld* | linux*aout* | linux*coff*)
16041 # This must be Linux ELF.
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 soname_spec='${libname}${release}${shared_ext}$major'
16048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16049 shlibpath_var=LD_LIBRARY_PATH
16050 shlibpath_overrides_runpath=no
16051 # This implies no fast_install, which is unacceptable.
16052 # Some rework will be needed to allow for fast_install
16053 # before this can be enabled.
16054 hardcode_into_libs=yes
16056 # Append ld.so.conf contents to the search path
16057 if test -f /etc/ld.so.conf; then
16058 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16059 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16062 # We used to test for /lib/ld.so.1 and disable shared libraries on
16063 # powerpc, because MkLinux only supported shared libraries with the
16064 # GNU dynamic linker. Since this was broken with cross compilers,
16065 # most powerpc-linux boxes support dynamic linking these days and
16066 # people can always --disable-shared, the test was removed, and we
16067 # assume the GNU/Linux dynamic linker is in use.
16068 dynamic_linker='GNU/Linux ld.so'
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=no
16079 hardcode_into_libs=yes
16080 dynamic_linker='GNU ld.so'
16087 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16090 dynamic_linker='NetBSD (a.out) ld.so'
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16093 soname_spec='${libname}${release}${shared_ext}$major'
16094 dynamic_linker='NetBSD ld.elf_so'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 shlibpath_overrides_runpath=yes
16098 hardcode_into_libs=yes
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104 shlibpath_var=LD_LIBRARY_PATH
16105 shlibpath_overrides_runpath=yes
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113 soname_spec='${libname}${release}${shared_ext}$major'
16114 shlibpath_var=LD_LIBRARY_PATH
16115 shlibpath_overrides_runpath=yes
16120 sys_lib_dlsearch_path_spec="/usr/lib"
16122 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16124 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16125 *) need_version=no ;;
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16129 shlibpath_var=LD_LIBRARY_PATH
16130 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16132 openbsd2.[89] | openbsd2.[89].*)
16133 shlibpath_overrides_runpath=no
16136 shlibpath_overrides_runpath=yes
16140 shlibpath_overrides_runpath=yes
16145 libname_spec='$name'
16148 library_names_spec='$libname${shared_ext} $libname.a'
16149 dynamic_linker='OS/2 ld.exe'
16150 shlibpath_var=LIBPATH
16153 osf3* | osf4* | osf5*)
16157 soname_spec='${libname}${release}${shared_ext}$major'
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16159 shlibpath_var=LD_LIBRARY_PATH
16160 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16161 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=yes
16172 hardcode_into_libs=yes
16173 # ldd complains unless libraries are executable
16174 postinstall_cmds='chmod +x $lib'
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16181 shlibpath_var=LD_LIBRARY_PATH
16182 shlibpath_overrides_runpath=yes
16183 if test "$with_gnu_ld" = yes; then
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192 soname_spec='${libname}${release}${shared_ext}$major'
16193 shlibpath_var=LD_LIBRARY_PATH
16194 case $host_vendor in
16196 shlibpath_overrides_runpath=no
16198 export_dynamic_flag_spec='${wl}-Blargedynsym'
16199 runpath_var=LD_RUN_PATH
16207 shlibpath_overrides_runpath=no
16208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16214 if test -d /usr/nec ;then
16216 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16217 soname_spec='$libname${shared_ext}.$major'
16218 shlibpath_var=LD_LIBRARY_PATH
16222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16223 version_type=freebsd-elf
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16227 soname_spec='${libname}${release}${shared_ext}$major'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 hardcode_into_libs=yes
16230 if test "$with_gnu_ld" = yes; then
16231 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16232 shlibpath_overrides_runpath=no
16234 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16235 shlibpath_overrides_runpath=yes
16238 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16242 sys_lib_dlsearch_path_spec='/usr/lib'
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 shlibpath_var=LD_LIBRARY_PATH
16256 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16257 echo "${ECHO_T}$dynamic_linker" >&6; }
16258 test "$dynamic_linker" = no && can_build_shared=no
16260 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16261 if test "$GCC" = yes; then
16262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16265 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16266 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16268 if test -n "$hardcode_libdir_flag_spec" || \
16269 test -n "$runpath_var" || \
16270 test "X$hardcode_automatic" = "Xyes" ; then
16272 # We can hardcode non-existant directories.
16273 if test "$hardcode_direct" != no &&
16274 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16275 # have to relink, otherwise we might link with an installed library
16276 # when we should be linking with a yet-to-be-installed one
16277 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16278 test "$hardcode_minus_L" != no; then
16279 # Linking always hardcodes the temporary library directory.
16280 hardcode_action=relink
16282 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16283 hardcode_action=immediate
16286 # We cannot hardcode anything, or else we can only hardcode existing
16288 hardcode_action=unsupported
16290 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16291 echo "${ECHO_T}$hardcode_action" >&6; }
16293 if test "$hardcode_action" = relink; then
16294 # Fast installation is not supported
16295 enable_fast_install=no
16296 elif test "$shlibpath_overrides_runpath" = yes ||
16297 test "$enable_shared" = no; then
16298 # Fast installation is not necessary
16299 enable_fast_install=needless
16304 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16305 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16306 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16307 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16308 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16309 { echo "$as_me:$LINENO: result: yes" >&5
16310 echo "${ECHO_T}yes" >&6; }
16312 # FIXME - insert some real tests, host_os isn't really good enough
16315 if test -n "$STRIP" ; then
16316 striplib="$STRIP -x"
16317 { echo "$as_me:$LINENO: result: yes" >&5
16318 echo "${ECHO_T}yes" >&6; }
16320 { echo "$as_me:$LINENO: result: no" >&5
16321 echo "${ECHO_T}no" >&6; }
16325 { echo "$as_me:$LINENO: result: no" >&5
16326 echo "${ECHO_T}no" >&6; }
16331 if test "x$enable_dlopen" != xyes; then
16332 enable_dlopen=unknown
16333 enable_dlopen_self=unknown
16334 enable_dlopen_self_static=unknown
16341 lt_cv_dlopen="load_add_on"
16343 lt_cv_dlopen_self=yes
16347 lt_cv_dlopen="LoadLibrary"
16352 lt_cv_dlopen="dlopen"
16357 # if libdl is installed we need to link against it
16358 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16359 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16360 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16363 ac_check_lib_save_LIBS=$LIBS
16365 cat >conftest.$ac_ext <<_ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16372 /* Override any GCC internal prototype to avoid an error.
16373 Use char because int might match the return type of a GCC
16374 builtin and then its argument prototype would still apply. */
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (ac_try="$ac_link"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_link") 2>conftest.er1
16396 grep -v '^ *+' conftest.er1 >conftest.err
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest$ac_exeext'
16412 { (case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_try") 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_cv_lib_dl_dlopen=yes
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_cv_lib_dl_dlopen=no
16429 rm -f core conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16431 LIBS=$ac_check_lib_save_LIBS
16433 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16434 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16435 if test $ac_cv_lib_dl_dlopen = yes; then
16436 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16439 lt_cv_dlopen="dyld"
16441 lt_cv_dlopen_self=yes
16448 { echo "$as_me:$LINENO: checking for shl_load" >&5
16449 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16450 if test "${ac_cv_func_shl_load+set}" = set; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 cat >conftest.$ac_ext <<_ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16461 #define shl_load innocuous_shl_load
16463 /* System header to define __stub macros and hopefully few prototypes,
16464 which can conflict with char shl_load (); below.
16465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16466 <limits.h> exists even on freestanding compilers. */
16469 # include <limits.h>
16471 # include <assert.h>
16476 /* Override any GCC internal prototype to avoid an error.
16477 Use char because int might match the return type of a GCC
16478 builtin and then its argument prototype would still apply. */
16483 /* The GNU C library defines this for functions which it implements
16484 to always fail with ENOSYS. Some functions are actually named
16485 something starting with __ and the normal name is an alias. */
16486 #if defined __stub_shl_load || defined __stub___shl_load
16493 return shl_load ();
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (ac_try="$ac_link"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_link") 2>conftest.er1
16507 grep -v '^ *+' conftest.er1 >conftest.err
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
16512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513 { (case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_try") 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest$ac_exeext'
16523 { (case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_try") 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_cv_func_shl_load=yes
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 ac_cv_func_shl_load=no
16540 rm -f core conftest.err conftest.$ac_objext \
16541 conftest$ac_exeext conftest.$ac_ext
16543 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16544 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16545 if test $ac_cv_func_shl_load = yes; then
16546 lt_cv_dlopen="shl_load"
16548 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16549 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16550 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 ac_check_lib_save_LIBS=$LIBS
16555 cat >conftest.$ac_ext <<_ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16562 /* Override any GCC internal prototype to avoid an error.
16563 Use char because int might match the return type of a GCC
16564 builtin and then its argument prototype would still apply. */
16572 return shl_load ();
16577 rm -f conftest.$ac_objext conftest$ac_exeext
16578 if { (ac_try="$ac_link"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_link") 2>conftest.er1
16586 grep -v '^ *+' conftest.er1 >conftest.err
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } &&
16591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16592 { (case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_try") 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest$ac_exeext'
16602 { (case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_try") 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 ac_cv_lib_dld_shl_load=yes
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16616 ac_cv_lib_dld_shl_load=no
16619 rm -f core conftest.err conftest.$ac_objext \
16620 conftest$ac_exeext conftest.$ac_ext
16621 LIBS=$ac_check_lib_save_LIBS
16623 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16624 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16625 if test $ac_cv_lib_dld_shl_load = yes; then
16626 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16628 { echo "$as_me:$LINENO: checking for dlopen" >&5
16629 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16630 if test "${ac_cv_func_dlopen+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 cat >conftest.$ac_ext <<_ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16639 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16641 #define dlopen innocuous_dlopen
16643 /* System header to define __stub macros and hopefully few prototypes,
16644 which can conflict with char dlopen (); below.
16645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16646 <limits.h> exists even on freestanding compilers. */
16649 # include <limits.h>
16651 # include <assert.h>
16656 /* Override any GCC internal prototype to avoid an error.
16657 Use char because int might match the return type of a GCC
16658 builtin and then its argument prototype would still apply. */
16663 /* The GNU C library defines this for functions which it implements
16664 to always fail with ENOSYS. Some functions are actually named
16665 something starting with __ and the normal name is an alias. */
16666 #if defined __stub_dlopen || defined __stub___dlopen
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
16687 grep -v '^ *+' conftest.er1 >conftest.err
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
16692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest$ac_exeext'
16703 { (case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_try") 2>&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_cv_func_dlopen=yes
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 ac_cv_func_dlopen=no
16720 rm -f core conftest.err conftest.$ac_objext \
16721 conftest$ac_exeext conftest.$ac_ext
16723 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16724 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16725 if test $ac_cv_func_dlopen = yes; then
16726 lt_cv_dlopen="dlopen"
16728 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16729 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16730 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 ac_check_lib_save_LIBS=$LIBS
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16742 /* Override any GCC internal prototype to avoid an error.
16743 Use char because int might match the return type of a GCC
16744 builtin and then its argument prototype would still apply. */
16757 rm -f conftest.$ac_objext conftest$ac_exeext
16758 if { (ac_try="$ac_link"
16759 case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764 (eval "$ac_link") 2>conftest.er1
16766 grep -v '^ *+' conftest.er1 >conftest.err
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } &&
16771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16772 { (case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_try") 2>&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; } &&
16781 { ac_try='test -s conftest$ac_exeext'
16782 { (case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_try") 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ac_cv_lib_dl_dlopen=yes
16793 echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16796 ac_cv_lib_dl_dlopen=no
16799 rm -f core conftest.err conftest.$ac_objext \
16800 conftest$ac_exeext conftest.$ac_ext
16801 LIBS=$ac_check_lib_save_LIBS
16803 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16804 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16805 if test $ac_cv_lib_dl_dlopen = yes; then
16806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16808 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16809 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16810 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 ac_check_lib_save_LIBS=$LIBS
16814 LIBS="-lsvld $LIBS"
16815 cat >conftest.$ac_ext <<_ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16822 /* Override any GCC internal prototype to avoid an error.
16823 Use char because int might match the return type of a GCC
16824 builtin and then its argument prototype would still apply. */
16837 rm -f conftest.$ac_objext conftest$ac_exeext
16838 if { (ac_try="$ac_link"
16839 case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844 (eval "$ac_link") 2>conftest.er1
16846 grep -v '^ *+' conftest.er1 >conftest.err
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
16851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16852 { (case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_try") 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; } &&
16861 { ac_try='test -s conftest$ac_exeext'
16862 { (case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_try") 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_cv_lib_svld_dlopen=yes
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16876 ac_cv_lib_svld_dlopen=no
16879 rm -f core conftest.err conftest.$ac_objext \
16880 conftest$ac_exeext conftest.$ac_ext
16881 LIBS=$ac_check_lib_save_LIBS
16883 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16884 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16885 if test $ac_cv_lib_svld_dlopen = yes; then
16886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16888 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16889 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16890 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16893 ac_check_lib_save_LIBS=$LIBS
16895 cat >conftest.$ac_ext <<_ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16902 /* Override any GCC internal prototype to avoid an error.
16903 Use char because int might match the return type of a GCC
16904 builtin and then its argument prototype would still apply. */
16912 return dld_link ();
16917 rm -f conftest.$ac_objext conftest$ac_exeext
16918 if { (ac_try="$ac_link"
16919 case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_link") 2>conftest.er1
16926 grep -v '^ *+' conftest.er1 >conftest.err
16928 cat conftest.err >&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
16931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; } &&
16941 { ac_try='test -s conftest$ac_exeext'
16942 { (case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_try") 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; }; then
16951 ac_cv_lib_dld_dld_link=yes
16953 echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16956 ac_cv_lib_dld_dld_link=no
16959 rm -f core conftest.err conftest.$ac_objext \
16960 conftest$ac_exeext conftest.$ac_ext
16961 LIBS=$ac_check_lib_save_LIBS
16963 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16964 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16965 if test $ac_cv_lib_dld_dld_link = yes; then
16966 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16987 if test "x$lt_cv_dlopen" != xno; then
16993 case $lt_cv_dlopen in
16995 save_CPPFLAGS="$CPPFLAGS"
16996 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16998 save_LDFLAGS="$LDFLAGS"
16999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17002 LIBS="$lt_cv_dlopen_libs $LIBS"
17004 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17005 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17006 if test "${lt_cv_dlopen_self+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 if test "$cross_compiling" = yes; then :
17010 lt_cv_dlopen_self=cross
17012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17013 lt_status=$lt_dlunknown
17014 cat > conftest.$ac_ext <<EOF
17015 #line 17015 "configure"
17016 #include "confdefs.h"
17025 # define LT_DLGLOBAL RTLD_GLOBAL
17028 # define LT_DLGLOBAL DL_GLOBAL
17030 # define LT_DLGLOBAL 0
17034 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17035 find out it does not work in some platform. */
17036 #ifndef LT_DLLAZY_OR_NOW
17038 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17041 # define LT_DLLAZY_OR_NOW DL_LAZY
17044 # define LT_DLLAZY_OR_NOW RTLD_NOW
17047 # define LT_DLLAZY_OR_NOW DL_NOW
17049 # define LT_DLLAZY_OR_NOW 0
17057 extern "C" void exit (int);
17060 void fnord() { int i=42;}
17063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17064 int status = $lt_dlunknown;
17068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17069 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17070 /* dlclose (self); */
17078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17079 (eval $ac_link) 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17083 (./conftest; exit; ) >&5 2>/dev/null
17085 case x$lt_status in
17086 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17087 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17088 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17091 # compilation failed
17092 lt_cv_dlopen_self=no
17099 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17100 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17102 if test "x$lt_cv_dlopen_self" = xyes; then
17103 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17104 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17105 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17106 if test "${lt_cv_dlopen_self_static+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 if test "$cross_compiling" = yes; then :
17110 lt_cv_dlopen_self_static=cross
17112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17113 lt_status=$lt_dlunknown
17114 cat > conftest.$ac_ext <<EOF
17115 #line 17115 "configure"
17116 #include "confdefs.h"
17125 # define LT_DLGLOBAL RTLD_GLOBAL
17128 # define LT_DLGLOBAL DL_GLOBAL
17130 # define LT_DLGLOBAL 0
17134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17135 find out it does not work in some platform. */
17136 #ifndef LT_DLLAZY_OR_NOW
17138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17141 # define LT_DLLAZY_OR_NOW DL_LAZY
17144 # define LT_DLLAZY_OR_NOW RTLD_NOW
17147 # define LT_DLLAZY_OR_NOW DL_NOW
17149 # define LT_DLLAZY_OR_NOW 0
17157 extern "C" void exit (int);
17160 void fnord() { int i=42;}
17163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17164 int status = $lt_dlunknown;
17168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17169 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17170 /* dlclose (self); */
17178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179 (eval $ac_link) 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17183 (./conftest; exit; ) >&5 2>/dev/null
17185 case x$lt_status in
17186 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17187 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17188 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17191 # compilation failed
17192 lt_cv_dlopen_self_static=no
17199 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17200 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17203 CPPFLAGS="$save_CPPFLAGS"
17204 LDFLAGS="$save_LDFLAGS"
17209 case $lt_cv_dlopen_self in
17210 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17211 *) enable_dlopen_self=unknown ;;
17214 case $lt_cv_dlopen_self_static in
17215 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17216 *) enable_dlopen_self_static=unknown ;;
17221 # Report which library types will actually be built
17222 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17223 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17224 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17225 echo "${ECHO_T}$can_build_shared" >&6; }
17227 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17228 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17229 test "$can_build_shared" = "no" && enable_shared=no
17231 # On AIX, shared libraries and static libraries use the same namespace, and
17232 # are all built from PIC.
17235 test "$enable_shared" = yes && enable_static=no
17236 if test -n "$RANLIB"; then
17237 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17238 postinstall_cmds='$RANLIB $lib'
17243 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17244 test "$enable_shared" = yes && enable_static=no
17248 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17249 echo "${ECHO_T}$enable_shared" >&6; }
17251 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17252 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17253 # Make sure either enable_shared or enable_static is yes.
17254 test "$enable_shared" = yes || enable_static=yes
17255 { echo "$as_me:$LINENO: result: $enable_static" >&5
17256 echo "${ECHO_T}$enable_static" >&6; }
17258 # The else clause should only fire when bootstrapping the
17259 # libtool distribution, otherwise you forgot to ship ltmain.sh
17260 # with your package, and you will get complaints that there are
17261 # no rules to generate ltmain.sh.
17262 if test -f "$ltmain"; then
17263 # See if we are running on zsh, and set the options which allow our commands through
17264 # without removal of \ escapes.
17265 if test -n "${ZSH_VERSION+set}" ; then
17266 setopt NO_GLOB_SUBST
17268 # Now quote all the things that may contain metacharacters while being
17269 # careful not to overquote the AC_SUBSTed values. We take copies of the
17270 # variables and quote the copies for generation of the libtool script.
17271 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17273 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17274 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17275 deplibs_check_method reload_flag reload_cmds need_locks \
17276 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17277 lt_cv_sys_global_symbol_to_c_name_address \
17278 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17279 old_postinstall_cmds old_postuninstall_cmds \
17283 lt_prog_compiler_wl \
17284 lt_prog_compiler_pic \
17285 lt_prog_compiler_static \
17286 lt_prog_compiler_no_builtin_flag \
17287 export_dynamic_flag_spec \
17288 thread_safe_flag_spec \
17289 whole_archive_flag_spec \
17290 enable_shared_with_static_runtimes \
17292 old_archive_from_new_cmds \
17297 compiler_lib_search_path \
17299 archive_expsym_cmds \
17301 postuninstall_cmds \
17302 old_archive_from_expsyms_cmds \
17303 allow_undefined_flag \
17304 no_undefined_flag \
17305 export_symbols_cmds \
17306 hardcode_libdir_flag_spec \
17307 hardcode_libdir_flag_spec_ld \
17308 hardcode_libdir_separator \
17309 hardcode_automatic \
17311 module_expsym_cmds \
17312 lt_cv_prog_compiler_c_o \
17314 include_expsyms; do
17317 old_archive_cmds | \
17318 old_archive_from_new_cmds | \
17320 archive_expsym_cmds | \
17322 module_expsym_cmds | \
17323 old_archive_from_expsyms_cmds | \
17324 export_symbols_cmds | \
17325 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17326 postinstall_cmds | postuninstall_cmds | \
17327 old_postinstall_cmds | old_postuninstall_cmds | \
17328 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17329 # Double-quote double-evaled strings.
17330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17339 *'\$0 --fallback-echo"')
17340 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17344 cfgfile="${ofile}T"
17345 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17347 { echo "$as_me:$LINENO: creating $ofile" >&5
17348 echo "$as_me: creating $ofile" >&6;}
17350 cat <<__EOF__ >> "$cfgfile"
17353 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17354 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17355 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17357 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17358 # Free Software Foundation, Inc.
17360 # This file is part of GNU Libtool:
17361 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17363 # This program is free software; you can redistribute it and/or modify
17364 # it under the terms of the GNU General Public License as published by
17365 # the Free Software Foundation; either version 2 of the License, or
17366 # (at your option) any later version.
17368 # This program is distributed in the hope that it will be useful, but
17369 # WITHOUT ANY WARRANTY; without even the implied warranty of
17370 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17371 # General Public License for more details.
17373 # You should have received a copy of the GNU General Public License
17374 # along with this program; if not, write to the Free Software
17375 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17377 # As a special exception to the GNU General Public License, if you
17378 # distribute this file as part of a program that contains a
17379 # configuration script generated by Autoconf, you may include it under
17380 # the same distribution terms that you use for the rest of that program.
17382 # A sed program that does not truncate output.
17385 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17386 Xsed="$SED -e 1s/^X//"
17388 # The HP-UX ksh and POSIX shell print the target directory to stdout
17389 # if CDPATH is set.
17390 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17392 # The names of the tagged configurations supported by this script.
17395 # ### BEGIN LIBTOOL CONFIG
17397 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17399 # Shell to use when invoking shell scripts.
17402 # Whether or not to build shared libraries.
17403 build_libtool_libs=$enable_shared
17405 # Whether or not to build static libraries.
17406 build_old_libs=$enable_static
17408 # Whether or not to add -lc for building shared libraries.
17409 build_libtool_need_lc=$archive_cmds_need_lc
17411 # Whether or not to disallow shared libs when runtime libs are static
17412 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17414 # Whether or not to optimize for fast installation.
17415 fast_install=$enable_fast_install
17418 host_alias=$host_alias
17422 # The build system.
17423 build_alias=$build_alias
17427 # An echo program that does not interpret backslashes.
17432 AR_FLAGS=$lt_AR_FLAGS
17437 # LTCC compiler flags.
17438 LTCFLAGS=$lt_LTCFLAGS
17440 # A language-specific compiler.
17443 # Is the compiler the GNU C compiler?
17449 # The linker used to build libraries.
17452 # Whether we need hard or soft links.
17455 # A BSD-compatible nm program.
17458 # A symbol stripping program
17461 # Used to examine libraries when file_magic_cmd begins "file"
17462 MAGIC_CMD=$MAGIC_CMD
17464 # Used on cygwin: DLL creation program.
17467 # Used on cygwin: object dumper.
17470 # Used on cygwin: assembler.
17473 # The name of the directory that contains temporary libtool files.
17476 # How to create reloadable object files.
17477 reload_flag=$lt_reload_flag
17478 reload_cmds=$lt_reload_cmds
17480 # How to pass a linker flag through the compiler.
17481 wl=$lt_lt_prog_compiler_wl
17483 # Object file suffix (normally "o").
17484 objext="$ac_objext"
17486 # Old archive suffix (normally "a").
17489 # Shared library suffix (normally ".so").
17490 shrext_cmds='$shrext_cmds'
17492 # Executable file suffix (normally "").
17495 # Additional compiler flags for building library objects.
17496 pic_flag=$lt_lt_prog_compiler_pic
17499 # What is the maximum length of a command?
17500 max_cmd_len=$lt_cv_sys_max_cmd_len
17502 # Does compiler simultaneously support -c and -o options?
17503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17505 # Must we lock files when doing compilation?
17506 need_locks=$lt_need_locks
17508 # Do we need the lib prefix for modules?
17509 need_lib_prefix=$need_lib_prefix
17511 # Do we need a version for libraries?
17512 need_version=$need_version
17514 # Whether dlopen is supported.
17515 dlopen_support=$enable_dlopen
17517 # Whether dlopen of programs is supported.
17518 dlopen_self=$enable_dlopen_self
17520 # Whether dlopen of statically linked programs is supported.
17521 dlopen_self_static=$enable_dlopen_self_static
17523 # Compiler flag to prevent dynamic linking.
17524 link_static_flag=$lt_lt_prog_compiler_static
17526 # Compiler flag to turn off builtin functions.
17527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17529 # Compiler flag to allow reflexive dlopens.
17530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17532 # Compiler flag to generate shared objects directly from archives.
17533 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17535 # Compiler flag to generate thread-safe objects.
17536 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17538 # Library versioning type.
17539 version_type=$version_type
17541 # Format of library name prefix.
17542 libname_spec=$lt_libname_spec
17544 # List of archive names. First name is the real one, the rest are links.
17545 # The last name is the one that the linker finds with -lNAME.
17546 library_names_spec=$lt_library_names_spec
17548 # The coded name of the library, if different from the real name.
17549 soname_spec=$lt_soname_spec
17551 # Commands used to build and install an old-style archive.
17553 old_archive_cmds=$lt_old_archive_cmds
17554 old_postinstall_cmds=$lt_old_postinstall_cmds
17555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17557 # Create an old-style archive from a shared archive.
17558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17560 # Create a temporary old-style archive to link instead of a shared archive.
17561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17563 # Commands used to build and install a shared archive.
17564 archive_cmds=$lt_archive_cmds
17565 archive_expsym_cmds=$lt_archive_expsym_cmds
17566 postinstall_cmds=$lt_postinstall_cmds
17567 postuninstall_cmds=$lt_postuninstall_cmds
17569 # Commands used to build a loadable module (assumed same as above if empty)
17570 module_cmds=$lt_module_cmds
17571 module_expsym_cmds=$lt_module_expsym_cmds
17573 # Commands to strip libraries.
17574 old_striplib=$lt_old_striplib
17575 striplib=$lt_striplib
17577 # Dependencies to place before the objects being linked to create a
17579 predep_objects=$lt_predep_objects
17581 # Dependencies to place after the objects being linked to create a
17583 postdep_objects=$lt_postdep_objects
17585 # Dependencies to place before the objects being linked to create a
17587 predeps=$lt_predeps
17589 # Dependencies to place after the objects being linked to create a
17591 postdeps=$lt_postdeps
17593 # The library search path used internally by the compiler when linking
17594 # a shared library.
17595 compiler_lib_search_path=$lt_compiler_lib_search_path
17597 # Method to check whether dependent libraries are shared objects.
17598 deplibs_check_method=$lt_deplibs_check_method
17600 # Command to use when deplibs_check_method == file_magic.
17601 file_magic_cmd=$lt_file_magic_cmd
17603 # Flag that allows shared libraries with undefined symbols to be built.
17604 allow_undefined_flag=$lt_allow_undefined_flag
17606 # Flag that forces no undefined symbols.
17607 no_undefined_flag=$lt_no_undefined_flag
17609 # Commands used to finish a libtool library installation in a directory.
17610 finish_cmds=$lt_finish_cmds
17612 # Same as above, but a single script fragment to be evaled but not shown.
17613 finish_eval=$lt_finish_eval
17615 # Take the output of nm and produce a listing of raw symbols and C names.
17616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17618 # Transform the output of nm in a proper C declaration
17619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17621 # Transform the output of nm in a C name address pair
17622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17624 # This is the shared library runtime path variable.
17625 runpath_var=$runpath_var
17627 # This is the shared library path variable.
17628 shlibpath_var=$shlibpath_var
17630 # Is shlibpath searched before the hard-coded library search path?
17631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17633 # How to hardcode a shared library path into an executable.
17634 hardcode_action=$hardcode_action
17636 # Whether we should hardcode library paths into libraries.
17637 hardcode_into_libs=$hardcode_into_libs
17639 # Flag to hardcode \$libdir into a binary during linking.
17640 # This must work even if \$libdir does not exist.
17641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17643 # If ld is used when linking, flag to hardcode \$libdir into
17644 # a binary during linking. This must work even if \$libdir does
17646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17648 # Whether we need a single -rpath flag with a separated argument.
17649 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17652 # resulting binary.
17653 hardcode_direct=$hardcode_direct
17655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17656 # resulting binary.
17657 hardcode_minus_L=$hardcode_minus_L
17659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17660 # the resulting binary.
17661 hardcode_shlibpath_var=$hardcode_shlibpath_var
17663 # Set to yes if building a shared library automatically hardcodes DIR into the library
17664 # and all subsequent libraries and executables linked against it.
17665 hardcode_automatic=$hardcode_automatic
17667 # Variables whose values should be saved in libtool wrapper scripts and
17668 # restored at relink time.
17669 variables_saved_for_relink="$variables_saved_for_relink"
17671 # Whether libtool must link a program against all its dependency libraries.
17672 link_all_deplibs=$link_all_deplibs
17674 # Compile-time system search path for libraries
17675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17677 # Run-time system search path for libraries
17678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17680 # Fix the shell variable \$srcfile for the compiler.
17681 fix_srcfile_path="$fix_srcfile_path"
17683 # Set to yes if exported symbols are required.
17684 always_export_symbols=$always_export_symbols
17686 # The commands to list exported symbols.
17687 export_symbols_cmds=$lt_export_symbols_cmds
17689 # The commands to extract the exported symbol list from a shared archive.
17690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17692 # Symbols that should not be listed in the preloaded symbols.
17693 exclude_expsyms=$lt_exclude_expsyms
17695 # Symbols that must always be exported.
17696 include_expsyms=$lt_include_expsyms
17698 # ### END LIBTOOL CONFIG
17705 cat <<\EOF >> "$cfgfile"
17707 # AIX sometimes has problems with the GCC collect2 program. For some
17708 # reason, if we set the COLLECT_NAMES environment variable, the problems
17709 # vanish in a puff of smoke.
17710 if test "X${COLLECT_NAMES+set}" != Xset; then
17712 export COLLECT_NAMES
17718 # We use sed instead of cat because bash on DJGPP gets confused if
17719 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17720 # text mode, it properly converts lines to CR/LF. This bash problem
17721 # is reportedly fixed, but why not run on old versions too?
17722 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17724 mv -f "$cfgfile" "$ofile" || \
17725 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17729 # If there is no Makefile yet, we rely on a make rule to execute
17730 # `config.status --recheck' to rerun these tests and create the
17731 # libtool script then.
17732 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17733 if test -f "$ltmain_in"; then
17734 test -f Makefile && make "$ltmain"
17740 ac_cpp='$CPP $CPPFLAGS'
17741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17748 # Check whether --with-tags was given.
17749 if test "${with_tags+set}" = set; then
17750 withval=$with_tags; tagnames="$withval"
17754 if test -f "$ltmain" && test -n "$tagnames"; then
17755 if test ! -f "${ofile}"; then
17756 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17757 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17760 if test -z "$LTCC"; then
17761 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17762 if test -z "$LTCC"; then
17763 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17764 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17766 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17767 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17770 if test -z "$LTCFLAGS"; then
17771 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17774 # Extract list of available tagged configurations in $ofile.
17775 # Note that this assumes the entire list is on one line.
17776 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17779 for tagname in $tagnames; do
17781 # Check whether tagname contains only valid characters
17782 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17784 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17785 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17786 { (exit 1); exit 1; }; }
17790 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17792 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17793 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17794 { (exit 1); exit 1; }; }
17797 # Update the list of available tags.
17798 if test -n "$tagname"; then
17799 echo appending configuration tag \"$tagname\" to $ofile
17803 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17804 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17805 (test "X$CXX" != "Xg++"))) ; then
17807 ac_cpp='$CXXCPP $CPPFLAGS'
17808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17815 archive_cmds_need_lc_CXX=no
17816 allow_undefined_flag_CXX=
17817 always_export_symbols_CXX=no
17818 archive_expsym_cmds_CXX=
17819 export_dynamic_flag_spec_CXX=
17820 hardcode_direct_CXX=no
17821 hardcode_libdir_flag_spec_CXX=
17822 hardcode_libdir_flag_spec_ld_CXX=
17823 hardcode_libdir_separator_CXX=
17824 hardcode_minus_L_CXX=no
17825 hardcode_shlibpath_var_CXX=unsupported
17826 hardcode_automatic_CXX=no
17828 module_expsym_cmds_CXX=
17829 link_all_deplibs_CXX=unknown
17830 old_archive_cmds_CXX=$old_archive_cmds
17831 no_undefined_flag_CXX=
17832 whole_archive_flag_spec_CXX=
17833 enable_shared_with_static_runtimes_CXX=no
17835 # Dependencies to place before and after the object being linked:
17836 predep_objects_CXX=
17837 postdep_objects_CXX=
17840 compiler_lib_search_path_CXX=
17842 # Source file extension for C++ test sources.
17845 # Object file extension for compiled C++ test sources.
17849 # Code to be used in simple compile tests
17850 lt_simple_compile_test_code="int some_variable = 0;\n"
17852 # Code to be used in simple link tests
17853 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17855 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17857 # If no C compiler was specified, use CC.
17860 # If no C compiler flags were specified, use CFLAGS.
17861 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17863 # Allow CC to be a program name with arguments.
17867 # save warnings/boilerplate of simple test code
17868 ac_outfile=conftest.$ac_objext
17869 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17870 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17871 _lt_compiler_boilerplate=`cat conftest.err`
17874 ac_outfile=conftest.$ac_objext
17875 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17876 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17877 _lt_linker_boilerplate=`cat conftest.err`
17881 # Allow CC to be a program name with arguments.
17886 lt_save_with_gnu_ld=$with_gnu_ld
17887 lt_save_path_LD=$lt_cv_path_LD
17888 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17889 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17891 $as_unset lt_cv_prog_gnu_ld
17893 if test -n "${lt_cv_path_LDCXX+set}"; then
17894 lt_cv_path_LD=$lt_cv_path_LDCXX
17896 $as_unset lt_cv_path_LD
17898 test -z "${LDCXX+set}" || LD=$LDCXX
17902 for cc_temp in $compiler""; do
17904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17913 # We don't want -fno-exception wen compiling C++ code, so set the
17914 # no_builtin_flag separately
17915 if test "$GXX" = yes; then
17916 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17918 lt_prog_compiler_no_builtin_flag_CXX=
17921 if test "$GXX" = yes; then
17922 # Set up default GNU C++ configuration
17925 # Check whether --with-gnu-ld was given.
17926 if test "${with_gnu_ld+set}" = set; then
17927 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17933 if test "$GCC" = yes; then
17934 # Check if gcc -print-prog-name=ld gives a path.
17935 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17936 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17939 # gcc leaves a trailing carriage return which upsets mingw
17940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17945 # Accept absolute paths.
17947 re_direlt='/[^/][^/]*/\.\./'
17948 # Canonicalize the pathname of ld
17949 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17950 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17951 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17953 test -z "$LD" && LD="$ac_prog"
17956 # If it fails, then pretend we aren't using GCC.
17960 # If it is relative, then search for the first ld in PATH.
17961 with_gnu_ld=unknown
17964 elif test "$with_gnu_ld" = yes; then
17965 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17966 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17968 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17969 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17971 if test "${lt_cv_path_LD+set}" = set; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17974 if test -z "$LD"; then
17975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17976 for ac_dir in $PATH; do
17978 test -z "$ac_dir" && ac_dir=.
17979 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17980 lt_cv_path_LD="$ac_dir/$ac_prog"
17981 # Check to see if the program is GNU ld. I'd rather use --version,
17982 # but apparently some variants of GNU ld only accept -v.
17983 # Break only if it was the GNU/non-GNU ld that we prefer.
17984 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17985 *GNU* | *'with BFD'*)
17986 test "$with_gnu_ld" != no && break
17989 test "$with_gnu_ld" != yes && break
17996 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18000 LD="$lt_cv_path_LD"
18001 if test -n "$LD"; then
18002 { echo "$as_me:$LINENO: result: $LD" >&5
18003 echo "${ECHO_T}$LD" >&6; }
18005 { echo "$as_me:$LINENO: result: no" >&5
18006 echo "${ECHO_T}no" >&6; }
18008 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18009 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18010 { (exit 1); exit 1; }; }
18011 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18012 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18013 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18016 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18017 case `$LD -v 2>&1 </dev/null` in
18018 *GNU* | *'with BFD'*)
18019 lt_cv_prog_gnu_ld=yes
18022 lt_cv_prog_gnu_ld=no
18026 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18027 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18028 with_gnu_ld=$lt_cv_prog_gnu_ld
18032 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18033 # archiving commands below assume that GNU ld is being used.
18034 if test "$with_gnu_ld" = yes; then
18035 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18038 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18039 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18041 # If archive_cmds runs LD, not CC, wlarc should be empty
18042 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18043 # investigate it a little bit more. (MM)
18046 # ancient GNU ld didn't support --whole-archive et. al.
18047 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18048 grep 'no-whole-archive' > /dev/null; then
18049 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18051 whole_archive_flag_spec_CXX=
18057 # A generic and very simple default shared library creation
18058 # command for GNU C++ for the case where it uses the native
18059 # linker, instead of GNU ld. If possible, this setting should
18060 # overridden to take advantage of the native linker features on
18061 # the platform it is being used on.
18062 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18065 # Commands to make compiler produce verbose output that lists
18066 # what "hidden" libraries, object files and flags are used when
18067 # linking a shared library.
18068 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18076 # PORTME: fill in a description of your system's C++ link characteristics
18077 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18078 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18082 # FIXME: insert proper C++ library support
18086 if test "$host_cpu" = ia64; then
18087 # On IA64, the linker does run time linking by default, so we don't
18088 # have to do anything special.
18089 aix_use_runtimelinking=no
18090 exp_sym_flag='-Bexport'
18093 aix_use_runtimelinking=no
18095 # Test if we are trying to use run time linking or normal
18096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18097 # need to do runtime linking.
18098 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18099 for ld_flag in $LDFLAGS; do
18102 aix_use_runtimelinking=yes
18110 exp_sym_flag='-bexport'
18111 no_entry_flag='-bnoentry'
18114 # When large executables or shared objects are built, AIX ld can
18115 # have problems creating the table of contents. If linking a library
18116 # or program results in "error TOC overflow" add -mminimal-toc to
18117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18120 archive_cmds_CXX=''
18121 hardcode_direct_CXX=yes
18122 hardcode_libdir_separator_CXX=':'
18123 link_all_deplibs_CXX=yes
18125 if test "$GXX" = yes; then
18126 case $host_os in aix4.[012]|aix4.[012].*)
18127 # We only want to do this on AIX 4.2 and lower, the check
18128 # below for broken collect2 doesn't work under 4.3+
18129 collect2name=`${CC} -print-prog-name=collect2`
18130 if test -f "$collect2name" && \
18131 strings "$collect2name" | grep resolve_lib_name >/dev/null
18133 # We have reworked collect2
18134 hardcode_direct_CXX=yes
18136 # We have old collect2
18137 hardcode_direct_CXX=unsupported
18138 # It fails to find uninstalled libraries when the uninstalled
18139 # path is not listed in the libpath. Setting hardcode_minus_L
18140 # to unsupported forces relinking
18141 hardcode_minus_L_CXX=yes
18142 hardcode_libdir_flag_spec_CXX='-L$libdir'
18143 hardcode_libdir_separator_CXX=
18147 shared_flag='-shared'
18148 if test "$aix_use_runtimelinking" = yes; then
18149 shared_flag="$shared_flag "'${wl}-G'
18153 if test "$host_cpu" = ia64; then
18154 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18155 # chokes on -Wl,-G. The following line is correct:
18158 if test "$aix_use_runtimelinking" = yes; then
18159 shared_flag='${wl}-G'
18161 shared_flag='${wl}-bM:SRE'
18166 # It seems that -bexpall does not export symbols beginning with
18167 # underscore (_), so it is better to generate a list of symbols to export.
18168 always_export_symbols_CXX=yes
18169 if test "$aix_use_runtimelinking" = yes; then
18170 # Warning - without using the other runtime loading flags (-brtl),
18171 # -berok will link without error, but may produce a broken library.
18172 allow_undefined_flag_CXX='-berok'
18173 # Determine the default libpath from the value encoded in an empty executable.
18174 cat >conftest.$ac_ext <<_ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (ac_try="$ac_link"
18191 case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_link") 2>conftest.er1
18198 grep -v '^ *+' conftest.er1 >conftest.err
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18204 { (case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_try") 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; } &&
18213 { ac_try='test -s conftest$ac_exeext'
18214 { (case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_try") 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18226 # Check for a 64-bit object if we didn't find anything.
18227 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18236 rm -f core conftest.err conftest.$ac_objext \
18237 conftest$ac_exeext conftest.$ac_ext
18238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18240 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18242 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18244 if test "$host_cpu" = ia64; then
18245 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18246 allow_undefined_flag_CXX="-z nodefs"
18247 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"
18249 # Determine the default libpath from the value encoded in an empty executable.
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18265 rm -f conftest.$ac_objext conftest$ac_exeext
18266 if { (ac_try="$ac_link"
18267 case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_link") 2>conftest.er1
18274 grep -v '^ *+' conftest.er1 >conftest.err
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18280 { (case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_try") 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest$ac_exeext'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18302 # Check for a 64-bit object if we didn't find anything.
18303 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18317 # Warning - without using the other run time loading flags,
18318 # -berok will link without error, but may produce a broken library.
18319 no_undefined_flag_CXX=' ${wl}-bernotok'
18320 allow_undefined_flag_CXX=' ${wl}-berok'
18321 # Exported symbols can be pulled into shared objects from archives
18322 whole_archive_flag_spec_CXX='$convenience'
18323 archive_cmds_need_lc_CXX=yes
18324 # This is similar to how AIX traditionally builds its shared libraries.
18325 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'
18331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18332 allow_undefined_flag_CXX=unsupported
18333 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18334 # support --undefined. This deserves some investigation. FIXME
18335 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18342 case $cc_basename in
18344 # FIXME: insert proper C++ library support
18350 cygwin* | mingw* | pw32*)
18351 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18352 # as there is no search path for DLLs.
18353 hardcode_libdir_flag_spec_CXX='-L$libdir'
18354 allow_undefined_flag_CXX=unsupported
18355 always_export_symbols_CXX=no
18356 enable_shared_with_static_runtimes_CXX=yes
18358 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18359 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'
18360 # If the export-symbols file already is a .def file (1st line
18361 # is EXPORTS), use it as is; otherwise, prepend...
18362 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18363 cp $export_symbols $output_objdir/$soname.def;
18365 echo EXPORTS > $output_objdir/$soname.def;
18366 cat $export_symbols >> $output_objdir/$soname.def;
18368 $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'
18373 darwin* | rhapsody*)
18375 rhapsody* | darwin1.[012])
18376 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18379 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18380 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18382 case ${MACOSX_DEPLOYMENT_TARGET} in
18384 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18387 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18393 archive_cmds_need_lc_CXX=no
18394 hardcode_direct_CXX=no
18395 hardcode_automatic_CXX=yes
18396 hardcode_shlibpath_var_CXX=unsupported
18397 whole_archive_flag_spec_CXX=''
18398 link_all_deplibs_CXX=yes
18400 if test "$GXX" = yes ; then
18401 lt_int_apple_cc_single_mod=no
18402 output_verbose_link_cmd='echo'
18403 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18404 lt_int_apple_cc_single_mod=yes
18406 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18407 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18409 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'
18411 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18412 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18413 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18414 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18416 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18418 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18420 case $cc_basename in
18422 output_verbose_link_cmd='echo'
18423 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18424 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18426 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18427 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18437 case $cc_basename in
18439 # FIXME: insert proper C++ library support
18443 # Green Hills C++ Compiler
18444 # FIXME: insert proper C++ library support
18448 # FIXME: insert proper C++ library support
18454 # C++ shared libraries reported to be fairly broken before switch to ELF
18458 archive_cmds_need_lc_CXX=no
18460 freebsd* | kfreebsd*-gnu | dragonfly*)
18461 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18468 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18469 hardcode_libdir_separator_CXX=:
18470 export_dynamic_flag_spec_CXX='${wl}-E'
18471 hardcode_direct_CXX=yes
18472 hardcode_minus_L_CXX=yes # Not in the search PATH,
18473 # but as the default
18474 # location of the library.
18476 case $cc_basename in
18478 # FIXME: insert proper C++ library support
18482 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'
18483 # Commands to make compiler produce verbose output that lists
18484 # what "hidden" libraries, object files and flags are used when
18485 # linking a shared library.
18487 # There doesn't appear to be a way to prevent this compiler from
18488 # explicitly linking system object files so we need to strip them
18489 # from the output so that they don't get included in the library
18491 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; echo $list'
18494 if test "$GXX" = yes; then
18495 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
18497 # FIXME: insert proper C++ library support
18504 if test $with_gnu_ld = no; then
18505 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18506 hardcode_libdir_separator_CXX=:
18510 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18513 export_dynamic_flag_spec_CXX='${wl}-E'
18519 hardcode_direct_CXX=no
18520 hardcode_shlibpath_var_CXX=no
18523 hardcode_direct_CXX=yes
18524 hardcode_minus_L_CXX=yes # Not in the search PATH,
18525 # but as the default
18526 # location of the library.
18530 case $cc_basename in
18532 # FIXME: insert proper C++ library support
18538 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18541 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18544 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18547 # Commands to make compiler produce verbose output that lists
18548 # what "hidden" libraries, object files and flags are used when
18549 # linking a shared library.
18551 # There doesn't appear to be a way to prevent this compiler from
18552 # explicitly linking system object files so we need to strip them
18553 # from the output so that they don't get included in the library
18555 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; echo $list'
18558 if test "$GXX" = yes; then
18559 if test $with_gnu_ld = no; then
18562 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18565 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18568 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18573 # FIXME: insert proper C++ library support
18580 hardcode_direct_CXX=no
18581 hardcode_shlibpath_var_CXX=no
18582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18583 export_dynamic_flag_spec_CXX='${wl}-E'
18584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18585 # Instead, shared libraries are loaded at an image base (0x10000000 by
18586 # default) and relocated if they conflict, which is a slow very memory
18587 # consuming and fragmenting process. To avoid this, we pick a random,
18588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18590 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'
18591 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'
18594 case $cc_basename in
18597 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18599 # Archives containing C++ object files must be created using
18600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18601 # necessary to make sure instantiated templates are included
18603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18606 if test "$GXX" = yes; then
18607 if test "$with_gnu_ld" = no; then
18608 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18610 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
18613 link_all_deplibs_CXX=yes
18616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18617 hardcode_libdir_separator_CXX=:
18620 case $cc_basename in
18622 # Kuck and Associates, Inc. (KAI) C++ Compiler
18624 # KCC will only create a shared library if the output file
18625 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18626 # to its proper name (with version) after linking.
18627 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'
18628 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'
18629 # Commands to make compiler produce verbose output that lists
18630 # what "hidden" libraries, object files and flags are used when
18631 # linking a shared library.
18633 # There doesn't appear to be a way to prevent this compiler from
18634 # explicitly linking system object files so we need to strip them
18635 # from the output so that they don't get included in the library
18637 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; echo $list'
18639 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18642 # Archives containing C++ object files must be created using
18643 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18644 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18649 # version 8.0 and above of icpc choke on multiply defined symbols
18650 # if we add $predep_objects and $postdep_objects, however 7.1 and
18651 # earlier do not add the objects themselves.
18652 case `$CC -V 2>&1` in
18654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 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'
18657 *) # Version 8.0 or newer
18660 ia64*) tmp_idyn=' -i_dynamic';;
18662 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18663 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'
18666 archive_cmds_need_lc_CXX=no
18667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18669 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18672 # Portland Group C++ compiler
18673 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18674 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'
18676 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18677 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18678 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18682 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18683 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'
18685 runpath_var=LD_RUN_PATH
18686 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18687 hardcode_libdir_separator_CXX=:
18689 # Commands to make compiler produce verbose output that lists
18690 # what "hidden" libraries, object files and flags are used when
18691 # linking a shared library.
18693 # There doesn't appear to be a way to prevent this compiler from
18694 # explicitly linking system object files so we need to strip them
18695 # from the output so that they don't get included in the library
18697 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
18702 # FIXME: insert proper C++ library support
18706 # FIXME: insert proper C++ library support
18710 case $cc_basename in
18712 # FIXME: insert proper C++ library support
18716 # FIXME: insert proper C++ library support
18722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18723 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18725 hardcode_libdir_flag_spec_CXX='-R$libdir'
18726 hardcode_direct_CXX=yes
18727 hardcode_shlibpath_var_CXX=no
18729 # Workaround some broken pre-1.5 toolchains
18730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18733 # C++ shared libraries are fairly broken
18737 hardcode_direct_CXX=yes
18738 hardcode_shlibpath_var_CXX=no
18739 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18742 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18743 export_dynamic_flag_spec_CXX='${wl}-E'
18744 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18746 output_verbose_link_cmd='echo'
18749 case $cc_basename in
18751 # Kuck and Associates, Inc. (KAI) C++ Compiler
18753 # KCC will only create a shared library if the output file
18754 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18755 # to its proper name (with version) after linking.
18756 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'
18758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18759 hardcode_libdir_separator_CXX=:
18761 # Archives containing C++ object files must be created using
18762 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18763 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18767 # Rational C++ 2.4.1
18768 # FIXME: insert proper C++ library support
18772 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18773 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18776 hardcode_libdir_separator_CXX=:
18778 # Commands to make compiler produce verbose output that lists
18779 # what "hidden" libraries, object files and flags are used when
18780 # linking a shared library.
18782 # There doesn't appear to be a way to prevent this compiler from
18783 # explicitly linking system object files so we need to strip them
18784 # from the output so that they don't get included in the library
18786 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
18789 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18790 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18791 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18794 hardcode_libdir_separator_CXX=:
18796 # Commands to make compiler produce verbose output that lists
18797 # what "hidden" libraries, object files and flags are used when
18798 # linking a shared library.
18799 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18802 # FIXME: insert proper C++ library support
18809 case $cc_basename in
18811 # Kuck and Associates, Inc. (KAI) C++ Compiler
18813 # KCC will only create a shared library if the output file
18814 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18815 # to its proper name (with version) after linking.
18816 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'
18818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18819 hardcode_libdir_separator_CXX=:
18821 # Archives containing C++ object files must be created using
18822 # the KAI C++ compiler.
18823 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18826 # Rational C++ 2.4.1
18827 # FIXME: insert proper C++ library support
18831 allow_undefined_flag_CXX=' -expect_unresolved \*'
18832 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18833 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18834 echo "-hidden">> $lib.exp~
18835 $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~
18838 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18839 hardcode_libdir_separator_CXX=:
18841 # Commands to make compiler produce verbose output that lists
18842 # what "hidden" libraries, object files and flags are used when
18843 # linking a shared library.
18845 # There doesn't appear to be a way to prevent this compiler from
18846 # explicitly linking system object files so we need to strip them
18847 # from the output so that they don't get included in the library
18849 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
18852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18854 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18857 hardcode_libdir_separator_CXX=:
18859 # Commands to make compiler produce verbose output that lists
18860 # what "hidden" libraries, object files and flags are used when
18861 # linking a shared library.
18862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18865 # FIXME: insert proper C++ library support
18872 # FIXME: insert proper C++ library support
18876 case $cc_basename in
18879 # FIXME: insert proper C++ library support
18884 # FIXME: insert proper C++ library support
18888 # FIXME: insert proper C++ library support
18894 case $cc_basename in
18896 # Sun C++ 4.2, 5.x and Centerline C++
18897 archive_cmds_need_lc_CXX=yes
18898 no_undefined_flag_CXX=' -zdefs'
18899 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18900 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18901 $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'
18903 hardcode_libdir_flag_spec_CXX='-R$libdir'
18904 hardcode_shlibpath_var_CXX=no
18906 solaris2.[0-5] | solaris2.[0-5].*) ;;
18908 # The C++ compiler is used as linker so we must use $wl
18909 # flag to pass the commands to the underlying system
18910 # linker. We must also pass each convience library through
18911 # to the system linker between allextract/defaultextract.
18912 # The C++ compiler will combine linker options so we
18913 # cannot just pass the convience library names through
18915 # Supported since Solaris 2.6 (maybe 2.5.1?)
18916 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
18919 link_all_deplibs_CXX=yes
18921 output_verbose_link_cmd='echo'
18923 # Archives containing C++ object files must be created using
18924 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18925 # necessary to make sure instantiated templates are included
18927 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18930 # Green Hills C++ Compiler
18931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18933 # The C++ compiler must be used to create the archive.
18934 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18937 # GNU C++ compiler with Solaris linker
18938 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18939 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18940 if $CC --version | grep -v '^2\.7' > /dev/null; then
18941 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18942 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18943 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18945 # Commands to make compiler produce verbose output that lists
18946 # what "hidden" libraries, object files and flags are used when
18947 # linking a shared library.
18948 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18950 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18952 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18953 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18954 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18956 # Commands to make compiler produce verbose output that lists
18957 # what "hidden" libraries, object files and flags are used when
18958 # linking a shared library.
18959 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18962 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18967 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18968 no_undefined_flag_CXX='${wl}-z,text'
18969 archive_cmds_need_lc_CXX=no
18970 hardcode_shlibpath_var_CXX=no
18971 runpath_var='LD_RUN_PATH'
18973 case $cc_basename in
18975 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18976 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18979 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18980 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18984 sysv5* | sco3.2v5* | sco5v6*)
18985 # Note: We can NOT use -z defs as we might desire, because we do not
18986 # link with -lc, and that would cause any symbols used from libc to
18987 # always be unresolved, which means just about no library would
18988 # ever link correctly. If we're not using GNU ld we use -z text
18989 # though, which does catch some bad symbols but isn't as heavy-handed
18991 # For security reasons, it is highly recommended that you always
18992 # use absolute paths for naming shared libraries, and exclude the
18993 # DT_RUNPATH tag from executables and libraries. But doing so
18994 # requires that you compile everything twice, which is a pain.
18995 # So that behaviour is only enabled if SCOABSPATH is set to a
18996 # non-empty value in the environment. Most likely only useful for
18997 # creating official distributions of packages.
18998 # This is a hack until libtool officially supports absolute path
18999 # names for shared libraries.
19000 no_undefined_flag_CXX='${wl}-z,text'
19001 allow_undefined_flag_CXX='${wl}-z,nodefs'
19002 archive_cmds_need_lc_CXX=no
19003 hardcode_shlibpath_var_CXX=no
19004 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19005 hardcode_libdir_separator_CXX=':'
19006 link_all_deplibs_CXX=yes
19007 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19008 runpath_var='LD_RUN_PATH'
19010 case $cc_basename in
19012 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19013 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19016 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19017 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19022 case $cc_basename in
19024 # NonStop-UX NCC 3.20
19025 # FIXME: insert proper C++ library support
19029 # FIXME: insert proper C++ library support
19035 # FIXME: insert proper C++ library support
19039 # FIXME: insert proper C++ library support
19043 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19044 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19045 test "$ld_shlibs_CXX" = no && can_build_shared=no
19051 cat > conftest.$ac_ext <<EOF
19055 Foo (void) { a = 0; }
19061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062 (eval $ac_compile) 2>&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; then
19066 # Parse the compiler output and extract the necessary
19067 # objects, libraries and library flags.
19069 # Sentinel used to keep track of whether or not we are before
19070 # the conftest object file.
19071 pre_test_object_deps_done=no
19073 # The `*' in the case matches for architectures that use `case' in
19074 # $output_verbose_cmd can trigger glob expansion during the loop
19075 # eval without this substitution.
19076 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19078 for p in `eval $output_verbose_link_cmd`; do
19082 # Some compilers place space between "-{L,R}" and the path.
19083 # Remove the space.
19084 if test $p = "-L" \
19085 || test $p = "-R"; then
19092 if test "$pre_test_object_deps_done" = no; then
19095 # Internal compiler library paths should come after those
19096 # provided the user. The postdeps already come after the
19097 # user supplied libs so there is no need to process them.
19098 if test -z "$compiler_lib_search_path_CXX"; then
19099 compiler_lib_search_path_CXX="${prev}${p}"
19101 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19104 # The "-l" case would never come before the object being
19105 # linked, so don't bother handling this case.
19108 if test -z "$postdeps_CXX"; then
19109 postdeps_CXX="${prev}${p}"
19111 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19117 # This assumes that the test object file only shows up
19118 # once in the compiler output.
19119 if test "$p" = "conftest.$objext"; then
19120 pre_test_object_deps_done=yes
19124 if test "$pre_test_object_deps_done" = no; then
19125 if test -z "$predep_objects_CXX"; then
19126 predep_objects_CXX="$p"
19128 predep_objects_CXX="$predep_objects_CXX $p"
19131 if test -z "$postdep_objects_CXX"; then
19132 postdep_objects_CXX="$p"
19134 postdep_objects_CXX="$postdep_objects_CXX $p"
19139 *) ;; # Ignore the rest.
19147 echo "libtool.m4: error: problem compiling CXX test program"
19150 $rm -f confest.$objext
19152 # PORTME: override above test on systems where it is broken
19155 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19156 # hack all around it, let's just trust "g++" to DTRT.
19157 predep_objects_CXX=
19158 postdep_objects_CXX=
19163 case $cc_basename in
19165 # Adding this requires a known-good setup of shared libraries for
19166 # Sun compiler versions before 5.6, else PIC objects from an old
19167 # archive will be linked into the output, leading to subtle bugs.
19168 postdeps_CXX='-lCstd -lCrun'
19175 case " $postdeps_CXX " in
19176 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19179 lt_prog_compiler_wl_CXX=
19180 lt_prog_compiler_pic_CXX=
19181 lt_prog_compiler_static_CXX=
19183 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19184 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19186 # C++ specific cases for pic, static, wl, etc.
19187 if test "$GXX" = yes; then
19188 lt_prog_compiler_wl_CXX='-Wl,'
19189 lt_prog_compiler_static_CXX='-static'
19193 # All AIX code is PIC.
19194 if test "$host_cpu" = ia64; then
19195 # AIX 5 now supports IA64 processor
19196 lt_prog_compiler_static_CXX='-Bstatic'
19200 # FIXME: we need at least 68020 code to build shared libraries, but
19201 # adding the `-m68020' flag to GCC prevents building anything better,
19203 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19205 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19206 # PIC is the default for these OSes.
19208 mingw* | os2* | pw32*)
19209 # This hack is so that the source file can tell whether it is being
19210 # built for inclusion in a dll (and should export symbols for example).
19211 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19213 darwin* | rhapsody*)
19214 # PIC is the default on this platform
19215 # Common symbols not allowed in MH_DYLIB files
19216 lt_prog_compiler_pic_CXX='-fno-common'
19219 # DJGPP does not support shared libraries at all
19220 lt_prog_compiler_pic_CXX=
19223 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19224 # Instead, we relocate shared libraries at runtime.
19227 if test -d /usr/nec; then
19228 lt_prog_compiler_pic_CXX=-Kconform_pic
19232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19233 # not for PA HP-UX.
19238 lt_prog_compiler_pic_CXX='-fPIC'
19243 lt_prog_compiler_pic_CXX='-fPIC'
19249 # All AIX code is PIC.
19250 if test "$host_cpu" = ia64; then
19251 # AIX 5 now supports IA64 processor
19252 lt_prog_compiler_static_CXX='-Bstatic'
19254 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19258 case $cc_basename in
19260 # Green Hills C++ Compiler
19261 # _LT_AC_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"
19266 # PIC is the default on this platform
19267 # Common symbols not allowed in MH_DYLIB files
19268 case $cc_basename in
19270 lt_prog_compiler_pic_CXX='-qnocommon'
19271 lt_prog_compiler_wl_CXX='-Wl,'
19276 case $cc_basename in
19278 lt_prog_compiler_pic_CXX='-KPIC'
19281 # Green Hills C++ Compiler
19282 lt_prog_compiler_pic_CXX='-pic'
19288 freebsd* | kfreebsd*-gnu | dragonfly*)
19289 # FreeBSD uses GNU C++
19291 hpux9* | hpux10* | hpux11*)
19292 case $cc_basename in
19294 lt_prog_compiler_wl_CXX='-Wl,'
19295 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19296 if test "$host_cpu" != ia64; then
19297 lt_prog_compiler_pic_CXX='+Z'
19301 lt_prog_compiler_wl_CXX='-Wl,'
19302 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19308 lt_prog_compiler_pic_CXX='+Z'
19317 # This is c89, which is MS Visual C++ (no shared libs)
19318 # Anyone wants to do a port?
19320 irix5* | irix6* | nonstopux*)
19321 case $cc_basename in
19323 lt_prog_compiler_wl_CXX='-Wl,'
19324 lt_prog_compiler_static_CXX='-non_shared'
19325 # CC pic flag -KPIC is the default.
19332 case $cc_basename in
19335 lt_prog_compiler_wl_CXX='--backend -Wl,'
19336 lt_prog_compiler_pic_CXX='-fPIC'
19340 lt_prog_compiler_wl_CXX='-Wl,'
19341 lt_prog_compiler_pic_CXX='-KPIC'
19342 lt_prog_compiler_static_CXX='-static'
19345 # Portland Group C++ compiler.
19346 lt_prog_compiler_wl_CXX='-Wl,'
19347 lt_prog_compiler_pic_CXX='-fpic'
19348 lt_prog_compiler_static_CXX='-Bstatic'
19352 # Make sure the PIC flag is empty. It appears that all Alpha
19353 # Linux and Compaq Tru64 Unix objects are PIC.
19354 lt_prog_compiler_pic_CXX=
19355 lt_prog_compiler_static_CXX='-non_shared'
19366 case $cc_basename in
19368 lt_prog_compiler_pic_CXX='-W c,exportall'
19376 osf3* | osf4* | osf5*)
19377 case $cc_basename in
19379 lt_prog_compiler_wl_CXX='--backend -Wl,'
19382 # Rational C++ 2.4.1
19383 lt_prog_compiler_pic_CXX='-pic'
19386 # Digital/Compaq C++
19387 lt_prog_compiler_wl_CXX='-Wl,'
19388 # Make sure the PIC flag is empty. It appears that all Alpha
19389 # Linux and Compaq Tru64 Unix objects are PIC.
19390 lt_prog_compiler_pic_CXX=
19391 lt_prog_compiler_static_CXX='-non_shared'
19400 case $cc_basename in
19402 # Sun C++ 4.2, 5.x and Centerline C++
19403 lt_prog_compiler_pic_CXX='-KPIC'
19404 lt_prog_compiler_static_CXX='-Bstatic'
19405 lt_prog_compiler_wl_CXX='-Qoption ld '
19408 # Green Hills C++ Compiler
19409 lt_prog_compiler_pic_CXX='-PIC'
19416 case $cc_basename in
19419 lt_prog_compiler_pic_CXX='-pic'
19420 lt_prog_compiler_static_CXX='-Bstatic'
19424 lt_prog_compiler_pic_CXX='-pic'
19431 case $cc_basename in
19433 # NonStop-UX NCC 3.20
19434 lt_prog_compiler_pic_CXX='-KPIC'
19440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19441 case $cc_basename in
19443 lt_prog_compiler_wl_CXX='-Wl,'
19444 lt_prog_compiler_pic_CXX='-KPIC'
19445 lt_prog_compiler_static_CXX='-Bstatic'
19452 lt_prog_compiler_can_build_shared_CXX=no
19457 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19458 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19461 # Check to make sure the PIC flag actually works.
19463 if test -n "$lt_prog_compiler_pic_CXX"; then
19465 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19466 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19467 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 lt_prog_compiler_pic_works_CXX=no
19471 ac_outfile=conftest.$ac_objext
19472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19473 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19474 # Insert the option either (1) after the last *FLAGS variable, or
19475 # (2) before a word containing "conftest.", or (3) at the end.
19476 # Note that $ac_compile itself does not contain backslashes and begins
19477 # with a dollar sign (not a hyphen), so the echo should work correctly.
19478 # The option is referenced via a variable to avoid confusing sed.
19479 lt_compile=`echo "$ac_compile" | $SED \
19480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19482 -e 's:$: $lt_compiler_flag:'`
19483 (eval echo "\"\$as_me:19483: $lt_compile\"" >&5)
19484 (eval "$lt_compile" 2>conftest.err)
19486 cat conftest.err >&5
19487 echo "$as_me:19487: \$? = $ac_status" >&5
19488 if (exit $ac_status) && test -s "$ac_outfile"; then
19489 # The compiler can only warn and ignore the option if not recognized
19490 # So say no if there are warnings other than the usual output.
19491 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19493 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19494 lt_prog_compiler_pic_works_CXX=yes
19500 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19501 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19503 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19504 case $lt_prog_compiler_pic_CXX in
19506 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19509 lt_prog_compiler_pic_CXX=
19510 lt_prog_compiler_can_build_shared_CXX=no
19515 # For platforms which do not support PIC, -DPIC is meaningless:
19517 lt_prog_compiler_pic_CXX=
19520 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19525 # Check to make sure the static flag actually works.
19527 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19528 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19529 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19530 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 lt_prog_compiler_static_works_CXX=no
19534 save_LDFLAGS="$LDFLAGS"
19535 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19536 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19537 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19538 # The linker can only warn and ignore the option if not recognized
19539 # So say no if there are warnings
19540 if test -s conftest.err; then
19541 # Append any errors to the config.log.
19542 cat conftest.err 1>&5
19543 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19545 if diff conftest.exp conftest.er2 >/dev/null; then
19546 lt_prog_compiler_static_works_CXX=yes
19549 lt_prog_compiler_static_works_CXX=yes
19553 LDFLAGS="$save_LDFLAGS"
19556 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19557 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19559 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19562 lt_prog_compiler_static_CXX=
19566 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19567 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19568 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19571 lt_cv_prog_compiler_c_o_CXX=no
19572 $rm -r conftest 2>/dev/null
19576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19578 lt_compiler_flag="-o out/conftest2.$ac_objext"
19579 # Insert the option either (1) after the last *FLAGS variable, or
19580 # (2) before a word containing "conftest.", or (3) at the end.
19581 # Note that $ac_compile itself does not contain backslashes and begins
19582 # with a dollar sign (not a hyphen), so the echo should work correctly.
19583 lt_compile=`echo "$ac_compile" | $SED \
19584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19586 -e 's:$: $lt_compiler_flag:'`
19587 (eval echo "\"\$as_me:19587: $lt_compile\"" >&5)
19588 (eval "$lt_compile" 2>out/conftest.err)
19590 cat out/conftest.err >&5
19591 echo "$as_me:19591: \$? = $ac_status" >&5
19592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19594 # The compiler can only warn and ignore the option if not recognized
19595 # So say no if there are warnings
19596 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19599 lt_cv_prog_compiler_c_o_CXX=yes
19604 # SGI C++ compiler will create directory out/ii_files/ for
19605 # template instantiation
19606 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19607 $rm out/* && rmdir out
19613 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19614 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19617 hard_links="nottested"
19618 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19619 # do not overwrite the value of need_locks provided by the user
19620 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19621 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19626 ln conftest.a conftest.b 2>&5 || hard_links=no
19627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19628 { echo "$as_me:$LINENO: result: $hard_links" >&5
19629 echo "${ECHO_T}$hard_links" >&6; }
19630 if test "$hard_links" = no; then
19631 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19632 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19639 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19640 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19642 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19645 # If we're using GNU nm, then we don't want the "-C" option.
19646 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19647 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19648 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19650 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'
19654 export_symbols_cmds_CXX="$ltdll_cmds"
19657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19664 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19665 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19666 test "$ld_shlibs_CXX" = no && can_build_shared=no
19669 # Do we need to explicitly link libc?
19671 case "x$archive_cmds_need_lc_CXX" in
19673 # Assume -lc should be added
19674 archive_cmds_need_lc_CXX=yes
19676 if test "$enable_shared" = yes && test "$GCC" = yes; then
19677 case $archive_cmds_CXX in
19679 # FIXME: we may have to deal with multi-command sequences.
19682 # Test whether the compiler implicitly links with -lc since on some
19683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19684 # to ld, don't add -lc before -lgcc.
19685 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19686 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19691 (eval $ac_compile) 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } 2>conftest.err; then
19697 libobjs=conftest.$ac_objext
19699 wl=$lt_prog_compiler_wl_CXX
19700 pic_flag=$lt_prog_compiler_pic_CXX
19706 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19707 allow_undefined_flag_CXX=
19708 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19709 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }
19714 archive_cmds_need_lc_CXX=no
19716 archive_cmds_need_lc_CXX=yes
19718 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19720 cat conftest.err 1>&5
19723 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19724 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19731 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19732 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19733 library_names_spec=
19734 libname_spec='lib$name'
19738 postuninstall_cmds=
19742 shlibpath_overrides_runpath=unknown
19744 dynamic_linker="$host_os ld.so"
19745 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19746 if test "$GCC" = yes; then
19747 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19748 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19749 # if the path contains ";" then we assume it to be the separator
19750 # otherwise default to the standard path separator (i.e. ":") - it is
19751 # assumed that no part of a normal pathname contains ";" but that should
19752 # okay in the real world where ";" in dirpaths is itself problematic.
19753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19755 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19758 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19760 need_lib_prefix=unknown
19761 hardcode_into_libs=no
19763 # when you set need_version to no, make sure it does not cause -set_version
19764 # flags to be left without arguments
19765 need_version=unknown
19770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19771 shlibpath_var=LIBPATH
19773 # AIX 3 has no versioning support, so we append a major version to the name.
19774 soname_spec='${libname}${release}${shared_ext}$major'
19781 hardcode_into_libs=yes
19782 if test "$host_cpu" = ia64; then
19783 # AIX 5 supports IA64
19784 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19785 shlibpath_var=LD_LIBRARY_PATH
19787 # With GCC up to 2.95.x, collect2 would create an import file
19788 # for dependence libraries. The import file would start with
19789 # the line `#! .'. This would cause the generated library to
19790 # depend on `.', always an invalid library. This was fixed in
19791 # development snapshots of GCC prior to 3.0.
19793 aix4 | aix4.[01] | aix4.[01].*)
19794 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19796 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19799 can_build_shared=no
19803 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19804 # soname into executable. Probably we can add versioning support to
19805 # collect2, so additional links can be useful in future.
19806 if test "$aix_use_runtimelinking" = yes; then
19807 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19808 # instead of lib<name>.a to let people know that these are not
19809 # typical AIX shared libraries.
19810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19812 # We preserve .a as extension for shared libraries through AIX4.2
19813 # and later when we are not doing run time linking.
19814 library_names_spec='${libname}${release}.a $libname.a'
19815 soname_spec='${libname}${release}${shared_ext}$major'
19817 shlibpath_var=LIBPATH
19822 library_names_spec='$libname.ixlibrary $libname.a'
19823 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19824 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
19828 library_names_spec='${libname}${shared_ext}'
19829 dynamic_linker="$host_os ld.so"
19830 shlibpath_var=LIBRARY_PATH
19836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19837 soname_spec='${libname}${release}${shared_ext}$major'
19838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19839 shlibpath_var=LD_LIBRARY_PATH
19840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19842 # the default ld.so.conf also contains /usr/contrib/lib and
19843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19844 # libtool to hard-code these into programs
19847 cygwin* | mingw* | pw32*)
19848 version_type=windows
19853 case $GCC,$host_os in
19854 yes,cygwin* | yes,mingw* | yes,pw32*)
19855 library_names_spec='$libname.dll.a'
19856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19857 postinstall_cmds='base_file=`basename \${file}`~
19858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19859 dldir=$destdir/`dirname \$dlpath`~
19860 test -d \$dldir || mkdir -p \$dldir~
19861 $install_prog $dir/$dlname \$dldir/$dlname~
19862 chmod a+x \$dldir/$dlname'
19863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19864 dlpath=$dir/\$dldll~
19866 shlibpath_overrides_runpath=yes
19870 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19871 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19872 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19875 # MinGW DLLs use traditional 'lib' prefix
19876 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19877 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19878 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19879 # It is most probably a Windows format PATH printed by
19880 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19881 # path with ; separators, and with drive letters. We can handle the
19882 # drive letters (cygwin fileutils understands them), so leave them,
19883 # especially as we might pass files found there to a mingw objdump,
19884 # which wouldn't understand a cygwinified path. Ahh.
19885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19891 # pw32 DLLs use 'pw' prefix rather than 'lib'
19892 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19898 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19901 dynamic_linker='Win32 ld.exe'
19902 # FIXME: first we should search . and the directory the executable is in
19906 darwin* | rhapsody*)
19907 dynamic_linker="$host_os dyld"
19908 version_type=darwin
19911 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19912 soname_spec='${libname}${release}${major}$shared_ext'
19913 shlibpath_overrides_runpath=yes
19914 shlibpath_var=DYLD_LIBRARY_PATH
19915 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19916 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19917 if test "$GCC" = yes; then
19918 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19920 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19930 soname_spec='${libname}${release}${shared_ext}$major'
19931 shlibpath_var=LD_LIBRARY_PATH
19942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19943 soname_spec='${libname}${release}${shared_ext}$major'
19944 shlibpath_var=LD_LIBRARY_PATH
19945 shlibpath_overrides_runpath=no
19946 hardcode_into_libs=yes
19947 dynamic_linker='GNU ld.so'
19950 freebsd* | dragonfly*)
19951 # DragonFly does not have aout. When/if they implement a new
19952 # versioning mechanism, adjust this.
19953 if test -x /usr/bin/objformat; then
19954 objformat=`/usr/bin/objformat`
19957 freebsd[123]*) objformat=aout ;;
19958 *) objformat=elf ;;
19961 version_type=freebsd-$objformat
19962 case $version_type in
19964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19973 shlibpath_var=LD_LIBRARY_PATH
19976 shlibpath_overrides_runpath=yes
19978 freebsd3.[01]* | freebsdelf3.[01]*)
19979 shlibpath_overrides_runpath=yes
19980 hardcode_into_libs=yes
19982 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19983 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19984 shlibpath_overrides_runpath=no
19985 hardcode_into_libs=yes
19987 freebsd*) # from 4.6 on
19988 shlibpath_overrides_runpath=yes
19989 hardcode_into_libs=yes
19998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19999 soname_spec='${libname}${release}${shared_ext}$major'
20000 shlibpath_var=LD_LIBRARY_PATH
20001 hardcode_into_libs=yes
20004 hpux9* | hpux10* | hpux11*)
20005 # Give a soname corresponding to the major version so that dld.sl refuses to
20006 # link against other versions.
20013 hardcode_into_libs=yes
20014 dynamic_linker="$host_os dld.so"
20015 shlibpath_var=LD_LIBRARY_PATH
20016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018 soname_spec='${libname}${release}${shared_ext}$major'
20019 if test "X$HPUX_IA64_MODE" = X32; then
20020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20028 hardcode_into_libs=yes
20029 dynamic_linker="$host_os dld.sl"
20030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033 soname_spec='${libname}${release}${shared_ext}$major'
20034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20039 dynamic_linker="$host_os dld.sl"
20040 shlibpath_var=SHLIB_PATH
20041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043 soname_spec='${libname}${release}${shared_ext}$major'
20046 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20047 postinstall_cmds='chmod 555 $lib'
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20055 soname_spec='${libname}${release}${shared_ext}$major'
20056 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20057 shlibpath_var=LD_LIBRARY_PATH
20058 shlibpath_overrides_runpath=no
20059 hardcode_into_libs=yes
20062 irix5* | irix6* | nonstopux*)
20064 nonstopux*) version_type=nonstopux ;;
20066 if test "$lt_cv_prog_gnu_ld" = yes; then
20074 soname_spec='${libname}${release}${shared_ext}$major'
20075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20077 irix5* | nonstopux*)
20078 libsuff= shlibsuff=
20081 case $LD in # libtool.m4 will add one of these switches to LD
20082 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20083 libsuff= shlibsuff= libmagic=32-bit;;
20084 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20085 libsuff=32 shlibsuff=N32 libmagic=N32;;
20086 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20087 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20088 *) libsuff= shlibsuff= libmagic=never-match;;
20092 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20093 shlibpath_overrides_runpath=no
20094 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20095 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20096 hardcode_into_libs=yes
20099 # No shared lib support for Linux oldld, aout, or coff.
20100 linux*oldld* | linux*aout* | linux*coff*)
20104 # This must be Linux ELF.
20109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20110 soname_spec='${libname}${release}${shared_ext}$major'
20111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20112 shlibpath_var=LD_LIBRARY_PATH
20113 shlibpath_overrides_runpath=no
20114 # This implies no fast_install, which is unacceptable.
20115 # Some rework will be needed to allow for fast_install
20116 # before this can be enabled.
20117 hardcode_into_libs=yes
20119 # Append ld.so.conf contents to the search path
20120 if test -f /etc/ld.so.conf; then
20121 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20125 # We used to test for /lib/ld.so.1 and disable shared libraries on
20126 # powerpc, because MkLinux only supported shared libraries with the
20127 # GNU dynamic linker. Since this was broken with cross compilers,
20128 # most powerpc-linux boxes support dynamic linking these days and
20129 # people can always --disable-shared, the test was removed, and we
20130 # assume the GNU/Linux dynamic linker is in use.
20131 dynamic_linker='GNU/Linux ld.so'
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20139 soname_spec='${libname}${release}${shared_ext}$major'
20140 shlibpath_var=LD_LIBRARY_PATH
20141 shlibpath_overrides_runpath=no
20142 hardcode_into_libs=yes
20143 dynamic_linker='GNU ld.so'
20150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20153 dynamic_linker='NetBSD (a.out) ld.so'
20155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20156 soname_spec='${libname}${release}${shared_ext}$major'
20157 dynamic_linker='NetBSD ld.elf_so'
20159 shlibpath_var=LD_LIBRARY_PATH
20160 shlibpath_overrides_runpath=yes
20161 hardcode_into_libs=yes
20166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167 shlibpath_var=LD_LIBRARY_PATH
20168 shlibpath_overrides_runpath=yes
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20176 soname_spec='${libname}${release}${shared_ext}$major'
20177 shlibpath_var=LD_LIBRARY_PATH
20178 shlibpath_overrides_runpath=yes
20183 sys_lib_dlsearch_path_spec="/usr/lib"
20185 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20187 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20188 *) need_version=no ;;
20190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20192 shlibpath_var=LD_LIBRARY_PATH
20193 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20195 openbsd2.[89] | openbsd2.[89].*)
20196 shlibpath_overrides_runpath=no
20199 shlibpath_overrides_runpath=yes
20203 shlibpath_overrides_runpath=yes
20208 libname_spec='$name'
20211 library_names_spec='$libname${shared_ext} $libname.a'
20212 dynamic_linker='OS/2 ld.exe'
20213 shlibpath_var=LIBPATH
20216 osf3* | osf4* | osf5*)
20220 soname_spec='${libname}${release}${shared_ext}$major'
20221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20222 shlibpath_var=LD_LIBRARY_PATH
20223 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20224 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20232 soname_spec='${libname}${release}${shared_ext}$major'
20233 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=yes
20235 hardcode_into_libs=yes
20236 # ldd complains unless libraries are executable
20237 postinstall_cmds='chmod +x $lib'
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20244 shlibpath_var=LD_LIBRARY_PATH
20245 shlibpath_overrides_runpath=yes
20246 if test "$with_gnu_ld" = yes; then
20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255 soname_spec='${libname}${release}${shared_ext}$major'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 case $host_vendor in
20259 shlibpath_overrides_runpath=no
20261 export_dynamic_flag_spec='${wl}-Blargedynsym'
20262 runpath_var=LD_RUN_PATH
20270 shlibpath_overrides_runpath=no
20271 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20277 if test -d /usr/nec ;then
20279 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20280 soname_spec='$libname${shared_ext}.$major'
20281 shlibpath_var=LD_LIBRARY_PATH
20285 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20286 version_type=freebsd-elf
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20290 soname_spec='${libname}${release}${shared_ext}$major'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 hardcode_into_libs=yes
20293 if test "$with_gnu_ld" = yes; then
20294 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20295 shlibpath_overrides_runpath=no
20297 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20298 shlibpath_overrides_runpath=yes
20301 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20305 sys_lib_dlsearch_path_spec='/usr/lib'
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311 soname_spec='${libname}${release}${shared_ext}$major'
20312 shlibpath_var=LD_LIBRARY_PATH
20319 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20320 echo "${ECHO_T}$dynamic_linker" >&6; }
20321 test "$dynamic_linker" = no && can_build_shared=no
20323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20324 if test "$GCC" = yes; then
20325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20328 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20329 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20330 hardcode_action_CXX=
20331 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20332 test -n "$runpath_var_CXX" || \
20333 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20335 # We can hardcode non-existant directories.
20336 if test "$hardcode_direct_CXX" != no &&
20337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20338 # have to relink, otherwise we might link with an installed library
20339 # when we should be linking with a yet-to-be-installed one
20340 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20341 test "$hardcode_minus_L_CXX" != no; then
20342 # Linking always hardcodes the temporary library directory.
20343 hardcode_action_CXX=relink
20345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20346 hardcode_action_CXX=immediate
20349 # We cannot hardcode anything, or else we can only hardcode existing
20351 hardcode_action_CXX=unsupported
20353 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20354 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20356 if test "$hardcode_action_CXX" = relink; then
20357 # Fast installation is not supported
20358 enable_fast_install=no
20359 elif test "$shlibpath_overrides_runpath" = yes ||
20360 test "$enable_shared" = no; then
20361 # Fast installation is not necessary
20362 enable_fast_install=needless
20366 # The else clause should only fire when bootstrapping the
20367 # libtool distribution, otherwise you forgot to ship ltmain.sh
20368 # with your package, and you will get complaints that there are
20369 # no rules to generate ltmain.sh.
20370 if test -f "$ltmain"; then
20371 # See if we are running on zsh, and set the options which allow our commands through
20372 # without removal of \ escapes.
20373 if test -n "${ZSH_VERSION+set}" ; then
20374 setopt NO_GLOB_SUBST
20376 # Now quote all the things that may contain metacharacters while being
20377 # careful not to overquote the AC_SUBSTed values. We take copies of the
20378 # variables and quote the copies for generation of the libtool script.
20379 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20381 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20382 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20383 deplibs_check_method reload_flag reload_cmds need_locks \
20384 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20385 lt_cv_sys_global_symbol_to_c_name_address \
20386 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20387 old_postinstall_cmds old_postuninstall_cmds \
20391 lt_prog_compiler_wl_CXX \
20392 lt_prog_compiler_pic_CXX \
20393 lt_prog_compiler_static_CXX \
20394 lt_prog_compiler_no_builtin_flag_CXX \
20395 export_dynamic_flag_spec_CXX \
20396 thread_safe_flag_spec_CXX \
20397 whole_archive_flag_spec_CXX \
20398 enable_shared_with_static_runtimes_CXX \
20399 old_archive_cmds_CXX \
20400 old_archive_from_new_cmds_CXX \
20401 predep_objects_CXX \
20402 postdep_objects_CXX \
20405 compiler_lib_search_path_CXX \
20407 archive_expsym_cmds_CXX \
20408 postinstall_cmds_CXX \
20409 postuninstall_cmds_CXX \
20410 old_archive_from_expsyms_cmds_CXX \
20411 allow_undefined_flag_CXX \
20412 no_undefined_flag_CXX \
20413 export_symbols_cmds_CXX \
20414 hardcode_libdir_flag_spec_CXX \
20415 hardcode_libdir_flag_spec_ld_CXX \
20416 hardcode_libdir_separator_CXX \
20417 hardcode_automatic_CXX \
20419 module_expsym_cmds_CXX \
20420 lt_cv_prog_compiler_c_o_CXX \
20421 exclude_expsyms_CXX \
20422 include_expsyms_CXX; do
20425 old_archive_cmds_CXX | \
20426 old_archive_from_new_cmds_CXX | \
20427 archive_cmds_CXX | \
20428 archive_expsym_cmds_CXX | \
20429 module_cmds_CXX | \
20430 module_expsym_cmds_CXX | \
20431 old_archive_from_expsyms_cmds_CXX | \
20432 export_symbols_cmds_CXX | \
20433 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20434 postinstall_cmds | postuninstall_cmds | \
20435 old_postinstall_cmds | old_postuninstall_cmds | \
20436 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20437 # Double-quote double-evaled strings.
20438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20441 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20447 *'\$0 --fallback-echo"')
20448 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20454 cat <<__EOF__ >> "$cfgfile"
20455 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20457 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20459 # Shell to use when invoking shell scripts.
20462 # Whether or not to build shared libraries.
20463 build_libtool_libs=$enable_shared
20465 # Whether or not to build static libraries.
20466 build_old_libs=$enable_static
20468 # Whether or not to add -lc for building shared libraries.
20469 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20471 # Whether or not to disallow shared libs when runtime libs are static
20472 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20474 # Whether or not to optimize for fast installation.
20475 fast_install=$enable_fast_install
20478 host_alias=$host_alias
20482 # The build system.
20483 build_alias=$build_alias
20487 # An echo program that does not interpret backslashes.
20492 AR_FLAGS=$lt_AR_FLAGS
20497 # LTCC compiler flags.
20498 LTCFLAGS=$lt_LTCFLAGS
20500 # A language-specific compiler.
20501 CC=$lt_compiler_CXX
20503 # Is the compiler the GNU C compiler?
20509 # The linker used to build libraries.
20512 # Whether we need hard or soft links.
20515 # A BSD-compatible nm program.
20518 # A symbol stripping program
20521 # Used to examine libraries when file_magic_cmd begins "file"
20522 MAGIC_CMD=$MAGIC_CMD
20524 # Used on cygwin: DLL creation program.
20527 # Used on cygwin: object dumper.
20530 # Used on cygwin: assembler.
20533 # The name of the directory that contains temporary libtool files.
20536 # How to create reloadable object files.
20537 reload_flag=$lt_reload_flag
20538 reload_cmds=$lt_reload_cmds
20540 # How to pass a linker flag through the compiler.
20541 wl=$lt_lt_prog_compiler_wl_CXX
20543 # Object file suffix (normally "o").
20544 objext="$ac_objext"
20546 # Old archive suffix (normally "a").
20549 # Shared library suffix (normally ".so").
20550 shrext_cmds='$shrext_cmds'
20552 # Executable file suffix (normally "").
20555 # Additional compiler flags for building library objects.
20556 pic_flag=$lt_lt_prog_compiler_pic_CXX
20559 # What is the maximum length of a command?
20560 max_cmd_len=$lt_cv_sys_max_cmd_len
20562 # Does compiler simultaneously support -c and -o options?
20563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20565 # Must we lock files when doing compilation?
20566 need_locks=$lt_need_locks
20568 # Do we need the lib prefix for modules?
20569 need_lib_prefix=$need_lib_prefix
20571 # Do we need a version for libraries?
20572 need_version=$need_version
20574 # Whether dlopen is supported.
20575 dlopen_support=$enable_dlopen
20577 # Whether dlopen of programs is supported.
20578 dlopen_self=$enable_dlopen_self
20580 # Whether dlopen of statically linked programs is supported.
20581 dlopen_self_static=$enable_dlopen_self_static
20583 # Compiler flag to prevent dynamic linking.
20584 link_static_flag=$lt_lt_prog_compiler_static_CXX
20586 # Compiler flag to turn off builtin functions.
20587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20589 # Compiler flag to allow reflexive dlopens.
20590 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20592 # Compiler flag to generate shared objects directly from archives.
20593 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20595 # Compiler flag to generate thread-safe objects.
20596 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20598 # Library versioning type.
20599 version_type=$version_type
20601 # Format of library name prefix.
20602 libname_spec=$lt_libname_spec
20604 # List of archive names. First name is the real one, the rest are links.
20605 # The last name is the one that the linker finds with -lNAME.
20606 library_names_spec=$lt_library_names_spec
20608 # The coded name of the library, if different from the real name.
20609 soname_spec=$lt_soname_spec
20611 # Commands used to build and install an old-style archive.
20613 old_archive_cmds=$lt_old_archive_cmds_CXX
20614 old_postinstall_cmds=$lt_old_postinstall_cmds
20615 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20617 # Create an old-style archive from a shared archive.
20618 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20620 # Create a temporary old-style archive to link instead of a shared archive.
20621 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20623 # Commands used to build and install a shared archive.
20624 archive_cmds=$lt_archive_cmds_CXX
20625 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20626 postinstall_cmds=$lt_postinstall_cmds
20627 postuninstall_cmds=$lt_postuninstall_cmds
20629 # Commands used to build a loadable module (assumed same as above if empty)
20630 module_cmds=$lt_module_cmds_CXX
20631 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20633 # Commands to strip libraries.
20634 old_striplib=$lt_old_striplib
20635 striplib=$lt_striplib
20637 # Dependencies to place before the objects being linked to create a
20639 predep_objects=$lt_predep_objects_CXX
20641 # Dependencies to place after the objects being linked to create a
20643 postdep_objects=$lt_postdep_objects_CXX
20645 # Dependencies to place before the objects being linked to create a
20647 predeps=$lt_predeps_CXX
20649 # Dependencies to place after the objects being linked to create a
20651 postdeps=$lt_postdeps_CXX
20653 # The library search path used internally by the compiler when linking
20654 # a shared library.
20655 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20657 # Method to check whether dependent libraries are shared objects.
20658 deplibs_check_method=$lt_deplibs_check_method
20660 # Command to use when deplibs_check_method == file_magic.
20661 file_magic_cmd=$lt_file_magic_cmd
20663 # Flag that allows shared libraries with undefined symbols to be built.
20664 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20666 # Flag that forces no undefined symbols.
20667 no_undefined_flag=$lt_no_undefined_flag_CXX
20669 # Commands used to finish a libtool library installation in a directory.
20670 finish_cmds=$lt_finish_cmds
20672 # Same as above, but a single script fragment to be evaled but not shown.
20673 finish_eval=$lt_finish_eval
20675 # Take the output of nm and produce a listing of raw symbols and C names.
20676 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20678 # Transform the output of nm in a proper C declaration
20679 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20681 # Transform the output of nm in a C name address pair
20682 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20684 # This is the shared library runtime path variable.
20685 runpath_var=$runpath_var
20687 # This is the shared library path variable.
20688 shlibpath_var=$shlibpath_var
20690 # Is shlibpath searched before the hard-coded library search path?
20691 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20693 # How to hardcode a shared library path into an executable.
20694 hardcode_action=$hardcode_action_CXX
20696 # Whether we should hardcode library paths into libraries.
20697 hardcode_into_libs=$hardcode_into_libs
20699 # Flag to hardcode \$libdir into a binary during linking.
20700 # This must work even if \$libdir does not exist.
20701 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20703 # If ld is used when linking, flag to hardcode \$libdir into
20704 # a binary during linking. This must work even if \$libdir does
20706 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20708 # Whether we need a single -rpath flag with a separated argument.
20709 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20711 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20712 # resulting binary.
20713 hardcode_direct=$hardcode_direct_CXX
20715 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20716 # resulting binary.
20717 hardcode_minus_L=$hardcode_minus_L_CXX
20719 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20720 # the resulting binary.
20721 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20723 # Set to yes if building a shared library automatically hardcodes DIR into the library
20724 # and all subsequent libraries and executables linked against it.
20725 hardcode_automatic=$hardcode_automatic_CXX
20727 # Variables whose values should be saved in libtool wrapper scripts and
20728 # restored at relink time.
20729 variables_saved_for_relink="$variables_saved_for_relink"
20731 # Whether libtool must link a program against all its dependency libraries.
20732 link_all_deplibs=$link_all_deplibs_CXX
20734 # Compile-time system search path for libraries
20735 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20737 # Run-time system search path for libraries
20738 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20740 # Fix the shell variable \$srcfile for the compiler.
20741 fix_srcfile_path="$fix_srcfile_path_CXX"
20743 # Set to yes if exported symbols are required.
20744 always_export_symbols=$always_export_symbols_CXX
20746 # The commands to list exported symbols.
20747 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20749 # The commands to extract the exported symbol list from a shared archive.
20750 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20752 # Symbols that should not be listed in the preloaded symbols.
20753 exclude_expsyms=$lt_exclude_expsyms_CXX
20755 # Symbols that must always be exported.
20756 include_expsyms=$lt_include_expsyms_CXX
20758 # ### END LIBTOOL TAG CONFIG: $tagname
20764 # If there is no Makefile yet, we rely on a make rule to execute
20765 # `config.status --recheck' to rerun these tests and create the
20766 # libtool script then.
20767 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20768 if test -f "$ltmain_in"; then
20769 test -f Makefile && make "$ltmain"
20775 ac_cpp='$CPP $CPPFLAGS'
20776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20784 with_gnu_ldcxx=$with_gnu_ld
20785 with_gnu_ld=$lt_save_with_gnu_ld
20786 lt_cv_path_LDCXX=$lt_cv_path_LD
20787 lt_cv_path_LD=$lt_save_path_LD
20788 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20789 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20797 if test -n "$F77" && test "X$F77" != "Xno"; then
20800 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20801 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20805 archive_cmds_need_lc_F77=no
20806 allow_undefined_flag_F77=
20807 always_export_symbols_F77=no
20808 archive_expsym_cmds_F77=
20809 export_dynamic_flag_spec_F77=
20810 hardcode_direct_F77=no
20811 hardcode_libdir_flag_spec_F77=
20812 hardcode_libdir_flag_spec_ld_F77=
20813 hardcode_libdir_separator_F77=
20814 hardcode_minus_L_F77=no
20815 hardcode_automatic_F77=no
20817 module_expsym_cmds_F77=
20818 link_all_deplibs_F77=unknown
20819 old_archive_cmds_F77=$old_archive_cmds
20820 no_undefined_flag_F77=
20821 whole_archive_flag_spec_F77=
20822 enable_shared_with_static_runtimes_F77=no
20824 # Source file extension for f77 test sources.
20827 # Object file extension for compiled f77 test sources.
20831 # Code to be used in simple compile tests
20832 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20834 # Code to be used in simple link tests
20835 lt_simple_link_test_code=" program t\n end\n"
20837 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20839 # If no C compiler was specified, use CC.
20842 # If no C compiler flags were specified, use CFLAGS.
20843 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20845 # Allow CC to be a program name with arguments.
20849 # save warnings/boilerplate of simple test code
20850 ac_outfile=conftest.$ac_objext
20851 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20852 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20853 _lt_compiler_boilerplate=`cat conftest.err`
20856 ac_outfile=conftest.$ac_objext
20857 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20858 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20859 _lt_linker_boilerplate=`cat conftest.err`
20863 # Allow CC to be a program name with arguments.
20868 for cc_temp in $compiler""; do
20870 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20871 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20876 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20879 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20880 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20881 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20882 echo "${ECHO_T}$can_build_shared" >&6; }
20884 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20885 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20886 test "$can_build_shared" = "no" && enable_shared=no
20888 # On AIX, shared libraries and static libraries use the same namespace, and
20889 # are all built from PIC.
20892 test "$enable_shared" = yes && enable_static=no
20893 if test -n "$RANLIB"; then
20894 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20895 postinstall_cmds='$RANLIB $lib'
20899 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20900 test "$enable_shared" = yes && enable_static=no
20904 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20905 echo "${ECHO_T}$enable_shared" >&6; }
20907 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20908 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20909 # Make sure either enable_shared or enable_static is yes.
20910 test "$enable_shared" = yes || enable_static=yes
20911 { echo "$as_me:$LINENO: result: $enable_static" >&5
20912 echo "${ECHO_T}$enable_static" >&6; }
20917 lt_prog_compiler_wl_F77=
20918 lt_prog_compiler_pic_F77=
20919 lt_prog_compiler_static_F77=
20921 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20922 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20924 if test "$GCC" = yes; then
20925 lt_prog_compiler_wl_F77='-Wl,'
20926 lt_prog_compiler_static_F77='-static'
20930 # All AIX code is PIC.
20931 if test "$host_cpu" = ia64; then
20932 # AIX 5 now supports IA64 processor
20933 lt_prog_compiler_static_F77='-Bstatic'
20938 # FIXME: we need at least 68020 code to build shared libraries, but
20939 # adding the `-m68020' flag to GCC prevents building anything better,
20941 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20944 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20945 # PIC is the default for these OSes.
20948 mingw* | pw32* | os2*)
20949 # This hack is so that the source file can tell whether it is being
20950 # built for inclusion in a dll (and should export symbols for example).
20951 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20954 darwin* | rhapsody*)
20955 # PIC is the default on this platform
20956 # Common symbols not allowed in MH_DYLIB files
20957 lt_prog_compiler_pic_F77='-fno-common'
20961 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20962 # Instead, we relocate shared libraries at runtime.
20966 # Just because we use GCC doesn't mean we suddenly get shared libraries
20967 # on systems that don't support them.
20968 lt_prog_compiler_can_build_shared_F77=no
20973 if test -d /usr/nec; then
20974 lt_prog_compiler_pic_F77=-Kconform_pic
20979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20980 # not for PA HP-UX.
20986 lt_prog_compiler_pic_F77='-fPIC'
20992 lt_prog_compiler_pic_F77='-fPIC'
20996 # PORTME Check for flag to pass linker flags through the system compiler.
20999 lt_prog_compiler_wl_F77='-Wl,'
21000 if test "$host_cpu" = ia64; then
21001 # AIX 5 now supports IA64 processor
21002 lt_prog_compiler_static_F77='-Bstatic'
21004 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21008 # PIC is the default on this platform
21009 # Common symbols not allowed in MH_DYLIB files
21010 case $cc_basename in
21012 lt_prog_compiler_pic_F77='-qnocommon'
21013 lt_prog_compiler_wl_F77='-Wl,'
21018 mingw* | pw32* | os2*)
21019 # This hack is so that the source file can tell whether it is being
21020 # built for inclusion in a dll (and should export symbols for example).
21021 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21024 hpux9* | hpux10* | hpux11*)
21025 lt_prog_compiler_wl_F77='-Wl,'
21026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21027 # not for PA HP-UX.
21033 lt_prog_compiler_pic_F77='+Z'
21036 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21037 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21040 irix5* | irix6* | nonstopux*)
21041 lt_prog_compiler_wl_F77='-Wl,'
21042 # PIC (with -KPIC) is the default.
21043 lt_prog_compiler_static_F77='-non_shared'
21047 lt_prog_compiler_pic_F77='-KPIC'
21048 lt_prog_compiler_static_F77='-Bstatic'
21052 case $cc_basename in
21054 lt_prog_compiler_wl_F77='-Wl,'
21055 lt_prog_compiler_pic_F77='-KPIC'
21056 lt_prog_compiler_static_F77='-static'
21058 pgcc* | pgf77* | pgf90* | pgf95*)
21059 # Portland Group compilers (*not* the Pentium gcc compiler,
21060 # which looks to be a dead project)
21061 lt_prog_compiler_wl_F77='-Wl,'
21062 lt_prog_compiler_pic_F77='-fpic'
21063 lt_prog_compiler_static_F77='-Bstatic'
21066 lt_prog_compiler_wl_F77='-Wl,'
21067 # All Alpha code is PIC.
21068 lt_prog_compiler_static_F77='-non_shared'
21073 osf3* | osf4* | osf5*)
21074 lt_prog_compiler_wl_F77='-Wl,'
21075 # All OSF/1 code is PIC.
21076 lt_prog_compiler_static_F77='-non_shared'
21080 lt_prog_compiler_pic_F77='-KPIC'
21081 lt_prog_compiler_static_F77='-Bstatic'
21082 case $cc_basename in
21083 f77* | f90* | f95*)
21084 lt_prog_compiler_wl_F77='-Qoption ld ';;
21086 lt_prog_compiler_wl_F77='-Wl,';;
21091 lt_prog_compiler_wl_F77='-Qoption ld '
21092 lt_prog_compiler_pic_F77='-PIC'
21093 lt_prog_compiler_static_F77='-Bstatic'
21096 sysv4 | sysv4.2uw2* | sysv4.3*)
21097 lt_prog_compiler_wl_F77='-Wl,'
21098 lt_prog_compiler_pic_F77='-KPIC'
21099 lt_prog_compiler_static_F77='-Bstatic'
21103 if test -d /usr/nec ;then
21104 lt_prog_compiler_pic_F77='-Kconform_pic'
21105 lt_prog_compiler_static_F77='-Bstatic'
21109 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21110 lt_prog_compiler_wl_F77='-Wl,'
21111 lt_prog_compiler_pic_F77='-KPIC'
21112 lt_prog_compiler_static_F77='-Bstatic'
21116 lt_prog_compiler_wl_F77='-Wl,'
21117 lt_prog_compiler_can_build_shared_F77=no
21121 lt_prog_compiler_pic_F77='-pic'
21122 lt_prog_compiler_static_F77='-Bstatic'
21126 lt_prog_compiler_can_build_shared_F77=no
21131 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21132 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21135 # Check to make sure the PIC flag actually works.
21137 if test -n "$lt_prog_compiler_pic_F77"; then
21139 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21140 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21141 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 lt_prog_compiler_pic_works_F77=no
21145 ac_outfile=conftest.$ac_objext
21146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21147 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21148 # Insert the option either (1) after the last *FLAGS variable, or
21149 # (2) before a word containing "conftest.", or (3) at the end.
21150 # Note that $ac_compile itself does not contain backslashes and begins
21151 # with a dollar sign (not a hyphen), so the echo should work correctly.
21152 # The option is referenced via a variable to avoid confusing sed.
21153 lt_compile=`echo "$ac_compile" | $SED \
21154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21156 -e 's:$: $lt_compiler_flag:'`
21157 (eval echo "\"\$as_me:21157: $lt_compile\"" >&5)
21158 (eval "$lt_compile" 2>conftest.err)
21160 cat conftest.err >&5
21161 echo "$as_me:21161: \$? = $ac_status" >&5
21162 if (exit $ac_status) && test -s "$ac_outfile"; then
21163 # The compiler can only warn and ignore the option if not recognized
21164 # So say no if there are warnings other than the usual output.
21165 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21168 lt_prog_compiler_pic_works_F77=yes
21174 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21175 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21177 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21178 case $lt_prog_compiler_pic_F77 in
21180 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21183 lt_prog_compiler_pic_F77=
21184 lt_prog_compiler_can_build_shared_F77=no
21189 # For platforms which do not support PIC, -DPIC is meaningless:
21191 lt_prog_compiler_pic_F77=
21194 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21199 # Check to make sure the static flag actually works.
21201 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21202 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21203 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21204 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21205 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 lt_prog_compiler_static_works_F77=no
21208 save_LDFLAGS="$LDFLAGS"
21209 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21210 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21212 # The linker can only warn and ignore the option if not recognized
21213 # So say no if there are warnings
21214 if test -s conftest.err; then
21215 # Append any errors to the config.log.
21216 cat conftest.err 1>&5
21217 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21219 if diff conftest.exp conftest.er2 >/dev/null; then
21220 lt_prog_compiler_static_works_F77=yes
21223 lt_prog_compiler_static_works_F77=yes
21227 LDFLAGS="$save_LDFLAGS"
21230 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21231 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21233 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21236 lt_prog_compiler_static_F77=
21240 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21241 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21242 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 lt_cv_prog_compiler_c_o_F77=no
21246 $rm -r conftest 2>/dev/null
21250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21252 lt_compiler_flag="-o out/conftest2.$ac_objext"
21253 # Insert the option either (1) after the last *FLAGS variable, or
21254 # (2) before a word containing "conftest.", or (3) at the end.
21255 # Note that $ac_compile itself does not contain backslashes and begins
21256 # with a dollar sign (not a hyphen), so the echo should work correctly.
21257 lt_compile=`echo "$ac_compile" | $SED \
21258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21260 -e 's:$: $lt_compiler_flag:'`
21261 (eval echo "\"\$as_me:21261: $lt_compile\"" >&5)
21262 (eval "$lt_compile" 2>out/conftest.err)
21264 cat out/conftest.err >&5
21265 echo "$as_me:21265: \$? = $ac_status" >&5
21266 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21268 # The compiler can only warn and ignore the option if not recognized
21269 # So say no if there are warnings
21270 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21273 lt_cv_prog_compiler_c_o_F77=yes
21278 # SGI C++ compiler will create directory out/ii_files/ for
21279 # template instantiation
21280 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21281 $rm out/* && rmdir out
21287 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21288 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21291 hard_links="nottested"
21292 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21293 # do not overwrite the value of need_locks provided by the user
21294 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21295 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21300 ln conftest.a conftest.b 2>&5 || hard_links=no
21301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21302 { echo "$as_me:$LINENO: result: $hard_links" >&5
21303 echo "${ECHO_T}$hard_links" >&6; }
21304 if test "$hard_links" = no; then
21305 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21306 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21313 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21314 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21317 allow_undefined_flag_F77=
21318 enable_shared_with_static_runtimes_F77=no
21320 archive_expsym_cmds_F77=
21321 old_archive_From_new_cmds_F77=
21322 old_archive_from_expsyms_cmds_F77=
21323 export_dynamic_flag_spec_F77=
21324 whole_archive_flag_spec_F77=
21325 thread_safe_flag_spec_F77=
21326 hardcode_libdir_flag_spec_F77=
21327 hardcode_libdir_flag_spec_ld_F77=
21328 hardcode_libdir_separator_F77=
21329 hardcode_direct_F77=no
21330 hardcode_minus_L_F77=no
21331 hardcode_shlibpath_var_F77=unsupported
21332 link_all_deplibs_F77=unknown
21333 hardcode_automatic_F77=no
21335 module_expsym_cmds_F77=
21336 always_export_symbols_F77=no
21337 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21338 # include_expsyms should be a list of space-separated symbols to be *always*
21339 # included in the symbol list
21340 include_expsyms_F77=
21341 # exclude_expsyms can be an extended regexp of symbols to exclude
21342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21344 # as well as any symbol that contains `d'.
21345 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21347 # platforms (ab)use it in PIC code, but their linkers get confused if
21348 # the symbol is explicitly referenced. Since portable code cannot
21349 # rely on this symbol name, it's probably fine to never include it in
21350 # preloaded symbol tables.
21351 extract_expsyms_cmds=
21352 # Just being paranoid about ensuring that cc_basename is set.
21353 for cc_temp in $compiler""; do
21355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21361 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21364 cygwin* | mingw* | pw32*)
21365 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21366 # When not using gcc, we currently assume that we are using
21367 # Microsoft Visual C++.
21368 if test "$GCC" != yes; then
21373 # we just hope/assume this is gcc and not c89 (= MSVC++)
21382 if test "$with_gnu_ld" = yes; then
21383 # If archive_cmds runs LD, not CC, wlarc should be empty
21386 # Set some defaults for GNU ld with shared library support. These
21387 # are reset later if shared libraries are not supported. Putting them
21388 # here allows them to be overridden if necessary.
21389 runpath_var=LD_RUN_PATH
21390 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21391 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21392 # ancient GNU ld didn't support --whole-archive et. al.
21393 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21394 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21396 whole_archive_flag_spec_F77=
21398 supports_anon_versioning=no
21399 case `$LD -v 2>/dev/null` in
21400 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21401 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21402 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21403 *\ 2.11.*) ;; # other 2.11 versions
21404 *) supports_anon_versioning=yes ;;
21407 # See if GNU ld supports shared libraries.
21409 aix3* | aix4* | aix5*)
21410 # On AIX/PPC, the GNU linker is very broken
21411 if test "$host_cpu" != ia64; then
21415 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21416 *** to be unable to reliably create shared libraries on AIX.
21417 *** Therefore, libtool is disabling shared libraries support. If you
21418 *** really care for shared libraries, you may want to modify your PATH
21419 *** so that a non-GNU linker is found, and then restart.
21426 archive_cmds_F77='$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)'
21427 hardcode_libdir_flag_spec_F77='-L$libdir'
21428 hardcode_minus_L_F77=yes
21430 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21431 # that the semantics of dynamic libraries on AmigaOS, at least up
21432 # to version 4, is to share data among multiple programs linked
21433 # with the same dynamic library. Since this doesn't match the
21434 # behavior of shared libraries on other platforms, we can't use
21440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21441 allow_undefined_flag_F77=unsupported
21442 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21443 # support --undefined. This deserves some investigation. FIXME
21444 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21450 cygwin* | mingw* | pw32*)
21451 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21452 # as there is no search path for DLLs.
21453 hardcode_libdir_flag_spec_F77='-L$libdir'
21454 allow_undefined_flag_F77=unsupported
21455 always_export_symbols_F77=no
21456 enable_shared_with_static_runtimes_F77=yes
21457 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21460 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21461 # If the export-symbols file already is a .def file (1st line
21462 # is EXPORTS), use it as is; otherwise, prepend...
21463 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21464 cp $export_symbols $output_objdir/$soname.def;
21466 echo EXPORTS > $output_objdir/$soname.def;
21467 cat $export_symbols >> $output_objdir/$soname.def;
21469 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21476 hardcode_direct_F77=no
21477 hardcode_shlibpath_var_F77=no
21478 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21479 export_dynamic_flag_spec_F77='${wl}-E'
21480 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21481 # Instead, shared libraries are loaded at an image base (0x10000000 by
21482 # default) and relocated if they conflict, which is a slow very memory
21483 # consuming and fragmenting process. To avoid this, we pick a random,
21484 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21485 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21486 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21487 archive_expsym_cmds_F77='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'
21491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21493 case $cc_basename,$host_cpu in
21494 pgcc*) # Portland Group C compiler
21495 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21496 tmp_addflag=' $pic_flag'
21498 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21499 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21500 tmp_addflag=' $pic_flag -Mnomain' ;;
21501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21502 tmp_addflag=' -i_dynamic' ;;
21503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21504 tmp_addflag=' -i_dynamic -nofor_main' ;;
21505 ifc* | ifort*) # Intel Fortran compiler
21506 tmp_addflag=' -nofor_main' ;;
21508 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21510 if test $supports_anon_versioning = yes; then
21511 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21513 $echo "local: *; };" >> $output_objdir/$libname.ver~
21514 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21523 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21526 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21527 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21532 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21536 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21537 *** create shared libraries on Solaris systems. Therefore, libtool
21538 *** is disabling shared libraries support. We urge you to upgrade GNU
21539 *** binutils to release 2.9.1 or newer. Another option is to modify
21540 *** your PATH or compiler configuration so that the native linker is
21541 *** used, and then restart.
21544 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21545 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21546 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21553 case `$LD -v 2>&1` in
21554 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21558 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21559 *** reliably create shared libraries on SCO systems. Therefore, libtool
21560 *** is disabling shared libraries support. We urge you to upgrade GNU
21561 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21562 *** your PATH or compiler configuration so that the native linker is
21563 *** used, and then restart.
21568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21569 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21570 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21571 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21580 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21582 hardcode_direct_F77=yes
21583 hardcode_shlibpath_var_F77=no
21587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21588 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21589 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21596 if test "$ld_shlibs_F77" = no; then
21598 hardcode_libdir_flag_spec_F77=
21599 export_dynamic_flag_spec_F77=
21600 whole_archive_flag_spec_F77=
21603 # PORTME fill in a description of your system's linker (not GNU ld)
21606 allow_undefined_flag_F77=unsupported
21607 always_export_symbols_F77=yes
21608 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
21609 # Note: this linker hardcodes the directories in LIBPATH if there
21610 # are no directories specified by -L.
21611 hardcode_minus_L_F77=yes
21612 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21613 # Neither direct hardcoding nor static linking is supported with a
21615 hardcode_direct_F77=unsupported
21620 if test "$host_cpu" = ia64; then
21621 # On IA64, the linker does run time linking by default, so we don't
21622 # have to do anything special.
21623 aix_use_runtimelinking=no
21624 exp_sym_flag='-Bexport'
21627 # If we're using GNU nm, then we don't want the "-C" option.
21628 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21629 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21630 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21632 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21634 aix_use_runtimelinking=no
21636 # Test if we are trying to use run time linking or normal
21637 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21638 # need to do runtime linking.
21639 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21640 for ld_flag in $LDFLAGS; do
21641 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21642 aix_use_runtimelinking=yes
21649 exp_sym_flag='-bexport'
21650 no_entry_flag='-bnoentry'
21653 # When large executables or shared objects are built, AIX ld can
21654 # have problems creating the table of contents. If linking a library
21655 # or program results in "error TOC overflow" add -mminimal-toc to
21656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21659 archive_cmds_F77=''
21660 hardcode_direct_F77=yes
21661 hardcode_libdir_separator_F77=':'
21662 link_all_deplibs_F77=yes
21664 if test "$GCC" = yes; then
21665 case $host_os in aix4.[012]|aix4.[012].*)
21666 # We only want to do this on AIX 4.2 and lower, the check
21667 # below for broken collect2 doesn't work under 4.3+
21668 collect2name=`${CC} -print-prog-name=collect2`
21669 if test -f "$collect2name" && \
21670 strings "$collect2name" | grep resolve_lib_name >/dev/null
21672 # We have reworked collect2
21673 hardcode_direct_F77=yes
21675 # We have old collect2
21676 hardcode_direct_F77=unsupported
21677 # It fails to find uninstalled libraries when the uninstalled
21678 # path is not listed in the libpath. Setting hardcode_minus_L
21679 # to unsupported forces relinking
21680 hardcode_minus_L_F77=yes
21681 hardcode_libdir_flag_spec_F77='-L$libdir'
21682 hardcode_libdir_separator_F77=
21686 shared_flag='-shared'
21687 if test "$aix_use_runtimelinking" = yes; then
21688 shared_flag="$shared_flag "'${wl}-G'
21692 if test "$host_cpu" = ia64; then
21693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21694 # chokes on -Wl,-G. The following line is correct:
21697 if test "$aix_use_runtimelinking" = yes; then
21698 shared_flag='${wl}-G'
21700 shared_flag='${wl}-bM:SRE'
21705 # It seems that -bexpall does not export symbols beginning with
21706 # underscore (_), so it is better to generate a list of symbols to export.
21707 always_export_symbols_F77=yes
21708 if test "$aix_use_runtimelinking" = yes; then
21709 # Warning - without using the other runtime loading flags (-brtl),
21710 # -berok will link without error, but may produce a broken library.
21711 allow_undefined_flag_F77='-berok'
21712 # Determine the default libpath from the value encoded in an empty executable.
21713 cat >conftest.$ac_ext <<_ACEOF
21718 rm -f conftest.$ac_objext conftest$ac_exeext
21719 if { (ac_try="$ac_link"
21720 case "(($ac_try" in
21721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_link") 2>conftest.er1
21727 grep -v '^ *+' conftest.er1 >conftest.err
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
21732 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21733 { (case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_try") 2>&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; } &&
21742 { ac_try='test -s conftest$ac_exeext'
21743 { (case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_try") 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21755 # Check for a 64-bit object if we didn't find anything.
21756 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21765 rm -f core conftest.err conftest.$ac_objext \
21766 conftest$ac_exeext conftest.$ac_ext
21767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21769 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21770 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21772 if test "$host_cpu" = ia64; then
21773 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21774 allow_undefined_flag_F77="-z nodefs"
21775 archive_expsym_cmds_F77="\$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"
21777 # Determine the default libpath from the value encoded in an empty executable.
21778 cat >conftest.$ac_ext <<_ACEOF
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_link") 2>conftest.er1
21792 grep -v '^ *+' conftest.er1 >conftest.err
21794 cat conftest.err >&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } &&
21797 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21798 { (case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_try") 2>&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } &&
21807 { ac_try='test -s conftest$ac_exeext'
21808 { (case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_try") 2>&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21820 # Check for a 64-bit object if we didn't find anything.
21821 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21824 echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21830 rm -f core conftest.err conftest.$ac_objext \
21831 conftest$ac_exeext conftest.$ac_ext
21832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21834 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21835 # Warning - without using the other run time loading flags,
21836 # -berok will link without error, but may produce a broken library.
21837 no_undefined_flag_F77=' ${wl}-bernotok'
21838 allow_undefined_flag_F77=' ${wl}-berok'
21839 # Exported symbols can be pulled into shared objects from archives
21840 whole_archive_flag_spec_F77='$convenience'
21841 archive_cmds_need_lc_F77=yes
21842 # This is similar to how AIX traditionally builds its shared libraries.
21843 archive_expsym_cmds_F77="\$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'
21849 archive_cmds_F77='$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)'
21850 hardcode_libdir_flag_spec_F77='-L$libdir'
21851 hardcode_minus_L_F77=yes
21852 # see comment about different semantics on the GNU ld section
21857 export_dynamic_flag_spec_F77=-rdynamic
21860 cygwin* | mingw* | pw32*)
21861 # When not using gcc, we currently assume that we are using
21862 # Microsoft Visual C++.
21863 # hardcode_libdir_flag_spec is actually meaningless, as there is
21864 # no search path for DLLs.
21865 hardcode_libdir_flag_spec_F77=' '
21866 allow_undefined_flag_F77=unsupported
21867 # Tell ltmain to make .lib files, not .a files.
21869 # Tell ltmain to make .dll files, not .so files.
21871 # FIXME: Setting linknames here is a bad hack.
21872 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21873 # The linker will automatically build a .lib file if we build a DLL.
21874 old_archive_From_new_cmds_F77='true'
21875 # FIXME: Should let the user specify the lib program.
21876 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21877 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21878 enable_shared_with_static_runtimes_F77=yes
21881 darwin* | rhapsody*)
21883 rhapsody* | darwin1.[012])
21884 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21887 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21888 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21890 case ${MACOSX_DEPLOYMENT_TARGET} in
21892 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21895 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21901 archive_cmds_need_lc_F77=no
21902 hardcode_direct_F77=no
21903 hardcode_automatic_F77=yes
21904 hardcode_shlibpath_var_F77=unsupported
21905 whole_archive_flag_spec_F77=''
21906 link_all_deplibs_F77=yes
21907 if test "$GCC" = yes ; then
21908 output_verbose_link_cmd='echo'
21909 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21910 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21911 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21912 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21913 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21915 case $cc_basename in
21917 output_verbose_link_cmd='echo'
21918 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21919 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21920 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21921 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21922 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21932 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21933 hardcode_libdir_flag_spec_F77='-L$libdir'
21934 hardcode_shlibpath_var_F77=no
21941 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21942 # support. Future versions do this automatically, but an explicit c++rt0.o
21943 # does not break anything, and helps significantly (at the cost of a little
21946 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21947 hardcode_libdir_flag_spec_F77='-R$libdir'
21948 hardcode_direct_F77=yes
21949 hardcode_shlibpath_var_F77=no
21952 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21954 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21955 hardcode_direct_F77=yes
21956 hardcode_minus_L_F77=yes
21957 hardcode_shlibpath_var_F77=no
21960 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21961 freebsd* | kfreebsd*-gnu | dragonfly*)
21962 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21963 hardcode_libdir_flag_spec_F77='-R$libdir'
21964 hardcode_direct_F77=yes
21965 hardcode_shlibpath_var_F77=no
21969 if test "$GCC" = yes; then
21970 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21972 archive_cmds_F77='$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'
21974 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21975 hardcode_libdir_separator_F77=:
21976 hardcode_direct_F77=yes
21978 # hardcode_minus_L: Not really in the search PATH,
21979 # but as the default location of the library.
21980 hardcode_minus_L_F77=yes
21981 export_dynamic_flag_spec_F77='${wl}-E'
21985 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21986 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21988 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21990 if test "$with_gnu_ld" = no; then
21991 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21992 hardcode_libdir_separator_F77=:
21994 hardcode_direct_F77=yes
21995 export_dynamic_flag_spec_F77='${wl}-E'
21997 # hardcode_minus_L: Not really in the search PATH,
21998 # but as the default location of the library.
21999 hardcode_minus_L_F77=yes
22004 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22007 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22010 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22013 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22019 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22022 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22025 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22029 if test "$with_gnu_ld" = no; then
22030 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22031 hardcode_libdir_separator_F77=:
22035 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22036 hardcode_direct_F77=no
22037 hardcode_shlibpath_var_F77=no
22040 hardcode_direct_F77=yes
22041 export_dynamic_flag_spec_F77='${wl}-E'
22043 # hardcode_minus_L: Not really in the search PATH,
22044 # but as the default location of the library.
22045 hardcode_minus_L_F77=yes
22051 irix5* | irix6* | nonstopux*)
22052 if test "$GCC" = yes; then
22053 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22055 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22056 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22059 hardcode_libdir_separator_F77=:
22060 link_all_deplibs_F77=yes
22064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22065 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22067 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22069 hardcode_libdir_flag_spec_F77='-R$libdir'
22070 hardcode_direct_F77=yes
22071 hardcode_shlibpath_var_F77=no
22075 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22076 hardcode_direct_F77=yes
22077 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22078 hardcode_libdir_separator_F77=:
22079 hardcode_shlibpath_var_F77=no
22083 hardcode_direct_F77=yes
22084 hardcode_shlibpath_var_F77=no
22085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22086 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22087 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22088 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22089 export_dynamic_flag_spec_F77='${wl}-E'
22092 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22093 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22094 hardcode_libdir_flag_spec_F77='-R$libdir'
22097 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22098 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22105 hardcode_libdir_flag_spec_F77='-L$libdir'
22106 hardcode_minus_L_F77=yes
22107 allow_undefined_flag_F77=unsupported
22108 archive_cmds_F77='$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'
22109 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22113 if test "$GCC" = yes; then
22114 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22115 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22117 allow_undefined_flag_F77=' -expect_unresolved \*'
22118 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22120 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22121 hardcode_libdir_separator_F77=:
22124 osf4* | osf5*) # as osf3* with the addition of -msym flag
22125 if test "$GCC" = yes; then
22126 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22127 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22128 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22130 allow_undefined_flag_F77=' -expect_unresolved \*'
22131 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22132 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22133 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
22135 # Both c and cxx compiler support -rpath directly
22136 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22138 hardcode_libdir_separator_F77=:
22142 no_undefined_flag_F77=' -z text'
22143 if test "$GCC" = yes; then
22145 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22146 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22147 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22150 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22152 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22154 hardcode_libdir_flag_spec_F77='-R$libdir'
22155 hardcode_shlibpath_var_F77=no
22157 solaris2.[0-5] | solaris2.[0-5].*) ;;
22159 # The compiler driver will combine linker options so we
22160 # cannot just pass the convience library names through
22161 # without $wl, iff we do not link with $LD.
22162 # Luckily, gcc supports the same syntax we need for Sun Studio.
22163 # Supported since Solaris 2.6 (maybe 2.5.1?)
22166 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22168 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22171 link_all_deplibs_F77=yes
22175 if test "x$host_vendor" = xsequent; then
22176 # Use $CC to link under sequent, because it throws in some extra .o
22177 # files that make .init and .fini sections work.
22178 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22180 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22182 hardcode_libdir_flag_spec_F77='-L$libdir'
22183 hardcode_direct_F77=yes
22184 hardcode_minus_L_F77=yes
22185 hardcode_shlibpath_var_F77=no
22189 case $host_vendor in
22191 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22192 hardcode_direct_F77=yes # is this really true???
22195 ## LD is ld it makes a PLAMLIB
22196 ## CC just makes a GrossModule.
22197 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22198 reload_cmds_F77='$CC -r -o $output$reload_objs'
22199 hardcode_direct_F77=no
22202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22203 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22206 runpath_var='LD_RUN_PATH'
22207 hardcode_shlibpath_var_F77=no
22211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22212 hardcode_shlibpath_var_F77=no
22213 export_dynamic_flag_spec_F77='-Bexport'
22217 if test -d /usr/nec; then
22218 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22219 hardcode_shlibpath_var_F77=no
22220 runpath_var=LD_RUN_PATH
22221 hardcode_runpath_var=yes
22226 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22227 no_undefined_flag_F77='${wl}-z,text'
22228 archive_cmds_need_lc_F77=no
22229 hardcode_shlibpath_var_F77=no
22230 runpath_var='LD_RUN_PATH'
22232 if test "$GCC" = yes; then
22233 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22234 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22236 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22237 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22241 sysv5* | sco3.2v5* | sco5v6*)
22242 # Note: We can NOT use -z defs as we might desire, because we do not
22243 # link with -lc, and that would cause any symbols used from libc to
22244 # always be unresolved, which means just about no library would
22245 # ever link correctly. If we're not using GNU ld we use -z text
22246 # though, which does catch some bad symbols but isn't as heavy-handed
22248 no_undefined_flag_F77='${wl}-z,text'
22249 allow_undefined_flag_F77='${wl}-z,nodefs'
22250 archive_cmds_need_lc_F77=no
22251 hardcode_shlibpath_var_F77=no
22252 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22253 hardcode_libdir_separator_F77=':'
22254 link_all_deplibs_F77=yes
22255 export_dynamic_flag_spec_F77='${wl}-Bexport'
22256 runpath_var='LD_RUN_PATH'
22258 if test "$GCC" = yes; then
22259 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22260 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22262 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22263 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22268 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22269 hardcode_libdir_flag_spec_F77='-L$libdir'
22270 hardcode_shlibpath_var_F77=no
22279 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22280 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22281 test "$ld_shlibs_F77" = no && can_build_shared=no
22284 # Do we need to explicitly link libc?
22286 case "x$archive_cmds_need_lc_F77" in
22288 # Assume -lc should be added
22289 archive_cmds_need_lc_F77=yes
22291 if test "$enable_shared" = yes && test "$GCC" = yes; then
22292 case $archive_cmds_F77 in
22294 # FIXME: we may have to deal with multi-command sequences.
22297 # Test whether the compiler implicitly links with -lc since on some
22298 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22299 # to ld, don't add -lc before -lgcc.
22300 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22301 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22306 (eval $ac_compile) 2>&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } 2>conftest.err; then
22312 libobjs=conftest.$ac_objext
22314 wl=$lt_prog_compiler_wl_F77
22315 pic_flag=$lt_prog_compiler_pic_F77
22321 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22322 allow_undefined_flag_F77=
22323 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22324 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }
22329 archive_cmds_need_lc_F77=no
22331 archive_cmds_need_lc_F77=yes
22333 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22335 cat conftest.err 1>&5
22338 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22339 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22346 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22347 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22348 library_names_spec=
22349 libname_spec='lib$name'
22353 postuninstall_cmds=
22357 shlibpath_overrides_runpath=unknown
22359 dynamic_linker="$host_os ld.so"
22360 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22361 if test "$GCC" = yes; then
22362 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22363 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22364 # if the path contains ";" then we assume it to be the separator
22365 # otherwise default to the standard path separator (i.e. ":") - it is
22366 # assumed that no part of a normal pathname contains ";" but that should
22367 # okay in the real world where ";" in dirpaths is itself problematic.
22368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22373 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22375 need_lib_prefix=unknown
22376 hardcode_into_libs=no
22378 # when you set need_version to no, make sure it does not cause -set_version
22379 # flags to be left without arguments
22380 need_version=unknown
22385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22386 shlibpath_var=LIBPATH
22388 # AIX 3 has no versioning support, so we append a major version to the name.
22389 soname_spec='${libname}${release}${shared_ext}$major'
22396 hardcode_into_libs=yes
22397 if test "$host_cpu" = ia64; then
22398 # AIX 5 supports IA64
22399 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22400 shlibpath_var=LD_LIBRARY_PATH
22402 # With GCC up to 2.95.x, collect2 would create an import file
22403 # for dependence libraries. The import file would start with
22404 # the line `#! .'. This would cause the generated library to
22405 # depend on `.', always an invalid library. This was fixed in
22406 # development snapshots of GCC prior to 3.0.
22408 aix4 | aix4.[01] | aix4.[01].*)
22409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22411 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22414 can_build_shared=no
22418 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22419 # soname into executable. Probably we can add versioning support to
22420 # collect2, so additional links can be useful in future.
22421 if test "$aix_use_runtimelinking" = yes; then
22422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22423 # instead of lib<name>.a to let people know that these are not
22424 # typical AIX shared libraries.
22425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22427 # We preserve .a as extension for shared libraries through AIX4.2
22428 # and later when we are not doing run time linking.
22429 library_names_spec='${libname}${release}.a $libname.a'
22430 soname_spec='${libname}${release}${shared_ext}$major'
22432 shlibpath_var=LIBPATH
22437 library_names_spec='$libname.ixlibrary $libname.a'
22438 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22439 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
22443 library_names_spec='${libname}${shared_ext}'
22444 dynamic_linker="$host_os ld.so"
22445 shlibpath_var=LIBRARY_PATH
22451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22452 soname_spec='${libname}${release}${shared_ext}$major'
22453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22454 shlibpath_var=LD_LIBRARY_PATH
22455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22457 # the default ld.so.conf also contains /usr/contrib/lib and
22458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22459 # libtool to hard-code these into programs
22462 cygwin* | mingw* | pw32*)
22463 version_type=windows
22468 case $GCC,$host_os in
22469 yes,cygwin* | yes,mingw* | yes,pw32*)
22470 library_names_spec='$libname.dll.a'
22471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22472 postinstall_cmds='base_file=`basename \${file}`~
22473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22474 dldir=$destdir/`dirname \$dlpath`~
22475 test -d \$dldir || mkdir -p \$dldir~
22476 $install_prog $dir/$dlname \$dldir/$dlname~
22477 chmod a+x \$dldir/$dlname'
22478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22479 dlpath=$dir/\$dldll~
22481 shlibpath_overrides_runpath=yes
22485 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22486 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22487 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22490 # MinGW DLLs use traditional 'lib' prefix
22491 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22492 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22493 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22494 # It is most probably a Windows format PATH printed by
22495 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22496 # path with ; separators, and with drive letters. We can handle the
22497 # drive letters (cygwin fileutils understands them), so leave them,
22498 # especially as we might pass files found there to a mingw objdump,
22499 # which wouldn't understand a cygwinified path. Ahh.
22500 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22506 # pw32 DLLs use 'pw' prefix rather than 'lib'
22507 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22513 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22516 dynamic_linker='Win32 ld.exe'
22517 # FIXME: first we should search . and the directory the executable is in
22521 darwin* | rhapsody*)
22522 dynamic_linker="$host_os dyld"
22523 version_type=darwin
22526 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22527 soname_spec='${libname}${release}${major}$shared_ext'
22528 shlibpath_overrides_runpath=yes
22529 shlibpath_var=DYLD_LIBRARY_PATH
22530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22531 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22532 if test "$GCC" = yes; then
22533 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22535 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22545 soname_spec='${libname}${release}${shared_ext}$major'
22546 shlibpath_var=LD_LIBRARY_PATH
22557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22558 soname_spec='${libname}${release}${shared_ext}$major'
22559 shlibpath_var=LD_LIBRARY_PATH
22560 shlibpath_overrides_runpath=no
22561 hardcode_into_libs=yes
22562 dynamic_linker='GNU ld.so'
22565 freebsd* | dragonfly*)
22566 # DragonFly does not have aout. When/if they implement a new
22567 # versioning mechanism, adjust this.
22568 if test -x /usr/bin/objformat; then
22569 objformat=`/usr/bin/objformat`
22572 freebsd[123]*) objformat=aout ;;
22573 *) objformat=elf ;;
22576 version_type=freebsd-$objformat
22577 case $version_type in
22579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22584 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22588 shlibpath_var=LD_LIBRARY_PATH
22591 shlibpath_overrides_runpath=yes
22593 freebsd3.[01]* | freebsdelf3.[01]*)
22594 shlibpath_overrides_runpath=yes
22595 hardcode_into_libs=yes
22597 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22598 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22599 shlibpath_overrides_runpath=no
22600 hardcode_into_libs=yes
22602 freebsd*) # from 4.6 on
22603 shlibpath_overrides_runpath=yes
22604 hardcode_into_libs=yes
22613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22614 soname_spec='${libname}${release}${shared_ext}$major'
22615 shlibpath_var=LD_LIBRARY_PATH
22616 hardcode_into_libs=yes
22619 hpux9* | hpux10* | hpux11*)
22620 # Give a soname corresponding to the major version so that dld.sl refuses to
22621 # link against other versions.
22628 hardcode_into_libs=yes
22629 dynamic_linker="$host_os dld.so"
22630 shlibpath_var=LD_LIBRARY_PATH
22631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22633 soname_spec='${libname}${release}${shared_ext}$major'
22634 if test "X$HPUX_IA64_MODE" = X32; then
22635 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22637 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22643 hardcode_into_libs=yes
22644 dynamic_linker="$host_os dld.sl"
22645 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22649 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22654 dynamic_linker="$host_os dld.sl"
22655 shlibpath_var=SHLIB_PATH
22656 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22658 soname_spec='${libname}${release}${shared_ext}$major'
22661 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22662 postinstall_cmds='chmod 555 $lib'
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22670 soname_spec='${libname}${release}${shared_ext}$major'
22671 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22672 shlibpath_var=LD_LIBRARY_PATH
22673 shlibpath_overrides_runpath=no
22674 hardcode_into_libs=yes
22677 irix5* | irix6* | nonstopux*)
22679 nonstopux*) version_type=nonstopux ;;
22681 if test "$lt_cv_prog_gnu_ld" = yes; then
22689 soname_spec='${libname}${release}${shared_ext}$major'
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22692 irix5* | nonstopux*)
22693 libsuff= shlibsuff=
22696 case $LD in # libtool.m4 will add one of these switches to LD
22697 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22698 libsuff= shlibsuff= libmagic=32-bit;;
22699 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22700 libsuff=32 shlibsuff=N32 libmagic=N32;;
22701 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22702 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22703 *) libsuff= shlibsuff= libmagic=never-match;;
22707 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22708 shlibpath_overrides_runpath=no
22709 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22710 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22711 hardcode_into_libs=yes
22714 # No shared lib support for Linux oldld, aout, or coff.
22715 linux*oldld* | linux*aout* | linux*coff*)
22719 # This must be Linux ELF.
22724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22725 soname_spec='${libname}${release}${shared_ext}$major'
22726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22727 shlibpath_var=LD_LIBRARY_PATH
22728 shlibpath_overrides_runpath=no
22729 # This implies no fast_install, which is unacceptable.
22730 # Some rework will be needed to allow for fast_install
22731 # before this can be enabled.
22732 hardcode_into_libs=yes
22734 # Append ld.so.conf contents to the search path
22735 if test -f /etc/ld.so.conf; then
22736 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22737 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22740 # We used to test for /lib/ld.so.1 and disable shared libraries on
22741 # powerpc, because MkLinux only supported shared libraries with the
22742 # GNU dynamic linker. Since this was broken with cross compilers,
22743 # most powerpc-linux boxes support dynamic linking these days and
22744 # people can always --disable-shared, the test was removed, and we
22745 # assume the GNU/Linux dynamic linker is in use.
22746 dynamic_linker='GNU/Linux ld.so'
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22754 soname_spec='${libname}${release}${shared_ext}$major'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 shlibpath_overrides_runpath=no
22757 hardcode_into_libs=yes
22758 dynamic_linker='GNU ld.so'
22765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22768 dynamic_linker='NetBSD (a.out) ld.so'
22770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22771 soname_spec='${libname}${release}${shared_ext}$major'
22772 dynamic_linker='NetBSD ld.elf_so'
22774 shlibpath_var=LD_LIBRARY_PATH
22775 shlibpath_overrides_runpath=yes
22776 hardcode_into_libs=yes
22781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22782 shlibpath_var=LD_LIBRARY_PATH
22783 shlibpath_overrides_runpath=yes
22790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22791 soname_spec='${libname}${release}${shared_ext}$major'
22792 shlibpath_var=LD_LIBRARY_PATH
22793 shlibpath_overrides_runpath=yes
22798 sys_lib_dlsearch_path_spec="/usr/lib"
22800 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22802 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22803 *) need_version=no ;;
22805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22807 shlibpath_var=LD_LIBRARY_PATH
22808 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22810 openbsd2.[89] | openbsd2.[89].*)
22811 shlibpath_overrides_runpath=no
22814 shlibpath_overrides_runpath=yes
22818 shlibpath_overrides_runpath=yes
22823 libname_spec='$name'
22826 library_names_spec='$libname${shared_ext} $libname.a'
22827 dynamic_linker='OS/2 ld.exe'
22828 shlibpath_var=LIBPATH
22831 osf3* | osf4* | osf5*)
22835 soname_spec='${libname}${release}${shared_ext}$major'
22836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837 shlibpath_var=LD_LIBRARY_PATH
22838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22847 soname_spec='${libname}${release}${shared_ext}$major'
22848 shlibpath_var=LD_LIBRARY_PATH
22849 shlibpath_overrides_runpath=yes
22850 hardcode_into_libs=yes
22851 # ldd complains unless libraries are executable
22852 postinstall_cmds='chmod +x $lib'
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22859 shlibpath_var=LD_LIBRARY_PATH
22860 shlibpath_overrides_runpath=yes
22861 if test "$with_gnu_ld" = yes; then
22869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22870 soname_spec='${libname}${release}${shared_ext}$major'
22871 shlibpath_var=LD_LIBRARY_PATH
22872 case $host_vendor in
22874 shlibpath_overrides_runpath=no
22876 export_dynamic_flag_spec='${wl}-Blargedynsym'
22877 runpath_var=LD_RUN_PATH
22885 shlibpath_overrides_runpath=no
22886 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22892 if test -d /usr/nec ;then
22894 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22895 soname_spec='$libname${shared_ext}.$major'
22896 shlibpath_var=LD_LIBRARY_PATH
22900 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22901 version_type=freebsd-elf
22904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22905 soname_spec='${libname}${release}${shared_ext}$major'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 hardcode_into_libs=yes
22908 if test "$with_gnu_ld" = yes; then
22909 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22910 shlibpath_overrides_runpath=no
22912 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22913 shlibpath_overrides_runpath=yes
22916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22920 sys_lib_dlsearch_path_spec='/usr/lib'
22925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926 soname_spec='${libname}${release}${shared_ext}$major'
22927 shlibpath_var=LD_LIBRARY_PATH
22934 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22935 echo "${ECHO_T}$dynamic_linker" >&6; }
22936 test "$dynamic_linker" = no && can_build_shared=no
22938 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22939 if test "$GCC" = yes; then
22940 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22943 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22944 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22945 hardcode_action_F77=
22946 if test -n "$hardcode_libdir_flag_spec_F77" || \
22947 test -n "$runpath_var_F77" || \
22948 test "X$hardcode_automatic_F77" = "Xyes" ; then
22950 # We can hardcode non-existant directories.
22951 if test "$hardcode_direct_F77" != no &&
22952 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22953 # have to relink, otherwise we might link with an installed library
22954 # when we should be linking with a yet-to-be-installed one
22955 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22956 test "$hardcode_minus_L_F77" != no; then
22957 # Linking always hardcodes the temporary library directory.
22958 hardcode_action_F77=relink
22960 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22961 hardcode_action_F77=immediate
22964 # We cannot hardcode anything, or else we can only hardcode existing
22966 hardcode_action_F77=unsupported
22968 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22969 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22971 if test "$hardcode_action_F77" = relink; then
22972 # Fast installation is not supported
22973 enable_fast_install=no
22974 elif test "$shlibpath_overrides_runpath" = yes ||
22975 test "$enable_shared" = no; then
22976 # Fast installation is not necessary
22977 enable_fast_install=needless
22981 # The else clause should only fire when bootstrapping the
22982 # libtool distribution, otherwise you forgot to ship ltmain.sh
22983 # with your package, and you will get complaints that there are
22984 # no rules to generate ltmain.sh.
22985 if test -f "$ltmain"; then
22986 # See if we are running on zsh, and set the options which allow our commands through
22987 # without removal of \ escapes.
22988 if test -n "${ZSH_VERSION+set}" ; then
22989 setopt NO_GLOB_SUBST
22991 # Now quote all the things that may contain metacharacters while being
22992 # careful not to overquote the AC_SUBSTed values. We take copies of the
22993 # variables and quote the copies for generation of the libtool script.
22994 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22996 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22997 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22998 deplibs_check_method reload_flag reload_cmds need_locks \
22999 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23000 lt_cv_sys_global_symbol_to_c_name_address \
23001 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23002 old_postinstall_cmds old_postuninstall_cmds \
23006 lt_prog_compiler_wl_F77 \
23007 lt_prog_compiler_pic_F77 \
23008 lt_prog_compiler_static_F77 \
23009 lt_prog_compiler_no_builtin_flag_F77 \
23010 export_dynamic_flag_spec_F77 \
23011 thread_safe_flag_spec_F77 \
23012 whole_archive_flag_spec_F77 \
23013 enable_shared_with_static_runtimes_F77 \
23014 old_archive_cmds_F77 \
23015 old_archive_from_new_cmds_F77 \
23016 predep_objects_F77 \
23017 postdep_objects_F77 \
23020 compiler_lib_search_path_F77 \
23022 archive_expsym_cmds_F77 \
23023 postinstall_cmds_F77 \
23024 postuninstall_cmds_F77 \
23025 old_archive_from_expsyms_cmds_F77 \
23026 allow_undefined_flag_F77 \
23027 no_undefined_flag_F77 \
23028 export_symbols_cmds_F77 \
23029 hardcode_libdir_flag_spec_F77 \
23030 hardcode_libdir_flag_spec_ld_F77 \
23031 hardcode_libdir_separator_F77 \
23032 hardcode_automatic_F77 \
23034 module_expsym_cmds_F77 \
23035 lt_cv_prog_compiler_c_o_F77 \
23036 exclude_expsyms_F77 \
23037 include_expsyms_F77; do
23040 old_archive_cmds_F77 | \
23041 old_archive_from_new_cmds_F77 | \
23042 archive_cmds_F77 | \
23043 archive_expsym_cmds_F77 | \
23044 module_cmds_F77 | \
23045 module_expsym_cmds_F77 | \
23046 old_archive_from_expsyms_cmds_F77 | \
23047 export_symbols_cmds_F77 | \
23048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23049 postinstall_cmds | postuninstall_cmds | \
23050 old_postinstall_cmds | old_postuninstall_cmds | \
23051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23052 # Double-quote double-evaled strings.
23053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23062 *'\$0 --fallback-echo"')
23063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23069 cat <<__EOF__ >> "$cfgfile"
23070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23074 # Shell to use when invoking shell scripts.
23077 # Whether or not to build shared libraries.
23078 build_libtool_libs=$enable_shared
23080 # Whether or not to build static libraries.
23081 build_old_libs=$enable_static
23083 # Whether or not to add -lc for building shared libraries.
23084 build_libtool_need_lc=$archive_cmds_need_lc_F77
23086 # Whether or not to disallow shared libs when runtime libs are static
23087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23089 # Whether or not to optimize for fast installation.
23090 fast_install=$enable_fast_install
23093 host_alias=$host_alias
23097 # The build system.
23098 build_alias=$build_alias
23102 # An echo program that does not interpret backslashes.
23107 AR_FLAGS=$lt_AR_FLAGS
23112 # LTCC compiler flags.
23113 LTCFLAGS=$lt_LTCFLAGS
23115 # A language-specific compiler.
23116 CC=$lt_compiler_F77
23118 # Is the compiler the GNU C compiler?
23124 # The linker used to build libraries.
23127 # Whether we need hard or soft links.
23130 # A BSD-compatible nm program.
23133 # A symbol stripping program
23136 # Used to examine libraries when file_magic_cmd begins "file"
23137 MAGIC_CMD=$MAGIC_CMD
23139 # Used on cygwin: DLL creation program.
23142 # Used on cygwin: object dumper.
23145 # Used on cygwin: assembler.
23148 # The name of the directory that contains temporary libtool files.
23151 # How to create reloadable object files.
23152 reload_flag=$lt_reload_flag
23153 reload_cmds=$lt_reload_cmds
23155 # How to pass a linker flag through the compiler.
23156 wl=$lt_lt_prog_compiler_wl_F77
23158 # Object file suffix (normally "o").
23159 objext="$ac_objext"
23161 # Old archive suffix (normally "a").
23164 # Shared library suffix (normally ".so").
23165 shrext_cmds='$shrext_cmds'
23167 # Executable file suffix (normally "").
23170 # Additional compiler flags for building library objects.
23171 pic_flag=$lt_lt_prog_compiler_pic_F77
23174 # What is the maximum length of a command?
23175 max_cmd_len=$lt_cv_sys_max_cmd_len
23177 # Does compiler simultaneously support -c and -o options?
23178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23180 # Must we lock files when doing compilation?
23181 need_locks=$lt_need_locks
23183 # Do we need the lib prefix for modules?
23184 need_lib_prefix=$need_lib_prefix
23186 # Do we need a version for libraries?
23187 need_version=$need_version
23189 # Whether dlopen is supported.
23190 dlopen_support=$enable_dlopen
23192 # Whether dlopen of programs is supported.
23193 dlopen_self=$enable_dlopen_self
23195 # Whether dlopen of statically linked programs is supported.
23196 dlopen_self_static=$enable_dlopen_self_static
23198 # Compiler flag to prevent dynamic linking.
23199 link_static_flag=$lt_lt_prog_compiler_static_F77
23201 # Compiler flag to turn off builtin functions.
23202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23204 # Compiler flag to allow reflexive dlopens.
23205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23207 # Compiler flag to generate shared objects directly from archives.
23208 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23210 # Compiler flag to generate thread-safe objects.
23211 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23213 # Library versioning type.
23214 version_type=$version_type
23216 # Format of library name prefix.
23217 libname_spec=$lt_libname_spec
23219 # List of archive names. First name is the real one, the rest are links.
23220 # The last name is the one that the linker finds with -lNAME.
23221 library_names_spec=$lt_library_names_spec
23223 # The coded name of the library, if different from the real name.
23224 soname_spec=$lt_soname_spec
23226 # Commands used to build and install an old-style archive.
23228 old_archive_cmds=$lt_old_archive_cmds_F77
23229 old_postinstall_cmds=$lt_old_postinstall_cmds
23230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23232 # Create an old-style archive from a shared archive.
23233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23235 # Create a temporary old-style archive to link instead of a shared archive.
23236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23238 # Commands used to build and install a shared archive.
23239 archive_cmds=$lt_archive_cmds_F77
23240 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23241 postinstall_cmds=$lt_postinstall_cmds
23242 postuninstall_cmds=$lt_postuninstall_cmds
23244 # Commands used to build a loadable module (assumed same as above if empty)
23245 module_cmds=$lt_module_cmds_F77
23246 module_expsym_cmds=$lt_module_expsym_cmds_F77
23248 # Commands to strip libraries.
23249 old_striplib=$lt_old_striplib
23250 striplib=$lt_striplib
23252 # Dependencies to place before the objects being linked to create a
23254 predep_objects=$lt_predep_objects_F77
23256 # Dependencies to place after the objects being linked to create a
23258 postdep_objects=$lt_postdep_objects_F77
23260 # Dependencies to place before the objects being linked to create a
23262 predeps=$lt_predeps_F77
23264 # Dependencies to place after the objects being linked to create a
23266 postdeps=$lt_postdeps_F77
23268 # The library search path used internally by the compiler when linking
23269 # a shared library.
23270 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23272 # Method to check whether dependent libraries are shared objects.
23273 deplibs_check_method=$lt_deplibs_check_method
23275 # Command to use when deplibs_check_method == file_magic.
23276 file_magic_cmd=$lt_file_magic_cmd
23278 # Flag that allows shared libraries with undefined symbols to be built.
23279 allow_undefined_flag=$lt_allow_undefined_flag_F77
23281 # Flag that forces no undefined symbols.
23282 no_undefined_flag=$lt_no_undefined_flag_F77
23284 # Commands used to finish a libtool library installation in a directory.
23285 finish_cmds=$lt_finish_cmds
23287 # Same as above, but a single script fragment to be evaled but not shown.
23288 finish_eval=$lt_finish_eval
23290 # Take the output of nm and produce a listing of raw symbols and C names.
23291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23293 # Transform the output of nm in a proper C declaration
23294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23296 # Transform the output of nm in a C name address pair
23297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23299 # This is the shared library runtime path variable.
23300 runpath_var=$runpath_var
23302 # This is the shared library path variable.
23303 shlibpath_var=$shlibpath_var
23305 # Is shlibpath searched before the hard-coded library search path?
23306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23308 # How to hardcode a shared library path into an executable.
23309 hardcode_action=$hardcode_action_F77
23311 # Whether we should hardcode library paths into libraries.
23312 hardcode_into_libs=$hardcode_into_libs
23314 # Flag to hardcode \$libdir into a binary during linking.
23315 # This must work even if \$libdir does not exist.
23316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23318 # If ld is used when linking, flag to hardcode \$libdir into
23319 # a binary during linking. This must work even if \$libdir does
23321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23323 # Whether we need a single -rpath flag with a separated argument.
23324 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23326 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23327 # resulting binary.
23328 hardcode_direct=$hardcode_direct_F77
23330 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23331 # resulting binary.
23332 hardcode_minus_L=$hardcode_minus_L_F77
23334 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23335 # the resulting binary.
23336 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23338 # Set to yes if building a shared library automatically hardcodes DIR into the library
23339 # and all subsequent libraries and executables linked against it.
23340 hardcode_automatic=$hardcode_automatic_F77
23342 # Variables whose values should be saved in libtool wrapper scripts and
23343 # restored at relink time.
23344 variables_saved_for_relink="$variables_saved_for_relink"
23346 # Whether libtool must link a program against all its dependency libraries.
23347 link_all_deplibs=$link_all_deplibs_F77
23349 # Compile-time system search path for libraries
23350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23352 # Run-time system search path for libraries
23353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23355 # Fix the shell variable \$srcfile for the compiler.
23356 fix_srcfile_path="$fix_srcfile_path_F77"
23358 # Set to yes if exported symbols are required.
23359 always_export_symbols=$always_export_symbols_F77
23361 # The commands to list exported symbols.
23362 export_symbols_cmds=$lt_export_symbols_cmds_F77
23364 # The commands to extract the exported symbol list from a shared archive.
23365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23367 # Symbols that should not be listed in the preloaded symbols.
23368 exclude_expsyms=$lt_exclude_expsyms_F77
23370 # Symbols that must always be exported.
23371 include_expsyms=$lt_include_expsyms_F77
23373 # ### END LIBTOOL TAG CONFIG: $tagname
23379 # If there is no Makefile yet, we rely on a make rule to execute
23380 # `config.status --recheck' to rerun these tests and create the
23381 # libtool script then.
23382 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23383 if test -f "$ltmain_in"; then
23384 test -f Makefile && make "$ltmain"
23390 ac_cpp='$CPP $CPPFLAGS'
23391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23403 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23405 ac_cpp='$CPP $CPPFLAGS'
23406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23411 # Source file extension for Java test sources.
23414 # Object file extension for compiled Java test sources.
23418 # Code to be used in simple compile tests
23419 lt_simple_compile_test_code="class foo {}\n"
23421 # Code to be used in simple link tests
23422 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23424 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23426 # If no C compiler was specified, use CC.
23429 # If no C compiler flags were specified, use CFLAGS.
23430 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23432 # Allow CC to be a program name with arguments.
23436 # save warnings/boilerplate of simple test code
23437 ac_outfile=conftest.$ac_objext
23438 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23439 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23440 _lt_compiler_boilerplate=`cat conftest.err`
23443 ac_outfile=conftest.$ac_objext
23444 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23445 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23446 _lt_linker_boilerplate=`cat conftest.err`
23450 # Allow CC to be a program name with arguments.
23455 for cc_temp in $compiler""; do
23457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23463 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23466 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23467 archive_cmds_need_lc_GCJ=no
23469 old_archive_cmds_GCJ=$old_archive_cmds
23472 lt_prog_compiler_no_builtin_flag_GCJ=
23474 if test "$GCC" = yes; then
23475 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23478 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23479 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23480 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23483 lt_cv_prog_compiler_rtti_exceptions=no
23484 ac_outfile=conftest.$ac_objext
23485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23486 lt_compiler_flag="-fno-rtti -fno-exceptions"
23487 # Insert the option either (1) after the last *FLAGS variable, or
23488 # (2) before a word containing "conftest.", or (3) at the end.
23489 # Note that $ac_compile itself does not contain backslashes and begins
23490 # with a dollar sign (not a hyphen), so the echo should work correctly.
23491 # The option is referenced via a variable to avoid confusing sed.
23492 lt_compile=`echo "$ac_compile" | $SED \
23493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23495 -e 's:$: $lt_compiler_flag:'`
23496 (eval echo "\"\$as_me:23496: $lt_compile\"" >&5)
23497 (eval "$lt_compile" 2>conftest.err)
23499 cat conftest.err >&5
23500 echo "$as_me:23500: \$? = $ac_status" >&5
23501 if (exit $ac_status) && test -s "$ac_outfile"; then
23502 # The compiler can only warn and ignore the option if not recognized
23503 # So say no if there are warnings other than the usual output.
23504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23507 lt_cv_prog_compiler_rtti_exceptions=yes
23513 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23514 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23516 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23517 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23524 lt_prog_compiler_wl_GCJ=
23525 lt_prog_compiler_pic_GCJ=
23526 lt_prog_compiler_static_GCJ=
23528 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23531 if test "$GCC" = yes; then
23532 lt_prog_compiler_wl_GCJ='-Wl,'
23533 lt_prog_compiler_static_GCJ='-static'
23537 # All AIX code is PIC.
23538 if test "$host_cpu" = ia64; then
23539 # AIX 5 now supports IA64 processor
23540 lt_prog_compiler_static_GCJ='-Bstatic'
23545 # FIXME: we need at least 68020 code to build shared libraries, but
23546 # adding the `-m68020' flag to GCC prevents building anything better,
23548 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23552 # PIC is the default for these OSes.
23555 mingw* | pw32* | os2*)
23556 # This hack is so that the source file can tell whether it is being
23557 # built for inclusion in a dll (and should export symbols for example).
23558 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23561 darwin* | rhapsody*)
23562 # PIC is the default on this platform
23563 # Common symbols not allowed in MH_DYLIB files
23564 lt_prog_compiler_pic_GCJ='-fno-common'
23568 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23569 # Instead, we relocate shared libraries at runtime.
23573 # Just because we use GCC doesn't mean we suddenly get shared libraries
23574 # on systems that don't support them.
23575 lt_prog_compiler_can_build_shared_GCJ=no
23580 if test -d /usr/nec; then
23581 lt_prog_compiler_pic_GCJ=-Kconform_pic
23586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23587 # not for PA HP-UX.
23593 lt_prog_compiler_pic_GCJ='-fPIC'
23599 lt_prog_compiler_pic_GCJ='-fPIC'
23603 # PORTME Check for flag to pass linker flags through the system compiler.
23606 lt_prog_compiler_wl_GCJ='-Wl,'
23607 if test "$host_cpu" = ia64; then
23608 # AIX 5 now supports IA64 processor
23609 lt_prog_compiler_static_GCJ='-Bstatic'
23611 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23615 # PIC is the default on this platform
23616 # Common symbols not allowed in MH_DYLIB files
23617 case $cc_basename in
23619 lt_prog_compiler_pic_GCJ='-qnocommon'
23620 lt_prog_compiler_wl_GCJ='-Wl,'
23625 mingw* | pw32* | os2*)
23626 # This hack is so that the source file can tell whether it is being
23627 # built for inclusion in a dll (and should export symbols for example).
23628 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23631 hpux9* | hpux10* | hpux11*)
23632 lt_prog_compiler_wl_GCJ='-Wl,'
23633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23634 # not for PA HP-UX.
23640 lt_prog_compiler_pic_GCJ='+Z'
23643 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23644 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23647 irix5* | irix6* | nonstopux*)
23648 lt_prog_compiler_wl_GCJ='-Wl,'
23649 # PIC (with -KPIC) is the default.
23650 lt_prog_compiler_static_GCJ='-non_shared'
23654 lt_prog_compiler_pic_GCJ='-KPIC'
23655 lt_prog_compiler_static_GCJ='-Bstatic'
23659 case $cc_basename in
23661 lt_prog_compiler_wl_GCJ='-Wl,'
23662 lt_prog_compiler_pic_GCJ='-KPIC'
23663 lt_prog_compiler_static_GCJ='-static'
23665 pgcc* | pgf77* | pgf90* | pgf95*)
23666 # Portland Group compilers (*not* the Pentium gcc compiler,
23667 # which looks to be a dead project)
23668 lt_prog_compiler_wl_GCJ='-Wl,'
23669 lt_prog_compiler_pic_GCJ='-fpic'
23670 lt_prog_compiler_static_GCJ='-Bstatic'
23673 lt_prog_compiler_wl_GCJ='-Wl,'
23674 # All Alpha code is PIC.
23675 lt_prog_compiler_static_GCJ='-non_shared'
23680 osf3* | osf4* | osf5*)
23681 lt_prog_compiler_wl_GCJ='-Wl,'
23682 # All OSF/1 code is PIC.
23683 lt_prog_compiler_static_GCJ='-non_shared'
23687 lt_prog_compiler_pic_GCJ='-KPIC'
23688 lt_prog_compiler_static_GCJ='-Bstatic'
23689 case $cc_basename in
23690 f77* | f90* | f95*)
23691 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23693 lt_prog_compiler_wl_GCJ='-Wl,';;
23698 lt_prog_compiler_wl_GCJ='-Qoption ld '
23699 lt_prog_compiler_pic_GCJ='-PIC'
23700 lt_prog_compiler_static_GCJ='-Bstatic'
23703 sysv4 | sysv4.2uw2* | sysv4.3*)
23704 lt_prog_compiler_wl_GCJ='-Wl,'
23705 lt_prog_compiler_pic_GCJ='-KPIC'
23706 lt_prog_compiler_static_GCJ='-Bstatic'
23710 if test -d /usr/nec ;then
23711 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23712 lt_prog_compiler_static_GCJ='-Bstatic'
23716 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23717 lt_prog_compiler_wl_GCJ='-Wl,'
23718 lt_prog_compiler_pic_GCJ='-KPIC'
23719 lt_prog_compiler_static_GCJ='-Bstatic'
23723 lt_prog_compiler_wl_GCJ='-Wl,'
23724 lt_prog_compiler_can_build_shared_GCJ=no
23728 lt_prog_compiler_pic_GCJ='-pic'
23729 lt_prog_compiler_static_GCJ='-Bstatic'
23733 lt_prog_compiler_can_build_shared_GCJ=no
23738 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23739 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23742 # Check to make sure the PIC flag actually works.
23744 if test -n "$lt_prog_compiler_pic_GCJ"; then
23746 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23748 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23751 lt_prog_compiler_pic_works_GCJ=no
23752 ac_outfile=conftest.$ac_objext
23753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23754 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23755 # Insert the option either (1) after the last *FLAGS variable, or
23756 # (2) before a word containing "conftest.", or (3) at the end.
23757 # Note that $ac_compile itself does not contain backslashes and begins
23758 # with a dollar sign (not a hyphen), so the echo should work correctly.
23759 # The option is referenced via a variable to avoid confusing sed.
23760 lt_compile=`echo "$ac_compile" | $SED \
23761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23763 -e 's:$: $lt_compiler_flag:'`
23764 (eval echo "\"\$as_me:23764: $lt_compile\"" >&5)
23765 (eval "$lt_compile" 2>conftest.err)
23767 cat conftest.err >&5
23768 echo "$as_me:23768: \$? = $ac_status" >&5
23769 if (exit $ac_status) && test -s "$ac_outfile"; then
23770 # The compiler can only warn and ignore the option if not recognized
23771 # So say no if there are warnings other than the usual output.
23772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23775 lt_prog_compiler_pic_works_GCJ=yes
23781 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23782 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23784 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23785 case $lt_prog_compiler_pic_GCJ in
23787 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23790 lt_prog_compiler_pic_GCJ=
23791 lt_prog_compiler_can_build_shared_GCJ=no
23796 # For platforms which do not support PIC, -DPIC is meaningless:
23798 lt_prog_compiler_pic_GCJ=
23801 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23806 # Check to make sure the static flag actually works.
23808 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23809 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23810 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23811 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23814 lt_prog_compiler_static_works_GCJ=no
23815 save_LDFLAGS="$LDFLAGS"
23816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23817 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23819 # The linker can only warn and ignore the option if not recognized
23820 # So say no if there are warnings
23821 if test -s conftest.err; then
23822 # Append any errors to the config.log.
23823 cat conftest.err 1>&5
23824 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23826 if diff conftest.exp conftest.er2 >/dev/null; then
23827 lt_prog_compiler_static_works_GCJ=yes
23830 lt_prog_compiler_static_works_GCJ=yes
23834 LDFLAGS="$save_LDFLAGS"
23837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23838 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23840 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23843 lt_prog_compiler_static_GCJ=
23847 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23849 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23852 lt_cv_prog_compiler_c_o_GCJ=no
23853 $rm -r conftest 2>/dev/null
23857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23859 lt_compiler_flag="-o out/conftest2.$ac_objext"
23860 # Insert the option either (1) after the last *FLAGS variable, or
23861 # (2) before a word containing "conftest.", or (3) at the end.
23862 # Note that $ac_compile itself does not contain backslashes and begins
23863 # with a dollar sign (not a hyphen), so the echo should work correctly.
23864 lt_compile=`echo "$ac_compile" | $SED \
23865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23867 -e 's:$: $lt_compiler_flag:'`
23868 (eval echo "\"\$as_me:23868: $lt_compile\"" >&5)
23869 (eval "$lt_compile" 2>out/conftest.err)
23871 cat out/conftest.err >&5
23872 echo "$as_me:23872: \$? = $ac_status" >&5
23873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23875 # The compiler can only warn and ignore the option if not recognized
23876 # So say no if there are warnings
23877 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23880 lt_cv_prog_compiler_c_o_GCJ=yes
23885 # SGI C++ compiler will create directory out/ii_files/ for
23886 # template instantiation
23887 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23888 $rm out/* && rmdir out
23894 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23895 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23898 hard_links="nottested"
23899 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23900 # do not overwrite the value of need_locks provided by the user
23901 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23907 ln conftest.a conftest.b 2>&5 || hard_links=no
23908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23909 { echo "$as_me:$LINENO: result: $hard_links" >&5
23910 echo "${ECHO_T}$hard_links" >&6; }
23911 if test "$hard_links" = no; then
23912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23920 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23921 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23924 allow_undefined_flag_GCJ=
23925 enable_shared_with_static_runtimes_GCJ=no
23927 archive_expsym_cmds_GCJ=
23928 old_archive_From_new_cmds_GCJ=
23929 old_archive_from_expsyms_cmds_GCJ=
23930 export_dynamic_flag_spec_GCJ=
23931 whole_archive_flag_spec_GCJ=
23932 thread_safe_flag_spec_GCJ=
23933 hardcode_libdir_flag_spec_GCJ=
23934 hardcode_libdir_flag_spec_ld_GCJ=
23935 hardcode_libdir_separator_GCJ=
23936 hardcode_direct_GCJ=no
23937 hardcode_minus_L_GCJ=no
23938 hardcode_shlibpath_var_GCJ=unsupported
23939 link_all_deplibs_GCJ=unknown
23940 hardcode_automatic_GCJ=no
23942 module_expsym_cmds_GCJ=
23943 always_export_symbols_GCJ=no
23944 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23945 # include_expsyms should be a list of space-separated symbols to be *always*
23946 # included in the symbol list
23947 include_expsyms_GCJ=
23948 # exclude_expsyms can be an extended regexp of symbols to exclude
23949 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23950 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23951 # as well as any symbol that contains `d'.
23952 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23953 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23954 # platforms (ab)use it in PIC code, but their linkers get confused if
23955 # the symbol is explicitly referenced. Since portable code cannot
23956 # rely on this symbol name, it's probably fine to never include it in
23957 # preloaded symbol tables.
23958 extract_expsyms_cmds=
23959 # Just being paranoid about ensuring that cc_basename is set.
23960 for cc_temp in $compiler""; do
23962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23971 cygwin* | mingw* | pw32*)
23972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23973 # When not using gcc, we currently assume that we are using
23974 # Microsoft Visual C++.
23975 if test "$GCC" != yes; then
23980 # we just hope/assume this is gcc and not c89 (= MSVC++)
23989 if test "$with_gnu_ld" = yes; then
23990 # If archive_cmds runs LD, not CC, wlarc should be empty
23993 # Set some defaults for GNU ld with shared library support. These
23994 # are reset later if shared libraries are not supported. Putting them
23995 # here allows them to be overridden if necessary.
23996 runpath_var=LD_RUN_PATH
23997 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23998 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23999 # ancient GNU ld didn't support --whole-archive et. al.
24000 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24001 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24003 whole_archive_flag_spec_GCJ=
24005 supports_anon_versioning=no
24006 case `$LD -v 2>/dev/null` in
24007 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24008 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24009 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24010 *\ 2.11.*) ;; # other 2.11 versions
24011 *) supports_anon_versioning=yes ;;
24014 # See if GNU ld supports shared libraries.
24016 aix3* | aix4* | aix5*)
24017 # On AIX/PPC, the GNU linker is very broken
24018 if test "$host_cpu" != ia64; then
24022 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24023 *** to be unable to reliably create shared libraries on AIX.
24024 *** Therefore, libtool is disabling shared libraries support. If you
24025 *** really care for shared libraries, you may want to modify your PATH
24026 *** so that a non-GNU linker is found, and then restart.
24033 archive_cmds_GCJ='$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)'
24034 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24035 hardcode_minus_L_GCJ=yes
24037 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24038 # that the semantics of dynamic libraries on AmigaOS, at least up
24039 # to version 4, is to share data among multiple programs linked
24040 # with the same dynamic library. Since this doesn't match the
24041 # behavior of shared libraries on other platforms, we can't use
24047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24048 allow_undefined_flag_GCJ=unsupported
24049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24050 # support --undefined. This deserves some investigation. FIXME
24051 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24057 cygwin* | mingw* | pw32*)
24058 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24059 # as there is no search path for DLLs.
24060 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24061 allow_undefined_flag_GCJ=unsupported
24062 always_export_symbols_GCJ=no
24063 enable_shared_with_static_runtimes_GCJ=yes
24064 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24066 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24067 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24068 # If the export-symbols file already is a .def file (1st line
24069 # is EXPORTS), use it as is; otherwise, prepend...
24070 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24071 cp $export_symbols $output_objdir/$soname.def;
24073 echo EXPORTS > $output_objdir/$soname.def;
24074 cat $export_symbols >> $output_objdir/$soname.def;
24076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24083 hardcode_direct_GCJ=no
24084 hardcode_shlibpath_var_GCJ=no
24085 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24086 export_dynamic_flag_spec_GCJ='${wl}-E'
24087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24088 # Instead, shared libraries are loaded at an image base (0x10000000 by
24089 # default) and relocated if they conflict, which is a slow very memory
24090 # consuming and fragmenting process. To avoid this, we pick a random,
24091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24093 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24094 archive_expsym_cmds_GCJ='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'
24098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24100 case $cc_basename,$host_cpu in
24101 pgcc*) # Portland Group C compiler
24102 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24103 tmp_addflag=' $pic_flag'
24105 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24106 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24107 tmp_addflag=' $pic_flag -Mnomain' ;;
24108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24109 tmp_addflag=' -i_dynamic' ;;
24110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24111 tmp_addflag=' -i_dynamic -nofor_main' ;;
24112 ifc* | ifort*) # Intel Fortran compiler
24113 tmp_addflag=' -nofor_main' ;;
24115 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24117 if test $supports_anon_versioning = yes; then
24118 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24120 $echo "local: *; };" >> $output_objdir/$libname.ver~
24121 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24130 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24133 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24134 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24139 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24143 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24144 *** create shared libraries on Solaris systems. Therefore, libtool
24145 *** is disabling shared libraries support. We urge you to upgrade GNU
24146 *** binutils to release 2.9.1 or newer. Another option is to modify
24147 *** your PATH or compiler configuration so that the native linker is
24148 *** used, and then restart.
24151 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24152 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24153 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24160 case `$LD -v 2>&1` in
24161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24165 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24166 *** reliably create shared libraries on SCO systems. Therefore, libtool
24167 *** is disabling shared libraries support. We urge you to upgrade GNU
24168 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24169 *** your PATH or compiler configuration so that the native linker is
24170 *** used, and then restart.
24175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24176 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24178 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24187 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24189 hardcode_direct_GCJ=yes
24190 hardcode_shlibpath_var_GCJ=no
24194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24195 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24196 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24203 if test "$ld_shlibs_GCJ" = no; then
24205 hardcode_libdir_flag_spec_GCJ=
24206 export_dynamic_flag_spec_GCJ=
24207 whole_archive_flag_spec_GCJ=
24210 # PORTME fill in a description of your system's linker (not GNU ld)
24213 allow_undefined_flag_GCJ=unsupported
24214 always_export_symbols_GCJ=yes
24215 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
24216 # Note: this linker hardcodes the directories in LIBPATH if there
24217 # are no directories specified by -L.
24218 hardcode_minus_L_GCJ=yes
24219 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24220 # Neither direct hardcoding nor static linking is supported with a
24222 hardcode_direct_GCJ=unsupported
24227 if test "$host_cpu" = ia64; then
24228 # On IA64, the linker does run time linking by default, so we don't
24229 # have to do anything special.
24230 aix_use_runtimelinking=no
24231 exp_sym_flag='-Bexport'
24234 # If we're using GNU nm, then we don't want the "-C" option.
24235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24237 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24239 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24241 aix_use_runtimelinking=no
24243 # Test if we are trying to use run time linking or normal
24244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24245 # need to do runtime linking.
24246 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24247 for ld_flag in $LDFLAGS; do
24248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24249 aix_use_runtimelinking=yes
24256 exp_sym_flag='-bexport'
24257 no_entry_flag='-bnoentry'
24260 # When large executables or shared objects are built, AIX ld can
24261 # have problems creating the table of contents. If linking a library
24262 # or program results in "error TOC overflow" add -mminimal-toc to
24263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24266 archive_cmds_GCJ=''
24267 hardcode_direct_GCJ=yes
24268 hardcode_libdir_separator_GCJ=':'
24269 link_all_deplibs_GCJ=yes
24271 if test "$GCC" = yes; then
24272 case $host_os in aix4.[012]|aix4.[012].*)
24273 # We only want to do this on AIX 4.2 and lower, the check
24274 # below for broken collect2 doesn't work under 4.3+
24275 collect2name=`${CC} -print-prog-name=collect2`
24276 if test -f "$collect2name" && \
24277 strings "$collect2name" | grep resolve_lib_name >/dev/null
24279 # We have reworked collect2
24280 hardcode_direct_GCJ=yes
24282 # We have old collect2
24283 hardcode_direct_GCJ=unsupported
24284 # It fails to find uninstalled libraries when the uninstalled
24285 # path is not listed in the libpath. Setting hardcode_minus_L
24286 # to unsupported forces relinking
24287 hardcode_minus_L_GCJ=yes
24288 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24289 hardcode_libdir_separator_GCJ=
24293 shared_flag='-shared'
24294 if test "$aix_use_runtimelinking" = yes; then
24295 shared_flag="$shared_flag "'${wl}-G'
24299 if test "$host_cpu" = ia64; then
24300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24301 # chokes on -Wl,-G. The following line is correct:
24304 if test "$aix_use_runtimelinking" = yes; then
24305 shared_flag='${wl}-G'
24307 shared_flag='${wl}-bM:SRE'
24312 # It seems that -bexpall does not export symbols beginning with
24313 # underscore (_), so it is better to generate a list of symbols to export.
24314 always_export_symbols_GCJ=yes
24315 if test "$aix_use_runtimelinking" = yes; then
24316 # Warning - without using the other runtime loading flags (-brtl),
24317 # -berok will link without error, but may produce a broken library.
24318 allow_undefined_flag_GCJ='-berok'
24319 # Determine the default libpath from the value encoded in an empty executable.
24320 cat >conftest.$ac_ext <<_ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24335 rm -f conftest.$ac_objext conftest$ac_exeext
24336 if { (ac_try="$ac_link"
24337 case "(($ac_try" in
24338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339 *) ac_try_echo=$ac_try;;
24341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342 (eval "$ac_link") 2>conftest.er1
24344 grep -v '^ *+' conftest.er1 >conftest.err
24346 cat conftest.err >&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); } &&
24349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24350 { (case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355 (eval "$ac_try") 2>&5
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; } &&
24359 { ac_try='test -s conftest$ac_exeext'
24360 { (case "(($ac_try" in
24361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362 *) ac_try_echo=$ac_try;;
24364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24365 (eval "$ac_try") 2>&5
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; }; then
24370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24372 # Check for a 64-bit object if we didn't find anything.
24373 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24376 echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24382 rm -f core conftest.err conftest.$ac_objext \
24383 conftest$ac_exeext conftest.$ac_ext
24384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24386 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24387 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24389 if test "$host_cpu" = ia64; then
24390 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24391 allow_undefined_flag_GCJ="-z nodefs"
24392 archive_expsym_cmds_GCJ="\$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"
24394 # Determine the default libpath from the value encoded in an empty executable.
24395 cat >conftest.$ac_ext <<_ACEOF
24398 cat confdefs.h >>conftest.$ac_ext
24399 cat >>conftest.$ac_ext <<_ACEOF
24400 /* end confdefs.h. */
24410 rm -f conftest.$ac_objext conftest$ac_exeext
24411 if { (ac_try="$ac_link"
24412 case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417 (eval "$ac_link") 2>conftest.er1
24419 grep -v '^ *+' conftest.er1 >conftest.err
24421 cat conftest.err >&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } &&
24424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24425 { (case "(($ac_try" in
24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427 *) ac_try_echo=$ac_try;;
24429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430 (eval "$ac_try") 2>&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; } &&
24434 { ac_try='test -s conftest$ac_exeext'
24435 { (case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_try") 2>&5
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; }; then
24445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24447 # Check for a 64-bit object if we didn't find anything.
24448 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24451 echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24457 rm -f core conftest.err conftest.$ac_objext \
24458 conftest$ac_exeext conftest.$ac_ext
24459 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24461 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24462 # Warning - without using the other run time loading flags,
24463 # -berok will link without error, but may produce a broken library.
24464 no_undefined_flag_GCJ=' ${wl}-bernotok'
24465 allow_undefined_flag_GCJ=' ${wl}-berok'
24466 # Exported symbols can be pulled into shared objects from archives
24467 whole_archive_flag_spec_GCJ='$convenience'
24468 archive_cmds_need_lc_GCJ=yes
24469 # This is similar to how AIX traditionally builds its shared libraries.
24470 archive_expsym_cmds_GCJ="\$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'
24476 archive_cmds_GCJ='$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)'
24477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24478 hardcode_minus_L_GCJ=yes
24479 # see comment about different semantics on the GNU ld section
24484 export_dynamic_flag_spec_GCJ=-rdynamic
24487 cygwin* | mingw* | pw32*)
24488 # When not using gcc, we currently assume that we are using
24489 # Microsoft Visual C++.
24490 # hardcode_libdir_flag_spec is actually meaningless, as there is
24491 # no search path for DLLs.
24492 hardcode_libdir_flag_spec_GCJ=' '
24493 allow_undefined_flag_GCJ=unsupported
24494 # Tell ltmain to make .lib files, not .a files.
24496 # Tell ltmain to make .dll files, not .so files.
24498 # FIXME: Setting linknames here is a bad hack.
24499 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24500 # The linker will automatically build a .lib file if we build a DLL.
24501 old_archive_From_new_cmds_GCJ='true'
24502 # FIXME: Should let the user specify the lib program.
24503 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24504 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24505 enable_shared_with_static_runtimes_GCJ=yes
24508 darwin* | rhapsody*)
24510 rhapsody* | darwin1.[012])
24511 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24514 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24515 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24517 case ${MACOSX_DEPLOYMENT_TARGET} in
24519 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24522 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24528 archive_cmds_need_lc_GCJ=no
24529 hardcode_direct_GCJ=no
24530 hardcode_automatic_GCJ=yes
24531 hardcode_shlibpath_var_GCJ=unsupported
24532 whole_archive_flag_spec_GCJ=''
24533 link_all_deplibs_GCJ=yes
24534 if test "$GCC" = yes ; then
24535 output_verbose_link_cmd='echo'
24536 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24537 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24538 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24539 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24540 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24542 case $cc_basename in
24544 output_verbose_link_cmd='echo'
24545 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24546 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24547 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24548 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24549 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24559 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24561 hardcode_shlibpath_var_GCJ=no
24568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24569 # support. Future versions do this automatically, but an explicit c++rt0.o
24570 # does not break anything, and helps significantly (at the cost of a little
24573 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24574 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24575 hardcode_direct_GCJ=yes
24576 hardcode_shlibpath_var_GCJ=no
24579 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24581 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24582 hardcode_direct_GCJ=yes
24583 hardcode_minus_L_GCJ=yes
24584 hardcode_shlibpath_var_GCJ=no
24587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24588 freebsd* | kfreebsd*-gnu | dragonfly*)
24589 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24590 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24591 hardcode_direct_GCJ=yes
24592 hardcode_shlibpath_var_GCJ=no
24596 if test "$GCC" = yes; then
24597 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24599 archive_cmds_GCJ='$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'
24601 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24602 hardcode_libdir_separator_GCJ=:
24603 hardcode_direct_GCJ=yes
24605 # hardcode_minus_L: Not really in the search PATH,
24606 # but as the default location of the library.
24607 hardcode_minus_L_GCJ=yes
24608 export_dynamic_flag_spec_GCJ='${wl}-E'
24612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24613 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24615 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24617 if test "$with_gnu_ld" = no; then
24618 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24619 hardcode_libdir_separator_GCJ=:
24621 hardcode_direct_GCJ=yes
24622 export_dynamic_flag_spec_GCJ='${wl}-E'
24624 # hardcode_minus_L: Not really in the search PATH,
24625 # but as the default location of the library.
24626 hardcode_minus_L_GCJ=yes
24631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24634 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24637 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24640 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24646 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24649 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24652 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24656 if test "$with_gnu_ld" = no; then
24657 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24658 hardcode_libdir_separator_GCJ=:
24662 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24663 hardcode_direct_GCJ=no
24664 hardcode_shlibpath_var_GCJ=no
24667 hardcode_direct_GCJ=yes
24668 export_dynamic_flag_spec_GCJ='${wl}-E'
24670 # hardcode_minus_L: Not really in the search PATH,
24671 # but as the default location of the library.
24672 hardcode_minus_L_GCJ=yes
24678 irix5* | irix6* | nonstopux*)
24679 if test "$GCC" = yes; then
24680 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24682 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24683 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24686 hardcode_libdir_separator_GCJ=:
24687 link_all_deplibs_GCJ=yes
24691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24692 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24694 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24696 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24697 hardcode_direct_GCJ=yes
24698 hardcode_shlibpath_var_GCJ=no
24702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24703 hardcode_direct_GCJ=yes
24704 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24705 hardcode_libdir_separator_GCJ=:
24706 hardcode_shlibpath_var_GCJ=no
24710 hardcode_direct_GCJ=yes
24711 hardcode_shlibpath_var_GCJ=no
24712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24713 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24714 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24715 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24716 export_dynamic_flag_spec_GCJ='${wl}-E'
24719 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24720 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24721 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24724 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24725 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24732 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24733 hardcode_minus_L_GCJ=yes
24734 allow_undefined_flag_GCJ=unsupported
24735 archive_cmds_GCJ='$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'
24736 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24740 if test "$GCC" = yes; then
24741 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24742 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24744 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24745 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24748 hardcode_libdir_separator_GCJ=:
24751 osf4* | osf5*) # as osf3* with the addition of -msym flag
24752 if test "$GCC" = yes; then
24753 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24754 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24755 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24757 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24758 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24759 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
24760 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
24762 # Both c and cxx compiler support -rpath directly
24763 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24765 hardcode_libdir_separator_GCJ=:
24769 no_undefined_flag_GCJ=' -z text'
24770 if test "$GCC" = yes; then
24772 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24773 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24774 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24777 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24778 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24779 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24781 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24782 hardcode_shlibpath_var_GCJ=no
24784 solaris2.[0-5] | solaris2.[0-5].*) ;;
24786 # The compiler driver will combine linker options so we
24787 # cannot just pass the convience library names through
24788 # without $wl, iff we do not link with $LD.
24789 # Luckily, gcc supports the same syntax we need for Sun Studio.
24790 # Supported since Solaris 2.6 (maybe 2.5.1?)
24793 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24795 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
24798 link_all_deplibs_GCJ=yes
24802 if test "x$host_vendor" = xsequent; then
24803 # Use $CC to link under sequent, because it throws in some extra .o
24804 # files that make .init and .fini sections work.
24805 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24807 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24809 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24810 hardcode_direct_GCJ=yes
24811 hardcode_minus_L_GCJ=yes
24812 hardcode_shlibpath_var_GCJ=no
24816 case $host_vendor in
24818 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24819 hardcode_direct_GCJ=yes # is this really true???
24822 ## LD is ld it makes a PLAMLIB
24823 ## CC just makes a GrossModule.
24824 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24825 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24826 hardcode_direct_GCJ=no
24829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24830 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24833 runpath_var='LD_RUN_PATH'
24834 hardcode_shlibpath_var_GCJ=no
24838 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24839 hardcode_shlibpath_var_GCJ=no
24840 export_dynamic_flag_spec_GCJ='-Bexport'
24844 if test -d /usr/nec; then
24845 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24846 hardcode_shlibpath_var_GCJ=no
24847 runpath_var=LD_RUN_PATH
24848 hardcode_runpath_var=yes
24853 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24854 no_undefined_flag_GCJ='${wl}-z,text'
24855 archive_cmds_need_lc_GCJ=no
24856 hardcode_shlibpath_var_GCJ=no
24857 runpath_var='LD_RUN_PATH'
24859 if test "$GCC" = yes; then
24860 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24861 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24863 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24864 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24868 sysv5* | sco3.2v5* | sco5v6*)
24869 # Note: We can NOT use -z defs as we might desire, because we do not
24870 # link with -lc, and that would cause any symbols used from libc to
24871 # always be unresolved, which means just about no library would
24872 # ever link correctly. If we're not using GNU ld we use -z text
24873 # though, which does catch some bad symbols but isn't as heavy-handed
24875 no_undefined_flag_GCJ='${wl}-z,text'
24876 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24877 archive_cmds_need_lc_GCJ=no
24878 hardcode_shlibpath_var_GCJ=no
24879 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24880 hardcode_libdir_separator_GCJ=':'
24881 link_all_deplibs_GCJ=yes
24882 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24883 runpath_var='LD_RUN_PATH'
24885 if test "$GCC" = yes; then
24886 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24887 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24889 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24890 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24896 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24897 hardcode_shlibpath_var_GCJ=no
24906 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24907 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24908 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24911 # Do we need to explicitly link libc?
24913 case "x$archive_cmds_need_lc_GCJ" in
24915 # Assume -lc should be added
24916 archive_cmds_need_lc_GCJ=yes
24918 if test "$enable_shared" = yes && test "$GCC" = yes; then
24919 case $archive_cmds_GCJ in
24921 # FIXME: we may have to deal with multi-command sequences.
24924 # Test whether the compiler implicitly links with -lc since on some
24925 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24926 # to ld, don't add -lc before -lgcc.
24927 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24928 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24933 (eval $ac_compile) 2>&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } 2>conftest.err; then
24939 libobjs=conftest.$ac_objext
24941 wl=$lt_prog_compiler_wl_GCJ
24942 pic_flag=$lt_prog_compiler_pic_GCJ
24948 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24949 allow_undefined_flag_GCJ=
24950 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24951 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }
24956 archive_cmds_need_lc_GCJ=no
24958 archive_cmds_need_lc_GCJ=yes
24960 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24962 cat conftest.err 1>&5
24965 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24966 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24973 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24974 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24975 library_names_spec=
24976 libname_spec='lib$name'
24980 postuninstall_cmds=
24984 shlibpath_overrides_runpath=unknown
24986 dynamic_linker="$host_os ld.so"
24987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24988 if test "$GCC" = yes; then
24989 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24990 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24991 # if the path contains ";" then we assume it to be the separator
24992 # otherwise default to the standard path separator (i.e. ":") - it is
24993 # assumed that no part of a normal pathname contains ";" but that should
24994 # okay in the real world where ";" in dirpaths is itself problematic.
24995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25002 need_lib_prefix=unknown
25003 hardcode_into_libs=no
25005 # when you set need_version to no, make sure it does not cause -set_version
25006 # flags to be left without arguments
25007 need_version=unknown
25012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25013 shlibpath_var=LIBPATH
25015 # AIX 3 has no versioning support, so we append a major version to the name.
25016 soname_spec='${libname}${release}${shared_ext}$major'
25023 hardcode_into_libs=yes
25024 if test "$host_cpu" = ia64; then
25025 # AIX 5 supports IA64
25026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25027 shlibpath_var=LD_LIBRARY_PATH
25029 # With GCC up to 2.95.x, collect2 would create an import file
25030 # for dependence libraries. The import file would start with
25031 # the line `#! .'. This would cause the generated library to
25032 # depend on `.', always an invalid library. This was fixed in
25033 # development snapshots of GCC prior to 3.0.
25035 aix4 | aix4.[01] | aix4.[01].*)
25036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25041 can_build_shared=no
25045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25046 # soname into executable. Probably we can add versioning support to
25047 # collect2, so additional links can be useful in future.
25048 if test "$aix_use_runtimelinking" = yes; then
25049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25050 # instead of lib<name>.a to let people know that these are not
25051 # typical AIX shared libraries.
25052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25054 # We preserve .a as extension for shared libraries through AIX4.2
25055 # and later when we are not doing run time linking.
25056 library_names_spec='${libname}${release}.a $libname.a'
25057 soname_spec='${libname}${release}${shared_ext}$major'
25059 shlibpath_var=LIBPATH
25064 library_names_spec='$libname.ixlibrary $libname.a'
25065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25066 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
25070 library_names_spec='${libname}${shared_ext}'
25071 dynamic_linker="$host_os ld.so"
25072 shlibpath_var=LIBRARY_PATH
25078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25079 soname_spec='${libname}${release}${shared_ext}$major'
25080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25081 shlibpath_var=LD_LIBRARY_PATH
25082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25084 # the default ld.so.conf also contains /usr/contrib/lib and
25085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25086 # libtool to hard-code these into programs
25089 cygwin* | mingw* | pw32*)
25090 version_type=windows
25095 case $GCC,$host_os in
25096 yes,cygwin* | yes,mingw* | yes,pw32*)
25097 library_names_spec='$libname.dll.a'
25098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25099 postinstall_cmds='base_file=`basename \${file}`~
25100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25101 dldir=$destdir/`dirname \$dlpath`~
25102 test -d \$dldir || mkdir -p \$dldir~
25103 $install_prog $dir/$dlname \$dldir/$dlname~
25104 chmod a+x \$dldir/$dlname'
25105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25106 dlpath=$dir/\$dldll~
25108 shlibpath_overrides_runpath=yes
25112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25117 # MinGW DLLs use traditional 'lib' prefix
25118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25121 # It is most probably a Windows format PATH printed by
25122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25123 # path with ; separators, and with drive letters. We can handle the
25124 # drive letters (cygwin fileutils understands them), so leave them,
25125 # especially as we might pass files found there to a mingw objdump,
25126 # which wouldn't understand a cygwinified path. Ahh.
25127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25133 # pw32 DLLs use 'pw' prefix rather than 'lib'
25134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25143 dynamic_linker='Win32 ld.exe'
25144 # FIXME: first we should search . and the directory the executable is in
25148 darwin* | rhapsody*)
25149 dynamic_linker="$host_os dyld"
25150 version_type=darwin
25153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25154 soname_spec='${libname}${release}${major}$shared_ext'
25155 shlibpath_overrides_runpath=yes
25156 shlibpath_var=DYLD_LIBRARY_PATH
25157 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25158 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25159 if test "$GCC" = yes; then
25160 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
25162 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25172 soname_spec='${libname}${release}${shared_ext}$major'
25173 shlibpath_var=LD_LIBRARY_PATH
25184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25185 soname_spec='${libname}${release}${shared_ext}$major'
25186 shlibpath_var=LD_LIBRARY_PATH
25187 shlibpath_overrides_runpath=no
25188 hardcode_into_libs=yes
25189 dynamic_linker='GNU ld.so'
25192 freebsd* | dragonfly*)
25193 # DragonFly does not have aout. When/if they implement a new
25194 # versioning mechanism, adjust this.
25195 if test -x /usr/bin/objformat; then
25196 objformat=`/usr/bin/objformat`
25199 freebsd[123]*) objformat=aout ;;
25200 *) objformat=elf ;;
25203 version_type=freebsd-$objformat
25204 case $version_type in
25206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25215 shlibpath_var=LD_LIBRARY_PATH
25218 shlibpath_overrides_runpath=yes
25220 freebsd3.[01]* | freebsdelf3.[01]*)
25221 shlibpath_overrides_runpath=yes
25222 hardcode_into_libs=yes
25224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25226 shlibpath_overrides_runpath=no
25227 hardcode_into_libs=yes
25229 freebsd*) # from 4.6 on
25230 shlibpath_overrides_runpath=yes
25231 hardcode_into_libs=yes
25240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25241 soname_spec='${libname}${release}${shared_ext}$major'
25242 shlibpath_var=LD_LIBRARY_PATH
25243 hardcode_into_libs=yes
25246 hpux9* | hpux10* | hpux11*)
25247 # Give a soname corresponding to the major version so that dld.sl refuses to
25248 # link against other versions.
25255 hardcode_into_libs=yes
25256 dynamic_linker="$host_os dld.so"
25257 shlibpath_var=LD_LIBRARY_PATH
25258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25260 soname_spec='${libname}${release}${shared_ext}$major'
25261 if test "X$HPUX_IA64_MODE" = X32; then
25262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25270 hardcode_into_libs=yes
25271 dynamic_linker="$host_os dld.sl"
25272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25275 soname_spec='${libname}${release}${shared_ext}$major'
25276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25281 dynamic_linker="$host_os dld.sl"
25282 shlibpath_var=SHLIB_PATH
25283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25285 soname_spec='${libname}${release}${shared_ext}$major'
25288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25289 postinstall_cmds='chmod 555 $lib'
25296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25297 soname_spec='${libname}${release}${shared_ext}$major'
25298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25299 shlibpath_var=LD_LIBRARY_PATH
25300 shlibpath_overrides_runpath=no
25301 hardcode_into_libs=yes
25304 irix5* | irix6* | nonstopux*)
25306 nonstopux*) version_type=nonstopux ;;
25308 if test "$lt_cv_prog_gnu_ld" = yes; then
25316 soname_spec='${libname}${release}${shared_ext}$major'
25317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25319 irix5* | nonstopux*)
25320 libsuff= shlibsuff=
25323 case $LD in # libtool.m4 will add one of these switches to LD
25324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25325 libsuff= shlibsuff= libmagic=32-bit;;
25326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25327 libsuff=32 shlibsuff=N32 libmagic=N32;;
25328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25330 *) libsuff= shlibsuff= libmagic=never-match;;
25334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25335 shlibpath_overrides_runpath=no
25336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25338 hardcode_into_libs=yes
25341 # No shared lib support for Linux oldld, aout, or coff.
25342 linux*oldld* | linux*aout* | linux*coff*)
25346 # This must be Linux ELF.
25351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25352 soname_spec='${libname}${release}${shared_ext}$major'
25353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25354 shlibpath_var=LD_LIBRARY_PATH
25355 shlibpath_overrides_runpath=no
25356 # This implies no fast_install, which is unacceptable.
25357 # Some rework will be needed to allow for fast_install
25358 # before this can be enabled.
25359 hardcode_into_libs=yes
25361 # Append ld.so.conf contents to the search path
25362 if test -f /etc/ld.so.conf; then
25363 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25367 # We used to test for /lib/ld.so.1 and disable shared libraries on
25368 # powerpc, because MkLinux only supported shared libraries with the
25369 # GNU dynamic linker. Since this was broken with cross compilers,
25370 # most powerpc-linux boxes support dynamic linking these days and
25371 # people can always --disable-shared, the test was removed, and we
25372 # assume the GNU/Linux dynamic linker is in use.
25373 dynamic_linker='GNU/Linux ld.so'
25380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25381 soname_spec='${libname}${release}${shared_ext}$major'
25382 shlibpath_var=LD_LIBRARY_PATH
25383 shlibpath_overrides_runpath=no
25384 hardcode_into_libs=yes
25385 dynamic_linker='GNU ld.so'
25392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25395 dynamic_linker='NetBSD (a.out) ld.so'
25397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25398 soname_spec='${libname}${release}${shared_ext}$major'
25399 dynamic_linker='NetBSD ld.elf_so'
25401 shlibpath_var=LD_LIBRARY_PATH
25402 shlibpath_overrides_runpath=yes
25403 hardcode_into_libs=yes
25408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25409 shlibpath_var=LD_LIBRARY_PATH
25410 shlibpath_overrides_runpath=yes
25417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25418 soname_spec='${libname}${release}${shared_ext}$major'
25419 shlibpath_var=LD_LIBRARY_PATH
25420 shlibpath_overrides_runpath=yes
25425 sys_lib_dlsearch_path_spec="/usr/lib"
25427 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25429 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25430 *) need_version=no ;;
25432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25434 shlibpath_var=LD_LIBRARY_PATH
25435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25437 openbsd2.[89] | openbsd2.[89].*)
25438 shlibpath_overrides_runpath=no
25441 shlibpath_overrides_runpath=yes
25445 shlibpath_overrides_runpath=yes
25450 libname_spec='$name'
25453 library_names_spec='$libname${shared_ext} $libname.a'
25454 dynamic_linker='OS/2 ld.exe'
25455 shlibpath_var=LIBPATH
25458 osf3* | osf4* | osf5*)
25462 soname_spec='${libname}${release}${shared_ext}$major'
25463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25464 shlibpath_var=LD_LIBRARY_PATH
25465 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25466 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25474 soname_spec='${libname}${release}${shared_ext}$major'
25475 shlibpath_var=LD_LIBRARY_PATH
25476 shlibpath_overrides_runpath=yes
25477 hardcode_into_libs=yes
25478 # ldd complains unless libraries are executable
25479 postinstall_cmds='chmod +x $lib'
25484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25486 shlibpath_var=LD_LIBRARY_PATH
25487 shlibpath_overrides_runpath=yes
25488 if test "$with_gnu_ld" = yes; then
25496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25497 soname_spec='${libname}${release}${shared_ext}$major'
25498 shlibpath_var=LD_LIBRARY_PATH
25499 case $host_vendor in
25501 shlibpath_overrides_runpath=no
25503 export_dynamic_flag_spec='${wl}-Blargedynsym'
25504 runpath_var=LD_RUN_PATH
25512 shlibpath_overrides_runpath=no
25513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25519 if test -d /usr/nec ;then
25521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25522 soname_spec='$libname${shared_ext}.$major'
25523 shlibpath_var=LD_LIBRARY_PATH
25527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25528 version_type=freebsd-elf
25531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25532 soname_spec='${libname}${release}${shared_ext}$major'
25533 shlibpath_var=LD_LIBRARY_PATH
25534 hardcode_into_libs=yes
25535 if test "$with_gnu_ld" = yes; then
25536 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25537 shlibpath_overrides_runpath=no
25539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25540 shlibpath_overrides_runpath=yes
25543 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25547 sys_lib_dlsearch_path_spec='/usr/lib'
25552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25553 soname_spec='${libname}${release}${shared_ext}$major'
25554 shlibpath_var=LD_LIBRARY_PATH
25561 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25562 echo "${ECHO_T}$dynamic_linker" >&6; }
25563 test "$dynamic_linker" = no && can_build_shared=no
25565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25566 if test "$GCC" = yes; then
25567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25570 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25572 hardcode_action_GCJ=
25573 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25574 test -n "$runpath_var_GCJ" || \
25575 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25577 # We can hardcode non-existant directories.
25578 if test "$hardcode_direct_GCJ" != no &&
25579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25580 # have to relink, otherwise we might link with an installed library
25581 # when we should be linking with a yet-to-be-installed one
25582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25583 test "$hardcode_minus_L_GCJ" != no; then
25584 # Linking always hardcodes the temporary library directory.
25585 hardcode_action_GCJ=relink
25587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25588 hardcode_action_GCJ=immediate
25591 # We cannot hardcode anything, or else we can only hardcode existing
25593 hardcode_action_GCJ=unsupported
25595 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25596 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25598 if test "$hardcode_action_GCJ" = relink; then
25599 # Fast installation is not supported
25600 enable_fast_install=no
25601 elif test "$shlibpath_overrides_runpath" = yes ||
25602 test "$enable_shared" = no; then
25603 # Fast installation is not necessary
25604 enable_fast_install=needless
25608 # The else clause should only fire when bootstrapping the
25609 # libtool distribution, otherwise you forgot to ship ltmain.sh
25610 # with your package, and you will get complaints that there are
25611 # no rules to generate ltmain.sh.
25612 if test -f "$ltmain"; then
25613 # See if we are running on zsh, and set the options which allow our commands through
25614 # without removal of \ escapes.
25615 if test -n "${ZSH_VERSION+set}" ; then
25616 setopt NO_GLOB_SUBST
25618 # Now quote all the things that may contain metacharacters while being
25619 # careful not to overquote the AC_SUBSTed values. We take copies of the
25620 # variables and quote the copies for generation of the libtool script.
25621 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25623 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25624 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25625 deplibs_check_method reload_flag reload_cmds need_locks \
25626 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25627 lt_cv_sys_global_symbol_to_c_name_address \
25628 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25629 old_postinstall_cmds old_postuninstall_cmds \
25633 lt_prog_compiler_wl_GCJ \
25634 lt_prog_compiler_pic_GCJ \
25635 lt_prog_compiler_static_GCJ \
25636 lt_prog_compiler_no_builtin_flag_GCJ \
25637 export_dynamic_flag_spec_GCJ \
25638 thread_safe_flag_spec_GCJ \
25639 whole_archive_flag_spec_GCJ \
25640 enable_shared_with_static_runtimes_GCJ \
25641 old_archive_cmds_GCJ \
25642 old_archive_from_new_cmds_GCJ \
25643 predep_objects_GCJ \
25644 postdep_objects_GCJ \
25647 compiler_lib_search_path_GCJ \
25649 archive_expsym_cmds_GCJ \
25650 postinstall_cmds_GCJ \
25651 postuninstall_cmds_GCJ \
25652 old_archive_from_expsyms_cmds_GCJ \
25653 allow_undefined_flag_GCJ \
25654 no_undefined_flag_GCJ \
25655 export_symbols_cmds_GCJ \
25656 hardcode_libdir_flag_spec_GCJ \
25657 hardcode_libdir_flag_spec_ld_GCJ \
25658 hardcode_libdir_separator_GCJ \
25659 hardcode_automatic_GCJ \
25661 module_expsym_cmds_GCJ \
25662 lt_cv_prog_compiler_c_o_GCJ \
25663 exclude_expsyms_GCJ \
25664 include_expsyms_GCJ; do
25667 old_archive_cmds_GCJ | \
25668 old_archive_from_new_cmds_GCJ | \
25669 archive_cmds_GCJ | \
25670 archive_expsym_cmds_GCJ | \
25671 module_cmds_GCJ | \
25672 module_expsym_cmds_GCJ | \
25673 old_archive_from_expsyms_cmds_GCJ | \
25674 export_symbols_cmds_GCJ | \
25675 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25676 postinstall_cmds | postuninstall_cmds | \
25677 old_postinstall_cmds | old_postuninstall_cmds | \
25678 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25679 # Double-quote double-evaled strings.
25680 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25683 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25689 *'\$0 --fallback-echo"')
25690 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25696 cat <<__EOF__ >> "$cfgfile"
25697 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25699 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25701 # Shell to use when invoking shell scripts.
25704 # Whether or not to build shared libraries.
25705 build_libtool_libs=$enable_shared
25707 # Whether or not to build static libraries.
25708 build_old_libs=$enable_static
25710 # Whether or not to add -lc for building shared libraries.
25711 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25713 # Whether or not to disallow shared libs when runtime libs are static
25714 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25716 # Whether or not to optimize for fast installation.
25717 fast_install=$enable_fast_install
25720 host_alias=$host_alias
25724 # The build system.
25725 build_alias=$build_alias
25729 # An echo program that does not interpret backslashes.
25734 AR_FLAGS=$lt_AR_FLAGS
25739 # LTCC compiler flags.
25740 LTCFLAGS=$lt_LTCFLAGS
25742 # A language-specific compiler.
25743 CC=$lt_compiler_GCJ
25745 # Is the compiler the GNU C compiler?
25751 # The linker used to build libraries.
25754 # Whether we need hard or soft links.
25757 # A BSD-compatible nm program.
25760 # A symbol stripping program
25763 # Used to examine libraries when file_magic_cmd begins "file"
25764 MAGIC_CMD=$MAGIC_CMD
25766 # Used on cygwin: DLL creation program.
25769 # Used on cygwin: object dumper.
25772 # Used on cygwin: assembler.
25775 # The name of the directory that contains temporary libtool files.
25778 # How to create reloadable object files.
25779 reload_flag=$lt_reload_flag
25780 reload_cmds=$lt_reload_cmds
25782 # How to pass a linker flag through the compiler.
25783 wl=$lt_lt_prog_compiler_wl_GCJ
25785 # Object file suffix (normally "o").
25786 objext="$ac_objext"
25788 # Old archive suffix (normally "a").
25791 # Shared library suffix (normally ".so").
25792 shrext_cmds='$shrext_cmds'
25794 # Executable file suffix (normally "").
25797 # Additional compiler flags for building library objects.
25798 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25801 # What is the maximum length of a command?
25802 max_cmd_len=$lt_cv_sys_max_cmd_len
25804 # Does compiler simultaneously support -c and -o options?
25805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25807 # Must we lock files when doing compilation?
25808 need_locks=$lt_need_locks
25810 # Do we need the lib prefix for modules?
25811 need_lib_prefix=$need_lib_prefix
25813 # Do we need a version for libraries?
25814 need_version=$need_version
25816 # Whether dlopen is supported.
25817 dlopen_support=$enable_dlopen
25819 # Whether dlopen of programs is supported.
25820 dlopen_self=$enable_dlopen_self
25822 # Whether dlopen of statically linked programs is supported.
25823 dlopen_self_static=$enable_dlopen_self_static
25825 # Compiler flag to prevent dynamic linking.
25826 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25828 # Compiler flag to turn off builtin functions.
25829 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25831 # Compiler flag to allow reflexive dlopens.
25832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25834 # Compiler flag to generate shared objects directly from archives.
25835 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25837 # Compiler flag to generate thread-safe objects.
25838 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25840 # Library versioning type.
25841 version_type=$version_type
25843 # Format of library name prefix.
25844 libname_spec=$lt_libname_spec
25846 # List of archive names. First name is the real one, the rest are links.
25847 # The last name is the one that the linker finds with -lNAME.
25848 library_names_spec=$lt_library_names_spec
25850 # The coded name of the library, if different from the real name.
25851 soname_spec=$lt_soname_spec
25853 # Commands used to build and install an old-style archive.
25855 old_archive_cmds=$lt_old_archive_cmds_GCJ
25856 old_postinstall_cmds=$lt_old_postinstall_cmds
25857 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25859 # Create an old-style archive from a shared archive.
25860 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25862 # Create a temporary old-style archive to link instead of a shared archive.
25863 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25865 # Commands used to build and install a shared archive.
25866 archive_cmds=$lt_archive_cmds_GCJ
25867 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25868 postinstall_cmds=$lt_postinstall_cmds
25869 postuninstall_cmds=$lt_postuninstall_cmds
25871 # Commands used to build a loadable module (assumed same as above if empty)
25872 module_cmds=$lt_module_cmds_GCJ
25873 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25875 # Commands to strip libraries.
25876 old_striplib=$lt_old_striplib
25877 striplib=$lt_striplib
25879 # Dependencies to place before the objects being linked to create a
25881 predep_objects=$lt_predep_objects_GCJ
25883 # Dependencies to place after the objects being linked to create a
25885 postdep_objects=$lt_postdep_objects_GCJ
25887 # Dependencies to place before the objects being linked to create a
25889 predeps=$lt_predeps_GCJ
25891 # Dependencies to place after the objects being linked to create a
25893 postdeps=$lt_postdeps_GCJ
25895 # The library search path used internally by the compiler when linking
25896 # a shared library.
25897 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25899 # Method to check whether dependent libraries are shared objects.
25900 deplibs_check_method=$lt_deplibs_check_method
25902 # Command to use when deplibs_check_method == file_magic.
25903 file_magic_cmd=$lt_file_magic_cmd
25905 # Flag that allows shared libraries with undefined symbols to be built.
25906 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25908 # Flag that forces no undefined symbols.
25909 no_undefined_flag=$lt_no_undefined_flag_GCJ
25911 # Commands used to finish a libtool library installation in a directory.
25912 finish_cmds=$lt_finish_cmds
25914 # Same as above, but a single script fragment to be evaled but not shown.
25915 finish_eval=$lt_finish_eval
25917 # Take the output of nm and produce a listing of raw symbols and C names.
25918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25920 # Transform the output of nm in a proper C declaration
25921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25923 # Transform the output of nm in a C name address pair
25924 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25926 # This is the shared library runtime path variable.
25927 runpath_var=$runpath_var
25929 # This is the shared library path variable.
25930 shlibpath_var=$shlibpath_var
25932 # Is shlibpath searched before the hard-coded library search path?
25933 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25935 # How to hardcode a shared library path into an executable.
25936 hardcode_action=$hardcode_action_GCJ
25938 # Whether we should hardcode library paths into libraries.
25939 hardcode_into_libs=$hardcode_into_libs
25941 # Flag to hardcode \$libdir into a binary during linking.
25942 # This must work even if \$libdir does not exist.
25943 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25945 # If ld is used when linking, flag to hardcode \$libdir into
25946 # a binary during linking. This must work even if \$libdir does
25948 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25950 # Whether we need a single -rpath flag with a separated argument.
25951 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25953 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25954 # resulting binary.
25955 hardcode_direct=$hardcode_direct_GCJ
25957 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25958 # resulting binary.
25959 hardcode_minus_L=$hardcode_minus_L_GCJ
25961 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25962 # the resulting binary.
25963 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25965 # Set to yes if building a shared library automatically hardcodes DIR into the library
25966 # and all subsequent libraries and executables linked against it.
25967 hardcode_automatic=$hardcode_automatic_GCJ
25969 # Variables whose values should be saved in libtool wrapper scripts and
25970 # restored at relink time.
25971 variables_saved_for_relink="$variables_saved_for_relink"
25973 # Whether libtool must link a program against all its dependency libraries.
25974 link_all_deplibs=$link_all_deplibs_GCJ
25976 # Compile-time system search path for libraries
25977 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25979 # Run-time system search path for libraries
25980 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25982 # Fix the shell variable \$srcfile for the compiler.
25983 fix_srcfile_path="$fix_srcfile_path_GCJ"
25985 # Set to yes if exported symbols are required.
25986 always_export_symbols=$always_export_symbols_GCJ
25988 # The commands to list exported symbols.
25989 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25991 # The commands to extract the exported symbol list from a shared archive.
25992 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25994 # Symbols that should not be listed in the preloaded symbols.
25995 exclude_expsyms=$lt_exclude_expsyms_GCJ
25997 # Symbols that must always be exported.
25998 include_expsyms=$lt_include_expsyms_GCJ
26000 # ### END LIBTOOL TAG CONFIG: $tagname
26006 # If there is no Makefile yet, we rely on a make rule to execute
26007 # `config.status --recheck' to rerun these tests and create the
26008 # libtool script then.
26009 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26010 if test -f "$ltmain_in"; then
26011 test -f Makefile && make "$ltmain"
26017 ac_cpp='$CPP $CPPFLAGS'
26018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26031 ac_cpp='$CPP $CPPFLAGS'
26032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26037 # Source file extension for RC test sources.
26040 # Object file extension for compiled RC test sources.
26044 # Code to be used in simple compile tests
26045 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26047 # Code to be used in simple link tests
26048 lt_simple_link_test_code="$lt_simple_compile_test_code"
26050 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26052 # If no C compiler was specified, use CC.
26055 # If no C compiler flags were specified, use CFLAGS.
26056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26058 # Allow CC to be a program name with arguments.
26062 # save warnings/boilerplate of simple test code
26063 ac_outfile=conftest.$ac_objext
26064 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26066 _lt_compiler_boilerplate=`cat conftest.err`
26069 ac_outfile=conftest.$ac_objext
26070 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26072 _lt_linker_boilerplate=`cat conftest.err`
26076 # Allow CC to be a program name with arguments.
26081 for cc_temp in $compiler""; do
26083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26091 lt_cv_prog_compiler_c_o_RC=yes
26093 # The else clause should only fire when bootstrapping the
26094 # libtool distribution, otherwise you forgot to ship ltmain.sh
26095 # with your package, and you will get complaints that there are
26096 # no rules to generate ltmain.sh.
26097 if test -f "$ltmain"; then
26098 # See if we are running on zsh, and set the options which allow our commands through
26099 # without removal of \ escapes.
26100 if test -n "${ZSH_VERSION+set}" ; then
26101 setopt NO_GLOB_SUBST
26103 # Now quote all the things that may contain metacharacters while being
26104 # careful not to overquote the AC_SUBSTed values. We take copies of the
26105 # variables and quote the copies for generation of the libtool script.
26106 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26110 deplibs_check_method reload_flag reload_cmds need_locks \
26111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26112 lt_cv_sys_global_symbol_to_c_name_address \
26113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26114 old_postinstall_cmds old_postuninstall_cmds \
26118 lt_prog_compiler_wl_RC \
26119 lt_prog_compiler_pic_RC \
26120 lt_prog_compiler_static_RC \
26121 lt_prog_compiler_no_builtin_flag_RC \
26122 export_dynamic_flag_spec_RC \
26123 thread_safe_flag_spec_RC \
26124 whole_archive_flag_spec_RC \
26125 enable_shared_with_static_runtimes_RC \
26126 old_archive_cmds_RC \
26127 old_archive_from_new_cmds_RC \
26128 predep_objects_RC \
26129 postdep_objects_RC \
26132 compiler_lib_search_path_RC \
26134 archive_expsym_cmds_RC \
26135 postinstall_cmds_RC \
26136 postuninstall_cmds_RC \
26137 old_archive_from_expsyms_cmds_RC \
26138 allow_undefined_flag_RC \
26139 no_undefined_flag_RC \
26140 export_symbols_cmds_RC \
26141 hardcode_libdir_flag_spec_RC \
26142 hardcode_libdir_flag_spec_ld_RC \
26143 hardcode_libdir_separator_RC \
26144 hardcode_automatic_RC \
26146 module_expsym_cmds_RC \
26147 lt_cv_prog_compiler_c_o_RC \
26148 exclude_expsyms_RC \
26149 include_expsyms_RC; do
26152 old_archive_cmds_RC | \
26153 old_archive_from_new_cmds_RC | \
26154 archive_cmds_RC | \
26155 archive_expsym_cmds_RC | \
26157 module_expsym_cmds_RC | \
26158 old_archive_from_expsyms_cmds_RC | \
26159 export_symbols_cmds_RC | \
26160 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26161 postinstall_cmds | postuninstall_cmds | \
26162 old_postinstall_cmds | old_postuninstall_cmds | \
26163 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26164 # Double-quote double-evaled strings.
26165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26174 *'\$0 --fallback-echo"')
26175 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26181 cat <<__EOF__ >> "$cfgfile"
26182 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26184 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26186 # Shell to use when invoking shell scripts.
26189 # Whether or not to build shared libraries.
26190 build_libtool_libs=$enable_shared
26192 # Whether or not to build static libraries.
26193 build_old_libs=$enable_static
26195 # Whether or not to add -lc for building shared libraries.
26196 build_libtool_need_lc=$archive_cmds_need_lc_RC
26198 # Whether or not to disallow shared libs when runtime libs are static
26199 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26201 # Whether or not to optimize for fast installation.
26202 fast_install=$enable_fast_install
26205 host_alias=$host_alias
26209 # The build system.
26210 build_alias=$build_alias
26214 # An echo program that does not interpret backslashes.
26219 AR_FLAGS=$lt_AR_FLAGS
26224 # LTCC compiler flags.
26225 LTCFLAGS=$lt_LTCFLAGS
26227 # A language-specific compiler.
26230 # Is the compiler the GNU C compiler?
26236 # The linker used to build libraries.
26239 # Whether we need hard or soft links.
26242 # A BSD-compatible nm program.
26245 # A symbol stripping program
26248 # Used to examine libraries when file_magic_cmd begins "file"
26249 MAGIC_CMD=$MAGIC_CMD
26251 # Used on cygwin: DLL creation program.
26254 # Used on cygwin: object dumper.
26257 # Used on cygwin: assembler.
26260 # The name of the directory that contains temporary libtool files.
26263 # How to create reloadable object files.
26264 reload_flag=$lt_reload_flag
26265 reload_cmds=$lt_reload_cmds
26267 # How to pass a linker flag through the compiler.
26268 wl=$lt_lt_prog_compiler_wl_RC
26270 # Object file suffix (normally "o").
26271 objext="$ac_objext"
26273 # Old archive suffix (normally "a").
26276 # Shared library suffix (normally ".so").
26277 shrext_cmds='$shrext_cmds'
26279 # Executable file suffix (normally "").
26282 # Additional compiler flags for building library objects.
26283 pic_flag=$lt_lt_prog_compiler_pic_RC
26286 # What is the maximum length of a command?
26287 max_cmd_len=$lt_cv_sys_max_cmd_len
26289 # Does compiler simultaneously support -c and -o options?
26290 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26292 # Must we lock files when doing compilation?
26293 need_locks=$lt_need_locks
26295 # Do we need the lib prefix for modules?
26296 need_lib_prefix=$need_lib_prefix
26298 # Do we need a version for libraries?
26299 need_version=$need_version
26301 # Whether dlopen is supported.
26302 dlopen_support=$enable_dlopen
26304 # Whether dlopen of programs is supported.
26305 dlopen_self=$enable_dlopen_self
26307 # Whether dlopen of statically linked programs is supported.
26308 dlopen_self_static=$enable_dlopen_self_static
26310 # Compiler flag to prevent dynamic linking.
26311 link_static_flag=$lt_lt_prog_compiler_static_RC
26313 # Compiler flag to turn off builtin functions.
26314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26316 # Compiler flag to allow reflexive dlopens.
26317 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26319 # Compiler flag to generate shared objects directly from archives.
26320 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26322 # Compiler flag to generate thread-safe objects.
26323 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26325 # Library versioning type.
26326 version_type=$version_type
26328 # Format of library name prefix.
26329 libname_spec=$lt_libname_spec
26331 # List of archive names. First name is the real one, the rest are links.
26332 # The last name is the one that the linker finds with -lNAME.
26333 library_names_spec=$lt_library_names_spec
26335 # The coded name of the library, if different from the real name.
26336 soname_spec=$lt_soname_spec
26338 # Commands used to build and install an old-style archive.
26340 old_archive_cmds=$lt_old_archive_cmds_RC
26341 old_postinstall_cmds=$lt_old_postinstall_cmds
26342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26344 # Create an old-style archive from a shared archive.
26345 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26347 # Create a temporary old-style archive to link instead of a shared archive.
26348 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26350 # Commands used to build and install a shared archive.
26351 archive_cmds=$lt_archive_cmds_RC
26352 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26353 postinstall_cmds=$lt_postinstall_cmds
26354 postuninstall_cmds=$lt_postuninstall_cmds
26356 # Commands used to build a loadable module (assumed same as above if empty)
26357 module_cmds=$lt_module_cmds_RC
26358 module_expsym_cmds=$lt_module_expsym_cmds_RC
26360 # Commands to strip libraries.
26361 old_striplib=$lt_old_striplib
26362 striplib=$lt_striplib
26364 # Dependencies to place before the objects being linked to create a
26366 predep_objects=$lt_predep_objects_RC
26368 # Dependencies to place after the objects being linked to create a
26370 postdep_objects=$lt_postdep_objects_RC
26372 # Dependencies to place before the objects being linked to create a
26374 predeps=$lt_predeps_RC
26376 # Dependencies to place after the objects being linked to create a
26378 postdeps=$lt_postdeps_RC
26380 # The library search path used internally by the compiler when linking
26381 # a shared library.
26382 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26384 # Method to check whether dependent libraries are shared objects.
26385 deplibs_check_method=$lt_deplibs_check_method
26387 # Command to use when deplibs_check_method == file_magic.
26388 file_magic_cmd=$lt_file_magic_cmd
26390 # Flag that allows shared libraries with undefined symbols to be built.
26391 allow_undefined_flag=$lt_allow_undefined_flag_RC
26393 # Flag that forces no undefined symbols.
26394 no_undefined_flag=$lt_no_undefined_flag_RC
26396 # Commands used to finish a libtool library installation in a directory.
26397 finish_cmds=$lt_finish_cmds
26399 # Same as above, but a single script fragment to be evaled but not shown.
26400 finish_eval=$lt_finish_eval
26402 # Take the output of nm and produce a listing of raw symbols and C names.
26403 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26405 # Transform the output of nm in a proper C declaration
26406 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26408 # Transform the output of nm in a C name address pair
26409 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26411 # This is the shared library runtime path variable.
26412 runpath_var=$runpath_var
26414 # This is the shared library path variable.
26415 shlibpath_var=$shlibpath_var
26417 # Is shlibpath searched before the hard-coded library search path?
26418 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26420 # How to hardcode a shared library path into an executable.
26421 hardcode_action=$hardcode_action_RC
26423 # Whether we should hardcode library paths into libraries.
26424 hardcode_into_libs=$hardcode_into_libs
26426 # Flag to hardcode \$libdir into a binary during linking.
26427 # This must work even if \$libdir does not exist.
26428 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26430 # If ld is used when linking, flag to hardcode \$libdir into
26431 # a binary during linking. This must work even if \$libdir does
26433 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26435 # Whether we need a single -rpath flag with a separated argument.
26436 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26438 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26439 # resulting binary.
26440 hardcode_direct=$hardcode_direct_RC
26442 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26443 # resulting binary.
26444 hardcode_minus_L=$hardcode_minus_L_RC
26446 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26447 # the resulting binary.
26448 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26450 # Set to yes if building a shared library automatically hardcodes DIR into the library
26451 # and all subsequent libraries and executables linked against it.
26452 hardcode_automatic=$hardcode_automatic_RC
26454 # Variables whose values should be saved in libtool wrapper scripts and
26455 # restored at relink time.
26456 variables_saved_for_relink="$variables_saved_for_relink"
26458 # Whether libtool must link a program against all its dependency libraries.
26459 link_all_deplibs=$link_all_deplibs_RC
26461 # Compile-time system search path for libraries
26462 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26464 # Run-time system search path for libraries
26465 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26467 # Fix the shell variable \$srcfile for the compiler.
26468 fix_srcfile_path="$fix_srcfile_path_RC"
26470 # Set to yes if exported symbols are required.
26471 always_export_symbols=$always_export_symbols_RC
26473 # The commands to list exported symbols.
26474 export_symbols_cmds=$lt_export_symbols_cmds_RC
26476 # The commands to extract the exported symbol list from a shared archive.
26477 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26479 # Symbols that should not be listed in the preloaded symbols.
26480 exclude_expsyms=$lt_exclude_expsyms_RC
26482 # Symbols that must always be exported.
26483 include_expsyms=$lt_include_expsyms_RC
26485 # ### END LIBTOOL TAG CONFIG: $tagname
26491 # If there is no Makefile yet, we rely on a make rule to execute
26492 # `config.status --recheck' to rerun these tests and create the
26493 # libtool script then.
26494 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26495 if test -f "$ltmain_in"; then
26496 test -f Makefile && make "$ltmain"
26502 ac_cpp='$CPP $CPPFLAGS'
26503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26512 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26513 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26514 { (exit 1); exit 1; }; }
26518 # Append the new tag name to the list of available tags.
26519 if test -n "$tagname" ; then
26520 available_tags="$available_tags $tagname"
26526 # Now substitute the updated list of available tags.
26527 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26528 mv "${ofile}T" "$ofile"
26532 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26533 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26534 { (exit 1); exit 1; }; }
26540 # This can be used to rebuild libtool when needed
26541 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26543 # Always use our own libtool.
26544 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26546 # Prevent multiple expansion
26568 if test "$lt_cv_dlopen_self" = "yes" ; then
26570 cat >>confdefs.h <<\_ACEOF
26571 #define CAN_DLOPEN_SELF 1
26576 etags_version=`$ETAGS --version 2>&1`
26577 case "$etags_version" in
26578 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26579 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26580 *) ETAGSFLAGS="" ;;
26582 ETAGSFLAGS=$ETAGSFLAGS
26585 if test "$WITH_LLVMGCCDIR" = "default" ; then
26586 LLVMGCC="llvm-gcc${EXEEXT}"
26587 LLVMGXX="llvm-g++${EXEEXT}"
26588 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26589 set dummy $LLVMGCC; ac_word=$2
26590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26592 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26597 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26601 for as_dir in $PATH
26604 test -z "$as_dir" && as_dir=.
26605 for ac_exec_ext in '' $ac_executable_extensions; do
26606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26607 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26618 LLVMGCC=$ac_cv_path_LLVMGCC
26619 if test -n "$LLVMGCC"; then
26620 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26621 echo "${ECHO_T}$LLVMGCC" >&6; }
26623 { echo "$as_me:$LINENO: result: no" >&5
26624 echo "${ECHO_T}no" >&6; }
26628 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26629 set dummy $LLVMGXX; ac_word=$2
26630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26632 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26637 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26641 for as_dir in $PATH
26644 test -z "$as_dir" && as_dir=.
26645 for ac_exec_ext in '' $ac_executable_extensions; do
26646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26647 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26658 LLVMGXX=$ac_cv_path_LLVMGXX
26659 if test -n "$LLVMGXX"; then
26660 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26661 echo "${ECHO_T}$LLVMGXX" >&6; }
26663 { echo "$as_me:$LINENO: result: no" >&5
26664 echo "${ECHO_T}no" >&6; }
26669 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26670 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26677 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26678 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26691 if test "$GCC" != "yes" && test "$ICC" != "yes"
26693 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26694 echo "$as_me: error: gcc|icc required but not found" >&2;}
26695 { (exit 1); exit 1; }; }
26698 if test "$GXX" != "yes" && test "$IXX" != "yes"
26700 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26701 echo "$as_me: error: g++|icc required but not found" >&2;}
26702 { (exit 1); exit 1; }; }
26705 if test "$GCC" = "yes"
26707 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26708 if test "$gccmajor" -lt "3"
26710 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26711 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26712 { (exit 1); exit 1; }; }
26716 if test -z "$llvm_cv_gnu_make_command"
26718 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26719 echo "$as_me: error: GNU Make required but not found" >&2;}
26720 { (exit 1); exit 1; }; }
26723 { echo "$as_me:$LINENO: result: ok" >&5
26724 echo "${ECHO_T}ok" >&6; }
26728 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26729 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26730 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26731 echo $ECHO_N "(cached) $ECHO_C" >&6
26733 ac_check_lib_save_LIBS=$LIBS
26735 cat >conftest.$ac_ext <<_ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h. */
26742 /* Override any GCC internal prototype to avoid an error.
26743 Use char because int might match the return type of a GCC
26744 builtin and then its argument prototype would still apply. */
26752 return elf_begin ();
26757 rm -f conftest.$ac_objext conftest$ac_exeext
26758 if { (ac_try="$ac_link"
26759 case "(($ac_try" in
26760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761 *) ac_try_echo=$ac_try;;
26763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764 (eval "$ac_link") 2>conftest.er1
26766 grep -v '^ *+' conftest.er1 >conftest.err
26768 cat conftest.err >&5
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } &&
26771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26772 { (case "(($ac_try" in
26773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774 *) ac_try_echo=$ac_try;;
26776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777 (eval "$ac_try") 2>&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); }; } &&
26781 { ac_try='test -s conftest$ac_exeext'
26782 { (case "(($ac_try" in
26783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784 *) ac_try_echo=$ac_try;;
26786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26787 (eval "$ac_try") 2>&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; }; then
26791 ac_cv_lib_elf_elf_begin=yes
26793 echo "$as_me: failed program was:" >&5
26794 sed 's/^/| /' conftest.$ac_ext >&5
26796 ac_cv_lib_elf_elf_begin=no
26799 rm -f core conftest.err conftest.$ac_objext \
26800 conftest$ac_exeext conftest.$ac_ext
26801 LIBS=$ac_check_lib_save_LIBS
26803 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26804 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26805 if test $ac_cv_lib_elf_elf_begin = yes; then
26806 cat >>confdefs.h <<_ACEOF
26807 #define HAVE_LIBELF 1
26815 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26816 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26817 if test "${ac_cv_lib_m_sin+set}" = set; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26820 ac_check_lib_save_LIBS=$LIBS
26822 cat >conftest.$ac_ext <<_ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h. */
26829 /* Override any GCC internal prototype to avoid an error.
26830 Use char because int might match the return type of a GCC
26831 builtin and then its argument prototype would still apply. */
26844 rm -f conftest.$ac_objext conftest$ac_exeext
26845 if { (ac_try="$ac_link"
26846 case "(($ac_try" in
26847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848 *) ac_try_echo=$ac_try;;
26850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851 (eval "$ac_link") 2>conftest.er1
26853 grep -v '^ *+' conftest.er1 >conftest.err
26855 cat conftest.err >&5
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); } &&
26858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26859 { (case "(($ac_try" in
26860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26861 *) ac_try_echo=$ac_try;;
26863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26864 (eval "$ac_try") 2>&5
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; } &&
26868 { ac_try='test -s conftest$ac_exeext'
26869 { (case "(($ac_try" in
26870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26871 *) ac_try_echo=$ac_try;;
26873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26874 (eval "$ac_try") 2>&5
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); }; }; then
26878 ac_cv_lib_m_sin=yes
26880 echo "$as_me: failed program was:" >&5
26881 sed 's/^/| /' conftest.$ac_ext >&5
26886 rm -f core conftest.err conftest.$ac_objext \
26887 conftest$ac_exeext conftest.$ac_ext
26888 LIBS=$ac_check_lib_save_LIBS
26890 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26891 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26892 if test $ac_cv_lib_m_sin = yes; then
26893 cat >>confdefs.h <<_ACEOF
26894 #define HAVE_LIBM 1
26901 if test "$llvm_cv_os_type" == "MingW" ; then
26903 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26904 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26905 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26908 ac_check_lib_save_LIBS=$LIBS
26909 LIBS="-limagehlp $LIBS"
26910 cat >conftest.$ac_ext <<_ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h. */
26926 rm -f conftest.$ac_objext conftest$ac_exeext
26927 if { (ac_try="$ac_link"
26928 case "(($ac_try" in
26929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930 *) ac_try_echo=$ac_try;;
26932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933 (eval "$ac_link") 2>conftest.er1
26935 grep -v '^ *+' conftest.er1 >conftest.err
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } &&
26940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26941 { (case "(($ac_try" in
26942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943 *) ac_try_echo=$ac_try;;
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946 (eval "$ac_try") 2>&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; } &&
26950 { ac_try='test -s conftest$ac_exeext'
26951 { (case "(($ac_try" in
26952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953 *) ac_try_echo=$ac_try;;
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956 (eval "$ac_try") 2>&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; }; then
26960 ac_cv_lib_imagehlp_main=yes
26962 echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26965 ac_cv_lib_imagehlp_main=no
26968 rm -f core conftest.err conftest.$ac_objext \
26969 conftest$ac_exeext conftest.$ac_ext
26970 LIBS=$ac_check_lib_save_LIBS
26972 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26973 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26974 if test $ac_cv_lib_imagehlp_main = yes; then
26975 cat >>confdefs.h <<_ACEOF
26976 #define HAVE_LIBIMAGEHLP 1
26979 LIBS="-limagehlp $LIBS"
26984 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26985 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26986 if test "${ac_cv_lib_psapi_main+set}" = set; then
26987 echo $ECHO_N "(cached) $ECHO_C" >&6
26989 ac_check_lib_save_LIBS=$LIBS
26990 LIBS="-lpsapi $LIBS"
26991 cat >conftest.$ac_ext <<_ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h. */
27007 rm -f conftest.$ac_objext conftest$ac_exeext
27008 if { (ac_try="$ac_link"
27009 case "(($ac_try" in
27010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27011 *) ac_try_echo=$ac_try;;
27013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27014 (eval "$ac_link") 2>conftest.er1
27016 grep -v '^ *+' conftest.er1 >conftest.err
27018 cat conftest.err >&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } &&
27021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27022 { (case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_try") 2>&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; } &&
27031 { ac_try='test -s conftest$ac_exeext'
27032 { (case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037 (eval "$ac_try") 2>&5
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; }; then
27041 ac_cv_lib_psapi_main=yes
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27046 ac_cv_lib_psapi_main=no
27049 rm -f core conftest.err conftest.$ac_objext \
27050 conftest$ac_exeext conftest.$ac_ext
27051 LIBS=$ac_check_lib_save_LIBS
27053 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27054 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27055 if test $ac_cv_lib_psapi_main = yes; then
27056 cat >>confdefs.h <<_ACEOF
27057 #define HAVE_LIBPSAPI 1
27060 LIBS="-lpsapi $LIBS"
27066 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27067 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27068 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27069 echo $ECHO_N "(cached) $ECHO_C" >&6
27071 ac_func_search_save_LIBS=$LIBS
27072 cat >conftest.$ac_ext <<_ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h. */
27079 /* Override any GCC internal prototype to avoid an error.
27080 Use char because int might match the return type of a GCC
27081 builtin and then its argument prototype would still apply. */
27089 return lt_dlopen ();
27094 for ac_lib in '' ltdl; do
27095 if test -z "$ac_lib"; then
27096 ac_res="none required"
27099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27101 rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (ac_try="$ac_link"
27103 case "(($ac_try" in
27104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105 *) ac_try_echo=$ac_try;;
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_link") 2>conftest.er1
27110 grep -v '^ *+' conftest.er1 >conftest.err
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } &&
27115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116 { (case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_try") 2>&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest$ac_exeext'
27126 { (case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131 (eval "$ac_try") 2>&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
27135 ac_cv_search_lt_dlopen=$ac_res
27137 echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27143 rm -f core conftest.err conftest.$ac_objext \
27145 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27149 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27152 ac_cv_search_lt_dlopen=no
27154 rm conftest.$ac_ext
27155 LIBS=$ac_func_search_save_LIBS
27157 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27158 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27159 ac_res=$ac_cv_search_lt_dlopen
27160 if test "$ac_res" != no; then
27161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27163 cat >>confdefs.h <<\_ACEOF
27164 #define HAVE_LT_DLOPEN 1
27168 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27169 not be available" >&5
27170 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27171 not be available" >&2;}
27175 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27176 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27177 if test "${ac_cv_search_dlopen+set}" = set; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27180 ac_func_search_save_LIBS=$LIBS
27181 cat >conftest.$ac_ext <<_ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27188 /* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
27203 for ac_lib in '' dl; do
27204 if test -z "$ac_lib"; then
27205 ac_res="none required"
27208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27210 rm -f conftest.$ac_objext conftest$ac_exeext
27211 if { (ac_try="$ac_link"
27212 case "(($ac_try" in
27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214 *) ac_try_echo=$ac_try;;
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217 (eval "$ac_link") 2>conftest.er1
27219 grep -v '^ *+' conftest.er1 >conftest.err
27221 cat conftest.err >&5
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); } &&
27224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27225 { (case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_try") 2>&5
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); }; } &&
27234 { ac_try='test -s conftest$ac_exeext'
27235 { (case "(($ac_try" in
27236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27237 *) ac_try_echo=$ac_try;;
27239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27240 (eval "$ac_try") 2>&5
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); }; }; then
27244 ac_cv_search_dlopen=$ac_res
27246 echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27252 rm -f core conftest.err conftest.$ac_objext \
27254 if test "${ac_cv_search_dlopen+set}" = set; then
27258 if test "${ac_cv_search_dlopen+set}" = set; then
27261 ac_cv_search_dlopen=no
27263 rm conftest.$ac_ext
27264 LIBS=$ac_func_search_save_LIBS
27266 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27267 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27268 ac_res=$ac_cv_search_dlopen
27269 if test "$ac_res" != no; then
27270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27272 cat >>confdefs.h <<\_ACEOF
27273 #define HAVE_DLOPEN 1
27277 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27278 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27282 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27283 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27284 if test "${ac_cv_search_mallinfo+set}" = set; then
27285 echo $ECHO_N "(cached) $ECHO_C" >&6
27287 ac_func_search_save_LIBS=$LIBS
27288 cat >conftest.$ac_ext <<_ACEOF
27291 cat confdefs.h >>conftest.$ac_ext
27292 cat >>conftest.$ac_ext <<_ACEOF
27293 /* end confdefs.h. */
27295 /* Override any GCC internal prototype to avoid an error.
27296 Use char because int might match the return type of a GCC
27297 builtin and then its argument prototype would still apply. */
27305 return mallinfo ();
27310 for ac_lib in '' malloc; do
27311 if test -z "$ac_lib"; then
27312 ac_res="none required"
27315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27317 rm -f conftest.$ac_objext conftest$ac_exeext
27318 if { (ac_try="$ac_link"
27319 case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324 (eval "$ac_link") 2>conftest.er1
27326 grep -v '^ *+' conftest.er1 >conftest.err
27328 cat conftest.err >&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } &&
27331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27332 { (case "(($ac_try" in
27333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27334 *) ac_try_echo=$ac_try;;
27336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27337 (eval "$ac_try") 2>&5
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); }; } &&
27341 { ac_try='test -s conftest$ac_exeext'
27342 { (case "(($ac_try" in
27343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27344 *) ac_try_echo=$ac_try;;
27346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27347 (eval "$ac_try") 2>&5
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); }; }; then
27351 ac_cv_search_mallinfo=$ac_res
27353 echo "$as_me: failed program was:" >&5
27354 sed 's/^/| /' conftest.$ac_ext >&5
27359 rm -f core conftest.err conftest.$ac_objext \
27361 if test "${ac_cv_search_mallinfo+set}" = set; then
27365 if test "${ac_cv_search_mallinfo+set}" = set; then
27368 ac_cv_search_mallinfo=no
27370 rm conftest.$ac_ext
27371 LIBS=$ac_func_search_save_LIBS
27373 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27374 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27375 ac_res=$ac_cv_search_mallinfo
27376 if test "$ac_res" != no; then
27377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27379 cat >>confdefs.h <<\_ACEOF
27380 #define HAVE_MALLINFO 1
27386 if test "$ENABLE_THREADS" -eq 1 ; then
27388 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27389 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27390 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27391 echo $ECHO_N "(cached) $ECHO_C" >&6
27393 ac_check_lib_save_LIBS=$LIBS
27394 LIBS="-lpthread $LIBS"
27395 cat >conftest.$ac_ext <<_ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h. */
27402 /* Override any GCC internal prototype to avoid an error.
27403 Use char because int might match the return type of a GCC
27404 builtin and then its argument prototype would still apply. */
27408 char pthread_mutex_init ();
27412 return pthread_mutex_init ();
27417 rm -f conftest.$ac_objext conftest$ac_exeext
27418 if { (ac_try="$ac_link"
27419 case "(($ac_try" in
27420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421 *) ac_try_echo=$ac_try;;
27423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424 (eval "$ac_link") 2>conftest.er1
27426 grep -v '^ *+' conftest.er1 >conftest.err
27428 cat conftest.err >&5
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); } &&
27431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27432 { (case "(($ac_try" in
27433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434 *) ac_try_echo=$ac_try;;
27436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437 (eval "$ac_try") 2>&5
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); }; } &&
27441 { ac_try='test -s conftest$ac_exeext'
27442 { (case "(($ac_try" in
27443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27444 *) ac_try_echo=$ac_try;;
27446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27447 (eval "$ac_try") 2>&5
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; }; then
27451 ac_cv_lib_pthread_pthread_mutex_init=yes
27453 echo "$as_me: failed program was:" >&5
27454 sed 's/^/| /' conftest.$ac_ext >&5
27456 ac_cv_lib_pthread_pthread_mutex_init=no
27459 rm -f core conftest.err conftest.$ac_objext \
27460 conftest$ac_exeext conftest.$ac_ext
27461 LIBS=$ac_check_lib_save_LIBS
27463 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27464 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27465 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27466 cat >>confdefs.h <<_ACEOF
27467 #define HAVE_LIBPTHREAD 1
27470 LIBS="-lpthread $LIBS"
27474 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27475 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27476 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27479 ac_func_search_save_LIBS=$LIBS
27480 cat >conftest.$ac_ext <<_ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27487 /* Override any GCC internal prototype to avoid an error.
27488 Use char because int might match the return type of a GCC
27489 builtin and then its argument prototype would still apply. */
27493 char pthread_mutex_lock ();
27497 return pthread_mutex_lock ();
27502 for ac_lib in '' pthread; do
27503 if test -z "$ac_lib"; then
27504 ac_res="none required"
27507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27509 rm -f conftest.$ac_objext conftest$ac_exeext
27510 if { (ac_try="$ac_link"
27511 case "(($ac_try" in
27512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513 *) ac_try_echo=$ac_try;;
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516 (eval "$ac_link") 2>conftest.er1
27518 grep -v '^ *+' conftest.er1 >conftest.err
27520 cat conftest.err >&5
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); } &&
27523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27524 { (case "(($ac_try" in
27525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27526 *) ac_try_echo=$ac_try;;
27528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27529 (eval "$ac_try") 2>&5
27531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532 (exit $ac_status); }; } &&
27533 { ac_try='test -s conftest$ac_exeext'
27534 { (case "(($ac_try" in
27535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27536 *) ac_try_echo=$ac_try;;
27538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27539 (eval "$ac_try") 2>&5
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); }; }; then
27543 ac_cv_search_pthread_mutex_lock=$ac_res
27545 echo "$as_me: failed program was:" >&5
27546 sed 's/^/| /' conftest.$ac_ext >&5
27551 rm -f core conftest.err conftest.$ac_objext \
27553 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27557 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27560 ac_cv_search_pthread_mutex_lock=no
27562 rm conftest.$ac_ext
27563 LIBS=$ac_func_search_save_LIBS
27565 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27566 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27567 ac_res=$ac_cv_search_pthread_mutex_lock
27568 if test "$ac_res" != no; then
27569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27571 cat >>confdefs.h <<\_ACEOF
27572 #define HAVE_PTHREAD_MUTEX_LOCK 1
27585 ac_header_dirent=no
27586 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27587 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27588 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27589 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27593 cat >conftest.$ac_ext <<_ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h. */
27599 #include <sys/types.h>
27611 rm -f conftest.$ac_objext
27612 if { (ac_try="$ac_compile"
27613 case "(($ac_try" in
27614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27615 *) ac_try_echo=$ac_try;;
27617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27618 (eval "$ac_compile") 2>conftest.er1
27620 grep -v '^ *+' conftest.er1 >conftest.err
27622 cat conftest.err >&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); } &&
27625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27626 { (case "(($ac_try" in
27627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27628 *) ac_try_echo=$ac_try;;
27630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631 (eval "$ac_try") 2>&5
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; } &&
27635 { ac_try='test -s conftest.$ac_objext'
27636 { (case "(($ac_try" in
27637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27638 *) ac_try_echo=$ac_try;;
27640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27641 (eval "$ac_try") 2>&5
27643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644 (exit $ac_status); }; }; then
27645 eval "$as_ac_Header=yes"
27647 echo "$as_me: failed program was:" >&5
27648 sed 's/^/| /' conftest.$ac_ext >&5
27650 eval "$as_ac_Header=no"
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27655 ac_res=`eval echo '${'$as_ac_Header'}'`
27656 { echo "$as_me:$LINENO: result: $ac_res" >&5
27657 echo "${ECHO_T}$ac_res" >&6; }
27658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27659 cat >>confdefs.h <<_ACEOF
27660 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27663 ac_header_dirent=$ac_hdr; break
27667 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27668 if test $ac_header_dirent = dirent.h; then
27669 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27670 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27671 if test "${ac_cv_search_opendir+set}" = set; then
27672 echo $ECHO_N "(cached) $ECHO_C" >&6
27674 ac_func_search_save_LIBS=$LIBS
27675 cat >conftest.$ac_ext <<_ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h. */
27682 /* Override any GCC internal prototype to avoid an error.
27683 Use char because int might match the return type of a GCC
27684 builtin and then its argument prototype would still apply. */
27697 for ac_lib in '' dir; do
27698 if test -z "$ac_lib"; then
27699 ac_res="none required"
27702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27704 rm -f conftest.$ac_objext conftest$ac_exeext
27705 if { (ac_try="$ac_link"
27706 case "(($ac_try" in
27707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708 *) ac_try_echo=$ac_try;;
27710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711 (eval "$ac_link") 2>conftest.er1
27713 grep -v '^ *+' conftest.er1 >conftest.err
27715 cat conftest.err >&5
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); } &&
27718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27719 { (case "(($ac_try" in
27720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721 *) ac_try_echo=$ac_try;;
27723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724 (eval "$ac_try") 2>&5
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; } &&
27728 { ac_try='test -s conftest$ac_exeext'
27729 { (case "(($ac_try" in
27730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27731 *) ac_try_echo=$ac_try;;
27733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27734 (eval "$ac_try") 2>&5
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; }; then
27738 ac_cv_search_opendir=$ac_res
27740 echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27746 rm -f core conftest.err conftest.$ac_objext \
27748 if test "${ac_cv_search_opendir+set}" = set; then
27752 if test "${ac_cv_search_opendir+set}" = set; then
27755 ac_cv_search_opendir=no
27757 rm conftest.$ac_ext
27758 LIBS=$ac_func_search_save_LIBS
27760 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27761 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27762 ac_res=$ac_cv_search_opendir
27763 if test "$ac_res" != no; then
27764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27769 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27770 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27771 if test "${ac_cv_search_opendir+set}" = set; then
27772 echo $ECHO_N "(cached) $ECHO_C" >&6
27774 ac_func_search_save_LIBS=$LIBS
27775 cat >conftest.$ac_ext <<_ACEOF
27778 cat confdefs.h >>conftest.$ac_ext
27779 cat >>conftest.$ac_ext <<_ACEOF
27780 /* end confdefs.h. */
27782 /* Override any GCC internal prototype to avoid an error.
27783 Use char because int might match the return type of a GCC
27784 builtin and then its argument prototype would still apply. */
27797 for ac_lib in '' x; do
27798 if test -z "$ac_lib"; then
27799 ac_res="none required"
27802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27804 rm -f conftest.$ac_objext conftest$ac_exeext
27805 if { (ac_try="$ac_link"
27806 case "(($ac_try" in
27807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27808 *) ac_try_echo=$ac_try;;
27810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27811 (eval "$ac_link") 2>conftest.er1
27813 grep -v '^ *+' conftest.er1 >conftest.err
27815 cat conftest.err >&5
27816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); } &&
27818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27819 { (case "(($ac_try" in
27820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27821 *) ac_try_echo=$ac_try;;
27823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27824 (eval "$ac_try") 2>&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); }; } &&
27828 { ac_try='test -s conftest$ac_exeext'
27829 { (case "(($ac_try" in
27830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27831 *) ac_try_echo=$ac_try;;
27833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27834 (eval "$ac_try") 2>&5
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); }; }; then
27838 ac_cv_search_opendir=$ac_res
27840 echo "$as_me: failed program was:" >&5
27841 sed 's/^/| /' conftest.$ac_ext >&5
27846 rm -f core conftest.err conftest.$ac_objext \
27848 if test "${ac_cv_search_opendir+set}" = set; then
27852 if test "${ac_cv_search_opendir+set}" = set; then
27855 ac_cv_search_opendir=no
27857 rm conftest.$ac_ext
27858 LIBS=$ac_func_search_save_LIBS
27860 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27861 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27862 ac_res=$ac_cv_search_opendir
27863 if test "$ac_res" != no; then
27864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27870 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27871 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27872 if test "${ac_cv_header_mmap_anon+set}" = set; then
27873 echo $ECHO_N "(cached) $ECHO_C" >&6
27876 ac_cpp='$CPP $CPPFLAGS'
27877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27881 cat >conftest.$ac_ext <<_ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h. */
27887 #include <sys/mman.h>
27888 #include <unistd.h>
27893 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27898 rm -f conftest.$ac_objext
27899 if { (ac_try="$ac_compile"
27900 case "(($ac_try" in
27901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902 *) ac_try_echo=$ac_try;;
27904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905 (eval "$ac_compile") 2>conftest.er1
27907 grep -v '^ *+' conftest.er1 >conftest.err
27909 cat conftest.err >&5
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); } &&
27912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27913 { (case "(($ac_try" in
27914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915 *) ac_try_echo=$ac_try;;
27917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918 (eval "$ac_try") 2>&5
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); }; } &&
27922 { ac_try='test -s conftest.$ac_objext'
27923 { (case "(($ac_try" in
27924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925 *) ac_try_echo=$ac_try;;
27927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928 (eval "$ac_try") 2>&5
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); }; }; then
27932 ac_cv_header_mmap_anon=yes
27934 echo "$as_me: failed program was:" >&5
27935 sed 's/^/| /' conftest.$ac_ext >&5
27937 ac_cv_header_mmap_anon=no
27940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27942 ac_cpp='$CPP $CPPFLAGS'
27943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27949 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27950 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27951 if test "$ac_cv_header_mmap_anon" = yes; then
27953 cat >>confdefs.h <<\_ACEOF
27954 #define HAVE_MMAP_ANONYMOUS 1
27959 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27960 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27961 if test "${ac_cv_header_stat_broken+set}" = set; then
27962 echo $ECHO_N "(cached) $ECHO_C" >&6
27964 cat >conftest.$ac_ext <<_ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h. */
27970 #include <sys/types.h>
27971 #include <sys/stat.h>
27973 #if defined S_ISBLK && defined S_IFDIR
27974 # if S_ISBLK (S_IFDIR)
27979 #if defined S_ISBLK && defined S_IFCHR
27980 # if S_ISBLK (S_IFCHR)
27985 #if defined S_ISLNK && defined S_IFREG
27986 # if S_ISLNK (S_IFREG)
27991 #if defined S_ISSOCK && defined S_IFREG
27992 # if S_ISSOCK (S_IFREG)
27998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27999 $EGREP "You lose" >/dev/null 2>&1; then
28000 ac_cv_header_stat_broken=yes
28002 ac_cv_header_stat_broken=no
28007 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28009 if test $ac_cv_header_stat_broken = yes; then
28011 cat >>confdefs.h <<\_ACEOF
28012 #define STAT_MACROS_BROKEN 1
28017 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28018 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28019 if test "${ac_cv_header_stdc+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28022 cat >conftest.$ac_ext <<_ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h. */
28028 #include <stdlib.h>
28029 #include <stdarg.h>
28030 #include <string.h>
28041 rm -f conftest.$ac_objext
28042 if { (ac_try="$ac_compile"
28043 case "(($ac_try" in
28044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045 *) ac_try_echo=$ac_try;;
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048 (eval "$ac_compile") 2>conftest.er1
28050 grep -v '^ *+' conftest.er1 >conftest.err
28052 cat conftest.err >&5
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); } &&
28055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28056 { (case "(($ac_try" in
28057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058 *) ac_try_echo=$ac_try;;
28060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061 (eval "$ac_try") 2>&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; } &&
28065 { ac_try='test -s conftest.$ac_objext'
28066 { (case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_try") 2>&5
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; }; then
28075 ac_cv_header_stdc=yes
28077 echo "$as_me: failed program was:" >&5
28078 sed 's/^/| /' conftest.$ac_ext >&5
28080 ac_cv_header_stdc=no
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28085 if test $ac_cv_header_stdc = yes; then
28086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28087 cat >conftest.$ac_ext <<_ACEOF
28090 cat confdefs.h >>conftest.$ac_ext
28091 cat >>conftest.$ac_ext <<_ACEOF
28092 /* end confdefs.h. */
28093 #include <string.h>
28096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28097 $EGREP "memchr" >/dev/null 2>&1; then
28100 ac_cv_header_stdc=no
28106 if test $ac_cv_header_stdc = yes; then
28107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28108 cat >conftest.$ac_ext <<_ACEOF
28111 cat confdefs.h >>conftest.$ac_ext
28112 cat >>conftest.$ac_ext <<_ACEOF
28113 /* end confdefs.h. */
28114 #include <stdlib.h>
28117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28118 $EGREP "free" >/dev/null 2>&1; then
28121 ac_cv_header_stdc=no
28127 if test $ac_cv_header_stdc = yes; then
28128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28129 if test "$cross_compiling" = yes; then
28132 cat >conftest.$ac_ext <<_ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h. */
28139 #include <stdlib.h>
28140 #if ((' ' & 0x0FF) == 0x020)
28141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28144 # define ISLOWER(c) \
28145 (('a' <= (c) && (c) <= 'i') \
28146 || ('j' <= (c) && (c) <= 'r') \
28147 || ('s' <= (c) && (c) <= 'z'))
28148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28156 for (i = 0; i < 256; i++)
28157 if (XOR (islower (i), ISLOWER (i))
28158 || toupper (i) != TOUPPER (i))
28163 rm -f conftest$ac_exeext
28164 if { (ac_try="$ac_link"
28165 case "(($ac_try" in
28166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167 *) ac_try_echo=$ac_try;;
28169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170 (eval "$ac_link") 2>&5
28172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28174 { (case "(($ac_try" in
28175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176 *) ac_try_echo=$ac_try;;
28178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179 (eval "$ac_try") 2>&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; }; then
28185 echo "$as_me: program exited with status $ac_status" >&5
28186 echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28189 ( exit $ac_status )
28190 ac_cv_header_stdc=no
28192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28198 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28199 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28200 if test $ac_cv_header_stdc = yes; then
28202 cat >>confdefs.h <<\_ACEOF
28203 #define STDC_HEADERS 1
28208 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28209 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28210 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28211 echo $ECHO_N "(cached) $ECHO_C" >&6
28213 cat >conftest.$ac_ext <<_ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h. */
28219 #include <sys/types.h>
28220 #include <sys/wait.h>
28221 #ifndef WEXITSTATUS
28222 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28225 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28233 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28238 rm -f conftest.$ac_objext
28239 if { (ac_try="$ac_compile"
28240 case "(($ac_try" in
28241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242 *) ac_try_echo=$ac_try;;
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245 (eval "$ac_compile") 2>conftest.er1
28247 grep -v '^ *+' conftest.er1 >conftest.err
28249 cat conftest.err >&5
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); } &&
28252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28253 { (case "(($ac_try" in
28254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28255 *) ac_try_echo=$ac_try;;
28257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28258 (eval "$ac_try") 2>&5
28260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261 (exit $ac_status); }; } &&
28262 { ac_try='test -s conftest.$ac_objext'
28263 { (case "(($ac_try" in
28264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265 *) ac_try_echo=$ac_try;;
28267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268 (eval "$ac_try") 2>&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); }; }; then
28272 ac_cv_header_sys_wait_h=yes
28274 echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28277 ac_cv_header_sys_wait_h=no
28280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28282 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28283 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28284 if test $ac_cv_header_sys_wait_h = yes; then
28286 cat >>confdefs.h <<\_ACEOF
28287 #define HAVE_SYS_WAIT_H 1
28292 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28293 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28294 if test "${ac_cv_header_time+set}" = set; then
28295 echo $ECHO_N "(cached) $ECHO_C" >&6
28297 cat >conftest.$ac_ext <<_ACEOF
28300 cat confdefs.h >>conftest.$ac_ext
28301 cat >>conftest.$ac_ext <<_ACEOF
28302 /* end confdefs.h. */
28303 #include <sys/types.h>
28304 #include <sys/time.h>
28310 if ((struct tm *) 0)
28316 rm -f conftest.$ac_objext
28317 if { (ac_try="$ac_compile"
28318 case "(($ac_try" in
28319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320 *) ac_try_echo=$ac_try;;
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323 (eval "$ac_compile") 2>conftest.er1
28325 grep -v '^ *+' conftest.er1 >conftest.err
28327 cat conftest.err >&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); } &&
28330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28331 { (case "(($ac_try" in
28332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333 *) ac_try_echo=$ac_try;;
28335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336 (eval "$ac_try") 2>&5
28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); }; } &&
28340 { ac_try='test -s conftest.$ac_objext'
28341 { (case "(($ac_try" in
28342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343 *) ac_try_echo=$ac_try;;
28345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346 (eval "$ac_try") 2>&5
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); }; }; then
28350 ac_cv_header_time=yes
28352 echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28355 ac_cv_header_time=no
28358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28360 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28361 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28362 if test $ac_cv_header_time = yes; then
28364 cat >>confdefs.h <<\_ACEOF
28365 #define TIME_WITH_SYS_TIME 1
28377 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28384 echo $ECHO_N "(cached) $ECHO_C" >&6
28386 ac_res=`eval echo '${'$as_ac_Header'}'`
28387 { echo "$as_me:$LINENO: result: $ac_res" >&5
28388 echo "${ECHO_T}$ac_res" >&6; }
28390 # Is the header compilable?
28391 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28393 cat >conftest.$ac_ext <<_ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h. */
28399 $ac_includes_default
28400 #include <$ac_header>
28402 rm -f conftest.$ac_objext
28403 if { (ac_try="$ac_compile"
28404 case "(($ac_try" in
28405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406 *) ac_try_echo=$ac_try;;
28408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409 (eval "$ac_compile") 2>conftest.er1
28411 grep -v '^ *+' conftest.er1 >conftest.err
28413 cat conftest.err >&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } &&
28416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28417 { (case "(($ac_try" in
28418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419 *) ac_try_echo=$ac_try;;
28421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422 (eval "$ac_try") 2>&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; } &&
28426 { ac_try='test -s conftest.$ac_objext'
28427 { (case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_try") 2>&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; }; then
28436 ac_header_compiler=yes
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28441 ac_header_compiler=no
28444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28446 echo "${ECHO_T}$ac_header_compiler" >&6; }
28448 # Is the header present?
28449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28451 cat >conftest.$ac_ext <<_ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h. */
28457 #include <$ac_header>
28459 if { (ac_try="$ac_cpp conftest.$ac_ext"
28460 case "(($ac_try" in
28461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462 *) ac_try_echo=$ac_try;;
28464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28467 grep -v '^ *+' conftest.er1 >conftest.err
28469 cat conftest.err >&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } >/dev/null; then
28472 if test -s conftest.err; then
28473 ac_cpp_err=$ac_c_preproc_warn_flag
28474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28481 if test -z "$ac_cpp_err"; then
28482 ac_header_preproc=yes
28484 echo "$as_me: failed program was:" >&5
28485 sed 's/^/| /' conftest.$ac_ext >&5
28487 ac_header_preproc=no
28490 rm -f conftest.err conftest.$ac_ext
28491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28492 echo "${ECHO_T}$ac_header_preproc" >&6; }
28494 # So? What about this header?
28495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28501 ac_header_preproc=yes
28504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28517 ## ----------------------------------- ##
28518 ## Report this to llvmbugs@cs.uiuc.edu ##
28519 ## ----------------------------------- ##
28521 ) | sed "s/^/$as_me: WARNING: /" >&2
28524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28527 echo $ECHO_N "(cached) $ECHO_C" >&6
28529 eval "$as_ac_Header=\$ac_header_preproc"
28531 ac_res=`eval echo '${'$as_ac_Header'}'`
28532 { echo "$as_me:$LINENO: result: $ac_res" >&5
28533 echo "${ECHO_T}$ac_res" >&6; }
28536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28537 cat >>confdefs.h <<_ACEOF
28538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28551 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28558 echo $ECHO_N "(cached) $ECHO_C" >&6
28560 ac_res=`eval echo '${'$as_ac_Header'}'`
28561 { echo "$as_me:$LINENO: result: $ac_res" >&5
28562 echo "${ECHO_T}$ac_res" >&6; }
28564 # Is the header compilable?
28565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28567 cat >conftest.$ac_ext <<_ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h. */
28573 $ac_includes_default
28574 #include <$ac_header>
28576 rm -f conftest.$ac_objext
28577 if { (ac_try="$ac_compile"
28578 case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_compile") 2>conftest.er1
28585 grep -v '^ *+' conftest.er1 >conftest.err
28587 cat conftest.err >&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } &&
28590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28591 { (case "(($ac_try" in
28592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596 (eval "$ac_try") 2>&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; } &&
28600 { ac_try='test -s conftest.$ac_objext'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 ac_header_compiler=yes
28612 echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28615 ac_header_compiler=no
28618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28620 echo "${ECHO_T}$ac_header_compiler" >&6; }
28622 # Is the header present?
28623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28625 cat >conftest.$ac_ext <<_ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h. */
28631 #include <$ac_header>
28633 if { (ac_try="$ac_cpp conftest.$ac_ext"
28634 case "(($ac_try" in
28635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28636 *) ac_try_echo=$ac_try;;
28638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28641 grep -v '^ *+' conftest.er1 >conftest.err
28643 cat conftest.err >&5
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); } >/dev/null; then
28646 if test -s conftest.err; then
28647 ac_cpp_err=$ac_c_preproc_warn_flag
28648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28655 if test -z "$ac_cpp_err"; then
28656 ac_header_preproc=yes
28658 echo "$as_me: failed program was:" >&5
28659 sed 's/^/| /' conftest.$ac_ext >&5
28661 ac_header_preproc=no
28664 rm -f conftest.err conftest.$ac_ext
28665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28666 echo "${ECHO_T}$ac_header_preproc" >&6; }
28668 # So? What about this header?
28669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28675 ac_header_preproc=yes
28678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28691 ## ----------------------------------- ##
28692 ## Report this to llvmbugs@cs.uiuc.edu ##
28693 ## ----------------------------------- ##
28695 ) | sed "s/^/$as_me: WARNING: /" >&2
28698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28701 echo $ECHO_N "(cached) $ECHO_C" >&6
28703 eval "$as_ac_Header=\$ac_header_preproc"
28705 ac_res=`eval echo '${'$as_ac_Header'}'`
28706 { echo "$as_me:$LINENO: result: $ac_res" >&5
28707 echo "${ECHO_T}$ac_res" >&6; }
28710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28711 cat >>confdefs.h <<_ACEOF
28712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28724 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28733 ac_res=`eval echo '${'$as_ac_Header'}'`
28734 { echo "$as_me:$LINENO: result: $ac_res" >&5
28735 echo "${ECHO_T}$ac_res" >&6; }
28737 # Is the header compilable?
28738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28740 cat >conftest.$ac_ext <<_ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h. */
28746 $ac_includes_default
28747 #include <$ac_header>
28749 rm -f conftest.$ac_objext
28750 if { (ac_try="$ac_compile"
28751 case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_compile") 2>conftest.er1
28758 grep -v '^ *+' conftest.er1 >conftest.err
28760 cat conftest.err >&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); } &&
28763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28764 { (case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_try") 2>&5
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; } &&
28773 { ac_try='test -s conftest.$ac_objext'
28774 { (case "(($ac_try" in
28775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776 *) ac_try_echo=$ac_try;;
28778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779 (eval "$ac_try") 2>&5
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
28783 ac_header_compiler=yes
28785 echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28788 ac_header_compiler=no
28791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28793 echo "${ECHO_T}$ac_header_compiler" >&6; }
28795 # Is the header present?
28796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28798 cat >conftest.$ac_ext <<_ACEOF
28801 cat confdefs.h >>conftest.$ac_ext
28802 cat >>conftest.$ac_ext <<_ACEOF
28803 /* end confdefs.h. */
28804 #include <$ac_header>
28806 if { (ac_try="$ac_cpp conftest.$ac_ext"
28807 case "(($ac_try" in
28808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809 *) ac_try_echo=$ac_try;;
28811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28814 grep -v '^ *+' conftest.er1 >conftest.err
28816 cat conftest.err >&5
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); } >/dev/null; then
28819 if test -s conftest.err; then
28820 ac_cpp_err=$ac_c_preproc_warn_flag
28821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28828 if test -z "$ac_cpp_err"; then
28829 ac_header_preproc=yes
28831 echo "$as_me: failed program was:" >&5
28832 sed 's/^/| /' conftest.$ac_ext >&5
28834 ac_header_preproc=no
28837 rm -f conftest.err conftest.$ac_ext
28838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28839 echo "${ECHO_T}$ac_header_preproc" >&6; }
28841 # So? What about this header?
28842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28848 ac_header_preproc=yes
28851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28864 ## ----------------------------------- ##
28865 ## Report this to llvmbugs@cs.uiuc.edu ##
28866 ## ----------------------------------- ##
28868 ) | sed "s/^/$as_me: WARNING: /" >&2
28871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28874 echo $ECHO_N "(cached) $ECHO_C" >&6
28876 eval "$as_ac_Header=\$ac_header_preproc"
28878 ac_res=`eval echo '${'$as_ac_Header'}'`
28879 { echo "$as_me:$LINENO: result: $ac_res" >&5
28880 echo "${ECHO_T}$ac_res" >&6; }
28883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28884 cat >>confdefs.h <<_ACEOF
28885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28895 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28902 echo $ECHO_N "(cached) $ECHO_C" >&6
28904 ac_res=`eval echo '${'$as_ac_Header'}'`
28905 { echo "$as_me:$LINENO: result: $ac_res" >&5
28906 echo "${ECHO_T}$ac_res" >&6; }
28908 # Is the header compilable?
28909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28911 cat >conftest.$ac_ext <<_ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h. */
28917 $ac_includes_default
28918 #include <$ac_header>
28920 rm -f conftest.$ac_objext
28921 if { (ac_try="$ac_compile"
28922 case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_compile") 2>conftest.er1
28929 grep -v '^ *+' conftest.er1 >conftest.err
28931 cat conftest.err >&5
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); } &&
28934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28935 { (case "(($ac_try" in
28936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937 *) ac_try_echo=$ac_try;;
28939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940 (eval "$ac_try") 2>&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; } &&
28944 { ac_try='test -s conftest.$ac_objext'
28945 { (case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_try") 2>&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); }; }; then
28954 ac_header_compiler=yes
28956 echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28959 ac_header_compiler=no
28962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28964 echo "${ECHO_T}$ac_header_compiler" >&6; }
28966 # Is the header present?
28967 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28969 cat >conftest.$ac_ext <<_ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h. */
28975 #include <$ac_header>
28977 if { (ac_try="$ac_cpp conftest.$ac_ext"
28978 case "(($ac_try" in
28979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28980 *) ac_try_echo=$ac_try;;
28982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28985 grep -v '^ *+' conftest.er1 >conftest.err
28987 cat conftest.err >&5
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); } >/dev/null; then
28990 if test -s conftest.err; then
28991 ac_cpp_err=$ac_c_preproc_warn_flag
28992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28999 if test -z "$ac_cpp_err"; then
29000 ac_header_preproc=yes
29002 echo "$as_me: failed program was:" >&5
29003 sed 's/^/| /' conftest.$ac_ext >&5
29005 ac_header_preproc=no
29008 rm -f conftest.err conftest.$ac_ext
29009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29010 echo "${ECHO_T}$ac_header_preproc" >&6; }
29012 # So? What about this header?
29013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29019 ac_header_preproc=yes
29022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29035 ## ----------------------------------- ##
29036 ## Report this to llvmbugs@cs.uiuc.edu ##
29037 ## ----------------------------------- ##
29039 ) | sed "s/^/$as_me: WARNING: /" >&2
29042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29045 echo $ECHO_N "(cached) $ECHO_C" >&6
29047 eval "$as_ac_Header=\$ac_header_preproc"
29049 ac_res=`eval echo '${'$as_ac_Header'}'`
29050 { echo "$as_me:$LINENO: result: $ac_res" >&5
29051 echo "${ECHO_T}$ac_res" >&6; }
29054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29055 cat >>confdefs.h <<_ACEOF
29056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29063 if test "$ENABLE_THREADS" -eq 1 ; then
29064 if test "${ac_cv_header_pthread_h+set}" = set; then
29065 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29066 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29067 if test "${ac_cv_header_pthread_h+set}" = set; then
29068 echo $ECHO_N "(cached) $ECHO_C" >&6
29070 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29071 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29073 # Is the header compilable?
29074 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29075 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29076 cat >conftest.$ac_ext <<_ACEOF
29079 cat confdefs.h >>conftest.$ac_ext
29080 cat >>conftest.$ac_ext <<_ACEOF
29081 /* end confdefs.h. */
29082 $ac_includes_default
29083 #include <pthread.h>
29085 rm -f conftest.$ac_objext
29086 if { (ac_try="$ac_compile"
29087 case "(($ac_try" in
29088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089 *) ac_try_echo=$ac_try;;
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092 (eval "$ac_compile") 2>conftest.er1
29094 grep -v '^ *+' conftest.er1 >conftest.err
29096 cat conftest.err >&5
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); } &&
29099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29100 { (case "(($ac_try" in
29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102 *) ac_try_echo=$ac_try;;
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_try") 2>&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest.$ac_objext'
29110 { (case "(($ac_try" in
29111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112 *) ac_try_echo=$ac_try;;
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115 (eval "$ac_try") 2>&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; }; then
29119 ac_header_compiler=yes
29121 echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29124 ac_header_compiler=no
29127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29129 echo "${ECHO_T}$ac_header_compiler" >&6; }
29131 # Is the header present?
29132 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29133 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29134 cat >conftest.$ac_ext <<_ACEOF
29137 cat confdefs.h >>conftest.$ac_ext
29138 cat >>conftest.$ac_ext <<_ACEOF
29139 /* end confdefs.h. */
29140 #include <pthread.h>
29142 if { (ac_try="$ac_cpp conftest.$ac_ext"
29143 case "(($ac_try" in
29144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145 *) ac_try_echo=$ac_try;;
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29150 grep -v '^ *+' conftest.er1 >conftest.err
29152 cat conftest.err >&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } >/dev/null; then
29155 if test -s conftest.err; then
29156 ac_cpp_err=$ac_c_preproc_warn_flag
29157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29164 if test -z "$ac_cpp_err"; then
29165 ac_header_preproc=yes
29167 echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29170 ac_header_preproc=no
29173 rm -f conftest.err conftest.$ac_ext
29174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29175 echo "${ECHO_T}$ac_header_preproc" >&6; }
29177 # So? What about this header?
29178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29180 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29181 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29182 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29183 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29184 ac_header_preproc=yes
29187 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29188 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29190 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29191 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29192 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29193 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29194 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29195 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29196 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29197 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29198 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29200 ## ----------------------------------- ##
29201 ## Report this to llvmbugs@cs.uiuc.edu ##
29202 ## ----------------------------------- ##
29204 ) | sed "s/^/$as_me: WARNING: /" >&2
29207 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29208 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29209 if test "${ac_cv_header_pthread_h+set}" = set; then
29210 echo $ECHO_N "(cached) $ECHO_C" >&6
29212 ac_cv_header_pthread_h=$ac_header_preproc
29214 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29215 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29218 if test $ac_cv_header_pthread_h = yes; then
29234 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29235 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29236 if test "${ac_cv_huge_val_sanity+set}" = set; then
29237 echo $ECHO_N "(cached) $ECHO_C" >&6
29241 ac_cpp='$CXXCPP $CPPFLAGS'
29242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29247 if test "$cross_compiling" = yes; then
29248 ac_cv_huge_val_sanity=yes
29250 cat >conftest.$ac_ext <<_ACEOF
29253 cat confdefs.h >>conftest.$ac_ext
29254 cat >>conftest.$ac_ext <<_ACEOF
29255 /* end confdefs.h. */
29260 double x = HUGE_VAL; return x != x;
29265 rm -f conftest$ac_exeext
29266 if { (ac_try="$ac_link"
29267 case "(($ac_try" in
29268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29269 *) ac_try_echo=$ac_try;;
29271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29272 (eval "$ac_link") 2>&5
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29276 { (case "(($ac_try" in
29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278 *) ac_try_echo=$ac_try;;
29280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281 (eval "$ac_try") 2>&5
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); }; }; then
29285 ac_cv_huge_val_sanity=yes
29287 echo "$as_me: program exited with status $ac_status" >&5
29288 echo "$as_me: failed program was:" >&5
29289 sed 's/^/| /' conftest.$ac_ext >&5
29291 ( exit $ac_status )
29292 ac_cv_huge_val_sanity=no
29294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29299 ac_cpp='$CPP $CPPFLAGS'
29300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29306 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29307 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29308 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29311 { echo "$as_me:$LINENO: checking for pid_t" >&5
29312 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29313 if test "${ac_cv_type_pid_t+set}" = set; then
29314 echo $ECHO_N "(cached) $ECHO_C" >&6
29316 cat >conftest.$ac_ext <<_ACEOF
29319 cat confdefs.h >>conftest.$ac_ext
29320 cat >>conftest.$ac_ext <<_ACEOF
29321 /* end confdefs.h. */
29322 $ac_includes_default
29323 typedef pid_t ac__type_new_;
29327 if ((ac__type_new_ *) 0)
29329 if (sizeof (ac__type_new_))
29335 rm -f conftest.$ac_objext
29336 if { (ac_try="$ac_compile"
29337 case "(($ac_try" in
29338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339 *) ac_try_echo=$ac_try;;
29341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342 (eval "$ac_compile") 2>conftest.er1
29344 grep -v '^ *+' conftest.er1 >conftest.err
29346 cat conftest.err >&5
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); } &&
29349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29350 { (case "(($ac_try" in
29351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352 *) ac_try_echo=$ac_try;;
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355 (eval "$ac_try") 2>&5
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); }; } &&
29359 { ac_try='test -s conftest.$ac_objext'
29360 { (case "(($ac_try" in
29361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362 *) ac_try_echo=$ac_try;;
29364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365 (eval "$ac_try") 2>&5
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); }; }; then
29369 ac_cv_type_pid_t=yes
29371 echo "$as_me: failed program was:" >&5
29372 sed 's/^/| /' conftest.$ac_ext >&5
29374 ac_cv_type_pid_t=no
29377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29379 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29380 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29381 if test $ac_cv_type_pid_t = yes; then
29385 cat >>confdefs.h <<_ACEOF
29391 { echo "$as_me:$LINENO: checking for size_t" >&5
29392 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29393 if test "${ac_cv_type_size_t+set}" = set; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29396 cat >conftest.$ac_ext <<_ACEOF
29399 cat confdefs.h >>conftest.$ac_ext
29400 cat >>conftest.$ac_ext <<_ACEOF
29401 /* end confdefs.h. */
29402 $ac_includes_default
29403 typedef size_t ac__type_new_;
29407 if ((ac__type_new_ *) 0)
29409 if (sizeof (ac__type_new_))
29415 rm -f conftest.$ac_objext
29416 if { (ac_try="$ac_compile"
29417 case "(($ac_try" in
29418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29419 *) ac_try_echo=$ac_try;;
29421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29422 (eval "$ac_compile") 2>conftest.er1
29424 grep -v '^ *+' conftest.er1 >conftest.err
29426 cat conftest.err >&5
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); } &&
29429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29430 { (case "(($ac_try" in
29431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432 *) ac_try_echo=$ac_try;;
29434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435 (eval "$ac_try") 2>&5
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; } &&
29439 { ac_try='test -s conftest.$ac_objext'
29440 { (case "(($ac_try" in
29441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442 *) ac_try_echo=$ac_try;;
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445 (eval "$ac_try") 2>&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; }; then
29449 ac_cv_type_size_t=yes
29451 echo "$as_me: failed program was:" >&5
29452 sed 's/^/| /' conftest.$ac_ext >&5
29454 ac_cv_type_size_t=no
29457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29459 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29460 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29461 if test $ac_cv_type_size_t = yes; then
29465 cat >>confdefs.h <<_ACEOF
29466 #define size_t unsigned int
29471 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29472 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29473 if test "${ac_cv_type_signal+set}" = set; then
29474 echo $ECHO_N "(cached) $ECHO_C" >&6
29476 cat >conftest.$ac_ext <<_ACEOF
29479 cat confdefs.h >>conftest.$ac_ext
29480 cat >>conftest.$ac_ext <<_ACEOF
29481 /* end confdefs.h. */
29482 #include <sys/types.h>
29483 #include <signal.h>
29488 return *(signal (0, 0)) (0) == 1;
29493 rm -f conftest.$ac_objext
29494 if { (ac_try="$ac_compile"
29495 case "(($ac_try" in
29496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497 *) ac_try_echo=$ac_try;;
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_compile") 2>conftest.er1
29502 grep -v '^ *+' conftest.er1 >conftest.err
29504 cat conftest.err >&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); } &&
29507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29508 { (case "(($ac_try" in
29509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510 *) ac_try_echo=$ac_try;;
29512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513 (eval "$ac_try") 2>&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; } &&
29517 { ac_try='test -s conftest.$ac_objext'
29518 { (case "(($ac_try" in
29519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520 *) ac_try_echo=$ac_try;;
29522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29523 (eval "$ac_try") 2>&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); }; }; then
29527 ac_cv_type_signal=int
29529 echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29532 ac_cv_type_signal=void
29535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29537 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29538 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29540 cat >>confdefs.h <<_ACEOF
29541 #define RETSIGTYPE $ac_cv_type_signal
29545 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29546 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29547 if test "${ac_cv_struct_tm+set}" = set; then
29548 echo $ECHO_N "(cached) $ECHO_C" >&6
29550 cat >conftest.$ac_ext <<_ACEOF
29553 cat confdefs.h >>conftest.$ac_ext
29554 cat >>conftest.$ac_ext <<_ACEOF
29555 /* end confdefs.h. */
29556 #include <sys/types.h>
29562 struct tm *tp; tp->tm_sec;
29567 rm -f conftest.$ac_objext
29568 if { (ac_try="$ac_compile"
29569 case "(($ac_try" in
29570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571 *) ac_try_echo=$ac_try;;
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574 (eval "$ac_compile") 2>conftest.er1
29576 grep -v '^ *+' conftest.er1 >conftest.err
29578 cat conftest.err >&5
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); } &&
29581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29582 { (case "(($ac_try" in
29583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29584 *) ac_try_echo=$ac_try;;
29586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29587 (eval "$ac_try") 2>&5
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); }; } &&
29591 { ac_try='test -s conftest.$ac_objext'
29592 { (case "(($ac_try" in
29593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29594 *) ac_try_echo=$ac_try;;
29596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29597 (eval "$ac_try") 2>&5
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); }; }; then
29601 ac_cv_struct_tm=time.h
29603 echo "$as_me: failed program was:" >&5
29604 sed 's/^/| /' conftest.$ac_ext >&5
29606 ac_cv_struct_tm=sys/time.h
29609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29611 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29612 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29613 if test $ac_cv_struct_tm = sys/time.h; then
29615 cat >>confdefs.h <<\_ACEOF
29616 #define TM_IN_SYS_TIME 1
29621 { echo "$as_me:$LINENO: checking for int64_t" >&5
29622 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29623 if test "${ac_cv_type_int64_t+set}" = set; then
29624 echo $ECHO_N "(cached) $ECHO_C" >&6
29626 cat >conftest.$ac_ext <<_ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h. */
29632 $ac_includes_default
29633 typedef int64_t ac__type_new_;
29637 if ((ac__type_new_ *) 0)
29639 if (sizeof (ac__type_new_))
29645 rm -f conftest.$ac_objext
29646 if { (ac_try="$ac_compile"
29647 case "(($ac_try" in
29648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649 *) ac_try_echo=$ac_try;;
29651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652 (eval "$ac_compile") 2>conftest.er1
29654 grep -v '^ *+' conftest.er1 >conftest.err
29656 cat conftest.err >&5
29657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); } &&
29659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29660 { (case "(($ac_try" in
29661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662 *) ac_try_echo=$ac_try;;
29664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29665 (eval "$ac_try") 2>&5
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); }; } &&
29669 { ac_try='test -s conftest.$ac_objext'
29670 { (case "(($ac_try" in
29671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672 *) ac_try_echo=$ac_try;;
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675 (eval "$ac_try") 2>&5
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; }; then
29679 ac_cv_type_int64_t=yes
29681 echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29684 ac_cv_type_int64_t=no
29687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29689 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29690 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29691 if test $ac_cv_type_int64_t = yes; then
29693 cat >>confdefs.h <<_ACEOF
29694 #define HAVE_INT64_T 1
29699 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29700 echo "$as_me: error: Type int64_t required but not found" >&2;}
29701 { (exit 1); exit 1; }; }
29704 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29705 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29706 if test "${ac_cv_type_uint64_t+set}" = set; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
29709 cat >conftest.$ac_ext <<_ACEOF
29712 cat confdefs.h >>conftest.$ac_ext
29713 cat >>conftest.$ac_ext <<_ACEOF
29714 /* end confdefs.h. */
29715 $ac_includes_default
29716 typedef uint64_t ac__type_new_;
29720 if ((ac__type_new_ *) 0)
29722 if (sizeof (ac__type_new_))
29728 rm -f conftest.$ac_objext
29729 if { (ac_try="$ac_compile"
29730 case "(($ac_try" in
29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732 *) ac_try_echo=$ac_try;;
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735 (eval "$ac_compile") 2>conftest.er1
29737 grep -v '^ *+' conftest.er1 >conftest.err
29739 cat conftest.err >&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } &&
29742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29743 { (case "(($ac_try" in
29744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745 *) ac_try_echo=$ac_try;;
29747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748 (eval "$ac_try") 2>&5
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); }; } &&
29752 { ac_try='test -s conftest.$ac_objext'
29753 { (case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_try") 2>&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); }; }; then
29762 ac_cv_type_uint64_t=yes
29764 echo "$as_me: failed program was:" >&5
29765 sed 's/^/| /' conftest.$ac_ext >&5
29767 ac_cv_type_uint64_t=no
29770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29772 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29773 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29774 if test $ac_cv_type_uint64_t = yes; then
29776 cat >>confdefs.h <<_ACEOF
29777 #define HAVE_UINT64_T 1
29782 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29783 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29784 if test "${ac_cv_type_u_int64_t+set}" = set; then
29785 echo $ECHO_N "(cached) $ECHO_C" >&6
29787 cat >conftest.$ac_ext <<_ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h. */
29793 $ac_includes_default
29794 typedef u_int64_t ac__type_new_;
29798 if ((ac__type_new_ *) 0)
29800 if (sizeof (ac__type_new_))
29806 rm -f conftest.$ac_objext
29807 if { (ac_try="$ac_compile"
29808 case "(($ac_try" in
29809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810 *) ac_try_echo=$ac_try;;
29812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813 (eval "$ac_compile") 2>conftest.er1
29815 grep -v '^ *+' conftest.er1 >conftest.err
29817 cat conftest.err >&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } &&
29820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29821 { (case "(($ac_try" in
29822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823 *) ac_try_echo=$ac_try;;
29825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29826 (eval "$ac_try") 2>&5
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); }; } &&
29830 { ac_try='test -s conftest.$ac_objext'
29831 { (case "(($ac_try" in
29832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833 *) ac_try_echo=$ac_try;;
29835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836 (eval "$ac_try") 2>&5
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); }; }; then
29840 ac_cv_type_u_int64_t=yes
29842 echo "$as_me: failed program was:" >&5
29843 sed 's/^/| /' conftest.$ac_ext >&5
29845 ac_cv_type_u_int64_t=no
29848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29850 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29851 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29852 if test $ac_cv_type_u_int64_t = yes; then
29854 cat >>confdefs.h <<_ACEOF
29855 #define HAVE_U_INT64_T 1
29860 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29861 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29862 { (exit 1); exit 1; }; }
29876 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29882 echo $ECHO_N "(cached) $ECHO_C" >&6
29884 cat >conftest.$ac_ext <<_ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h. */
29890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29892 #define $ac_func innocuous_$ac_func
29894 /* System header to define __stub macros and hopefully few prototypes,
29895 which can conflict with char $ac_func (); below.
29896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29897 <limits.h> exists even on freestanding compilers. */
29900 # include <limits.h>
29902 # include <assert.h>
29907 /* Override any GCC internal prototype to avoid an error.
29908 Use char because int might match the return type of a GCC
29909 builtin and then its argument prototype would still apply. */
29914 /* The GNU C library defines this for functions which it implements
29915 to always fail with ENOSYS. Some functions are actually named
29916 something starting with __ and the normal name is an alias. */
29917 #if defined __stub_$ac_func || defined __stub___$ac_func
29924 return $ac_func ();
29929 rm -f conftest.$ac_objext conftest$ac_exeext
29930 if { (ac_try="$ac_link"
29931 case "(($ac_try" in
29932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29933 *) ac_try_echo=$ac_try;;
29935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29936 (eval "$ac_link") 2>conftest.er1
29938 grep -v '^ *+' conftest.er1 >conftest.err
29940 cat conftest.err >&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); } &&
29943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29944 { (case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_try") 2>&5
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; } &&
29953 { ac_try='test -s conftest$ac_exeext'
29954 { (case "(($ac_try" in
29955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956 *) ac_try_echo=$ac_try;;
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959 (eval "$ac_try") 2>&5
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); }; }; then
29963 eval "$as_ac_var=yes"
29965 echo "$as_me: failed program was:" >&5
29966 sed 's/^/| /' conftest.$ac_ext >&5
29968 eval "$as_ac_var=no"
29971 rm -f core conftest.err conftest.$ac_objext \
29972 conftest$ac_exeext conftest.$ac_ext
29974 ac_res=`eval echo '${'$as_ac_var'}'`
29975 { echo "$as_me:$LINENO: result: $ac_res" >&5
29976 echo "${ECHO_T}$ac_res" >&6; }
29977 if test `eval echo '${'$as_ac_var'}'` = yes; then
29978 cat >>confdefs.h <<_ACEOF
29979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29991 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29997 echo $ECHO_N "(cached) $ECHO_C" >&6
29999 cat >conftest.$ac_ext <<_ACEOF
30002 cat confdefs.h >>conftest.$ac_ext
30003 cat >>conftest.$ac_ext <<_ACEOF
30004 /* end confdefs.h. */
30005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30007 #define $ac_func innocuous_$ac_func
30009 /* System header to define __stub macros and hopefully few prototypes,
30010 which can conflict with char $ac_func (); below.
30011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30012 <limits.h> exists even on freestanding compilers. */
30015 # include <limits.h>
30017 # include <assert.h>
30022 /* Override any GCC internal prototype to avoid an error.
30023 Use char because int might match the return type of a GCC
30024 builtin and then its argument prototype would still apply. */
30029 /* The GNU C library defines this for functions which it implements
30030 to always fail with ENOSYS. Some functions are actually named
30031 something starting with __ and the normal name is an alias. */
30032 #if defined __stub_$ac_func || defined __stub___$ac_func
30039 return $ac_func ();
30044 rm -f conftest.$ac_objext conftest$ac_exeext
30045 if { (ac_try="$ac_link"
30046 case "(($ac_try" in
30047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048 *) ac_try_echo=$ac_try;;
30050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051 (eval "$ac_link") 2>conftest.er1
30053 grep -v '^ *+' conftest.er1 >conftest.err
30055 cat conftest.err >&5
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); } &&
30058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30059 { (case "(($ac_try" in
30060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061 *) ac_try_echo=$ac_try;;
30063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064 (eval "$ac_try") 2>&5
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); }; } &&
30068 { ac_try='test -s conftest$ac_exeext'
30069 { (case "(($ac_try" in
30070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30071 *) ac_try_echo=$ac_try;;
30073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30074 (eval "$ac_try") 2>&5
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); }; }; then
30078 eval "$as_ac_var=yes"
30080 echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30083 eval "$as_ac_var=no"
30086 rm -f core conftest.err conftest.$ac_objext \
30087 conftest$ac_exeext conftest.$ac_ext
30089 ac_res=`eval echo '${'$as_ac_var'}'`
30090 { echo "$as_me:$LINENO: result: $ac_res" >&5
30091 echo "${ECHO_T}$ac_res" >&6; }
30092 if test `eval echo '${'$as_ac_var'}'` = yes; then
30093 cat >>confdefs.h <<_ACEOF
30094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30107 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30113 echo $ECHO_N "(cached) $ECHO_C" >&6
30115 cat >conftest.$ac_ext <<_ACEOF
30118 cat confdefs.h >>conftest.$ac_ext
30119 cat >>conftest.$ac_ext <<_ACEOF
30120 /* end confdefs.h. */
30121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30123 #define $ac_func innocuous_$ac_func
30125 /* System header to define __stub macros and hopefully few prototypes,
30126 which can conflict with char $ac_func (); below.
30127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30128 <limits.h> exists even on freestanding compilers. */
30131 # include <limits.h>
30133 # include <assert.h>
30138 /* Override any GCC internal prototype to avoid an error.
30139 Use char because int might match the return type of a GCC
30140 builtin and then its argument prototype would still apply. */
30145 /* The GNU C library defines this for functions which it implements
30146 to always fail with ENOSYS. Some functions are actually named
30147 something starting with __ and the normal name is an alias. */
30148 #if defined __stub_$ac_func || defined __stub___$ac_func
30155 return $ac_func ();
30160 rm -f conftest.$ac_objext conftest$ac_exeext
30161 if { (ac_try="$ac_link"
30162 case "(($ac_try" in
30163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164 *) ac_try_echo=$ac_try;;
30166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167 (eval "$ac_link") 2>conftest.er1
30169 grep -v '^ *+' conftest.er1 >conftest.err
30171 cat conftest.err >&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } &&
30174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30175 { (case "(($ac_try" in
30176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177 *) ac_try_echo=$ac_try;;
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180 (eval "$ac_try") 2>&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); }; } &&
30184 { ac_try='test -s conftest$ac_exeext'
30185 { (case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_try") 2>&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; }; then
30194 eval "$as_ac_var=yes"
30196 echo "$as_me: failed program was:" >&5
30197 sed 's/^/| /' conftest.$ac_ext >&5
30199 eval "$as_ac_var=no"
30202 rm -f core conftest.err conftest.$ac_objext \
30203 conftest$ac_exeext conftest.$ac_ext
30205 ac_res=`eval echo '${'$as_ac_var'}'`
30206 { echo "$as_me:$LINENO: result: $ac_res" >&5
30207 echo "${ECHO_T}$ac_res" >&6; }
30208 if test `eval echo '${'$as_ac_var'}'` = yes; then
30209 cat >>confdefs.h <<_ACEOF
30210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30220 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30226 echo $ECHO_N "(cached) $ECHO_C" >&6
30228 cat >conftest.$ac_ext <<_ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h. */
30234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30236 #define $ac_func innocuous_$ac_func
30238 /* System header to define __stub macros and hopefully few prototypes,
30239 which can conflict with char $ac_func (); below.
30240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30241 <limits.h> exists even on freestanding compilers. */
30244 # include <limits.h>
30246 # include <assert.h>
30251 /* Override any GCC internal prototype to avoid an error.
30252 Use char because int might match the return type of a GCC
30253 builtin and then its argument prototype would still apply. */
30258 /* The GNU C library defines this for functions which it implements
30259 to always fail with ENOSYS. Some functions are actually named
30260 something starting with __ and the normal name is an alias. */
30261 #if defined __stub_$ac_func || defined __stub___$ac_func
30268 return $ac_func ();
30273 rm -f conftest.$ac_objext conftest$ac_exeext
30274 if { (ac_try="$ac_link"
30275 case "(($ac_try" in
30276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277 *) ac_try_echo=$ac_try;;
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_link") 2>conftest.er1
30282 grep -v '^ *+' conftest.er1 >conftest.err
30284 cat conftest.err >&5
30285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); } &&
30287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30288 { (case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293 (eval "$ac_try") 2>&5
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); }; } &&
30297 { ac_try='test -s conftest$ac_exeext'
30298 { (case "(($ac_try" in
30299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300 *) ac_try_echo=$ac_try;;
30302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303 (eval "$ac_try") 2>&5
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); }; }; then
30307 eval "$as_ac_var=yes"
30309 echo "$as_me: failed program was:" >&5
30310 sed 's/^/| /' conftest.$ac_ext >&5
30312 eval "$as_ac_var=no"
30315 rm -f core conftest.err conftest.$ac_objext \
30316 conftest$ac_exeext conftest.$ac_ext
30318 ac_res=`eval echo '${'$as_ac_var'}'`
30319 { echo "$as_me:$LINENO: result: $ac_res" >&5
30320 echo "${ECHO_T}$ac_res" >&6; }
30321 if test `eval echo '${'$as_ac_var'}'` = yes; then
30322 cat >>confdefs.h <<_ACEOF
30323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30333 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30339 echo $ECHO_N "(cached) $ECHO_C" >&6
30341 cat >conftest.$ac_ext <<_ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h. */
30347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30349 #define $ac_func innocuous_$ac_func
30351 /* System header to define __stub macros and hopefully few prototypes,
30352 which can conflict with char $ac_func (); below.
30353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30354 <limits.h> exists even on freestanding compilers. */
30357 # include <limits.h>
30359 # include <assert.h>
30364 /* Override any GCC internal prototype to avoid an error.
30365 Use char because int might match the return type of a GCC
30366 builtin and then its argument prototype would still apply. */
30371 /* The GNU C library defines this for functions which it implements
30372 to always fail with ENOSYS. Some functions are actually named
30373 something starting with __ and the normal name is an alias. */
30374 #if defined __stub_$ac_func || defined __stub___$ac_func
30381 return $ac_func ();
30386 rm -f conftest.$ac_objext conftest$ac_exeext
30387 if { (ac_try="$ac_link"
30388 case "(($ac_try" in
30389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390 *) ac_try_echo=$ac_try;;
30392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30393 (eval "$ac_link") 2>conftest.er1
30395 grep -v '^ *+' conftest.er1 >conftest.err
30397 cat conftest.err >&5
30398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399 (exit $ac_status); } &&
30400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30401 { (case "(($ac_try" in
30402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403 *) ac_try_echo=$ac_try;;
30405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406 (eval "$ac_try") 2>&5
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); }; } &&
30410 { ac_try='test -s conftest$ac_exeext'
30411 { (case "(($ac_try" in
30412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413 *) ac_try_echo=$ac_try;;
30415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416 (eval "$ac_try") 2>&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); }; }; then
30420 eval "$as_ac_var=yes"
30422 echo "$as_me: failed program was:" >&5
30423 sed 's/^/| /' conftest.$ac_ext >&5
30425 eval "$as_ac_var=no"
30428 rm -f core conftest.err conftest.$ac_objext \
30429 conftest$ac_exeext conftest.$ac_ext
30431 ac_res=`eval echo '${'$as_ac_var'}'`
30432 { echo "$as_me:$LINENO: result: $ac_res" >&5
30433 echo "${ECHO_T}$ac_res" >&6; }
30434 if test `eval echo '${'$as_ac_var'}'` = yes; then
30435 cat >>confdefs.h <<_ACEOF
30436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30442 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30443 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30444 if test "${llvm_cv_c_printf_a+set}" = set; then
30445 echo $ECHO_N "(cached) $ECHO_C" >&6
30448 ac_cpp='$CPP $CPPFLAGS'
30449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30453 if test "$cross_compiling" = yes; then
30454 llvmac_cv_c_printf_a=no
30456 cat >conftest.$ac_ext <<_ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h. */
30465 #include <stdlib.h>
30471 volatile double A, B;
30475 sprintf(Buffer, "%a", A);
30479 if (A != 0x1.999999999999ap-4)
30486 rm -f conftest$ac_exeext
30487 if { (ac_try="$ac_link"
30488 case "(($ac_try" in
30489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490 *) ac_try_echo=$ac_try;;
30492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493 (eval "$ac_link") 2>&5
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30497 { (case "(($ac_try" in
30498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30499 *) ac_try_echo=$ac_try;;
30501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30502 (eval "$ac_try") 2>&5
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505 (exit $ac_status); }; }; then
30506 llvm_cv_c_printf_a=yes
30508 echo "$as_me: program exited with status $ac_status" >&5
30509 echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30512 ( exit $ac_status )
30513 llvmac_cv_c_printf_a=no
30515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30520 ac_cpp='$CPP $CPPFLAGS'
30521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30526 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30527 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30528 if test "$llvm_cv_c_printf_a" = "yes"; then
30530 cat >>confdefs.h <<\_ACEOF
30531 #define HAVE_PRINTF_A 1
30536 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30537 # for constant arguments. Useless!
30538 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30539 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30540 if test "${ac_cv_working_alloca_h+set}" = set; then
30541 echo $ECHO_N "(cached) $ECHO_C" >&6
30543 cat >conftest.$ac_ext <<_ACEOF
30546 cat confdefs.h >>conftest.$ac_ext
30547 cat >>conftest.$ac_ext <<_ACEOF
30548 /* end confdefs.h. */
30549 #include <alloca.h>
30553 char *p = (char *) alloca (2 * sizeof (int));
30559 rm -f conftest.$ac_objext conftest$ac_exeext
30560 if { (ac_try="$ac_link"
30561 case "(($ac_try" in
30562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563 *) ac_try_echo=$ac_try;;
30565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566 (eval "$ac_link") 2>conftest.er1
30568 grep -v '^ *+' conftest.er1 >conftest.err
30570 cat conftest.err >&5
30571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572 (exit $ac_status); } &&
30573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30574 { (case "(($ac_try" in
30575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576 *) ac_try_echo=$ac_try;;
30578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579 (eval "$ac_try") 2>&5
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); }; } &&
30583 { ac_try='test -s conftest$ac_exeext'
30584 { (case "(($ac_try" in
30585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586 *) ac_try_echo=$ac_try;;
30588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589 (eval "$ac_try") 2>&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); }; }; then
30593 ac_cv_working_alloca_h=yes
30595 echo "$as_me: failed program was:" >&5
30596 sed 's/^/| /' conftest.$ac_ext >&5
30598 ac_cv_working_alloca_h=no
30601 rm -f core conftest.err conftest.$ac_objext \
30602 conftest$ac_exeext conftest.$ac_ext
30604 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30605 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30606 if test $ac_cv_working_alloca_h = yes; then
30608 cat >>confdefs.h <<\_ACEOF
30609 #define HAVE_ALLOCA_H 1
30614 { echo "$as_me:$LINENO: checking for alloca" >&5
30615 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30616 if test "${ac_cv_func_alloca_works+set}" = set; then
30617 echo $ECHO_N "(cached) $ECHO_C" >&6
30619 cat >conftest.$ac_ext <<_ACEOF
30622 cat confdefs.h >>conftest.$ac_ext
30623 cat >>conftest.$ac_ext <<_ACEOF
30624 /* end confdefs.h. */
30626 # define alloca __builtin_alloca
30629 # include <malloc.h>
30630 # define alloca _alloca
30633 # include <alloca.h>
30638 # ifndef alloca /* predefined by HP cc +Olibcalls */
30649 char *p = (char *) alloca (1);
30655 rm -f conftest.$ac_objext conftest$ac_exeext
30656 if { (ac_try="$ac_link"
30657 case "(($ac_try" in
30658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30659 *) ac_try_echo=$ac_try;;
30661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30662 (eval "$ac_link") 2>conftest.er1
30664 grep -v '^ *+' conftest.er1 >conftest.err
30666 cat conftest.err >&5
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); } &&
30669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30670 { (case "(($ac_try" in
30671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30672 *) ac_try_echo=$ac_try;;
30674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30675 (eval "$ac_try") 2>&5
30677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); }; } &&
30679 { ac_try='test -s conftest$ac_exeext'
30680 { (case "(($ac_try" in
30681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682 *) ac_try_echo=$ac_try;;
30684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685 (eval "$ac_try") 2>&5
30687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); }; }; then
30689 ac_cv_func_alloca_works=yes
30691 echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30694 ac_cv_func_alloca_works=no
30697 rm -f core conftest.err conftest.$ac_objext \
30698 conftest$ac_exeext conftest.$ac_ext
30700 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30701 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30703 if test $ac_cv_func_alloca_works = yes; then
30705 cat >>confdefs.h <<\_ACEOF
30706 #define HAVE_ALLOCA 1
30710 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30711 # that cause trouble. Some versions do not even contain alloca or
30712 # contain a buggy version. If you still want to use their alloca,
30713 # use ar to extract alloca.o from them instead of compiling alloca.c.
30715 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30717 cat >>confdefs.h <<\_ACEOF
30722 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30723 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30724 if test "${ac_cv_os_cray+set}" = set; then
30725 echo $ECHO_N "(cached) $ECHO_C" >&6
30727 cat >conftest.$ac_ext <<_ACEOF
30730 cat confdefs.h >>conftest.$ac_ext
30731 cat >>conftest.$ac_ext <<_ACEOF
30732 /* end confdefs.h. */
30733 #if defined CRAY && ! defined CRAY2
30740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30741 $EGREP "webecray" >/dev/null 2>&1; then
30749 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30750 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30751 if test $ac_cv_os_cray = yes; then
30752 for ac_func in _getb67 GETB67 getb67; do
30753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30757 echo $ECHO_N "(cached) $ECHO_C" >&6
30759 cat >conftest.$ac_ext <<_ACEOF
30762 cat confdefs.h >>conftest.$ac_ext
30763 cat >>conftest.$ac_ext <<_ACEOF
30764 /* end confdefs.h. */
30765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30767 #define $ac_func innocuous_$ac_func
30769 /* System header to define __stub macros and hopefully few prototypes,
30770 which can conflict with char $ac_func (); below.
30771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30772 <limits.h> exists even on freestanding compilers. */
30775 # include <limits.h>
30777 # include <assert.h>
30782 /* Override any GCC internal prototype to avoid an error.
30783 Use char because int might match the return type of a GCC
30784 builtin and then its argument prototype would still apply. */
30789 /* The GNU C library defines this for functions which it implements
30790 to always fail with ENOSYS. Some functions are actually named
30791 something starting with __ and the normal name is an alias. */
30792 #if defined __stub_$ac_func || defined __stub___$ac_func
30799 return $ac_func ();
30804 rm -f conftest.$ac_objext conftest$ac_exeext
30805 if { (ac_try="$ac_link"
30806 case "(($ac_try" in
30807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30808 *) ac_try_echo=$ac_try;;
30810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811 (eval "$ac_link") 2>conftest.er1
30813 grep -v '^ *+' conftest.er1 >conftest.err
30815 cat conftest.err >&5
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); } &&
30818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30819 { (case "(($ac_try" in
30820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821 *) ac_try_echo=$ac_try;;
30823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824 (eval "$ac_try") 2>&5
30826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827 (exit $ac_status); }; } &&
30828 { ac_try='test -s conftest$ac_exeext'
30829 { (case "(($ac_try" in
30830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30831 *) ac_try_echo=$ac_try;;
30833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30834 (eval "$ac_try") 2>&5
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); }; }; then
30838 eval "$as_ac_var=yes"
30840 echo "$as_me: failed program was:" >&5
30841 sed 's/^/| /' conftest.$ac_ext >&5
30843 eval "$as_ac_var=no"
30846 rm -f core conftest.err conftest.$ac_objext \
30847 conftest$ac_exeext conftest.$ac_ext
30849 ac_res=`eval echo '${'$as_ac_var'}'`
30850 { echo "$as_me:$LINENO: result: $ac_res" >&5
30851 echo "${ECHO_T}$ac_res" >&6; }
30852 if test `eval echo '${'$as_ac_var'}'` = yes; then
30854 cat >>confdefs.h <<_ACEOF
30855 #define CRAY_STACKSEG_END $ac_func
30864 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30865 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30866 if test "${ac_cv_c_stack_direction+set}" = set; then
30867 echo $ECHO_N "(cached) $ECHO_C" >&6
30869 if test "$cross_compiling" = yes; then
30870 ac_cv_c_stack_direction=0
30872 cat >conftest.$ac_ext <<_ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h. */
30878 $ac_includes_default
30880 find_stack_direction ()
30882 static char *addr = 0;
30887 return find_stack_direction ();
30890 return (&dummy > addr) ? 1 : -1;
30896 return find_stack_direction () < 0;
30899 rm -f conftest$ac_exeext
30900 if { (ac_try="$ac_link"
30901 case "(($ac_try" in
30902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30903 *) ac_try_echo=$ac_try;;
30905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30906 (eval "$ac_link") 2>&5
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30910 { (case "(($ac_try" in
30911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912 *) ac_try_echo=$ac_try;;
30914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30915 (eval "$ac_try") 2>&5
30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); }; }; then
30919 ac_cv_c_stack_direction=1
30921 echo "$as_me: program exited with status $ac_status" >&5
30922 echo "$as_me: failed program was:" >&5
30923 sed 's/^/| /' conftest.$ac_ext >&5
30925 ( exit $ac_status )
30926 ac_cv_c_stack_direction=-1
30928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30933 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30934 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30936 cat >>confdefs.h <<_ACEOF
30937 #define STACK_DIRECTION $ac_cv_c_stack_direction
30944 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30945 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30946 if test "${ac_cv_func_rand48+set}" = set; then
30947 echo $ECHO_N "(cached) $ECHO_C" >&6
30950 ac_cpp='$CXXCPP $CPPFLAGS'
30951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30955 cat >conftest.$ac_ext <<_ACEOF
30958 cat confdefs.h >>conftest.$ac_ext
30959 cat >>conftest.$ac_ext <<_ACEOF
30960 /* end confdefs.h. */
30961 #include <stdlib.h>
30965 srand48(0);lrand48();drand48();
30970 rm -f conftest.$ac_objext
30971 if { (ac_try="$ac_compile"
30972 case "(($ac_try" in
30973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974 *) ac_try_echo=$ac_try;;
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977 (eval "$ac_compile") 2>conftest.er1
30979 grep -v '^ *+' conftest.er1 >conftest.err
30981 cat conftest.err >&5
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); } &&
30984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30985 { (case "(($ac_try" in
30986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30987 *) ac_try_echo=$ac_try;;
30989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30990 (eval "$ac_try") 2>&5
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); }; } &&
30994 { ac_try='test -s conftest.$ac_objext'
30995 { (case "(($ac_try" in
30996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30997 *) ac_try_echo=$ac_try;;
30999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31000 (eval "$ac_try") 2>&5
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; }; then
31004 ac_cv_func_rand48=yes
31006 echo "$as_me: failed program was:" >&5
31007 sed 's/^/| /' conftest.$ac_ext >&5
31009 ac_cv_func_rand48=no
31012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31014 ac_cpp='$CPP $CPPFLAGS'
31015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31020 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31021 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31023 if test "$ac_cv_func_rand48" = "yes" ; then
31025 cat >>confdefs.h <<\_ACEOF
31026 #define HAVE_RAND48 1
31032 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31033 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31034 if test "${ac_cv_cxx_namespaces+set}" = set; then
31035 echo $ECHO_N "(cached) $ECHO_C" >&6
31038 ac_cpp='$CXXCPP $CPPFLAGS'
31039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31043 cat >conftest.$ac_ext <<_ACEOF
31046 cat confdefs.h >>conftest.$ac_ext
31047 cat >>conftest.$ac_ext <<_ACEOF
31048 /* end confdefs.h. */
31049 namespace Outer { namespace Inner { int i = 0; }}
31053 using namespace Outer::Inner; return i;
31058 rm -f conftest.$ac_objext
31059 if { (ac_try="$ac_compile"
31060 case "(($ac_try" in
31061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062 *) ac_try_echo=$ac_try;;
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065 (eval "$ac_compile") 2>conftest.er1
31067 grep -v '^ *+' conftest.er1 >conftest.err
31069 cat conftest.err >&5
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); } &&
31072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31073 { (case "(($ac_try" in
31074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075 *) ac_try_echo=$ac_try;;
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078 (eval "$ac_try") 2>&5
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); }; } &&
31082 { ac_try='test -s conftest.$ac_objext'
31083 { (case "(($ac_try" in
31084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31085 *) ac_try_echo=$ac_try;;
31087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31088 (eval "$ac_try") 2>&5
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); }; }; then
31092 ac_cv_cxx_namespaces=yes
31094 echo "$as_me: failed program was:" >&5
31095 sed 's/^/| /' conftest.$ac_ext >&5
31097 ac_cv_cxx_namespaces=no
31100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31102 ac_cpp='$CPP $CPPFLAGS'
31103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31109 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31110 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31111 if test "$ac_cv_cxx_namespaces" = yes; then
31113 cat >>confdefs.h <<\_ACEOF
31114 #define HAVE_NAMESPACES
31119 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31120 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31121 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31122 echo $ECHO_N "(cached) $ECHO_C" >&6
31126 ac_cpp='$CXXCPP $CPPFLAGS'
31127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31131 cat >conftest.$ac_ext <<_ACEOF
31134 cat confdefs.h >>conftest.$ac_ext
31135 cat >>conftest.$ac_ext <<_ACEOF
31136 /* end confdefs.h. */
31137 #include <ext/hash_map>
31138 #ifdef HAVE_NAMESPACES
31139 using namespace std;
31144 hash_map<int, int> t;
31149 rm -f conftest.$ac_objext
31150 if { (ac_try="$ac_compile"
31151 case "(($ac_try" in
31152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153 *) ac_try_echo=$ac_try;;
31155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156 (eval "$ac_compile") 2>conftest.er1
31158 grep -v '^ *+' conftest.er1 >conftest.err
31160 cat conftest.err >&5
31161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162 (exit $ac_status); } &&
31163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31164 { (case "(($ac_try" in
31165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166 *) ac_try_echo=$ac_try;;
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169 (eval "$ac_try") 2>&5
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); }; } &&
31173 { ac_try='test -s conftest.$ac_objext'
31174 { (case "(($ac_try" in
31175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176 *) ac_try_echo=$ac_try;;
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179 (eval "$ac_try") 2>&5
31181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182 (exit $ac_status); }; }; then
31183 ac_cv_cxx_have_std_ext_hash_map=yes
31185 echo "$as_me: failed program was:" >&5
31186 sed 's/^/| /' conftest.$ac_ext >&5
31188 ac_cv_cxx_have_std_ext_hash_map=no
31191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31193 ac_cpp='$CPP $CPPFLAGS'
31194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31199 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31200 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31201 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31204 cat >>confdefs.h <<\_ACEOF
31205 #define HAVE_STD_EXT_HASH_MAP 1
31210 cat >>confdefs.h <<\_ACEOF
31211 #define HAVE_STD_EXT_HASH_MAP 0
31216 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31217 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31218 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31219 echo $ECHO_N "(cached) $ECHO_C" >&6
31223 ac_cpp='$CXXCPP $CPPFLAGS'
31224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31228 cat >conftest.$ac_ext <<_ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h. */
31234 #include <ext/hash_map>
31235 #ifdef HAVE_NAMESPACES
31236 using namespace __gnu_cxx;
31241 hash_map<int,int> t;
31246 rm -f conftest.$ac_objext
31247 if { (ac_try="$ac_compile"
31248 case "(($ac_try" in
31249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250 *) ac_try_echo=$ac_try;;
31252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253 (eval "$ac_compile") 2>conftest.er1
31255 grep -v '^ *+' conftest.er1 >conftest.err
31257 cat conftest.err >&5
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); } &&
31260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31261 { (case "(($ac_try" in
31262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31263 *) ac_try_echo=$ac_try;;
31265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31266 (eval "$ac_try") 2>&5
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); }; } &&
31270 { ac_try='test -s conftest.$ac_objext'
31271 { (case "(($ac_try" in
31272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31273 *) ac_try_echo=$ac_try;;
31275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31276 (eval "$ac_try") 2>&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; }; then
31280 ac_cv_cxx_have_gnu_ext_hash_map=yes
31282 echo "$as_me: failed program was:" >&5
31283 sed 's/^/| /' conftest.$ac_ext >&5
31285 ac_cv_cxx_have_gnu_ext_hash_map=no
31288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31290 ac_cpp='$CPP $CPPFLAGS'
31291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31296 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31297 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31298 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31301 cat >>confdefs.h <<\_ACEOF
31302 #define HAVE_GNU_EXT_HASH_MAP 1
31307 cat >>confdefs.h <<\_ACEOF
31308 #define HAVE_GNU_EXT_HASH_MAP 0
31313 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31314 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31315 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31316 echo $ECHO_N "(cached) $ECHO_C" >&6
31320 ac_cpp='$CXXCPP $CPPFLAGS'
31321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31325 cat >conftest.$ac_ext <<_ACEOF
31328 cat confdefs.h >>conftest.$ac_ext
31329 cat >>conftest.$ac_ext <<_ACEOF
31330 /* end confdefs.h. */
31331 #include <hash_map>
31335 hash_map<int,int> t;
31340 rm -f conftest.$ac_objext
31341 if { (ac_try="$ac_compile"
31342 case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_compile") 2>conftest.er1
31349 grep -v '^ *+' conftest.er1 >conftest.err
31351 cat conftest.err >&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } &&
31354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31355 { (case "(($ac_try" in
31356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357 *) ac_try_echo=$ac_try;;
31359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360 (eval "$ac_try") 2>&5
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; } &&
31364 { ac_try='test -s conftest.$ac_objext'
31365 { (case "(($ac_try" in
31366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367 *) ac_try_echo=$ac_try;;
31369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370 (eval "$ac_try") 2>&5
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; }; then
31374 ac_cv_cxx_have_global_hash_map=yes
31376 echo "$as_me: failed program was:" >&5
31377 sed 's/^/| /' conftest.$ac_ext >&5
31379 ac_cv_cxx_have_global_hash_map=no
31382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31384 ac_cpp='$CPP $CPPFLAGS'
31385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31390 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31391 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31392 if test "$ac_cv_cxx_have_global_hash_map" = yes
31395 cat >>confdefs.h <<\_ACEOF
31396 #define HAVE_GLOBAL_HASH_MAP 1
31401 cat >>confdefs.h <<\_ACEOF
31402 #define HAVE_GLOBAL_HASH_MAP 0
31407 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31408 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31409 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31410 echo $ECHO_N "(cached) $ECHO_C" >&6
31414 ac_cpp='$CXXCPP $CPPFLAGS'
31415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31419 cat >conftest.$ac_ext <<_ACEOF
31422 cat confdefs.h >>conftest.$ac_ext
31423 cat >>conftest.$ac_ext <<_ACEOF
31424 /* end confdefs.h. */
31425 #include <ext/hash_set>
31426 #ifdef HAVE_NAMESPACES
31427 using namespace std;
31437 rm -f conftest.$ac_objext
31438 if { (ac_try="$ac_compile"
31439 case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444 (eval "$ac_compile") 2>conftest.er1
31446 grep -v '^ *+' conftest.er1 >conftest.err
31448 cat conftest.err >&5
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); } &&
31451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31452 { (case "(($ac_try" in
31453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454 *) ac_try_echo=$ac_try;;
31456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457 (eval "$ac_try") 2>&5
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); }; } &&
31461 { ac_try='test -s conftest.$ac_objext'
31462 { (case "(($ac_try" in
31463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31464 *) ac_try_echo=$ac_try;;
31466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31467 (eval "$ac_try") 2>&5
31469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470 (exit $ac_status); }; }; then
31471 ac_cv_cxx_have_std_ext_hash_set=yes
31473 echo "$as_me: failed program was:" >&5
31474 sed 's/^/| /' conftest.$ac_ext >&5
31476 ac_cv_cxx_have_std_ext_hash_set=no
31479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31481 ac_cpp='$CPP $CPPFLAGS'
31482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31487 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31488 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31489 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31492 cat >>confdefs.h <<\_ACEOF
31493 #define HAVE_STD_EXT_HASH_SET 1
31498 cat >>confdefs.h <<\_ACEOF
31499 #define HAVE_STD_EXT_HASH_SET 0
31504 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31505 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31506 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31507 echo $ECHO_N "(cached) $ECHO_C" >&6
31511 ac_cpp='$CXXCPP $CPPFLAGS'
31512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31516 cat >conftest.$ac_ext <<_ACEOF
31519 cat confdefs.h >>conftest.$ac_ext
31520 cat >>conftest.$ac_ext <<_ACEOF
31521 /* end confdefs.h. */
31522 #include <ext/hash_set>
31523 #ifdef HAVE_NAMESPACES
31524 using namespace __gnu_cxx;
31534 rm -f conftest.$ac_objext
31535 if { (ac_try="$ac_compile"
31536 case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_compile") 2>conftest.er1
31543 grep -v '^ *+' conftest.er1 >conftest.err
31545 cat conftest.err >&5
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } &&
31548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31549 { (case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_try") 2>&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); }; } &&
31558 { ac_try='test -s conftest.$ac_objext'
31559 { (case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_try") 2>&5
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; }; then
31568 ac_cv_cxx_have_gnu_ext_hash_set=yes
31570 echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31573 ac_cv_cxx_have_gnu_ext_hash_set=no
31576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31578 ac_cpp='$CPP $CPPFLAGS'
31579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31584 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31585 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31586 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31589 cat >>confdefs.h <<\_ACEOF
31590 #define HAVE_GNU_EXT_HASH_SET 1
31595 cat >>confdefs.h <<\_ACEOF
31596 #define HAVE_GNU_EXT_HASH_SET 0
31601 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31602 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31603 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31604 echo $ECHO_N "(cached) $ECHO_C" >&6
31608 ac_cpp='$CXXCPP $CPPFLAGS'
31609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31613 cat >conftest.$ac_ext <<_ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h. */
31619 #include <hash_set>
31623 hash_set<int> t; return 0;
31628 rm -f conftest.$ac_objext
31629 if { (ac_try="$ac_compile"
31630 case "(($ac_try" in
31631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632 *) ac_try_echo=$ac_try;;
31634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635 (eval "$ac_compile") 2>conftest.er1
31637 grep -v '^ *+' conftest.er1 >conftest.err
31639 cat conftest.err >&5
31640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641 (exit $ac_status); } &&
31642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31643 { (case "(($ac_try" in
31644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31645 *) ac_try_echo=$ac_try;;
31647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31648 (eval "$ac_try") 2>&5
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); }; } &&
31652 { ac_try='test -s conftest.$ac_objext'
31653 { (case "(($ac_try" in
31654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655 *) ac_try_echo=$ac_try;;
31657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658 (eval "$ac_try") 2>&5
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); }; }; then
31662 ac_cv_cxx_have_global_hash_set=yes
31664 echo "$as_me: failed program was:" >&5
31665 sed 's/^/| /' conftest.$ac_ext >&5
31667 ac_cv_cxx_have_global_hash_set=no
31670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31672 ac_cpp='$CPP $CPPFLAGS'
31673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31678 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31679 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31680 if test "$ac_cv_cxx_have_global_hash_set" = yes
31683 cat >>confdefs.h <<\_ACEOF
31684 #define HAVE_GLOBAL_HASH_SET 1
31689 cat >>confdefs.h <<\_ACEOF
31690 #define HAVE_GLOBAL_HASH_SET 0
31695 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31696 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31697 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31698 echo $ECHO_N "(cached) $ECHO_C" >&6
31702 ac_cpp='$CXXCPP $CPPFLAGS'
31703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31707 cat >conftest.$ac_ext <<_ACEOF
31710 cat confdefs.h >>conftest.$ac_ext
31711 cat >>conftest.$ac_ext <<_ACEOF
31712 /* end confdefs.h. */
31713 #include <iterator>
31714 #ifdef HAVE_NAMESPACES
31715 using namespace std;
31720 iterator<int,int,int> t; return 0;
31725 rm -f conftest.$ac_objext
31726 if { (ac_try="$ac_compile"
31727 case "(($ac_try" in
31728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729 *) ac_try_echo=$ac_try;;
31731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732 (eval "$ac_compile") 2>conftest.er1
31734 grep -v '^ *+' conftest.er1 >conftest.err
31736 cat conftest.err >&5
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); } &&
31739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31740 { (case "(($ac_try" in
31741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742 *) ac_try_echo=$ac_try;;
31744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745 (eval "$ac_try") 2>&5
31747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748 (exit $ac_status); }; } &&
31749 { ac_try='test -s conftest.$ac_objext'
31750 { (case "(($ac_try" in
31751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752 *) ac_try_echo=$ac_try;;
31754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755 (eval "$ac_try") 2>&5
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); }; }; then
31759 ac_cv_cxx_have_std_iterator=yes
31761 echo "$as_me: failed program was:" >&5
31762 sed 's/^/| /' conftest.$ac_ext >&5
31764 ac_cv_cxx_have_std_iterator=no
31767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31769 ac_cpp='$CPP $CPPFLAGS'
31770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31776 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31777 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31778 if test "$ac_cv_cxx_have_std_iterator" = yes
31781 cat >>confdefs.h <<\_ACEOF
31782 #define HAVE_STD_ITERATOR 1
31787 cat >>confdefs.h <<\_ACEOF
31788 #define HAVE_STD_ITERATOR 0
31793 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31794 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31795 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31796 echo $ECHO_N "(cached) $ECHO_C" >&6
31800 ac_cpp='$CXXCPP $CPPFLAGS'
31801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31805 cat >conftest.$ac_ext <<_ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h. */
31811 #include <iterator>
31812 #ifdef HAVE_NAMESPACES
31813 using namespace std;
31818 bidirectional_iterator<int,int> t; return 0;
31823 rm -f conftest.$ac_objext
31824 if { (ac_try="$ac_compile"
31825 case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_compile") 2>conftest.er1
31832 grep -v '^ *+' conftest.er1 >conftest.err
31834 cat conftest.err >&5
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); } &&
31837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31838 { (case "(($ac_try" in
31839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31840 *) ac_try_echo=$ac_try;;
31842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31843 (eval "$ac_try") 2>&5
31845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846 (exit $ac_status); }; } &&
31847 { ac_try='test -s conftest.$ac_objext'
31848 { (case "(($ac_try" in
31849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850 *) ac_try_echo=$ac_try;;
31852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853 (eval "$ac_try") 2>&5
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); }; }; then
31857 ac_cv_cxx_have_bi_iterator=yes
31859 echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31862 ac_cv_cxx_have_bi_iterator=no
31865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31867 ac_cpp='$CPP $CPPFLAGS'
31868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31874 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31875 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31876 if test "$ac_cv_cxx_have_bi_iterator" = yes
31879 cat >>confdefs.h <<\_ACEOF
31880 #define HAVE_BI_ITERATOR 1
31885 cat >>confdefs.h <<\_ACEOF
31886 #define HAVE_BI_ITERATOR 0
31891 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31892 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31893 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31898 ac_cpp='$CXXCPP $CPPFLAGS'
31899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31903 cat >conftest.$ac_ext <<_ACEOF
31906 cat confdefs.h >>conftest.$ac_ext
31907 cat >>conftest.$ac_ext <<_ACEOF
31908 /* end confdefs.h. */
31909 #include <iterator>
31910 #ifdef HAVE_NAMESPACES
31911 using namespace std;
31916 forward_iterator<int,int> t; return 0;
31921 rm -f conftest.$ac_objext
31922 if { (ac_try="$ac_compile"
31923 case "(($ac_try" in
31924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925 *) ac_try_echo=$ac_try;;
31927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928 (eval "$ac_compile") 2>conftest.er1
31930 grep -v '^ *+' conftest.er1 >conftest.err
31932 cat conftest.err >&5
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); } &&
31935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31936 { (case "(($ac_try" in
31937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938 *) ac_try_echo=$ac_try;;
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941 (eval "$ac_try") 2>&5
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); }; } &&
31945 { ac_try='test -s conftest.$ac_objext'
31946 { (case "(($ac_try" in
31947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31948 *) ac_try_echo=$ac_try;;
31950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31951 (eval "$ac_try") 2>&5
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); }; }; then
31955 ac_cv_cxx_have_fwd_iterator=yes
31957 echo "$as_me: failed program was:" >&5
31958 sed 's/^/| /' conftest.$ac_ext >&5
31960 ac_cv_cxx_have_fwd_iterator=no
31963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31965 ac_cpp='$CPP $CPPFLAGS'
31966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31972 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31973 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31974 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31977 cat >>confdefs.h <<\_ACEOF
31978 #define HAVE_FWD_ITERATOR 1
31983 cat >>confdefs.h <<\_ACEOF
31984 #define HAVE_FWD_ITERATOR 0
31990 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31991 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31992 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31993 echo $ECHO_N "(cached) $ECHO_C" >&6
31996 ac_cpp='$CXXCPP $CPPFLAGS'
31997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32001 cat >conftest.$ac_ext <<_ACEOF
32004 cat confdefs.h >>conftest.$ac_ext
32005 cat >>conftest.$ac_ext <<_ACEOF
32006 /* end confdefs.h. */
32016 rm -f conftest.$ac_objext
32017 if { (ac_try="$ac_compile"
32018 case "(($ac_try" in
32019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020 *) ac_try_echo=$ac_try;;
32022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023 (eval "$ac_compile") 2>conftest.er1
32025 grep -v '^ *+' conftest.er1 >conftest.err
32027 cat conftest.err >&5
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); } &&
32030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32031 { (case "(($ac_try" in
32032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32033 *) ac_try_echo=$ac_try;;
32035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32036 (eval "$ac_try") 2>&5
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); }; } &&
32040 { ac_try='test -s conftest.$ac_objext'
32041 { (case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046 (eval "$ac_try") 2>&5
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); }; }; then
32050 ac_cv_func_isnan_in_math_h=yes
32052 echo "$as_me: failed program was:" >&5
32053 sed 's/^/| /' conftest.$ac_ext >&5
32055 ac_cv_func_isnan_in_math_h=no
32058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32060 ac_cpp='$CPP $CPPFLAGS'
32061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32066 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32067 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32070 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32072 cat >>confdefs.h <<\_ACEOF
32073 #define HAVE_ISNAN_IN_MATH_H 1
32078 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32079 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32080 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32081 echo $ECHO_N "(cached) $ECHO_C" >&6
32084 ac_cpp='$CXXCPP $CPPFLAGS'
32085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32089 cat >conftest.$ac_ext <<_ACEOF
32092 cat confdefs.h >>conftest.$ac_ext
32093 cat >>conftest.$ac_ext <<_ACEOF
32094 /* end confdefs.h. */
32104 rm -f conftest.$ac_objext
32105 if { (ac_try="$ac_compile"
32106 case "(($ac_try" in
32107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32108 *) ac_try_echo=$ac_try;;
32110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32111 (eval "$ac_compile") 2>conftest.er1
32113 grep -v '^ *+' conftest.er1 >conftest.err
32115 cat conftest.err >&5
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); } &&
32118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32119 { (case "(($ac_try" in
32120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121 *) ac_try_echo=$ac_try;;
32123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124 (eval "$ac_try") 2>&5
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); }; } &&
32128 { ac_try='test -s conftest.$ac_objext'
32129 { (case "(($ac_try" in
32130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32131 *) ac_try_echo=$ac_try;;
32133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32134 (eval "$ac_try") 2>&5
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); }; }; then
32138 ac_cv_func_isnan_in_cmath=yes
32140 echo "$as_me: failed program was:" >&5
32141 sed 's/^/| /' conftest.$ac_ext >&5
32143 ac_cv_func_isnan_in_cmath=no
32146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32148 ac_cpp='$CPP $CPPFLAGS'
32149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32154 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32155 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32157 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32159 cat >>confdefs.h <<\_ACEOF
32160 #define HAVE_ISNAN_IN_CMATH 1
32165 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32166 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32167 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32168 echo $ECHO_N "(cached) $ECHO_C" >&6
32171 ac_cpp='$CXXCPP $CPPFLAGS'
32172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32176 cat >conftest.$ac_ext <<_ACEOF
32179 cat confdefs.h >>conftest.$ac_ext
32180 cat >>conftest.$ac_ext <<_ACEOF
32181 /* end confdefs.h. */
32186 float f; std::isnan(f);
32191 rm -f conftest.$ac_objext
32192 if { (ac_try="$ac_compile"
32193 case "(($ac_try" in
32194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195 *) ac_try_echo=$ac_try;;
32197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198 (eval "$ac_compile") 2>conftest.er1
32200 grep -v '^ *+' conftest.er1 >conftest.err
32202 cat conftest.err >&5
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); } &&
32205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32206 { (case "(($ac_try" in
32207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208 *) ac_try_echo=$ac_try;;
32210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211 (eval "$ac_try") 2>&5
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); }; } &&
32215 { ac_try='test -s conftest.$ac_objext'
32216 { (case "(($ac_try" in
32217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218 *) ac_try_echo=$ac_try;;
32220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221 (eval "$ac_try") 2>&5
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); }; }; then
32225 ac_cv_func_std_isnan_in_cmath=yes
32227 echo "$as_me: failed program was:" >&5
32228 sed 's/^/| /' conftest.$ac_ext >&5
32230 ac_cv_func_std_isnan_in_cmath=no
32233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32235 ac_cpp='$CPP $CPPFLAGS'
32236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32241 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32242 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32244 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32246 cat >>confdefs.h <<\_ACEOF
32247 #define HAVE_STD_ISNAN_IN_CMATH 1
32253 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32254 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32255 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32256 echo $ECHO_N "(cached) $ECHO_C" >&6
32259 ac_cpp='$CXXCPP $CPPFLAGS'
32260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32264 cat >conftest.$ac_ext <<_ACEOF
32267 cat confdefs.h >>conftest.$ac_ext
32268 cat >>conftest.$ac_ext <<_ACEOF
32269 /* end confdefs.h. */
32279 rm -f conftest.$ac_objext
32280 if { (ac_try="$ac_compile"
32281 case "(($ac_try" in
32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283 *) ac_try_echo=$ac_try;;
32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_compile") 2>conftest.er1
32288 grep -v '^ *+' conftest.er1 >conftest.err
32290 cat conftest.err >&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } &&
32293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32294 { (case "(($ac_try" in
32295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_try") 2>&5
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); }; } &&
32303 { ac_try='test -s conftest.$ac_objext'
32304 { (case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_try") 2>&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; }; then
32313 ac_cv_func_isinf_in_math_h=yes
32315 echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32318 ac_cv_func_isinf_in_math_h=no
32321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32323 ac_cpp='$CPP $CPPFLAGS'
32324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32329 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32330 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32332 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32334 cat >>confdefs.h <<\_ACEOF
32335 #define HAVE_ISINF_IN_MATH_H 1
32340 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32341 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32342 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32343 echo $ECHO_N "(cached) $ECHO_C" >&6
32346 ac_cpp='$CXXCPP $CPPFLAGS'
32347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32351 cat >conftest.$ac_ext <<_ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h. */
32366 rm -f conftest.$ac_objext
32367 if { (ac_try="$ac_compile"
32368 case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_compile") 2>conftest.er1
32375 grep -v '^ *+' conftest.er1 >conftest.err
32377 cat conftest.err >&5
32378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379 (exit $ac_status); } &&
32380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32381 { (case "(($ac_try" in
32382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383 *) ac_try_echo=$ac_try;;
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386 (eval "$ac_try") 2>&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); }; } &&
32390 { ac_try='test -s conftest.$ac_objext'
32391 { (case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_try") 2>&5
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; }; then
32400 ac_cv_func_isinf_in_cmath=yes
32402 echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32405 ac_cv_func_isinf_in_cmath=no
32408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32410 ac_cpp='$CPP $CPPFLAGS'
32411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32416 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32417 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32419 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32421 cat >>confdefs.h <<\_ACEOF
32422 #define HAVE_ISINF_IN_CMATH 1
32427 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32428 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32429 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32430 echo $ECHO_N "(cached) $ECHO_C" >&6
32433 ac_cpp='$CXXCPP $CPPFLAGS'
32434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32438 cat >conftest.$ac_ext <<_ACEOF
32441 cat confdefs.h >>conftest.$ac_ext
32442 cat >>conftest.$ac_ext <<_ACEOF
32443 /* end confdefs.h. */
32448 float f; std::isinf(f)}
32453 rm -f conftest.$ac_objext
32454 if { (ac_try="$ac_compile"
32455 case "(($ac_try" in
32456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457 *) ac_try_echo=$ac_try;;
32459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460 (eval "$ac_compile") 2>conftest.er1
32462 grep -v '^ *+' conftest.er1 >conftest.err
32464 cat conftest.err >&5
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); } &&
32467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32468 { (case "(($ac_try" in
32469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32470 *) ac_try_echo=$ac_try;;
32472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32473 (eval "$ac_try") 2>&5
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); }; } &&
32477 { ac_try='test -s conftest.$ac_objext'
32478 { (case "(($ac_try" in
32479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480 *) ac_try_echo=$ac_try;;
32482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483 (eval "$ac_try") 2>&5
32485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486 (exit $ac_status); }; }; then
32487 ac_cv_func_std_isinf_in_cmath=yes
32489 echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.$ac_ext >&5
32492 ac_cv_func_std_isinf_in_cmath=no
32495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32497 ac_cpp='$CPP $CPPFLAGS'
32498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32503 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32504 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32506 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32508 cat >>confdefs.h <<\_ACEOF
32509 #define HAVE_STD_ISINF_IN_CMATH 1
32514 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32515 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32516 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32520 ac_cpp='$CXXCPP $CPPFLAGS'
32521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32525 cat >conftest.$ac_ext <<_ACEOF
32528 cat confdefs.h >>conftest.$ac_ext
32529 cat >>conftest.$ac_ext <<_ACEOF
32530 /* end confdefs.h. */
32531 #include <ieeefp.h>
32535 float f; finite(f);
32540 rm -f conftest.$ac_objext
32541 if { (ac_try="$ac_compile"
32542 case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_compile") 2>conftest.er1
32549 grep -v '^ *+' conftest.er1 >conftest.err
32551 cat conftest.err >&5
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); } &&
32554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32555 { (case "(($ac_try" in
32556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557 *) ac_try_echo=$ac_try;;
32559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560 (eval "$ac_try") 2>&5
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; } &&
32564 { ac_try='test -s conftest.$ac_objext'
32565 { (case "(($ac_try" in
32566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32567 *) ac_try_echo=$ac_try;;
32569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32570 (eval "$ac_try") 2>&5
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); }; }; then
32574 ac_cv_func_finite_in_ieeefp_h=yes
32576 echo "$as_me: failed program was:" >&5
32577 sed 's/^/| /' conftest.$ac_ext >&5
32579 ac_cv_func_finite_in_ieeefp_h=no
32582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32584 ac_cpp='$CPP $CPPFLAGS'
32585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32590 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32591 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32593 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32595 cat >>confdefs.h <<\_ACEOF
32596 #define HAVE_FINITE_IN_IEEEFP_H 1
32605 for ac_header in stdlib.h unistd.h
32607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32612 echo $ECHO_N "(cached) $ECHO_C" >&6
32614 ac_res=`eval echo '${'$as_ac_Header'}'`
32615 { echo "$as_me:$LINENO: result: $ac_res" >&5
32616 echo "${ECHO_T}$ac_res" >&6; }
32618 # Is the header compilable?
32619 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32621 cat >conftest.$ac_ext <<_ACEOF
32624 cat confdefs.h >>conftest.$ac_ext
32625 cat >>conftest.$ac_ext <<_ACEOF
32626 /* end confdefs.h. */
32627 $ac_includes_default
32628 #include <$ac_header>
32630 rm -f conftest.$ac_objext
32631 if { (ac_try="$ac_compile"
32632 case "(($ac_try" in
32633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634 *) ac_try_echo=$ac_try;;
32636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637 (eval "$ac_compile") 2>conftest.er1
32639 grep -v '^ *+' conftest.er1 >conftest.err
32641 cat conftest.err >&5
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); } &&
32644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32645 { (case "(($ac_try" in
32646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647 *) ac_try_echo=$ac_try;;
32649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650 (eval "$ac_try") 2>&5
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); }; } &&
32654 { ac_try='test -s conftest.$ac_objext'
32655 { (case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_try") 2>&5
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); }; }; then
32664 ac_header_compiler=yes
32666 echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32669 ac_header_compiler=no
32672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32674 echo "${ECHO_T}$ac_header_compiler" >&6; }
32676 # Is the header present?
32677 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32679 cat >conftest.$ac_ext <<_ACEOF
32682 cat confdefs.h >>conftest.$ac_ext
32683 cat >>conftest.$ac_ext <<_ACEOF
32684 /* end confdefs.h. */
32685 #include <$ac_header>
32687 if { (ac_try="$ac_cpp conftest.$ac_ext"
32688 case "(($ac_try" in
32689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690 *) ac_try_echo=$ac_try;;
32692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32695 grep -v '^ *+' conftest.er1 >conftest.err
32697 cat conftest.err >&5
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); } >/dev/null; then
32700 if test -s conftest.err; then
32701 ac_cpp_err=$ac_c_preproc_warn_flag
32702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32709 if test -z "$ac_cpp_err"; then
32710 ac_header_preproc=yes
32712 echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.$ac_ext >&5
32715 ac_header_preproc=no
32718 rm -f conftest.err conftest.$ac_ext
32719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32720 echo "${ECHO_T}$ac_header_preproc" >&6; }
32722 # So? What about this header?
32723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32729 ac_header_preproc=yes
32732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32745 ## ----------------------------------- ##
32746 ## Report this to llvmbugs@cs.uiuc.edu ##
32747 ## ----------------------------------- ##
32749 ) | sed "s/^/$as_me: WARNING: /" >&2
32752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32757 eval "$as_ac_Header=\$ac_header_preproc"
32759 ac_res=`eval echo '${'$as_ac_Header'}'`
32760 { echo "$as_me:$LINENO: result: $ac_res" >&5
32761 echo "${ECHO_T}$ac_res" >&6; }
32764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32765 cat >>confdefs.h <<_ACEOF
32766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32774 for ac_func in getpagesize
32776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32780 echo $ECHO_N "(cached) $ECHO_C" >&6
32782 cat >conftest.$ac_ext <<_ACEOF
32785 cat confdefs.h >>conftest.$ac_ext
32786 cat >>conftest.$ac_ext <<_ACEOF
32787 /* end confdefs.h. */
32788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32790 #define $ac_func innocuous_$ac_func
32792 /* System header to define __stub macros and hopefully few prototypes,
32793 which can conflict with char $ac_func (); below.
32794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32795 <limits.h> exists even on freestanding compilers. */
32798 # include <limits.h>
32800 # include <assert.h>
32805 /* Override any GCC internal prototype to avoid an error.
32806 Use char because int might match the return type of a GCC
32807 builtin and then its argument prototype would still apply. */
32812 /* The GNU C library defines this for functions which it implements
32813 to always fail with ENOSYS. Some functions are actually named
32814 something starting with __ and the normal name is an alias. */
32815 #if defined __stub_$ac_func || defined __stub___$ac_func
32822 return $ac_func ();
32827 rm -f conftest.$ac_objext conftest$ac_exeext
32828 if { (ac_try="$ac_link"
32829 case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_link") 2>conftest.er1
32836 grep -v '^ *+' conftest.er1 >conftest.err
32838 cat conftest.err >&5
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); } &&
32841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32842 { (case "(($ac_try" in
32843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32844 *) ac_try_echo=$ac_try;;
32846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32847 (eval "$ac_try") 2>&5
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); }; } &&
32851 { ac_try='test -s conftest$ac_exeext'
32852 { (case "(($ac_try" in
32853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32854 *) ac_try_echo=$ac_try;;
32856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32857 (eval "$ac_try") 2>&5
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); }; }; then
32861 eval "$as_ac_var=yes"
32863 echo "$as_me: failed program was:" >&5
32864 sed 's/^/| /' conftest.$ac_ext >&5
32866 eval "$as_ac_var=no"
32869 rm -f core conftest.err conftest.$ac_objext \
32870 conftest$ac_exeext conftest.$ac_ext
32872 ac_res=`eval echo '${'$as_ac_var'}'`
32873 { echo "$as_me:$LINENO: result: $ac_res" >&5
32874 echo "${ECHO_T}$ac_res" >&6; }
32875 if test `eval echo '${'$as_ac_var'}'` = yes; then
32876 cat >>confdefs.h <<_ACEOF
32877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32883 { echo "$as_me:$LINENO: checking for working mmap" >&5
32884 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32885 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32886 echo $ECHO_N "(cached) $ECHO_C" >&6
32888 if test "$cross_compiling" = yes; then
32889 ac_cv_func_mmap_fixed_mapped=no
32891 cat >conftest.$ac_ext <<_ACEOF
32894 cat confdefs.h >>conftest.$ac_ext
32895 cat >>conftest.$ac_ext <<_ACEOF
32896 /* end confdefs.h. */
32897 $ac_includes_default
32898 /* malloc might have been renamed as rpl_malloc. */
32901 /* Thanks to Mike Haertel and Jim Avera for this test.
32902 Here is a matrix of mmap possibilities:
32903 mmap private not fixed
32904 mmap private fixed at somewhere currently unmapped
32905 mmap private fixed at somewhere already mapped
32906 mmap shared not fixed
32907 mmap shared fixed at somewhere currently unmapped
32908 mmap shared fixed at somewhere already mapped
32909 For private mappings, we should verify that changes cannot be read()
32910 back from the file, nor mmap's back from the file at a different
32911 address. (There have been systems where private was not correctly
32912 implemented like the infamous i386 svr4.0, and systems where the
32913 VM page cache was not coherent with the file system buffer cache
32914 like early versions of FreeBSD and possibly contemporary NetBSD.)
32915 For shared mappings, we should conversely verify that changes get
32916 propagated back to all the places they're supposed to be.
32918 Grep wants private fixed already mapped.
32919 The main things grep needs to know about mmap are:
32920 * does it exist and is it safe to write into the mmap'd area
32921 * how to use it (BSD variants) */
32924 #include <sys/mman.h>
32926 #if !STDC_HEADERS && !HAVE_STDLIB_H
32930 /* This mess was copied from the GNU getpagesize.h. */
32931 #if !HAVE_GETPAGESIZE
32932 /* Assume that all systems that can run configure have sys/param.h. */
32933 # if !HAVE_SYS_PARAM_H
32934 # define HAVE_SYS_PARAM_H 1
32937 # ifdef _SC_PAGESIZE
32938 # define getpagesize() sysconf(_SC_PAGESIZE)
32939 # else /* no _SC_PAGESIZE */
32940 # if HAVE_SYS_PARAM_H
32941 # include <sys/param.h>
32942 # ifdef EXEC_PAGESIZE
32943 # define getpagesize() EXEC_PAGESIZE
32944 # else /* no EXEC_PAGESIZE */
32946 # define getpagesize() NBPG * CLSIZE
32949 # endif /* no CLSIZE */
32950 # else /* no NBPG */
32952 # define getpagesize() NBPC
32953 # else /* no NBPC */
32955 # define getpagesize() PAGESIZE
32956 # endif /* PAGESIZE */
32957 # endif /* no NBPC */
32958 # endif /* no NBPG */
32959 # endif /* no EXEC_PAGESIZE */
32960 # else /* no HAVE_SYS_PARAM_H */
32961 # define getpagesize() 8192 /* punt totally */
32962 # endif /* no HAVE_SYS_PARAM_H */
32963 # endif /* no _SC_PAGESIZE */
32965 #endif /* no HAVE_GETPAGESIZE */
32970 char *data, *data2, *data3;
32974 pagesize = getpagesize ();
32976 /* First, make a file with some known garbage in it. */
32977 data = (char *) malloc (pagesize);
32980 for (i = 0; i < pagesize; ++i)
32981 *(data + i) = rand ();
32983 fd = creat ("conftest.mmap", 0600);
32986 if (write (fd, data, pagesize) != pagesize)
32990 /* Next, try to mmap the file at a fixed address which already has
32991 something else allocated at it. If we can, also make sure that
32992 we see the same garbage. */
32993 fd = open ("conftest.mmap", O_RDWR);
32996 data2 = (char *) malloc (2 * pagesize);
32999 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33000 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33001 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33003 for (i = 0; i < pagesize; ++i)
33004 if (*(data + i) != *(data2 + i))
33007 /* Finally, make sure that changes to the mapped area do not
33008 percolate back to the file as seen by read(). (This is a bug on
33009 some variants of i386 svr4.0.) */
33010 for (i = 0; i < pagesize; ++i)
33011 *(data2 + i) = *(data2 + i) + 1;
33012 data3 = (char *) malloc (pagesize);
33015 if (read (fd, data3, pagesize) != pagesize)
33017 for (i = 0; i < pagesize; ++i)
33018 if (*(data + i) != *(data3 + i))
33024 rm -f conftest$ac_exeext
33025 if { (ac_try="$ac_link"
33026 case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_link") 2>&5
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33035 { (case "(($ac_try" in
33036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037 *) ac_try_echo=$ac_try;;
33039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040 (eval "$ac_try") 2>&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); }; }; then
33044 ac_cv_func_mmap_fixed_mapped=yes
33046 echo "$as_me: program exited with status $ac_status" >&5
33047 echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33050 ( exit $ac_status )
33051 ac_cv_func_mmap_fixed_mapped=no
33053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33058 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33059 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33060 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33062 cat >>confdefs.h <<\_ACEOF
33063 #define HAVE_MMAP 1
33067 rm -f conftest.mmap
33069 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33070 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33071 if test "${ac_cv_func_mmap_file+set}" = set; then
33072 echo $ECHO_N "(cached) $ECHO_C" >&6
33075 ac_cpp='$CPP $CPPFLAGS'
33076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33080 if test "$cross_compiling" = yes; then
33081 ac_cv_func_mmap_file=no
33083 cat >conftest.$ac_ext <<_ACEOF
33087 cat confdefs.h >>conftest.$ac_ext
33088 cat >>conftest.$ac_ext <<_ACEOF
33089 /* end confdefs.h. */
33091 #include <sys/types.h>
33092 #include <sys/mman.h>
33100 fd = creat ("foo",0777);
33101 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33103 return (fd != (int) MAP_FAILED);
33108 rm -f conftest$ac_exeext
33109 if { (ac_try="$ac_link"
33110 case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_link") 2>&5
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33119 { (case "(($ac_try" in
33120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121 *) ac_try_echo=$ac_try;;
33123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124 (eval "$ac_try") 2>&5
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); }; }; then
33128 ac_cv_func_mmap_file=yes
33130 echo "$as_me: program exited with status $ac_status" >&5
33131 echo "$as_me: failed program was:" >&5
33132 sed 's/^/| /' conftest.$ac_ext >&5
33134 ( exit $ac_status )
33135 ac_cv_func_mmap_file=no
33137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33142 ac_cpp='$CPP $CPPFLAGS'
33143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33149 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33150 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33151 if test "$ac_cv_func_mmap_file" = yes; then
33153 cat >>confdefs.h <<\_ACEOF
33154 #define HAVE_MMAP_FILE
33161 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33162 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33163 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33164 echo $ECHO_N "(cached) $ECHO_C" >&6
33166 if test "$llvm_cv_os_type" = "Interix" ; then
33167 ac_cv_need_dev_zero_for_mmap=yes
33169 ac_cv_need_dev_zero_for_mmap=no
33173 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33174 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33175 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33177 cat >>confdefs.h <<\_ACEOF
33178 #define NEED_DEV_ZERO_FOR_MMAP 1
33182 { echo "$as_me:$LINENO: checking for mprotect" >&5
33183 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33184 if test "${ac_cv_func_mprotect+set}" = set; then
33185 echo $ECHO_N "(cached) $ECHO_C" >&6
33187 cat >conftest.$ac_ext <<_ACEOF
33190 cat confdefs.h >>conftest.$ac_ext
33191 cat >>conftest.$ac_ext <<_ACEOF
33192 /* end confdefs.h. */
33193 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33195 #define mprotect innocuous_mprotect
33197 /* System header to define __stub macros and hopefully few prototypes,
33198 which can conflict with char mprotect (); below.
33199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33200 <limits.h> exists even on freestanding compilers. */
33203 # include <limits.h>
33205 # include <assert.h>
33210 /* Override any GCC internal prototype to avoid an error.
33211 Use char because int might match the return type of a GCC
33212 builtin and then its argument prototype would still apply. */
33217 /* The GNU C library defines this for functions which it implements
33218 to always fail with ENOSYS. Some functions are actually named
33219 something starting with __ and the normal name is an alias. */
33220 #if defined __stub_mprotect || defined __stub___mprotect
33227 return mprotect ();
33232 rm -f conftest.$ac_objext conftest$ac_exeext
33233 if { (ac_try="$ac_link"
33234 case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_link") 2>conftest.er1
33241 grep -v '^ *+' conftest.er1 >conftest.err
33243 cat conftest.err >&5
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); } &&
33246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33247 { (case "(($ac_try" in
33248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249 *) ac_try_echo=$ac_try;;
33251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252 (eval "$ac_try") 2>&5
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); }; } &&
33256 { ac_try='test -s conftest$ac_exeext'
33257 { (case "(($ac_try" in
33258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33259 *) ac_try_echo=$ac_try;;
33261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33262 (eval "$ac_try") 2>&5
33264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265 (exit $ac_status); }; }; then
33266 ac_cv_func_mprotect=yes
33268 echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33271 ac_cv_func_mprotect=no
33274 rm -f core conftest.err conftest.$ac_objext \
33275 conftest$ac_exeext conftest.$ac_ext
33277 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33278 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33279 if test $ac_cv_func_mprotect = yes; then
33282 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33283 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33284 { (exit 1); exit 1; }; }
33288 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33290 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33291 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33293 if test "$ac_cv_func_mmap_file" = "no"
33295 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33296 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33300 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33301 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33302 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33303 echo $ECHO_N "(cached) $ECHO_C" >&6
33305 llvm_cv_llvmgcc_sanity="no"
33306 if test -x "$LLVMGCC" ; then
33307 cp /dev/null conftest.c
33308 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33309 if test $? -eq 0 ; then
33310 llvm_cv_llvmgcc_sanity="yes"
33315 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33316 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33318 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33319 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33320 LLVMCC1=$llvmcc1path
33322 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33323 LLVMCC1PLUS=$llvmcc1pluspath
33325 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33326 LLVMGCCDIR=$llvmgccdir
33328 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33329 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33330 LLVMGCC_VERSION=$llvmgccversion
33332 LLVMGCC_MAJVERS=$llvmgccmajvers
33336 SHLIBEXT=$libltdl_cv_shlibext
33339 # Translate the various configuration directories and other basic
33340 # information into substitutions that will end up in Makefile.config.in
33341 # that these configured values can be used by the makefiles
33342 if test "${prefix}" == "NONE" ; then
33343 prefix="/usr/local"
33345 eval LLVM_PREFIX="${prefix}";
33346 eval LLVM_BINDIR="${prefix}/bin";
33347 eval LLVM_LIBDIR="${prefix}/lib";
33348 eval LLVM_DATADIR="${prefix}/share/llvm";
33349 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33350 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33351 eval LLVM_INCLUDEDIR="${prefix}/include";
33352 eval LLVM_INFODIR="${prefix}/info";
33353 eval LLVM_MANDIR="${prefix}/man";
33354 LLVM_CONFIGTIME=`date`
33366 # Place the various directores into the config.h file as #defines so that we
33367 # can know about the installation paths within LLVM.
33369 cat >>confdefs.h <<_ACEOF
33370 #define LLVM_PREFIX "$LLVM_PREFIX"
33374 cat >>confdefs.h <<_ACEOF
33375 #define LLVM_BINDIR "$LLVM_BINDIR"
33379 cat >>confdefs.h <<_ACEOF
33380 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33384 cat >>confdefs.h <<_ACEOF
33385 #define LLVM_DATADIR "$LLVM_DATADIR"
33389 cat >>confdefs.h <<_ACEOF
33390 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33394 cat >>confdefs.h <<_ACEOF
33395 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33399 cat >>confdefs.h <<_ACEOF
33400 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33404 cat >>confdefs.h <<_ACEOF
33405 #define LLVM_INFODIR "$LLVM_INFODIR"
33409 cat >>confdefs.h <<_ACEOF
33410 #define LLVM_MANDIR "$LLVM_MANDIR"
33414 cat >>confdefs.h <<_ACEOF
33415 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33420 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33422 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33424 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33426 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33428 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33431 ac_config_files="$ac_config_files Makefile.config"
33434 ac_config_files="$ac_config_files llvm.spec"
33437 ac_config_files="$ac_config_files docs/doxygen.cfg"
33440 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33443 ac_config_commands="$ac_config_commands setup"
33445 ac_config_commands="$ac_config_commands Makefile"
33448 ac_config_commands="$ac_config_commands Makefile.common"
33451 ac_config_commands="$ac_config_commands examples/Makefile"
33454 ac_config_commands="$ac_config_commands lib/Makefile"
33457 ac_config_commands="$ac_config_commands runtime/Makefile"
33460 ac_config_commands="$ac_config_commands test/Makefile"
33463 ac_config_commands="$ac_config_commands test/Makefile.tests"
33466 ac_config_commands="$ac_config_commands tools/Makefile"
33469 ac_config_commands="$ac_config_commands utils/Makefile"
33472 ac_config_commands="$ac_config_commands projects/Makefile"
33476 cat >confcache <<\_ACEOF
33477 # This file is a shell script that caches the results of configure
33478 # tests run on this system so they can be shared between configure
33479 # scripts and configure runs, see configure's option --config-cache.
33480 # It is not useful on other systems. If it contains results you don't
33481 # want to keep, you may remove or edit it.
33483 # config.status only pays attention to the cache file if you give it
33484 # the --recheck option to rerun configure.
33486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33488 # following values.
33492 # The following way of writing the cache mishandles newlines in values,
33493 # but we know of no workaround that is simple, portable, and efficient.
33494 # So, we kill variables containing newlines.
33495 # Ultrix sh set writes to stderr and can't be redirected directly,
33496 # and sets the high bit in the cache file unless we assign to the vars.
33498 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33499 eval ac_val=\$$ac_var
33503 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33504 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33507 _ | IFS | as_nl) ;; #(
33508 *) $as_unset $ac_var ;;
33514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33515 *${as_nl}ac_space=\ *)
33516 # `set' does not quote correctly, so add quotes (double-quote
33517 # substitution turns \\\\ into \\, and sed turns \\ into \).
33520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33523 # `set' quotes correctly as required by POSIX, so do not add quotes.
33524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33538 if test -w "$cache_file"; then
33539 test "x$cache_file" != "x/dev/null" &&
33540 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33541 echo "$as_me: updating cache $cache_file" >&6;}
33542 cat confcache >$cache_file
33544 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33545 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33551 # Let make expand exec_prefix.
33552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33554 DEFS=-DHAVE_CONFIG_H
33558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33559 # 1. Remove the extension, and $U if already installed.
33560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33561 ac_i=`echo "$ac_i" | sed "$ac_script"`
33562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33563 # will be set to the directory where LIBOBJS objects are built.
33564 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33565 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33567 LIBOBJS=$ac_libobjs
33569 LTLIBOBJS=$ac_ltlibobjs
33572 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33573 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33574 Usually this means the macro was only invoked conditionally." >&5
33575 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33576 Usually this means the macro was only invoked conditionally." >&2;}
33577 { (exit 1); exit 1; }; }
33579 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33580 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33581 Usually this means the macro was only invoked conditionally." >&5
33582 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33583 Usually this means the macro was only invoked conditionally." >&2;}
33584 { (exit 1); exit 1; }; }
33587 : ${CONFIG_STATUS=./config.status}
33588 ac_clean_files_save=$ac_clean_files
33589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33590 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33591 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33592 cat >$CONFIG_STATUS <<_ACEOF
33594 # Generated by $as_me.
33595 # Run this file to recreate the current configuration.
33596 # Compiler output produced by configure, useful for debugging
33597 # configure, is in config.log if it exists.
33600 ac_cs_recheck=false
33602 SHELL=\${CONFIG_SHELL-$SHELL}
33605 cat >>$CONFIG_STATUS <<\_ACEOF
33606 ## --------------------- ##
33607 ## M4sh Initialization. ##
33608 ## --------------------- ##
33610 # Be Bourne compatible
33611 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33614 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33615 # is contrary to our usage. Disable this feature.
33616 alias -g '${1+"$@"}'='"$@"'
33617 setopt NO_GLOB_SUBST
33619 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33621 BIN_SH=xpg4; export BIN_SH # for Tru64
33622 DUALCASE=1; export DUALCASE # for MKS sh
33626 # Avoid depending upon Character Ranges.
33627 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33628 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33629 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33630 as_cr_digits='0123456789'
33631 as_cr_alnum=$as_cr_Letters$as_cr_digits
33633 # The user is always right.
33634 if test "${PATH_SEPARATOR+set}" != set; then
33635 echo "#! /bin/sh" >conf$$.sh
33636 echo "exit 0" >>conf$$.sh
33638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33646 # Support unset when possible.
33647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33655 # We need space, tab and new line, in precisely that order. Quoting is
33656 # there to prevent editors from complaining about space-tab.
33657 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33658 # splitting by setting IFS to empty value.)
33663 # Find who we are. Look in the path if we contain no directory separator.
33665 *[\\/]* ) as_myself=$0 ;;
33666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33667 for as_dir in $PATH
33670 test -z "$as_dir" && as_dir=.
33671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33677 # We did not find ourselves, most probably we were run as `sh COMMAND'
33678 # in which case we are not to be found in the path.
33679 if test "x$as_myself" = x; then
33682 if test ! -f "$as_myself"; then
33683 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33684 { (exit 1); exit 1; }
33687 # Work around bugs in pre-3.0 UWIN ksh.
33688 for as_var in ENV MAIL MAILPATH
33689 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33697 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33698 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33699 LC_TELEPHONE LC_TIME
33701 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33702 eval $as_var=C; export $as_var
33704 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33708 # Required to use basename.
33709 if expr a : '\(a\)' >/dev/null 2>&1 &&
33710 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33716 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33717 as_basename=basename
33723 # Name of the executable.
33724 as_me=`$as_basename -- "$0" ||
33725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33726 X"$0" : 'X\(//\)$' \| \
33727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33729 sed '/^.*\/\([^/][^/]*\)\/*$/{
33748 as_lineno_1=$LINENO
33749 as_lineno_2=$LINENO
33750 test "x$as_lineno_1" != "x$as_lineno_2" &&
33751 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33753 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33754 # uniformly replaced by the line number. The first 'sed' inserts a
33755 # line-number line after each line using $LINENO; the second 'sed'
33756 # does the real work. The second script uses 'N' to pair each
33757 # line-number line with the line containing $LINENO, and appends
33758 # trailing '-' during substitution so that $LINENO is not a special
33759 # case at line end.
33760 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33761 # scripts with optimization help from Paolo Bonzini. Blame Lee
33762 # E. McMahon (1931-1989) for sed's syntax. :-)
33774 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33777 ' >$as_me.lineno &&
33778 chmod +x "$as_me.lineno" ||
33779 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33780 { (exit 1); exit 1; }; }
33782 # Don't try to exec as it changes $[0], causing all sort of problems
33783 # (the dirname of $[0] is not the place where we might find the
33784 # original and so on. Autoconf is especially sensitive to this).
33785 . "./$as_me.lineno"
33786 # Exit status is that of the last command.
33791 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33797 ECHO_C= ECHO_N= ECHO_T=
33798 case `echo -n x` in
33800 case `echo 'x\c'` in
33801 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33808 if expr a : '\(a\)' >/dev/null 2>&1 &&
33809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33815 rm -f conf$$ conf$$.exe conf$$.file
33816 if test -d conf$$.dir; then
33817 rm -f conf$$.dir/conf$$.file
33823 if ln -s conf$$.file conf$$ 2>/dev/null; then
33825 # ... but there are two gotchas:
33826 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33827 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33828 # In both cases, we have to default to `cp -p'.
33829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33831 elif ln conf$$.file conf$$ 2>/dev/null; then
33836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33837 rmdir conf$$.dir 2>/dev/null
33839 if mkdir -p . 2>/dev/null; then
33842 test -d ./-p && rmdir ./-p
33846 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33847 # systems may use methods other than mode bits to determine executability.
33848 cat >conf$$.file <<_ASEOF
33852 chmod +x conf$$.file
33853 if test -x conf$$.file >/dev/null 2>&1; then
33854 as_executable_p="test -x"
33860 # Sed expression to map a string onto a valid CPP name.
33861 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33863 # Sed expression to map a string onto a valid variable name.
33864 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33869 # Save the log message, to keep $[0] and so on meaningful, and to
33870 # report actual input values of CONFIG_FILES etc. instead of their
33871 # values after options handling.
33873 This file was extended by llvm $as_me 2.0cvs, which was
33874 generated by GNU Autoconf 2.60. Invocation command line was
33876 CONFIG_FILES = $CONFIG_FILES
33877 CONFIG_HEADERS = $CONFIG_HEADERS
33878 CONFIG_LINKS = $CONFIG_LINKS
33879 CONFIG_COMMANDS = $CONFIG_COMMANDS
33882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33887 cat >>$CONFIG_STATUS <<_ACEOF
33888 # Files that config.status was made for.
33889 config_files="$ac_config_files"
33890 config_headers="$ac_config_headers"
33891 config_commands="$ac_config_commands"
33895 cat >>$CONFIG_STATUS <<\_ACEOF
33897 \`$as_me' instantiates files from templates according to the
33898 current configuration.
33900 Usage: $0 [OPTIONS] [FILE]...
33902 -h, --help print this help, then exit
33903 -V, --version print version number, then exit
33904 -q, --quiet do not print progress messages
33905 -d, --debug don't remove temporary files
33906 --recheck update $as_me by reconfiguring in the same conditions
33907 --file=FILE[:TEMPLATE]
33908 instantiate the configuration file FILE
33909 --header=FILE[:TEMPLATE]
33910 instantiate the configuration header FILE
33912 Configuration files:
33915 Configuration headers:
33918 Configuration commands:
33921 Report bugs to <bug-autoconf@gnu.org>."
33924 cat >>$CONFIG_STATUS <<_ACEOF
33926 llvm config.status 2.0cvs
33927 configured by $0, generated by GNU Autoconf 2.60,
33928 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33930 Copyright (C) 2006 Free Software Foundation, Inc.
33931 This config.status script is free software; the Free Software Foundation
33932 gives unlimited permission to copy, distribute and modify it."
33939 cat >>$CONFIG_STATUS <<\_ACEOF
33940 # If no file are specified by the user, then we need to provide default
33941 # value. By we need to know if files were specified by the user.
33947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33948 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33959 # Handling of the options.
33960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33963 echo "$ac_cs_version"; exit ;;
33964 --debug | --debu | --deb | --de | --d | -d )
33966 --file | --fil | --fi | --f )
33968 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33969 ac_need_defaults=false;;
33970 --header | --heade | --head | --hea )
33972 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33973 ac_need_defaults=false;;
33975 # Conflict between --help and --header
33976 { echo "$as_me: error: ambiguous option: $1
33977 Try \`$0 --help' for more information." >&2
33978 { (exit 1); exit 1; }; };;
33979 --help | --hel | -h )
33980 echo "$ac_cs_usage"; exit ;;
33981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33985 # This is an error.
33986 -*) { echo "$as_me: error: unrecognized option: $1
33987 Try \`$0 --help' for more information." >&2
33988 { (exit 1); exit 1; }; } ;;
33990 *) ac_config_targets="$ac_config_targets $1"
33991 ac_need_defaults=false ;;
33997 ac_configure_extra_args=
33999 if $ac_cs_silent; then
34001 ac_configure_extra_args="$ac_configure_extra_args --silent"
34005 cat >>$CONFIG_STATUS <<_ACEOF
34006 if \$ac_cs_recheck; then
34007 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34008 CONFIG_SHELL=$SHELL
34009 export CONFIG_SHELL
34010 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34014 cat >>$CONFIG_STATUS <<\_ACEOF
34018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34019 ## Running $as_me. ##
34025 cat >>$CONFIG_STATUS <<_ACEOF
34029 llvm_src="${srcdir}"
34033 cat >>$CONFIG_STATUS <<\_ACEOF
34035 # Handling of arguments.
34036 for ac_config_target in $ac_config_targets
34038 case $ac_config_target in
34039 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34040 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34041 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34042 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34043 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34044 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34045 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34046 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34047 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34048 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34049 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34050 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34051 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34052 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34053 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34054 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34055 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34056 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34057 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34058 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34060 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34061 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34062 { (exit 1); exit 1; }; };;
34067 # If the user did not use the arguments to specify the items to instantiate,
34068 # then the envvar interface is used. Set only those that are not.
34069 # We use the long form for the default assignment because of an extremely
34070 # bizarre bug on SunOS 4.1.3.
34071 if $ac_need_defaults; then
34072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34077 # Have a temporary directory for convenience. Make it in the build tree
34078 # simply because there is no reason against having it here, and in addition,
34079 # creating and moving files from /tmp can sometimes cause problems.
34080 # Hook for its removal unless debugging.
34081 # Note that there is a small window in which the directory will not be cleaned:
34082 # after its creation but before its name has been assigned to `$tmp'.
34086 trap 'exit_status=$?
34087 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34089 trap '{ (exit 1); exit 1; }' 1 2 13 15
34091 # Create a (secure) tmp directory for tmp files.
34094 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34095 test -n "$tmp" && test -d "$tmp"
34098 tmp=./conf$$-$RANDOM
34099 (umask 077 && mkdir "$tmp")
34102 echo "$me: cannot create a temporary directory in ." >&2
34103 { (exit 1); exit 1; }
34107 # Set up the sed scripts for CONFIG_FILES section.
34110 # No need to generate the scripts if there are no CONFIG_FILES.
34111 # This happens for instance when ./config.status config.h
34112 if test -n "$CONFIG_FILES"; then
34119 for ac_last_try in false false false false false :; do
34120 cat >conf$$subs.sed <<_ACEOF
34121 SHELL!$SHELL$ac_delim
34122 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34123 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34124 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34125 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34126 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34127 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34128 exec_prefix!$exec_prefix$ac_delim
34129 prefix!$prefix$ac_delim
34130 program_transform_name!$program_transform_name$ac_delim
34131 bindir!$bindir$ac_delim
34132 sbindir!$sbindir$ac_delim
34133 libexecdir!$libexecdir$ac_delim
34134 datarootdir!$datarootdir$ac_delim
34135 datadir!$datadir$ac_delim
34136 sysconfdir!$sysconfdir$ac_delim
34137 sharedstatedir!$sharedstatedir$ac_delim
34138 localstatedir!$localstatedir$ac_delim
34139 includedir!$includedir$ac_delim
34140 oldincludedir!$oldincludedir$ac_delim
34141 docdir!$docdir$ac_delim
34142 infodir!$infodir$ac_delim
34143 htmldir!$htmldir$ac_delim
34144 dvidir!$dvidir$ac_delim
34145 pdfdir!$pdfdir$ac_delim
34146 psdir!$psdir$ac_delim
34147 libdir!$libdir$ac_delim
34148 localedir!$localedir$ac_delim
34149 mandir!$mandir$ac_delim
34150 DEFS!$DEFS$ac_delim
34151 ECHO_C!$ECHO_C$ac_delim
34152 ECHO_N!$ECHO_N$ac_delim
34153 ECHO_T!$ECHO_T$ac_delim
34154 LIBS!$LIBS$ac_delim
34155 build_alias!$build_alias$ac_delim
34156 host_alias!$host_alias$ac_delim
34157 target_alias!$target_alias$ac_delim
34158 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34159 subdirs!$subdirs$ac_delim
34160 build!$build$ac_delim
34161 build_cpu!$build_cpu$ac_delim
34162 build_vendor!$build_vendor$ac_delim
34163 build_os!$build_os$ac_delim
34164 host!$host$ac_delim
34165 host_cpu!$host_cpu$ac_delim
34166 host_vendor!$host_vendor$ac_delim
34167 host_os!$host_os$ac_delim
34168 target!$target$ac_delim
34169 target_cpu!$target_cpu$ac_delim
34170 target_vendor!$target_vendor$ac_delim
34171 target_os!$target_os$ac_delim
34173 LINKALL!$LINKALL$ac_delim
34174 NOLINKALL!$NOLINKALL$ac_delim
34175 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34176 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34177 ARCH!$ARCH$ac_delim
34178 ENDIAN!$ENDIAN$ac_delim
34180 CFLAGS!$CFLAGS$ac_delim
34181 LDFLAGS!$LDFLAGS$ac_delim
34182 CPPFLAGS!$CPPFLAGS$ac_delim
34183 ac_ct_CC!$ac_ct_CC$ac_delim
34184 EXEEXT!$EXEEXT$ac_delim
34185 OBJEXT!$OBJEXT$ac_delim
34187 GREP!$GREP$ac_delim
34188 EGREP!$EGREP$ac_delim
34189 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34190 BUILD_CC!$BUILD_CC$ac_delim
34191 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34192 CVSBUILD!$CVSBUILD$ac_delim
34193 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34194 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34195 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34197 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34198 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34199 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34200 ENABLE_PIC!$ENABLE_PIC$ac_delim
34201 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34202 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34203 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34205 CXXFLAGS!$CXXFLAGS$ac_delim
34206 ac_ct_CXX!$ac_ct_CXX$ac_delim
34208 LEXLIB!$LEXLIB$ac_delim
34209 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34210 FLEX!$FLEX$ac_delim
34211 YACC!$YACC$ac_delim
34212 YFLAGS!$YFLAGS$ac_delim
34213 BISON!$BISON$ac_delim
34215 ifGNUmake!$ifGNUmake$ac_delim
34216 LN_S!$LN_S$ac_delim
34220 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34222 elif $ac_last_try; then
34223 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34224 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34225 { (exit 1); exit 1; }; }
34227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34231 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34232 if test -n "$ac_eof"; then
34233 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34234 ac_eof=`expr $ac_eof + 1`
34237 cat >>$CONFIG_STATUS <<_ACEOF
34238 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34242 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34243 s/^/s,@/; s/!/@,|#_!!_#|/
34246 s/'"$ac_delim"'$/,g/; t
34248 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34249 ' >>$CONFIG_STATUS <conf$$subs.sed
34250 rm -f conf$$subs.sed
34251 cat >>$CONFIG_STATUS <<_ACEOF
34257 for ac_last_try in false false false false false :; do
34258 cat >conf$$subs.sed <<_ACEOF
34260 DATE!$DATE$ac_delim
34261 FIND!$FIND$ac_delim
34262 MKDIR!$MKDIR$ac_delim
34264 RANLIB!$RANLIB$ac_delim
34268 BINPWD!$BINPWD$ac_delim
34269 GRAPHVIZ!$GRAPHVIZ$ac_delim
34272 DOTTY!$DOTTY$ac_delim
34273 PERL!$PERL$ac_delim
34274 HAVE_PERL!$HAVE_PERL$ac_delim
34275 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34276 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34277 INSTALL_DATA!$INSTALL_DATA$ac_delim
34278 BZIP2!$BZIP2$ac_delim
34279 DOXYGEN!$DOXYGEN$ac_delim
34280 GROFF!$GROFF$ac_delim
34281 GZIP!$GZIP$ac_delim
34282 POD2HTML!$POD2HTML$ac_delim
34283 POD2MAN!$POD2MAN$ac_delim
34284 RUNTEST!$RUNTEST$ac_delim
34285 TCLSH!$TCLSH$ac_delim
34287 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34288 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34289 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34290 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34291 LIBADD_DL!$LIBADD_DL$ac_delim
34292 ECHO!$ECHO$ac_delim
34294 STRIP!$STRIP$ac_delim
34295 CXXCPP!$CXXCPP$ac_delim
34297 FFLAGS!$FFLAGS$ac_delim
34298 ac_ct_F77!$ac_ct_F77$ac_delim
34299 LIBTOOL!$LIBTOOL$ac_delim
34300 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34301 LLVMGCC!$LLVMGCC$ac_delim
34302 LLVMGXX!$LLVMGXX$ac_delim
34303 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34304 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34305 ALLOCA!$ALLOCA$ac_delim
34306 MMAP_FILE!$MMAP_FILE$ac_delim
34307 LLVMCC1!$LLVMCC1$ac_delim
34308 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34309 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34310 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34311 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34312 SHLIBEXT!$SHLIBEXT$ac_delim
34313 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34314 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34315 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34316 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34317 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34318 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34319 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34320 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34321 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34322 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34323 LIBOBJS!$LIBOBJS$ac_delim
34324 LTLIBOBJS!$LTLIBOBJS$ac_delim
34327 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
34329 elif $ac_last_try; then
34330 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34331 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34332 { (exit 1); exit 1; }; }
34334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34338 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34339 if test -n "$ac_eof"; then
34340 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34341 ac_eof=`expr $ac_eof + 1`
34344 cat >>$CONFIG_STATUS <<_ACEOF
34345 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34349 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34350 s/^/s,@/; s/!/@,|#_!!_#|/
34353 s/'"$ac_delim"'$/,g/; t
34355 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34356 ' >>$CONFIG_STATUS <conf$$subs.sed
34357 rm -f conf$$subs.sed
34358 cat >>$CONFIG_STATUS <<_ACEOF
34365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34367 # trailing colons and then remove the whole line if VPATH becomes empty
34368 # (actually we leave an empty line to preserve line numbers).
34369 if test "x$srcdir" = x.; then
34370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34371 s/:*\$(srcdir):*/:/
34372 s/:*\${srcdir}:*/:/
34374 s/^\([^=]*=[ ]*\):*/\1/
34380 cat >>$CONFIG_STATUS <<\_ACEOF
34381 fi # test -n "$CONFIG_FILES"
34384 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34387 :[FHLC]) ac_mode=$ac_tag; continue;;
34389 case $ac_mode$ac_tag in
34391 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34392 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34393 { (exit 1); exit 1; }; };;
34394 :[FH]-) ac_tag=-:-;;
34395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34412 -) ac_f="$tmp/stdin";;
34413 *) # Look for the file first in the build tree, then in the source tree
34414 # (if the path is not absolute). The absolute path cannot be DOS-style,
34415 # because $ac_f cannot contain `:'.
34419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34421 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34422 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34423 { (exit 1); exit 1; }; };;
34425 ac_file_inputs="$ac_file_inputs $ac_f"
34428 # Let's still pretend it is `configure' which instantiates (i.e., don't
34429 # use $as_me), people would be surprised to read:
34430 # /* config.h. Generated by config.status. */
34431 configure_input="Generated from "`IFS=:
34432 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34433 if test x"$ac_file" != x-; then
34434 configure_input="$ac_file. $configure_input"
34435 { echo "$as_me:$LINENO: creating $ac_file" >&5
34436 echo "$as_me: creating $ac_file" >&6;}
34440 *:-:* | *:-) cat >"$tmp/stdin";;
34445 ac_dir=`$as_dirname -- "$ac_file" ||
34446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34447 X"$ac_file" : 'X\(//\)[^/]' \| \
34448 X"$ac_file" : 'X\(//\)$' \| \
34449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34455 /^X\(\/\/\)[^/].*/{
34470 -*) as_dir=./$as_dir;;
34472 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34476 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34477 *) as_qdir=$as_dir;;
34479 as_dirs="'$as_qdir' $as_dirs"
34480 as_dir=`$as_dirname -- "$as_dir" ||
34481 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34482 X"$as_dir" : 'X\(//\)[^/]' \| \
34483 X"$as_dir" : 'X\(//\)$' \| \
34484 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34490 /^X\(\/\/\)[^/].*/{
34503 test -d "$as_dir" && break
34505 test -z "$as_dirs" || eval "mkdir $as_dirs"
34506 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34507 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34508 { (exit 1); exit 1; }; }; }
34512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34515 # A ".." for each directory in $ac_dir_suffix.
34516 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34517 case $ac_top_builddir_sub in
34518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34522 ac_abs_top_builddir=$ac_pwd
34523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34524 # for backward compatibility:
34525 ac_top_builddir=$ac_top_build_prefix
34528 .) # We are building in place.
34530 ac_top_srcdir=$ac_top_builddir_sub
34531 ac_abs_top_srcdir=$ac_pwd ;;
34532 [\\/]* | ?:[\\/]* ) # Absolute name.
34533 ac_srcdir=$srcdir$ac_dir_suffix;
34534 ac_top_srcdir=$srcdir
34535 ac_abs_top_srcdir=$srcdir ;;
34536 *) # Relative name.
34537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34538 ac_top_srcdir=$ac_top_build_prefix$srcdir
34539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34551 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34552 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34556 cat >>$CONFIG_STATUS <<\_ACEOF
34557 # If the template does not know about datarootdir, expand it.
34558 # FIXME: This hack should be removed a few years after 2.60.
34559 ac_datarootdir_hack=; ac_datarootdir_seen=
34561 case `sed -n '/datarootdir/ {
34570 ' $ac_file_inputs` in
34571 *datarootdir*) ac_datarootdir_seen=yes;;
34572 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34573 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34574 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34576 cat >>$CONFIG_STATUS <<_ACEOF
34577 ac_datarootdir_hack='
34578 s&@datadir@&$datadir&g
34579 s&@docdir@&$docdir&g
34580 s&@infodir@&$infodir&g
34581 s&@localedir@&$localedir&g
34582 s&@mandir@&$mandir&g
34583 s&\\\${datarootdir}&$datarootdir&g' ;;
34587 # Neutralize VPATH when `$srcdir' = `.'.
34588 # Shell code in configure.ac might set extrasub.
34589 # FIXME: do we really want to maintain this feature?
34590 cat >>$CONFIG_STATUS <<_ACEOF
34594 cat >>$CONFIG_STATUS <<\_ACEOF
34596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34597 s&@configure_input@&$configure_input&;t t
34598 s&@top_builddir@&$ac_top_builddir_sub&;t t
34599 s&@srcdir@&$ac_srcdir&;t t
34600 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34601 s&@top_srcdir@&$ac_top_srcdir&;t t
34602 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34603 s&@builddir@&$ac_builddir&;t t
34604 s&@abs_builddir@&$ac_abs_builddir&;t t
34605 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34606 s&@INSTALL@&$ac_INSTALL&;t t
34607 $ac_datarootdir_hack
34608 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34610 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34611 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34612 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34613 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34614 which seems to be undefined. Please make sure it is defined." >&5
34615 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34616 which seems to be undefined. Please make sure it is defined." >&2;}
34620 -) cat "$tmp/out"; rm -f "$tmp/out";;
34621 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34630 # Transform confdefs.h into a sed script `conftest.defines', that
34631 # substitutes the proper values into config.h.in to produce config.h.
34632 rm -f conftest.defines conftest.tail
34633 # First, append a space to every undef/define line, to ease matching.
34634 echo 's/$/ /' >conftest.defines
34635 # Then, protect against being on the right side of a sed subst, or in
34636 # an unquoted here document, in config.status. If some macros were
34637 # called several times there might be several #defines for the same
34638 # symbol, which is useless. But do not sort them, since the last
34639 # AC_DEFINE must be honored.
34640 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34641 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34642 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34643 # PARAMS is the parameter list in the macro definition--in most cases, it's
34644 # just an empty string.
34645 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34646 ac_dB='\\)[ (].*,\\1define\\2'
34654 s/^[ ]*#[ ]*define[ ][ ]*//
34659 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34660 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34661 ' >>conftest.defines
34663 # Remove the space that was appended to ease matching.
34664 # Then replace #undef with comments. This is necessary, for
34665 # example, in the case of _POSIX_SOURCE, which is predefined and required
34666 # on some systems where configure will not decide to define it.
34667 # (The regexp can be short, since the line contains either #define or #undef.)
34669 s,^[ #]*u.*,/* & */,' >>conftest.defines
34671 # Break up conftest.defines:
34672 ac_max_sed_lines=50
34674 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34675 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34676 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34678 ac_in='$ac_file_inputs'
34679 ac_out='"$tmp/out1"'
34680 ac_nxt='"$tmp/out2"'
34684 # Write a here document:
34685 cat >>$CONFIG_STATUS <<_ACEOF
34686 # First, check the format of the line:
34687 cat >"\$tmp/defines.sed" <<\\CEOF
34688 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34689 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34693 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34695 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34696 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34697 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34698 grep . conftest.tail >/dev/null || break
34699 rm -f conftest.defines
34700 mv conftest.tail conftest.defines
34702 rm -f conftest.defines conftest.tail
34704 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34705 cat >>$CONFIG_STATUS <<\_ACEOF
34706 if test x"$ac_file" != x-; then
34707 echo "/* $configure_input */" >"$tmp/config.h"
34708 cat "$ac_result" >>"$tmp/config.h"
34709 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34710 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34711 echo "$as_me: $ac_file is unchanged" >&6;}
34714 mv "$tmp/config.h" $ac_file
34717 echo "/* $configure_input */"
34723 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34724 echo "$as_me: executing $ac_file commands" >&6;}
34729 case $ac_file$ac_mode in
34730 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34731 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34732 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34733 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34734 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34735 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34736 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34737 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34738 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34739 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34740 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34741 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34742 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34743 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34744 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34745 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34746 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34747 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34748 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34749 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34755 { (exit 0); exit 0; }
34757 chmod +x $CONFIG_STATUS
34758 ac_clean_files=$ac_clean_files_save
34761 # configure is writing to config.log, and then calls config.status.
34762 # config.status does its own redirection, appending to config.log.
34763 # Unfortunately, on DOS this fails, as config.log is still kept open
34764 # by configure, so config.status won't be able to write to it; its
34765 # output is simply discarded. So we exec the FD to /dev/null,
34766 # effectively closing config.log, so it can be properly (re)opened and
34767 # appended to by config.status. When coming back to configure, we
34768 # need to make the FD available again.
34769 if test "$no_create" != yes; then
34771 ac_config_status_args=
34772 test "$silent" = yes &&
34773 ac_config_status_args="$ac_config_status_args --quiet"
34775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34778 # would make configure fail if this is the last instruction.
34779 $ac_cs_success || { (exit 1); exit 1; }
34783 # CONFIG_SUBDIRS section.
34785 if test "$no_recursion" != yes; then
34787 # Remove --cache-file and --srcdir arguments so they do not pile up.
34788 ac_sub_configure_args=
34790 eval "set x $ac_configure_args"
34794 if test -n "$ac_prev"; then
34799 -cache-file | --cache-file | --cache-fil | --cache-fi \
34800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34801 ac_prev=cache_file ;;
34802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34806 --config-cache | -C)
34808 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34810 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34812 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34814 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34818 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34820 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34824 # Always prepend --prefix to ensure using the same prefix
34825 # in subdir configurations.
34826 ac_arg="--prefix=$prefix"
34828 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34830 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34833 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34835 # Do not complain, so a configure script can configure whichever
34836 # parts of a large source tree are present.
34837 test -d "$srcdir/$ac_dir" || continue
34839 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34840 echo "$as_me:$LINENO: $ac_msg" >&5
34844 -*) as_dir=./$as_dir;;
34846 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34850 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34851 *) as_qdir=$as_dir;;
34853 as_dirs="'$as_qdir' $as_dirs"
34854 as_dir=`$as_dirname -- "$as_dir" ||
34855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34856 X"$as_dir" : 'X\(//\)[^/]' \| \
34857 X"$as_dir" : 'X\(//\)$' \| \
34858 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34864 /^X\(\/\/\)[^/].*/{
34877 test -d "$as_dir" && break
34879 test -z "$as_dirs" || eval "mkdir $as_dirs"
34880 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34881 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34882 { (exit 1); exit 1; }; }; }
34886 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34889 # A ".." for each directory in $ac_dir_suffix.
34890 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34891 case $ac_top_builddir_sub in
34892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34896 ac_abs_top_builddir=$ac_pwd
34897 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34898 # for backward compatibility:
34899 ac_top_builddir=$ac_top_build_prefix
34902 .) # We are building in place.
34904 ac_top_srcdir=$ac_top_builddir_sub
34905 ac_abs_top_srcdir=$ac_pwd ;;
34906 [\\/]* | ?:[\\/]* ) # Absolute name.
34907 ac_srcdir=$srcdir$ac_dir_suffix;
34908 ac_top_srcdir=$srcdir
34909 ac_abs_top_srcdir=$srcdir ;;
34910 *) # Relative name.
34911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34912 ac_top_srcdir=$ac_top_build_prefix$srcdir
34913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34915 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34920 # Check for guested configure; otherwise get Cygnus style configure.
34921 if test -f "$ac_srcdir/configure.gnu"; then
34922 ac_sub_configure=$ac_srcdir/configure.gnu
34923 elif test -f "$ac_srcdir/configure"; then
34924 ac_sub_configure=$ac_srcdir/configure
34925 elif test -f "$ac_srcdir/configure.in"; then
34926 # This should be Cygnus configure.
34927 ac_sub_configure=$ac_aux_dir/configure
34929 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34934 # The recursion is here.
34935 if test -n "$ac_sub_configure"; then
34936 # Make the cache file name correct relative to the subdirectory.
34937 case $cache_file in
34938 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34939 *) # Relative name.
34940 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34943 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34944 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34945 # The eval makes quoting arguments work.
34946 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34947 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34948 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34949 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34950 { (exit 1); exit 1; }; }