2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 1.9cvs.
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='1.9cvs'
719 PACKAGE_STRING='llvm 1.9cvs'
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
885 CONVENIENCE_LTDL_TRUE
886 CONVENIENCE_LTDL_FALSE
921 ac_precious_vars='build_alias
937 ac_subdirs_all='projects/sample
945 projects/llvm-poolalloc
946 projects/llvm-kernel'
948 # Initialize some variables set by options.
950 ac_init_version=false
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
960 program_transform_name=s,x,x,
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
985 infodir='${datarootdir}/info'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1006 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1055 eval enable_$ac_feature=no ;;
1057 -docdir | --docdir | --docdi | --doc | --do)
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1067 -enable-* | --enable-*)
1068 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1074 eval enable_$ac_feature=\$ac_optarg ;;
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
1083 exec_prefix=$ac_optarg ;;
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
1096 -host | --host | --hos | --ho)
1097 ac_prev=host_alias ;;
1098 -host=* | --host=* | --hos=* | --ho=*)
1099 host_alias=$ac_optarg ;;
1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 htmldir=$ac_optarg ;;
1107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
1112 includedir=$ac_optarg ;;
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117 infodir=$ac_optarg ;;
1119 -libdir | --libdir | --libdi | --libd)
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122 libdir=$ac_optarg ;;
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
1129 libexecdir=$ac_optarg ;;
1131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1136 -localstatedir | --localstatedir | --localstatedi | --localstated \
1137 | --localstate | --localstat | --localsta | --localst | --locals)
1138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141 localstatedir=$ac_optarg ;;
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146 mandir=$ac_optarg ;;
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153 | --no-cr | --no-c | -n)
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167 oldincludedir=$ac_optarg ;;
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172 prefix=$ac_optarg ;;
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179 program_prefix=$ac_optarg ;;
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186 program_suffix=$ac_optarg ;;
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
1203 program_transform_name=$ac_optarg ;;
1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1210 -psdir | --psdir | --psdi | --psd | --ps)
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 sbindir=$ac_optarg ;;
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 sharedstatedir=$ac_optarg ;;
1236 -site | --site | --sit)
1238 -site=* | --site=* | --sit=*)
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1265 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid package name: $ac_package" >&2
1269 { (exit 1); exit 1; }; }
1270 ac_package=`echo $ac_package| sed 's/-/_/g'`
1271 eval with_$ac_package=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid package name: $ac_package" >&2
1278 { (exit 1); exit 1; }; }
1279 ac_package=`echo $ac_package | sed 's/-/_/g'`
1280 eval with_$ac_package=no ;;
1283 # Obsolete; use --with-x.
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1300 -*) { echo "$as_me: error: unrecognized option: $ac_option
1301 Try \`$0 --help' for more information." >&2
1302 { (exit 1); exit 1; }; }
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310 { (exit 1); exit 1; }; }
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 { echo "$as_me: error: missing argument to $ac_option" >&2
1328 { (exit 1); exit 1; }; }
1331 # Be sure to have absolute directory names.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val=\$$ac_var
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1343 { (exit 1); exit 1; }; }
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1351 target=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1358 If a cross compiler is detected then cross compile mode will be used." >&2
1359 elif test "x$build_alias" != "x$host_alias"; then
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367 test "$silent" = yes && exec 6>/dev/null
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 { echo "$as_me: error: Working directory cannot be determined" >&2
1374 { (exit 1); exit 1; }; }
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 { echo "$as_me: error: pwd does not report name of working directory" >&2
1377 { (exit 1); exit 1; }; }
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$0" ||
1385 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$0" : 'X\(//\)[^/]' \| \
1387 X"$0" : 'X\(//\)$' \| \
1388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1412 ac_srcdir_defaulted=no
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1417 { (exit 1); exit 1; }; }
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1422 { (exit 1); exit 1; }; }
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1448 \`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1506 --build=BUILD configure for building on BUILD [guessed]
1507 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1508 --target=TARGET configure for building compilers for TARGET [HOST]
1512 if test -n "$ac_init_help"; then
1513 case $ac_init_help in
1514 short | recursive ) echo "Configuration of llvm 1.9cvs:";;
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-debug-runtime
1524 --enable-jit Enable Just In Time Compiling (default is YES)
1525 --enable-doxygen Build doxygen documentation (default is NO)
1526 --enable-threads Use threads if available (default is YES)
1527 --enable-targets Build specific host targets:
1528 all,host-only,{target-name} (default=all)
1529 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1531 --enable-ltdl-install install libltdl
1532 --enable-shared[=PKGS] build shared libraries
1533 [default=enable_shared_default]
1534 --enable-static[=PKGS] build static libraries
1535 [default=enable_static_default]
1536 --enable-fast-install[=PKGS]
1537 optimize for fast installation
1538 [default=enable_Fast_install_default]
1539 --disable-libtool-lock avoid locking (might break parallel builds)
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1546 --with-extra-options Specify addtional options to compile LLVM with
1547 --with-tclinclude directory where tcl headers are
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549 --with-pic try to use only PIC/non-PIC objects [default=use
1551 --with-tags[=TAGS] include additional configurations [automatic]
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1564 the first program found out of: `bison -y', `byacc', `yacc'.
1565 YFLAGS The list of arguments that will be passed by default to $YACC.
1566 This script will default YFLAGS to the empty string to avoid a
1567 default value of `-d' given by some make applications.
1568 CXXCPP C++ preprocessor
1569 F77 Fortran 77 compiler command
1570 FFLAGS Fortran 77 compiler flags
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1575 Report bugs to <llvmbugs@cs.uiuc.edu>.
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" || continue
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1603 .) # We are building in place.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1627 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1636 llvm configure 1.9cvs
1637 generated by GNU Autoconf 2.60
1639 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1640 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1644 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1648 cat >config.log <<_ACEOF
1649 This file contains any messages produced by compilers while
1650 running configure, to aid debugging if configure makes a mistake.
1652 It was created by llvm $as_me 1.9cvs, which was
1653 generated by GNU Autoconf 2.60. Invocation command line was
1665 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1674 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1675 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1676 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1677 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1678 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1679 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1680 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 echo "PATH: $as_dir"
1705 # Keep a trace of the command line.
1706 # Strip out --no-create and --no-recursion so they do not pile up.
1707 # Strip out --silent because we don't want to record it for future runs.
1708 # Also quote any args containing shell meta-characters.
1709 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_must_keep_next=false
1719 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721 | -silent | --silent | --silen | --sile | --sil)
1724 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1727 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730 if test $ac_must_keep_next = true; then
1731 ac_must_keep_next=false # Got value, back to normal.
1734 *=* | --config-cache | -C | -disable-* | --disable-* \
1735 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737 | -with-* | --with-* | -without-* | --without-* | --x)
1738 case "$ac_configure_args0 " in
1739 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1742 -* ) ac_must_keep_next=true ;;
1745 ac_configure_args="$ac_configure_args '$ac_arg'"
1750 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1753 # When interrupted or exit'd, cleanup temporary files, and complete
1754 # config.log. We remove comments because anyway the quotes in there
1755 # would cause problems or look ugly.
1756 # WARNING: Use '\'' to represent an apostrophe within the trap.
1757 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1758 trap 'exit_status=$?
1759 # Save into config.log some information that might help in debugging.
1764 ## ---------------- ##
1765 ## Cache variables. ##
1766 ## ---------------- ##
1769 # The following way of writing the cache mishandles newlines in values,
1771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772 eval ac_val=\$$ac_var
1776 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1777 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1780 _ | IFS | as_nl) ;; #(
1781 *) $as_unset $ac_var ;;
1786 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787 *${as_nl}ac_space=\ *)
1789 "s/'\''/'\''\\\\'\'''\''/g;
1790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1801 ## ----------------- ##
1802 ## Output variables. ##
1803 ## ----------------- ##
1806 for ac_var in $ac_subst_vars
1808 eval ac_val=\$$ac_var
1810 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812 echo "$ac_var='\''$ac_val'\''"
1816 if test -n "$ac_subst_files"; then
1818 ## ------------------- ##
1819 ## File substitutions. ##
1820 ## ------------------- ##
1823 for ac_var in $ac_subst_files
1825 eval ac_val=\$$ac_var
1827 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 echo "$ac_var='\''$ac_val'\''"
1834 if test -s confdefs.h; then
1844 test "$ac_signal" != 0 &&
1845 echo "$as_me: caught signal $ac_signal"
1846 echo "$as_me: exit $exit_status"
1848 rm -f core *.core core.conftest.* &&
1849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1852 for ac_signal in 1 2 13 15; do
1853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1858 rm -f -r conftest* confdefs.h
1860 # Predefined preprocessor variables.
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_NAME "$PACKAGE_NAME"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_STRING "$PACKAGE_STRING"
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1887 # Let the site file select an alternate cache file if it wants to.
1888 # Prefer explicitly selected file to automatically selected ones.
1889 if test -n "$CONFIG_SITE"; then
1890 set x "$CONFIG_SITE"
1891 elif test "x$prefix" != xNONE; then
1892 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1894 set x "$ac_default_prefix/share/config.site" \
1895 "$ac_default_prefix/etc/config.site"
1900 if test -r "$ac_site_file"; then
1901 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902 echo "$as_me: loading site script $ac_site_file" >&6;}
1903 sed 's/^/| /' "$ac_site_file" >&5
1908 if test -r "$cache_file"; then
1909 # Some versions of bash will fail to source /dev/null (special
1910 # files actually), so we avoid doing that.
1911 if test -f "$cache_file"; then
1912 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913 echo "$as_me: loading cache $cache_file" >&6;}
1915 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916 *) . "./$cache_file";;
1920 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921 echo "$as_me: creating cache $cache_file" >&6;}
1925 # Check that the precious variables saved in the cache have kept the same
1927 ac_cache_corrupted=false
1928 for ac_var in $ac_precious_vars; do
1929 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930 eval ac_new_set=\$ac_env_${ac_var}_set
1931 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932 eval ac_new_val=\$ac_env_${ac_var}_value
1933 case $ac_old_set,$ac_new_set in
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1939 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1944 if test "x$ac_old_val" != "x$ac_new_val"; then
1945 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1948 echo "$as_me: former value: $ac_old_val" >&2;}
1949 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1950 echo "$as_me: current value: $ac_new_val" >&2;}
1951 ac_cache_corrupted=:
1954 # Pass precious variables to config.status.
1955 if test "$ac_new_set" = set; then
1957 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 *) ac_arg=$ac_var=$ac_new_val ;;
1960 case " $ac_configure_args " in
1961 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1962 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1966 if $ac_cache_corrupted; then
1967 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971 { (exit 1); exit 1; }; }
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2015 for ac_dir in autoconf "$srcdir"/autoconf; do
2016 if test -f "$ac_dir/install-sh"; then
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 elif test -f "$ac_dir/install.sh"; then
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2024 elif test -f "$ac_dir/shtool"; then
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2030 if test -z "$ac_aux_dir"; then
2031 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2046 if test ${srcdir} != "." ; then
2047 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2048 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2049 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2050 { (exit 1); exit 1; }; }
2054 for i in `ls ${srcdir}/projects`
2056 if test -d ${srcdir}/projects/${i} ; then
2059 "sample") subdirs="$subdirs projects/sample"
2061 "Stacker") subdirs="$subdirs projects/Stacker"
2063 "privbracket") subdirs="$subdirs projects/privbracket"
2065 "llvm-test") subdirs="$subdirs projects/llvm-test"
2067 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
2069 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
2071 "llvm-java") subdirs="$subdirs projects/llvm-java"
2073 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
2075 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2077 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
2080 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2081 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: checking build system type" >&5
2095 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_build+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 ac_build_alias=$build_alias
2100 test "x$ac_build_alias" = x &&
2101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102 test "x$ac_build_alias" = x &&
2103 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105 { (exit 1); exit 1; }; }
2106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2112 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113 echo "${ECHO_T}$ac_cv_build" >&6; }
2114 case $ac_cv_build in
2116 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117 echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2121 ac_save_IFS=$IFS; IFS='-'
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134 { echo "$as_me:$LINENO: checking host system type" >&5
2135 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_host+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test "x$host_alias" = x; then
2140 ac_cv_host=$ac_cv_build
2142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150 echo "${ECHO_T}$ac_cv_host" >&6; }
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154 echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2158 ac_save_IFS=$IFS; IFS='-'
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2171 { echo "$as_me:$LINENO: checking target system type" >&5
2172 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_target+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test "x$target_alias" = x; then
2177 ac_cv_target=$ac_cv_host
2179 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2186 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2187 echo "${ECHO_T}$ac_cv_target" >&6; }
2188 case $ac_cv_target in
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2191 echo "$as_me: error: invalid value of canonical target" >&2;}
2192 { (exit 1); exit 1; }; };;
2194 target=$ac_cv_target
2195 ac_save_IFS=$IFS; IFS='-'
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2205 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2208 # The aliases save the names the user supplied, while $host etc.
2209 # will get canonicalized.
2210 test -n "$target_alias" &&
2211 test "$program_prefix$program_suffix$program_transform_name" = \
2213 program_prefix=${target_alias}-
2215 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2216 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2217 if test "${llvm_cv_os_type+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 llvm_cv_link_all_option="-Wl,--whole-archive"
2223 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2224 llvm_cv_os_type="AIX"
2225 llvm_cv_platform_type="Unix" ;;
2227 llvm_cv_link_all_option="-Wl,--whole-archive"
2228 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2229 llvm_cv_os_type="IRIX"
2230 llvm_cv_platform_type="Unix" ;;
2232 llvm_cv_link_all_option="-Wl,--whole-archive"
2233 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2234 llvm_cv_os_type="Cygwin"
2235 llvm_cv_platform_type="Unix" ;;
2237 llvm_cv_link_all_option="-Wl,-all_load"
2238 llvm_cv_link_all_option="-Wl,-noall_load"
2239 llvm_cv_os_type="Darwin"
2240 llvm_cv_platform_type="Unix" ;;
2242 llvm_cv_link_all_option="-Wl,--whole-archive"
2243 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244 llvm_cv_os_type="FreeBSD"
2245 llvm_cv_platform_type="Unix" ;;
2247 llvm_cv_link_all_option="-Wl,--whole-archive"
2248 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2249 llvm_cv_os_type="OpenBSD"
2250 llvm_cv_platform_type="Unix" ;;
2252 llvm_cv_link_all_option="-Wl,--whole-archive"
2253 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2254 llvm_cv_os_type="HP-UX"
2255 llvm_cv_platform_type="Unix" ;;
2257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259 llvm_cv_os_type="Interix"
2260 llvm_cv_platform_type="Unix" ;;
2262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264 llvm_cv_os_type="Linux"
2265 llvm_cv_platform_type="Unix" ;;
2267 llvm_cv_link_all_option="-Wl,-z,allextract"
2268 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2269 llvm_cv_os_type="SunOS"
2270 llvm_cv_platform_type="Unix" ;;
2272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274 llvm_cv_os_type="Win32"
2275 llvm_cv_platform_type="Win32" ;;
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="MingW"
2280 llvm_cv_platform_type="Win32" ;;
2282 llvm_cv_link_all_option=""
2283 llvm_cv_no_link_all_option=""
2284 llvm_cv_os_type="Unknown"
2285 llvm_cv_platform_type="Unknown" ;;
2288 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2289 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2291 if test "$llvm_cv_os_type" = "Unknown" ; then
2292 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2293 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2294 { (exit 1); exit 1; }; }
2300 LINKALL=$llvm_cv_link_all_option
2302 NOLINKALL=$llvm_cv_no_link_all_option
2305 case $llvm_cv_platform_type in
2308 cat >>confdefs.h <<\_ACEOF
2309 #define LLVM_ON_UNIX 1
2319 cat >>confdefs.h <<\_ACEOF
2320 #define LLVM_ON_WIN32 1
2330 { echo "$as_me:$LINENO: checking target architecture" >&5
2331 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2332 if test "${llvm_cv_target_arch+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 i?86-*) llvm_cv_target_arch="x86" ;;
2337 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2338 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2339 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2340 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2341 ia64-*) llvm_cv_target_arch="IA64" ;;
2342 *) llvm_cv_target_arch="Unknown" ;;
2345 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2346 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2348 if test "$llvm_cv_target_arch" = "Unknown" ; then
2349 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2350 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2353 ARCH=$llvm_cv_target_arch
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 if test -n "$CC"; then
2391 { echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6; }
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2400 if test -z "$ac_cv_prog_CC"; then
2402 # Extract the first word of "gcc", so it can be a program name with args.
2403 set dummy gcc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 if test -n "$ac_ct_CC"; then
2410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_ac_ct_CC="gcc"
2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430 if test -n "$ac_ct_CC"; then
2431 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2432 echo "${ECHO_T}$ac_ct_CC" >&6; }
2434 { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2438 if test "x$ac_ct_CC" = x; then
2441 case $cross_compiling:$ac_tool_warned in
2443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet. If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&5
2446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet. If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2449 ac_tool_warned=yes ;;
2457 if test -z "$CC"; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_CC="${ac_tool_prefix}cc"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 if test -n "$CC"; then
2488 { echo "$as_me:$LINENO: result: $CC" >&5
2489 echo "${ECHO_T}$CC" >&6; }
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2498 if test -z "$CC"; then
2499 # Extract the first word of "cc", so it can be a program name with args.
2500 set dummy cc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518 ac_prog_rejected=yes
2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 if test $ac_prog_rejected = yes; then
2530 # We found a bogon in the path, so make sure we never use it.
2531 set dummy $ac_cv_prog_CC
2533 if test $# != 0; then
2534 # We chose a different compiler from the bogus one.
2535 # However, it has the same basename, so the bogon will be chosen
2536 # first if we set CC to just the basename; use the full file name.
2538 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2544 if test -n "$CC"; then
2545 { echo "$as_me:$LINENO: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2554 if test -z "$CC"; then
2555 if test -n "$ac_tool_prefix"; then
2556 for ac_prog in cl.exe
2558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$CC"; then
2587 { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2595 test -n "$CC" && break
2598 if test -z "$CC"; then
2600 for ac_prog in cl.exe
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_ac_ct_CC="$ac_prog"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632 echo "${ECHO_T}$ac_ct_CC" >&6; }
2634 { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2639 test -n "$ac_ct_CC" && break
2642 if test "x$ac_ct_CC" = x; then
2645 case $cross_compiling:$ac_tool_warned in
2647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet. If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&5
2650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet. If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2653 ac_tool_warned=yes ;;
2662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
2668 # Provide some information about the compiler.
2669 echo "$as_me:$LINENO: checking for C compiler version" >&5
2670 ac_compiler=`set X $ac_compile; echo $2`
2671 { (ac_try="$ac_compiler --version >&5"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compiler --version >&5") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681 { (ac_try="$ac_compiler -v >&5"
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compiler -v >&5") 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }
2691 { (ac_try="$ac_compiler -V >&5"
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compiler -V >&5") 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2717 ac_clean_files_save=$ac_clean_files
2718 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2719 # Try to create an executable without -o first, disregard a.out.
2720 # It will help us diagnose broken compilers, and finding out an intuition
2722 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2723 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2724 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2726 # List of possible output files, starting from the most likely.
2727 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2728 # only as a last resort. b.out is created by i960 compilers.
2729 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2731 # The IRIX 6 linker writes into existing files which may not be
2732 # executable, retaining their permissions. Remove them first so a
2733 # subsequent execution test works.
2735 for ac_file in $ac_files
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2739 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2744 if { (ac_try="$ac_link_default"
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_link_default") 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
2754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2757 # so that the user can short-circuit this test for compilers unknown to
2759 for ac_file in $ac_files
2761 test -f "$ac_file" || continue
2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2766 # We found the default executable, but exeext='' is most
2770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2774 # We set ac_cv_exeext here because the later test for it is not
2775 # safe: cross compilers may not add the suffix if given an `-o'
2776 # argument, so we may need to know it at that point already.
2777 # Even if this section looks crufty: it has the advantage of
2784 test "$ac_cv_exeext" = no && ac_cv_exeext=
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794 { (exit 77); exit 77; }; }
2797 ac_exeext=$ac_cv_exeext
2798 { echo "$as_me:$LINENO: result: $ac_file" >&5
2799 echo "${ECHO_T}$ac_file" >&6; }
2801 # Check that the compiler produces executables we can run. If not, either
2802 # the compiler is broken, or we cross compile.
2803 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2804 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2805 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2806 # If not cross compiling, check that we can run a simple program.
2807 if test "$cross_compiling" != yes; then
2808 if { ac_try='./$ac_file'
2809 { (case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_try") 2>&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; }; then
2820 if test "$cross_compiling" = maybe; then
2823 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2824 If you meant to cross compile, use \`--host'.
2825 See \`config.log' for more details." >&5
2826 echo "$as_me: error: cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details." >&2;}
2829 { (exit 1); exit 1; }; }
2833 { echo "$as_me:$LINENO: result: yes" >&5
2834 echo "${ECHO_T}yes" >&6; }
2836 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2837 ac_clean_files=$ac_clean_files_save
2838 # Check that the compiler produces executables we can run. If not, either
2839 # the compiler is broken, or we cross compile.
2840 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2841 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2842 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2843 echo "${ECHO_T}$cross_compiling" >&6; }
2845 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2846 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2847 if { (ac_try="$ac_link"
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_link") 2>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; then
2857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2859 # work properly (i.e., refer to `conftest.exe'), while it won't with
2861 for ac_file in conftest.exe conftest conftest.*; do
2862 test -f "$ac_file" || continue
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }
2878 rm -f conftest$ac_cv_exeext
2879 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2880 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2882 rm -f conftest.$ac_ext
2883 EXEEXT=$ac_cv_exeext
2885 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2886 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2887 if test "${ac_cv_objext+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 cat >conftest.$ac_ext <<_ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2905 rm -f conftest.o conftest.obj
2906 if { (ac_try="$ac_compile"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compile") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; then
2916 for ac_file in conftest.o conftest.obj conftest.*; do
2917 test -f "$ac_file" || continue;
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2928 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&5
2930 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2931 See \`config.log' for more details." >&2;}
2932 { (exit 1); exit 1; }; }
2935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2937 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2938 echo "${ECHO_T}$ac_cv_objext" >&6; }
2939 OBJEXT=$ac_cv_objext
2941 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2942 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2943 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 cat >conftest.$ac_ext <<_ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_compile") 2>conftest.er1
2973 grep -v '^ *+' conftest.er1 >conftest.err
2975 cat conftest.err >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2979 { (case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_try") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_try") 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3010 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3012 GCC=`test $ac_compiler_gnu = yes && echo yes`
3013 ac_test_CFLAGS=${CFLAGS+set}
3014 ac_save_CFLAGS=$CFLAGS
3015 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3016 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3017 if test "${ac_cv_prog_cc_g+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 ac_save_c_werror_flag=$ac_c_werror_flag
3021 ac_c_werror_flag=yes
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_try") 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
3063 { ac_try='test -s conftest.$ac_objext'
3064 { (case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_try") 2>&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109 { (case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_try") 2>&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 ac_c_werror_flag=$ac_save_c_werror_flag
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165 { (case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_try") 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3201 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3203 if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3212 if test "$GCC" = yes; then
3218 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3219 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3220 if test "${ac_cv_prog_cc_c89+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_prog_cc_c89=no
3225 cat >conftest.$ac_ext <<_ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3249 s = g (p, va_arg (v,int));
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
3257 as 'x'. The following induces an error, until -std is added to get
3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
3260 that's true only with -std. */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 inside strings and character constants. */
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285 CC="$ac_save_CC $ac_arg"
3286 rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>conftest.er1
3295 grep -v '^ *+' conftest.er1 >conftest.err
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301 { (case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_try") 2>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; } &&
3310 { ac_try='test -s conftest.$ac_objext'
3311 { (case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_try") 2>&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 ac_cv_prog_cc_c89=$ac_arg
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3328 rm -f core conftest.err conftest.$ac_objext
3329 test "x$ac_cv_prog_cc_c89" != "xno" && break
3331 rm -f conftest.$ac_ext
3336 case "x$ac_cv_prog_cc_c89" in
3338 { echo "$as_me:$LINENO: result: none needed" >&5
3339 echo "${ECHO_T}none needed" >&6; } ;;
3341 { echo "$as_me:$LINENO: result: unsupported" >&5
3342 echo "${ECHO_T}unsupported" >&6; } ;;
3344 CC="$CC $ac_cv_prog_cc_c89"
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3363 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3364 # On Suns, sometimes $CPP names a directory.
3365 if test -n "$CPP" && test -d "$CPP"; then
3368 if test -z "$CPP"; then
3369 if test "${ac_cv_prog_CPP+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 # Double quotes because CPP needs to be expanded
3373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3376 for ac_c_preproc_warn_flag in '' yes
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3391 # include <limits.h>
3393 # include <assert.h>
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
3412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3419 if test -z "$ac_cpp_err"; then
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 # Broken: fails on valid input.
3429 rm -f conftest.err conftest.$ac_ext
3431 # OK, works on sane cases. Now check whether nonexistent headers
3432 # can be detected and how.
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include <ac_nonexistent.h>
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449 grep -v '^ *+' conftest.er1 >conftest.err
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null; then
3454 if test -s conftest.err; then
3455 ac_cpp_err=$ac_c_preproc_warn_flag
3456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3463 if test -z "$ac_cpp_err"; then
3464 # Broken: success on invalid input.
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 # Passes both tests.
3475 rm -f conftest.err conftest.$ac_ext
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3492 { echo "$as_me:$LINENO: result: $CPP" >&5
3493 echo "${ECHO_T}$CPP" >&6; }
3495 for ac_c_preproc_warn_flag in '' yes
3497 # Use a header file that comes with gcc, so configuring glibc
3498 # with a fresh cross-compiler works.
3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500 # <limits.h> exists even on freestanding compilers.
3501 # On the NeXT, cc -E runs the code through the compiler's parser,
3502 # not just through cpp. "Syntax error" is here to catch this case.
3503 cat >conftest.$ac_ext <<_ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3510 # include <limits.h>
3512 # include <assert.h>
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524 grep -v '^ *+' conftest.er1 >conftest.err
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null; then
3529 if test -s conftest.err; then
3530 ac_cpp_err=$ac_c_preproc_warn_flag
3531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3538 if test -z "$ac_cpp_err"; then
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Broken: fails on valid input.
3548 rm -f conftest.err conftest.$ac_ext
3550 # OK, works on sane cases. Now check whether nonexistent headers
3551 # can be detected and how.
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 #include <ac_nonexistent.h>
3560 if { (ac_try="$ac_cpp conftest.$ac_ext"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_c_preproc_warn_flag
3575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3582 if test -z "$ac_cpp_err"; then
3583 # Broken: success on invalid input.
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 # Passes both tests.
3594 rm -f conftest.err conftest.$ac_ext
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.$ac_ext
3599 if $ac_preproc_ok; then
3602 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605 See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3617 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3618 if test "${ac_cv_path_GREP+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 # Extract the first word of "grep ggrep" to use in msg output
3622 if test -z "$GREP"; then
3623 set dummy grep ggrep; ac_prog_name=$2
3624 if test "${ac_cv_path_GREP+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_path_GREP_found=false
3628 # Loop through the user's path and test for each of PROGNAME-LIST
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633 test -z "$as_dir" && as_dir=.
3634 for ac_prog in grep ggrep; do
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3638 # Check for GNU ac_path_GREP and select it if it is found.
3639 # Check for GNU $ac_path_GREP
3640 case `"$ac_path_GREP" --version 2>&1` in
3642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3645 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3648 cat "conftest.in" "conftest.in" >"conftest.tmp"
3649 mv "conftest.tmp" "conftest.in"
3650 cp "conftest.in" "conftest.nl"
3651 echo 'GREP' >> "conftest.nl"
3652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3654 ac_count=`expr $ac_count + 1`
3655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656 # Best one so far, save it but keep looking for a better one
3657 ac_cv_path_GREP="$ac_path_GREP"
3658 ac_path_GREP_max=$ac_count
3660 # 10*(2^10) chars as input seems more than enough
3661 test $ac_count -gt 10 && break
3663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3667 $ac_path_GREP_found && break 3
3677 GREP="$ac_cv_path_GREP"
3678 if test -z "$GREP"; then
3679 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3680 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3681 { (exit 1); exit 1; }; }
3685 ac_cv_path_GREP=$GREP
3690 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3691 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3692 GREP="$ac_cv_path_GREP"
3695 { echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3697 if test "${ac_cv_path_EGREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701 then ac_cv_path_EGREP="$GREP -E"
3703 # Extract the first word of "egrep" to use in msg output
3704 if test -z "$EGREP"; then
3705 set dummy egrep; ac_prog_name=$2
3706 if test "${ac_cv_path_EGREP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 ac_path_EGREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715 test -z "$as_dir" && as_dir=.
3716 for ac_prog in egrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3720 # Check for GNU ac_path_EGREP and select it if it is found.
3721 # Check for GNU $ac_path_EGREP
3722 case `"$ac_path_EGREP" --version 2>&1` in
3724 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
3733 echo 'EGREP' >> "conftest.nl"
3734 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736 ac_count=`expr $ac_count + 1`
3737 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_EGREP="$ac_path_EGREP"
3740 ac_path_EGREP_max=$ac_count
3742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3749 $ac_path_EGREP_found && break 3
3759 EGREP="$ac_cv_path_EGREP"
3760 if test -z "$EGREP"; then
3761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763 { (exit 1); exit 1; }; }
3767 ac_cv_path_EGREP=$EGREP
3773 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3774 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3775 EGREP="$ac_cv_path_EGREP"
3778 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3780 if test "${ac_cv_header_stdc+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3802 rm -f conftest.$ac_objext
3803 if { (ac_try="$ac_compile"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3817 { (case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_try") 2>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_try") 2>&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_cv_header_stdc=yes
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ac_cv_header_stdc=no
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 if test $ac_cv_header_stdc = yes; then
3847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 $EGREP "memchr" >/dev/null 2>&1; then
3861 ac_cv_header_stdc=no
3867 if test $ac_cv_header_stdc = yes; then
3868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879 $EGREP "free" >/dev/null 2>&1; then
3882 ac_cv_header_stdc=no
3888 if test $ac_cv_header_stdc = yes; then
3889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3890 if test "$cross_compiling" = yes; then
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3901 #if ((' ' & 0x0FF) == 0x020)
3902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3905 # define ISLOWER(c) \
3906 (('a' <= (c) && (c) <= 'i') \
3907 || ('j' <= (c) && (c) <= 'r') \
3908 || ('s' <= (c) && (c) <= 'z'))
3909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917 for (i = 0; i < 256; i++)
3918 if (XOR (islower (i), ISLOWER (i))
3919 || toupper (i) != TOUPPER (i))
3924 rm -f conftest$ac_exeext
3925 if { (ac_try="$ac_link"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_link") 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3935 { (case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_try") 2>&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3946 echo "$as_me: program exited with status $ac_status" >&5
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3951 ac_cv_header_stdc=no
3953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3959 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3960 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3961 if test $ac_cv_header_stdc = yes; then
3963 cat >>confdefs.h <<\_ACEOF
3964 #define STDC_HEADERS 1
3969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3980 inttypes.h stdint.h unistd.h
3982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 $ac_includes_default
3996 #include <$ac_header>
3998 rm -f conftest.$ac_objext
3999 if { (ac_try="$ac_compile"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_compile") 2>conftest.er1
4007 grep -v '^ *+' conftest.er1 >conftest.err
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_try") 2>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 eval "$as_ac_Header=yes"
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 eval "$as_ac_Header=no"
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 ac_res=`eval echo '${'$as_ac_Header'}'`
4043 { echo "$as_me:$LINENO: result: $ac_res" >&5
4044 echo "${ECHO_T}$ac_res" >&6; }
4045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4046 cat >>confdefs.h <<_ACEOF
4047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4056 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4057 if test "${ac_cv_c_bigendian+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 # See if sys/param.h defines the BYTE_ORDER macro.
4061 cat >conftest.$ac_ext <<_ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 #include <sys/types.h>
4068 #include <sys/param.h>
4073 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4090 grep -v '^ *+' conftest.er1 >conftest.err
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4096 { (case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_try") 2>&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 # It does; now see whether it defined to BIG_ENDIAN or not.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <sys/types.h>
4123 #include <sys/param.h>
4128 #if BYTE_ORDER != BIG_ENDIAN
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4145 grep -v '^ *+' conftest.er1 >conftest.err
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 ac_cv_c_bigendian=yes
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 ac_cv_c_bigendian=no
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 # It does not; compile a test program.
4184 if test "$cross_compiling" = yes; then
4185 # try to guess the endianness by grepping values into an object file
4186 ac_cv_c_bigendian=unknown
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4194 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4195 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4196 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4197 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4198 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4202 _ascii (); _ebcdic ();
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4222 { (case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_try") 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_try") 2>&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4242 ac_cv_c_bigendian=yes
4244 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4245 if test "$ac_cv_c_bigendian" = unknown; then
4246 ac_cv_c_bigendian=no
4248 # finding both strings is unlikely to happen, but who knows?
4249 ac_cv_c_bigendian=unknown
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 cat >conftest.$ac_ext <<_ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 $ac_includes_default
4272 /* Are we little or big endian? From Harbison&Steele. */
4276 char c[sizeof (long int)];
4279 return u.c[sizeof (long int) - 1] == 1;
4285 rm -f conftest$ac_exeext
4286 if { (ac_try="$ac_link"
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_link") 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_c_bigendian=no
4307 echo "$as_me: program exited with status $ac_status" >&5
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4312 ac_cv_c_bigendian=yes
4314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4323 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4324 case $ac_cv_c_bigendian in
4332 { { echo "$as_me:$LINENO: error: unknown endianness
4333 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4334 echo "$as_me: error: unknown endianness
4335 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4336 { (exit 1); exit 1; }; } ;;
4340 if test "$cross_compiling" = yes; then
4341 LLVM_CROSS_COMPILING=1
4344 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4345 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4346 if test "${ac_cv_build_exeext+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4350 ac_cv_build_exeext=.exe
4352 ac_build_prefix=${build_alias}-
4354 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4355 set dummy ${ac_build_prefix}gcc; ac_word=$2
4356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4358 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 if test -n "$BUILD_CC"; then
4362 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 BUILD_CC=$ac_cv_prog_BUILD_CC
4382 if test -n "$BUILD_CC"; then
4383 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4384 echo "${ECHO_T}$BUILD_CC" >&6; }
4386 { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4391 if test -z "$BUILD_CC"; then
4392 # Extract the first word of "gcc", so it can be a program name with args.
4393 set dummy gcc; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test -n "$BUILD_CC"; then
4400 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_BUILD_CC="gcc"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 BUILD_CC=$ac_cv_prog_BUILD_CC
4420 if test -n "$BUILD_CC"; then
4421 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4422 echo "${ECHO_T}$BUILD_CC" >&6; }
4424 { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4429 if test -z "$BUILD_CC"; then
4430 # Extract the first word of "cc", so it can be a program name with args.
4431 set dummy cc; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test -n "$BUILD_CC"; then
4438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4449 ac_prog_rejected=yes
4452 ac_cv_prog_BUILD_CC="cc"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 if test $ac_prog_rejected = yes; then
4461 # We found a bogon in the path, so make sure we never use it.
4462 set dummy $ac_cv_prog_BUILD_CC
4464 if test $# != 0; then
4465 # We chose a different compiler from the bogus one.
4466 # However, it has the same basename, so the bogon will be chosen
4467 # first if we set BUILD_CC to just the basename; use the full file name.
4469 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4474 BUILD_CC=$ac_cv_prog_BUILD_CC
4475 if test -n "$BUILD_CC"; then
4476 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477 echo "${ECHO_T}$BUILD_CC" >&6; }
4479 { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4486 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4487 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4488 { (exit 1); exit 1; }; }
4489 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4491 echo 'int main () { return 0; }' > conftest.$ac_ext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4494 (eval $ac_build_link) 2>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; then
4498 for file in conftest.*; do
4500 *.c | *.o | *.obj) ;;
4501 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4505 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4506 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4507 { (exit 1); exit 1; }; }
4510 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4515 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4516 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4517 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4518 ac_build_exeext=$BUILD_EXEEXT
4521 LLVM_CROSS_COMPILING=0
4525 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4536 # Check whether --enable-optimized was given.
4537 if test "${enable_optimized+set}" = set; then
4538 enableval=$enable_optimized;
4543 if test ${enableval} = "no" ; then
4547 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4551 # Check whether --enable-assertions was given.
4552 if test "${enable_assertions+set}" = set; then
4553 enableval=$enable_assertions;
4558 if test ${enableval} = "yes" ; then
4562 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4566 # Check whether --enable-debug-runtime was given.
4567 if test "${enable_debug_runtime+set}" = set; then
4568 enableval=$enable_debug_runtime;
4573 if test ${enableval} = "no" ; then
4577 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4581 # Check whether --enable-jit was given.
4582 if test "${enable_jit+set}" = set; then
4583 enableval=$enable_jit;
4588 if test ${enableval} = "no"
4593 case "$llvm_cv_target_arch" in
4594 x86) TARGET_HAS_JIT=1
4596 Sparc) TARGET_HAS_JIT=1
4598 PowerPC) TARGET_HAS_JIT=1
4600 x86_64) TARGET_HAS_JIT=0
4602 Alpha) TARGET_HAS_JIT=1
4604 IA64) TARGET_HAS_JIT=0
4611 # Check whether --enable-doxygen was given.
4612 if test "${enable_doxygen+set}" = set; then
4613 enableval=$enable_doxygen;
4618 case "$enableval" in
4619 yes) ENABLE_DOXYGEN=1
4621 no) ENABLE_DOXYGEN=0
4623 default) ENABLE_DOXYGEN=0
4625 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4626 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4627 { (exit 1); exit 1; }; } ;;
4630 # Check whether --enable-threads was given.
4631 if test "${enable_threads+set}" = set; then
4632 enableval=$enable_threads;
4637 case "$enableval" in
4638 yes) ENABLE_THREADS=1
4640 no) ENABLE_THREADS=0
4642 default) ENABLE_THREADS=1
4644 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4645 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4646 { (exit 1); exit 1; }; } ;;
4649 cat >>confdefs.h <<_ACEOF
4650 #define ENABLE_THREADS $ENABLE_THREADS
4655 # Check whether --enable-targets was given.
4656 if test "${enable_targets+set}" = set; then
4657 enableval=$enable_targets;
4662 case "$enableval" in
4663 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4665 case "$llvm_cv_target_arch" in
4666 x86) TARGETS_TO_BUILD="X86" ;;
4667 x86_64) TARGETS_TO_BUILD="X86" ;;
4668 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4669 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4670 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4671 IA64) TARGETS_TO_BUILD="IA64" ;;
4672 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4673 echo "$as_me: error: Can not set target to build" >&2;}
4674 { (exit 1); exit 1; }; } ;;
4677 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4679 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4680 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4681 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4682 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4683 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4684 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4685 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4686 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4687 { (exit 1); exit 1; }; } ;;
4692 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4693 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4696 # Check whether --enable-cbe-printf-a was given.
4697 if test "${enable_cbe_printf_a+set}" = set; then
4698 enableval=$enable_cbe_printf_a;
4703 case "$enableval" in
4704 yes) ENABLE_CBE_PRINTF_A=1
4706 no) ENABLE_CBE_PRINTF_A=0
4708 default) ENABLE_CBE_PRINTF_A=1
4710 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4711 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4712 { (exit 1); exit 1; }; } ;;
4715 cat >>confdefs.h <<_ACEOF
4716 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4721 # Check whether --with-llvmgccdir was given.
4722 if test "${with_llvmgccdir+set}" = set; then
4723 withval=$with_llvmgccdir;
4729 default) WITH_LLVMGCCDIR=default ;;
4730 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4731 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4732 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4733 { (exit 1); exit 1; }; } ;;
4737 # Check whether --with-extra-options was given.
4738 if test "${with_extra_options+set}" = set; then
4739 withval=$with_extra_options;
4745 default) EXTRA_OPTIONS= ;;
4746 *) EXTRA_OPTIONS=$withval ;;
4748 EXTRA_OPTIONS=$EXTRA_OPTIONS
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4758 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4759 # On Suns, sometimes $CPP names a directory.
4760 if test -n "$CPP" && test -d "$CPP"; then
4763 if test -z "$CPP"; then
4764 if test "${ac_cv_prog_CPP+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 # Double quotes because CPP needs to be expanded
4768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4771 for ac_c_preproc_warn_flag in '' yes
4773 # Use a header file that comes with gcc, so configuring glibc
4774 # with a fresh cross-compiler works.
4775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776 # <limits.h> exists even on freestanding compilers.
4777 # On the NeXT, cc -E runs the code through the compiler's parser,
4778 # not just through cpp. "Syntax error" is here to catch this case.
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4786 # include <limits.h>
4788 # include <assert.h>
4792 if { (ac_try="$ac_cpp conftest.$ac_ext"
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } >/dev/null; then
4805 if test -s conftest.err; then
4806 ac_cpp_err=$ac_c_preproc_warn_flag
4807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4814 if test -z "$ac_cpp_err"; then
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 # Broken: fails on valid input.
4824 rm -f conftest.err conftest.$ac_ext
4826 # OK, works on sane cases. Now check whether nonexistent headers
4827 # can be detected and how.
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 #include <ac_nonexistent.h>
4836 if { (ac_try="$ac_cpp conftest.$ac_ext"
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844 grep -v '^ *+' conftest.er1 >conftest.err
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } >/dev/null; then
4849 if test -s conftest.err; then
4850 ac_cpp_err=$ac_c_preproc_warn_flag
4851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4858 if test -z "$ac_cpp_err"; then
4859 # Broken: success on invalid input.
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 # Passes both tests.
4870 rm -f conftest.err conftest.$ac_ext
4873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874 rm -f conftest.err conftest.$ac_ext
4875 if $ac_preproc_ok; then
4887 { echo "$as_me:$LINENO: result: $CPP" >&5
4888 echo "${ECHO_T}$CPP" >&6; }
4890 for ac_c_preproc_warn_flag in '' yes
4892 # Use a header file that comes with gcc, so configuring glibc
4893 # with a fresh cross-compiler works.
4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 # <limits.h> exists even on freestanding compilers.
4896 # On the NeXT, cc -E runs the code through the compiler's parser,
4897 # not just through cpp. "Syntax error" is here to catch this case.
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4905 # include <limits.h>
4907 # include <assert.h>
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_c_preproc_warn_flag
4926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4933 if test -z "$ac_cpp_err"; then
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 # Broken: fails on valid input.
4943 rm -f conftest.err conftest.$ac_ext
4945 # OK, works on sane cases. Now check whether nonexistent headers
4946 # can be detected and how.
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953 #include <ac_nonexistent.h>
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_c_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4977 if test -z "$ac_cpp_err"; then
4978 # Broken: success on invalid input.
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 # Passes both tests.
4989 rm -f conftest.err conftest.$ac_ext
4992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4993 rm -f conftest.err conftest.$ac_ext
4994 if $ac_preproc_ok; then
4997 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4998 See \`config.log' for more details." >&5
4999 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5000 See \`config.log' for more details." >&2;}
5001 { (exit 1); exit 1; }; }
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015 if test -n "$ac_tool_prefix"; then
5018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_prog_CC+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 if test -n "$CC"; then
5026 ac_cv_prog_CC="$CC" # Let the user override the test.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 if test -n "$CC"; then
5047 { echo "$as_me:$LINENO: result: $CC" >&5
5048 echo "${ECHO_T}$CC" >&6; }
5050 { echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6; }
5055 test -n "$CC" && break
5058 if test -z "$CC"; then
5062 # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy $ac_prog; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 if test -n "$ac_ct_CC"; then
5070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_ac_ct_CC="$ac_prog"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5090 if test -n "$ac_ct_CC"; then
5091 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5092 echo "${ECHO_T}$ac_ct_CC" >&6; }
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5099 test -n "$ac_ct_CC" && break
5102 if test "x$ac_ct_CC" = x; then
5105 case $cross_compiling:$ac_tool_warned in
5107 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5108 whose name does not start with the host triplet. If you think this
5109 configuration is useful to you, please write to autoconf@gnu.org." >&5
5110 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet. If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5113 ac_tool_warned=yes ;;
5120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: no acceptable C compiler found in \$PATH
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5126 # Provide some information about the compiler.
5127 echo "$as_me:$LINENO: checking for C compiler version" >&5
5128 ac_compiler=`set X $ac_compile; echo $2`
5129 { (ac_try="$ac_compiler --version >&5"
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compiler --version >&5") 2>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }
5139 { (ac_try="$ac_compiler -v >&5"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compiler -v >&5") 2>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }
5149 { (ac_try="$ac_compiler -V >&5"
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compiler -V >&5") 2>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }
5160 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5161 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5162 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 cat >conftest.$ac_ext <<_ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5183 rm -f conftest.$ac_objext
5184 if { (ac_try="$ac_compile"
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_compile") 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
5197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5198 { (case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_try") 2>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; } &&
5207 { ac_try='test -s conftest.$ac_objext'
5208 { (case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_try") 2>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5229 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5230 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5231 GCC=`test $ac_compiler_gnu = yes && echo yes`
5232 ac_test_CFLAGS=${CFLAGS+set}
5233 ac_save_CFLAGS=$CFLAGS
5234 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5235 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5236 if test "${ac_cv_prog_cc_g+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 ac_save_c_werror_flag=$ac_c_werror_flag
5240 ac_c_werror_flag=yes
5243 cat >conftest.$ac_ext <<_ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_try") 2>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_compile") 2>conftest.er1
5322 grep -v '^ *+' conftest.er1 >conftest.err
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5328 { (case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_try") 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_try") 2>&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 ac_c_werror_flag=$ac_save_c_werror_flag
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5369 rm -f conftest.$ac_objext
5370 if { (ac_try="$ac_compile"
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_compile") 2>conftest.er1
5378 grep -v '^ *+' conftest.er1 >conftest.err
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5384 { (case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_try") 2>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_try") 2>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 ac_c_werror_flag=$ac_save_c_werror_flag
5420 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5422 if test "$ac_test_CFLAGS" = set; then
5423 CFLAGS=$ac_save_CFLAGS
5424 elif test $ac_cv_prog_cc_g = yes; then
5425 if test "$GCC" = yes; then
5431 if test "$GCC" = yes; then
5437 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5438 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5439 if test "${ac_cv_prog_cc_c89+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 ac_cv_prog_cc_c89=no
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5452 #include <sys/types.h>
5453 #include <sys/stat.h>
5454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5455 struct buf { int x; };
5456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5457 static char *e (p, i)
5463 static char *f (char * (*g) (char **, int), char **p, ...)
5468 s = g (p, va_arg (v,int));
5473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5474 function prototypes and stuff, but not '\xHH' hex character constants.
5475 These don't provoke an error unfortunately, instead are silently treated
5476 as 'x'. The following induces an error, until -std is added to get
5477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5478 array size at least. It's necessary to write '\x00'==0 to get something
5479 that's true only with -std. */
5480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5483 inside strings and character constants. */
5485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5487 int test (int i, double x);
5488 struct s1 {int (*f) (int a);};
5489 struct s2 {int (*f) (double a);};
5490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5504 CC="$ac_save_CC $ac_arg"
5505 rm -f conftest.$ac_objext
5506 if { (ac_try="$ac_compile"
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_compile") 2>conftest.er1
5514 grep -v '^ *+' conftest.er1 >conftest.err
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5520 { (case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_try") 2>&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; } &&
5529 { ac_try='test -s conftest.$ac_objext'
5530 { (case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_try") 2>&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 ac_cv_prog_cc_c89=$ac_arg
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5547 rm -f core conftest.err conftest.$ac_objext
5548 test "x$ac_cv_prog_cc_c89" != "xno" && break
5550 rm -f conftest.$ac_ext
5555 case "x$ac_cv_prog_cc_c89" in
5557 { echo "$as_me:$LINENO: result: none needed" >&5
5558 echo "${ECHO_T}none needed" >&6; } ;;
5560 { echo "$as_me:$LINENO: result: unsupported" >&5
5561 echo "${ECHO_T}unsupported" >&6; } ;;
5563 CC="$CC $ac_cv_prog_cc_c89"
5564 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5565 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5576 ac_cpp='$CXXCPP $CPPFLAGS'
5577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5580 if test -z "$CXX"; then
5581 if test -n "$CCC"; then
5584 if test -n "$ac_tool_prefix"; then
5587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5591 if test "${ac_cv_prog_CXX+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 if test -n "$CXX"; then
5595 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 if test -n "$CXX"; then
5616 { echo "$as_me:$LINENO: result: $CXX" >&5
5617 echo "${ECHO_T}$CXX" >&6; }
5619 { echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6; }
5624 test -n "$CXX" && break
5627 if test -z "$CXX"; then
5631 # Extract the first word of "$ac_prog", so it can be a program name with args.
5632 set dummy $ac_prog; ac_word=$2
5633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5635 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 if test -n "$ac_ct_CXX"; then
5639 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_ac_ct_CXX="$ac_prog"
5649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5659 if test -n "$ac_ct_CXX"; then
5660 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5661 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5663 { echo "$as_me:$LINENO: result: no" >&5
5664 echo "${ECHO_T}no" >&6; }
5668 test -n "$ac_ct_CXX" && break
5671 if test "x$ac_ct_CXX" = x; then
5674 case $cross_compiling:$ac_tool_warned in
5676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5677 whose name does not start with the host triplet. If you think this
5678 configuration is useful to you, please write to autoconf@gnu.org." >&5
5679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5680 whose name does not start with the host triplet. If you think this
5681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5682 ac_tool_warned=yes ;;
5690 # Provide some information about the compiler.
5691 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5692 ac_compiler=`set X $ac_compile; echo $2`
5693 { (ac_try="$ac_compiler --version >&5"
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compiler --version >&5") 2>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }
5703 { (ac_try="$ac_compiler -v >&5"
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_compiler -v >&5") 2>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }
5713 { (ac_try="$ac_compiler -V >&5"
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compiler -V >&5") 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }
5724 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5725 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5726 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
5756 grep -v '^ *+' conftest.er1 >conftest.err
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5762 { (case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_try") 2>&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; } &&
5771 { ac_try='test -s conftest.$ac_objext'
5772 { (case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_try") 2>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5793 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5794 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5795 GXX=`test $ac_compiler_gnu = yes && echo yes`
5796 ac_test_CXXFLAGS=${CXXFLAGS+set}
5797 ac_save_CXXFLAGS=$CXXFLAGS
5798 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5799 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5800 if test "${ac_cv_prog_cxx_g+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5804 ac_cxx_werror_flag=yes
5807 cat >conftest.$ac_ext <<_ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5837 { (case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_try") 2>&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try='test -s conftest.$ac_objext'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_try") 2>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_cv_prog_cxx_g=yes
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5877 rm -f conftest.$ac_objext
5878 if { (ac_try="$ac_compile"
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_compile") 2>conftest.er1
5886 grep -v '^ *+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5892 { (case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_try") 2>&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; } &&
5901 { ac_try='test -s conftest.$ac_objext'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5916 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5918 cat >conftest.$ac_ext <<_ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5948 { (case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_try") 2>&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; } &&
5957 { ac_try='test -s conftest.$ac_objext'
5958 { (case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_try") 2>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 ac_cv_prog_cxx_g=yes
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5984 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5985 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5986 if test "$ac_test_CXXFLAGS" = set; then
5987 CXXFLAGS=$ac_save_CXXFLAGS
5988 elif test $ac_cv_prog_cxx_g = yes; then
5989 if test "$GXX" = yes; then
5995 if test "$GXX" = yes; then
6002 ac_cpp='$CPP $CPPFLAGS'
6003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007 { echo "$as_me:$LINENO: checking " >&5
6008 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6009 if test "${ac_cv_has_flex+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 for ac_prog in flex lex
6014 # Extract the first word of "$ac_prog", so it can be a program name with args.
6015 set dummy $ac_prog; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_prog_LEX+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 if test -n "$LEX"; then
6022 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_LEX="$ac_prog"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 if test -n "$LEX"; then
6043 { echo "$as_me:$LINENO: result: $LEX" >&5
6044 echo "${ECHO_T}$LEX" >&6; }
6046 { echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6; }
6051 test -n "$LEX" && break
6053 test -n "$LEX" || LEX=":"
6055 if test -z "$LEXLIB"
6057 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6058 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6059 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 ac_check_lib_save_LIBS=$LIBS
6064 cat >conftest.$ac_ext <<_ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6071 /* Override any GCC internal prototype to avoid an error.
6072 Use char because int might match the return type of a GCC
6073 builtin and then its argument prototype would still apply. */
6086 rm -f conftest.$ac_objext conftest$ac_exeext
6087 if { (ac_try="$ac_link"
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_link") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6101 { (case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_try") 2>&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest$ac_exeext'
6111 { (case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_try") 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_lib_fl_yywrap=yes
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_cv_lib_fl_yywrap=no
6128 rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130 LIBS=$ac_check_lib_save_LIBS
6132 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6133 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6134 if test $ac_cv_lib_fl_yywrap = yes; then
6137 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6138 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6139 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 ac_check_lib_save_LIBS=$LIBS
6144 cat >conftest.$ac_ext <<_ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6151 /* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6166 rm -f conftest.$ac_objext conftest$ac_exeext
6167 if { (ac_try="$ac_link"
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_link") 2>conftest.er1
6175 grep -v '^ *+' conftest.er1 >conftest.err
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6181 { (case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_try") 2>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest$ac_exeext'
6191 { (case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_try") 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_lib_l_yywrap=yes
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ac_cv_lib_l_yywrap=no
6208 rm -f core conftest.err conftest.$ac_objext \
6209 conftest$ac_exeext conftest.$ac_ext
6210 LIBS=$ac_check_lib_save_LIBS
6212 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6213 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6214 if test $ac_cv_lib_l_yywrap = yes; then
6222 if test "x$LEX" != "x:"; then
6223 { echo "$as_me:$LINENO: checking lex output file root" >&5
6224 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_lex_root+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 # The minimal lex program is just a single line: %%. But some broken lexes
6229 # (Solaris, I think it was) want two %% lines, so accommodate them.
6230 cat >conftest.l <<_ACEOF
6234 { (ac_try="$LEX conftest.l"
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$LEX conftest.l") 2>&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }
6244 if test -f lex.yy.c; then
6245 ac_cv_prog_lex_root=lex.yy
6246 elif test -f lexyy.c; then
6247 ac_cv_prog_lex_root=lexyy
6249 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6250 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6251 { (exit 1); exit 1; }; }
6254 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6255 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6257 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6259 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6260 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6261 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 # POSIX says lex can declare yytext either as a pointer or an array; the
6265 # default is implementation-dependent. Figure out which it is, since
6266 # not all implementations provide the %pointer and %array declarations.
6267 ac_cv_prog_lex_yytext_pointer=no
6268 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6270 LIBS="$LIBS $LEXLIB"
6271 cat >conftest.$ac_ext <<_ACEOF
6272 `cat $LEX_OUTPUT_ROOT.c`
6274 rm -f conftest.$ac_objext conftest$ac_exeext
6275 if { (ac_try="$ac_link"
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_link") 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6289 { (case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_try") 2>&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest$ac_exeext'
6299 { (case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_try") 2>&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_prog_lex_yytext_pointer=yes
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6316 rm -f core conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6319 rm -f "${LEX_OUTPUT_ROOT}.c"
6322 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6323 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6324 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6326 cat >>confdefs.h <<\_ACEOF
6327 #define YYTEXT_POINTER 1
6335 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6336 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6337 if test "$LEX" != "flex"; then
6338 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6339 echo "$as_me: error: flex not found but required" >&2;}
6340 { (exit 1); exit 1; }; }
6346 { echo "$as_me:$LINENO: checking " >&5
6347 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6348 if test "${llvm_cv_has_bison+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 for ac_prog in 'bison -y' byacc
6353 # Extract the first word of "$ac_prog", so it can be a program name with args.
6354 set dummy $ac_prog; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_YACC+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 if test -n "$YACC"; then
6361 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_YACC="$ac_prog"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 YACC=$ac_cv_prog_YACC
6381 if test -n "$YACC"; then
6382 { echo "$as_me:$LINENO: result: $YACC" >&5
6383 echo "${ECHO_T}$YACC" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6390 test -n "$YACC" && break
6392 test -n "$YACC" || YACC="yacc"
6395 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6396 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6397 if test "$YACC" != "bison -y"; then
6399 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6400 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6406 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6407 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6408 if test "${lt_cv_path_NM+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 if test -n "$NM"; then
6412 # Let the user override the test.
6415 lt_nm_to_check="${ac_tool_prefix}nm"
6416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6417 lt_nm_to_check="$lt_nm_to_check nm"
6419 for lt_tmp_nm in $lt_nm_to_check; do
6420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6423 test -z "$ac_dir" && ac_dir=.
6424 tmp_nm="$ac_dir/$lt_tmp_nm"
6425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6426 # Check to see if the nm accepts a BSD-compat flag.
6427 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6428 # nm: unknown option "B" ignored
6429 # Tru64's nm complains that /dev/null is an invalid object file
6430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6431 */dev/null* | *'Invalid file or object type'*)
6432 lt_cv_path_NM="$tmp_nm -B"
6436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6438 lt_cv_path_NM="$tmp_nm -p"
6442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6443 continue # so that we can try to find one that supports BSD flags
6452 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6455 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6456 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6461 { echo "$as_me:$LINENO: checking for GNU make" >&5
6462 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6463 if test "${llvm_cv_gnu_make_command+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 llvm_cv_gnu_make_command=''
6467 for a in "$MAKE" make gmake gnumake ; do
6468 if test -z "$a" ; then continue ; fi ;
6469 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6471 llvm_cv_gnu_make_command=$a ;
6476 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6477 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6478 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6482 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6483 echo "${ECHO_T}\"Not found\"" >&6; };
6487 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6490 if test "$LN_S" = "ln -s"; then
6491 { echo "$as_me:$LINENO: result: yes" >&5
6492 echo "${ECHO_T}yes" >&6; }
6494 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6495 echo "${ECHO_T}no, using $LN_S" >&6; }
6498 # Extract the first word of "cmp", so it can be a program name with args.
6499 set dummy cmp; ac_word=$2
6500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502 if test "${ac_cv_path_CMP+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6530 if test -n "$CMP"; then
6531 { echo "$as_me:$LINENO: result: $CMP" >&5
6532 echo "${ECHO_T}$CMP" >&6; }
6534 { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6539 # Extract the first word of "cp", so it can be a program name with args.
6540 set dummy cp; ac_word=$2
6541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543 if test "${ac_cv_path_CP+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6571 if test -n "$CP"; then
6572 { echo "$as_me:$LINENO: result: $CP" >&5
6573 echo "${ECHO_T}$CP" >&6; }
6575 { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6580 # Extract the first word of "date", so it can be a program name with args.
6581 set dummy date; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_DATE+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6611 DATE=$ac_cv_path_DATE
6612 if test -n "$DATE"; then
6613 { echo "$as_me:$LINENO: result: $DATE" >&5
6614 echo "${ECHO_T}$DATE" >&6; }
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6621 # Extract the first word of "find", so it can be a program name with args.
6622 set dummy find; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_path_FIND+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6652 FIND=$ac_cv_path_FIND
6653 if test -n "$FIND"; then
6654 { echo "$as_me:$LINENO: result: $FIND" >&5
6655 echo "${ECHO_T}$FIND" >&6; }
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6662 # Extract the first word of "grep", so it can be a program name with args.
6663 set dummy grep; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_path_GREP+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6693 GREP=$ac_cv_path_GREP
6694 if test -n "$GREP"; then
6695 { echo "$as_me:$LINENO: result: $GREP" >&5
6696 echo "${ECHO_T}$GREP" >&6; }
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6703 # Extract the first word of "mkdir", so it can be a program name with args.
6704 set dummy mkdir; ac_word=$2
6705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707 if test "${ac_cv_path_MKDIR+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6734 MKDIR=$ac_cv_path_MKDIR
6735 if test -n "$MKDIR"; then
6736 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6737 echo "${ECHO_T}$MKDIR" >&6; }
6739 { echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6; }
6744 # Extract the first word of "mv", so it can be a program name with args.
6745 set dummy mv; ac_word=$2
6746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6748 if test "${ac_cv_path_MV+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6776 if test -n "$MV"; then
6777 { echo "$as_me:$LINENO: result: $MV" >&5
6778 echo "${ECHO_T}$MV" >&6; }
6780 { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_RANLIB+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test -n "$RANLIB"; then
6794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 RANLIB=$ac_cv_prog_RANLIB
6814 if test -n "$RANLIB"; then
6815 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6816 echo "${ECHO_T}$RANLIB" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6824 if test -z "$ac_cv_prog_RANLIB"; then
6825 ac_ct_RANLIB=$RANLIB
6826 # Extract the first word of "ranlib", so it can be a program name with args.
6827 set dummy ranlib; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 if test -n "$ac_ct_RANLIB"; then
6834 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_ac_ct_RANLIB="ranlib"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6854 if test -n "$ac_ct_RANLIB"; then
6855 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6856 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6862 if test "x$ac_ct_RANLIB" = x; then
6865 case $cross_compiling:$ac_tool_warned in
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet. If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet. If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6875 RANLIB=$ac_ct_RANLIB
6878 RANLIB="$ac_cv_prog_RANLIB"
6881 # Extract the first word of "rm", so it can be a program name with args.
6882 set dummy rm; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_path_RM+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6913 if test -n "$RM"; then
6914 { echo "$as_me:$LINENO: result: $RM" >&5
6915 echo "${ECHO_T}$RM" >&6; }
6917 { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6922 # Extract the first word of "sed", so it can be a program name with args.
6923 set dummy sed; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_SED+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6954 if test -n "$SED"; then
6955 { echo "$as_me:$LINENO: result: $SED" >&5
6956 echo "${ECHO_T}$SED" >&6; }
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6963 # Extract the first word of "tar", so it can be a program name with args.
6964 set dummy tar; ac_word=$2
6965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967 if test "${ac_cv_path_TAR+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6995 if test -n "$TAR"; then
6996 { echo "$as_me:$LINENO: result: $TAR" >&5
6997 echo "${ECHO_T}$TAR" >&6; }
6999 { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7004 # Extract the first word of "pwd", so it can be a program name with args.
7005 set dummy pwd; ac_word=$2
7006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008 if test "${ac_cv_path_BINPWD+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7035 BINPWD=$ac_cv_path_BINPWD
7036 if test -n "$BINPWD"; then
7037 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7038 echo "${ECHO_T}$BINPWD" >&6; }
7040 { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7046 # Extract the first word of "Graphviz", so it can be a program name with args.
7047 set dummy Graphviz; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7077 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7078 if test -n "$GRAPHVIZ"; then
7079 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7080 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7082 { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7087 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7089 cat >>confdefs.h <<\_ACEOF
7090 #define HAVE_GRAPHVIZ 1
7093 if test "$llvm_cv_os_type" == "MingW" ; then
7094 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7097 cat >>confdefs.h <<_ACEOF
7098 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7102 # Extract the first word of "dot", so it can be a program name with args.
7103 set dummy dot; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_DOT+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7134 if test -n "$DOT"; then
7135 { echo "$as_me:$LINENO: result: $DOT" >&5
7136 echo "${ECHO_T}$DOT" >&6; }
7138 { echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6; }
7143 if test "$DOT" != "echo dot" ; then
7145 cat >>confdefs.h <<\_ACEOF
7149 if test "$llvm_cv_os_type" == "MingW" ; then
7150 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7153 cat >>confdefs.h <<_ACEOF
7154 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7158 for ac_prog in gv gsview32
7160 # Extract the first word of "$ac_prog", so it can be a program name with args.
7161 set dummy $ac_prog; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_GV+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 if test -n "$GV"; then
7192 { echo "$as_me:$LINENO: result: $GV" >&5
7193 echo "${ECHO_T}$GV" >&6; }
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7200 test -n "$GV" && break
7202 test -n "$GV" || GV="echo gv"
7204 if test "$GV" != "echo gv" ; then
7206 cat >>confdefs.h <<\_ACEOF
7210 if test "$llvm_cv_os_type" == "MingW" ; then
7211 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7214 cat >>confdefs.h <<_ACEOF
7215 #define LLVM_PATH_GV "$GV${EXEEXT}"
7219 # Extract the first word of "dotty", so it can be a program name with args.
7220 set dummy dotty; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_DOTTY+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7250 DOTTY=$ac_cv_path_DOTTY
7251 if test -n "$DOTTY"; then
7252 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7253 echo "${ECHO_T}$DOTTY" >&6; }
7255 { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7260 if test "$DOTTY" != "echo dotty" ; then
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_DOTTY 1
7266 if test "$llvm_cv_os_type" == "MingW" ; then
7267 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7270 cat >>confdefs.h <<_ACEOF
7271 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7277 # Extract the first word of "perl", so it can be a program name with args.
7278 set dummy perl; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_PERL+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7308 PERL=$ac_cv_path_PERL
7309 if test -n "$PERL"; then
7310 { echo "$as_me:$LINENO: result: $PERL" >&5
7311 echo "${ECHO_T}$PERL" >&6; }
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7318 if test "$PERL" != "none"; then
7319 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7320 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7321 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7322 { echo "$as_me:$LINENO: result: yes" >&5
7323 echo "${ECHO_T}yes" >&6; }
7326 { echo "$as_me:$LINENO: result: not found" >&5
7327 echo "${ECHO_T}not found" >&6; }
7332 if test x"$PERL" = xnone; then
7340 # Find a good install program. We prefer a C program (faster),
7341 # so one script is as good as another. But avoid the broken or
7342 # incompatible versions:
7343 # SysV /etc/install, /usr/sbin/install
7344 # SunOS /usr/etc/install
7345 # IRIX /sbin/install
7347 # AmigaOS /C/install, which installs bootblocks on floppy discs
7348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7351 # OS/2's system install, which has a completely different semantic
7352 # ./install, which can be erroneously created by make from ./install.sh.
7353 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7354 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7355 if test -z "$INSTALL"; then
7356 if test "${ac_cv_path_install+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 # Account for people who put trailing slashes in PATH elements.
7366 ./ | .// | /cC/* | \
7367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7368 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7371 # OSF1 and SCO ODT 3.0 have their own names for install.
7372 # Don't use installbsd from OSF since it installs stuff as root
7374 for ac_prog in ginstall scoinst install; do
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7377 if test $ac_prog = install &&
7378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7379 # AIX install. It has an incompatible calling convention.
7381 elif test $ac_prog = install &&
7382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7383 # program-specific install script used by HP pwplus--don't use.
7386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7399 if test "${ac_cv_path_install+set}" = set; then
7400 INSTALL=$ac_cv_path_install
7402 # As a last resort, use the slow shell script. Don't cache a
7403 # value for INSTALL within a source directory, because that will
7404 # break other packages using the cache if that directory is
7405 # removed, or if the value is a relative name.
7406 INSTALL=$ac_install_sh
7409 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7410 echo "${ECHO_T}$INSTALL" >&6; }
7412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7413 # It thinks the first close brace ends the variable substitution.
7414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7421 # Extract the first word of "bzip2", so it can be a program name with args.
7422 set dummy bzip2; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_path_BZIP2+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7452 BZIP2=$ac_cv_path_BZIP2
7453 if test -n "$BZIP2"; then
7454 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7455 echo "${ECHO_T}$BZIP2" >&6; }
7457 { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7462 # Extract the first word of "doxygen", so it can be a program name with args.
7463 set dummy doxygen; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7493 DOXYGEN=$ac_cv_path_DOXYGEN
7494 if test -n "$DOXYGEN"; then
7495 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7496 echo "${ECHO_T}$DOXYGEN" >&6; }
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 # Extract the first word of "groff", so it can be a program name with args.
7504 set dummy groff; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_GROFF+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7534 GROFF=$ac_cv_path_GROFF
7535 if test -n "$GROFF"; then
7536 { echo "$as_me:$LINENO: result: $GROFF" >&5
7537 echo "${ECHO_T}$GROFF" >&6; }
7539 { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7544 # Extract the first word of "gzip", so it can be a program name with args.
7545 set dummy gzip; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_GZIP+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7575 GZIP=$ac_cv_path_GZIP
7576 if test -n "$GZIP"; then
7577 { echo "$as_me:$LINENO: result: $GZIP" >&5
7578 echo "${ECHO_T}$GZIP" >&6; }
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7585 # Extract the first word of "pod2html", so it can be a program name with args.
7586 set dummy pod2html; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_POD2HTML+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7616 POD2HTML=$ac_cv_path_POD2HTML
7617 if test -n "$POD2HTML"; then
7618 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7619 echo "${ECHO_T}$POD2HTML" >&6; }
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 # Extract the first word of "pod2man", so it can be a program name with args.
7627 set dummy pod2man; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_path_POD2MAN+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7657 POD2MAN=$ac_cv_path_POD2MAN
7658 if test -n "$POD2MAN"; then
7659 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7660 echo "${ECHO_T}$POD2MAN" >&6; }
7662 { echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6; }
7667 # Extract the first word of "runtest", so it can be a program name with args.
7668 set dummy runtest; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_RUNTEST+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7698 RUNTEST=$ac_cv_path_RUNTEST
7699 if test -n "$RUNTEST"; then
7700 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7701 echo "${ECHO_T}$RUNTEST" >&6; }
7703 { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7710 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7711 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7713 # Check whether --with-tclinclude was given.
7714 if test "${with_tclinclude+set}" = set; then
7715 withval=$with_tclinclude; with_tclinclude=${withval}
7720 if test "${ac_cv_path_tclsh+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 if test x"${with_tclinclude}" != x ; then
7725 if test -f ${with_tclinclude}/tclsh ; then
7726 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7727 elif test -f ${with_tclinclude}/src/tclsh ; then
7728 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7730 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7731 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7732 { (exit 1); exit 1; }; }
7736 if test x"${ac_cv_path_tclsh}" = x ; then
7737 { echo "$as_me:$LINENO: result: none" >&5
7738 echo "${ECHO_T}none" >&6; }
7739 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
7741 # Extract the first word of "$ac_prog", so it can be a program name with args.
7742 set dummy $ac_prog; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_TCLSH+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 TCLSH=$ac_cv_path_TCLSH
7772 if test -n "$TCLSH"; then
7773 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7774 echo "${ECHO_T}$TCLSH" >&6; }
7776 { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7781 test -n "$TCLSH" && break
7784 if test x"${TCLSH}" = x ; then
7785 ac_cv_path_tclsh='';
7787 ac_cv_path_tclsh="${TCLSH}";
7790 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7791 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7792 TCLSH="${ac_cv_path_tclsh}"
7798 # Extract the first word of "zip", so it can be a program name with args.
7799 set dummy zip; ac_word=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_path_ZIP+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7830 if test -n "$ZIP"; then
7831 { echo "$as_me:$LINENO: result: $ZIP" >&5
7832 echo "${ECHO_T}$ZIP" >&6; }
7834 { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7840 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7841 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7842 if test "${llvm_cv_link_use_r+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7852 CFLAGS="$CFLAGS -Wl,-R."
7853 cat >conftest.$ac_ext <<_ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7863 int main() { return 0; }
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7877 grep -v '^ *+' conftest.er1 >conftest.err
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 llvm_cv_link_use_r=yes
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 llvm_cv_link_use_r=no
7910 rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7914 ac_cpp='$CPP $CPPFLAGS'
7915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7922 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7923 if test "$llvm_cv_link_use_r" = yes ; then
7925 cat >>confdefs.h <<\_ACEOF
7926 #define HAVE_LINK_R 1
7934 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7935 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7936 if test "${ac_cv_c_const+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7949 /* FIXME: Include the comments suggested by Paul. */
7951 /* Ultrix mips cc rejects this. */
7952 typedef int charset[2];
7954 /* SunOS 4.1.1 cc rejects this. */
7955 char const *const *ccp;
7957 /* NEC SVR4.0.2 mips cc rejects this. */
7958 struct point {int x, y;};
7959 static struct point const zero = {0,0};
7960 /* AIX XL C 1.02.0.0 rejects this.
7961 It does not let you subtract one const X* pointer from another in
7962 an arm of an if-expression whose if-part is not a constant
7964 const char *g = "string";
7965 ccp = &g + (g ? g-g : 0);
7966 /* HPUX 7.0 cc rejects these. */
7969 ccp = (char const *const *) p;
7970 { /* SCO 3.2v4 cc rejects this. */
7972 char const *s = 0 ? (char *) 0 : (char const *) 0;
7977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7979 const int *foo = &x[0];
7982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7983 typedef const int *iptr;
7987 { /* AIX XL C 1.02.0.0 rejects this saying
7988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7989 struct s { int j; const int *ap[3]; };
7990 struct s *b; b->j = 5;
7992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7996 return !x[0] && !zero.x;
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8012 grep -v '^ *+' conftest.er1 >conftest.err
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8018 { (case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_try") 2>&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest.$ac_objext'
8028 { (case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_try") 2>&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8048 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8049 if test $ac_cv_c_const = no; then
8051 cat >>confdefs.h <<\_ACEOF
8063 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8064 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8065 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8066 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 cat >conftest.$ac_ext <<_ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h. */
8076 #include <sys/types.h>
8088 rm -f conftest.$ac_objext
8089 if { (ac_try="$ac_compile"
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8097 grep -v '^ *+' conftest.er1 >conftest.err
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8103 { (case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_try") 2>&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try='test -s conftest.$ac_objext'
8113 { (case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_try") 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 eval "$as_ac_Header=yes"
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 eval "$as_ac_Header=no"
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 ac_res=`eval echo '${'$as_ac_Header'}'`
8133 { echo "$as_me:$LINENO: result: $ac_res" >&5
8134 echo "${ECHO_T}$ac_res" >&6; }
8135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136 cat >>confdefs.h <<_ACEOF
8137 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8140 ac_header_dirent=$ac_hdr; break
8144 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8145 if test $ac_header_dirent = dirent.h; then
8146 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8147 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8148 if test "${ac_cv_search_opendir+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 ac_func_search_save_LIBS=$LIBS
8152 cat >conftest.$ac_ext <<_ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8159 /* Override any GCC internal prototype to avoid an error.
8160 Use char because int might match the return type of a GCC
8161 builtin and then its argument prototype would still apply. */
8174 for ac_lib in '' dir; do
8175 if test -z "$ac_lib"; then
8176 ac_res="none required"
8179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8181 rm -f conftest.$ac_objext conftest$ac_exeext
8182 if { (ac_try="$ac_link"
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_link") 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8196 { (case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_try") 2>&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_cv_search_opendir=$ac_res
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8223 rm -f core conftest.err conftest.$ac_objext \
8225 if test "${ac_cv_search_opendir+set}" = set; then
8229 if test "${ac_cv_search_opendir+set}" = set; then
8232 ac_cv_search_opendir=no
8235 LIBS=$ac_func_search_save_LIBS
8237 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8238 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8239 ac_res=$ac_cv_search_opendir
8240 if test "$ac_res" != no; then
8241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8246 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8247 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8248 if test "${ac_cv_search_opendir+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 ac_func_search_save_LIBS=$LIBS
8252 cat >conftest.$ac_ext <<_ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8259 /* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8274 for ac_lib in '' x; do
8275 if test -z "$ac_lib"; then
8276 ac_res="none required"
8279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (ac_try="$ac_link"
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_link") 2>conftest.er1
8290 grep -v '^ *+' conftest.er1 >conftest.err
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8296 { (case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_try") 2>&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_try") 2>&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_search_opendir=$ac_res
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8323 rm -f core conftest.err conftest.$ac_objext \
8325 if test "${ac_cv_search_opendir+set}" = set; then
8329 if test "${ac_cv_search_opendir+set}" = set; then
8332 ac_cv_search_opendir=no
8335 LIBS=$ac_func_search_save_LIBS
8337 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8338 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8339 ac_res=$ac_cv_search_opendir
8340 if test "$ac_res" != no; then
8341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8348 for ac_header in dlfcn.h
8350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 ac_res=`eval echo '${'$as_ac_Header'}'`
8358 { echo "$as_me:$LINENO: result: $ac_res" >&5
8359 echo "${ECHO_T}$ac_res" >&6; }
8361 # Is the header compilable?
8362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8371 #include <$ac_header>
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_compile") 2>conftest.er1
8382 grep -v '^ *+' conftest.er1 >conftest.err
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8388 { (case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_try") 2>&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest.$ac_objext'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_header_compiler=yes
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_header_compiler=no
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8417 echo "${ECHO_T}$ac_header_compiler" >&6; }
8419 # Is the header present?
8420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8422 cat >conftest.$ac_ext <<_ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8428 #include <$ac_header>
8430 if { (ac_try="$ac_cpp conftest.$ac_ext"
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8438 grep -v '^ *+' conftest.er1 >conftest.err
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } >/dev/null; then
8443 if test -s conftest.err; then
8444 ac_cpp_err=$ac_c_preproc_warn_flag
8445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8452 if test -z "$ac_cpp_err"; then
8453 ac_header_preproc=yes
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 ac_header_preproc=no
8461 rm -f conftest.err conftest.$ac_ext
8462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8463 echo "${ECHO_T}$ac_header_preproc" >&6; }
8465 # So? What about this header?
8466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8472 ac_header_preproc=yes
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8488 ## ----------------------------------- ##
8489 ## Report this to llvmbugs@cs.uiuc.edu ##
8490 ## ----------------------------------- ##
8492 ) | sed "s/^/$as_me: WARNING: /" >&2
8495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 eval "$as_ac_Header=\$ac_header_preproc"
8502 ac_res=`eval echo '${'$as_ac_Header'}'`
8503 { echo "$as_me:$LINENO: result: $ac_res" >&5
8504 echo "${ECHO_T}$ac_res" >&6; }
8507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8508 cat >>confdefs.h <<_ACEOF
8509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8516 # Check whether --enable-ltdl-install was given.
8517 if test "${enable_ltdl_install+set}" = set; then
8518 enableval=$enable_ltdl_install;
8524 if test x"${enable_ltdl_install-no}" != xno; then
8526 INSTALL_LTDL_FALSE='#'
8528 INSTALL_LTDL_TRUE='#'
8534 if test x"${enable_ltdl_convenience-no}" != xno; then
8535 CONVENIENCE_LTDL_TRUE=
8536 CONVENIENCE_LTDL_FALSE='#'
8538 CONVENIENCE_LTDL_TRUE='#'
8539 CONVENIENCE_LTDL_FALSE=
8543 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8544 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8546 libname_spec='lib$name'
8554 shlibpath_overrides_runpath=unknown
8556 dynamic_linker="$host_os ld.so"
8557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8558 if test "$GCC" = yes; then
8559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8560 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8561 # if the path contains ";" then we assume it to be the separator
8562 # otherwise default to the standard path separator (i.e. ":") - it is
8563 # assumed that no part of a normal pathname contains ";" but that should
8564 # okay in the real world where ";" in dirpaths is itself problematic.
8565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8572 need_lib_prefix=unknown
8573 hardcode_into_libs=no
8575 # when you set need_version to no, make sure it does not cause -set_version
8576 # flags to be left without arguments
8577 need_version=unknown
8582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8583 shlibpath_var=LIBPATH
8585 # AIX 3 has no versioning support, so we append a major version to the name.
8586 soname_spec='${libname}${release}${shared_ext}$major'
8593 hardcode_into_libs=yes
8594 if test "$host_cpu" = ia64; then
8595 # AIX 5 supports IA64
8596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8597 shlibpath_var=LD_LIBRARY_PATH
8599 # With GCC up to 2.95.x, collect2 would create an import file
8600 # for dependence libraries. The import file would start with
8601 # the line `#! .'. This would cause the generated library to
8602 # depend on `.', always an invalid library. This was fixed in
8603 # development snapshots of GCC prior to 3.0.
8605 aix4 | aix4.[01] | aix4.[01].*)
8606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8608 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8616 # soname into executable. Probably we can add versioning support to
8617 # collect2, so additional links can be useful in future.
8618 if test "$aix_use_runtimelinking" = yes; then
8619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8620 # instead of lib<name>.a to let people know that these are not
8621 # typical AIX shared libraries.
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 # We preserve .a as extension for shared libraries through AIX4.2
8625 # and later when we are not doing run time linking.
8626 library_names_spec='${libname}${release}.a $libname.a'
8627 soname_spec='${libname}${release}${shared_ext}$major'
8629 shlibpath_var=LIBPATH
8634 library_names_spec='$libname.ixlibrary $libname.a'
8635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8636 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'
8640 library_names_spec='${libname}${shared_ext}'
8641 dynamic_linker="$host_os ld.so"
8642 shlibpath_var=LIBRARY_PATH
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8651 shlibpath_var=LD_LIBRARY_PATH
8652 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8653 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8654 # the default ld.so.conf also contains /usr/contrib/lib and
8655 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8656 # libtool to hard-code these into programs
8659 cygwin* | mingw* | pw32*)
8660 version_type=windows
8665 case $GCC,$host_os in
8666 yes,cygwin* | yes,mingw* | yes,pw32*)
8667 library_names_spec='$libname.dll.a'
8668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8669 postinstall_cmds='base_file=`basename \${file}`~
8670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8671 dldir=$destdir/`dirname \$dlpath`~
8672 test -d \$dldir || mkdir -p \$dldir~
8673 $install_prog $dir/$dlname \$dldir/$dlname~
8674 chmod a+x \$dldir/$dlname'
8675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8676 dlpath=$dir/\$dldll~
8678 shlibpath_overrides_runpath=yes
8682 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8684 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8687 # MinGW DLLs use traditional 'lib' prefix
8688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8691 # It is most probably a Windows format PATH printed by
8692 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8693 # path with ; separators, and with drive letters. We can handle the
8694 # drive letters (cygwin fileutils understands them), so leave them,
8695 # especially as we might pass files found there to a mingw objdump,
8696 # which wouldn't understand a cygwinified path. Ahh.
8697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8703 # pw32 DLLs use 'pw' prefix rather than 'lib'
8704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8713 dynamic_linker='Win32 ld.exe'
8714 # FIXME: first we should search . and the directory the executable is in
8718 darwin* | rhapsody*)
8719 dynamic_linker="$host_os dyld"
8723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8724 soname_spec='${libname}${release}${major}$shared_ext'
8725 shlibpath_overrides_runpath=yes
8726 shlibpath_var=DYLD_LIBRARY_PATH
8727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8729 if test "$GCC" = yes; then
8730 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"`
8732 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8742 soname_spec='${libname}${release}${shared_ext}$major'
8743 shlibpath_var=LD_LIBRARY_PATH
8754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8755 soname_spec='${libname}${release}${shared_ext}$major'
8756 shlibpath_var=LD_LIBRARY_PATH
8757 shlibpath_overrides_runpath=no
8758 hardcode_into_libs=yes
8759 dynamic_linker='GNU ld.so'
8762 freebsd* | dragonfly*)
8763 # DragonFly does not have aout. When/if they implement a new
8764 # versioning mechanism, adjust this.
8765 if test -x /usr/bin/objformat; then
8766 objformat=`/usr/bin/objformat`
8769 freebsd[123]*) objformat=aout ;;
8773 version_type=freebsd-$objformat
8774 case $version_type in
8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8785 shlibpath_var=LD_LIBRARY_PATH
8788 shlibpath_overrides_runpath=yes
8790 freebsd3.[01]* | freebsdelf3.[01]*)
8791 shlibpath_overrides_runpath=yes
8792 hardcode_into_libs=yes
8794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8796 shlibpath_overrides_runpath=no
8797 hardcode_into_libs=yes
8799 freebsd*) # from 4.6 on
8800 shlibpath_overrides_runpath=yes
8801 hardcode_into_libs=yes
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 shlibpath_var=LD_LIBRARY_PATH
8813 hardcode_into_libs=yes
8816 hpux9* | hpux10* | hpux11*)
8817 # Give a soname corresponding to the major version so that dld.sl refuses to
8818 # link against other versions.
8825 hardcode_into_libs=yes
8826 dynamic_linker="$host_os dld.so"
8827 shlibpath_var=LD_LIBRARY_PATH
8828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 if test "X$HPUX_IA64_MODE" = X32; then
8832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8840 hardcode_into_libs=yes
8841 dynamic_linker="$host_os dld.sl"
8842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8851 dynamic_linker="$host_os dld.sl"
8852 shlibpath_var=SHLIB_PATH
8853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8858 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8859 postinstall_cmds='chmod 555 $lib'
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=no
8871 hardcode_into_libs=yes
8874 irix5* | irix6* | nonstopux*)
8876 nonstopux*) version_type=nonstopux ;;
8878 if test "$lt_cv_prog_gnu_ld" = yes; then
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8889 irix5* | nonstopux*)
8893 case $LD in # libtool.m4 will add one of these switches to LD
8894 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8895 libsuff= shlibsuff= libmagic=32-bit;;
8896 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8897 libsuff=32 shlibsuff=N32 libmagic=N32;;
8898 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8899 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8900 *) libsuff= shlibsuff= libmagic=never-match;;
8904 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8905 shlibpath_overrides_runpath=no
8906 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8907 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8908 hardcode_into_libs=yes
8911 # No shared lib support for Linux oldld, aout, or coff.
8912 linux*oldld* | linux*aout* | linux*coff*)
8916 # This must be Linux ELF.
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=no
8926 # This implies no fast_install, which is unacceptable.
8927 # Some rework will be needed to allow for fast_install
8928 # before this can be enabled.
8929 hardcode_into_libs=yes
8931 # Append ld.so.conf contents to the search path
8932 if test -f /etc/ld.so.conf; then
8933 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' ' '`
8934 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8937 # We used to test for /lib/ld.so.1 and disable shared libraries on
8938 # powerpc, because MkLinux only supported shared libraries with the
8939 # GNU dynamic linker. Since this was broken with cross compilers,
8940 # most powerpc-linux boxes support dynamic linking these days and
8941 # people can always --disable-shared, the test was removed, and we
8942 # assume the GNU/Linux dynamic linker is in use.
8943 dynamic_linker='GNU/Linux ld.so'
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=no
8954 hardcode_into_libs=yes
8955 dynamic_linker='GNU ld.so'
8962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8965 dynamic_linker='NetBSD (a.out) ld.so'
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 dynamic_linker='NetBSD ld.elf_so'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=yes
8973 hardcode_into_libs=yes
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=yes
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes
8995 sys_lib_dlsearch_path_spec="/usr/lib"
8997 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8999 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9000 *) need_version=no ;;
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9007 openbsd2.[89] | openbsd2.[89].*)
9008 shlibpath_overrides_runpath=no
9011 shlibpath_overrides_runpath=yes
9015 shlibpath_overrides_runpath=yes
9020 libname_spec='$name'
9023 library_names_spec='$libname${shared_ext} $libname.a'
9024 dynamic_linker='OS/2 ld.exe'
9025 shlibpath_var=LIBPATH
9028 osf3* | osf4* | osf5*)
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9036 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=yes
9047 hardcode_into_libs=yes
9048 # ldd complains unless libraries are executable
9049 postinstall_cmds='chmod +x $lib'
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 shlibpath_overrides_runpath=yes
9058 if test "$with_gnu_ld" = yes; then
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 case $host_vendor in
9071 shlibpath_overrides_runpath=no
9073 export_dynamic_flag_spec='${wl}-Blargedynsym'
9074 runpath_var=LD_RUN_PATH
9082 shlibpath_overrides_runpath=no
9083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9089 if test -d /usr/nec ;then
9091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9092 soname_spec='$libname${shared_ext}.$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9098 version_type=freebsd-elf
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 hardcode_into_libs=yes
9105 if test "$with_gnu_ld" = yes; then
9106 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9107 shlibpath_overrides_runpath=no
9109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9110 shlibpath_overrides_runpath=yes
9113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9117 sys_lib_dlsearch_path_spec='/usr/lib'
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9131 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9132 echo "${ECHO_T}$dynamic_linker" >&6; }
9133 test "$dynamic_linker" = no && can_build_shared=no
9135 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9136 if test "$GCC" = yes; then
9137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9141 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9142 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9143 if test "${libltdl_cv_shlibext+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 eval libltdl_cv_shlibext=$shrext_cmds
9151 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9152 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9153 if test -n "$libltdl_cv_shlibext"; then
9155 cat >>confdefs.h <<_ACEOF
9156 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9162 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9163 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9164 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 libltdl_cv_shlibpath_var="$shlibpath_var"
9169 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9170 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9171 if test -n "$libltdl_cv_shlibpath_var"; then
9173 cat >>confdefs.h <<_ACEOF
9174 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9180 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9181 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9182 if test "${libltdl_cv_sys_search_path+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9187 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9188 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9189 if test -n "$libltdl_cv_sys_search_path"; then
9191 for dir in $libltdl_cv_sys_search_path; do
9192 if test -z "$sys_search_path"; then
9193 sys_search_path="$dir"
9195 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9199 cat >>confdefs.h <<_ACEOF
9200 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9205 { echo "$as_me:$LINENO: checking for objdir" >&5
9206 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9207 if test "${libltdl_cv_objdir+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 libltdl_cv_objdir="$objdir"
9211 if test -n "$objdir"; then
9214 rm -f .libs 2>/dev/null
9215 mkdir .libs 2>/dev/null
9216 if test -d .libs; then
9217 libltdl_cv_objdir=.libs
9219 # MS-DOS does not allow filenames that begin with a dot.
9220 libltdl_cv_objdir=_libs
9222 rmdir .libs 2>/dev/null
9226 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9227 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9229 cat >>confdefs.h <<_ACEOF
9230 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9238 # Check for command to grab the raw symbol name followed by C symbol from nm.
9239 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9240 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9241 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 # These are sane defaults that work on at least a few old systems.
9246 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9248 # Character class describing NM global symbol codes.
9249 symcode='[BCDEGRST]'
9251 # Regexp to match symbols that can be accessed directly from C.
9252 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9254 # Transform an extracted symbol line into a proper C declaration
9255 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9257 # Transform an extracted symbol line into symbol name and symbol address
9258 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'"
9260 # Define system-specific variables.
9265 cygwin* | mingw* | pw32*)
9266 symcode='[ABCDGISTW]'
9268 hpux*) # Its linker distinguishes data from code symbols
9269 if test "$host_cpu" = ia64; then
9270 symcode='[ABCDEGRST]'
9272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9273 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'"
9276 if test "$host_cpu" = ia64; then
9277 symcode='[ABCDGIRSTW]'
9278 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9279 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'"
9283 symcode='[BCDEGRST]'
9286 symcode='[BCDEGQRST]'
9297 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9305 # Handle CRLF in mingw tool chain
9309 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9313 # If we're using GNU nm, then use its standard symbol codes.
9314 case `$NM -V 2>&1` in
9315 *GNU* | *'with BFD'*)
9316 symcode='[ABCDGIRSTW]' ;;
9319 # Try without a prefix undercore, then with it.
9320 for ac_symprfx in "" "_"; do
9322 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9323 symxfrm="\\1 $ac_symprfx\\2 \\2"
9325 # Write the raw and C identifiers.
9326 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9328 # Check to see that the pipe works correctly.
9332 cat > conftest.$ac_ext <<EOF
9337 void nm_test_func(){}
9341 int main(){nm_test_var='a';nm_test_func();return(0);}
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; then
9349 # Now try to grab the symbols.
9351 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9352 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && test -s "$nlist"; then
9356 # Try sorting and uniquifying the output.
9357 if sort "$nlist" | uniq > "$nlist"T; then
9358 mv -f "$nlist"T "$nlist"
9363 # Make sure that we snagged all the symbols we need.
9364 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9365 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9366 cat <<EOF > conftest.$ac_ext
9372 # Now generate the symbol file.
9373 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9375 cat <<EOF >> conftest.$ac_ext
9376 #if defined (__STDC__) && __STDC__
9377 # define lt_ptr_t void *
9379 # define lt_ptr_t char *
9383 /* The mapping between symbol names and symbols. */
9388 lt_preloaded_symbols[] =
9391 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9392 cat <<\EOF >> conftest.$ac_ext
9400 # Now try linking the two files.
9401 mv conftest.$ac_objext conftstm.$ac_objext
9402 lt_save_LIBS="$LIBS"
9403 lt_save_CFLAGS="$CFLAGS"
9404 LIBS="conftstm.$ac_objext"
9405 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9413 LIBS="$lt_save_LIBS"
9414 CFLAGS="$lt_save_CFLAGS"
9416 echo "cannot find nm_test_func in $nlist" >&5
9419 echo "cannot find nm_test_var in $nlist" >&5
9422 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9425 echo "$progname: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9428 rm -f conftest* conftst*
9430 # Do not use the global_symbol_pipe unless it works.
9431 if test "$pipe_works" = yes; then
9434 lt_cv_sys_global_symbol_pipe=
9440 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9441 lt_cv_sys_global_symbol_to_cdecl=
9443 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9444 { echo "$as_me:$LINENO: result: failed" >&5
9445 echo "${ECHO_T}failed" >&6; }
9447 { echo "$as_me:$LINENO: result: ok" >&5
9448 echo "${ECHO_T}ok" >&6; }
9452 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9453 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9458 libltdl_cv_preloaded_symbols=yes
9460 libltdl_cv_preloaded_symbols=no
9464 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9465 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9466 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_PRELOADED_SYMBOLS 1
9477 ac_cpp='$CPP $CPPFLAGS'
9478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483 { echo "$as_me:$LINENO: checking for shl_load" >&5
9484 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_shl_load+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 cat >conftest.$ac_ext <<_ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9496 #define shl_load innocuous_shl_load
9498 /* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char shl_load (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9504 # include <limits.h>
9506 # include <assert.h>
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9518 /* The GNU C library defines this for functions which it implements
9519 to always fail with ENOSYS. Some functions are actually named
9520 something starting with __ and the normal name is an alias. */
9521 #if defined __stub_shl_load || defined __stub___shl_load
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9548 { (case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_try") 2>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest$ac_exeext'
9558 { (case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_try") 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_cv_func_shl_load=yes
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9572 ac_cv_func_shl_load=no
9575 rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9578 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9579 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9580 if test $ac_cv_func_shl_load = yes; then
9582 cat >>confdefs.h <<\_ACEOF
9583 #define HAVE_SHL_LOAD 1
9587 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9588 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9589 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 ac_check_lib_save_LIBS=$LIBS
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9601 /* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (ac_try="$ac_link"
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_link") 2>conftest.er1
9625 grep -v '^ *+' conftest.er1 >conftest.err
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9631 { (case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_try") 2>&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest$ac_exeext'
9641 { (case "(($ac_try" in
9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643 *) ac_try_echo=$ac_try;;
9645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646 (eval "$ac_try") 2>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_cv_lib_dld_shl_load=yes
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_cv_lib_dld_shl_load=no
9658 rm -f core conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 LIBS=$ac_check_lib_save_LIBS
9662 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9663 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9664 if test $ac_cv_lib_dld_shl_load = yes; then
9666 cat >>confdefs.h <<\_ACEOF
9667 #define HAVE_SHL_LOAD 1
9670 LIBADD_DL="$LIBADD_DL -ldld"
9672 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9673 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9674 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 ac_check_lib_save_LIBS=$LIBS
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9686 /* Override any GCC internal prototype to avoid an error.
9687 Use char because int might match the return type of a GCC
9688 builtin and then its argument prototype would still apply. */
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>conftest.er1
9710 grep -v '^ *+' conftest.er1 >conftest.err
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716 { (case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_try") 2>&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_lib_dl_dlopen=yes
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_cv_lib_dl_dlopen=no
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9748 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9749 if test $ac_cv_lib_dl_dlopen = yes; then
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_LIBDL 1
9755 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (ac_try="$ac_link"
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_link") 2>conftest.er1
9784 grep -v '^ *+' conftest.er1 >conftest.err
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9790 { (case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_try") 2>&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try='test -s conftest$ac_exeext'
9800 { (case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_try") 2>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_LIBDL 1
9813 libltdl_cv_func_dlopen="yes"
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9819 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9820 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 ac_check_lib_save_LIBS=$LIBS
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9832 /* Override any GCC internal prototype to avoid an error.
9833 Use char because int might match the return type of a GCC
9834 builtin and then its argument prototype would still apply. */
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854 (eval "$ac_link") 2>conftest.er1
9856 grep -v '^ *+' conftest.er1 >conftest.err
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862 { (case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_try") 2>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest$ac_exeext'
9872 { (case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_try") 2>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_lib_svld_dlopen=yes
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 ac_cv_lib_svld_dlopen=no
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9893 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9895 if test $ac_cv_lib_svld_dlopen = yes; then
9897 cat >>confdefs.h <<\_ACEOF
9898 #define HAVE_LIBDL 1
9901 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9903 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9904 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9905 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 ac_check_lib_save_LIBS=$LIBS
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 /* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947 { (case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_try") 2>&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_lib_dld_dld_link=yes
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 ac_cv_lib_dld_dld_link=no
9974 rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9979 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9980 if test $ac_cv_lib_dld_dld_link = yes; then
9982 cat >>confdefs.h <<\_ACEOF
9986 LIBADD_DL="$LIBADD_DL -ldld"
9988 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9989 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9990 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10001 #define _dyld_func_lookup innocuous__dyld_func_lookup
10003 /* System header to define __stub macros and hopefully few prototypes,
10004 which can conflict with char _dyld_func_lookup (); below.
10005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10006 <limits.h> exists even on freestanding compilers. */
10009 # include <limits.h>
10011 # include <assert.h>
10014 #undef _dyld_func_lookup
10016 /* Override any GCC internal prototype to avoid an error.
10017 Use char because int might match the return type of a GCC
10018 builtin and then its argument prototype would still apply. */
10022 char _dyld_func_lookup ();
10023 /* The GNU C library defines this for functions which it implements
10024 to always fail with ENOSYS. Some functions are actually named
10025 something starting with __ and the normal name is an alias. */
10026 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10033 return _dyld_func_lookup ();
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_link") 2>conftest.er1
10047 grep -v '^ *+' conftest.er1 >conftest.err
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_func__dyld_func_lookup=yes
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 ac_cv_func__dyld_func_lookup=no
10080 rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10083 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10084 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10085 if test $ac_cv_func__dyld_func_lookup = yes; then
10087 cat >>confdefs.h <<\_ACEOF
10088 #define HAVE_DYLD 1
10102 rm -f core conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10114 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10116 lt_save_LIBS="$LIBS"
10117 LIBS="$LIBS $LIBADD_DL"
10119 for ac_func in dlerror
10121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10135 #define $ac_func innocuous_$ac_func
10137 /* System header to define __stub macros and hopefully few prototypes,
10138 which can conflict with char $ac_func (); below.
10139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10140 <limits.h> exists even on freestanding compilers. */
10143 # include <limits.h>
10145 # include <assert.h>
10150 /* Override any GCC internal prototype to avoid an error.
10151 Use char because int might match the return type of a GCC
10152 builtin and then its argument prototype would still apply. */
10157 /* The GNU C library defines this for functions which it implements
10158 to always fail with ENOSYS. Some functions are actually named
10159 something starting with __ and the normal name is an alias. */
10160 #if defined __stub_$ac_func || defined __stub___$ac_func
10167 return $ac_func ();
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_link") 2>conftest.er1
10181 grep -v '^ *+' conftest.er1 >conftest.err
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187 { (case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_try") 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; } &&
10196 { ac_try='test -s conftest$ac_exeext'
10197 { (case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 eval "$as_ac_var=yes"
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 eval "$as_ac_var=no"
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10217 ac_res=`eval echo '${'$as_ac_var'}'`
10218 { echo "$as_me:$LINENO: result: $ac_res" >&5
10219 echo "${ECHO_T}$ac_res" >&6; }
10220 if test `eval echo '${'$as_ac_var'}'` = yes; then
10221 cat >>confdefs.h <<_ACEOF
10222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10228 LIBS="$lt_save_LIBS"
10231 ac_cpp='$CPP $CPPFLAGS'
10232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10238 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10239 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10240 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 ac_cv_sys_symbol_underscore=no
10244 cat > conftest.$ac_ext <<EOF
10245 void nm_test_func(){}
10246 int main(){nm_test_func;return 0;}
10248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10249 (eval $ac_compile) 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; then
10253 # Now try to grab the symbols.
10254 ac_nlist=conftest.nm
10255 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10256 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && test -s "$ac_nlist"; then
10260 # See whether the symbols have a leading underscore.
10261 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10262 ac_cv_sys_symbol_underscore=yes
10264 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10267 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10271 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10274 echo "configure: failed program was:" >&5
10280 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10281 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10284 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10285 if test x"$libltdl_cv_func_dlopen" = xyes ||
10286 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10287 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10288 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10289 if test "${libltdl_cv_need_uscore+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 libltdl_cv_need_uscore=unknown
10294 LIBS="$LIBS $LIBADD_DL"
10295 if test "$cross_compiling" = yes; then :
10296 libltdl_cv_need_uscore=cross
10298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10299 lt_status=$lt_dlunknown
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10301 "configure"
10302 #include "confdefs.h"
10311 # define LT_DLGLOBAL RTLD_GLOBAL
10314 # define LT_DLGLOBAL DL_GLOBAL
10316 # define LT_DLGLOBAL 0
10320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10321 find out it does not work in some platform. */
10322 #ifndef LT_DLLAZY_OR_NOW
10324 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10327 # define LT_DLLAZY_OR_NOW DL_LAZY
10330 # define LT_DLLAZY_OR_NOW RTLD_NOW
10333 # define LT_DLLAZY_OR_NOW DL_NOW
10335 # define LT_DLLAZY_OR_NOW 0
10343 extern "C" void exit (int);
10346 void fnord() { int i=42;}
10349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10350 int status = $lt_dlunknown;
10354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10356 /* dlclose (self); */
10364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365 (eval $ac_link) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10369 (./conftest; exit; ) >&5 2>/dev/null
10371 case x$lt_status in
10372 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10373 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10374 x$lt_dlunknown|x*) ;;
10377 # compilation failed
10386 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10387 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10391 if test x"$libltdl_cv_need_uscore" = xyes; then
10393 cat >>confdefs.h <<\_ACEOF
10394 #define NEED_USCORE 1
10400 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10401 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10402 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 # PORTME does your system automatically load deplibs for dlopen?
10406 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10407 # For now, we just catch OSes we know something about -- in the
10408 # future, we'll try test this programmatically.
10409 libltdl_cv_sys_dlopen_deplibs=unknown
10411 aix3*|aix4.1.*|aix4.2.*)
10412 # Unknown whether this is true for these versions of AIX, but
10413 # we want this `case' here to explicitly catch those versions.
10414 libltdl_cv_sys_dlopen_deplibs=unknown
10417 libltdl_cv_sys_dlopen_deplibs=yes
10420 # Assuming the user has installed a libdl from somewhere, this is true
10421 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10422 libltdl_cv_sys_dlopen_deplibs=yes
10424 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10425 # GNU and its variants, using gnu ld.so (Glibc)
10426 libltdl_cv_sys_dlopen_deplibs=yes
10429 libltdl_cv_sys_dlopen_deplibs=yes
10432 libltdl_cv_sys_dlopen_deplibs=yes
10434 irix[12345]*|irix6.[01]*)
10435 # Catch all versions of IRIX before 6.2, and indicate that we don't
10436 # know how it worked for any of those versions.
10437 libltdl_cv_sys_dlopen_deplibs=unknown
10440 # The case above catches anything before 6.2, and it's known that
10441 # at 6.2 and later dlopen does load deplibs.
10442 libltdl_cv_sys_dlopen_deplibs=yes
10445 libltdl_cv_sys_dlopen_deplibs=yes
10448 libltdl_cv_sys_dlopen_deplibs=yes
10451 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10452 # it did *not* use an RPATH in a shared library to find objects the
10453 # library depends on, so we explictly say `no'.
10454 libltdl_cv_sys_dlopen_deplibs=no
10456 osf5.0|osf5.0a|osf5.1)
10457 # dlopen *does* load deplibs and with the right loader patch applied
10458 # it even uses RPATH in a shared library to search for shared objects
10459 # that the library depends on, but there's no easy way to know if that
10460 # patch is installed. Since this is the case, all we can really
10461 # say is unknown -- it depends on the patch being installed. If
10462 # it is, this changes to `yes'. Without it, it would be `no'.
10463 libltdl_cv_sys_dlopen_deplibs=unknown
10466 # the two cases above should catch all versions of osf <= 5.1. Read
10467 # the comments above for what we know about them.
10468 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10469 # is used to find them so we can finally say `yes'.
10470 libltdl_cv_sys_dlopen_deplibs=yes
10473 libltdl_cv_sys_dlopen_deplibs=yes
10475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10476 libltdl_cv_sys_dlopen_deplibs=yes
10481 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10482 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10483 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10485 cat >>confdefs.h <<\_ACEOF
10486 #define LTDL_DLOPEN_DEPLIBS 1
10492 for ac_header in argz.h
10494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 ac_res=`eval echo '${'$as_ac_Header'}'`
10502 { echo "$as_me:$LINENO: result: $ac_res" >&5
10503 echo "${ECHO_T}$ac_res" >&6; }
10505 # Is the header compilable?
10506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10508 cat >conftest.$ac_ext <<_ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 $ac_includes_default
10515 #include <$ac_header>
10517 rm -f conftest.$ac_objext
10518 if { (ac_try="$ac_compile"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_compile") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest.$ac_objext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_header_compiler=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_header_compiler=no
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10561 echo "${ECHO_T}$ac_header_compiler" >&6; }
10563 # Is the header present?
10564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10566 cat >conftest.$ac_ext <<_ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 #include <$ac_header>
10574 if { (ac_try="$ac_cpp conftest.$ac_ext"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10582 grep -v '^ *+' conftest.er1 >conftest.err
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } >/dev/null; then
10587 if test -s conftest.err; then
10588 ac_cpp_err=$ac_c_preproc_warn_flag
10589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10596 if test -z "$ac_cpp_err"; then
10597 ac_header_preproc=yes
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_header_preproc=no
10605 rm -f conftest.err conftest.$ac_ext
10606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607 echo "${ECHO_T}$ac_header_preproc" >&6; }
10609 # So? What about this header?
10610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10616 ac_header_preproc=yes
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10632 ## ----------------------------------- ##
10633 ## Report this to llvmbugs@cs.uiuc.edu ##
10634 ## ----------------------------------- ##
10636 ) | sed "s/^/$as_me: WARNING: /" >&2
10639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 eval "$as_ac_Header=\$ac_header_preproc"
10646 ac_res=`eval echo '${'$as_ac_Header'}'`
10647 { echo "$as_me:$LINENO: result: $ac_res" >&5
10648 echo "${ECHO_T}$ac_res" >&6; }
10651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10652 cat >>confdefs.h <<_ACEOF
10653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10661 { echo "$as_me:$LINENO: checking for error_t" >&5
10662 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10663 if test "${ac_cv_type_error_t+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 cat >conftest.$ac_ext <<_ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10676 typedef error_t ac__type_new_;
10680 if ((ac__type_new_ *) 0)
10682 if (sizeof (ac__type_new_))
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_compile") 2>conftest.er1
10697 grep -v '^ *+' conftest.er1 >conftest.err
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest.$ac_objext'
10713 { (case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_try") 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_cv_type_error_t=yes
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_cv_type_error_t=no
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10733 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10734 if test $ac_cv_type_error_t = yes; then
10736 cat >>confdefs.h <<_ACEOF
10737 #define HAVE_ERROR_T 1
10743 cat >>confdefs.h <<\_ACEOF
10744 #define error_t int
10755 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10771 #define $ac_func innocuous_$ac_func
10773 /* System header to define __stub macros and hopefully few prototypes,
10774 which can conflict with char $ac_func (); below.
10775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776 <limits.h> exists even on freestanding compilers. */
10779 # include <limits.h>
10781 # include <assert.h>
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10793 /* The GNU C library defines this for functions which it implements
10794 to always fail with ENOSYS. Some functions are actually named
10795 something starting with __ and the normal name is an alias. */
10796 #if defined __stub_$ac_func || defined __stub___$ac_func
10803 return $ac_func ();
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (ac_try="$ac_link"
10810 case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_link") 2>conftest.er1
10817 grep -v '^ *+' conftest.er1 >conftest.err
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
10822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10823 { (case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828 (eval "$ac_try") 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; } &&
10832 { ac_try='test -s conftest$ac_exeext'
10833 { (case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_try") 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 eval "$as_ac_var=yes"
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 eval "$as_ac_var=no"
10850 rm -f core conftest.err conftest.$ac_objext \
10851 conftest$ac_exeext conftest.$ac_ext
10853 ac_res=`eval echo '${'$as_ac_var'}'`
10854 { echo "$as_me:$LINENO: result: $ac_res" >&5
10855 echo "${ECHO_T}$ac_res" >&6; }
10856 if test `eval echo '${'$as_ac_var'}'` = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10891 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 ac_res=`eval echo '${'$as_ac_Header'}'`
10902 { echo "$as_me:$LINENO: result: $ac_res" >&5
10903 echo "${ECHO_T}$ac_res" >&6; }
10905 # Is the header compilable?
10906 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10908 cat >conftest.$ac_ext <<_ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 $ac_includes_default
10915 #include <$ac_header>
10917 rm -f conftest.$ac_objext
10918 if { (ac_try="$ac_compile"
10919 case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_compile") 2>conftest.er1
10926 grep -v '^ *+' conftest.er1 >conftest.err
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10932 { (case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_try") 2>&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; } &&
10941 { ac_try='test -s conftest.$ac_objext'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_header_compiler=yes
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_header_compiler=no
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10961 echo "${ECHO_T}$ac_header_compiler" >&6; }
10963 # Is the header present?
10964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10966 cat >conftest.$ac_ext <<_ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10972 #include <$ac_header>
10974 if { (ac_try="$ac_cpp conftest.$ac_ext"
10975 case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } >/dev/null; then
10987 if test -s conftest.err; then
10988 ac_cpp_err=$ac_c_preproc_warn_flag
10989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10996 if test -z "$ac_cpp_err"; then
10997 ac_header_preproc=yes
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_header_preproc=no
11005 rm -f conftest.err conftest.$ac_ext
11006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11007 echo "${ECHO_T}$ac_header_preproc" >&6; }
11009 # So? What about this header?
11010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11016 ac_header_preproc=yes
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11032 ## ----------------------------------- ##
11033 ## Report this to llvmbugs@cs.uiuc.edu ##
11034 ## ----------------------------------- ##
11036 ) | sed "s/^/$as_me: WARNING: /" >&2
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 eval "$as_ac_Header=\$ac_header_preproc"
11046 ac_res=`eval echo '${'$as_ac_Header'}'`
11047 { echo "$as_me:$LINENO: result: $ac_res" >&5
11048 echo "${ECHO_T}$ac_res" >&6; }
11051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11064 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 ac_res=`eval echo '${'$as_ac_Header'}'`
11074 { echo "$as_me:$LINENO: result: $ac_res" >&5
11075 echo "${ECHO_T}$ac_res" >&6; }
11077 # Is the header compilable?
11078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11080 cat >conftest.$ac_ext <<_ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 $ac_includes_default
11087 #include <$ac_header>
11089 rm -f conftest.$ac_objext
11090 if { (ac_try="$ac_compile"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_compile") 2>conftest.er1
11098 grep -v '^ *+' conftest.er1 >conftest.err
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest.$ac_objext'
11114 { (case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_try") 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 ac_header_compiler=yes
11125 echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 ac_header_compiler=no
11131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11133 echo "${ECHO_T}$ac_header_compiler" >&6; }
11135 # Is the header present?
11136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11144 #include <$ac_header>
11146 if { (ac_try="$ac_cpp conftest.$ac_ext"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11154 grep -v '^ *+' conftest.er1 >conftest.err
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } >/dev/null; then
11159 if test -s conftest.err; then
11160 ac_cpp_err=$ac_c_preproc_warn_flag
11161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11168 if test -z "$ac_cpp_err"; then
11169 ac_header_preproc=yes
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ac_header_preproc=no
11177 rm -f conftest.err conftest.$ac_ext
11178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11179 echo "${ECHO_T}$ac_header_preproc" >&6; }
11181 # So? What about this header?
11182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11188 ac_header_preproc=yes
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11204 ## ----------------------------------- ##
11205 ## Report this to llvmbugs@cs.uiuc.edu ##
11206 ## ----------------------------------- ##
11208 ) | sed "s/^/$as_me: WARNING: /" >&2
11211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 eval "$as_ac_Header=\$ac_header_preproc"
11218 ac_res=`eval echo '${'$as_ac_Header'}'`
11219 { echo "$as_me:$LINENO: result: $ac_res" >&5
11220 echo "${ECHO_T}$ac_res" >&6; }
11223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11224 cat >>confdefs.h <<_ACEOF
11225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11234 for ac_header in string.h strings.h
11236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 ac_res=`eval echo '${'$as_ac_Header'}'`
11244 { echo "$as_me:$LINENO: result: $ac_res" >&5
11245 echo "${ECHO_T}$ac_res" >&6; }
11247 # Is the header compilable?
11248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11250 cat >conftest.$ac_ext <<_ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 $ac_includes_default
11257 #include <$ac_header>
11259 rm -f conftest.$ac_objext
11260 if { (ac_try="$ac_compile"
11261 case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_compile") 2>conftest.er1
11268 grep -v '^ *+' conftest.er1 >conftest.err
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11274 { (case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_try") 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; } &&
11283 { ac_try='test -s conftest.$ac_objext'
11284 { (case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_try") 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
11293 ac_header_compiler=yes
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_header_compiler=no
11301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11303 echo "${ECHO_T}$ac_header_compiler" >&6; }
11305 # Is the header present?
11306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 #include <$ac_header>
11316 if { (ac_try="$ac_cpp conftest.$ac_ext"
11317 case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11324 grep -v '^ *+' conftest.er1 >conftest.err
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } >/dev/null; then
11329 if test -s conftest.err; then
11330 ac_cpp_err=$ac_c_preproc_warn_flag
11331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11338 if test -z "$ac_cpp_err"; then
11339 ac_header_preproc=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_preproc=no
11347 rm -f conftest.err conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11349 echo "${ECHO_T}$ac_header_preproc" >&6; }
11351 # So? What about this header?
11352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11358 ac_header_preproc=yes
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11374 ## ----------------------------------- ##
11375 ## Report this to llvmbugs@cs.uiuc.edu ##
11376 ## ----------------------------------- ##
11378 ) | sed "s/^/$as_me: WARNING: /" >&2
11381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 eval "$as_ac_Header=\$ac_header_preproc"
11388 ac_res=`eval echo '${'$as_ac_Header'}'`
11389 { echo "$as_me:$LINENO: result: $ac_res" >&5
11390 echo "${ECHO_T}$ac_res" >&6; }
11393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11405 for ac_func in strchr index
11407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 cat >conftest.$ac_ext <<_ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11421 #define $ac_func innocuous_$ac_func
11423 /* System header to define __stub macros and hopefully few prototypes,
11424 which can conflict with char $ac_func (); below.
11425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426 <limits.h> exists even on freestanding compilers. */
11429 # include <limits.h>
11431 # include <assert.h>
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined __stub_$ac_func || defined __stub___$ac_func
11453 return $ac_func ();
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (ac_try="$ac_link"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473 { (case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_try") 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try='test -s conftest$ac_exeext'
11483 { (case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_try") 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 eval "$as_ac_var=yes"
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 eval "$as_ac_var=no"
11500 rm -f core conftest.err conftest.$ac_objext \
11501 conftest$ac_exeext conftest.$ac_ext
11503 ac_res=`eval echo '${'$as_ac_var'}'`
11504 { echo "$as_me:$LINENO: result: $ac_res" >&5
11505 echo "${ECHO_T}$ac_res" >&6; }
11506 if test `eval echo '${'$as_ac_var'}'` = yes; then
11507 cat >>confdefs.h <<_ACEOF
11508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11516 for ac_func in strrchr rindex
11518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 cat >conftest.$ac_ext <<_ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11532 #define $ac_func innocuous_$ac_func
11534 /* System header to define __stub macros and hopefully few prototypes,
11535 which can conflict with char $ac_func (); below.
11536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537 <limits.h> exists even on freestanding compilers. */
11540 # include <limits.h>
11542 # include <assert.h>
11547 /* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11554 /* The GNU C library defines this for functions which it implements
11555 to always fail with ENOSYS. Some functions are actually named
11556 something starting with __ and the normal name is an alias. */
11557 #if defined __stub_$ac_func || defined __stub___$ac_func
11564 return $ac_func ();
11569 rm -f conftest.$ac_objext conftest$ac_exeext
11570 if { (ac_try="$ac_link"
11571 case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_link") 2>conftest.er1
11578 grep -v '^ *+' conftest.er1 >conftest.err
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11584 { (case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_try") 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest$ac_exeext'
11594 { (case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_try") 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 eval "$as_ac_var=yes"
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11608 eval "$as_ac_var=no"
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11614 ac_res=`eval echo '${'$as_ac_var'}'`
11615 { echo "$as_me:$LINENO: result: $ac_res" >&5
11616 echo "${ECHO_T}$ac_res" >&6; }
11617 if test `eval echo '${'$as_ac_var'}'` = yes; then
11618 cat >>confdefs.h <<_ACEOF
11619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11627 for ac_func in memcpy bcopy
11629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 cat >conftest.$ac_ext <<_ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11643 #define $ac_func innocuous_$ac_func
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func (); below.
11647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648 <limits.h> exists even on freestanding compilers. */
11651 # include <limits.h>
11653 # include <assert.h>
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11665 /* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
11668 #if defined __stub_$ac_func || defined __stub___$ac_func
11675 return $ac_func ();
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
11689 grep -v '^ *+' conftest.er1 >conftest.err
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest$ac_exeext'
11705 { (case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_try") 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 eval "$as_ac_var=yes"
11716 echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11719 eval "$as_ac_var=no"
11722 rm -f core conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11725 ac_res=`eval echo '${'$as_ac_var'}'`
11726 { echo "$as_me:$LINENO: result: $ac_res" >&5
11727 echo "${ECHO_T}$ac_res" >&6; }
11728 if test `eval echo '${'$as_ac_var'}'` = yes; then
11729 cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 for ac_func in memmove strcmp
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define $ac_func innocuous_$ac_func
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11762 # include <limits.h>
11764 # include <assert.h>
11769 /* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11776 /* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 return $ac_func ();
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11800 grep -v '^ *+' conftest.er1 >conftest.err
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest$ac_exeext'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 eval "$as_ac_var=yes"
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 eval "$as_ac_var=no"
11833 rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11836 ac_res=`eval echo '${'$as_ac_var'}'`
11837 { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11839 if test `eval echo '${'$as_ac_var'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11850 for ac_func in closedir opendir readdir
11852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 cat >conftest.$ac_ext <<_ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11866 #define $ac_func innocuous_$ac_func
11868 /* System header to define __stub macros and hopefully few prototypes,
11869 which can conflict with char $ac_func (); below.
11870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871 <limits.h> exists even on freestanding compilers. */
11874 # include <limits.h>
11876 # include <assert.h>
11881 /* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11888 /* The GNU C library defines this for functions which it implements
11889 to always fail with ENOSYS. Some functions are actually named
11890 something starting with __ and the normal name is an alias. */
11891 #if defined __stub_$ac_func || defined __stub___$ac_func
11898 return $ac_func ();
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904 if { (ac_try="$ac_link"
11905 case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_link") 2>conftest.er1
11912 grep -v '^ *+' conftest.er1 >conftest.err
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest$ac_exeext'
11928 { (case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_try") 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 eval "$as_ac_var=yes"
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 eval "$as_ac_var=no"
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11948 ac_res=`eval echo '${'$as_ac_var'}'`
11949 { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11951 if test `eval echo '${'$as_ac_var'}'` = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11960 # Check whether --enable-shared was given.
11961 if test "${enable_shared+set}" = set; then
11962 enableval=$enable_shared; p=${PACKAGE-default}
11964 yes) enable_shared=yes ;;
11965 no) enable_shared=no ;;
11968 # Look at the argument we got. We use all the common list separators.
11969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11970 for pkg in $enableval; do
11972 if test "X$pkg" = "X$p"; then
11984 # Check whether --enable-static was given.
11985 if test "${enable_static+set}" = set; then
11986 enableval=$enable_static; p=${PACKAGE-default}
11988 yes) enable_static=yes ;;
11989 no) enable_static=no ;;
11992 # Look at the argument we got. We use all the common list separators.
11993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11994 for pkg in $enableval; do
11996 if test "X$pkg" = "X$p"; then
12008 # Check whether --enable-fast-install was given.
12009 if test "${enable_fast_install+set}" = set; then
12010 enableval=$enable_fast_install; p=${PACKAGE-default}
12012 yes) enable_fast_install=yes ;;
12013 no) enable_fast_install=no ;;
12015 enable_fast_install=no
12016 # Look at the argument we got. We use all the common list separators.
12017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12018 for pkg in $enableval; do
12020 if test "X$pkg" = "X$p"; then
12021 enable_fast_install=yes
12028 enable_fast_install=yes
12032 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12033 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12034 if test "${lt_cv_path_SED+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 # Loop through the user's path and test for sed and gsed.
12038 # Then use that list of sed's as ones to test for truncation.
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12043 test -z "$as_dir" && as_dir=.
12044 for lt_ac_prog in sed gsed; do
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12047 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12054 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12055 # along with /bin/sed that truncates output.
12056 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12057 test ! -f $lt_ac_sed && continue
12058 cat /dev/null > conftest.in
12060 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12061 # Check for GNU sed and select it if it is found.
12062 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12063 lt_cv_path_SED=$lt_ac_sed
12067 cat conftest.in conftest.in >conftest.tmp
12068 mv conftest.tmp conftest.in
12069 cp conftest.in conftest.nl
12071 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12072 cmp -s conftest.out conftest.nl || break
12073 # 10000 chars as input seems more than enough
12074 test $lt_ac_count -gt 10 && break
12075 lt_ac_count=`expr $lt_ac_count + 1`
12076 if test $lt_ac_count -gt $lt_ac_max; then
12077 lt_ac_max=$lt_ac_count
12078 lt_cv_path_SED=$lt_ac_sed
12085 SED=$lt_cv_path_SED
12086 { echo "$as_me:$LINENO: result: $SED" >&5
12087 echo "${ECHO_T}$SED" >&6; }
12090 # Check whether --with-gnu-ld was given.
12091 if test "${with_gnu_ld+set}" = set; then
12092 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12098 if test "$GCC" = yes; then
12099 # Check if gcc -print-prog-name=ld gives a path.
12100 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12101 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12104 # gcc leaves a trailing carriage return which upsets mingw
12105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12110 # Accept absolute paths.
12112 re_direlt='/[^/][^/]*/\.\./'
12113 # Canonicalize the pathname of ld
12114 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12116 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12118 test -z "$LD" && LD="$ac_prog"
12121 # If it fails, then pretend we aren't using GCC.
12125 # If it is relative, then search for the first ld in PATH.
12126 with_gnu_ld=unknown
12129 elif test "$with_gnu_ld" = yes; then
12130 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12131 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12133 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12134 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12136 if test "${lt_cv_path_LD+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 if test -z "$LD"; then
12140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12141 for ac_dir in $PATH; do
12143 test -z "$ac_dir" && ac_dir=.
12144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12145 lt_cv_path_LD="$ac_dir/$ac_prog"
12146 # Check to see if the program is GNU ld. I'd rather use --version,
12147 # but apparently some variants of GNU ld only accept -v.
12148 # Break only if it was the GNU/non-GNU ld that we prefer.
12149 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12150 *GNU* | *'with BFD'*)
12151 test "$with_gnu_ld" != no && break
12154 test "$with_gnu_ld" != yes && break
12161 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12165 LD="$lt_cv_path_LD"
12166 if test -n "$LD"; then
12167 { echo "$as_me:$LINENO: result: $LD" >&5
12168 echo "${ECHO_T}$LD" >&6; }
12170 { echo "$as_me:$LINENO: result: no" >&5
12171 echo "${ECHO_T}no" >&6; }
12173 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12174 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12175 { (exit 1); exit 1; }; }
12176 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12177 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12178 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12182 case `$LD -v 2>&1 </dev/null` in
12183 *GNU* | *'with BFD'*)
12184 lt_cv_prog_gnu_ld=yes
12187 lt_cv_prog_gnu_ld=no
12191 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12192 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12193 with_gnu_ld=$lt_cv_prog_gnu_ld
12196 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12197 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12198 if test "${lt_cv_ld_reload_flag+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 lt_cv_ld_reload_flag='-r'
12203 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12204 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12205 reload_flag=$lt_cv_ld_reload_flag
12206 case $reload_flag in
12208 *) reload_flag=" $reload_flag" ;;
12210 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12213 if test "$GCC" = yes; then
12214 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12216 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12221 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12222 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12223 if test "${lt_cv_deplibs_check_method+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 lt_cv_file_magic_cmd='$MAGIC_CMD'
12227 lt_cv_file_magic_test_file=
12228 lt_cv_deplibs_check_method='unknown'
12229 # Need to set the preceding variable on all platforms that support
12230 # interlibrary dependencies.
12231 # 'none' -- dependencies not supported.
12232 # `unknown' -- same as none, but documents that we really don't know.
12233 # 'pass_all' -- all dependencies passed with no checks.
12234 # 'test_compile' -- check by making test program.
12235 # 'file_magic [[regex]]' -- check by looking for files in library path
12236 # which responds to the $file_magic_cmd with a given extended regex.
12237 # If you have `file' or equivalent on your system and you're not sure
12238 # whether `pass_all' will *always* work, you probably want this one.
12242 lt_cv_deplibs_check_method=pass_all
12246 lt_cv_deplibs_check_method=pass_all
12250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12251 lt_cv_file_magic_cmd='/usr/bin/file -L'
12252 lt_cv_file_magic_test_file=/shlib/libc.so
12256 # func_win32_libid is a shell function defined in ltmain.sh
12257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12258 lt_cv_file_magic_cmd='func_win32_libid'
12262 # Base MSYS/MinGW do not provide the 'file' command needed by
12263 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12264 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12265 lt_cv_file_magic_cmd='$OBJDUMP -f'
12268 darwin* | rhapsody*)
12269 lt_cv_deplibs_check_method=pass_all
12272 freebsd* | kfreebsd*-gnu | dragonfly*)
12273 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12276 # Not sure whether the presence of OpenBSD here was a mistake.
12277 # Let's accept both of them until this is cleared up.
12278 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12279 lt_cv_file_magic_cmd=/usr/bin/file
12280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12284 lt_cv_deplibs_check_method=pass_all
12289 lt_cv_deplibs_check_method=pass_all
12292 hpux10.20* | hpux11*)
12293 lt_cv_file_magic_cmd=/usr/bin/file
12296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12297 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12300 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]'
12301 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12304 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12305 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12311 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12315 irix5* | irix6* | nonstopux*)
12317 *-32|*"-32 ") libmagic=32-bit;;
12318 *-n32|*"-n32 ") libmagic=N32;;
12319 *-64|*"-64 ") libmagic=64-bit;;
12320 *) libmagic=never-match;;
12322 lt_cv_deplibs_check_method=pass_all
12325 # This must be Linux ELF.
12327 lt_cv_deplibs_check_method=pass_all
12331 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12340 lt_cv_file_magic_cmd=/usr/bin/file
12341 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12345 lt_cv_deplibs_check_method=unknown
12349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12356 osf3* | osf4* | osf5*)
12357 lt_cv_deplibs_check_method=pass_all
12361 lt_cv_deplibs_check_method=pass_all
12365 case $host_vendor in
12367 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]'
12368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12371 lt_cv_deplibs_check_method=pass_all
12374 lt_cv_file_magic_cmd='/bin/file'
12375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12378 lt_cv_file_magic_cmd='/bin/file'
12379 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12380 lt_cv_file_magic_test_file=/lib/libc.so
12383 lt_cv_deplibs_check_method=pass_all
12386 lt_cv_deplibs_check_method=pass_all
12391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12392 lt_cv_deplibs_check_method=pass_all
12397 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12398 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12399 file_magic_cmd=$lt_cv_file_magic_cmd
12400 deplibs_check_method=$lt_cv_deplibs_check_method
12401 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12405 # If no C compiler was specified, use CC.
12408 # If no C compiler flags were specified, use CFLAGS.
12409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12411 # Allow CC to be a program name with arguments.
12414 # Check whether --enable-libtool-lock was given.
12415 if test "${enable_libtool_lock+set}" = set; then
12416 enableval=$enable_libtool_lock;
12419 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12421 # Some flags need to be propagated to the compiler or linker for good
12425 # Find out which ABI we are using.
12426 echo 'int i;' > conftest.$ac_ext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; then
12432 case `/usr/bin/file conftest.$ac_objext` in
12434 HPUX_IA64_MODE="32"
12437 HPUX_IA64_MODE="64"
12444 # Find out which ABI we are using.
12445 echo '#line 12445 "configure"' > conftest.$ac_ext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; then
12451 if test "$lt_cv_prog_gnu_ld" = yes; then
12452 case `/usr/bin/file conftest.$ac_objext` in
12454 LD="${LD-ld} -melf32bsmip"
12457 LD="${LD-ld} -melf32bmipn32"
12460 LD="${LD-ld} -melf64bmip"
12464 case `/usr/bin/file conftest.$ac_objext` in
12480 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12481 # Find out which ABI we are using.
12482 echo 'int i;' > conftest.$ac_ext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; then
12488 case `/usr/bin/file conftest.o` in
12492 LD="${LD-ld} -m elf_i386"
12494 ppc64-*linux*|powerpc64-*linux*)
12495 LD="${LD-ld} -m elf32ppclinux"
12498 LD="${LD-ld} -m elf_s390"
12501 LD="${LD-ld} -m elf32_sparc"
12508 LD="${LD-ld} -m elf_x86_64"
12510 ppc*-*linux*|powerpc*-*linux*)
12511 LD="${LD-ld} -m elf64ppc"
12514 LD="${LD-ld} -m elf64_s390"
12517 LD="${LD-ld} -m elf64_sparc"
12527 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12528 SAVE_CFLAGS="$CFLAGS"
12529 CFLAGS="$CFLAGS -belf"
12530 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12531 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12532 if test "${lt_cv_cc_needs_belf+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 ac_cpp='$CPP $CPPFLAGS'
12537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12541 cat >conftest.$ac_ext <<_ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (ac_try="$ac_link"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_link") 2>conftest.er1
12565 grep -v '^ *+' conftest.er1 >conftest.err
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12571 { (case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_try") 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 lt_cv_cc_needs_belf=yes
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 lt_cv_cc_needs_belf=no
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12601 ac_cpp='$CPP $CPPFLAGS'
12602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12607 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12608 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12609 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12610 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12611 CFLAGS="$SAVE_CFLAGS"
12615 # Find out which ABI we are using.
12616 echo 'int i;' > conftest.$ac_ext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; then
12622 case `/usr/bin/file conftest.o` in
12624 case $lt_cv_prog_gnu_ld in
12625 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12626 *) LD="${LD-ld} -64" ;;
12637 need_locks="$enable_libtool_lock"
12642 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12643 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12644 (test "X$CXX" != "Xg++"))) ; then
12646 ac_cpp='$CXXCPP $CPPFLAGS'
12647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12650 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12651 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12652 if test -z "$CXXCPP"; then
12653 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 # Double quotes because CXXCPP needs to be expanded
12657 for CXXCPP in "$CXX -E" "/lib/cpp"
12659 ac_preproc_ok=false
12660 for ac_cxx_preproc_warn_flag in '' yes
12662 # Use a header file that comes with gcc, so configuring glibc
12663 # with a fresh cross-compiler works.
12664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12665 # <limits.h> exists even on freestanding compilers.
12666 # On the NeXT, cc -E runs the code through the compiler's parser,
12667 # not just through cpp. "Syntax error" is here to catch this case.
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12675 # include <limits.h>
12677 # include <assert.h>
12681 if { (ac_try="$ac_cpp conftest.$ac_ext"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1 >conftest.err
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } >/dev/null; then
12694 if test -s conftest.err; then
12695 ac_cpp_err=$ac_cxx_preproc_warn_flag
12696 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12703 if test -z "$ac_cpp_err"; then
12706 echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12709 # Broken: fails on valid input.
12713 rm -f conftest.err conftest.$ac_ext
12715 # OK, works on sane cases. Now check whether nonexistent headers
12716 # can be detected and how.
12717 cat >conftest.$ac_ext <<_ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <ac_nonexistent.h>
12725 if { (ac_try="$ac_cpp conftest.$ac_ext"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12733 grep -v '^ *+' conftest.er1 >conftest.err
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } >/dev/null; then
12738 if test -s conftest.err; then
12739 ac_cpp_err=$ac_cxx_preproc_warn_flag
12740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12747 if test -z "$ac_cpp_err"; then
12748 # Broken: success on invalid input.
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 # Passes both tests.
12759 rm -f conftest.err conftest.$ac_ext
12762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12763 rm -f conftest.err conftest.$ac_ext
12764 if $ac_preproc_ok; then
12769 ac_cv_prog_CXXCPP=$CXXCPP
12772 CXXCPP=$ac_cv_prog_CXXCPP
12774 ac_cv_prog_CXXCPP=$CXXCPP
12776 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12777 echo "${ECHO_T}$CXXCPP" >&6; }
12778 ac_preproc_ok=false
12779 for ac_cxx_preproc_warn_flag in '' yes
12781 # Use a header file that comes with gcc, so configuring glibc
12782 # with a fresh cross-compiler works.
12783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12784 # <limits.h> exists even on freestanding compilers.
12785 # On the NeXT, cc -E runs the code through the compiler's parser,
12786 # not just through cpp. "Syntax error" is here to catch this case.
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12794 # include <limits.h>
12796 # include <assert.h>
12800 if { (ac_try="$ac_cpp conftest.$ac_ext"
12801 case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12808 grep -v '^ *+' conftest.er1 >conftest.err
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } >/dev/null; then
12813 if test -s conftest.err; then
12814 ac_cpp_err=$ac_cxx_preproc_warn_flag
12815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12822 if test -z "$ac_cpp_err"; then
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 # Broken: fails on valid input.
12832 rm -f conftest.err conftest.$ac_ext
12834 # OK, works on sane cases. Now check whether nonexistent headers
12835 # can be detected and how.
12836 cat >conftest.$ac_ext <<_ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 #include <ac_nonexistent.h>
12844 if { (ac_try="$ac_cpp conftest.$ac_ext"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12852 grep -v '^ *+' conftest.er1 >conftest.err
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } >/dev/null; then
12857 if test -s conftest.err; then
12858 ac_cpp_err=$ac_cxx_preproc_warn_flag
12859 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12866 if test -z "$ac_cpp_err"; then
12867 # Broken: success on invalid input.
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 # Passes both tests.
12878 rm -f conftest.err conftest.$ac_ext
12881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12882 rm -f conftest.err conftest.$ac_ext
12883 if $ac_preproc_ok; then
12886 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12887 See \`config.log' for more details." >&5
12888 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12889 See \`config.log' for more details." >&2;}
12890 { (exit 1); exit 1; }; }
12894 ac_cpp='$CXXCPP $CPPFLAGS'
12895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12903 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12904 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12905 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12906 if test -n "$ac_tool_prefix"; then
12907 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
12909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12913 if test "${ac_cv_prog_F77+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 if test -n "$F77"; then
12917 ac_cv_prog_F77="$F77" # Let the user override the test.
12919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920 for as_dir in $PATH
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12926 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12936 F77=$ac_cv_prog_F77
12937 if test -n "$F77"; then
12938 { echo "$as_me:$LINENO: result: $F77" >&5
12939 echo "${ECHO_T}$F77" >&6; }
12941 { echo "$as_me:$LINENO: result: no" >&5
12942 echo "${ECHO_T}no" >&6; }
12946 test -n "$F77" && break
12949 if test -z "$F77"; then
12951 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
12953 # Extract the first word of "$ac_prog", so it can be a program name with args.
12954 set dummy $ac_prog; ac_word=$2
12955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12957 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 if test -n "$ac_ct_F77"; then
12961 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964 for as_dir in $PATH
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
12969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12970 ac_cv_prog_ac_ct_F77="$ac_prog"
12971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12980 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12981 if test -n "$ac_ct_F77"; then
12982 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12983 echo "${ECHO_T}$ac_ct_F77" >&6; }
12985 { echo "$as_me:$LINENO: result: no" >&5
12986 echo "${ECHO_T}no" >&6; }
12990 test -n "$ac_ct_F77" && break
12993 if test "x$ac_ct_F77" = x; then
12996 case $cross_compiling:$ac_tool_warned in
12998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12999 whose name does not start with the host triplet. If you think this
13000 configuration is useful to you, please write to autoconf@gnu.org." >&5
13001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13002 whose name does not start with the host triplet. If you think this
13003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13004 ac_tool_warned=yes ;;
13011 # Provide some information about the compiler.
13012 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13013 ac_compiler=`set X $ac_compile; echo $2`
13014 { (ac_try="$ac_compiler --version >&5"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_compiler --version >&5") 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }
13024 { (ac_try="$ac_compiler -v >&5"
13025 case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_compiler -v >&5") 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }
13034 { (ac_try="$ac_compiler -V >&5"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_compiler -V >&5") 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }
13046 # If we don't use `.F' as extension, the preprocessor is not run on the
13047 # input file. (Note that this only needs to work for GNU compilers.)
13048 ac_save_ext=$ac_ext
13050 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13051 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13052 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 cat >conftest.$ac_ext <<_ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (ac_try="$ac_compile"
13065 case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_compile") 2>conftest.er1
13072 grep -v '^ *+' conftest.er1 >conftest.err
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13078 { (case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_try") 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest.$ac_objext'
13088 { (case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_try") 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 ac_compiler_gnu=yes
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13109 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13110 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13111 ac_ext=$ac_save_ext
13112 ac_test_FFLAGS=${FFLAGS+set}
13113 ac_save_FFLAGS=$FFLAGS
13115 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13116 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13117 if test "${ac_cv_prog_f77_g+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 cat >conftest.$ac_ext <<_ACEOF
13126 rm -f conftest.$ac_objext
13127 if { (ac_try="$ac_compile"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_compile") 2>conftest.er1
13135 grep -v '^ *+' conftest.er1 >conftest.err
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13141 { (case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_try") 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest.$ac_objext'
13151 { (case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_try") 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_cv_prog_f77_g=yes
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_cv_prog_f77_g=no
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13171 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13172 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13173 if test "$ac_test_FFLAGS" = set; then
13174 FFLAGS=$ac_save_FFLAGS
13175 elif test $ac_cv_prog_f77_g = yes; then
13176 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13182 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13189 G77=`test $ac_compiler_gnu = yes && echo yes`
13191 ac_cpp='$CPP $CPPFLAGS'
13192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13198 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13200 # find the maximum length of command line arguments
13201 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13202 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13203 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 # On DJGPP, this test can blow up pretty badly due to problems in libc
13212 # (any single argument exceeding 2000 bytes causes a buffer overrun
13213 # during glob expansion). Even if it were fixed, the result of this
13214 # check would be larger than it should be.
13215 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13219 # Under GNU Hurd, this test is not required because there is
13220 # no limit to the length of command line arguments.
13221 # Libtool will interpret -1 as no limit whatsoever
13222 lt_cv_sys_max_cmd_len=-1;
13226 # On Win9x/ME, this test blows up -- it succeeds, but takes
13227 # about 5 minutes as the teststring grows exponentially.
13228 # Worse, since 9x/ME are not pre-emptively multitasking,
13229 # you end up with a "frozen" computer, even though with patience
13230 # the test eventually succeeds (with a max line length of 256k).
13231 # Instead, let's just punt: use the minimum linelength reported by
13232 # all of the supported platforms: 8192 (on NT/2K/XP).
13233 lt_cv_sys_max_cmd_len=8192;
13237 # On AmigaOS with pdksh, this test takes hours, literally.
13238 # So we just punt and use a minimum line length of 8192.
13239 lt_cv_sys_max_cmd_len=8192;
13242 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13243 # This has been around since 386BSD, at least. Likely further.
13244 if test -x /sbin/sysctl; then
13245 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13246 elif test -x /usr/sbin/sysctl; then
13247 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13249 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13251 # And add a safety zone
13252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13257 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13258 lt_cv_sys_max_cmd_len=196608
13262 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13263 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13264 # nice to cause kernel panics so lets avoid the loop below.
13265 # First set a reasonable default.
13266 lt_cv_sys_max_cmd_len=16384
13268 if test -x /sbin/sysconfig; then
13269 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13270 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13275 lt_cv_sys_max_cmd_len=102400
13277 sysv5* | sco5v6* | sysv4.2uw2*)
13278 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13279 if test -n "$kargmax"; then
13280 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13282 lt_cv_sys_max_cmd_len=32768
13286 # If test is not a shell built-in, we'll probably end up computing a
13287 # maximum length that is only half of the actual maximum length, but
13289 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13290 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13291 = "XX$teststring") >/dev/null 2>&1 &&
13292 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13293 lt_cv_sys_max_cmd_len=$new_result &&
13294 test $i != 17 # 1/2 MB should be enough
13297 teststring=$teststring$teststring
13300 # Add a significant safety factor because C++ compilers can tack on massive
13301 # amounts of additional arguments before passing them to the linker.
13302 # It appears as though 1/2 is a usable value.
13303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13309 if test -n $lt_cv_sys_max_cmd_len ; then
13310 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13311 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13313 { echo "$as_me:$LINENO: result: none" >&5
13314 echo "${ECHO_T}none" >&6; }
13320 # Check for command to grab the raw symbol name followed by C symbol from nm.
13321 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13322 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13323 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 # These are sane defaults that work on at least a few old systems.
13328 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13330 # Character class describing NM global symbol codes.
13331 symcode='[BCDEGRST]'
13333 # Regexp to match symbols that can be accessed directly from C.
13334 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13336 # Transform an extracted symbol line into a proper C declaration
13337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13339 # Transform an extracted symbol line into symbol name and symbol address
13340 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'"
13342 # Define system-specific variables.
13347 cygwin* | mingw* | pw32*)
13348 symcode='[ABCDGISTW]'
13350 hpux*) # Its linker distinguishes data from code symbols
13351 if test "$host_cpu" = ia64; then
13352 symcode='[ABCDEGRST]'
13354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13355 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'"
13358 if test "$host_cpu" = ia64; then
13359 symcode='[ABCDGIRSTW]'
13360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13361 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'"
13364 irix* | nonstopux*)
13365 symcode='[BCDEGRST]'
13368 symcode='[BCDEGQRST]'
13379 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13387 # Handle CRLF in mingw tool chain
13391 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13395 # If we're using GNU nm, then use its standard symbol codes.
13396 case `$NM -V 2>&1` in
13397 *GNU* | *'with BFD'*)
13398 symcode='[ABCDGIRSTW]' ;;
13401 # Try without a prefix undercore, then with it.
13402 for ac_symprfx in "" "_"; do
13404 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13405 symxfrm="\\1 $ac_symprfx\\2 \\2"
13407 # Write the raw and C identifiers.
13408 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13410 # Check to see that the pipe works correctly.
13414 cat > conftest.$ac_ext <<EOF
13419 void nm_test_func(){}
13423 int main(){nm_test_var='a';nm_test_func();return(0);}
13426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13427 (eval $ac_compile) 2>&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; then
13431 # Now try to grab the symbols.
13433 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13434 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && test -s "$nlist"; then
13438 # Try sorting and uniquifying the output.
13439 if sort "$nlist" | uniq > "$nlist"T; then
13440 mv -f "$nlist"T "$nlist"
13445 # Make sure that we snagged all the symbols we need.
13446 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13447 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13448 cat <<EOF > conftest.$ac_ext
13454 # Now generate the symbol file.
13455 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13457 cat <<EOF >> conftest.$ac_ext
13458 #if defined (__STDC__) && __STDC__
13459 # define lt_ptr_t void *
13461 # define lt_ptr_t char *
13465 /* The mapping between symbol names and symbols. */
13470 lt_preloaded_symbols[] =
13473 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13474 cat <<\EOF >> conftest.$ac_ext
13482 # Now try linking the two files.
13483 mv conftest.$ac_objext conftstm.$ac_objext
13484 lt_save_LIBS="$LIBS"
13485 lt_save_CFLAGS="$CFLAGS"
13486 LIBS="conftstm.$ac_objext"
13487 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13495 LIBS="$lt_save_LIBS"
13496 CFLAGS="$lt_save_CFLAGS"
13498 echo "cannot find nm_test_func in $nlist" >&5
13501 echo "cannot find nm_test_var in $nlist" >&5
13504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13507 echo "$progname: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13510 rm -f conftest* conftst*
13512 # Do not use the global_symbol_pipe unless it works.
13513 if test "$pipe_works" = yes; then
13516 lt_cv_sys_global_symbol_pipe=
13522 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13523 lt_cv_sys_global_symbol_to_cdecl=
13525 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13526 { echo "$as_me:$LINENO: result: failed" >&5
13527 echo "${ECHO_T}failed" >&6; }
13529 { echo "$as_me:$LINENO: result: ok" >&5
13530 echo "${ECHO_T}ok" >&6; }
13533 { echo "$as_me:$LINENO: checking for objdir" >&5
13534 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13535 if test "${lt_cv_objdir+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 rm -f .libs 2>/dev/null
13539 mkdir .libs 2>/dev/null
13540 if test -d .libs; then
13543 # MS-DOS does not allow filenames that begin with a dot.
13546 rmdir .libs 2>/dev/null
13548 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13549 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13550 objdir=$lt_cv_objdir
13558 # AIX sometimes has problems with the GCC collect2 program. For some
13559 # reason, if we set the COLLECT_NAMES environment variable, the problems
13560 # vanish in a puff of smoke.
13561 if test "X${COLLECT_NAMES+set}" != Xset; then
13563 export COLLECT_NAMES
13568 # Sed substitution that helps us do robust quoting. It backslashifies
13569 # metacharacters that are still active within double-quoted strings.
13570 Xsed='sed -e 1s/^X//'
13571 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13573 # Same as above, but do not quote variable references.
13574 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13576 # Sed substitution to delay expansion of an escaped shell variable in a
13577 # double_quote_subst'ed string.
13578 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13580 # Sed substitution to avoid accidental globbing in evaled expressions
13581 no_glob_subst='s/\*/\\\*/g'
13586 # Global variables:
13587 default_ofile=mklib
13588 can_build_shared=yes
13590 # All known linkers require a `.a' archive for static linking (except MSVC,
13591 # which needs '.lib').
13593 ltmain="$ac_aux_dir/ltmain.sh"
13594 ofile="$default_ofile"
13595 with_gnu_ld="$lt_cv_prog_gnu_ld"
13597 if test -n "$ac_tool_prefix"; then
13598 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13599 set dummy ${ac_tool_prefix}ar; ac_word=$2
13600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13602 if test "${ac_cv_prog_AR+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 if test -n "$AR"; then
13606 ac_cv_prog_AR="$AR" # Let the user override the test.
13608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609 for as_dir in $PATH
13612 test -z "$as_dir" && as_dir=.
13613 for ac_exec_ext in '' $ac_executable_extensions; do
13614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13615 ac_cv_prog_AR="${ac_tool_prefix}ar"
13616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 if test -n "$AR"; then
13627 { echo "$as_me:$LINENO: result: $AR" >&5
13628 echo "${ECHO_T}$AR" >&6; }
13630 { echo "$as_me:$LINENO: result: no" >&5
13631 echo "${ECHO_T}no" >&6; }
13636 if test -z "$ac_cv_prog_AR"; then
13638 # Extract the first word of "ar", so it can be a program name with args.
13639 set dummy ar; ac_word=$2
13640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13642 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 if test -n "$ac_ct_AR"; then
13646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13655 ac_cv_prog_ac_ct_AR="ar"
13656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13665 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13666 if test -n "$ac_ct_AR"; then
13667 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13668 echo "${ECHO_T}$ac_ct_AR" >&6; }
13670 { echo "$as_me:$LINENO: result: no" >&5
13671 echo "${ECHO_T}no" >&6; }
13674 if test "x$ac_ct_AR" = x; then
13677 case $cross_compiling:$ac_tool_warned in
13679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13680 whose name does not start with the host triplet. If you think this
13681 configuration is useful to you, please write to autoconf@gnu.org." >&5
13682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13683 whose name does not start with the host triplet. If you think this
13684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13685 ac_tool_warned=yes ;;
13690 AR="$ac_cv_prog_AR"
13693 if test -n "$ac_tool_prefix"; then
13694 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13695 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13698 if test "${ac_cv_prog_RANLIB+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 if test -n "$RANLIB"; then
13702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13708 test -z "$as_dir" && as_dir=.
13709 for ac_exec_ext in '' $ac_executable_extensions; do
13710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13711 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13721 RANLIB=$ac_cv_prog_RANLIB
13722 if test -n "$RANLIB"; then
13723 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13724 echo "${ECHO_T}$RANLIB" >&6; }
13726 { echo "$as_me:$LINENO: result: no" >&5
13727 echo "${ECHO_T}no" >&6; }
13732 if test -z "$ac_cv_prog_RANLIB"; then
13733 ac_ct_RANLIB=$RANLIB
13734 # Extract the first word of "ranlib", so it can be a program name with args.
13735 set dummy ranlib; ac_word=$2
13736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13738 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 if test -n "$ac_ct_RANLIB"; then
13742 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13751 ac_cv_prog_ac_ct_RANLIB="ranlib"
13752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13761 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13762 if test -n "$ac_ct_RANLIB"; then
13763 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13764 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13766 { echo "$as_me:$LINENO: result: no" >&5
13767 echo "${ECHO_T}no" >&6; }
13770 if test "x$ac_ct_RANLIB" = x; then
13773 case $cross_compiling:$ac_tool_warned in
13775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13776 whose name does not start with the host triplet. If you think this
13777 configuration is useful to you, please write to autoconf@gnu.org." >&5
13778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13779 whose name does not start with the host triplet. If you think this
13780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13781 ac_tool_warned=yes ;;
13783 RANLIB=$ac_ct_RANLIB
13786 RANLIB="$ac_cv_prog_RANLIB"
13789 if test -n "$ac_tool_prefix"; then
13790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13791 set dummy ${ac_tool_prefix}strip; ac_word=$2
13792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13794 if test "${ac_cv_prog_STRIP+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 if test -n "$STRIP"; then
13798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13804 test -z "$as_dir" && as_dir=.
13805 for ac_exec_ext in '' $ac_executable_extensions; do
13806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13817 STRIP=$ac_cv_prog_STRIP
13818 if test -n "$STRIP"; then
13819 { echo "$as_me:$LINENO: result: $STRIP" >&5
13820 echo "${ECHO_T}$STRIP" >&6; }
13822 { echo "$as_me:$LINENO: result: no" >&5
13823 echo "${ECHO_T}no" >&6; }
13828 if test -z "$ac_cv_prog_STRIP"; then
13830 # Extract the first word of "strip", so it can be a program name with args.
13831 set dummy strip; ac_word=$2
13832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13834 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 if test -n "$ac_ct_STRIP"; then
13838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13844 test -z "$as_dir" && as_dir=.
13845 for ac_exec_ext in '' $ac_executable_extensions; do
13846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13847 ac_cv_prog_ac_ct_STRIP="strip"
13848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13858 if test -n "$ac_ct_STRIP"; then
13859 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13860 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13862 { echo "$as_me:$LINENO: result: no" >&5
13863 echo "${ECHO_T}no" >&6; }
13866 if test "x$ac_ct_STRIP" = x; then
13869 case $cross_compiling:$ac_tool_warned in
13871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13872 whose name does not start with the host triplet. If you think this
13873 configuration is useful to you, please write to autoconf@gnu.org." >&5
13874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13875 whose name does not start with the host triplet. If you think this
13876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13877 ac_tool_warned=yes ;;
13882 STRIP="$ac_cv_prog_STRIP"
13887 old_CFLAGS="$CFLAGS"
13889 # Set sane defaults for various variables
13890 test -z "$AR" && AR=ar
13891 test -z "$AR_FLAGS" && AR_FLAGS=cru
13892 test -z "$AS" && AS=as
13893 test -z "$CC" && CC=cc
13894 test -z "$LTCC" && LTCC=$CC
13895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13896 test -z "$DLLTOOL" && DLLTOOL=dlltool
13897 test -z "$LD" && LD=ld
13898 test -z "$LN_S" && LN_S="ln -s"
13899 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13900 test -z "$NM" && NM=nm
13901 test -z "$SED" && SED=sed
13902 test -z "$OBJDUMP" && OBJDUMP=objdump
13903 test -z "$RANLIB" && RANLIB=:
13904 test -z "$STRIP" && STRIP=:
13905 test -z "$ac_objext" && ac_objext=o
13907 # Determine commands to create old-style static archives.
13908 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13909 old_postinstall_cmds='chmod 644 $oldlib'
13910 old_postuninstall_cmds=
13912 if test -n "$RANLIB"; then
13915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13921 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13924 for cc_temp in $compiler""; do
13926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13932 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13935 # Only perform the check for file, if the check method requires it
13936 case $deplibs_check_method in
13938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13939 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13940 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13949 lt_save_MAGIC_CMD="$MAGIC_CMD"
13950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13951 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13952 for ac_dir in $ac_dummy; do
13954 test -z "$ac_dir" && ac_dir=.
13955 if test -f $ac_dir/${ac_tool_prefix}file; then
13956 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13957 if test -n "$file_magic_test_file"; then
13958 case $deplibs_check_method in
13960 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13963 $EGREP "$file_magic_regex" > /dev/null; then
13968 *** Warning: the command libtool uses to detect shared libraries,
13969 *** $file_magic_cmd, produces output that libtool cannot recognize.
13970 *** The result is that libtool may fail to recognize shared libraries
13971 *** as such. This will affect the creation of libtool libraries that
13972 *** depend on shared libraries, but programs linked with such libtool
13973 *** libraries will work regardless of this problem. Nevertheless, you
13974 *** may want to report the problem to your system manager and/or to
13975 *** bug-libtool@gnu.org
13985 MAGIC_CMD="$lt_save_MAGIC_CMD"
13990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13991 if test -n "$MAGIC_CMD"; then
13992 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13993 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13995 { echo "$as_me:$LINENO: result: no" >&5
13996 echo "${ECHO_T}no" >&6; }
13999 if test -z "$lt_cv_path_MAGIC_CMD"; then
14000 if test -n "$ac_tool_prefix"; then
14001 { echo "$as_me:$LINENO: checking for file" >&5
14002 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14003 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14011 lt_save_MAGIC_CMD="$MAGIC_CMD"
14012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14013 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14014 for ac_dir in $ac_dummy; do
14016 test -z "$ac_dir" && ac_dir=.
14017 if test -f $ac_dir/file; then
14018 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14019 if test -n "$file_magic_test_file"; then
14020 case $deplibs_check_method in
14022 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14024 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14025 $EGREP "$file_magic_regex" > /dev/null; then
14030 *** Warning: the command libtool uses to detect shared libraries,
14031 *** $file_magic_cmd, produces output that libtool cannot recognize.
14032 *** The result is that libtool may fail to recognize shared libraries
14033 *** as such. This will affect the creation of libtool libraries that
14034 *** depend on shared libraries, but programs linked with such libtool
14035 *** libraries will work regardless of this problem. Nevertheless, you
14036 *** may want to report the problem to your system manager and/or to
14037 *** bug-libtool@gnu.org
14047 MAGIC_CMD="$lt_save_MAGIC_CMD"
14052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14053 if test -n "$MAGIC_CMD"; then
14054 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14055 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14057 { echo "$as_me:$LINENO: result: no" >&5
14058 echo "${ECHO_T}no" >&6; }
14071 enable_win32_dll=no
14073 # Check whether --enable-libtool-lock was given.
14074 if test "${enable_libtool_lock+set}" = set; then
14075 enableval=$enable_libtool_lock;
14078 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14081 # Check whether --with-pic was given.
14082 if test "${with_pic+set}" = set; then
14083 withval=$with_pic; pic_mode="$withval"
14088 test -z "$pic_mode" && pic_mode=default
14090 # Use C for the default configuration in the libtool script
14094 ac_cpp='$CPP $CPPFLAGS'
14095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100 # Source file extension for C test sources.
14103 # Object file extension for compiled C test sources.
14107 # Code to be used in simple compile tests
14108 lt_simple_compile_test_code="int some_variable = 0;\n"
14110 # Code to be used in simple link tests
14111 lt_simple_link_test_code='int main(){return(0);}\n'
14114 # If no C compiler was specified, use CC.
14117 # If no C compiler flags were specified, use CFLAGS.
14118 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14120 # Allow CC to be a program name with arguments.
14124 # save warnings/boilerplate of simple test code
14125 ac_outfile=conftest.$ac_objext
14126 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14127 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14128 _lt_compiler_boilerplate=`cat conftest.err`
14131 ac_outfile=conftest.$ac_objext
14132 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14133 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14134 _lt_linker_boilerplate=`cat conftest.err`
14139 lt_prog_compiler_no_builtin_flag=
14141 if test "$GCC" = yes; then
14142 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14145 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14146 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14147 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14150 lt_cv_prog_compiler_rtti_exceptions=no
14151 ac_outfile=conftest.$ac_objext
14152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14153 lt_compiler_flag="-fno-rtti -fno-exceptions"
14154 # Insert the option either (1) after the last *FLAGS variable, or
14155 # (2) before a word containing "conftest.", or (3) at the end.
14156 # Note that $ac_compile itself does not contain backslashes and begins
14157 # with a dollar sign (not a hyphen), so the echo should work correctly.
14158 # The option is referenced via a variable to avoid confusing sed.
14159 lt_compile=`echo "$ac_compile" | $SED \
14160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14162 -e 's:$: $lt_compiler_flag:'`
14163 (eval echo "\"\$as_me:14163: $lt_compile\"" >&5)
14164 (eval "$lt_compile" 2>conftest.err)
14166 cat conftest.err >&5
14167 echo "$as_me:14167: \$? = $ac_status" >&5
14168 if (exit $ac_status) && test -s "$ac_outfile"; then
14169 # The compiler can only warn and ignore the option if not recognized
14170 # So say no if there are warnings other than the usual output.
14171 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14174 lt_cv_prog_compiler_rtti_exceptions=yes
14180 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14181 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14183 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14184 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14191 lt_prog_compiler_wl=
14192 lt_prog_compiler_pic=
14193 lt_prog_compiler_static=
14195 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14196 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14198 if test "$GCC" = yes; then
14199 lt_prog_compiler_wl='-Wl,'
14200 lt_prog_compiler_static='-static'
14204 # All AIX code is PIC.
14205 if test "$host_cpu" = ia64; then
14206 # AIX 5 now supports IA64 processor
14207 lt_prog_compiler_static='-Bstatic'
14212 # FIXME: we need at least 68020 code to build shared libraries, but
14213 # adding the `-m68020' flag to GCC prevents building anything better,
14215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14218 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14219 # PIC is the default for these OSes.
14222 mingw* | pw32* | os2*)
14223 # This hack is so that the source file can tell whether it is being
14224 # built for inclusion in a dll (and should export symbols for example).
14225 lt_prog_compiler_pic='-DDLL_EXPORT'
14228 darwin* | rhapsody*)
14229 # PIC is the default on this platform
14230 # Common symbols not allowed in MH_DYLIB files
14231 lt_prog_compiler_pic='-fno-common'
14235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14236 # Instead, we relocate shared libraries at runtime.
14240 # Just because we use GCC doesn't mean we suddenly get shared libraries
14241 # on systems that don't support them.
14242 lt_prog_compiler_can_build_shared=no
14247 if test -d /usr/nec; then
14248 lt_prog_compiler_pic=-Kconform_pic
14253 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14254 # not for PA HP-UX.
14260 lt_prog_compiler_pic='-fPIC'
14266 lt_prog_compiler_pic='-fPIC'
14270 # PORTME Check for flag to pass linker flags through the system compiler.
14273 lt_prog_compiler_wl='-Wl,'
14274 if test "$host_cpu" = ia64; then
14275 # AIX 5 now supports IA64 processor
14276 lt_prog_compiler_static='-Bstatic'
14278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14282 # PIC is the default on this platform
14283 # Common symbols not allowed in MH_DYLIB files
14284 case $cc_basename in
14286 lt_prog_compiler_pic='-qnocommon'
14287 lt_prog_compiler_wl='-Wl,'
14292 mingw* | pw32* | os2*)
14293 # This hack is so that the source file can tell whether it is being
14294 # built for inclusion in a dll (and should export symbols for example).
14295 lt_prog_compiler_pic='-DDLL_EXPORT'
14298 hpux9* | hpux10* | hpux11*)
14299 lt_prog_compiler_wl='-Wl,'
14300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14301 # not for PA HP-UX.
14307 lt_prog_compiler_pic='+Z'
14310 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14311 lt_prog_compiler_static='${wl}-a ${wl}archive'
14314 irix5* | irix6* | nonstopux*)
14315 lt_prog_compiler_wl='-Wl,'
14316 # PIC (with -KPIC) is the default.
14317 lt_prog_compiler_static='-non_shared'
14321 lt_prog_compiler_pic='-KPIC'
14322 lt_prog_compiler_static='-Bstatic'
14326 case $cc_basename in
14328 lt_prog_compiler_wl='-Wl,'
14329 lt_prog_compiler_pic='-KPIC'
14330 lt_prog_compiler_static='-static'
14332 pgcc* | pgf77* | pgf90* | pgf95*)
14333 # Portland Group compilers (*not* the Pentium gcc compiler,
14334 # which looks to be a dead project)
14335 lt_prog_compiler_wl='-Wl,'
14336 lt_prog_compiler_pic='-fpic'
14337 lt_prog_compiler_static='-Bstatic'
14340 lt_prog_compiler_wl='-Wl,'
14341 # All Alpha code is PIC.
14342 lt_prog_compiler_static='-non_shared'
14347 osf3* | osf4* | osf5*)
14348 lt_prog_compiler_wl='-Wl,'
14349 # All OSF/1 code is PIC.
14350 lt_prog_compiler_static='-non_shared'
14354 lt_prog_compiler_pic='-KPIC'
14355 lt_prog_compiler_static='-Bstatic'
14356 case $cc_basename in
14357 f77* | f90* | f95*)
14358 lt_prog_compiler_wl='-Qoption ld ';;
14360 lt_prog_compiler_wl='-Wl,';;
14365 lt_prog_compiler_wl='-Qoption ld '
14366 lt_prog_compiler_pic='-PIC'
14367 lt_prog_compiler_static='-Bstatic'
14370 sysv4 | sysv4.2uw2* | sysv4.3*)
14371 lt_prog_compiler_wl='-Wl,'
14372 lt_prog_compiler_pic='-KPIC'
14373 lt_prog_compiler_static='-Bstatic'
14377 if test -d /usr/nec ;then
14378 lt_prog_compiler_pic='-Kconform_pic'
14379 lt_prog_compiler_static='-Bstatic'
14383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14384 lt_prog_compiler_wl='-Wl,'
14385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-Bstatic'
14390 lt_prog_compiler_wl='-Wl,'
14391 lt_prog_compiler_can_build_shared=no
14395 lt_prog_compiler_pic='-pic'
14396 lt_prog_compiler_static='-Bstatic'
14400 lt_prog_compiler_can_build_shared=no
14405 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14406 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14409 # Check to make sure the PIC flag actually works.
14411 if test -n "$lt_prog_compiler_pic"; then
14413 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14414 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14415 if test "${lt_prog_compiler_pic_works+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 lt_prog_compiler_pic_works=no
14419 ac_outfile=conftest.$ac_objext
14420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14421 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14422 # Insert the option either (1) after the last *FLAGS variable, or
14423 # (2) before a word containing "conftest.", or (3) at the end.
14424 # Note that $ac_compile itself does not contain backslashes and begins
14425 # with a dollar sign (not a hyphen), so the echo should work correctly.
14426 # The option is referenced via a variable to avoid confusing sed.
14427 lt_compile=`echo "$ac_compile" | $SED \
14428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14430 -e 's:$: $lt_compiler_flag:'`
14431 (eval echo "\"\$as_me:14431: $lt_compile\"" >&5)
14432 (eval "$lt_compile" 2>conftest.err)
14434 cat conftest.err >&5
14435 echo "$as_me:14435: \$? = $ac_status" >&5
14436 if (exit $ac_status) && test -s "$ac_outfile"; then
14437 # The compiler can only warn and ignore the option if not recognized
14438 # So say no if there are warnings other than the usual output.
14439 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14442 lt_prog_compiler_pic_works=yes
14448 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14449 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14451 if test x"$lt_prog_compiler_pic_works" = xyes; then
14452 case $lt_prog_compiler_pic in
14454 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14457 lt_prog_compiler_pic=
14458 lt_prog_compiler_can_build_shared=no
14463 # For platforms which do not support PIC, -DPIC is meaningless:
14465 lt_prog_compiler_pic=
14468 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14473 # Check to make sure the static flag actually works.
14475 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14476 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14477 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14478 if test "${lt_prog_compiler_static_works+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 lt_prog_compiler_static_works=no
14482 save_LDFLAGS="$LDFLAGS"
14483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14484 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14486 # The linker can only warn and ignore the option if not recognized
14487 # So say no if there are warnings
14488 if test -s conftest.err; then
14489 # Append any errors to the config.log.
14490 cat conftest.err 1>&5
14491 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14493 if diff conftest.exp conftest.er2 >/dev/null; then
14494 lt_prog_compiler_static_works=yes
14497 lt_prog_compiler_static_works=yes
14501 LDFLAGS="$save_LDFLAGS"
14504 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14505 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14507 if test x"$lt_prog_compiler_static_works" = xyes; then
14510 lt_prog_compiler_static=
14514 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14515 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 lt_cv_prog_compiler_c_o=no
14520 $rm -r conftest 2>/dev/null
14524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14526 lt_compiler_flag="-o out/conftest2.$ac_objext"
14527 # Insert the option either (1) after the last *FLAGS variable, or
14528 # (2) before a word containing "conftest.", or (3) at the end.
14529 # Note that $ac_compile itself does not contain backslashes and begins
14530 # with a dollar sign (not a hyphen), so the echo should work correctly.
14531 lt_compile=`echo "$ac_compile" | $SED \
14532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14534 -e 's:$: $lt_compiler_flag:'`
14535 (eval echo "\"\$as_me:14535: $lt_compile\"" >&5)
14536 (eval "$lt_compile" 2>out/conftest.err)
14538 cat out/conftest.err >&5
14539 echo "$as_me:14539: \$? = $ac_status" >&5
14540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14542 # The compiler can only warn and ignore the option if not recognized
14543 # So say no if there are warnings
14544 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14547 lt_cv_prog_compiler_c_o=yes
14552 # SGI C++ compiler will create directory out/ii_files/ for
14553 # template instantiation
14554 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14555 $rm out/* && rmdir out
14561 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14562 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14565 hard_links="nottested"
14566 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14567 # do not overwrite the value of need_locks provided by the user
14568 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14569 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14574 ln conftest.a conftest.b 2>&5 || hard_links=no
14575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14576 { echo "$as_me:$LINENO: result: $hard_links" >&5
14577 echo "${ECHO_T}$hard_links" >&6; }
14578 if test "$hard_links" = no; then
14579 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14580 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14587 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14588 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14591 allow_undefined_flag=
14592 enable_shared_with_static_runtimes=no
14594 archive_expsym_cmds=
14595 old_archive_From_new_cmds=
14596 old_archive_from_expsyms_cmds=
14597 export_dynamic_flag_spec=
14598 whole_archive_flag_spec=
14599 thread_safe_flag_spec=
14600 hardcode_libdir_flag_spec=
14601 hardcode_libdir_flag_spec_ld=
14602 hardcode_libdir_separator=
14604 hardcode_minus_L=no
14605 hardcode_shlibpath_var=unsupported
14606 link_all_deplibs=unknown
14607 hardcode_automatic=no
14609 module_expsym_cmds=
14610 always_export_symbols=no
14611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14612 # include_expsyms should be a list of space-separated symbols to be *always*
14613 # included in the symbol list
14615 # exclude_expsyms can be an extended regexp of symbols to exclude
14616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14617 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14618 # as well as any symbol that contains `d'.
14619 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14621 # platforms (ab)use it in PIC code, but their linkers get confused if
14622 # the symbol is explicitly referenced. Since portable code cannot
14623 # rely on this symbol name, it's probably fine to never include it in
14624 # preloaded symbol tables.
14625 extract_expsyms_cmds=
14626 # Just being paranoid about ensuring that cc_basename is set.
14627 for cc_temp in $compiler""; do
14629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14635 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14638 cygwin* | mingw* | pw32*)
14639 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14640 # When not using gcc, we currently assume that we are using
14641 # Microsoft Visual C++.
14642 if test "$GCC" != yes; then
14647 # we just hope/assume this is gcc and not c89 (= MSVC++)
14656 if test "$with_gnu_ld" = yes; then
14657 # If archive_cmds runs LD, not CC, wlarc should be empty
14660 # Set some defaults for GNU ld with shared library support. These
14661 # are reset later if shared libraries are not supported. Putting them
14662 # here allows them to be overridden if necessary.
14663 runpath_var=LD_RUN_PATH
14664 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14665 export_dynamic_flag_spec='${wl}--export-dynamic'
14666 # ancient GNU ld didn't support --whole-archive et. al.
14667 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14668 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14670 whole_archive_flag_spec=
14672 supports_anon_versioning=no
14673 case `$LD -v 2>/dev/null` in
14674 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14675 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14676 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14677 *\ 2.11.*) ;; # other 2.11 versions
14678 *) supports_anon_versioning=yes ;;
14681 # See if GNU ld supports shared libraries.
14683 aix3* | aix4* | aix5*)
14684 # On AIX/PPC, the GNU linker is very broken
14685 if test "$host_cpu" != ia64; then
14689 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14690 *** to be unable to reliably create shared libraries on AIX.
14691 *** Therefore, libtool is disabling shared libraries support. If you
14692 *** really care for shared libraries, you may want to modify your PATH
14693 *** so that a non-GNU linker is found, and then restart.
14700 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)'
14701 hardcode_libdir_flag_spec='-L$libdir'
14702 hardcode_minus_L=yes
14704 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14705 # that the semantics of dynamic libraries on AmigaOS, at least up
14706 # to version 4, is to share data among multiple programs linked
14707 # with the same dynamic library. Since this doesn't match the
14708 # behavior of shared libraries on other platforms, we can't use
14714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14715 allow_undefined_flag=unsupported
14716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14717 # support --undefined. This deserves some investigation. FIXME
14718 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14724 cygwin* | mingw* | pw32*)
14725 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14726 # as there is no search path for DLLs.
14727 hardcode_libdir_flag_spec='-L$libdir'
14728 allow_undefined_flag=unsupported
14729 always_export_symbols=no
14730 enable_shared_with_static_runtimes=yes
14731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14733 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14735 # If the export-symbols file already is a .def file (1st line
14736 # is EXPORTS), use it as is; otherwise, prepend...
14737 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14738 cp $export_symbols $output_objdir/$soname.def;
14740 echo EXPORTS > $output_objdir/$soname.def;
14741 cat $export_symbols >> $output_objdir/$soname.def;
14743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14751 hardcode_shlibpath_var=no
14752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14753 export_dynamic_flag_spec='${wl}-E'
14754 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14755 # Instead, shared libraries are loaded at an image base (0x10000000 by
14756 # default) and relocated if they conflict, which is a slow very memory
14757 # consuming and fragmenting process. To avoid this, we pick a random,
14758 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14759 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14760 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14761 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'
14765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14767 case $cc_basename,$host_cpu in
14768 pgcc*) # Portland Group C compiler
14769 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'
14770 tmp_addflag=' $pic_flag'
14772 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14773 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'
14774 tmp_addflag=' $pic_flag -Mnomain' ;;
14775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14776 tmp_addflag=' -i_dynamic' ;;
14777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14778 tmp_addflag=' -i_dynamic -nofor_main' ;;
14779 ifc* | ifort*) # Intel Fortran compiler
14780 tmp_addflag=' -nofor_main' ;;
14782 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784 if test $supports_anon_versioning = yes; then
14785 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14787 $echo "local: *; };" >> $output_objdir/$libname.ver~
14788 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14797 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14806 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14810 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14811 *** create shared libraries on Solaris systems. Therefore, libtool
14812 *** is disabling shared libraries support. We urge you to upgrade GNU
14813 *** binutils to release 2.9.1 or newer. Another option is to modify
14814 *** your PATH or compiler configuration so that the native linker is
14815 *** used, and then restart.
14818 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14827 case `$LD -v 2>&1` in
14828 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14832 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14833 *** reliably create shared libraries on SCO systems. Therefore, libtool
14834 *** is disabling shared libraries support. We urge you to upgrade GNU
14835 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14836 *** your PATH or compiler configuration so that the native linker is
14837 *** used, and then restart.
14842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14843 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14856 hardcode_direct=yes
14857 hardcode_shlibpath_var=no
14861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14870 if test "$ld_shlibs" = no; then
14872 hardcode_libdir_flag_spec=
14873 export_dynamic_flag_spec=
14874 whole_archive_flag_spec=
14877 # PORTME fill in a description of your system's linker (not GNU ld)
14880 allow_undefined_flag=unsupported
14881 always_export_symbols=yes
14882 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'
14883 # Note: this linker hardcodes the directories in LIBPATH if there
14884 # are no directories specified by -L.
14885 hardcode_minus_L=yes
14886 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14887 # Neither direct hardcoding nor static linking is supported with a
14889 hardcode_direct=unsupported
14894 if test "$host_cpu" = ia64; then
14895 # On IA64, the linker does run time linking by default, so we don't
14896 # have to do anything special.
14897 aix_use_runtimelinking=no
14898 exp_sym_flag='-Bexport'
14901 # If we're using GNU nm, then we don't want the "-C" option.
14902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14903 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14904 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'
14906 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'
14908 aix_use_runtimelinking=no
14910 # Test if we are trying to use run time linking or normal
14911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14912 # need to do runtime linking.
14913 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14914 for ld_flag in $LDFLAGS; do
14915 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14916 aix_use_runtimelinking=yes
14923 exp_sym_flag='-bexport'
14924 no_entry_flag='-bnoentry'
14927 # When large executables or shared objects are built, AIX ld can
14928 # have problems creating the table of contents. If linking a library
14929 # or program results in "error TOC overflow" add -mminimal-toc to
14930 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14931 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14934 hardcode_direct=yes
14935 hardcode_libdir_separator=':'
14936 link_all_deplibs=yes
14938 if test "$GCC" = yes; then
14939 case $host_os in aix4.[012]|aix4.[012].*)
14940 # We only want to do this on AIX 4.2 and lower, the check
14941 # below for broken collect2 doesn't work under 4.3+
14942 collect2name=`${CC} -print-prog-name=collect2`
14943 if test -f "$collect2name" && \
14944 strings "$collect2name" | grep resolve_lib_name >/dev/null
14946 # We have reworked collect2
14947 hardcode_direct=yes
14949 # We have old collect2
14950 hardcode_direct=unsupported
14951 # It fails to find uninstalled libraries when the uninstalled
14952 # path is not listed in the libpath. Setting hardcode_minus_L
14953 # to unsupported forces relinking
14954 hardcode_minus_L=yes
14955 hardcode_libdir_flag_spec='-L$libdir'
14956 hardcode_libdir_separator=
14960 shared_flag='-shared'
14961 if test "$aix_use_runtimelinking" = yes; then
14962 shared_flag="$shared_flag "'${wl}-G'
14966 if test "$host_cpu" = ia64; then
14967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14968 # chokes on -Wl,-G. The following line is correct:
14971 if test "$aix_use_runtimelinking" = yes; then
14972 shared_flag='${wl}-G'
14974 shared_flag='${wl}-bM:SRE'
14979 # It seems that -bexpall does not export symbols beginning with
14980 # underscore (_), so it is better to generate a list of symbols to export.
14981 always_export_symbols=yes
14982 if test "$aix_use_runtimelinking" = yes; then
14983 # Warning - without using the other runtime loading flags (-brtl),
14984 # -berok will link without error, but may produce a broken library.
14985 allow_undefined_flag='-berok'
14986 # Determine the default libpath from the value encoded in an empty executable.
14987 cat >conftest.$ac_ext <<_ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h. */
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (ac_try="$ac_link"
15004 case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_link") 2>conftest.er1
15011 grep -v '^ *+' conftest.er1 >conftest.err
15013 cat conftest.err >&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
15016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15017 { (case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_try") 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest$ac_exeext'
15027 { (case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }; then
15037 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15039 # Check for a 64-bit object if we didn't find anything.
15040 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; }
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15049 rm -f core conftest.err conftest.$ac_objext \
15050 conftest$ac_exeext conftest.$ac_ext
15051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15053 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15054 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"
15056 if test "$host_cpu" = ia64; then
15057 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15058 allow_undefined_flag="-z nodefs"
15059 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"
15061 # Determine the default libpath from the value encoded in an empty executable.
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15077 rm -f conftest.$ac_objext conftest$ac_exeext
15078 if { (ac_try="$ac_link"
15079 case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_link") 2>conftest.er1
15086 grep -v '^ *+' conftest.er1 >conftest.err
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest$ac_exeext'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15114 # Check for a 64-bit object if we didn't find anything.
15115 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; }
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15124 rm -f core conftest.err conftest.$ac_objext \
15125 conftest$ac_exeext conftest.$ac_ext
15126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15128 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15129 # Warning - without using the other run time loading flags,
15130 # -berok will link without error, but may produce a broken library.
15131 no_undefined_flag=' ${wl}-bernotok'
15132 allow_undefined_flag=' ${wl}-berok'
15133 # Exported symbols can be pulled into shared objects from archives
15134 whole_archive_flag_spec='$convenience'
15135 archive_cmds_need_lc=yes
15136 # This is similar to how AIX traditionally builds its shared libraries.
15137 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'
15143 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)'
15144 hardcode_libdir_flag_spec='-L$libdir'
15145 hardcode_minus_L=yes
15146 # see comment about different semantics on the GNU ld section
15151 export_dynamic_flag_spec=-rdynamic
15154 cygwin* | mingw* | pw32*)
15155 # When not using gcc, we currently assume that we are using
15156 # Microsoft Visual C++.
15157 # hardcode_libdir_flag_spec is actually meaningless, as there is
15158 # no search path for DLLs.
15159 hardcode_libdir_flag_spec=' '
15160 allow_undefined_flag=unsupported
15161 # Tell ltmain to make .lib files, not .a files.
15163 # Tell ltmain to make .dll files, not .so files.
15165 # FIXME: Setting linknames here is a bad hack.
15166 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15167 # The linker will automatically build a .lib file if we build a DLL.
15168 old_archive_From_new_cmds='true'
15169 # FIXME: Should let the user specify the lib program.
15170 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15171 fix_srcfile_path='`cygpath -w "$srcfile"`'
15172 enable_shared_with_static_runtimes=yes
15175 darwin* | rhapsody*)
15177 rhapsody* | darwin1.[012])
15178 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15181 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15182 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15184 case ${MACOSX_DEPLOYMENT_TARGET} in
15186 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15189 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15195 archive_cmds_need_lc=no
15197 hardcode_automatic=yes
15198 hardcode_shlibpath_var=unsupported
15199 whole_archive_flag_spec=''
15200 link_all_deplibs=yes
15201 if test "$GCC" = yes ; then
15202 output_verbose_link_cmd='echo'
15203 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15204 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15206 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}'
15207 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}'
15209 case $cc_basename in
15211 output_verbose_link_cmd='echo'
15212 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15213 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15215 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}'
15216 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}'
15226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15227 hardcode_libdir_flag_spec='-L$libdir'
15228 hardcode_shlibpath_var=no
15235 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15236 # support. Future versions do this automatically, but an explicit c++rt0.o
15237 # does not break anything, and helps significantly (at the cost of a little
15240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15241 hardcode_libdir_flag_spec='-R$libdir'
15242 hardcode_direct=yes
15243 hardcode_shlibpath_var=no
15246 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15249 hardcode_direct=yes
15250 hardcode_minus_L=yes
15251 hardcode_shlibpath_var=no
15254 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15255 freebsd* | kfreebsd*-gnu | dragonfly*)
15256 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15257 hardcode_libdir_flag_spec='-R$libdir'
15258 hardcode_direct=yes
15259 hardcode_shlibpath_var=no
15263 if test "$GCC" = yes; then
15264 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'
15266 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'
15268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15269 hardcode_libdir_separator=:
15270 hardcode_direct=yes
15272 # hardcode_minus_L: Not really in the search PATH,
15273 # but as the default location of the library.
15274 hardcode_minus_L=yes
15275 export_dynamic_flag_spec='${wl}-E'
15279 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15280 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15282 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15284 if test "$with_gnu_ld" = no; then
15285 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15286 hardcode_libdir_separator=:
15288 hardcode_direct=yes
15289 export_dynamic_flag_spec='${wl}-E'
15291 # hardcode_minus_L: Not really in the search PATH,
15292 # but as the default location of the library.
15293 hardcode_minus_L=yes
15298 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15301 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15304 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15307 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15313 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15319 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15323 if test "$with_gnu_ld" = no; then
15324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15325 hardcode_libdir_separator=:
15329 hardcode_libdir_flag_spec_ld='+b $libdir'
15331 hardcode_shlibpath_var=no
15334 hardcode_direct=yes
15335 export_dynamic_flag_spec='${wl}-E'
15337 # hardcode_minus_L: Not really in the search PATH,
15338 # but as the default location of the library.
15339 hardcode_minus_L=yes
15345 irix5* | irix6* | nonstopux*)
15346 if test "$GCC" = yes; then
15347 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'
15349 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'
15350 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15353 hardcode_libdir_separator=:
15354 link_all_deplibs=yes
15358 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15361 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15363 hardcode_libdir_flag_spec='-R$libdir'
15364 hardcode_direct=yes
15365 hardcode_shlibpath_var=no
15369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15370 hardcode_direct=yes
15371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15372 hardcode_libdir_separator=:
15373 hardcode_shlibpath_var=no
15377 hardcode_direct=yes
15378 hardcode_shlibpath_var=no
15379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15380 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15381 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15383 export_dynamic_flag_spec='${wl}-E'
15386 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15388 hardcode_libdir_flag_spec='-R$libdir'
15391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15399 hardcode_libdir_flag_spec='-L$libdir'
15400 hardcode_minus_L=yes
15401 allow_undefined_flag=unsupported
15402 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'
15403 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15407 if test "$GCC" = yes; then
15408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15409 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'
15411 allow_undefined_flag=' -expect_unresolved \*'
15412 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'
15414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15415 hardcode_libdir_separator=:
15418 osf4* | osf5*) # as osf3* with the addition of -msym flag
15419 if test "$GCC" = yes; then
15420 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15421 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'
15422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15424 allow_undefined_flag=' -expect_unresolved \*'
15425 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'
15426 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15427 $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'
15429 # Both c and cxx compiler support -rpath directly
15430 hardcode_libdir_flag_spec='-rpath $libdir'
15432 hardcode_libdir_separator=:
15436 no_undefined_flag=' -z text'
15437 if test "$GCC" = yes; then
15439 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15441 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15444 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15448 hardcode_libdir_flag_spec='-R$libdir'
15449 hardcode_shlibpath_var=no
15451 solaris2.[0-5] | solaris2.[0-5].*) ;;
15453 # The compiler driver will combine linker options so we
15454 # cannot just pass the convience library names through
15455 # without $wl, iff we do not link with $LD.
15456 # Luckily, gcc supports the same syntax we need for Sun Studio.
15457 # Supported since Solaris 2.6 (maybe 2.5.1?)
15460 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15462 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' ;;
15465 link_all_deplibs=yes
15469 if test "x$host_vendor" = xsequent; then
15470 # Use $CC to link under sequent, because it throws in some extra .o
15471 # files that make .init and .fini sections work.
15472 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15474 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_libdir_flag_spec='-L$libdir'
15477 hardcode_direct=yes
15478 hardcode_minus_L=yes
15479 hardcode_shlibpath_var=no
15483 case $host_vendor in
15485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486 hardcode_direct=yes # is this really true???
15489 ## LD is ld it makes a PLAMLIB
15490 ## CC just makes a GrossModule.
15491 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15492 reload_cmds='$CC -r -o $output$reload_objs'
15496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15500 runpath_var='LD_RUN_PATH'
15501 hardcode_shlibpath_var=no
15505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506 hardcode_shlibpath_var=no
15507 export_dynamic_flag_spec='-Bexport'
15511 if test -d /usr/nec; then
15512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_shlibpath_var=no
15514 runpath_var=LD_RUN_PATH
15515 hardcode_runpath_var=yes
15520 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15521 no_undefined_flag='${wl}-z,text'
15522 archive_cmds_need_lc=no
15523 hardcode_shlibpath_var=no
15524 runpath_var='LD_RUN_PATH'
15526 if test "$GCC" = yes; then
15527 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15530 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15535 sysv5* | sco3.2v5* | sco5v6*)
15536 # Note: We can NOT use -z defs as we might desire, because we do not
15537 # link with -lc, and that would cause any symbols used from libc to
15538 # always be unresolved, which means just about no library would
15539 # ever link correctly. If we're not using GNU ld we use -z text
15540 # though, which does catch some bad symbols but isn't as heavy-handed
15542 no_undefined_flag='${wl}-z,text'
15543 allow_undefined_flag='${wl}-z,nodefs'
15544 archive_cmds_need_lc=no
15545 hardcode_shlibpath_var=no
15546 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15547 hardcode_libdir_separator=':'
15548 link_all_deplibs=yes
15549 export_dynamic_flag_spec='${wl}-Bexport'
15550 runpath_var='LD_RUN_PATH'
15552 if test "$GCC" = yes; then
15553 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15554 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15556 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15557 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_libdir_flag_spec='-L$libdir'
15564 hardcode_shlibpath_var=no
15573 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15574 echo "${ECHO_T}$ld_shlibs" >&6; }
15575 test "$ld_shlibs" = no && can_build_shared=no
15578 # Do we need to explicitly link libc?
15580 case "x$archive_cmds_need_lc" in
15582 # Assume -lc should be added
15583 archive_cmds_need_lc=yes
15585 if test "$enable_shared" = yes && test "$GCC" = yes; then
15586 case $archive_cmds in
15588 # FIXME: we may have to deal with multi-command sequences.
15591 # Test whether the compiler implicitly links with -lc since on some
15592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15593 # to ld, don't add -lc before -lgcc.
15594 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15595 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15600 (eval $ac_compile) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } 2>conftest.err; then
15606 libobjs=conftest.$ac_objext
15608 wl=$lt_prog_compiler_wl
15609 pic_flag=$lt_prog_compiler_pic
15615 lt_save_allow_undefined_flag=$allow_undefined_flag
15616 allow_undefined_flag=
15617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15618 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }
15623 archive_cmds_need_lc=no
15625 archive_cmds_need_lc=yes
15627 allow_undefined_flag=$lt_save_allow_undefined_flag
15629 cat conftest.err 1>&5
15632 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15633 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15640 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15641 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15642 library_names_spec=
15643 libname_spec='lib$name'
15647 postuninstall_cmds=
15651 shlibpath_overrides_runpath=unknown
15653 dynamic_linker="$host_os ld.so"
15654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15655 if test "$GCC" = yes; then
15656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15657 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15658 # if the path contains ";" then we assume it to be the separator
15659 # otherwise default to the standard path separator (i.e. ":") - it is
15660 # assumed that no part of a normal pathname contains ";" but that should
15661 # okay in the real world where ";" in dirpaths is itself problematic.
15662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15669 need_lib_prefix=unknown
15670 hardcode_into_libs=no
15672 # when you set need_version to no, make sure it does not cause -set_version
15673 # flags to be left without arguments
15674 need_version=unknown
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15680 shlibpath_var=LIBPATH
15682 # AIX 3 has no versioning support, so we append a major version to the name.
15683 soname_spec='${libname}${release}${shared_ext}$major'
15690 hardcode_into_libs=yes
15691 if test "$host_cpu" = ia64; then
15692 # AIX 5 supports IA64
15693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15694 shlibpath_var=LD_LIBRARY_PATH
15696 # With GCC up to 2.95.x, collect2 would create an import file
15697 # for dependence libraries. The import file would start with
15698 # the line `#! .'. This would cause the generated library to
15699 # depend on `.', always an invalid library. This was fixed in
15700 # development snapshots of GCC prior to 3.0.
15702 aix4 | aix4.[01] | aix4.[01].*)
15703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15705 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15708 can_build_shared=no
15712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15713 # soname into executable. Probably we can add versioning support to
15714 # collect2, so additional links can be useful in future.
15715 if test "$aix_use_runtimelinking" = yes; then
15716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15717 # instead of lib<name>.a to let people know that these are not
15718 # typical AIX shared libraries.
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 # We preserve .a as extension for shared libraries through AIX4.2
15722 # and later when we are not doing run time linking.
15723 library_names_spec='${libname}${release}.a $libname.a'
15724 soname_spec='${libname}${release}${shared_ext}$major'
15726 shlibpath_var=LIBPATH
15731 library_names_spec='$libname.ixlibrary $libname.a'
15732 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15733 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'
15737 library_names_spec='${libname}${shared_ext}'
15738 dynamic_linker="$host_os ld.so"
15739 shlibpath_var=LIBRARY_PATH
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746 soname_spec='${libname}${release}${shared_ext}$major'
15747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15748 shlibpath_var=LD_LIBRARY_PATH
15749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15751 # the default ld.so.conf also contains /usr/contrib/lib and
15752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15753 # libtool to hard-code these into programs
15756 cygwin* | mingw* | pw32*)
15757 version_type=windows
15762 case $GCC,$host_os in
15763 yes,cygwin* | yes,mingw* | yes,pw32*)
15764 library_names_spec='$libname.dll.a'
15765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15766 postinstall_cmds='base_file=`basename \${file}`~
15767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15768 dldir=$destdir/`dirname \$dlpath`~
15769 test -d \$dldir || mkdir -p \$dldir~
15770 $install_prog $dir/$dlname \$dldir/$dlname~
15771 chmod a+x \$dldir/$dlname'
15772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15773 dlpath=$dir/\$dldll~
15775 shlibpath_overrides_runpath=yes
15779 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15780 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15781 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15784 # MinGW DLLs use traditional 'lib' prefix
15785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15787 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15788 # It is most probably a Windows format PATH printed by
15789 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15790 # path with ; separators, and with drive letters. We can handle the
15791 # drive letters (cygwin fileutils understands them), so leave them,
15792 # especially as we might pass files found there to a mingw objdump,
15793 # which wouldn't understand a cygwinified path. Ahh.
15794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15800 # pw32 DLLs use 'pw' prefix rather than 'lib'
15801 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15810 dynamic_linker='Win32 ld.exe'
15811 # FIXME: first we should search . and the directory the executable is in
15815 darwin* | rhapsody*)
15816 dynamic_linker="$host_os dyld"
15817 version_type=darwin
15820 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15821 soname_spec='${libname}${release}${major}$shared_ext'
15822 shlibpath_overrides_runpath=yes
15823 shlibpath_var=DYLD_LIBRARY_PATH
15824 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15825 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15826 if test "$GCC" = yes; then
15827 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"`
15829 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 shlibpath_var=LD_LIBRARY_PATH
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 shlibpath_overrides_runpath=no
15855 hardcode_into_libs=yes
15856 dynamic_linker='GNU ld.so'
15859 freebsd* | dragonfly*)
15860 # DragonFly does not have aout. When/if they implement a new
15861 # versioning mechanism, adjust this.
15862 if test -x /usr/bin/objformat; then
15863 objformat=`/usr/bin/objformat`
15866 freebsd[123]*) objformat=aout ;;
15867 *) objformat=elf ;;
15870 version_type=freebsd-$objformat
15871 case $version_type in
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15882 shlibpath_var=LD_LIBRARY_PATH
15885 shlibpath_overrides_runpath=yes
15887 freebsd3.[01]* | freebsdelf3.[01]*)
15888 shlibpath_overrides_runpath=yes
15889 hardcode_into_libs=yes
15891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15893 shlibpath_overrides_runpath=no
15894 hardcode_into_libs=yes
15896 freebsd*) # from 4.6 on
15897 shlibpath_overrides_runpath=yes
15898 hardcode_into_libs=yes
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15908 soname_spec='${libname}${release}${shared_ext}$major'
15909 shlibpath_var=LD_LIBRARY_PATH
15910 hardcode_into_libs=yes
15913 hpux9* | hpux10* | hpux11*)
15914 # Give a soname corresponding to the major version so that dld.sl refuses to
15915 # link against other versions.
15922 hardcode_into_libs=yes
15923 dynamic_linker="$host_os dld.so"
15924 shlibpath_var=LD_LIBRARY_PATH
15925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 if test "X$HPUX_IA64_MODE" = X32; then
15929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15937 hardcode_into_libs=yes
15938 dynamic_linker="$host_os dld.sl"
15939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942 soname_spec='${libname}${release}${shared_ext}$major'
15943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15948 dynamic_linker="$host_os dld.sl"
15949 shlibpath_var=SHLIB_PATH
15950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952 soname_spec='${libname}${release}${shared_ext}$major'
15955 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15956 postinstall_cmds='chmod 555 $lib'
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15964 soname_spec='${libname}${release}${shared_ext}$major'
15965 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath=no
15968 hardcode_into_libs=yes
15971 irix5* | irix6* | nonstopux*)
15973 nonstopux*) version_type=nonstopux ;;
15975 if test "$lt_cv_prog_gnu_ld" = yes; then
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15986 irix5* | nonstopux*)
15987 libsuff= shlibsuff=
15990 case $LD in # libtool.m4 will add one of these switches to LD
15991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15992 libsuff= shlibsuff= libmagic=32-bit;;
15993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15994 libsuff=32 shlibsuff=N32 libmagic=N32;;
15995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15996 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15997 *) libsuff= shlibsuff= libmagic=never-match;;
16001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16002 shlibpath_overrides_runpath=no
16003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16005 hardcode_into_libs=yes
16008 # No shared lib support for Linux oldld, aout, or coff.
16009 linux*oldld* | linux*aout* | linux*coff*)
16013 # This must be Linux ELF.
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 shlibpath_overrides_runpath=no
16023 # This implies no fast_install, which is unacceptable.
16024 # Some rework will be needed to allow for fast_install
16025 # before this can be enabled.
16026 hardcode_into_libs=yes
16028 # Append ld.so.conf contents to the search path
16029 if test -f /etc/ld.so.conf; then
16030 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' ' '`
16031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16034 # We used to test for /lib/ld.so.1 and disable shared libraries on
16035 # powerpc, because MkLinux only supported shared libraries with the
16036 # GNU dynamic linker. Since this was broken with cross compilers,
16037 # most powerpc-linux boxes support dynamic linking these days and
16038 # people can always --disable-shared, the test was removed, and we
16039 # assume the GNU/Linux dynamic linker is in use.
16040 dynamic_linker='GNU/Linux ld.so'
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16048 soname_spec='${libname}${release}${shared_ext}$major'
16049 shlibpath_var=LD_LIBRARY_PATH
16050 shlibpath_overrides_runpath=no
16051 hardcode_into_libs=yes
16052 dynamic_linker='GNU ld.so'
16059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16062 dynamic_linker='NetBSD (a.out) ld.so'
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16065 soname_spec='${libname}${release}${shared_ext}$major'
16066 dynamic_linker='NetBSD ld.elf_so'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 shlibpath_overrides_runpath=yes
16070 hardcode_into_libs=yes
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=yes
16092 sys_lib_dlsearch_path_spec="/usr/lib"
16094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16096 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16097 *) need_version=no ;;
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16104 openbsd2.[89] | openbsd2.[89].*)
16105 shlibpath_overrides_runpath=no
16108 shlibpath_overrides_runpath=yes
16112 shlibpath_overrides_runpath=yes
16117 libname_spec='$name'
16120 library_names_spec='$libname${shared_ext} $libname.a'
16121 dynamic_linker='OS/2 ld.exe'
16122 shlibpath_var=LIBPATH
16125 osf3* | osf4* | osf5*)
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131 shlibpath_var=LD_LIBRARY_PATH
16132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 shlibpath_var=LD_LIBRARY_PATH
16143 shlibpath_overrides_runpath=yes
16144 hardcode_into_libs=yes
16145 # ldd complains unless libraries are executable
16146 postinstall_cmds='chmod +x $lib'
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 shlibpath_overrides_runpath=yes
16155 if test "$with_gnu_ld" = yes; then
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 soname_spec='${libname}${release}${shared_ext}$major'
16165 shlibpath_var=LD_LIBRARY_PATH
16166 case $host_vendor in
16168 shlibpath_overrides_runpath=no
16170 export_dynamic_flag_spec='${wl}-Blargedynsym'
16171 runpath_var=LD_RUN_PATH
16179 shlibpath_overrides_runpath=no
16180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16186 if test -d /usr/nec ;then
16188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16189 soname_spec='$libname${shared_ext}.$major'
16190 shlibpath_var=LD_LIBRARY_PATH
16194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16195 version_type=freebsd-elf
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16200 shlibpath_var=LD_LIBRARY_PATH
16201 hardcode_into_libs=yes
16202 if test "$with_gnu_ld" = yes; then
16203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16204 shlibpath_overrides_runpath=no
16206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16207 shlibpath_overrides_runpath=yes
16210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16214 sys_lib_dlsearch_path_spec='/usr/lib'
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220 soname_spec='${libname}${release}${shared_ext}$major'
16221 shlibpath_var=LD_LIBRARY_PATH
16228 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16229 echo "${ECHO_T}$dynamic_linker" >&6; }
16230 test "$dynamic_linker" = no && can_build_shared=no
16232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16233 if test "$GCC" = yes; then
16234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16237 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16238 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16240 if test -n "$hardcode_libdir_flag_spec" || \
16241 test -n "$runpath_var" || \
16242 test "X$hardcode_automatic" = "Xyes" ; then
16244 # We can hardcode non-existant directories.
16245 if test "$hardcode_direct" != no &&
16246 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16247 # have to relink, otherwise we might link with an installed library
16248 # when we should be linking with a yet-to-be-installed one
16249 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16250 test "$hardcode_minus_L" != no; then
16251 # Linking always hardcodes the temporary library directory.
16252 hardcode_action=relink
16254 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16255 hardcode_action=immediate
16258 # We cannot hardcode anything, or else we can only hardcode existing
16260 hardcode_action=unsupported
16262 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16263 echo "${ECHO_T}$hardcode_action" >&6; }
16265 if test "$hardcode_action" = relink; then
16266 # Fast installation is not supported
16267 enable_fast_install=no
16268 elif test "$shlibpath_overrides_runpath" = yes ||
16269 test "$enable_shared" = no; then
16270 # Fast installation is not necessary
16271 enable_fast_install=needless
16276 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16277 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16278 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16279 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16280 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16281 { echo "$as_me:$LINENO: result: yes" >&5
16282 echo "${ECHO_T}yes" >&6; }
16284 # FIXME - insert some real tests, host_os isn't really good enough
16287 if test -n "$STRIP" ; then
16288 striplib="$STRIP -x"
16289 { echo "$as_me:$LINENO: result: yes" >&5
16290 echo "${ECHO_T}yes" >&6; }
16292 { echo "$as_me:$LINENO: result: no" >&5
16293 echo "${ECHO_T}no" >&6; }
16297 { echo "$as_me:$LINENO: result: no" >&5
16298 echo "${ECHO_T}no" >&6; }
16303 if test "x$enable_dlopen" != xyes; then
16304 enable_dlopen=unknown
16305 enable_dlopen_self=unknown
16306 enable_dlopen_self_static=unknown
16313 lt_cv_dlopen="load_add_on"
16315 lt_cv_dlopen_self=yes
16319 lt_cv_dlopen="LoadLibrary"
16324 lt_cv_dlopen="dlopen"
16329 # if libdl is installed we need to link against it
16330 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16331 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16332 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 ac_check_lib_save_LIBS=$LIBS
16337 cat >conftest.$ac_ext <<_ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16344 /* Override any GCC internal prototype to avoid an error.
16345 Use char because int might match the return type of a GCC
16346 builtin and then its argument prototype would still apply. */
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (ac_try="$ac_link"
16361 case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_link") 2>conftest.er1
16368 grep -v '^ *+' conftest.er1 >conftest.err
16370 cat conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
16373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16374 { (case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379 (eval "$ac_try") 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try='test -s conftest$ac_exeext'
16384 { (case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_try") 2>&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; }; then
16393 ac_cv_lib_dl_dlopen=yes
16395 echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16398 ac_cv_lib_dl_dlopen=no
16401 rm -f core conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403 LIBS=$ac_check_lib_save_LIBS
16405 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16407 if test $ac_cv_lib_dl_dlopen = yes; then
16408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16411 lt_cv_dlopen="dyld"
16413 lt_cv_dlopen_self=yes
16420 { echo "$as_me:$LINENO: checking for shl_load" >&5
16421 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16422 if test "${ac_cv_func_shl_load+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 cat >conftest.$ac_ext <<_ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16433 #define shl_load innocuous_shl_load
16435 /* System header to define __stub macros and hopefully few prototypes,
16436 which can conflict with char shl_load (); below.
16437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16438 <limits.h> exists even on freestanding compilers. */
16441 # include <limits.h>
16443 # include <assert.h>
16448 /* Override any GCC internal prototype to avoid an error.
16449 Use char because int might match the return type of a GCC
16450 builtin and then its argument prototype would still apply. */
16455 /* The GNU C library defines this for functions which it implements
16456 to always fail with ENOSYS. Some functions are actually named
16457 something starting with __ and the normal name is an alias. */
16458 #if defined __stub_shl_load || defined __stub___shl_load
16465 return shl_load ();
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_link") 2>conftest.er1
16479 grep -v '^ *+' conftest.er1 >conftest.err
16481 cat conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
16484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16485 { (case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_try") 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; } &&
16494 { ac_try='test -s conftest$ac_exeext'
16495 { (case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_try") 2>&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_func_shl_load=yes
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 ac_cv_func_shl_load=no
16512 rm -f core conftest.err conftest.$ac_objext \
16513 conftest$ac_exeext conftest.$ac_ext
16515 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16516 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16517 if test $ac_cv_func_shl_load = yes; then
16518 lt_cv_dlopen="shl_load"
16520 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16521 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16522 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 ac_check_lib_save_LIBS=$LIBS
16527 cat >conftest.$ac_ext <<_ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16534 /* Override any GCC internal prototype to avoid an error.
16535 Use char because int might match the return type of a GCC
16536 builtin and then its argument prototype would still apply. */
16544 return shl_load ();
16549 rm -f conftest.$ac_objext conftest$ac_exeext
16550 if { (ac_try="$ac_link"
16551 case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_link") 2>conftest.er1
16558 grep -v '^ *+' conftest.er1 >conftest.err
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16564 { (case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_try") 2>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; } &&
16573 { ac_try='test -s conftest$ac_exeext'
16574 { (case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_try") 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 ac_cv_lib_dld_shl_load=yes
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ac_cv_lib_dld_shl_load=no
16591 rm -f core conftest.err conftest.$ac_objext \
16592 conftest$ac_exeext conftest.$ac_ext
16593 LIBS=$ac_check_lib_save_LIBS
16595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16596 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16597 if test $ac_cv_lib_dld_shl_load = yes; then
16598 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16600 { echo "$as_me:$LINENO: checking for dlopen" >&5
16601 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16602 if test "${ac_cv_func_dlopen+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 cat >conftest.$ac_ext <<_ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16613 #define dlopen innocuous_dlopen
16615 /* System header to define __stub macros and hopefully few prototypes,
16616 which can conflict with char dlopen (); below.
16617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16618 <limits.h> exists even on freestanding compilers. */
16621 # include <limits.h>
16623 # include <assert.h>
16628 /* Override any GCC internal prototype to avoid an error.
16629 Use char because int might match the return type of a GCC
16630 builtin and then its argument prototype would still apply. */
16635 /* The GNU C library defines this for functions which it implements
16636 to always fail with ENOSYS. Some functions are actually named
16637 something starting with __ and the normal name is an alias. */
16638 #if defined __stub_dlopen || defined __stub___dlopen
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (ac_try="$ac_link"
16652 case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_link") 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_try") 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest$ac_exeext'
16675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 ac_cv_func_dlopen=yes
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 ac_cv_func_dlopen=no
16692 rm -f core conftest.err conftest.$ac_objext \
16693 conftest$ac_exeext conftest.$ac_ext
16695 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16696 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16697 if test $ac_cv_func_dlopen = yes; then
16698 lt_cv_dlopen="dlopen"
16700 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16701 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16702 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 ac_check_lib_save_LIBS=$LIBS
16707 cat >conftest.$ac_ext <<_ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16714 /* Override any GCC internal prototype to avoid an error.
16715 Use char because int might match the return type of a GCC
16716 builtin and then its argument prototype would still apply. */
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if { (ac_try="$ac_link"
16731 case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_link") 2>conftest.er1
16738 grep -v '^ *+' conftest.er1 >conftest.err
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_try") 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest$ac_exeext'
16754 { (case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_try") 2>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 ac_cv_lib_dl_dlopen=yes
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 ac_cv_lib_dl_dlopen=no
16771 rm -f core conftest.err conftest.$ac_objext \
16772 conftest$ac_exeext conftest.$ac_ext
16773 LIBS=$ac_check_lib_save_LIBS
16775 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16777 if test $ac_cv_lib_dl_dlopen = yes; then
16778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16780 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16781 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16782 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 ac_check_lib_save_LIBS=$LIBS
16786 LIBS="-lsvld $LIBS"
16787 cat >conftest.$ac_ext <<_ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest$ac_exeext'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_cv_lib_svld_dlopen=yes
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_cv_lib_svld_dlopen=no
16851 rm -f core conftest.err conftest.$ac_objext \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16855 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16856 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16857 if test $ac_cv_lib_svld_dlopen = yes; then
16858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16860 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 ac_check_lib_save_LIBS=$LIBS
16867 cat >conftest.$ac_ext <<_ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16874 /* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
16884 return dld_link ();
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (ac_try="$ac_link"
16891 case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_link") 2>conftest.er1
16898 grep -v '^ *+' conftest.er1 >conftest.err
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
16903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest$ac_exeext'
16914 { (case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_try") 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_lib_dld_dld_link=yes
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 ac_cv_lib_dld_dld_link=no
16931 rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16935 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16936 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16937 if test $ac_cv_lib_dld_dld_link = yes; then
16938 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16959 if test "x$lt_cv_dlopen" != xno; then
16965 case $lt_cv_dlopen in
16967 save_CPPFLAGS="$CPPFLAGS"
16968 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16970 save_LDFLAGS="$LDFLAGS"
16971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16974 LIBS="$lt_cv_dlopen_libs $LIBS"
16976 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16977 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16978 if test "${lt_cv_dlopen_self+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 if test "$cross_compiling" = yes; then :
16982 lt_cv_dlopen_self=cross
16984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16985 lt_status=$lt_dlunknown
16986 cat > conftest.$ac_ext <<EOF
16987 #line 16987 "configure"
16988 #include "confdefs.h"
16997 # define LT_DLGLOBAL RTLD_GLOBAL
17000 # define LT_DLGLOBAL DL_GLOBAL
17002 # define LT_DLGLOBAL 0
17006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17007 find out it does not work in some platform. */
17008 #ifndef LT_DLLAZY_OR_NOW
17010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17013 # define LT_DLLAZY_OR_NOW DL_LAZY
17016 # define LT_DLLAZY_OR_NOW RTLD_NOW
17019 # define LT_DLLAZY_OR_NOW DL_NOW
17021 # define LT_DLLAZY_OR_NOW 0
17029 extern "C" void exit (int);
17032 void fnord() { int i=42;}
17035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17036 int status = $lt_dlunknown;
17040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17042 /* dlclose (self); */
17050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17051 (eval $ac_link) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17055 (./conftest; exit; ) >&5 2>/dev/null
17057 case x$lt_status in
17058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17063 # compilation failed
17064 lt_cv_dlopen_self=no
17071 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17072 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17074 if test "x$lt_cv_dlopen_self" = xyes; then
17075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17076 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17077 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17078 if test "${lt_cv_dlopen_self_static+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 if test "$cross_compiling" = yes; then :
17082 lt_cv_dlopen_self_static=cross
17084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17085 lt_status=$lt_dlunknown
17086 cat > conftest.$ac_ext <<EOF
17087 #line 17087 "configure"
17088 #include "confdefs.h"
17097 # define LT_DLGLOBAL RTLD_GLOBAL
17100 # define LT_DLGLOBAL DL_GLOBAL
17102 # define LT_DLGLOBAL 0
17106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17107 find out it does not work in some platform. */
17108 #ifndef LT_DLLAZY_OR_NOW
17110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17113 # define LT_DLLAZY_OR_NOW DL_LAZY
17116 # define LT_DLLAZY_OR_NOW RTLD_NOW
17119 # define LT_DLLAZY_OR_NOW DL_NOW
17121 # define LT_DLLAZY_OR_NOW 0
17129 extern "C" void exit (int);
17132 void fnord() { int i=42;}
17135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17136 int status = $lt_dlunknown;
17140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17141 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17142 /* dlclose (self); */
17150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151 (eval $ac_link) 2>&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17155 (./conftest; exit; ) >&5 2>/dev/null
17157 case x$lt_status in
17158 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17159 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17160 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17163 # compilation failed
17164 lt_cv_dlopen_self_static=no
17171 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17172 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17175 CPPFLAGS="$save_CPPFLAGS"
17176 LDFLAGS="$save_LDFLAGS"
17181 case $lt_cv_dlopen_self in
17182 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17183 *) enable_dlopen_self=unknown ;;
17186 case $lt_cv_dlopen_self_static in
17187 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17188 *) enable_dlopen_self_static=unknown ;;
17193 # Report which library types will actually be built
17194 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17195 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17196 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17197 echo "${ECHO_T}$can_build_shared" >&6; }
17199 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17200 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17201 test "$can_build_shared" = "no" && enable_shared=no
17203 # On AIX, shared libraries and static libraries use the same namespace, and
17204 # are all built from PIC.
17207 test "$enable_shared" = yes && enable_static=no
17208 if test -n "$RANLIB"; then
17209 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17210 postinstall_cmds='$RANLIB $lib'
17215 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17216 test "$enable_shared" = yes && enable_static=no
17220 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17221 echo "${ECHO_T}$enable_shared" >&6; }
17223 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17224 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17225 # Make sure either enable_shared or enable_static is yes.
17226 test "$enable_shared" = yes || enable_static=yes
17227 { echo "$as_me:$LINENO: result: $enable_static" >&5
17228 echo "${ECHO_T}$enable_static" >&6; }
17230 # The else clause should only fire when bootstrapping the
17231 # libtool distribution, otherwise you forgot to ship ltmain.sh
17232 # with your package, and you will get complaints that there are
17233 # no rules to generate ltmain.sh.
17234 if test -f "$ltmain"; then
17235 # See if we are running on zsh, and set the options which allow our commands through
17236 # without removal of \ escapes.
17237 if test -n "${ZSH_VERSION+set}" ; then
17238 setopt NO_GLOB_SUBST
17240 # Now quote all the things that may contain metacharacters while being
17241 # careful not to overquote the AC_SUBSTed values. We take copies of the
17242 # variables and quote the copies for generation of the libtool script.
17243 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17245 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17246 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17247 deplibs_check_method reload_flag reload_cmds need_locks \
17248 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17249 lt_cv_sys_global_symbol_to_c_name_address \
17250 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17251 old_postinstall_cmds old_postuninstall_cmds \
17255 lt_prog_compiler_wl \
17256 lt_prog_compiler_pic \
17257 lt_prog_compiler_static \
17258 lt_prog_compiler_no_builtin_flag \
17259 export_dynamic_flag_spec \
17260 thread_safe_flag_spec \
17261 whole_archive_flag_spec \
17262 enable_shared_with_static_runtimes \
17264 old_archive_from_new_cmds \
17269 compiler_lib_search_path \
17271 archive_expsym_cmds \
17273 postuninstall_cmds \
17274 old_archive_from_expsyms_cmds \
17275 allow_undefined_flag \
17276 no_undefined_flag \
17277 export_symbols_cmds \
17278 hardcode_libdir_flag_spec \
17279 hardcode_libdir_flag_spec_ld \
17280 hardcode_libdir_separator \
17281 hardcode_automatic \
17283 module_expsym_cmds \
17284 lt_cv_prog_compiler_c_o \
17286 include_expsyms; do
17289 old_archive_cmds | \
17290 old_archive_from_new_cmds | \
17292 archive_expsym_cmds | \
17294 module_expsym_cmds | \
17295 old_archive_from_expsyms_cmds | \
17296 export_symbols_cmds | \
17297 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17298 postinstall_cmds | postuninstall_cmds | \
17299 old_postinstall_cmds | old_postuninstall_cmds | \
17300 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17301 # Double-quote double-evaled strings.
17302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17311 *'\$0 --fallback-echo"')
17312 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17316 cfgfile="${ofile}T"
17317 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17319 { echo "$as_me:$LINENO: creating $ofile" >&5
17320 echo "$as_me: creating $ofile" >&6;}
17322 cat <<__EOF__ >> "$cfgfile"
17325 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17326 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17327 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17329 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17330 # Free Software Foundation, Inc.
17332 # This file is part of GNU Libtool:
17333 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17335 # This program is free software; you can redistribute it and/or modify
17336 # it under the terms of the GNU General Public License as published by
17337 # the Free Software Foundation; either version 2 of the License, or
17338 # (at your option) any later version.
17340 # This program is distributed in the hope that it will be useful, but
17341 # WITHOUT ANY WARRANTY; without even the implied warranty of
17342 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17343 # General Public License for more details.
17345 # You should have received a copy of the GNU General Public License
17346 # along with this program; if not, write to the Free Software
17347 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17349 # As a special exception to the GNU General Public License, if you
17350 # distribute this file as part of a program that contains a
17351 # configuration script generated by Autoconf, you may include it under
17352 # the same distribution terms that you use for the rest of that program.
17354 # A sed program that does not truncate output.
17357 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17358 Xsed="$SED -e 1s/^X//"
17360 # The HP-UX ksh and POSIX shell print the target directory to stdout
17361 # if CDPATH is set.
17362 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17364 # The names of the tagged configurations supported by this script.
17367 # ### BEGIN LIBTOOL CONFIG
17369 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17371 # Shell to use when invoking shell scripts.
17374 # Whether or not to build shared libraries.
17375 build_libtool_libs=$enable_shared
17377 # Whether or not to build static libraries.
17378 build_old_libs=$enable_static
17380 # Whether or not to add -lc for building shared libraries.
17381 build_libtool_need_lc=$archive_cmds_need_lc
17383 # Whether or not to disallow shared libs when runtime libs are static
17384 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17386 # Whether or not to optimize for fast installation.
17387 fast_install=$enable_fast_install
17390 host_alias=$host_alias
17394 # The build system.
17395 build_alias=$build_alias
17399 # An echo program that does not interpret backslashes.
17404 AR_FLAGS=$lt_AR_FLAGS
17409 # LTCC compiler flags.
17410 LTCFLAGS=$lt_LTCFLAGS
17412 # A language-specific compiler.
17415 # Is the compiler the GNU C compiler?
17421 # The linker used to build libraries.
17424 # Whether we need hard or soft links.
17427 # A BSD-compatible nm program.
17430 # A symbol stripping program
17433 # Used to examine libraries when file_magic_cmd begins "file"
17434 MAGIC_CMD=$MAGIC_CMD
17436 # Used on cygwin: DLL creation program.
17439 # Used on cygwin: object dumper.
17442 # Used on cygwin: assembler.
17445 # The name of the directory that contains temporary libtool files.
17448 # How to create reloadable object files.
17449 reload_flag=$lt_reload_flag
17450 reload_cmds=$lt_reload_cmds
17452 # How to pass a linker flag through the compiler.
17453 wl=$lt_lt_prog_compiler_wl
17455 # Object file suffix (normally "o").
17456 objext="$ac_objext"
17458 # Old archive suffix (normally "a").
17461 # Shared library suffix (normally ".so").
17462 shrext_cmds='$shrext_cmds'
17464 # Executable file suffix (normally "").
17467 # Additional compiler flags for building library objects.
17468 pic_flag=$lt_lt_prog_compiler_pic
17471 # What is the maximum length of a command?
17472 max_cmd_len=$lt_cv_sys_max_cmd_len
17474 # Does compiler simultaneously support -c and -o options?
17475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17477 # Must we lock files when doing compilation?
17478 need_locks=$lt_need_locks
17480 # Do we need the lib prefix for modules?
17481 need_lib_prefix=$need_lib_prefix
17483 # Do we need a version for libraries?
17484 need_version=$need_version
17486 # Whether dlopen is supported.
17487 dlopen_support=$enable_dlopen
17489 # Whether dlopen of programs is supported.
17490 dlopen_self=$enable_dlopen_self
17492 # Whether dlopen of statically linked programs is supported.
17493 dlopen_self_static=$enable_dlopen_self_static
17495 # Compiler flag to prevent dynamic linking.
17496 link_static_flag=$lt_lt_prog_compiler_static
17498 # Compiler flag to turn off builtin functions.
17499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17501 # Compiler flag to allow reflexive dlopens.
17502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17504 # Compiler flag to generate shared objects directly from archives.
17505 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17507 # Compiler flag to generate thread-safe objects.
17508 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17510 # Library versioning type.
17511 version_type=$version_type
17513 # Format of library name prefix.
17514 libname_spec=$lt_libname_spec
17516 # List of archive names. First name is the real one, the rest are links.
17517 # The last name is the one that the linker finds with -lNAME.
17518 library_names_spec=$lt_library_names_spec
17520 # The coded name of the library, if different from the real name.
17521 soname_spec=$lt_soname_spec
17523 # Commands used to build and install an old-style archive.
17525 old_archive_cmds=$lt_old_archive_cmds
17526 old_postinstall_cmds=$lt_old_postinstall_cmds
17527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17529 # Create an old-style archive from a shared archive.
17530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17532 # Create a temporary old-style archive to link instead of a shared archive.
17533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17535 # Commands used to build and install a shared archive.
17536 archive_cmds=$lt_archive_cmds
17537 archive_expsym_cmds=$lt_archive_expsym_cmds
17538 postinstall_cmds=$lt_postinstall_cmds
17539 postuninstall_cmds=$lt_postuninstall_cmds
17541 # Commands used to build a loadable module (assumed same as above if empty)
17542 module_cmds=$lt_module_cmds
17543 module_expsym_cmds=$lt_module_expsym_cmds
17545 # Commands to strip libraries.
17546 old_striplib=$lt_old_striplib
17547 striplib=$lt_striplib
17549 # Dependencies to place before the objects being linked to create a
17551 predep_objects=$lt_predep_objects
17553 # Dependencies to place after the objects being linked to create a
17555 postdep_objects=$lt_postdep_objects
17557 # Dependencies to place before the objects being linked to create a
17559 predeps=$lt_predeps
17561 # Dependencies to place after the objects being linked to create a
17563 postdeps=$lt_postdeps
17565 # The library search path used internally by the compiler when linking
17566 # a shared library.
17567 compiler_lib_search_path=$lt_compiler_lib_search_path
17569 # Method to check whether dependent libraries are shared objects.
17570 deplibs_check_method=$lt_deplibs_check_method
17572 # Command to use when deplibs_check_method == file_magic.
17573 file_magic_cmd=$lt_file_magic_cmd
17575 # Flag that allows shared libraries with undefined symbols to be built.
17576 allow_undefined_flag=$lt_allow_undefined_flag
17578 # Flag that forces no undefined symbols.
17579 no_undefined_flag=$lt_no_undefined_flag
17581 # Commands used to finish a libtool library installation in a directory.
17582 finish_cmds=$lt_finish_cmds
17584 # Same as above, but a single script fragment to be evaled but not shown.
17585 finish_eval=$lt_finish_eval
17587 # Take the output of nm and produce a listing of raw symbols and C names.
17588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17590 # Transform the output of nm in a proper C declaration
17591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17593 # Transform the output of nm in a C name address pair
17594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17596 # This is the shared library runtime path variable.
17597 runpath_var=$runpath_var
17599 # This is the shared library path variable.
17600 shlibpath_var=$shlibpath_var
17602 # Is shlibpath searched before the hard-coded library search path?
17603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17605 # How to hardcode a shared library path into an executable.
17606 hardcode_action=$hardcode_action
17608 # Whether we should hardcode library paths into libraries.
17609 hardcode_into_libs=$hardcode_into_libs
17611 # Flag to hardcode \$libdir into a binary during linking.
17612 # This must work even if \$libdir does not exist.
17613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17615 # If ld is used when linking, flag to hardcode \$libdir into
17616 # a binary during linking. This must work even if \$libdir does
17618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17620 # Whether we need a single -rpath flag with a separated argument.
17621 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17624 # resulting binary.
17625 hardcode_direct=$hardcode_direct
17627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17628 # resulting binary.
17629 hardcode_minus_L=$hardcode_minus_L
17631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17632 # the resulting binary.
17633 hardcode_shlibpath_var=$hardcode_shlibpath_var
17635 # Set to yes if building a shared library automatically hardcodes DIR into the library
17636 # and all subsequent libraries and executables linked against it.
17637 hardcode_automatic=$hardcode_automatic
17639 # Variables whose values should be saved in libtool wrapper scripts and
17640 # restored at relink time.
17641 variables_saved_for_relink="$variables_saved_for_relink"
17643 # Whether libtool must link a program against all its dependency libraries.
17644 link_all_deplibs=$link_all_deplibs
17646 # Compile-time system search path for libraries
17647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17649 # Run-time system search path for libraries
17650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17652 # Fix the shell variable \$srcfile for the compiler.
17653 fix_srcfile_path="$fix_srcfile_path"
17655 # Set to yes if exported symbols are required.
17656 always_export_symbols=$always_export_symbols
17658 # The commands to list exported symbols.
17659 export_symbols_cmds=$lt_export_symbols_cmds
17661 # The commands to extract the exported symbol list from a shared archive.
17662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17664 # Symbols that should not be listed in the preloaded symbols.
17665 exclude_expsyms=$lt_exclude_expsyms
17667 # Symbols that must always be exported.
17668 include_expsyms=$lt_include_expsyms
17670 # ### END LIBTOOL CONFIG
17677 cat <<\EOF >> "$cfgfile"
17679 # AIX sometimes has problems with the GCC collect2 program. For some
17680 # reason, if we set the COLLECT_NAMES environment variable, the problems
17681 # vanish in a puff of smoke.
17682 if test "X${COLLECT_NAMES+set}" != Xset; then
17684 export COLLECT_NAMES
17690 # We use sed instead of cat because bash on DJGPP gets confused if
17691 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17692 # text mode, it properly converts lines to CR/LF. This bash problem
17693 # is reportedly fixed, but why not run on old versions too?
17694 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17696 mv -f "$cfgfile" "$ofile" || \
17697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17701 # If there is no Makefile yet, we rely on a make rule to execute
17702 # `config.status --recheck' to rerun these tests and create the
17703 # libtool script then.
17704 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17705 if test -f "$ltmain_in"; then
17706 test -f Makefile && make "$ltmain"
17712 ac_cpp='$CPP $CPPFLAGS'
17713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17720 # Check whether --with-tags was given.
17721 if test "${with_tags+set}" = set; then
17722 withval=$with_tags; tagnames="$withval"
17726 if test -f "$ltmain" && test -n "$tagnames"; then
17727 if test ! -f "${ofile}"; then
17728 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17729 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17732 if test -z "$LTCC"; then
17733 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17734 if test -z "$LTCC"; then
17735 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17736 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17738 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17739 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17742 if test -z "$LTCFLAGS"; then
17743 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17746 # Extract list of available tagged configurations in $ofile.
17747 # Note that this assumes the entire list is on one line.
17748 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17751 for tagname in $tagnames; do
17753 # Check whether tagname contains only valid characters
17754 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17756 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17757 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17758 { (exit 1); exit 1; }; }
17762 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17764 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17765 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17766 { (exit 1); exit 1; }; }
17769 # Update the list of available tags.
17770 if test -n "$tagname"; then
17771 echo appending configuration tag \"$tagname\" to $ofile
17775 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17776 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17777 (test "X$CXX" != "Xg++"))) ; then
17779 ac_cpp='$CXXCPP $CPPFLAGS'
17780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17787 archive_cmds_need_lc_CXX=no
17788 allow_undefined_flag_CXX=
17789 always_export_symbols_CXX=no
17790 archive_expsym_cmds_CXX=
17791 export_dynamic_flag_spec_CXX=
17792 hardcode_direct_CXX=no
17793 hardcode_libdir_flag_spec_CXX=
17794 hardcode_libdir_flag_spec_ld_CXX=
17795 hardcode_libdir_separator_CXX=
17796 hardcode_minus_L_CXX=no
17797 hardcode_shlibpath_var_CXX=unsupported
17798 hardcode_automatic_CXX=no
17800 module_expsym_cmds_CXX=
17801 link_all_deplibs_CXX=unknown
17802 old_archive_cmds_CXX=$old_archive_cmds
17803 no_undefined_flag_CXX=
17804 whole_archive_flag_spec_CXX=
17805 enable_shared_with_static_runtimes_CXX=no
17807 # Dependencies to place before and after the object being linked:
17808 predep_objects_CXX=
17809 postdep_objects_CXX=
17812 compiler_lib_search_path_CXX=
17814 # Source file extension for C++ test sources.
17817 # Object file extension for compiled C++ test sources.
17821 # Code to be used in simple compile tests
17822 lt_simple_compile_test_code="int some_variable = 0;\n"
17824 # Code to be used in simple link tests
17825 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17827 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17829 # If no C compiler was specified, use CC.
17832 # If no C compiler flags were specified, use CFLAGS.
17833 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17835 # Allow CC to be a program name with arguments.
17839 # save warnings/boilerplate of simple test code
17840 ac_outfile=conftest.$ac_objext
17841 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17842 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17843 _lt_compiler_boilerplate=`cat conftest.err`
17846 ac_outfile=conftest.$ac_objext
17847 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17848 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17849 _lt_linker_boilerplate=`cat conftest.err`
17853 # Allow CC to be a program name with arguments.
17858 lt_save_with_gnu_ld=$with_gnu_ld
17859 lt_save_path_LD=$lt_cv_path_LD
17860 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17861 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17863 $as_unset lt_cv_prog_gnu_ld
17865 if test -n "${lt_cv_path_LDCXX+set}"; then
17866 lt_cv_path_LD=$lt_cv_path_LDCXX
17868 $as_unset lt_cv_path_LD
17870 test -z "${LDCXX+set}" || LD=$LDCXX
17874 for cc_temp in $compiler""; do
17876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17885 # We don't want -fno-exception wen compiling C++ code, so set the
17886 # no_builtin_flag separately
17887 if test "$GXX" = yes; then
17888 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17890 lt_prog_compiler_no_builtin_flag_CXX=
17893 if test "$GXX" = yes; then
17894 # Set up default GNU C++ configuration
17897 # Check whether --with-gnu-ld was given.
17898 if test "${with_gnu_ld+set}" = set; then
17899 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17905 if test "$GCC" = yes; then
17906 # Check if gcc -print-prog-name=ld gives a path.
17907 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17908 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17911 # gcc leaves a trailing carriage return which upsets mingw
17912 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17914 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17917 # Accept absolute paths.
17919 re_direlt='/[^/][^/]*/\.\./'
17920 # Canonicalize the pathname of ld
17921 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17922 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17923 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17925 test -z "$LD" && LD="$ac_prog"
17928 # If it fails, then pretend we aren't using GCC.
17932 # If it is relative, then search for the first ld in PATH.
17933 with_gnu_ld=unknown
17936 elif test "$with_gnu_ld" = yes; then
17937 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17938 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17940 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17941 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17943 if test "${lt_cv_path_LD+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 if test -z "$LD"; then
17947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17948 for ac_dir in $PATH; do
17950 test -z "$ac_dir" && ac_dir=.
17951 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17952 lt_cv_path_LD="$ac_dir/$ac_prog"
17953 # Check to see if the program is GNU ld. I'd rather use --version,
17954 # but apparently some variants of GNU ld only accept -v.
17955 # Break only if it was the GNU/non-GNU ld that we prefer.
17956 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17957 *GNU* | *'with BFD'*)
17958 test "$with_gnu_ld" != no && break
17961 test "$with_gnu_ld" != yes && break
17968 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17972 LD="$lt_cv_path_LD"
17973 if test -n "$LD"; then
17974 { echo "$as_me:$LINENO: result: $LD" >&5
17975 echo "${ECHO_T}$LD" >&6; }
17977 { echo "$as_me:$LINENO: result: no" >&5
17978 echo "${ECHO_T}no" >&6; }
17980 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17981 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17982 { (exit 1); exit 1; }; }
17983 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17984 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17985 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17989 case `$LD -v 2>&1 </dev/null` in
17990 *GNU* | *'with BFD'*)
17991 lt_cv_prog_gnu_ld=yes
17994 lt_cv_prog_gnu_ld=no
17998 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17999 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18000 with_gnu_ld=$lt_cv_prog_gnu_ld
18004 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18005 # archiving commands below assume that GNU ld is being used.
18006 if test "$with_gnu_ld" = yes; then
18007 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18008 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'
18010 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18011 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18013 # If archive_cmds runs LD, not CC, wlarc should be empty
18014 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18015 # investigate it a little bit more. (MM)
18018 # ancient GNU ld didn't support --whole-archive et. al.
18019 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18020 grep 'no-whole-archive' > /dev/null; then
18021 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18023 whole_archive_flag_spec_CXX=
18029 # A generic and very simple default shared library creation
18030 # command for GNU C++ for the case where it uses the native
18031 # linker, instead of GNU ld. If possible, this setting should
18032 # overridden to take advantage of the native linker features on
18033 # the platform it is being used on.
18034 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18037 # Commands to make compiler produce verbose output that lists
18038 # what "hidden" libraries, object files and flags are used when
18039 # linking a shared library.
18040 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18048 # PORTME: fill in a description of your system's C++ link characteristics
18049 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18050 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18054 # FIXME: insert proper C++ library support
18058 if test "$host_cpu" = ia64; then
18059 # On IA64, the linker does run time linking by default, so we don't
18060 # have to do anything special.
18061 aix_use_runtimelinking=no
18062 exp_sym_flag='-Bexport'
18065 aix_use_runtimelinking=no
18067 # Test if we are trying to use run time linking or normal
18068 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18069 # need to do runtime linking.
18070 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18071 for ld_flag in $LDFLAGS; do
18074 aix_use_runtimelinking=yes
18082 exp_sym_flag='-bexport'
18083 no_entry_flag='-bnoentry'
18086 # When large executables or shared objects are built, AIX ld can
18087 # have problems creating the table of contents. If linking a library
18088 # or program results in "error TOC overflow" add -mminimal-toc to
18089 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18090 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18092 archive_cmds_CXX=''
18093 hardcode_direct_CXX=yes
18094 hardcode_libdir_separator_CXX=':'
18095 link_all_deplibs_CXX=yes
18097 if test "$GXX" = yes; then
18098 case $host_os in aix4.[012]|aix4.[012].*)
18099 # We only want to do this on AIX 4.2 and lower, the check
18100 # below for broken collect2 doesn't work under 4.3+
18101 collect2name=`${CC} -print-prog-name=collect2`
18102 if test -f "$collect2name" && \
18103 strings "$collect2name" | grep resolve_lib_name >/dev/null
18105 # We have reworked collect2
18106 hardcode_direct_CXX=yes
18108 # We have old collect2
18109 hardcode_direct_CXX=unsupported
18110 # It fails to find uninstalled libraries when the uninstalled
18111 # path is not listed in the libpath. Setting hardcode_minus_L
18112 # to unsupported forces relinking
18113 hardcode_minus_L_CXX=yes
18114 hardcode_libdir_flag_spec_CXX='-L$libdir'
18115 hardcode_libdir_separator_CXX=
18119 shared_flag='-shared'
18120 if test "$aix_use_runtimelinking" = yes; then
18121 shared_flag="$shared_flag "'${wl}-G'
18125 if test "$host_cpu" = ia64; then
18126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18127 # chokes on -Wl,-G. The following line is correct:
18130 if test "$aix_use_runtimelinking" = yes; then
18131 shared_flag='${wl}-G'
18133 shared_flag='${wl}-bM:SRE'
18138 # It seems that -bexpall does not export symbols beginning with
18139 # underscore (_), so it is better to generate a list of symbols to export.
18140 always_export_symbols_CXX=yes
18141 if test "$aix_use_runtimelinking" = yes; then
18142 # Warning - without using the other runtime loading flags (-brtl),
18143 # -berok will link without error, but may produce a broken library.
18144 allow_undefined_flag_CXX='-berok'
18145 # Determine the default libpath from the value encoded in an empty executable.
18146 cat >conftest.$ac_ext <<_ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18161 rm -f conftest.$ac_objext conftest$ac_exeext
18162 if { (ac_try="$ac_link"
18163 case "(($ac_try" in
18164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 (eval "$ac_link") 2>conftest.er1
18170 grep -v '^ *+' conftest.er1 >conftest.err
18172 cat conftest.err >&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
18175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; } &&
18185 { ac_try='test -s conftest$ac_exeext'
18186 { (case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_try") 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18198 # Check for a 64-bit object if we didn't find anything.
18199 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; }
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18208 rm -f core conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18212 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18214 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"
18216 if test "$host_cpu" = ia64; then
18217 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18218 allow_undefined_flag_CXX="-z nodefs"
18219 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"
18221 # Determine the default libpath from the value encoded in an empty executable.
18222 cat >conftest.$ac_ext <<_ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h. */
18237 rm -f conftest.$ac_objext conftest$ac_exeext
18238 if { (ac_try="$ac_link"
18239 case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_link") 2>conftest.er1
18246 grep -v '^ *+' conftest.er1 >conftest.err
18248 cat conftest.err >&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
18251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18252 { (case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_try") 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest$ac_exeext'
18262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18274 # Check for a 64-bit object if we didn't find anything.
18275 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; }
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18284 rm -f core conftest.err conftest.$ac_objext \
18285 conftest$ac_exeext conftest.$ac_ext
18286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18288 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18289 # Warning - without using the other run time loading flags,
18290 # -berok will link without error, but may produce a broken library.
18291 no_undefined_flag_CXX=' ${wl}-bernotok'
18292 allow_undefined_flag_CXX=' ${wl}-berok'
18293 # Exported symbols can be pulled into shared objects from archives
18294 whole_archive_flag_spec_CXX='$convenience'
18295 archive_cmds_need_lc_CXX=yes
18296 # This is similar to how AIX traditionally builds its shared libraries.
18297 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'
18303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18304 allow_undefined_flag_CXX=unsupported
18305 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18306 # support --undefined. This deserves some investigation. FIXME
18307 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18314 case $cc_basename in
18316 # FIXME: insert proper C++ library support
18322 cygwin* | mingw* | pw32*)
18323 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18324 # as there is no search path for DLLs.
18325 hardcode_libdir_flag_spec_CXX='-L$libdir'
18326 allow_undefined_flag_CXX=unsupported
18327 always_export_symbols_CXX=no
18328 enable_shared_with_static_runtimes_CXX=yes
18330 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18331 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'
18332 # If the export-symbols file already is a .def file (1st line
18333 # is EXPORTS), use it as is; otherwise, prepend...
18334 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18335 cp $export_symbols $output_objdir/$soname.def;
18337 echo EXPORTS > $output_objdir/$soname.def;
18338 cat $export_symbols >> $output_objdir/$soname.def;
18340 $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'
18345 darwin* | rhapsody*)
18347 rhapsody* | darwin1.[012])
18348 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18351 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18352 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18354 case ${MACOSX_DEPLOYMENT_TARGET} in
18356 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18359 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18365 archive_cmds_need_lc_CXX=no
18366 hardcode_direct_CXX=no
18367 hardcode_automatic_CXX=yes
18368 hardcode_shlibpath_var_CXX=unsupported
18369 whole_archive_flag_spec_CXX=''
18370 link_all_deplibs_CXX=yes
18372 if test "$GXX" = yes ; then
18373 lt_int_apple_cc_single_mod=no
18374 output_verbose_link_cmd='echo'
18375 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18376 lt_int_apple_cc_single_mod=yes
18378 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18379 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18381 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'
18383 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18384 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18385 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18386 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}'
18388 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}'
18390 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}'
18392 case $cc_basename in
18394 output_verbose_link_cmd='echo'
18395 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'
18396 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18398 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}'
18399 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}'
18409 case $cc_basename in
18411 # FIXME: insert proper C++ library support
18415 # Green Hills C++ Compiler
18416 # FIXME: insert proper C++ library support
18420 # FIXME: insert proper C++ library support
18426 # C++ shared libraries reported to be fairly broken before switch to ELF
18430 archive_cmds_need_lc_CXX=no
18432 freebsd* | kfreebsd*-gnu | dragonfly*)
18433 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18440 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18441 hardcode_libdir_separator_CXX=:
18442 export_dynamic_flag_spec_CXX='${wl}-E'
18443 hardcode_direct_CXX=yes
18444 hardcode_minus_L_CXX=yes # Not in the search PATH,
18445 # but as the default
18446 # location of the library.
18448 case $cc_basename in
18450 # FIXME: insert proper C++ library support
18454 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'
18455 # Commands to make compiler produce verbose output that lists
18456 # what "hidden" libraries, object files and flags are used when
18457 # linking a shared library.
18459 # There doesn't appear to be a way to prevent this compiler from
18460 # explicitly linking system object files so we need to strip them
18461 # from the output so that they don't get included in the library
18463 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'
18466 if test "$GXX" = yes; then
18467 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'
18469 # FIXME: insert proper C++ library support
18476 if test $with_gnu_ld = no; then
18477 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18478 hardcode_libdir_separator_CXX=:
18482 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18485 export_dynamic_flag_spec_CXX='${wl}-E'
18491 hardcode_direct_CXX=no
18492 hardcode_shlibpath_var_CXX=no
18495 hardcode_direct_CXX=yes
18496 hardcode_minus_L_CXX=yes # Not in the search PATH,
18497 # but as the default
18498 # location of the library.
18502 case $cc_basename in
18504 # FIXME: insert proper C++ library support
18510 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18513 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18516 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18519 # Commands to make compiler produce verbose output that lists
18520 # what "hidden" libraries, object files and flags are used when
18521 # linking a shared library.
18523 # There doesn't appear to be a way to prevent this compiler from
18524 # explicitly linking system object files so we need to strip them
18525 # from the output so that they don't get included in the library
18527 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'
18530 if test "$GXX" = yes; then
18531 if test $with_gnu_ld = no; then
18534 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18537 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18540 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'
18545 # FIXME: insert proper C++ library support
18552 hardcode_direct_CXX=no
18553 hardcode_shlibpath_var_CXX=no
18554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18555 export_dynamic_flag_spec_CXX='${wl}-E'
18556 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18557 # Instead, shared libraries are loaded at an image base (0x10000000 by
18558 # default) and relocated if they conflict, which is a slow very memory
18559 # consuming and fragmenting process. To avoid this, we pick a random,
18560 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18561 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18562 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'
18563 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'
18566 case $cc_basename in
18569 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'
18571 # Archives containing C++ object files must be created using
18572 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18573 # necessary to make sure instantiated templates are included
18575 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18578 if test "$GXX" = yes; then
18579 if test "$with_gnu_ld" = no; then
18580 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'
18582 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'
18585 link_all_deplibs_CXX=yes
18588 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18589 hardcode_libdir_separator_CXX=:
18592 case $cc_basename in
18594 # Kuck and Associates, Inc. (KAI) C++ Compiler
18596 # KCC will only create a shared library if the output file
18597 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18598 # to its proper name (with version) after linking.
18599 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'
18600 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'
18601 # Commands to make compiler produce verbose output that lists
18602 # what "hidden" libraries, object files and flags are used when
18603 # linking a shared library.
18605 # There doesn't appear to be a way to prevent this compiler from
18606 # explicitly linking system object files so we need to strip them
18607 # from the output so that they don't get included in the library
18609 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'
18611 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18614 # Archives containing C++ object files must be created using
18615 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18616 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18621 # version 8.0 and above of icpc choke on multiply defined symbols
18622 # if we add $predep_objects and $postdep_objects, however 7.1 and
18623 # earlier do not add the objects themselves.
18624 case `$CC -V 2>&1` in
18626 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18627 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'
18629 *) # Version 8.0 or newer
18632 ia64*) tmp_idyn=' -i_dynamic';;
18634 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18635 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'
18638 archive_cmds_need_lc_CXX=no
18639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18641 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18644 # Portland Group C++ compiler
18645 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18646 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'
18648 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18650 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'
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 -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18657 runpath_var=LD_RUN_PATH
18658 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18659 hardcode_libdir_separator_CXX=:
18661 # Commands to make compiler produce verbose output that lists
18662 # what "hidden" libraries, object files and flags are used when
18663 # linking a shared library.
18665 # There doesn't appear to be a way to prevent this compiler from
18666 # explicitly linking system object files so we need to strip them
18667 # from the output so that they don't get included in the library
18669 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'
18674 # FIXME: insert proper C++ library support
18678 # FIXME: insert proper C++ library support
18682 case $cc_basename in
18684 # FIXME: insert proper C++ library support
18688 # FIXME: insert proper C++ library support
18694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18695 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18697 hardcode_libdir_flag_spec_CXX='-R$libdir'
18698 hardcode_direct_CXX=yes
18699 hardcode_shlibpath_var_CXX=no
18701 # Workaround some broken pre-1.5 toolchains
18702 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18705 # C++ shared libraries are fairly broken
18709 hardcode_direct_CXX=yes
18710 hardcode_shlibpath_var_CXX=no
18711 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18712 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18714 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18715 export_dynamic_flag_spec_CXX='${wl}-E'
18716 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18718 output_verbose_link_cmd='echo'
18721 case $cc_basename in
18723 # Kuck and Associates, Inc. (KAI) C++ Compiler
18725 # KCC will only create a shared library if the output file
18726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18727 # to its proper name (with version) after linking.
18728 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'
18730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18731 hardcode_libdir_separator_CXX=:
18733 # Archives containing C++ object files must be created using
18734 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18735 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18739 # Rational C++ 2.4.1
18740 # FIXME: insert proper C++ library support
18744 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18745 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'
18747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18748 hardcode_libdir_separator_CXX=:
18750 # Commands to make compiler produce verbose output that lists
18751 # what "hidden" libraries, object files and flags are used when
18752 # linking a shared library.
18754 # There doesn't appear to be a way to prevent this compiler from
18755 # explicitly linking system object files so we need to strip them
18756 # from the output so that they don't get included in the library
18758 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'
18761 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18762 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18763 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'
18765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18766 hardcode_libdir_separator_CXX=:
18768 # Commands to make compiler produce verbose output that lists
18769 # what "hidden" libraries, object files and flags are used when
18770 # linking a shared library.
18771 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18774 # FIXME: insert proper C++ library support
18781 case $cc_basename in
18783 # Kuck and Associates, Inc. (KAI) C++ Compiler
18785 # KCC will only create a shared library if the output file
18786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18787 # to its proper name (with version) after linking.
18788 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'
18790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18791 hardcode_libdir_separator_CXX=:
18793 # Archives containing C++ object files must be created using
18794 # the KAI C++ compiler.
18795 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18798 # Rational C++ 2.4.1
18799 # FIXME: insert proper C++ library support
18803 allow_undefined_flag_CXX=' -expect_unresolved \*'
18804 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'
18805 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18806 echo "-hidden">> $lib.exp~
18807 $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~
18810 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18811 hardcode_libdir_separator_CXX=:
18813 # Commands to make compiler produce verbose output that lists
18814 # what "hidden" libraries, object files and flags are used when
18815 # linking a shared library.
18817 # There doesn't appear to be a way to prevent this compiler from
18818 # explicitly linking system object files so we need to strip them
18819 # from the output so that they don't get included in the library
18821 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'
18824 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18825 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18826 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'
18828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18829 hardcode_libdir_separator_CXX=:
18831 # Commands to make compiler produce verbose output that lists
18832 # what "hidden" libraries, object files and flags are used when
18833 # linking a shared library.
18834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18837 # FIXME: insert proper C++ library support
18844 # FIXME: insert proper C++ library support
18848 case $cc_basename in
18851 # FIXME: insert proper C++ library support
18856 # FIXME: insert proper C++ library support
18860 # FIXME: insert proper C++ library support
18866 case $cc_basename in
18868 # Sun C++ 4.2, 5.x and Centerline C++
18869 archive_cmds_need_lc_CXX=yes
18870 no_undefined_flag_CXX=' -zdefs'
18871 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18872 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18873 $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'
18875 hardcode_libdir_flag_spec_CXX='-R$libdir'
18876 hardcode_shlibpath_var_CXX=no
18878 solaris2.[0-5] | solaris2.[0-5].*) ;;
18880 # The C++ compiler is used as linker so we must use $wl
18881 # flag to pass the commands to the underlying system
18882 # linker. We must also pass each convience library through
18883 # to the system linker between allextract/defaultextract.
18884 # The C++ compiler will combine linker options so we
18885 # cannot just pass the convience library names through
18887 # Supported since Solaris 2.6 (maybe 2.5.1?)
18888 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'
18891 link_all_deplibs_CXX=yes
18893 output_verbose_link_cmd='echo'
18895 # Archives containing C++ object files must be created using
18896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18897 # necessary to make sure instantiated templates are included
18899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18902 # Green Hills C++ Compiler
18903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18905 # The C++ compiler must be used to create the archive.
18906 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18909 # GNU C++ compiler with Solaris linker
18910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18911 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18912 if $CC --version | grep -v '^2\.7' > /dev/null; then
18913 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18914 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18915 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18917 # Commands to make compiler produce verbose output that lists
18918 # what "hidden" libraries, object files and flags are used when
18919 # linking a shared library.
18920 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18922 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18924 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18925 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18926 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18928 # Commands to make compiler produce verbose output that lists
18929 # what "hidden" libraries, object files and flags are used when
18930 # linking a shared library.
18931 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18934 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18939 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18940 no_undefined_flag_CXX='${wl}-z,text'
18941 archive_cmds_need_lc_CXX=no
18942 hardcode_shlibpath_var_CXX=no
18943 runpath_var='LD_RUN_PATH'
18945 case $cc_basename in
18947 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18948 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18951 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18952 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18956 sysv5* | sco3.2v5* | sco5v6*)
18957 # Note: We can NOT use -z defs as we might desire, because we do not
18958 # link with -lc, and that would cause any symbols used from libc to
18959 # always be unresolved, which means just about no library would
18960 # ever link correctly. If we're not using GNU ld we use -z text
18961 # though, which does catch some bad symbols but isn't as heavy-handed
18963 # For security reasons, it is highly recommended that you always
18964 # use absolute paths for naming shared libraries, and exclude the
18965 # DT_RUNPATH tag from executables and libraries. But doing so
18966 # requires that you compile everything twice, which is a pain.
18967 # So that behaviour is only enabled if SCOABSPATH is set to a
18968 # non-empty value in the environment. Most likely only useful for
18969 # creating official distributions of packages.
18970 # This is a hack until libtool officially supports absolute path
18971 # names for shared libraries.
18972 no_undefined_flag_CXX='${wl}-z,text'
18973 allow_undefined_flag_CXX='${wl}-z,nodefs'
18974 archive_cmds_need_lc_CXX=no
18975 hardcode_shlibpath_var_CXX=no
18976 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18977 hardcode_libdir_separator_CXX=':'
18978 link_all_deplibs_CXX=yes
18979 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18980 runpath_var='LD_RUN_PATH'
18982 case $cc_basename in
18984 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18985 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18988 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18989 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18994 case $cc_basename in
18996 # NonStop-UX NCC 3.20
18997 # FIXME: insert proper C++ library support
19001 # FIXME: insert proper C++ library support
19007 # FIXME: insert proper C++ library support
19011 # FIXME: insert proper C++ library support
19015 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19016 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19017 test "$ld_shlibs_CXX" = no && can_build_shared=no
19023 cat > conftest.$ac_ext <<EOF
19027 Foo (void) { a = 0; }
19033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19034 (eval $ac_compile) 2>&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; then
19038 # Parse the compiler output and extract the necessary
19039 # objects, libraries and library flags.
19041 # Sentinel used to keep track of whether or not we are before
19042 # the conftest object file.
19043 pre_test_object_deps_done=no
19045 # The `*' in the case matches for architectures that use `case' in
19046 # $output_verbose_cmd can trigger glob expansion during the loop
19047 # eval without this substitution.
19048 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19050 for p in `eval $output_verbose_link_cmd`; do
19054 # Some compilers place space between "-{L,R}" and the path.
19055 # Remove the space.
19056 if test $p = "-L" \
19057 || test $p = "-R"; then
19064 if test "$pre_test_object_deps_done" = no; then
19067 # Internal compiler library paths should come after those
19068 # provided the user. The postdeps already come after the
19069 # user supplied libs so there is no need to process them.
19070 if test -z "$compiler_lib_search_path_CXX"; then
19071 compiler_lib_search_path_CXX="${prev}${p}"
19073 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19076 # The "-l" case would never come before the object being
19077 # linked, so don't bother handling this case.
19080 if test -z "$postdeps_CXX"; then
19081 postdeps_CXX="${prev}${p}"
19083 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19089 # This assumes that the test object file only shows up
19090 # once in the compiler output.
19091 if test "$p" = "conftest.$objext"; then
19092 pre_test_object_deps_done=yes
19096 if test "$pre_test_object_deps_done" = no; then
19097 if test -z "$predep_objects_CXX"; then
19098 predep_objects_CXX="$p"
19100 predep_objects_CXX="$predep_objects_CXX $p"
19103 if test -z "$postdep_objects_CXX"; then
19104 postdep_objects_CXX="$p"
19106 postdep_objects_CXX="$postdep_objects_CXX $p"
19111 *) ;; # Ignore the rest.
19119 echo "libtool.m4: error: problem compiling CXX test program"
19122 $rm -f confest.$objext
19124 # PORTME: override above test on systems where it is broken
19127 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19128 # hack all around it, let's just trust "g++" to DTRT.
19129 predep_objects_CXX=
19130 postdep_objects_CXX=
19135 case $cc_basename in
19137 # Adding this requires a known-good setup of shared libraries for
19138 # Sun compiler versions before 5.6, else PIC objects from an old
19139 # archive will be linked into the output, leading to subtle bugs.
19140 postdeps_CXX='-lCstd -lCrun'
19147 case " $postdeps_CXX " in
19148 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19151 lt_prog_compiler_wl_CXX=
19152 lt_prog_compiler_pic_CXX=
19153 lt_prog_compiler_static_CXX=
19155 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19158 # C++ specific cases for pic, static, wl, etc.
19159 if test "$GXX" = yes; then
19160 lt_prog_compiler_wl_CXX='-Wl,'
19161 lt_prog_compiler_static_CXX='-static'
19165 # All AIX code is PIC.
19166 if test "$host_cpu" = ia64; then
19167 # AIX 5 now supports IA64 processor
19168 lt_prog_compiler_static_CXX='-Bstatic'
19172 # FIXME: we need at least 68020 code to build shared libraries, but
19173 # adding the `-m68020' flag to GCC prevents building anything better,
19175 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19177 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19178 # PIC is the default for these OSes.
19180 mingw* | os2* | pw32*)
19181 # This hack is so that the source file can tell whether it is being
19182 # built for inclusion in a dll (and should export symbols for example).
19183 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19185 darwin* | rhapsody*)
19186 # PIC is the default on this platform
19187 # Common symbols not allowed in MH_DYLIB files
19188 lt_prog_compiler_pic_CXX='-fno-common'
19191 # DJGPP does not support shared libraries at all
19192 lt_prog_compiler_pic_CXX=
19195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19196 # Instead, we relocate shared libraries at runtime.
19199 if test -d /usr/nec; then
19200 lt_prog_compiler_pic_CXX=-Kconform_pic
19204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19205 # not for PA HP-UX.
19210 lt_prog_compiler_pic_CXX='-fPIC'
19215 lt_prog_compiler_pic_CXX='-fPIC'
19221 # All AIX code is PIC.
19222 if test "$host_cpu" = ia64; then
19223 # AIX 5 now supports IA64 processor
19224 lt_prog_compiler_static_CXX='-Bstatic'
19226 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19230 case $cc_basename in
19232 # Green Hills C++ Compiler
19233 # _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"
19238 # PIC is the default on this platform
19239 # Common symbols not allowed in MH_DYLIB files
19240 case $cc_basename in
19242 lt_prog_compiler_pic_CXX='-qnocommon'
19243 lt_prog_compiler_wl_CXX='-Wl,'
19248 case $cc_basename in
19250 lt_prog_compiler_pic_CXX='-KPIC'
19253 # Green Hills C++ Compiler
19254 lt_prog_compiler_pic_CXX='-pic'
19260 freebsd* | kfreebsd*-gnu | dragonfly*)
19261 # FreeBSD uses GNU C++
19263 hpux9* | hpux10* | hpux11*)
19264 case $cc_basename in
19266 lt_prog_compiler_wl_CXX='-Wl,'
19267 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19268 if test "$host_cpu" != ia64; then
19269 lt_prog_compiler_pic_CXX='+Z'
19273 lt_prog_compiler_wl_CXX='-Wl,'
19274 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19280 lt_prog_compiler_pic_CXX='+Z'
19289 # This is c89, which is MS Visual C++ (no shared libs)
19290 # Anyone wants to do a port?
19292 irix5* | irix6* | nonstopux*)
19293 case $cc_basename in
19295 lt_prog_compiler_wl_CXX='-Wl,'
19296 lt_prog_compiler_static_CXX='-non_shared'
19297 # CC pic flag -KPIC is the default.
19304 case $cc_basename in
19307 lt_prog_compiler_wl_CXX='--backend -Wl,'
19308 lt_prog_compiler_pic_CXX='-fPIC'
19312 lt_prog_compiler_wl_CXX='-Wl,'
19313 lt_prog_compiler_pic_CXX='-KPIC'
19314 lt_prog_compiler_static_CXX='-static'
19317 # Portland Group C++ compiler.
19318 lt_prog_compiler_wl_CXX='-Wl,'
19319 lt_prog_compiler_pic_CXX='-fpic'
19320 lt_prog_compiler_static_CXX='-Bstatic'
19324 # Make sure the PIC flag is empty. It appears that all Alpha
19325 # Linux and Compaq Tru64 Unix objects are PIC.
19326 lt_prog_compiler_pic_CXX=
19327 lt_prog_compiler_static_CXX='-non_shared'
19338 case $cc_basename in
19340 lt_prog_compiler_pic_CXX='-W c,exportall'
19348 osf3* | osf4* | osf5*)
19349 case $cc_basename in
19351 lt_prog_compiler_wl_CXX='--backend -Wl,'
19354 # Rational C++ 2.4.1
19355 lt_prog_compiler_pic_CXX='-pic'
19358 # Digital/Compaq C++
19359 lt_prog_compiler_wl_CXX='-Wl,'
19360 # Make sure the PIC flag is empty. It appears that all Alpha
19361 # Linux and Compaq Tru64 Unix objects are PIC.
19362 lt_prog_compiler_pic_CXX=
19363 lt_prog_compiler_static_CXX='-non_shared'
19372 case $cc_basename in
19374 # Sun C++ 4.2, 5.x and Centerline C++
19375 lt_prog_compiler_pic_CXX='-KPIC'
19376 lt_prog_compiler_static_CXX='-Bstatic'
19377 lt_prog_compiler_wl_CXX='-Qoption ld '
19380 # Green Hills C++ Compiler
19381 lt_prog_compiler_pic_CXX='-PIC'
19388 case $cc_basename in
19391 lt_prog_compiler_pic_CXX='-pic'
19392 lt_prog_compiler_static_CXX='-Bstatic'
19396 lt_prog_compiler_pic_CXX='-pic'
19403 case $cc_basename in
19405 # NonStop-UX NCC 3.20
19406 lt_prog_compiler_pic_CXX='-KPIC'
19412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19413 case $cc_basename in
19415 lt_prog_compiler_wl_CXX='-Wl,'
19416 lt_prog_compiler_pic_CXX='-KPIC'
19417 lt_prog_compiler_static_CXX='-Bstatic'
19424 lt_prog_compiler_can_build_shared_CXX=no
19429 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19430 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19433 # Check to make sure the PIC flag actually works.
19435 if test -n "$lt_prog_compiler_pic_CXX"; then
19437 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19438 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19439 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19442 lt_prog_compiler_pic_works_CXX=no
19443 ac_outfile=conftest.$ac_objext
19444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19445 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19446 # Insert the option either (1) after the last *FLAGS variable, or
19447 # (2) before a word containing "conftest.", or (3) at the end.
19448 # Note that $ac_compile itself does not contain backslashes and begins
19449 # with a dollar sign (not a hyphen), so the echo should work correctly.
19450 # The option is referenced via a variable to avoid confusing sed.
19451 lt_compile=`echo "$ac_compile" | $SED \
19452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19454 -e 's:$: $lt_compiler_flag:'`
19455 (eval echo "\"\$as_me:19455: $lt_compile\"" >&5)
19456 (eval "$lt_compile" 2>conftest.err)
19458 cat conftest.err >&5
19459 echo "$as_me:19459: \$? = $ac_status" >&5
19460 if (exit $ac_status) && test -s "$ac_outfile"; then
19461 # The compiler can only warn and ignore the option if not recognized
19462 # So say no if there are warnings other than the usual output.
19463 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19466 lt_prog_compiler_pic_works_CXX=yes
19472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19473 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19475 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19476 case $lt_prog_compiler_pic_CXX in
19478 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19481 lt_prog_compiler_pic_CXX=
19482 lt_prog_compiler_can_build_shared_CXX=no
19487 # For platforms which do not support PIC, -DPIC is meaningless:
19489 lt_prog_compiler_pic_CXX=
19492 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19497 # Check to make sure the static flag actually works.
19499 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19500 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19501 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19502 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 lt_prog_compiler_static_works_CXX=no
19506 save_LDFLAGS="$LDFLAGS"
19507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19508 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19510 # The linker can only warn and ignore the option if not recognized
19511 # So say no if there are warnings
19512 if test -s conftest.err; then
19513 # Append any errors to the config.log.
19514 cat conftest.err 1>&5
19515 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19517 if diff conftest.exp conftest.er2 >/dev/null; then
19518 lt_prog_compiler_static_works_CXX=yes
19521 lt_prog_compiler_static_works_CXX=yes
19525 LDFLAGS="$save_LDFLAGS"
19528 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19529 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19531 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19534 lt_prog_compiler_static_CXX=
19538 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19540 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 lt_cv_prog_compiler_c_o_CXX=no
19544 $rm -r conftest 2>/dev/null
19548 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19550 lt_compiler_flag="-o out/conftest2.$ac_objext"
19551 # Insert the option either (1) after the last *FLAGS variable, or
19552 # (2) before a word containing "conftest.", or (3) at the end.
19553 # Note that $ac_compile itself does not contain backslashes and begins
19554 # with a dollar sign (not a hyphen), so the echo should work correctly.
19555 lt_compile=`echo "$ac_compile" | $SED \
19556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19558 -e 's:$: $lt_compiler_flag:'`
19559 (eval echo "\"\$as_me:19559: $lt_compile\"" >&5)
19560 (eval "$lt_compile" 2>out/conftest.err)
19562 cat out/conftest.err >&5
19563 echo "$as_me:19563: \$? = $ac_status" >&5
19564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19566 # The compiler can only warn and ignore the option if not recognized
19567 # So say no if there are warnings
19568 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19571 lt_cv_prog_compiler_c_o_CXX=yes
19576 # SGI C++ compiler will create directory out/ii_files/ for
19577 # template instantiation
19578 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19579 $rm out/* && rmdir out
19585 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19586 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19589 hard_links="nottested"
19590 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19591 # do not overwrite the value of need_locks provided by the user
19592 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19593 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19598 ln conftest.a conftest.b 2>&5 || hard_links=no
19599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19600 { echo "$as_me:$LINENO: result: $hard_links" >&5
19601 echo "${ECHO_T}$hard_links" >&6; }
19602 if test "$hard_links" = no; then
19603 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19604 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19611 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19614 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19617 # If we're using GNU nm, then we don't want the "-C" option.
19618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19619 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19620 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'
19622 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'
19626 export_symbols_cmds_CXX="$ltdll_cmds"
19629 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'
19632 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19636 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19637 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19638 test "$ld_shlibs_CXX" = no && can_build_shared=no
19641 # Do we need to explicitly link libc?
19643 case "x$archive_cmds_need_lc_CXX" in
19645 # Assume -lc should be added
19646 archive_cmds_need_lc_CXX=yes
19648 if test "$enable_shared" = yes && test "$GCC" = yes; then
19649 case $archive_cmds_CXX in
19651 # FIXME: we may have to deal with multi-command sequences.
19654 # Test whether the compiler implicitly links with -lc since on some
19655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19656 # to ld, don't add -lc before -lgcc.
19657 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19658 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663 (eval $ac_compile) 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } 2>conftest.err; then
19669 libobjs=conftest.$ac_objext
19671 wl=$lt_prog_compiler_wl_CXX
19672 pic_flag=$lt_prog_compiler_pic_CXX
19678 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19679 allow_undefined_flag_CXX=
19680 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19681 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }
19686 archive_cmds_need_lc_CXX=no
19688 archive_cmds_need_lc_CXX=yes
19690 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19692 cat conftest.err 1>&5
19695 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19696 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19703 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19704 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19705 library_names_spec=
19706 libname_spec='lib$name'
19710 postuninstall_cmds=
19714 shlibpath_overrides_runpath=unknown
19716 dynamic_linker="$host_os ld.so"
19717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19718 if test "$GCC" = yes; then
19719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19720 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19721 # if the path contains ";" then we assume it to be the separator
19722 # otherwise default to the standard path separator (i.e. ":") - it is
19723 # assumed that no part of a normal pathname contains ";" but that should
19724 # okay in the real world where ";" in dirpaths is itself problematic.
19725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19732 need_lib_prefix=unknown
19733 hardcode_into_libs=no
19735 # when you set need_version to no, make sure it does not cause -set_version
19736 # flags to be left without arguments
19737 need_version=unknown
19742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19743 shlibpath_var=LIBPATH
19745 # AIX 3 has no versioning support, so we append a major version to the name.
19746 soname_spec='${libname}${release}${shared_ext}$major'
19753 hardcode_into_libs=yes
19754 if test "$host_cpu" = ia64; then
19755 # AIX 5 supports IA64
19756 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19757 shlibpath_var=LD_LIBRARY_PATH
19759 # With GCC up to 2.95.x, collect2 would create an import file
19760 # for dependence libraries. The import file would start with
19761 # the line `#! .'. This would cause the generated library to
19762 # depend on `.', always an invalid library. This was fixed in
19763 # development snapshots of GCC prior to 3.0.
19765 aix4 | aix4.[01] | aix4.[01].*)
19766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19768 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19771 can_build_shared=no
19775 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19776 # soname into executable. Probably we can add versioning support to
19777 # collect2, so additional links can be useful in future.
19778 if test "$aix_use_runtimelinking" = yes; then
19779 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19780 # instead of lib<name>.a to let people know that these are not
19781 # typical AIX shared libraries.
19782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784 # We preserve .a as extension for shared libraries through AIX4.2
19785 # and later when we are not doing run time linking.
19786 library_names_spec='${libname}${release}.a $libname.a'
19787 soname_spec='${libname}${release}${shared_ext}$major'
19789 shlibpath_var=LIBPATH
19794 library_names_spec='$libname.ixlibrary $libname.a'
19795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19796 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'
19800 library_names_spec='${libname}${shared_ext}'
19801 dynamic_linker="$host_os ld.so"
19802 shlibpath_var=LIBRARY_PATH
19808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19809 soname_spec='${libname}${release}${shared_ext}$major'
19810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19811 shlibpath_var=LD_LIBRARY_PATH
19812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19814 # the default ld.so.conf also contains /usr/contrib/lib and
19815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19816 # libtool to hard-code these into programs
19819 cygwin* | mingw* | pw32*)
19820 version_type=windows
19825 case $GCC,$host_os in
19826 yes,cygwin* | yes,mingw* | yes,pw32*)
19827 library_names_spec='$libname.dll.a'
19828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19829 postinstall_cmds='base_file=`basename \${file}`~
19830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19831 dldir=$destdir/`dirname \$dlpath`~
19832 test -d \$dldir || mkdir -p \$dldir~
19833 $install_prog $dir/$dlname \$dldir/$dlname~
19834 chmod a+x \$dldir/$dlname'
19835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19836 dlpath=$dir/\$dldll~
19838 shlibpath_overrides_runpath=yes
19842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19847 # MinGW DLLs use traditional 'lib' prefix
19848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19850 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19851 # It is most probably a Windows format PATH printed by
19852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19853 # path with ; separators, and with drive letters. We can handle the
19854 # drive letters (cygwin fileutils understands them), so leave them,
19855 # especially as we might pass files found there to a mingw objdump,
19856 # which wouldn't understand a cygwinified path. Ahh.
19857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19863 # pw32 DLLs use 'pw' prefix rather than 'lib'
19864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19873 dynamic_linker='Win32 ld.exe'
19874 # FIXME: first we should search . and the directory the executable is in
19878 darwin* | rhapsody*)
19879 dynamic_linker="$host_os dyld"
19880 version_type=darwin
19883 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19884 soname_spec='${libname}${release}${major}$shared_ext'
19885 shlibpath_overrides_runpath=yes
19886 shlibpath_var=DYLD_LIBRARY_PATH
19887 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19888 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19889 if test "$GCC" = yes; then
19890 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"`
19892 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19902 soname_spec='${libname}${release}${shared_ext}$major'
19903 shlibpath_var=LD_LIBRARY_PATH
19914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19915 soname_spec='${libname}${release}${shared_ext}$major'
19916 shlibpath_var=LD_LIBRARY_PATH
19917 shlibpath_overrides_runpath=no
19918 hardcode_into_libs=yes
19919 dynamic_linker='GNU ld.so'
19922 freebsd* | dragonfly*)
19923 # DragonFly does not have aout. When/if they implement a new
19924 # versioning mechanism, adjust this.
19925 if test -x /usr/bin/objformat; then
19926 objformat=`/usr/bin/objformat`
19929 freebsd[123]*) objformat=aout ;;
19930 *) objformat=elf ;;
19933 version_type=freebsd-$objformat
19934 case $version_type in
19936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19945 shlibpath_var=LD_LIBRARY_PATH
19948 shlibpath_overrides_runpath=yes
19950 freebsd3.[01]* | freebsdelf3.[01]*)
19951 shlibpath_overrides_runpath=yes
19952 hardcode_into_libs=yes
19954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19956 shlibpath_overrides_runpath=no
19957 hardcode_into_libs=yes
19959 freebsd*) # from 4.6 on
19960 shlibpath_overrides_runpath=yes
19961 hardcode_into_libs=yes
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19971 soname_spec='${libname}${release}${shared_ext}$major'
19972 shlibpath_var=LD_LIBRARY_PATH
19973 hardcode_into_libs=yes
19976 hpux9* | hpux10* | hpux11*)
19977 # Give a soname corresponding to the major version so that dld.sl refuses to
19978 # link against other versions.
19985 hardcode_into_libs=yes
19986 dynamic_linker="$host_os dld.so"
19987 shlibpath_var=LD_LIBRARY_PATH
19988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19990 soname_spec='${libname}${release}${shared_ext}$major'
19991 if test "X$HPUX_IA64_MODE" = X32; then
19992 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19994 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20000 hardcode_into_libs=yes
20001 dynamic_linker="$host_os dld.sl"
20002 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20005 soname_spec='${libname}${release}${shared_ext}$major'
20006 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20011 dynamic_linker="$host_os dld.sl"
20012 shlibpath_var=SHLIB_PATH
20013 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20015 soname_spec='${libname}${release}${shared_ext}$major'
20018 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20019 postinstall_cmds='chmod 555 $lib'
20026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20027 soname_spec='${libname}${release}${shared_ext}$major'
20028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20029 shlibpath_var=LD_LIBRARY_PATH
20030 shlibpath_overrides_runpath=no
20031 hardcode_into_libs=yes
20034 irix5* | irix6* | nonstopux*)
20036 nonstopux*) version_type=nonstopux ;;
20038 if test "$lt_cv_prog_gnu_ld" = yes; then
20046 soname_spec='${libname}${release}${shared_ext}$major'
20047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20049 irix5* | nonstopux*)
20050 libsuff= shlibsuff=
20053 case $LD in # libtool.m4 will add one of these switches to LD
20054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20055 libsuff= shlibsuff= libmagic=32-bit;;
20056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20057 libsuff=32 shlibsuff=N32 libmagic=N32;;
20058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20060 *) libsuff= shlibsuff= libmagic=never-match;;
20064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20065 shlibpath_overrides_runpath=no
20066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20068 hardcode_into_libs=yes
20071 # No shared lib support for Linux oldld, aout, or coff.
20072 linux*oldld* | linux*aout* | linux*coff*)
20076 # This must be Linux ELF.
20081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20082 soname_spec='${libname}${release}${shared_ext}$major'
20083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20084 shlibpath_var=LD_LIBRARY_PATH
20085 shlibpath_overrides_runpath=no
20086 # This implies no fast_install, which is unacceptable.
20087 # Some rework will be needed to allow for fast_install
20088 # before this can be enabled.
20089 hardcode_into_libs=yes
20091 # Append ld.so.conf contents to the search path
20092 if test -f /etc/ld.so.conf; then
20093 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' ' '`
20094 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20097 # We used to test for /lib/ld.so.1 and disable shared libraries on
20098 # powerpc, because MkLinux only supported shared libraries with the
20099 # GNU dynamic linker. Since this was broken with cross compilers,
20100 # most powerpc-linux boxes support dynamic linking these days and
20101 # people can always --disable-shared, the test was removed, and we
20102 # assume the GNU/Linux dynamic linker is in use.
20103 dynamic_linker='GNU/Linux ld.so'
20110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20111 soname_spec='${libname}${release}${shared_ext}$major'
20112 shlibpath_var=LD_LIBRARY_PATH
20113 shlibpath_overrides_runpath=no
20114 hardcode_into_libs=yes
20115 dynamic_linker='GNU ld.so'
20122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20125 dynamic_linker='NetBSD (a.out) ld.so'
20127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20128 soname_spec='${libname}${release}${shared_ext}$major'
20129 dynamic_linker='NetBSD ld.elf_so'
20131 shlibpath_var=LD_LIBRARY_PATH
20132 shlibpath_overrides_runpath=yes
20133 hardcode_into_libs=yes
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139 shlibpath_var=LD_LIBRARY_PATH
20140 shlibpath_overrides_runpath=yes
20147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20148 soname_spec='${libname}${release}${shared_ext}$major'
20149 shlibpath_var=LD_LIBRARY_PATH
20150 shlibpath_overrides_runpath=yes
20155 sys_lib_dlsearch_path_spec="/usr/lib"
20157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20160 *) need_version=no ;;
20162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20164 shlibpath_var=LD_LIBRARY_PATH
20165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20167 openbsd2.[89] | openbsd2.[89].*)
20168 shlibpath_overrides_runpath=no
20171 shlibpath_overrides_runpath=yes
20175 shlibpath_overrides_runpath=yes
20180 libname_spec='$name'
20183 library_names_spec='$libname${shared_ext} $libname.a'
20184 dynamic_linker='OS/2 ld.exe'
20185 shlibpath_var=LIBPATH
20188 osf3* | osf4* | osf5*)
20192 soname_spec='${libname}${release}${shared_ext}$major'
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20194 shlibpath_var=LD_LIBRARY_PATH
20195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204 soname_spec='${libname}${release}${shared_ext}$major'
20205 shlibpath_var=LD_LIBRARY_PATH
20206 shlibpath_overrides_runpath=yes
20207 hardcode_into_libs=yes
20208 # ldd complains unless libraries are executable
20209 postinstall_cmds='chmod +x $lib'
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20216 shlibpath_var=LD_LIBRARY_PATH
20217 shlibpath_overrides_runpath=yes
20218 if test "$with_gnu_ld" = yes; then
20226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20227 soname_spec='${libname}${release}${shared_ext}$major'
20228 shlibpath_var=LD_LIBRARY_PATH
20229 case $host_vendor in
20231 shlibpath_overrides_runpath=no
20233 export_dynamic_flag_spec='${wl}-Blargedynsym'
20234 runpath_var=LD_RUN_PATH
20242 shlibpath_overrides_runpath=no
20243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20249 if test -d /usr/nec ;then
20251 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20252 soname_spec='$libname${shared_ext}.$major'
20253 shlibpath_var=LD_LIBRARY_PATH
20257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20258 version_type=freebsd-elf
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 shlibpath_var=LD_LIBRARY_PATH
20264 hardcode_into_libs=yes
20265 if test "$with_gnu_ld" = yes; then
20266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20267 shlibpath_overrides_runpath=no
20269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20270 shlibpath_overrides_runpath=yes
20273 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20277 sys_lib_dlsearch_path_spec='/usr/lib'
20282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283 soname_spec='${libname}${release}${shared_ext}$major'
20284 shlibpath_var=LD_LIBRARY_PATH
20291 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20292 echo "${ECHO_T}$dynamic_linker" >&6; }
20293 test "$dynamic_linker" = no && can_build_shared=no
20295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20296 if test "$GCC" = yes; then
20297 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20300 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20301 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20302 hardcode_action_CXX=
20303 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20304 test -n "$runpath_var_CXX" || \
20305 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20307 # We can hardcode non-existant directories.
20308 if test "$hardcode_direct_CXX" != no &&
20309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20310 # have to relink, otherwise we might link with an installed library
20311 # when we should be linking with a yet-to-be-installed one
20312 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20313 test "$hardcode_minus_L_CXX" != no; then
20314 # Linking always hardcodes the temporary library directory.
20315 hardcode_action_CXX=relink
20317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20318 hardcode_action_CXX=immediate
20321 # We cannot hardcode anything, or else we can only hardcode existing
20323 hardcode_action_CXX=unsupported
20325 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20326 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20328 if test "$hardcode_action_CXX" = relink; then
20329 # Fast installation is not supported
20330 enable_fast_install=no
20331 elif test "$shlibpath_overrides_runpath" = yes ||
20332 test "$enable_shared" = no; then
20333 # Fast installation is not necessary
20334 enable_fast_install=needless
20338 # The else clause should only fire when bootstrapping the
20339 # libtool distribution, otherwise you forgot to ship ltmain.sh
20340 # with your package, and you will get complaints that there are
20341 # no rules to generate ltmain.sh.
20342 if test -f "$ltmain"; then
20343 # See if we are running on zsh, and set the options which allow our commands through
20344 # without removal of \ escapes.
20345 if test -n "${ZSH_VERSION+set}" ; then
20346 setopt NO_GLOB_SUBST
20348 # Now quote all the things that may contain metacharacters while being
20349 # careful not to overquote the AC_SUBSTed values. We take copies of the
20350 # variables and quote the copies for generation of the libtool script.
20351 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20353 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20354 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20355 deplibs_check_method reload_flag reload_cmds need_locks \
20356 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20357 lt_cv_sys_global_symbol_to_c_name_address \
20358 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20359 old_postinstall_cmds old_postuninstall_cmds \
20363 lt_prog_compiler_wl_CXX \
20364 lt_prog_compiler_pic_CXX \
20365 lt_prog_compiler_static_CXX \
20366 lt_prog_compiler_no_builtin_flag_CXX \
20367 export_dynamic_flag_spec_CXX \
20368 thread_safe_flag_spec_CXX \
20369 whole_archive_flag_spec_CXX \
20370 enable_shared_with_static_runtimes_CXX \
20371 old_archive_cmds_CXX \
20372 old_archive_from_new_cmds_CXX \
20373 predep_objects_CXX \
20374 postdep_objects_CXX \
20377 compiler_lib_search_path_CXX \
20379 archive_expsym_cmds_CXX \
20380 postinstall_cmds_CXX \
20381 postuninstall_cmds_CXX \
20382 old_archive_from_expsyms_cmds_CXX \
20383 allow_undefined_flag_CXX \
20384 no_undefined_flag_CXX \
20385 export_symbols_cmds_CXX \
20386 hardcode_libdir_flag_spec_CXX \
20387 hardcode_libdir_flag_spec_ld_CXX \
20388 hardcode_libdir_separator_CXX \
20389 hardcode_automatic_CXX \
20391 module_expsym_cmds_CXX \
20392 lt_cv_prog_compiler_c_o_CXX \
20393 exclude_expsyms_CXX \
20394 include_expsyms_CXX; do
20397 old_archive_cmds_CXX | \
20398 old_archive_from_new_cmds_CXX | \
20399 archive_cmds_CXX | \
20400 archive_expsym_cmds_CXX | \
20401 module_cmds_CXX | \
20402 module_expsym_cmds_CXX | \
20403 old_archive_from_expsyms_cmds_CXX | \
20404 export_symbols_cmds_CXX | \
20405 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20406 postinstall_cmds | postuninstall_cmds | \
20407 old_postinstall_cmds | old_postuninstall_cmds | \
20408 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20409 # Double-quote double-evaled strings.
20410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20413 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20419 *'\$0 --fallback-echo"')
20420 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20426 cat <<__EOF__ >> "$cfgfile"
20427 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20429 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20431 # Shell to use when invoking shell scripts.
20434 # Whether or not to build shared libraries.
20435 build_libtool_libs=$enable_shared
20437 # Whether or not to build static libraries.
20438 build_old_libs=$enable_static
20440 # Whether or not to add -lc for building shared libraries.
20441 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20443 # Whether or not to disallow shared libs when runtime libs are static
20444 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20446 # Whether or not to optimize for fast installation.
20447 fast_install=$enable_fast_install
20450 host_alias=$host_alias
20454 # The build system.
20455 build_alias=$build_alias
20459 # An echo program that does not interpret backslashes.
20464 AR_FLAGS=$lt_AR_FLAGS
20469 # LTCC compiler flags.
20470 LTCFLAGS=$lt_LTCFLAGS
20472 # A language-specific compiler.
20473 CC=$lt_compiler_CXX
20475 # Is the compiler the GNU C compiler?
20481 # The linker used to build libraries.
20484 # Whether we need hard or soft links.
20487 # A BSD-compatible nm program.
20490 # A symbol stripping program
20493 # Used to examine libraries when file_magic_cmd begins "file"
20494 MAGIC_CMD=$MAGIC_CMD
20496 # Used on cygwin: DLL creation program.
20499 # Used on cygwin: object dumper.
20502 # Used on cygwin: assembler.
20505 # The name of the directory that contains temporary libtool files.
20508 # How to create reloadable object files.
20509 reload_flag=$lt_reload_flag
20510 reload_cmds=$lt_reload_cmds
20512 # How to pass a linker flag through the compiler.
20513 wl=$lt_lt_prog_compiler_wl_CXX
20515 # Object file suffix (normally "o").
20516 objext="$ac_objext"
20518 # Old archive suffix (normally "a").
20521 # Shared library suffix (normally ".so").
20522 shrext_cmds='$shrext_cmds'
20524 # Executable file suffix (normally "").
20527 # Additional compiler flags for building library objects.
20528 pic_flag=$lt_lt_prog_compiler_pic_CXX
20531 # What is the maximum length of a command?
20532 max_cmd_len=$lt_cv_sys_max_cmd_len
20534 # Does compiler simultaneously support -c and -o options?
20535 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20537 # Must we lock files when doing compilation?
20538 need_locks=$lt_need_locks
20540 # Do we need the lib prefix for modules?
20541 need_lib_prefix=$need_lib_prefix
20543 # Do we need a version for libraries?
20544 need_version=$need_version
20546 # Whether dlopen is supported.
20547 dlopen_support=$enable_dlopen
20549 # Whether dlopen of programs is supported.
20550 dlopen_self=$enable_dlopen_self
20552 # Whether dlopen of statically linked programs is supported.
20553 dlopen_self_static=$enable_dlopen_self_static
20555 # Compiler flag to prevent dynamic linking.
20556 link_static_flag=$lt_lt_prog_compiler_static_CXX
20558 # Compiler flag to turn off builtin functions.
20559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20561 # Compiler flag to allow reflexive dlopens.
20562 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20564 # Compiler flag to generate shared objects directly from archives.
20565 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20567 # Compiler flag to generate thread-safe objects.
20568 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20570 # Library versioning type.
20571 version_type=$version_type
20573 # Format of library name prefix.
20574 libname_spec=$lt_libname_spec
20576 # List of archive names. First name is the real one, the rest are links.
20577 # The last name is the one that the linker finds with -lNAME.
20578 library_names_spec=$lt_library_names_spec
20580 # The coded name of the library, if different from the real name.
20581 soname_spec=$lt_soname_spec
20583 # Commands used to build and install an old-style archive.
20585 old_archive_cmds=$lt_old_archive_cmds_CXX
20586 old_postinstall_cmds=$lt_old_postinstall_cmds
20587 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20589 # Create an old-style archive from a shared archive.
20590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20592 # Create a temporary old-style archive to link instead of a shared archive.
20593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20595 # Commands used to build and install a shared archive.
20596 archive_cmds=$lt_archive_cmds_CXX
20597 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20598 postinstall_cmds=$lt_postinstall_cmds
20599 postuninstall_cmds=$lt_postuninstall_cmds
20601 # Commands used to build a loadable module (assumed same as above if empty)
20602 module_cmds=$lt_module_cmds_CXX
20603 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20605 # Commands to strip libraries.
20606 old_striplib=$lt_old_striplib
20607 striplib=$lt_striplib
20609 # Dependencies to place before the objects being linked to create a
20611 predep_objects=$lt_predep_objects_CXX
20613 # Dependencies to place after the objects being linked to create a
20615 postdep_objects=$lt_postdep_objects_CXX
20617 # Dependencies to place before the objects being linked to create a
20619 predeps=$lt_predeps_CXX
20621 # Dependencies to place after the objects being linked to create a
20623 postdeps=$lt_postdeps_CXX
20625 # The library search path used internally by the compiler when linking
20626 # a shared library.
20627 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20629 # Method to check whether dependent libraries are shared objects.
20630 deplibs_check_method=$lt_deplibs_check_method
20632 # Command to use when deplibs_check_method == file_magic.
20633 file_magic_cmd=$lt_file_magic_cmd
20635 # Flag that allows shared libraries with undefined symbols to be built.
20636 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20638 # Flag that forces no undefined symbols.
20639 no_undefined_flag=$lt_no_undefined_flag_CXX
20641 # Commands used to finish a libtool library installation in a directory.
20642 finish_cmds=$lt_finish_cmds
20644 # Same as above, but a single script fragment to be evaled but not shown.
20645 finish_eval=$lt_finish_eval
20647 # Take the output of nm and produce a listing of raw symbols and C names.
20648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20650 # Transform the output of nm in a proper C declaration
20651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20653 # Transform the output of nm in a C name address pair
20654 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20656 # This is the shared library runtime path variable.
20657 runpath_var=$runpath_var
20659 # This is the shared library path variable.
20660 shlibpath_var=$shlibpath_var
20662 # Is shlibpath searched before the hard-coded library search path?
20663 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20665 # How to hardcode a shared library path into an executable.
20666 hardcode_action=$hardcode_action_CXX
20668 # Whether we should hardcode library paths into libraries.
20669 hardcode_into_libs=$hardcode_into_libs
20671 # Flag to hardcode \$libdir into a binary during linking.
20672 # This must work even if \$libdir does not exist.
20673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20675 # If ld is used when linking, flag to hardcode \$libdir into
20676 # a binary during linking. This must work even if \$libdir does
20678 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20680 # Whether we need a single -rpath flag with a separated argument.
20681 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20683 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20684 # resulting binary.
20685 hardcode_direct=$hardcode_direct_CXX
20687 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20688 # resulting binary.
20689 hardcode_minus_L=$hardcode_minus_L_CXX
20691 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20692 # the resulting binary.
20693 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20695 # Set to yes if building a shared library automatically hardcodes DIR into the library
20696 # and all subsequent libraries and executables linked against it.
20697 hardcode_automatic=$hardcode_automatic_CXX
20699 # Variables whose values should be saved in libtool wrapper scripts and
20700 # restored at relink time.
20701 variables_saved_for_relink="$variables_saved_for_relink"
20703 # Whether libtool must link a program against all its dependency libraries.
20704 link_all_deplibs=$link_all_deplibs_CXX
20706 # Compile-time system search path for libraries
20707 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20709 # Run-time system search path for libraries
20710 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20712 # Fix the shell variable \$srcfile for the compiler.
20713 fix_srcfile_path="$fix_srcfile_path_CXX"
20715 # Set to yes if exported symbols are required.
20716 always_export_symbols=$always_export_symbols_CXX
20718 # The commands to list exported symbols.
20719 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20721 # The commands to extract the exported symbol list from a shared archive.
20722 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20724 # Symbols that should not be listed in the preloaded symbols.
20725 exclude_expsyms=$lt_exclude_expsyms_CXX
20727 # Symbols that must always be exported.
20728 include_expsyms=$lt_include_expsyms_CXX
20730 # ### END LIBTOOL TAG CONFIG: $tagname
20736 # If there is no Makefile yet, we rely on a make rule to execute
20737 # `config.status --recheck' to rerun these tests and create the
20738 # libtool script then.
20739 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20740 if test -f "$ltmain_in"; then
20741 test -f Makefile && make "$ltmain"
20747 ac_cpp='$CPP $CPPFLAGS'
20748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20756 with_gnu_ldcxx=$with_gnu_ld
20757 with_gnu_ld=$lt_save_with_gnu_ld
20758 lt_cv_path_LDCXX=$lt_cv_path_LD
20759 lt_cv_path_LD=$lt_save_path_LD
20760 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20761 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20769 if test -n "$F77" && test "X$F77" != "Xno"; then
20772 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20773 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20774 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20777 archive_cmds_need_lc_F77=no
20778 allow_undefined_flag_F77=
20779 always_export_symbols_F77=no
20780 archive_expsym_cmds_F77=
20781 export_dynamic_flag_spec_F77=
20782 hardcode_direct_F77=no
20783 hardcode_libdir_flag_spec_F77=
20784 hardcode_libdir_flag_spec_ld_F77=
20785 hardcode_libdir_separator_F77=
20786 hardcode_minus_L_F77=no
20787 hardcode_automatic_F77=no
20789 module_expsym_cmds_F77=
20790 link_all_deplibs_F77=unknown
20791 old_archive_cmds_F77=$old_archive_cmds
20792 no_undefined_flag_F77=
20793 whole_archive_flag_spec_F77=
20794 enable_shared_with_static_runtimes_F77=no
20796 # Source file extension for f77 test sources.
20799 # Object file extension for compiled f77 test sources.
20803 # Code to be used in simple compile tests
20804 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20806 # Code to be used in simple link tests
20807 lt_simple_link_test_code=" program t\n end\n"
20809 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20811 # If no C compiler was specified, use CC.
20814 # If no C compiler flags were specified, use CFLAGS.
20815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20817 # Allow CC to be a program name with arguments.
20821 # save warnings/boilerplate of simple test code
20822 ac_outfile=conftest.$ac_objext
20823 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20825 _lt_compiler_boilerplate=`cat conftest.err`
20828 ac_outfile=conftest.$ac_objext
20829 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20831 _lt_linker_boilerplate=`cat conftest.err`
20835 # Allow CC to be a program name with arguments.
20840 for cc_temp in $compiler""; do
20842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20848 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20851 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20852 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20853 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20854 echo "${ECHO_T}$can_build_shared" >&6; }
20856 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20857 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20858 test "$can_build_shared" = "no" && enable_shared=no
20860 # On AIX, shared libraries and static libraries use the same namespace, and
20861 # are all built from PIC.
20864 test "$enable_shared" = yes && enable_static=no
20865 if test -n "$RANLIB"; then
20866 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20867 postinstall_cmds='$RANLIB $lib'
20871 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20872 test "$enable_shared" = yes && enable_static=no
20876 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20877 echo "${ECHO_T}$enable_shared" >&6; }
20879 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20880 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20881 # Make sure either enable_shared or enable_static is yes.
20882 test "$enable_shared" = yes || enable_static=yes
20883 { echo "$as_me:$LINENO: result: $enable_static" >&5
20884 echo "${ECHO_T}$enable_static" >&6; }
20889 lt_prog_compiler_wl_F77=
20890 lt_prog_compiler_pic_F77=
20891 lt_prog_compiler_static_F77=
20893 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20894 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20896 if test "$GCC" = yes; then
20897 lt_prog_compiler_wl_F77='-Wl,'
20898 lt_prog_compiler_static_F77='-static'
20902 # All AIX code is PIC.
20903 if test "$host_cpu" = ia64; then
20904 # AIX 5 now supports IA64 processor
20905 lt_prog_compiler_static_F77='-Bstatic'
20910 # FIXME: we need at least 68020 code to build shared libraries, but
20911 # adding the `-m68020' flag to GCC prevents building anything better,
20913 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20916 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20917 # PIC is the default for these OSes.
20920 mingw* | pw32* | os2*)
20921 # This hack is so that the source file can tell whether it is being
20922 # built for inclusion in a dll (and should export symbols for example).
20923 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20926 darwin* | rhapsody*)
20927 # PIC is the default on this platform
20928 # Common symbols not allowed in MH_DYLIB files
20929 lt_prog_compiler_pic_F77='-fno-common'
20933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20934 # Instead, we relocate shared libraries at runtime.
20938 # Just because we use GCC doesn't mean we suddenly get shared libraries
20939 # on systems that don't support them.
20940 lt_prog_compiler_can_build_shared_F77=no
20945 if test -d /usr/nec; then
20946 lt_prog_compiler_pic_F77=-Kconform_pic
20951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20952 # not for PA HP-UX.
20958 lt_prog_compiler_pic_F77='-fPIC'
20964 lt_prog_compiler_pic_F77='-fPIC'
20968 # PORTME Check for flag to pass linker flags through the system compiler.
20971 lt_prog_compiler_wl_F77='-Wl,'
20972 if test "$host_cpu" = ia64; then
20973 # AIX 5 now supports IA64 processor
20974 lt_prog_compiler_static_F77='-Bstatic'
20976 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20980 # PIC is the default on this platform
20981 # Common symbols not allowed in MH_DYLIB files
20982 case $cc_basename in
20984 lt_prog_compiler_pic_F77='-qnocommon'
20985 lt_prog_compiler_wl_F77='-Wl,'
20990 mingw* | pw32* | os2*)
20991 # This hack is so that the source file can tell whether it is being
20992 # built for inclusion in a dll (and should export symbols for example).
20993 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20996 hpux9* | hpux10* | hpux11*)
20997 lt_prog_compiler_wl_F77='-Wl,'
20998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20999 # not for PA HP-UX.
21005 lt_prog_compiler_pic_F77='+Z'
21008 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21009 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21012 irix5* | irix6* | nonstopux*)
21013 lt_prog_compiler_wl_F77='-Wl,'
21014 # PIC (with -KPIC) is the default.
21015 lt_prog_compiler_static_F77='-non_shared'
21019 lt_prog_compiler_pic_F77='-KPIC'
21020 lt_prog_compiler_static_F77='-Bstatic'
21024 case $cc_basename in
21026 lt_prog_compiler_wl_F77='-Wl,'
21027 lt_prog_compiler_pic_F77='-KPIC'
21028 lt_prog_compiler_static_F77='-static'
21030 pgcc* | pgf77* | pgf90* | pgf95*)
21031 # Portland Group compilers (*not* the Pentium gcc compiler,
21032 # which looks to be a dead project)
21033 lt_prog_compiler_wl_F77='-Wl,'
21034 lt_prog_compiler_pic_F77='-fpic'
21035 lt_prog_compiler_static_F77='-Bstatic'
21038 lt_prog_compiler_wl_F77='-Wl,'
21039 # All Alpha code is PIC.
21040 lt_prog_compiler_static_F77='-non_shared'
21045 osf3* | osf4* | osf5*)
21046 lt_prog_compiler_wl_F77='-Wl,'
21047 # All OSF/1 code is PIC.
21048 lt_prog_compiler_static_F77='-non_shared'
21052 lt_prog_compiler_pic_F77='-KPIC'
21053 lt_prog_compiler_static_F77='-Bstatic'
21054 case $cc_basename in
21055 f77* | f90* | f95*)
21056 lt_prog_compiler_wl_F77='-Qoption ld ';;
21058 lt_prog_compiler_wl_F77='-Wl,';;
21063 lt_prog_compiler_wl_F77='-Qoption ld '
21064 lt_prog_compiler_pic_F77='-PIC'
21065 lt_prog_compiler_static_F77='-Bstatic'
21068 sysv4 | sysv4.2uw2* | sysv4.3*)
21069 lt_prog_compiler_wl_F77='-Wl,'
21070 lt_prog_compiler_pic_F77='-KPIC'
21071 lt_prog_compiler_static_F77='-Bstatic'
21075 if test -d /usr/nec ;then
21076 lt_prog_compiler_pic_F77='-Kconform_pic'
21077 lt_prog_compiler_static_F77='-Bstatic'
21081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21082 lt_prog_compiler_wl_F77='-Wl,'
21083 lt_prog_compiler_pic_F77='-KPIC'
21084 lt_prog_compiler_static_F77='-Bstatic'
21088 lt_prog_compiler_wl_F77='-Wl,'
21089 lt_prog_compiler_can_build_shared_F77=no
21093 lt_prog_compiler_pic_F77='-pic'
21094 lt_prog_compiler_static_F77='-Bstatic'
21098 lt_prog_compiler_can_build_shared_F77=no
21103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21104 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21107 # Check to make sure the PIC flag actually works.
21109 if test -n "$lt_prog_compiler_pic_F77"; then
21111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21113 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21116 lt_prog_compiler_pic_works_F77=no
21117 ac_outfile=conftest.$ac_objext
21118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21119 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21120 # Insert the option either (1) after the last *FLAGS variable, or
21121 # (2) before a word containing "conftest.", or (3) at the end.
21122 # Note that $ac_compile itself does not contain backslashes and begins
21123 # with a dollar sign (not a hyphen), so the echo should work correctly.
21124 # The option is referenced via a variable to avoid confusing sed.
21125 lt_compile=`echo "$ac_compile" | $SED \
21126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21128 -e 's:$: $lt_compiler_flag:'`
21129 (eval echo "\"\$as_me:21129: $lt_compile\"" >&5)
21130 (eval "$lt_compile" 2>conftest.err)
21132 cat conftest.err >&5
21133 echo "$as_me:21133: \$? = $ac_status" >&5
21134 if (exit $ac_status) && test -s "$ac_outfile"; then
21135 # The compiler can only warn and ignore the option if not recognized
21136 # So say no if there are warnings other than the usual output.
21137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21140 lt_prog_compiler_pic_works_F77=yes
21146 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21147 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21149 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21150 case $lt_prog_compiler_pic_F77 in
21152 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21155 lt_prog_compiler_pic_F77=
21156 lt_prog_compiler_can_build_shared_F77=no
21161 # For platforms which do not support PIC, -DPIC is meaningless:
21163 lt_prog_compiler_pic_F77=
21166 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21171 # Check to make sure the static flag actually works.
21173 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21174 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21176 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 lt_prog_compiler_static_works_F77=no
21180 save_LDFLAGS="$LDFLAGS"
21181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21182 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21184 # The linker can only warn and ignore the option if not recognized
21185 # So say no if there are warnings
21186 if test -s conftest.err; then
21187 # Append any errors to the config.log.
21188 cat conftest.err 1>&5
21189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21191 if diff conftest.exp conftest.er2 >/dev/null; then
21192 lt_prog_compiler_static_works_F77=yes
21195 lt_prog_compiler_static_works_F77=yes
21199 LDFLAGS="$save_LDFLAGS"
21202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21203 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21205 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21208 lt_prog_compiler_static_F77=
21212 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21214 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 lt_cv_prog_compiler_c_o_F77=no
21218 $rm -r conftest 2>/dev/null
21222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21224 lt_compiler_flag="-o out/conftest2.$ac_objext"
21225 # Insert the option either (1) after the last *FLAGS variable, or
21226 # (2) before a word containing "conftest.", or (3) at the end.
21227 # Note that $ac_compile itself does not contain backslashes and begins
21228 # with a dollar sign (not a hyphen), so the echo should work correctly.
21229 lt_compile=`echo "$ac_compile" | $SED \
21230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21232 -e 's:$: $lt_compiler_flag:'`
21233 (eval echo "\"\$as_me:21233: $lt_compile\"" >&5)
21234 (eval "$lt_compile" 2>out/conftest.err)
21236 cat out/conftest.err >&5
21237 echo "$as_me:21237: \$? = $ac_status" >&5
21238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21240 # The compiler can only warn and ignore the option if not recognized
21241 # So say no if there are warnings
21242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21245 lt_cv_prog_compiler_c_o_F77=yes
21250 # SGI C++ compiler will create directory out/ii_files/ for
21251 # template instantiation
21252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21253 $rm out/* && rmdir out
21259 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21263 hard_links="nottested"
21264 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21265 # do not overwrite the value of need_locks provided by the user
21266 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21272 ln conftest.a conftest.b 2>&5 || hard_links=no
21273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21274 { echo "$as_me:$LINENO: result: $hard_links" >&5
21275 echo "${ECHO_T}$hard_links" >&6; }
21276 if test "$hard_links" = no; then
21277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21285 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21289 allow_undefined_flag_F77=
21290 enable_shared_with_static_runtimes_F77=no
21292 archive_expsym_cmds_F77=
21293 old_archive_From_new_cmds_F77=
21294 old_archive_from_expsyms_cmds_F77=
21295 export_dynamic_flag_spec_F77=
21296 whole_archive_flag_spec_F77=
21297 thread_safe_flag_spec_F77=
21298 hardcode_libdir_flag_spec_F77=
21299 hardcode_libdir_flag_spec_ld_F77=
21300 hardcode_libdir_separator_F77=
21301 hardcode_direct_F77=no
21302 hardcode_minus_L_F77=no
21303 hardcode_shlibpath_var_F77=unsupported
21304 link_all_deplibs_F77=unknown
21305 hardcode_automatic_F77=no
21307 module_expsym_cmds_F77=
21308 always_export_symbols_F77=no
21309 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21310 # include_expsyms should be a list of space-separated symbols to be *always*
21311 # included in the symbol list
21312 include_expsyms_F77=
21313 # exclude_expsyms can be an extended regexp of symbols to exclude
21314 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21316 # as well as any symbol that contains `d'.
21317 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21319 # platforms (ab)use it in PIC code, but their linkers get confused if
21320 # the symbol is explicitly referenced. Since portable code cannot
21321 # rely on this symbol name, it's probably fine to never include it in
21322 # preloaded symbol tables.
21323 extract_expsyms_cmds=
21324 # Just being paranoid about ensuring that cc_basename is set.
21325 for cc_temp in $compiler""; do
21327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21336 cygwin* | mingw* | pw32*)
21337 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21338 # When not using gcc, we currently assume that we are using
21339 # Microsoft Visual C++.
21340 if test "$GCC" != yes; then
21345 # we just hope/assume this is gcc and not c89 (= MSVC++)
21354 if test "$with_gnu_ld" = yes; then
21355 # If archive_cmds runs LD, not CC, wlarc should be empty
21358 # Set some defaults for GNU ld with shared library support. These
21359 # are reset later if shared libraries are not supported. Putting them
21360 # here allows them to be overridden if necessary.
21361 runpath_var=LD_RUN_PATH
21362 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21363 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21364 # ancient GNU ld didn't support --whole-archive et. al.
21365 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21366 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21368 whole_archive_flag_spec_F77=
21370 supports_anon_versioning=no
21371 case `$LD -v 2>/dev/null` in
21372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21375 *\ 2.11.*) ;; # other 2.11 versions
21376 *) supports_anon_versioning=yes ;;
21379 # See if GNU ld supports shared libraries.
21381 aix3* | aix4* | aix5*)
21382 # On AIX/PPC, the GNU linker is very broken
21383 if test "$host_cpu" != ia64; then
21387 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21388 *** to be unable to reliably create shared libraries on AIX.
21389 *** Therefore, libtool is disabling shared libraries support. If you
21390 *** really care for shared libraries, you may want to modify your PATH
21391 *** so that a non-GNU linker is found, and then restart.
21398 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)'
21399 hardcode_libdir_flag_spec_F77='-L$libdir'
21400 hardcode_minus_L_F77=yes
21402 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21403 # that the semantics of dynamic libraries on AmigaOS, at least up
21404 # to version 4, is to share data among multiple programs linked
21405 # with the same dynamic library. Since this doesn't match the
21406 # behavior of shared libraries on other platforms, we can't use
21412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21413 allow_undefined_flag_F77=unsupported
21414 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21415 # support --undefined. This deserves some investigation. FIXME
21416 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21422 cygwin* | mingw* | pw32*)
21423 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21424 # as there is no search path for DLLs.
21425 hardcode_libdir_flag_spec_F77='-L$libdir'
21426 allow_undefined_flag_F77=unsupported
21427 always_export_symbols_F77=no
21428 enable_shared_with_static_runtimes_F77=yes
21429 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21431 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21432 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21433 # If the export-symbols file already is a .def file (1st line
21434 # is EXPORTS), use it as is; otherwise, prepend...
21435 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21436 cp $export_symbols $output_objdir/$soname.def;
21438 echo EXPORTS > $output_objdir/$soname.def;
21439 cat $export_symbols >> $output_objdir/$soname.def;
21441 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21448 hardcode_direct_F77=no
21449 hardcode_shlibpath_var_F77=no
21450 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21451 export_dynamic_flag_spec_F77='${wl}-E'
21452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21453 # Instead, shared libraries are loaded at an image base (0x10000000 by
21454 # default) and relocated if they conflict, which is a slow very memory
21455 # consuming and fragmenting process. To avoid this, we pick a random,
21456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21458 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'
21459 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'
21463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21465 case $cc_basename,$host_cpu in
21466 pgcc*) # Portland Group C compiler
21467 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'
21468 tmp_addflag=' $pic_flag'
21470 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21471 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'
21472 tmp_addflag=' $pic_flag -Mnomain' ;;
21473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21474 tmp_addflag=' -i_dynamic' ;;
21475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21476 tmp_addflag=' -i_dynamic -nofor_main' ;;
21477 ifc* | ifort*) # Intel Fortran compiler
21478 tmp_addflag=' -nofor_main' ;;
21480 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21482 if test $supports_anon_versioning = yes; then
21483 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21485 $echo "local: *; };" >> $output_objdir/$libname.ver~
21486 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21495 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21498 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21499 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21509 *** create shared libraries on Solaris systems. Therefore, libtool
21510 *** is disabling shared libraries support. We urge you to upgrade GNU
21511 *** binutils to release 2.9.1 or newer. Another option is to modify
21512 *** your PATH or compiler configuration so that the native linker is
21513 *** used, and then restart.
21516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21517 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21518 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21525 case `$LD -v 2>&1` in
21526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21531 *** reliably create shared libraries on SCO systems. Therefore, libtool
21532 *** is disabling shared libraries support. We urge you to upgrade GNU
21533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21534 *** your PATH or compiler configuration so that the native linker is
21535 *** used, and then restart.
21540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21541 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21542 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21543 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21552 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21554 hardcode_direct_F77=yes
21555 hardcode_shlibpath_var_F77=no
21559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21560 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21561 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21568 if test "$ld_shlibs_F77" = no; then
21570 hardcode_libdir_flag_spec_F77=
21571 export_dynamic_flag_spec_F77=
21572 whole_archive_flag_spec_F77=
21575 # PORTME fill in a description of your system's linker (not GNU ld)
21578 allow_undefined_flag_F77=unsupported
21579 always_export_symbols_F77=yes
21580 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'
21581 # Note: this linker hardcodes the directories in LIBPATH if there
21582 # are no directories specified by -L.
21583 hardcode_minus_L_F77=yes
21584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21585 # Neither direct hardcoding nor static linking is supported with a
21587 hardcode_direct_F77=unsupported
21592 if test "$host_cpu" = ia64; then
21593 # On IA64, the linker does run time linking by default, so we don't
21594 # have to do anything special.
21595 aix_use_runtimelinking=no
21596 exp_sym_flag='-Bexport'
21599 # If we're using GNU nm, then we don't want the "-C" option.
21600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21602 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'
21604 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'
21606 aix_use_runtimelinking=no
21608 # Test if we are trying to use run time linking or normal
21609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21610 # need to do runtime linking.
21611 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21612 for ld_flag in $LDFLAGS; do
21613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21614 aix_use_runtimelinking=yes
21621 exp_sym_flag='-bexport'
21622 no_entry_flag='-bnoentry'
21625 # When large executables or shared objects are built, AIX ld can
21626 # have problems creating the table of contents. If linking a library
21627 # or program results in "error TOC overflow" add -mminimal-toc to
21628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21631 archive_cmds_F77=''
21632 hardcode_direct_F77=yes
21633 hardcode_libdir_separator_F77=':'
21634 link_all_deplibs_F77=yes
21636 if test "$GCC" = yes; then
21637 case $host_os in aix4.[012]|aix4.[012].*)
21638 # We only want to do this on AIX 4.2 and lower, the check
21639 # below for broken collect2 doesn't work under 4.3+
21640 collect2name=`${CC} -print-prog-name=collect2`
21641 if test -f "$collect2name" && \
21642 strings "$collect2name" | grep resolve_lib_name >/dev/null
21644 # We have reworked collect2
21645 hardcode_direct_F77=yes
21647 # We have old collect2
21648 hardcode_direct_F77=unsupported
21649 # It fails to find uninstalled libraries when the uninstalled
21650 # path is not listed in the libpath. Setting hardcode_minus_L
21651 # to unsupported forces relinking
21652 hardcode_minus_L_F77=yes
21653 hardcode_libdir_flag_spec_F77='-L$libdir'
21654 hardcode_libdir_separator_F77=
21658 shared_flag='-shared'
21659 if test "$aix_use_runtimelinking" = yes; then
21660 shared_flag="$shared_flag "'${wl}-G'
21664 if test "$host_cpu" = ia64; then
21665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21666 # chokes on -Wl,-G. The following line is correct:
21669 if test "$aix_use_runtimelinking" = yes; then
21670 shared_flag='${wl}-G'
21672 shared_flag='${wl}-bM:SRE'
21677 # It seems that -bexpall does not export symbols beginning with
21678 # underscore (_), so it is better to generate a list of symbols to export.
21679 always_export_symbols_F77=yes
21680 if test "$aix_use_runtimelinking" = yes; then
21681 # Warning - without using the other runtime loading flags (-brtl),
21682 # -berok will link without error, but may produce a broken library.
21683 allow_undefined_flag_F77='-berok'
21684 # Determine the default libpath from the value encoded in an empty executable.
21685 cat >conftest.$ac_ext <<_ACEOF
21690 rm -f conftest.$ac_objext conftest$ac_exeext
21691 if { (ac_try="$ac_link"
21692 case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_link") 2>conftest.er1
21699 grep -v '^ *+' conftest.er1 >conftest.err
21701 cat conftest.err >&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } &&
21704 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21705 { (case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_try") 2>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; } &&
21714 { ac_try='test -s conftest$ac_exeext'
21715 { (case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_try") 2>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21727 # Check for a 64-bit object if we didn't find anything.
21728 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; }
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21737 rm -f core conftest.err conftest.$ac_objext \
21738 conftest$ac_exeext conftest.$ac_ext
21739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21741 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21742 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"
21744 if test "$host_cpu" = ia64; then
21745 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21746 allow_undefined_flag_F77="-z nodefs"
21747 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"
21749 # Determine the default libpath from the value encoded in an empty executable.
21750 cat >conftest.$ac_ext <<_ACEOF
21755 rm -f conftest.$ac_objext conftest$ac_exeext
21756 if { (ac_try="$ac_link"
21757 case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_link") 2>conftest.er1
21764 grep -v '^ *+' conftest.er1 >conftest.err
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } &&
21769 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21770 { (case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_try") 2>&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; } &&
21779 { ac_try='test -s conftest$ac_exeext'
21780 { (case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_try") 2>&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; }; then
21790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21792 # Check for a 64-bit object if we didn't find anything.
21793 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; }
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21802 rm -f core conftest.err conftest.$ac_objext \
21803 conftest$ac_exeext conftest.$ac_ext
21804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21806 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21807 # Warning - without using the other run time loading flags,
21808 # -berok will link without error, but may produce a broken library.
21809 no_undefined_flag_F77=' ${wl}-bernotok'
21810 allow_undefined_flag_F77=' ${wl}-berok'
21811 # Exported symbols can be pulled into shared objects from archives
21812 whole_archive_flag_spec_F77='$convenience'
21813 archive_cmds_need_lc_F77=yes
21814 # This is similar to how AIX traditionally builds its shared libraries.
21815 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'
21821 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)'
21822 hardcode_libdir_flag_spec_F77='-L$libdir'
21823 hardcode_minus_L_F77=yes
21824 # see comment about different semantics on the GNU ld section
21829 export_dynamic_flag_spec_F77=-rdynamic
21832 cygwin* | mingw* | pw32*)
21833 # When not using gcc, we currently assume that we are using
21834 # Microsoft Visual C++.
21835 # hardcode_libdir_flag_spec is actually meaningless, as there is
21836 # no search path for DLLs.
21837 hardcode_libdir_flag_spec_F77=' '
21838 allow_undefined_flag_F77=unsupported
21839 # Tell ltmain to make .lib files, not .a files.
21841 # Tell ltmain to make .dll files, not .so files.
21843 # FIXME: Setting linknames here is a bad hack.
21844 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21845 # The linker will automatically build a .lib file if we build a DLL.
21846 old_archive_From_new_cmds_F77='true'
21847 # FIXME: Should let the user specify the lib program.
21848 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21849 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21850 enable_shared_with_static_runtimes_F77=yes
21853 darwin* | rhapsody*)
21855 rhapsody* | darwin1.[012])
21856 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21859 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21860 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21862 case ${MACOSX_DEPLOYMENT_TARGET} in
21864 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21867 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21873 archive_cmds_need_lc_F77=no
21874 hardcode_direct_F77=no
21875 hardcode_automatic_F77=yes
21876 hardcode_shlibpath_var_F77=unsupported
21877 whole_archive_flag_spec_F77=''
21878 link_all_deplibs_F77=yes
21879 if test "$GCC" = yes ; then
21880 output_verbose_link_cmd='echo'
21881 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21882 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21884 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}'
21885 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}'
21887 case $cc_basename in
21889 output_verbose_link_cmd='echo'
21890 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21891 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21893 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}'
21894 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}'
21904 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21905 hardcode_libdir_flag_spec_F77='-L$libdir'
21906 hardcode_shlibpath_var_F77=no
21913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21914 # support. Future versions do this automatically, but an explicit c++rt0.o
21915 # does not break anything, and helps significantly (at the cost of a little
21918 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21919 hardcode_libdir_flag_spec_F77='-R$libdir'
21920 hardcode_direct_F77=yes
21921 hardcode_shlibpath_var_F77=no
21924 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21926 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21927 hardcode_direct_F77=yes
21928 hardcode_minus_L_F77=yes
21929 hardcode_shlibpath_var_F77=no
21932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21933 freebsd* | kfreebsd*-gnu | dragonfly*)
21934 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21935 hardcode_libdir_flag_spec_F77='-R$libdir'
21936 hardcode_direct_F77=yes
21937 hardcode_shlibpath_var_F77=no
21941 if test "$GCC" = yes; then
21942 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'
21944 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'
21946 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21947 hardcode_libdir_separator_F77=:
21948 hardcode_direct_F77=yes
21950 # hardcode_minus_L: Not really in the search PATH,
21951 # but as the default location of the library.
21952 hardcode_minus_L_F77=yes
21953 export_dynamic_flag_spec_F77='${wl}-E'
21957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21958 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21960 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21962 if test "$with_gnu_ld" = no; then
21963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21964 hardcode_libdir_separator_F77=:
21966 hardcode_direct_F77=yes
21967 export_dynamic_flag_spec_F77='${wl}-E'
21969 # hardcode_minus_L: Not really in the search PATH,
21970 # but as the default location of the library.
21971 hardcode_minus_L_F77=yes
21976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21979 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21982 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21985 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21991 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21994 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21997 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22001 if test "$with_gnu_ld" = no; then
22002 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22003 hardcode_libdir_separator_F77=:
22007 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22008 hardcode_direct_F77=no
22009 hardcode_shlibpath_var_F77=no
22012 hardcode_direct_F77=yes
22013 export_dynamic_flag_spec_F77='${wl}-E'
22015 # hardcode_minus_L: Not really in the search PATH,
22016 # but as the default location of the library.
22017 hardcode_minus_L_F77=yes
22023 irix5* | irix6* | nonstopux*)
22024 if test "$GCC" = yes; then
22025 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'
22027 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'
22028 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22031 hardcode_libdir_separator_F77=:
22032 link_all_deplibs_F77=yes
22036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22037 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22039 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22041 hardcode_libdir_flag_spec_F77='-R$libdir'
22042 hardcode_direct_F77=yes
22043 hardcode_shlibpath_var_F77=no
22047 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22048 hardcode_direct_F77=yes
22049 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22050 hardcode_libdir_separator_F77=:
22051 hardcode_shlibpath_var_F77=no
22055 hardcode_direct_F77=yes
22056 hardcode_shlibpath_var_F77=no
22057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22058 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22059 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22060 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22061 export_dynamic_flag_spec_F77='${wl}-E'
22064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22065 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22066 hardcode_libdir_flag_spec_F77='-R$libdir'
22069 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22070 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22077 hardcode_libdir_flag_spec_F77='-L$libdir'
22078 hardcode_minus_L_F77=yes
22079 allow_undefined_flag_F77=unsupported
22080 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'
22081 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22085 if test "$GCC" = yes; then
22086 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22087 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'
22089 allow_undefined_flag_F77=' -expect_unresolved \*'
22090 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'
22092 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22093 hardcode_libdir_separator_F77=:
22096 osf4* | osf5*) # as osf3* with the addition of -msym flag
22097 if test "$GCC" = yes; then
22098 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22099 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'
22100 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22102 allow_undefined_flag_F77=' -expect_unresolved \*'
22103 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'
22104 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~
22105 $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'
22107 # Both c and cxx compiler support -rpath directly
22108 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22110 hardcode_libdir_separator_F77=:
22114 no_undefined_flag_F77=' -z text'
22115 if test "$GCC" = yes; then
22117 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22118 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22119 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22122 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22123 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22124 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22126 hardcode_libdir_flag_spec_F77='-R$libdir'
22127 hardcode_shlibpath_var_F77=no
22129 solaris2.[0-5] | solaris2.[0-5].*) ;;
22131 # The compiler driver will combine linker options so we
22132 # cannot just pass the convience library names through
22133 # without $wl, iff we do not link with $LD.
22134 # Luckily, gcc supports the same syntax we need for Sun Studio.
22135 # Supported since Solaris 2.6 (maybe 2.5.1?)
22138 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22140 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' ;;
22143 link_all_deplibs_F77=yes
22147 if test "x$host_vendor" = xsequent; then
22148 # Use $CC to link under sequent, because it throws in some extra .o
22149 # files that make .init and .fini sections work.
22150 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22152 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22154 hardcode_libdir_flag_spec_F77='-L$libdir'
22155 hardcode_direct_F77=yes
22156 hardcode_minus_L_F77=yes
22157 hardcode_shlibpath_var_F77=no
22161 case $host_vendor in
22163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22164 hardcode_direct_F77=yes # is this really true???
22167 ## LD is ld it makes a PLAMLIB
22168 ## CC just makes a GrossModule.
22169 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22170 reload_cmds_F77='$CC -r -o $output$reload_objs'
22171 hardcode_direct_F77=no
22174 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22175 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22178 runpath_var='LD_RUN_PATH'
22179 hardcode_shlibpath_var_F77=no
22183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22184 hardcode_shlibpath_var_F77=no
22185 export_dynamic_flag_spec_F77='-Bexport'
22189 if test -d /usr/nec; then
22190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191 hardcode_shlibpath_var_F77=no
22192 runpath_var=LD_RUN_PATH
22193 hardcode_runpath_var=yes
22198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22199 no_undefined_flag_F77='${wl}-z,text'
22200 archive_cmds_need_lc_F77=no
22201 hardcode_shlibpath_var_F77=no
22202 runpath_var='LD_RUN_PATH'
22204 if test "$GCC" = yes; then
22205 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22206 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22208 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22209 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22213 sysv5* | sco3.2v5* | sco5v6*)
22214 # Note: We can NOT use -z defs as we might desire, because we do not
22215 # link with -lc, and that would cause any symbols used from libc to
22216 # always be unresolved, which means just about no library would
22217 # ever link correctly. If we're not using GNU ld we use -z text
22218 # though, which does catch some bad symbols but isn't as heavy-handed
22220 no_undefined_flag_F77='${wl}-z,text'
22221 allow_undefined_flag_F77='${wl}-z,nodefs'
22222 archive_cmds_need_lc_F77=no
22223 hardcode_shlibpath_var_F77=no
22224 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22225 hardcode_libdir_separator_F77=':'
22226 link_all_deplibs_F77=yes
22227 export_dynamic_flag_spec_F77='${wl}-Bexport'
22228 runpath_var='LD_RUN_PATH'
22230 if test "$GCC" = yes; then
22231 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22232 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22234 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22235 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22240 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22241 hardcode_libdir_flag_spec_F77='-L$libdir'
22242 hardcode_shlibpath_var_F77=no
22251 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22252 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22253 test "$ld_shlibs_F77" = no && can_build_shared=no
22256 # Do we need to explicitly link libc?
22258 case "x$archive_cmds_need_lc_F77" in
22260 # Assume -lc should be added
22261 archive_cmds_need_lc_F77=yes
22263 if test "$enable_shared" = yes && test "$GCC" = yes; then
22264 case $archive_cmds_F77 in
22266 # FIXME: we may have to deal with multi-command sequences.
22269 # Test whether the compiler implicitly links with -lc since on some
22270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22271 # to ld, don't add -lc before -lgcc.
22272 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22273 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22278 (eval $ac_compile) 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } 2>conftest.err; then
22284 libobjs=conftest.$ac_objext
22286 wl=$lt_prog_compiler_wl_F77
22287 pic_flag=$lt_prog_compiler_pic_F77
22293 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22294 allow_undefined_flag_F77=
22295 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22296 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }
22301 archive_cmds_need_lc_F77=no
22303 archive_cmds_need_lc_F77=yes
22305 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22307 cat conftest.err 1>&5
22310 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22311 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22318 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22319 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22320 library_names_spec=
22321 libname_spec='lib$name'
22325 postuninstall_cmds=
22329 shlibpath_overrides_runpath=unknown
22331 dynamic_linker="$host_os ld.so"
22332 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22333 if test "$GCC" = yes; then
22334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22335 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22336 # if the path contains ";" then we assume it to be the separator
22337 # otherwise default to the standard path separator (i.e. ":") - it is
22338 # assumed that no part of a normal pathname contains ";" but that should
22339 # okay in the real world where ";" in dirpaths is itself problematic.
22340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22347 need_lib_prefix=unknown
22348 hardcode_into_libs=no
22350 # when you set need_version to no, make sure it does not cause -set_version
22351 # flags to be left without arguments
22352 need_version=unknown
22357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22358 shlibpath_var=LIBPATH
22360 # AIX 3 has no versioning support, so we append a major version to the name.
22361 soname_spec='${libname}${release}${shared_ext}$major'
22368 hardcode_into_libs=yes
22369 if test "$host_cpu" = ia64; then
22370 # AIX 5 supports IA64
22371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22372 shlibpath_var=LD_LIBRARY_PATH
22374 # With GCC up to 2.95.x, collect2 would create an import file
22375 # for dependence libraries. The import file would start with
22376 # the line `#! .'. This would cause the generated library to
22377 # depend on `.', always an invalid library. This was fixed in
22378 # development snapshots of GCC prior to 3.0.
22380 aix4 | aix4.[01] | aix4.[01].*)
22381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22386 can_build_shared=no
22390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22391 # soname into executable. Probably we can add versioning support to
22392 # collect2, so additional links can be useful in future.
22393 if test "$aix_use_runtimelinking" = yes; then
22394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22395 # instead of lib<name>.a to let people know that these are not
22396 # typical AIX shared libraries.
22397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22399 # We preserve .a as extension for shared libraries through AIX4.2
22400 # and later when we are not doing run time linking.
22401 library_names_spec='${libname}${release}.a $libname.a'
22402 soname_spec='${libname}${release}${shared_ext}$major'
22404 shlibpath_var=LIBPATH
22409 library_names_spec='$libname.ixlibrary $libname.a'
22410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22411 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'
22415 library_names_spec='${libname}${shared_ext}'
22416 dynamic_linker="$host_os ld.so"
22417 shlibpath_var=LIBRARY_PATH
22423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22424 soname_spec='${libname}${release}${shared_ext}$major'
22425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22426 shlibpath_var=LD_LIBRARY_PATH
22427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22429 # the default ld.so.conf also contains /usr/contrib/lib and
22430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22431 # libtool to hard-code these into programs
22434 cygwin* | mingw* | pw32*)
22435 version_type=windows
22440 case $GCC,$host_os in
22441 yes,cygwin* | yes,mingw* | yes,pw32*)
22442 library_names_spec='$libname.dll.a'
22443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22444 postinstall_cmds='base_file=`basename \${file}`~
22445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22446 dldir=$destdir/`dirname \$dlpath`~
22447 test -d \$dldir || mkdir -p \$dldir~
22448 $install_prog $dir/$dlname \$dldir/$dlname~
22449 chmod a+x \$dldir/$dlname'
22450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22451 dlpath=$dir/\$dldll~
22453 shlibpath_overrides_runpath=yes
22457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22462 # MinGW DLLs use traditional 'lib' prefix
22463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22466 # It is most probably a Windows format PATH printed by
22467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22468 # path with ; separators, and with drive letters. We can handle the
22469 # drive letters (cygwin fileutils understands them), so leave them,
22470 # especially as we might pass files found there to a mingw objdump,
22471 # which wouldn't understand a cygwinified path. Ahh.
22472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22478 # pw32 DLLs use 'pw' prefix rather than 'lib'
22479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22488 dynamic_linker='Win32 ld.exe'
22489 # FIXME: first we should search . and the directory the executable is in
22493 darwin* | rhapsody*)
22494 dynamic_linker="$host_os dyld"
22495 version_type=darwin
22498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22499 soname_spec='${libname}${release}${major}$shared_ext'
22500 shlibpath_overrides_runpath=yes
22501 shlibpath_var=DYLD_LIBRARY_PATH
22502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22504 if test "$GCC" = yes; then
22505 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"`
22507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22517 soname_spec='${libname}${release}${shared_ext}$major'
22518 shlibpath_var=LD_LIBRARY_PATH
22529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22530 soname_spec='${libname}${release}${shared_ext}$major'
22531 shlibpath_var=LD_LIBRARY_PATH
22532 shlibpath_overrides_runpath=no
22533 hardcode_into_libs=yes
22534 dynamic_linker='GNU ld.so'
22537 freebsd* | dragonfly*)
22538 # DragonFly does not have aout. When/if they implement a new
22539 # versioning mechanism, adjust this.
22540 if test -x /usr/bin/objformat; then
22541 objformat=`/usr/bin/objformat`
22544 freebsd[123]*) objformat=aout ;;
22545 *) objformat=elf ;;
22548 version_type=freebsd-$objformat
22549 case $version_type in
22551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22560 shlibpath_var=LD_LIBRARY_PATH
22563 shlibpath_overrides_runpath=yes
22565 freebsd3.[01]* | freebsdelf3.[01]*)
22566 shlibpath_overrides_runpath=yes
22567 hardcode_into_libs=yes
22569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22571 shlibpath_overrides_runpath=no
22572 hardcode_into_libs=yes
22574 freebsd*) # from 4.6 on
22575 shlibpath_overrides_runpath=yes
22576 hardcode_into_libs=yes
22585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22586 soname_spec='${libname}${release}${shared_ext}$major'
22587 shlibpath_var=LD_LIBRARY_PATH
22588 hardcode_into_libs=yes
22591 hpux9* | hpux10* | hpux11*)
22592 # Give a soname corresponding to the major version so that dld.sl refuses to
22593 # link against other versions.
22600 hardcode_into_libs=yes
22601 dynamic_linker="$host_os dld.so"
22602 shlibpath_var=LD_LIBRARY_PATH
22603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22605 soname_spec='${libname}${release}${shared_ext}$major'
22606 if test "X$HPUX_IA64_MODE" = X32; then
22607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22615 hardcode_into_libs=yes
22616 dynamic_linker="$host_os dld.sl"
22617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22620 soname_spec='${libname}${release}${shared_ext}$major'
22621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22626 dynamic_linker="$host_os dld.sl"
22627 shlibpath_var=SHLIB_PATH
22628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22630 soname_spec='${libname}${release}${shared_ext}$major'
22633 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22634 postinstall_cmds='chmod 555 $lib'
22641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22642 soname_spec='${libname}${release}${shared_ext}$major'
22643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22644 shlibpath_var=LD_LIBRARY_PATH
22645 shlibpath_overrides_runpath=no
22646 hardcode_into_libs=yes
22649 irix5* | irix6* | nonstopux*)
22651 nonstopux*) version_type=nonstopux ;;
22653 if test "$lt_cv_prog_gnu_ld" = yes; then
22661 soname_spec='${libname}${release}${shared_ext}$major'
22662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22664 irix5* | nonstopux*)
22665 libsuff= shlibsuff=
22668 case $LD in # libtool.m4 will add one of these switches to LD
22669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22670 libsuff= shlibsuff= libmagic=32-bit;;
22671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22672 libsuff=32 shlibsuff=N32 libmagic=N32;;
22673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22675 *) libsuff= shlibsuff= libmagic=never-match;;
22679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22680 shlibpath_overrides_runpath=no
22681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22683 hardcode_into_libs=yes
22686 # No shared lib support for Linux oldld, aout, or coff.
22687 linux*oldld* | linux*aout* | linux*coff*)
22691 # This must be Linux ELF.
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697 soname_spec='${libname}${release}${shared_ext}$major'
22698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22699 shlibpath_var=LD_LIBRARY_PATH
22700 shlibpath_overrides_runpath=no
22701 # This implies no fast_install, which is unacceptable.
22702 # Some rework will be needed to allow for fast_install
22703 # before this can be enabled.
22704 hardcode_into_libs=yes
22706 # Append ld.so.conf contents to the search path
22707 if test -f /etc/ld.so.conf; then
22708 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' ' '`
22709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22712 # We used to test for /lib/ld.so.1 and disable shared libraries on
22713 # powerpc, because MkLinux only supported shared libraries with the
22714 # GNU dynamic linker. Since this was broken with cross compilers,
22715 # most powerpc-linux boxes support dynamic linking these days and
22716 # people can always --disable-shared, the test was removed, and we
22717 # assume the GNU/Linux dynamic linker is in use.
22718 dynamic_linker='GNU/Linux ld.so'
22725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22726 soname_spec='${libname}${release}${shared_ext}$major'
22727 shlibpath_var=LD_LIBRARY_PATH
22728 shlibpath_overrides_runpath=no
22729 hardcode_into_libs=yes
22730 dynamic_linker='GNU ld.so'
22737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22740 dynamic_linker='NetBSD (a.out) ld.so'
22742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22743 soname_spec='${libname}${release}${shared_ext}$major'
22744 dynamic_linker='NetBSD ld.elf_so'
22746 shlibpath_var=LD_LIBRARY_PATH
22747 shlibpath_overrides_runpath=yes
22748 hardcode_into_libs=yes
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754 shlibpath_var=LD_LIBRARY_PATH
22755 shlibpath_overrides_runpath=yes
22762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22763 soname_spec='${libname}${release}${shared_ext}$major'
22764 shlibpath_var=LD_LIBRARY_PATH
22765 shlibpath_overrides_runpath=yes
22770 sys_lib_dlsearch_path_spec="/usr/lib"
22772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22775 *) need_version=no ;;
22777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22779 shlibpath_var=LD_LIBRARY_PATH
22780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22782 openbsd2.[89] | openbsd2.[89].*)
22783 shlibpath_overrides_runpath=no
22786 shlibpath_overrides_runpath=yes
22790 shlibpath_overrides_runpath=yes
22795 libname_spec='$name'
22798 library_names_spec='$libname${shared_ext} $libname.a'
22799 dynamic_linker='OS/2 ld.exe'
22800 shlibpath_var=LIBPATH
22803 osf3* | osf4* | osf5*)
22807 soname_spec='${libname}${release}${shared_ext}$major'
22808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22809 shlibpath_var=LD_LIBRARY_PATH
22810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22819 soname_spec='${libname}${release}${shared_ext}$major'
22820 shlibpath_var=LD_LIBRARY_PATH
22821 shlibpath_overrides_runpath=yes
22822 hardcode_into_libs=yes
22823 # ldd complains unless libraries are executable
22824 postinstall_cmds='chmod +x $lib'
22829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22831 shlibpath_var=LD_LIBRARY_PATH
22832 shlibpath_overrides_runpath=yes
22833 if test "$with_gnu_ld" = yes; then
22841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22842 soname_spec='${libname}${release}${shared_ext}$major'
22843 shlibpath_var=LD_LIBRARY_PATH
22844 case $host_vendor in
22846 shlibpath_overrides_runpath=no
22848 export_dynamic_flag_spec='${wl}-Blargedynsym'
22849 runpath_var=LD_RUN_PATH
22857 shlibpath_overrides_runpath=no
22858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22864 if test -d /usr/nec ;then
22866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22867 soname_spec='$libname${shared_ext}.$major'
22868 shlibpath_var=LD_LIBRARY_PATH
22872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22873 version_type=freebsd-elf
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 shlibpath_var=LD_LIBRARY_PATH
22879 hardcode_into_libs=yes
22880 if test "$with_gnu_ld" = yes; then
22881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22882 shlibpath_overrides_runpath=no
22884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22885 shlibpath_overrides_runpath=yes
22888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22892 sys_lib_dlsearch_path_spec='/usr/lib'
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898 soname_spec='${libname}${release}${shared_ext}$major'
22899 shlibpath_var=LD_LIBRARY_PATH
22906 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22907 echo "${ECHO_T}$dynamic_linker" >&6; }
22908 test "$dynamic_linker" = no && can_build_shared=no
22910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22911 if test "$GCC" = yes; then
22912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22915 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22917 hardcode_action_F77=
22918 if test -n "$hardcode_libdir_flag_spec_F77" || \
22919 test -n "$runpath_var_F77" || \
22920 test "X$hardcode_automatic_F77" = "Xyes" ; then
22922 # We can hardcode non-existant directories.
22923 if test "$hardcode_direct_F77" != no &&
22924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22925 # have to relink, otherwise we might link with an installed library
22926 # when we should be linking with a yet-to-be-installed one
22927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22928 test "$hardcode_minus_L_F77" != no; then
22929 # Linking always hardcodes the temporary library directory.
22930 hardcode_action_F77=relink
22932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22933 hardcode_action_F77=immediate
22936 # We cannot hardcode anything, or else we can only hardcode existing
22938 hardcode_action_F77=unsupported
22940 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22941 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22943 if test "$hardcode_action_F77" = relink; then
22944 # Fast installation is not supported
22945 enable_fast_install=no
22946 elif test "$shlibpath_overrides_runpath" = yes ||
22947 test "$enable_shared" = no; then
22948 # Fast installation is not necessary
22949 enable_fast_install=needless
22953 # The else clause should only fire when bootstrapping the
22954 # libtool distribution, otherwise you forgot to ship ltmain.sh
22955 # with your package, and you will get complaints that there are
22956 # no rules to generate ltmain.sh.
22957 if test -f "$ltmain"; then
22958 # See if we are running on zsh, and set the options which allow our commands through
22959 # without removal of \ escapes.
22960 if test -n "${ZSH_VERSION+set}" ; then
22961 setopt NO_GLOB_SUBST
22963 # Now quote all the things that may contain metacharacters while being
22964 # careful not to overquote the AC_SUBSTed values. We take copies of the
22965 # variables and quote the copies for generation of the libtool script.
22966 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22970 deplibs_check_method reload_flag reload_cmds need_locks \
22971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22972 lt_cv_sys_global_symbol_to_c_name_address \
22973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22974 old_postinstall_cmds old_postuninstall_cmds \
22978 lt_prog_compiler_wl_F77 \
22979 lt_prog_compiler_pic_F77 \
22980 lt_prog_compiler_static_F77 \
22981 lt_prog_compiler_no_builtin_flag_F77 \
22982 export_dynamic_flag_spec_F77 \
22983 thread_safe_flag_spec_F77 \
22984 whole_archive_flag_spec_F77 \
22985 enable_shared_with_static_runtimes_F77 \
22986 old_archive_cmds_F77 \
22987 old_archive_from_new_cmds_F77 \
22988 predep_objects_F77 \
22989 postdep_objects_F77 \
22992 compiler_lib_search_path_F77 \
22994 archive_expsym_cmds_F77 \
22995 postinstall_cmds_F77 \
22996 postuninstall_cmds_F77 \
22997 old_archive_from_expsyms_cmds_F77 \
22998 allow_undefined_flag_F77 \
22999 no_undefined_flag_F77 \
23000 export_symbols_cmds_F77 \
23001 hardcode_libdir_flag_spec_F77 \
23002 hardcode_libdir_flag_spec_ld_F77 \
23003 hardcode_libdir_separator_F77 \
23004 hardcode_automatic_F77 \
23006 module_expsym_cmds_F77 \
23007 lt_cv_prog_compiler_c_o_F77 \
23008 exclude_expsyms_F77 \
23009 include_expsyms_F77; do
23012 old_archive_cmds_F77 | \
23013 old_archive_from_new_cmds_F77 | \
23014 archive_cmds_F77 | \
23015 archive_expsym_cmds_F77 | \
23016 module_cmds_F77 | \
23017 module_expsym_cmds_F77 | \
23018 old_archive_from_expsyms_cmds_F77 | \
23019 export_symbols_cmds_F77 | \
23020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23021 postinstall_cmds | postuninstall_cmds | \
23022 old_postinstall_cmds | old_postuninstall_cmds | \
23023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23024 # Double-quote double-evaled strings.
23025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23034 *'\$0 --fallback-echo"')
23035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23041 cat <<__EOF__ >> "$cfgfile"
23042 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23046 # Shell to use when invoking shell scripts.
23049 # Whether or not to build shared libraries.
23050 build_libtool_libs=$enable_shared
23052 # Whether or not to build static libraries.
23053 build_old_libs=$enable_static
23055 # Whether or not to add -lc for building shared libraries.
23056 build_libtool_need_lc=$archive_cmds_need_lc_F77
23058 # Whether or not to disallow shared libs when runtime libs are static
23059 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23061 # Whether or not to optimize for fast installation.
23062 fast_install=$enable_fast_install
23065 host_alias=$host_alias
23069 # The build system.
23070 build_alias=$build_alias
23074 # An echo program that does not interpret backslashes.
23079 AR_FLAGS=$lt_AR_FLAGS
23084 # LTCC compiler flags.
23085 LTCFLAGS=$lt_LTCFLAGS
23087 # A language-specific compiler.
23088 CC=$lt_compiler_F77
23090 # Is the compiler the GNU C compiler?
23096 # The linker used to build libraries.
23099 # Whether we need hard or soft links.
23102 # A BSD-compatible nm program.
23105 # A symbol stripping program
23108 # Used to examine libraries when file_magic_cmd begins "file"
23109 MAGIC_CMD=$MAGIC_CMD
23111 # Used on cygwin: DLL creation program.
23114 # Used on cygwin: object dumper.
23117 # Used on cygwin: assembler.
23120 # The name of the directory that contains temporary libtool files.
23123 # How to create reloadable object files.
23124 reload_flag=$lt_reload_flag
23125 reload_cmds=$lt_reload_cmds
23127 # How to pass a linker flag through the compiler.
23128 wl=$lt_lt_prog_compiler_wl_F77
23130 # Object file suffix (normally "o").
23131 objext="$ac_objext"
23133 # Old archive suffix (normally "a").
23136 # Shared library suffix (normally ".so").
23137 shrext_cmds='$shrext_cmds'
23139 # Executable file suffix (normally "").
23142 # Additional compiler flags for building library objects.
23143 pic_flag=$lt_lt_prog_compiler_pic_F77
23146 # What is the maximum length of a command?
23147 max_cmd_len=$lt_cv_sys_max_cmd_len
23149 # Does compiler simultaneously support -c and -o options?
23150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23152 # Must we lock files when doing compilation?
23153 need_locks=$lt_need_locks
23155 # Do we need the lib prefix for modules?
23156 need_lib_prefix=$need_lib_prefix
23158 # Do we need a version for libraries?
23159 need_version=$need_version
23161 # Whether dlopen is supported.
23162 dlopen_support=$enable_dlopen
23164 # Whether dlopen of programs is supported.
23165 dlopen_self=$enable_dlopen_self
23167 # Whether dlopen of statically linked programs is supported.
23168 dlopen_self_static=$enable_dlopen_self_static
23170 # Compiler flag to prevent dynamic linking.
23171 link_static_flag=$lt_lt_prog_compiler_static_F77
23173 # Compiler flag to turn off builtin functions.
23174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23176 # Compiler flag to allow reflexive dlopens.
23177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23179 # Compiler flag to generate shared objects directly from archives.
23180 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23182 # Compiler flag to generate thread-safe objects.
23183 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23185 # Library versioning type.
23186 version_type=$version_type
23188 # Format of library name prefix.
23189 libname_spec=$lt_libname_spec
23191 # List of archive names. First name is the real one, the rest are links.
23192 # The last name is the one that the linker finds with -lNAME.
23193 library_names_spec=$lt_library_names_spec
23195 # The coded name of the library, if different from the real name.
23196 soname_spec=$lt_soname_spec
23198 # Commands used to build and install an old-style archive.
23200 old_archive_cmds=$lt_old_archive_cmds_F77
23201 old_postinstall_cmds=$lt_old_postinstall_cmds
23202 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23204 # Create an old-style archive from a shared archive.
23205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23207 # Create a temporary old-style archive to link instead of a shared archive.
23208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23210 # Commands used to build and install a shared archive.
23211 archive_cmds=$lt_archive_cmds_F77
23212 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23213 postinstall_cmds=$lt_postinstall_cmds
23214 postuninstall_cmds=$lt_postuninstall_cmds
23216 # Commands used to build a loadable module (assumed same as above if empty)
23217 module_cmds=$lt_module_cmds_F77
23218 module_expsym_cmds=$lt_module_expsym_cmds_F77
23220 # Commands to strip libraries.
23221 old_striplib=$lt_old_striplib
23222 striplib=$lt_striplib
23224 # Dependencies to place before the objects being linked to create a
23226 predep_objects=$lt_predep_objects_F77
23228 # Dependencies to place after the objects being linked to create a
23230 postdep_objects=$lt_postdep_objects_F77
23232 # Dependencies to place before the objects being linked to create a
23234 predeps=$lt_predeps_F77
23236 # Dependencies to place after the objects being linked to create a
23238 postdeps=$lt_postdeps_F77
23240 # The library search path used internally by the compiler when linking
23241 # a shared library.
23242 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23244 # Method to check whether dependent libraries are shared objects.
23245 deplibs_check_method=$lt_deplibs_check_method
23247 # Command to use when deplibs_check_method == file_magic.
23248 file_magic_cmd=$lt_file_magic_cmd
23250 # Flag that allows shared libraries with undefined symbols to be built.
23251 allow_undefined_flag=$lt_allow_undefined_flag_F77
23253 # Flag that forces no undefined symbols.
23254 no_undefined_flag=$lt_no_undefined_flag_F77
23256 # Commands used to finish a libtool library installation in a directory.
23257 finish_cmds=$lt_finish_cmds
23259 # Same as above, but a single script fragment to be evaled but not shown.
23260 finish_eval=$lt_finish_eval
23262 # Take the output of nm and produce a listing of raw symbols and C names.
23263 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23265 # Transform the output of nm in a proper C declaration
23266 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23268 # Transform the output of nm in a C name address pair
23269 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23271 # This is the shared library runtime path variable.
23272 runpath_var=$runpath_var
23274 # This is the shared library path variable.
23275 shlibpath_var=$shlibpath_var
23277 # Is shlibpath searched before the hard-coded library search path?
23278 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23280 # How to hardcode a shared library path into an executable.
23281 hardcode_action=$hardcode_action_F77
23283 # Whether we should hardcode library paths into libraries.
23284 hardcode_into_libs=$hardcode_into_libs
23286 # Flag to hardcode \$libdir into a binary during linking.
23287 # This must work even if \$libdir does not exist.
23288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23290 # If ld is used when linking, flag to hardcode \$libdir into
23291 # a binary during linking. This must work even if \$libdir does
23293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23295 # Whether we need a single -rpath flag with a separated argument.
23296 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23298 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23299 # resulting binary.
23300 hardcode_direct=$hardcode_direct_F77
23302 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23303 # resulting binary.
23304 hardcode_minus_L=$hardcode_minus_L_F77
23306 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23307 # the resulting binary.
23308 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23310 # Set to yes if building a shared library automatically hardcodes DIR into the library
23311 # and all subsequent libraries and executables linked against it.
23312 hardcode_automatic=$hardcode_automatic_F77
23314 # Variables whose values should be saved in libtool wrapper scripts and
23315 # restored at relink time.
23316 variables_saved_for_relink="$variables_saved_for_relink"
23318 # Whether libtool must link a program against all its dependency libraries.
23319 link_all_deplibs=$link_all_deplibs_F77
23321 # Compile-time system search path for libraries
23322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23324 # Run-time system search path for libraries
23325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23327 # Fix the shell variable \$srcfile for the compiler.
23328 fix_srcfile_path="$fix_srcfile_path_F77"
23330 # Set to yes if exported symbols are required.
23331 always_export_symbols=$always_export_symbols_F77
23333 # The commands to list exported symbols.
23334 export_symbols_cmds=$lt_export_symbols_cmds_F77
23336 # The commands to extract the exported symbol list from a shared archive.
23337 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23339 # Symbols that should not be listed in the preloaded symbols.
23340 exclude_expsyms=$lt_exclude_expsyms_F77
23342 # Symbols that must always be exported.
23343 include_expsyms=$lt_include_expsyms_F77
23345 # ### END LIBTOOL TAG CONFIG: $tagname
23351 # If there is no Makefile yet, we rely on a make rule to execute
23352 # `config.status --recheck' to rerun these tests and create the
23353 # libtool script then.
23354 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23355 if test -f "$ltmain_in"; then
23356 test -f Makefile && make "$ltmain"
23362 ac_cpp='$CPP $CPPFLAGS'
23363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23375 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23377 ac_cpp='$CPP $CPPFLAGS'
23378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23383 # Source file extension for Java test sources.
23386 # Object file extension for compiled Java test sources.
23390 # Code to be used in simple compile tests
23391 lt_simple_compile_test_code="class foo {}\n"
23393 # Code to be used in simple link tests
23394 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23396 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23398 # If no C compiler was specified, use CC.
23401 # If no C compiler flags were specified, use CFLAGS.
23402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23404 # Allow CC to be a program name with arguments.
23408 # save warnings/boilerplate of simple test code
23409 ac_outfile=conftest.$ac_objext
23410 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23411 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23412 _lt_compiler_boilerplate=`cat conftest.err`
23415 ac_outfile=conftest.$ac_objext
23416 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23417 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23418 _lt_linker_boilerplate=`cat conftest.err`
23422 # Allow CC to be a program name with arguments.
23427 for cc_temp in $compiler""; do
23429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23435 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23438 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23439 archive_cmds_need_lc_GCJ=no
23441 old_archive_cmds_GCJ=$old_archive_cmds
23444 lt_prog_compiler_no_builtin_flag_GCJ=
23446 if test "$GCC" = yes; then
23447 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23450 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23451 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23452 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23453 echo $ECHO_N "(cached) $ECHO_C" >&6
23455 lt_cv_prog_compiler_rtti_exceptions=no
23456 ac_outfile=conftest.$ac_objext
23457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23458 lt_compiler_flag="-fno-rtti -fno-exceptions"
23459 # Insert the option either (1) after the last *FLAGS variable, or
23460 # (2) before a word containing "conftest.", or (3) at the end.
23461 # Note that $ac_compile itself does not contain backslashes and begins
23462 # with a dollar sign (not a hyphen), so the echo should work correctly.
23463 # The option is referenced via a variable to avoid confusing sed.
23464 lt_compile=`echo "$ac_compile" | $SED \
23465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23467 -e 's:$: $lt_compiler_flag:'`
23468 (eval echo "\"\$as_me:23468: $lt_compile\"" >&5)
23469 (eval "$lt_compile" 2>conftest.err)
23471 cat conftest.err >&5
23472 echo "$as_me:23472: \$? = $ac_status" >&5
23473 if (exit $ac_status) && test -s "$ac_outfile"; then
23474 # The compiler can only warn and ignore the option if not recognized
23475 # So say no if there are warnings other than the usual output.
23476 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23479 lt_cv_prog_compiler_rtti_exceptions=yes
23485 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23486 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23488 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23489 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23496 lt_prog_compiler_wl_GCJ=
23497 lt_prog_compiler_pic_GCJ=
23498 lt_prog_compiler_static_GCJ=
23500 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23501 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23503 if test "$GCC" = yes; then
23504 lt_prog_compiler_wl_GCJ='-Wl,'
23505 lt_prog_compiler_static_GCJ='-static'
23509 # All AIX code is PIC.
23510 if test "$host_cpu" = ia64; then
23511 # AIX 5 now supports IA64 processor
23512 lt_prog_compiler_static_GCJ='-Bstatic'
23517 # FIXME: we need at least 68020 code to build shared libraries, but
23518 # adding the `-m68020' flag to GCC prevents building anything better,
23520 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23523 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23524 # PIC is the default for these OSes.
23527 mingw* | pw32* | os2*)
23528 # This hack is so that the source file can tell whether it is being
23529 # built for inclusion in a dll (and should export symbols for example).
23530 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23533 darwin* | rhapsody*)
23534 # PIC is the default on this platform
23535 # Common symbols not allowed in MH_DYLIB files
23536 lt_prog_compiler_pic_GCJ='-fno-common'
23540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23541 # Instead, we relocate shared libraries at runtime.
23545 # Just because we use GCC doesn't mean we suddenly get shared libraries
23546 # on systems that don't support them.
23547 lt_prog_compiler_can_build_shared_GCJ=no
23552 if test -d /usr/nec; then
23553 lt_prog_compiler_pic_GCJ=-Kconform_pic
23558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23559 # not for PA HP-UX.
23565 lt_prog_compiler_pic_GCJ='-fPIC'
23571 lt_prog_compiler_pic_GCJ='-fPIC'
23575 # PORTME Check for flag to pass linker flags through the system compiler.
23578 lt_prog_compiler_wl_GCJ='-Wl,'
23579 if test "$host_cpu" = ia64; then
23580 # AIX 5 now supports IA64 processor
23581 lt_prog_compiler_static_GCJ='-Bstatic'
23583 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23587 # PIC is the default on this platform
23588 # Common symbols not allowed in MH_DYLIB files
23589 case $cc_basename in
23591 lt_prog_compiler_pic_GCJ='-qnocommon'
23592 lt_prog_compiler_wl_GCJ='-Wl,'
23597 mingw* | pw32* | os2*)
23598 # This hack is so that the source file can tell whether it is being
23599 # built for inclusion in a dll (and should export symbols for example).
23600 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23603 hpux9* | hpux10* | hpux11*)
23604 lt_prog_compiler_wl_GCJ='-Wl,'
23605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23606 # not for PA HP-UX.
23612 lt_prog_compiler_pic_GCJ='+Z'
23615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23616 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23619 irix5* | irix6* | nonstopux*)
23620 lt_prog_compiler_wl_GCJ='-Wl,'
23621 # PIC (with -KPIC) is the default.
23622 lt_prog_compiler_static_GCJ='-non_shared'
23626 lt_prog_compiler_pic_GCJ='-KPIC'
23627 lt_prog_compiler_static_GCJ='-Bstatic'
23631 case $cc_basename in
23633 lt_prog_compiler_wl_GCJ='-Wl,'
23634 lt_prog_compiler_pic_GCJ='-KPIC'
23635 lt_prog_compiler_static_GCJ='-static'
23637 pgcc* | pgf77* | pgf90* | pgf95*)
23638 # Portland Group compilers (*not* the Pentium gcc compiler,
23639 # which looks to be a dead project)
23640 lt_prog_compiler_wl_GCJ='-Wl,'
23641 lt_prog_compiler_pic_GCJ='-fpic'
23642 lt_prog_compiler_static_GCJ='-Bstatic'
23645 lt_prog_compiler_wl_GCJ='-Wl,'
23646 # All Alpha code is PIC.
23647 lt_prog_compiler_static_GCJ='-non_shared'
23652 osf3* | osf4* | osf5*)
23653 lt_prog_compiler_wl_GCJ='-Wl,'
23654 # All OSF/1 code is PIC.
23655 lt_prog_compiler_static_GCJ='-non_shared'
23659 lt_prog_compiler_pic_GCJ='-KPIC'
23660 lt_prog_compiler_static_GCJ='-Bstatic'
23661 case $cc_basename in
23662 f77* | f90* | f95*)
23663 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23665 lt_prog_compiler_wl_GCJ='-Wl,';;
23670 lt_prog_compiler_wl_GCJ='-Qoption ld '
23671 lt_prog_compiler_pic_GCJ='-PIC'
23672 lt_prog_compiler_static_GCJ='-Bstatic'
23675 sysv4 | sysv4.2uw2* | sysv4.3*)
23676 lt_prog_compiler_wl_GCJ='-Wl,'
23677 lt_prog_compiler_pic_GCJ='-KPIC'
23678 lt_prog_compiler_static_GCJ='-Bstatic'
23682 if test -d /usr/nec ;then
23683 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23684 lt_prog_compiler_static_GCJ='-Bstatic'
23688 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23689 lt_prog_compiler_wl_GCJ='-Wl,'
23690 lt_prog_compiler_pic_GCJ='-KPIC'
23691 lt_prog_compiler_static_GCJ='-Bstatic'
23695 lt_prog_compiler_wl_GCJ='-Wl,'
23696 lt_prog_compiler_can_build_shared_GCJ=no
23700 lt_prog_compiler_pic_GCJ='-pic'
23701 lt_prog_compiler_static_GCJ='-Bstatic'
23705 lt_prog_compiler_can_build_shared_GCJ=no
23710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23711 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23714 # Check to make sure the PIC flag actually works.
23716 if test -n "$lt_prog_compiler_pic_GCJ"; then
23718 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23719 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23720 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23721 echo $ECHO_N "(cached) $ECHO_C" >&6
23723 lt_prog_compiler_pic_works_GCJ=no
23724 ac_outfile=conftest.$ac_objext
23725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23726 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23727 # Insert the option either (1) after the last *FLAGS variable, or
23728 # (2) before a word containing "conftest.", or (3) at the end.
23729 # Note that $ac_compile itself does not contain backslashes and begins
23730 # with a dollar sign (not a hyphen), so the echo should work correctly.
23731 # The option is referenced via a variable to avoid confusing sed.
23732 lt_compile=`echo "$ac_compile" | $SED \
23733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23735 -e 's:$: $lt_compiler_flag:'`
23736 (eval echo "\"\$as_me:23736: $lt_compile\"" >&5)
23737 (eval "$lt_compile" 2>conftest.err)
23739 cat conftest.err >&5
23740 echo "$as_me:23740: \$? = $ac_status" >&5
23741 if (exit $ac_status) && test -s "$ac_outfile"; then
23742 # The compiler can only warn and ignore the option if not recognized
23743 # So say no if there are warnings other than the usual output.
23744 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23747 lt_prog_compiler_pic_works_GCJ=yes
23753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23754 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23756 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23757 case $lt_prog_compiler_pic_GCJ in
23759 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23762 lt_prog_compiler_pic_GCJ=
23763 lt_prog_compiler_can_build_shared_GCJ=no
23768 # For platforms which do not support PIC, -DPIC is meaningless:
23770 lt_prog_compiler_pic_GCJ=
23773 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23778 # Check to make sure the static flag actually works.
23780 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23781 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23782 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23783 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23784 echo $ECHO_N "(cached) $ECHO_C" >&6
23786 lt_prog_compiler_static_works_GCJ=no
23787 save_LDFLAGS="$LDFLAGS"
23788 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23789 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23791 # The linker can only warn and ignore the option if not recognized
23792 # So say no if there are warnings
23793 if test -s conftest.err; then
23794 # Append any errors to the config.log.
23795 cat conftest.err 1>&5
23796 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23798 if diff conftest.exp conftest.er2 >/dev/null; then
23799 lt_prog_compiler_static_works_GCJ=yes
23802 lt_prog_compiler_static_works_GCJ=yes
23806 LDFLAGS="$save_LDFLAGS"
23809 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23810 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23812 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23815 lt_prog_compiler_static_GCJ=
23819 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23821 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23822 echo $ECHO_N "(cached) $ECHO_C" >&6
23824 lt_cv_prog_compiler_c_o_GCJ=no
23825 $rm -r conftest 2>/dev/null
23829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23831 lt_compiler_flag="-o out/conftest2.$ac_objext"
23832 # Insert the option either (1) after the last *FLAGS variable, or
23833 # (2) before a word containing "conftest.", or (3) at the end.
23834 # Note that $ac_compile itself does not contain backslashes and begins
23835 # with a dollar sign (not a hyphen), so the echo should work correctly.
23836 lt_compile=`echo "$ac_compile" | $SED \
23837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23839 -e 's:$: $lt_compiler_flag:'`
23840 (eval echo "\"\$as_me:23840: $lt_compile\"" >&5)
23841 (eval "$lt_compile" 2>out/conftest.err)
23843 cat out/conftest.err >&5
23844 echo "$as_me:23844: \$? = $ac_status" >&5
23845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23847 # The compiler can only warn and ignore the option if not recognized
23848 # So say no if there are warnings
23849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23852 lt_cv_prog_compiler_c_o_GCJ=yes
23857 # SGI C++ compiler will create directory out/ii_files/ for
23858 # template instantiation
23859 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23860 $rm out/* && rmdir out
23866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23870 hard_links="nottested"
23871 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23872 # do not overwrite the value of need_locks provided by the user
23873 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23874 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23879 ln conftest.a conftest.b 2>&5 || hard_links=no
23880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23881 { echo "$as_me:$LINENO: result: $hard_links" >&5
23882 echo "${ECHO_T}$hard_links" >&6; }
23883 if test "$hard_links" = no; then
23884 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23885 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23892 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23896 allow_undefined_flag_GCJ=
23897 enable_shared_with_static_runtimes_GCJ=no
23899 archive_expsym_cmds_GCJ=
23900 old_archive_From_new_cmds_GCJ=
23901 old_archive_from_expsyms_cmds_GCJ=
23902 export_dynamic_flag_spec_GCJ=
23903 whole_archive_flag_spec_GCJ=
23904 thread_safe_flag_spec_GCJ=
23905 hardcode_libdir_flag_spec_GCJ=
23906 hardcode_libdir_flag_spec_ld_GCJ=
23907 hardcode_libdir_separator_GCJ=
23908 hardcode_direct_GCJ=no
23909 hardcode_minus_L_GCJ=no
23910 hardcode_shlibpath_var_GCJ=unsupported
23911 link_all_deplibs_GCJ=unknown
23912 hardcode_automatic_GCJ=no
23914 module_expsym_cmds_GCJ=
23915 always_export_symbols_GCJ=no
23916 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23917 # include_expsyms should be a list of space-separated symbols to be *always*
23918 # included in the symbol list
23919 include_expsyms_GCJ=
23920 # exclude_expsyms can be an extended regexp of symbols to exclude
23921 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23922 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23923 # as well as any symbol that contains `d'.
23924 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23925 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23926 # platforms (ab)use it in PIC code, but their linkers get confused if
23927 # the symbol is explicitly referenced. Since portable code cannot
23928 # rely on this symbol name, it's probably fine to never include it in
23929 # preloaded symbol tables.
23930 extract_expsyms_cmds=
23931 # Just being paranoid about ensuring that cc_basename is set.
23932 for cc_temp in $compiler""; do
23934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23940 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23943 cygwin* | mingw* | pw32*)
23944 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23945 # When not using gcc, we currently assume that we are using
23946 # Microsoft Visual C++.
23947 if test "$GCC" != yes; then
23952 # we just hope/assume this is gcc and not c89 (= MSVC++)
23961 if test "$with_gnu_ld" = yes; then
23962 # If archive_cmds runs LD, not CC, wlarc should be empty
23965 # Set some defaults for GNU ld with shared library support. These
23966 # are reset later if shared libraries are not supported. Putting them
23967 # here allows them to be overridden if necessary.
23968 runpath_var=LD_RUN_PATH
23969 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23970 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23971 # ancient GNU ld didn't support --whole-archive et. al.
23972 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23973 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23975 whole_archive_flag_spec_GCJ=
23977 supports_anon_versioning=no
23978 case `$LD -v 2>/dev/null` in
23979 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23980 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23981 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23982 *\ 2.11.*) ;; # other 2.11 versions
23983 *) supports_anon_versioning=yes ;;
23986 # See if GNU ld supports shared libraries.
23988 aix3* | aix4* | aix5*)
23989 # On AIX/PPC, the GNU linker is very broken
23990 if test "$host_cpu" != ia64; then
23994 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23995 *** to be unable to reliably create shared libraries on AIX.
23996 *** Therefore, libtool is disabling shared libraries support. If you
23997 *** really care for shared libraries, you may want to modify your PATH
23998 *** so that a non-GNU linker is found, and then restart.
24005 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)'
24006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24007 hardcode_minus_L_GCJ=yes
24009 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24010 # that the semantics of dynamic libraries on AmigaOS, at least up
24011 # to version 4, is to share data among multiple programs linked
24012 # with the same dynamic library. Since this doesn't match the
24013 # behavior of shared libraries on other platforms, we can't use
24019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24020 allow_undefined_flag_GCJ=unsupported
24021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24022 # support --undefined. This deserves some investigation. FIXME
24023 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24029 cygwin* | mingw* | pw32*)
24030 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24031 # as there is no search path for DLLs.
24032 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24033 allow_undefined_flag_GCJ=unsupported
24034 always_export_symbols_GCJ=no
24035 enable_shared_with_static_runtimes_GCJ=yes
24036 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24038 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24039 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24040 # If the export-symbols file already is a .def file (1st line
24041 # is EXPORTS), use it as is; otherwise, prepend...
24042 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24043 cp $export_symbols $output_objdir/$soname.def;
24045 echo EXPORTS > $output_objdir/$soname.def;
24046 cat $export_symbols >> $output_objdir/$soname.def;
24048 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24055 hardcode_direct_GCJ=no
24056 hardcode_shlibpath_var_GCJ=no
24057 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24058 export_dynamic_flag_spec_GCJ='${wl}-E'
24059 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24060 # Instead, shared libraries are loaded at an image base (0x10000000 by
24061 # default) and relocated if they conflict, which is a slow very memory
24062 # consuming and fragmenting process. To avoid this, we pick a random,
24063 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24064 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24065 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'
24066 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'
24070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24072 case $cc_basename,$host_cpu in
24073 pgcc*) # Portland Group C compiler
24074 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'
24075 tmp_addflag=' $pic_flag'
24077 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24078 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'
24079 tmp_addflag=' $pic_flag -Mnomain' ;;
24080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24081 tmp_addflag=' -i_dynamic' ;;
24082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24083 tmp_addflag=' -i_dynamic -nofor_main' ;;
24084 ifc* | ifort*) # Intel Fortran compiler
24085 tmp_addflag=' -nofor_main' ;;
24087 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24089 if test $supports_anon_versioning = yes; then
24090 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24092 $echo "local: *; };" >> $output_objdir/$libname.ver~
24093 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24102 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24105 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24106 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24111 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24115 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24116 *** create shared libraries on Solaris systems. Therefore, libtool
24117 *** is disabling shared libraries support. We urge you to upgrade GNU
24118 *** binutils to release 2.9.1 or newer. Another option is to modify
24119 *** your PATH or compiler configuration so that the native linker is
24120 *** used, and then restart.
24123 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24124 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24125 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24132 case `$LD -v 2>&1` in
24133 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24137 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24138 *** reliably create shared libraries on SCO systems. Therefore, libtool
24139 *** is disabling shared libraries support. We urge you to upgrade GNU
24140 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24141 *** your PATH or compiler configuration so that the native linker is
24142 *** used, and then restart.
24147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24148 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24149 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24150 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24159 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24161 hardcode_direct_GCJ=yes
24162 hardcode_shlibpath_var_GCJ=no
24166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24167 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24168 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24175 if test "$ld_shlibs_GCJ" = no; then
24177 hardcode_libdir_flag_spec_GCJ=
24178 export_dynamic_flag_spec_GCJ=
24179 whole_archive_flag_spec_GCJ=
24182 # PORTME fill in a description of your system's linker (not GNU ld)
24185 allow_undefined_flag_GCJ=unsupported
24186 always_export_symbols_GCJ=yes
24187 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'
24188 # Note: this linker hardcodes the directories in LIBPATH if there
24189 # are no directories specified by -L.
24190 hardcode_minus_L_GCJ=yes
24191 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24192 # Neither direct hardcoding nor static linking is supported with a
24194 hardcode_direct_GCJ=unsupported
24199 if test "$host_cpu" = ia64; then
24200 # On IA64, the linker does run time linking by default, so we don't
24201 # have to do anything special.
24202 aix_use_runtimelinking=no
24203 exp_sym_flag='-Bexport'
24206 # If we're using GNU nm, then we don't want the "-C" option.
24207 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24208 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24209 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'
24211 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'
24213 aix_use_runtimelinking=no
24215 # Test if we are trying to use run time linking or normal
24216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24217 # need to do runtime linking.
24218 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24219 for ld_flag in $LDFLAGS; do
24220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24221 aix_use_runtimelinking=yes
24228 exp_sym_flag='-bexport'
24229 no_entry_flag='-bnoentry'
24232 # When large executables or shared objects are built, AIX ld can
24233 # have problems creating the table of contents. If linking a library
24234 # or program results in "error TOC overflow" add -mminimal-toc to
24235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24238 archive_cmds_GCJ=''
24239 hardcode_direct_GCJ=yes
24240 hardcode_libdir_separator_GCJ=':'
24241 link_all_deplibs_GCJ=yes
24243 if test "$GCC" = yes; then
24244 case $host_os in aix4.[012]|aix4.[012].*)
24245 # We only want to do this on AIX 4.2 and lower, the check
24246 # below for broken collect2 doesn't work under 4.3+
24247 collect2name=`${CC} -print-prog-name=collect2`
24248 if test -f "$collect2name" && \
24249 strings "$collect2name" | grep resolve_lib_name >/dev/null
24251 # We have reworked collect2
24252 hardcode_direct_GCJ=yes
24254 # We have old collect2
24255 hardcode_direct_GCJ=unsupported
24256 # It fails to find uninstalled libraries when the uninstalled
24257 # path is not listed in the libpath. Setting hardcode_minus_L
24258 # to unsupported forces relinking
24259 hardcode_minus_L_GCJ=yes
24260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24261 hardcode_libdir_separator_GCJ=
24265 shared_flag='-shared'
24266 if test "$aix_use_runtimelinking" = yes; then
24267 shared_flag="$shared_flag "'${wl}-G'
24271 if test "$host_cpu" = ia64; then
24272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24273 # chokes on -Wl,-G. The following line is correct:
24276 if test "$aix_use_runtimelinking" = yes; then
24277 shared_flag='${wl}-G'
24279 shared_flag='${wl}-bM:SRE'
24284 # It seems that -bexpall does not export symbols beginning with
24285 # underscore (_), so it is better to generate a list of symbols to export.
24286 always_export_symbols_GCJ=yes
24287 if test "$aix_use_runtimelinking" = yes; then
24288 # Warning - without using the other runtime loading flags (-brtl),
24289 # -berok will link without error, but may produce a broken library.
24290 allow_undefined_flag_GCJ='-berok'
24291 # Determine the default libpath from the value encoded in an empty executable.
24292 cat >conftest.$ac_ext <<_ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h. */
24307 rm -f conftest.$ac_objext conftest$ac_exeext
24308 if { (ac_try="$ac_link"
24309 case "(($ac_try" in
24310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311 *) ac_try_echo=$ac_try;;
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314 (eval "$ac_link") 2>conftest.er1
24316 grep -v '^ *+' conftest.er1 >conftest.err
24318 cat conftest.err >&5
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); } &&
24321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24322 { (case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_try") 2>&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest$ac_exeext'
24332 { (case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_try") 2>&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; }; then
24342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24344 # Check for a 64-bit object if we didn't find anything.
24345 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; }
24348 echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24354 rm -f core conftest.err conftest.$ac_objext \
24355 conftest$ac_exeext conftest.$ac_ext
24356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24358 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24359 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"
24361 if test "$host_cpu" = ia64; then
24362 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24363 allow_undefined_flag_GCJ="-z nodefs"
24364 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"
24366 # Determine the default libpath from the value encoded in an empty executable.
24367 cat >conftest.$ac_ext <<_ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h. */
24382 rm -f conftest.$ac_objext conftest$ac_exeext
24383 if { (ac_try="$ac_link"
24384 case "(($ac_try" in
24385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386 *) ac_try_echo=$ac_try;;
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389 (eval "$ac_link") 2>conftest.er1
24391 grep -v '^ *+' conftest.er1 >conftest.err
24393 cat conftest.err >&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } &&
24396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24397 { (case "(($ac_try" in
24398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_try") 2>&5
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); }; } &&
24406 { ac_try='test -s conftest$ac_exeext'
24407 { (case "(($ac_try" in
24408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24409 *) ac_try_echo=$ac_try;;
24411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412 (eval "$ac_try") 2>&5
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); }; }; then
24417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24419 # Check for a 64-bit object if we didn't find anything.
24420 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; }
24423 echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24429 rm -f core conftest.err conftest.$ac_objext \
24430 conftest$ac_exeext conftest.$ac_ext
24431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24433 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24434 # Warning - without using the other run time loading flags,
24435 # -berok will link without error, but may produce a broken library.
24436 no_undefined_flag_GCJ=' ${wl}-bernotok'
24437 allow_undefined_flag_GCJ=' ${wl}-berok'
24438 # Exported symbols can be pulled into shared objects from archives
24439 whole_archive_flag_spec_GCJ='$convenience'
24440 archive_cmds_need_lc_GCJ=yes
24441 # This is similar to how AIX traditionally builds its shared libraries.
24442 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'
24448 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)'
24449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24450 hardcode_minus_L_GCJ=yes
24451 # see comment about different semantics on the GNU ld section
24456 export_dynamic_flag_spec_GCJ=-rdynamic
24459 cygwin* | mingw* | pw32*)
24460 # When not using gcc, we currently assume that we are using
24461 # Microsoft Visual C++.
24462 # hardcode_libdir_flag_spec is actually meaningless, as there is
24463 # no search path for DLLs.
24464 hardcode_libdir_flag_spec_GCJ=' '
24465 allow_undefined_flag_GCJ=unsupported
24466 # Tell ltmain to make .lib files, not .a files.
24468 # Tell ltmain to make .dll files, not .so files.
24470 # FIXME: Setting linknames here is a bad hack.
24471 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24472 # The linker will automatically build a .lib file if we build a DLL.
24473 old_archive_From_new_cmds_GCJ='true'
24474 # FIXME: Should let the user specify the lib program.
24475 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24476 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24477 enable_shared_with_static_runtimes_GCJ=yes
24480 darwin* | rhapsody*)
24482 rhapsody* | darwin1.[012])
24483 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24486 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24487 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24489 case ${MACOSX_DEPLOYMENT_TARGET} in
24491 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24494 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24500 archive_cmds_need_lc_GCJ=no
24501 hardcode_direct_GCJ=no
24502 hardcode_automatic_GCJ=yes
24503 hardcode_shlibpath_var_GCJ=unsupported
24504 whole_archive_flag_spec_GCJ=''
24505 link_all_deplibs_GCJ=yes
24506 if test "$GCC" = yes ; then
24507 output_verbose_link_cmd='echo'
24508 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24509 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24511 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}'
24512 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}'
24514 case $cc_basename in
24516 output_verbose_link_cmd='echo'
24517 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24518 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24519 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24520 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}'
24521 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}'
24531 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24533 hardcode_shlibpath_var_GCJ=no
24540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24541 # support. Future versions do this automatically, but an explicit c++rt0.o
24542 # does not break anything, and helps significantly (at the cost of a little
24545 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24546 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24547 hardcode_direct_GCJ=yes
24548 hardcode_shlibpath_var_GCJ=no
24551 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24553 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24554 hardcode_direct_GCJ=yes
24555 hardcode_minus_L_GCJ=yes
24556 hardcode_shlibpath_var_GCJ=no
24559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24560 freebsd* | kfreebsd*-gnu | dragonfly*)
24561 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24562 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24563 hardcode_direct_GCJ=yes
24564 hardcode_shlibpath_var_GCJ=no
24568 if test "$GCC" = yes; then
24569 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'
24571 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'
24573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24574 hardcode_libdir_separator_GCJ=:
24575 hardcode_direct_GCJ=yes
24577 # hardcode_minus_L: Not really in the search PATH,
24578 # but as the default location of the library.
24579 hardcode_minus_L_GCJ=yes
24580 export_dynamic_flag_spec_GCJ='${wl}-E'
24584 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24585 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24587 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24589 if test "$with_gnu_ld" = no; then
24590 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24591 hardcode_libdir_separator_GCJ=:
24593 hardcode_direct_GCJ=yes
24594 export_dynamic_flag_spec_GCJ='${wl}-E'
24596 # hardcode_minus_L: Not really in the search PATH,
24597 # but as the default location of the library.
24598 hardcode_minus_L_GCJ=yes
24603 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24606 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24609 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24612 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24618 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24621 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24624 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24628 if test "$with_gnu_ld" = no; then
24629 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24630 hardcode_libdir_separator_GCJ=:
24634 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24635 hardcode_direct_GCJ=no
24636 hardcode_shlibpath_var_GCJ=no
24639 hardcode_direct_GCJ=yes
24640 export_dynamic_flag_spec_GCJ='${wl}-E'
24642 # hardcode_minus_L: Not really in the search PATH,
24643 # but as the default location of the library.
24644 hardcode_minus_L_GCJ=yes
24650 irix5* | irix6* | nonstopux*)
24651 if test "$GCC" = yes; then
24652 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'
24654 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'
24655 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24658 hardcode_libdir_separator_GCJ=:
24659 link_all_deplibs_GCJ=yes
24663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24664 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24666 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24668 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24669 hardcode_direct_GCJ=yes
24670 hardcode_shlibpath_var_GCJ=no
24674 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24675 hardcode_direct_GCJ=yes
24676 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24677 hardcode_libdir_separator_GCJ=:
24678 hardcode_shlibpath_var_GCJ=no
24682 hardcode_direct_GCJ=yes
24683 hardcode_shlibpath_var_GCJ=no
24684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24685 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24686 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24687 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24688 export_dynamic_flag_spec_GCJ='${wl}-E'
24691 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24692 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24693 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24696 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24697 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24705 hardcode_minus_L_GCJ=yes
24706 allow_undefined_flag_GCJ=unsupported
24707 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'
24708 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24712 if test "$GCC" = yes; then
24713 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24714 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'
24716 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24717 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'
24719 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24720 hardcode_libdir_separator_GCJ=:
24723 osf4* | osf5*) # as osf3* with the addition of -msym flag
24724 if test "$GCC" = yes; then
24725 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24726 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'
24727 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24729 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24730 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'
24731 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~
24732 $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'
24734 # Both c and cxx compiler support -rpath directly
24735 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24737 hardcode_libdir_separator_GCJ=:
24741 no_undefined_flag_GCJ=' -z text'
24742 if test "$GCC" = yes; then
24744 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24745 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24746 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24749 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24750 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24754 hardcode_shlibpath_var_GCJ=no
24756 solaris2.[0-5] | solaris2.[0-5].*) ;;
24758 # The compiler driver will combine linker options so we
24759 # cannot just pass the convience library names through
24760 # without $wl, iff we do not link with $LD.
24761 # Luckily, gcc supports the same syntax we need for Sun Studio.
24762 # Supported since Solaris 2.6 (maybe 2.5.1?)
24765 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24767 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' ;;
24770 link_all_deplibs_GCJ=yes
24774 if test "x$host_vendor" = xsequent; then
24775 # Use $CC to link under sequent, because it throws in some extra .o
24776 # files that make .init and .fini sections work.
24777 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24779 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24782 hardcode_direct_GCJ=yes
24783 hardcode_minus_L_GCJ=yes
24784 hardcode_shlibpath_var_GCJ=no
24788 case $host_vendor in
24790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24791 hardcode_direct_GCJ=yes # is this really true???
24794 ## LD is ld it makes a PLAMLIB
24795 ## CC just makes a GrossModule.
24796 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24797 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24798 hardcode_direct_GCJ=no
24801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24802 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24805 runpath_var='LD_RUN_PATH'
24806 hardcode_shlibpath_var_GCJ=no
24810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24811 hardcode_shlibpath_var_GCJ=no
24812 export_dynamic_flag_spec_GCJ='-Bexport'
24816 if test -d /usr/nec; then
24817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818 hardcode_shlibpath_var_GCJ=no
24819 runpath_var=LD_RUN_PATH
24820 hardcode_runpath_var=yes
24825 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24826 no_undefined_flag_GCJ='${wl}-z,text'
24827 archive_cmds_need_lc_GCJ=no
24828 hardcode_shlibpath_var_GCJ=no
24829 runpath_var='LD_RUN_PATH'
24831 if test "$GCC" = yes; then
24832 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24833 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24835 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24836 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24840 sysv5* | sco3.2v5* | sco5v6*)
24841 # Note: We can NOT use -z defs as we might desire, because we do not
24842 # link with -lc, and that would cause any symbols used from libc to
24843 # always be unresolved, which means just about no library would
24844 # ever link correctly. If we're not using GNU ld we use -z text
24845 # though, which does catch some bad symbols but isn't as heavy-handed
24847 no_undefined_flag_GCJ='${wl}-z,text'
24848 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24849 archive_cmds_need_lc_GCJ=no
24850 hardcode_shlibpath_var_GCJ=no
24851 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24852 hardcode_libdir_separator_GCJ=':'
24853 link_all_deplibs_GCJ=yes
24854 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24855 runpath_var='LD_RUN_PATH'
24857 if test "$GCC" = yes; then
24858 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24859 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24861 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24862 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24867 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24868 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24869 hardcode_shlibpath_var_GCJ=no
24878 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24879 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24880 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24883 # Do we need to explicitly link libc?
24885 case "x$archive_cmds_need_lc_GCJ" in
24887 # Assume -lc should be added
24888 archive_cmds_need_lc_GCJ=yes
24890 if test "$enable_shared" = yes && test "$GCC" = yes; then
24891 case $archive_cmds_GCJ in
24893 # FIXME: we may have to deal with multi-command sequences.
24896 # Test whether the compiler implicitly links with -lc since on some
24897 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24898 # to ld, don't add -lc before -lgcc.
24899 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24900 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24905 (eval $ac_compile) 2>&5
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } 2>conftest.err; then
24911 libobjs=conftest.$ac_objext
24913 wl=$lt_prog_compiler_wl_GCJ
24914 pic_flag=$lt_prog_compiler_pic_GCJ
24920 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24921 allow_undefined_flag_GCJ=
24922 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24923 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); }
24928 archive_cmds_need_lc_GCJ=no
24930 archive_cmds_need_lc_GCJ=yes
24932 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24934 cat conftest.err 1>&5
24937 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24938 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24945 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24946 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24947 library_names_spec=
24948 libname_spec='lib$name'
24952 postuninstall_cmds=
24956 shlibpath_overrides_runpath=unknown
24958 dynamic_linker="$host_os ld.so"
24959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24960 if test "$GCC" = yes; then
24961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24962 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24963 # if the path contains ";" then we assume it to be the separator
24964 # otherwise default to the standard path separator (i.e. ":") - it is
24965 # assumed that no part of a normal pathname contains ";" but that should
24966 # okay in the real world where ";" in dirpaths is itself problematic.
24967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24972 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24974 need_lib_prefix=unknown
24975 hardcode_into_libs=no
24977 # when you set need_version to no, make sure it does not cause -set_version
24978 # flags to be left without arguments
24979 need_version=unknown
24984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24985 shlibpath_var=LIBPATH
24987 # AIX 3 has no versioning support, so we append a major version to the name.
24988 soname_spec='${libname}${release}${shared_ext}$major'
24995 hardcode_into_libs=yes
24996 if test "$host_cpu" = ia64; then
24997 # AIX 5 supports IA64
24998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24999 shlibpath_var=LD_LIBRARY_PATH
25001 # With GCC up to 2.95.x, collect2 would create an import file
25002 # for dependence libraries. The import file would start with
25003 # the line `#! .'. This would cause the generated library to
25004 # depend on `.', always an invalid library. This was fixed in
25005 # development snapshots of GCC prior to 3.0.
25007 aix4 | aix4.[01] | aix4.[01].*)
25008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25010 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25013 can_build_shared=no
25017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25018 # soname into executable. Probably we can add versioning support to
25019 # collect2, so additional links can be useful in future.
25020 if test "$aix_use_runtimelinking" = yes; then
25021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25022 # instead of lib<name>.a to let people know that these are not
25023 # typical AIX shared libraries.
25024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25026 # We preserve .a as extension for shared libraries through AIX4.2
25027 # and later when we are not doing run time linking.
25028 library_names_spec='${libname}${release}.a $libname.a'
25029 soname_spec='${libname}${release}${shared_ext}$major'
25031 shlibpath_var=LIBPATH
25036 library_names_spec='$libname.ixlibrary $libname.a'
25037 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25038 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'
25042 library_names_spec='${libname}${shared_ext}'
25043 dynamic_linker="$host_os ld.so"
25044 shlibpath_var=LIBRARY_PATH
25050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25051 soname_spec='${libname}${release}${shared_ext}$major'
25052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25053 shlibpath_var=LD_LIBRARY_PATH
25054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25056 # the default ld.so.conf also contains /usr/contrib/lib and
25057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25058 # libtool to hard-code these into programs
25061 cygwin* | mingw* | pw32*)
25062 version_type=windows
25067 case $GCC,$host_os in
25068 yes,cygwin* | yes,mingw* | yes,pw32*)
25069 library_names_spec='$libname.dll.a'
25070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25071 postinstall_cmds='base_file=`basename \${file}`~
25072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25073 dldir=$destdir/`dirname \$dlpath`~
25074 test -d \$dldir || mkdir -p \$dldir~
25075 $install_prog $dir/$dlname \$dldir/$dlname~
25076 chmod a+x \$dldir/$dlname'
25077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25078 dlpath=$dir/\$dldll~
25080 shlibpath_overrides_runpath=yes
25084 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25085 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25086 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25089 # MinGW DLLs use traditional 'lib' prefix
25090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25092 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25093 # It is most probably a Windows format PATH printed by
25094 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25095 # path with ; separators, and with drive letters. We can handle the
25096 # drive letters (cygwin fileutils understands them), so leave them,
25097 # especially as we might pass files found there to a mingw objdump,
25098 # which wouldn't understand a cygwinified path. Ahh.
25099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25105 # pw32 DLLs use 'pw' prefix rather than 'lib'
25106 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25112 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25115 dynamic_linker='Win32 ld.exe'
25116 # FIXME: first we should search . and the directory the executable is in
25120 darwin* | rhapsody*)
25121 dynamic_linker="$host_os dyld"
25122 version_type=darwin
25125 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25126 soname_spec='${libname}${release}${major}$shared_ext'
25127 shlibpath_overrides_runpath=yes
25128 shlibpath_var=DYLD_LIBRARY_PATH
25129 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25130 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25131 if test "$GCC" = yes; then
25132 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"`
25134 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25144 soname_spec='${libname}${release}${shared_ext}$major'
25145 shlibpath_var=LD_LIBRARY_PATH
25156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25157 soname_spec='${libname}${release}${shared_ext}$major'
25158 shlibpath_var=LD_LIBRARY_PATH
25159 shlibpath_overrides_runpath=no
25160 hardcode_into_libs=yes
25161 dynamic_linker='GNU ld.so'
25164 freebsd* | dragonfly*)
25165 # DragonFly does not have aout. When/if they implement a new
25166 # versioning mechanism, adjust this.
25167 if test -x /usr/bin/objformat; then
25168 objformat=`/usr/bin/objformat`
25171 freebsd[123]*) objformat=aout ;;
25172 *) objformat=elf ;;
25175 version_type=freebsd-$objformat
25176 case $version_type in
25178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25187 shlibpath_var=LD_LIBRARY_PATH
25190 shlibpath_overrides_runpath=yes
25192 freebsd3.[01]* | freebsdelf3.[01]*)
25193 shlibpath_overrides_runpath=yes
25194 hardcode_into_libs=yes
25196 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25197 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25198 shlibpath_overrides_runpath=no
25199 hardcode_into_libs=yes
25201 freebsd*) # from 4.6 on
25202 shlibpath_overrides_runpath=yes
25203 hardcode_into_libs=yes
25212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25213 soname_spec='${libname}${release}${shared_ext}$major'
25214 shlibpath_var=LD_LIBRARY_PATH
25215 hardcode_into_libs=yes
25218 hpux9* | hpux10* | hpux11*)
25219 # Give a soname corresponding to the major version so that dld.sl refuses to
25220 # link against other versions.
25227 hardcode_into_libs=yes
25228 dynamic_linker="$host_os dld.so"
25229 shlibpath_var=LD_LIBRARY_PATH
25230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25232 soname_spec='${libname}${release}${shared_ext}$major'
25233 if test "X$HPUX_IA64_MODE" = X32; then
25234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25242 hardcode_into_libs=yes
25243 dynamic_linker="$host_os dld.sl"
25244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25247 soname_spec='${libname}${release}${shared_ext}$major'
25248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25253 dynamic_linker="$host_os dld.sl"
25254 shlibpath_var=SHLIB_PATH
25255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25257 soname_spec='${libname}${release}${shared_ext}$major'
25260 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25261 postinstall_cmds='chmod 555 $lib'
25268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25269 soname_spec='${libname}${release}${shared_ext}$major'
25270 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25271 shlibpath_var=LD_LIBRARY_PATH
25272 shlibpath_overrides_runpath=no
25273 hardcode_into_libs=yes
25276 irix5* | irix6* | nonstopux*)
25278 nonstopux*) version_type=nonstopux ;;
25280 if test "$lt_cv_prog_gnu_ld" = yes; then
25288 soname_spec='${libname}${release}${shared_ext}$major'
25289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25291 irix5* | nonstopux*)
25292 libsuff= shlibsuff=
25295 case $LD in # libtool.m4 will add one of these switches to LD
25296 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25297 libsuff= shlibsuff= libmagic=32-bit;;
25298 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25299 libsuff=32 shlibsuff=N32 libmagic=N32;;
25300 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25301 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25302 *) libsuff= shlibsuff= libmagic=never-match;;
25306 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25307 shlibpath_overrides_runpath=no
25308 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25309 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25310 hardcode_into_libs=yes
25313 # No shared lib support for Linux oldld, aout, or coff.
25314 linux*oldld* | linux*aout* | linux*coff*)
25318 # This must be Linux ELF.
25323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25324 soname_spec='${libname}${release}${shared_ext}$major'
25325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25326 shlibpath_var=LD_LIBRARY_PATH
25327 shlibpath_overrides_runpath=no
25328 # This implies no fast_install, which is unacceptable.
25329 # Some rework will be needed to allow for fast_install
25330 # before this can be enabled.
25331 hardcode_into_libs=yes
25333 # Append ld.so.conf contents to the search path
25334 if test -f /etc/ld.so.conf; then
25335 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' ' '`
25336 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25339 # We used to test for /lib/ld.so.1 and disable shared libraries on
25340 # powerpc, because MkLinux only supported shared libraries with the
25341 # GNU dynamic linker. Since this was broken with cross compilers,
25342 # most powerpc-linux boxes support dynamic linking these days and
25343 # people can always --disable-shared, the test was removed, and we
25344 # assume the GNU/Linux dynamic linker is in use.
25345 dynamic_linker='GNU/Linux ld.so'
25352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25353 soname_spec='${libname}${release}${shared_ext}$major'
25354 shlibpath_var=LD_LIBRARY_PATH
25355 shlibpath_overrides_runpath=no
25356 hardcode_into_libs=yes
25357 dynamic_linker='GNU ld.so'
25364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25367 dynamic_linker='NetBSD (a.out) ld.so'
25369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25370 soname_spec='${libname}${release}${shared_ext}$major'
25371 dynamic_linker='NetBSD ld.elf_so'
25373 shlibpath_var=LD_LIBRARY_PATH
25374 shlibpath_overrides_runpath=yes
25375 hardcode_into_libs=yes
25380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25381 shlibpath_var=LD_LIBRARY_PATH
25382 shlibpath_overrides_runpath=yes
25389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25390 soname_spec='${libname}${release}${shared_ext}$major'
25391 shlibpath_var=LD_LIBRARY_PATH
25392 shlibpath_overrides_runpath=yes
25397 sys_lib_dlsearch_path_spec="/usr/lib"
25399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25401 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25402 *) need_version=no ;;
25404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25406 shlibpath_var=LD_LIBRARY_PATH
25407 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25409 openbsd2.[89] | openbsd2.[89].*)
25410 shlibpath_overrides_runpath=no
25413 shlibpath_overrides_runpath=yes
25417 shlibpath_overrides_runpath=yes
25422 libname_spec='$name'
25425 library_names_spec='$libname${shared_ext} $libname.a'
25426 dynamic_linker='OS/2 ld.exe'
25427 shlibpath_var=LIBPATH
25430 osf3* | osf4* | osf5*)
25434 soname_spec='${libname}${release}${shared_ext}$major'
25435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25436 shlibpath_var=LD_LIBRARY_PATH
25437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25446 soname_spec='${libname}${release}${shared_ext}$major'
25447 shlibpath_var=LD_LIBRARY_PATH
25448 shlibpath_overrides_runpath=yes
25449 hardcode_into_libs=yes
25450 # ldd complains unless libraries are executable
25451 postinstall_cmds='chmod +x $lib'
25456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25457 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25458 shlibpath_var=LD_LIBRARY_PATH
25459 shlibpath_overrides_runpath=yes
25460 if test "$with_gnu_ld" = yes; then
25468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25469 soname_spec='${libname}${release}${shared_ext}$major'
25470 shlibpath_var=LD_LIBRARY_PATH
25471 case $host_vendor in
25473 shlibpath_overrides_runpath=no
25475 export_dynamic_flag_spec='${wl}-Blargedynsym'
25476 runpath_var=LD_RUN_PATH
25484 shlibpath_overrides_runpath=no
25485 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25491 if test -d /usr/nec ;then
25493 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25494 soname_spec='$libname${shared_ext}.$major'
25495 shlibpath_var=LD_LIBRARY_PATH
25499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25500 version_type=freebsd-elf
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25504 soname_spec='${libname}${release}${shared_ext}$major'
25505 shlibpath_var=LD_LIBRARY_PATH
25506 hardcode_into_libs=yes
25507 if test "$with_gnu_ld" = yes; then
25508 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25509 shlibpath_overrides_runpath=no
25511 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25512 shlibpath_overrides_runpath=yes
25515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25519 sys_lib_dlsearch_path_spec='/usr/lib'
25524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25525 soname_spec='${libname}${release}${shared_ext}$major'
25526 shlibpath_var=LD_LIBRARY_PATH
25533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25534 echo "${ECHO_T}$dynamic_linker" >&6; }
25535 test "$dynamic_linker" = no && can_build_shared=no
25537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25538 if test "$GCC" = yes; then
25539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25544 hardcode_action_GCJ=
25545 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25546 test -n "$runpath_var_GCJ" || \
25547 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25549 # We can hardcode non-existant directories.
25550 if test "$hardcode_direct_GCJ" != no &&
25551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25552 # have to relink, otherwise we might link with an installed library
25553 # when we should be linking with a yet-to-be-installed one
25554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25555 test "$hardcode_minus_L_GCJ" != no; then
25556 # Linking always hardcodes the temporary library directory.
25557 hardcode_action_GCJ=relink
25559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25560 hardcode_action_GCJ=immediate
25563 # We cannot hardcode anything, or else we can only hardcode existing
25565 hardcode_action_GCJ=unsupported
25567 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25568 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25570 if test "$hardcode_action_GCJ" = relink; then
25571 # Fast installation is not supported
25572 enable_fast_install=no
25573 elif test "$shlibpath_overrides_runpath" = yes ||
25574 test "$enable_shared" = no; then
25575 # Fast installation is not necessary
25576 enable_fast_install=needless
25580 # The else clause should only fire when bootstrapping the
25581 # libtool distribution, otherwise you forgot to ship ltmain.sh
25582 # with your package, and you will get complaints that there are
25583 # no rules to generate ltmain.sh.
25584 if test -f "$ltmain"; then
25585 # See if we are running on zsh, and set the options which allow our commands through
25586 # without removal of \ escapes.
25587 if test -n "${ZSH_VERSION+set}" ; then
25588 setopt NO_GLOB_SUBST
25590 # Now quote all the things that may contain metacharacters while being
25591 # careful not to overquote the AC_SUBSTed values. We take copies of the
25592 # variables and quote the copies for generation of the libtool script.
25593 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25597 deplibs_check_method reload_flag reload_cmds need_locks \
25598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25599 lt_cv_sys_global_symbol_to_c_name_address \
25600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25601 old_postinstall_cmds old_postuninstall_cmds \
25605 lt_prog_compiler_wl_GCJ \
25606 lt_prog_compiler_pic_GCJ \
25607 lt_prog_compiler_static_GCJ \
25608 lt_prog_compiler_no_builtin_flag_GCJ \
25609 export_dynamic_flag_spec_GCJ \
25610 thread_safe_flag_spec_GCJ \
25611 whole_archive_flag_spec_GCJ \
25612 enable_shared_with_static_runtimes_GCJ \
25613 old_archive_cmds_GCJ \
25614 old_archive_from_new_cmds_GCJ \
25615 predep_objects_GCJ \
25616 postdep_objects_GCJ \
25619 compiler_lib_search_path_GCJ \
25621 archive_expsym_cmds_GCJ \
25622 postinstall_cmds_GCJ \
25623 postuninstall_cmds_GCJ \
25624 old_archive_from_expsyms_cmds_GCJ \
25625 allow_undefined_flag_GCJ \
25626 no_undefined_flag_GCJ \
25627 export_symbols_cmds_GCJ \
25628 hardcode_libdir_flag_spec_GCJ \
25629 hardcode_libdir_flag_spec_ld_GCJ \
25630 hardcode_libdir_separator_GCJ \
25631 hardcode_automatic_GCJ \
25633 module_expsym_cmds_GCJ \
25634 lt_cv_prog_compiler_c_o_GCJ \
25635 exclude_expsyms_GCJ \
25636 include_expsyms_GCJ; do
25639 old_archive_cmds_GCJ | \
25640 old_archive_from_new_cmds_GCJ | \
25641 archive_cmds_GCJ | \
25642 archive_expsym_cmds_GCJ | \
25643 module_cmds_GCJ | \
25644 module_expsym_cmds_GCJ | \
25645 old_archive_from_expsyms_cmds_GCJ | \
25646 export_symbols_cmds_GCJ | \
25647 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25648 postinstall_cmds | postuninstall_cmds | \
25649 old_postinstall_cmds | old_postuninstall_cmds | \
25650 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25651 # Double-quote double-evaled strings.
25652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25661 *'\$0 --fallback-echo"')
25662 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25668 cat <<__EOF__ >> "$cfgfile"
25669 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25671 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25673 # Shell to use when invoking shell scripts.
25676 # Whether or not to build shared libraries.
25677 build_libtool_libs=$enable_shared
25679 # Whether or not to build static libraries.
25680 build_old_libs=$enable_static
25682 # Whether or not to add -lc for building shared libraries.
25683 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25685 # Whether or not to disallow shared libs when runtime libs are static
25686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25688 # Whether or not to optimize for fast installation.
25689 fast_install=$enable_fast_install
25692 host_alias=$host_alias
25696 # The build system.
25697 build_alias=$build_alias
25701 # An echo program that does not interpret backslashes.
25706 AR_FLAGS=$lt_AR_FLAGS
25711 # LTCC compiler flags.
25712 LTCFLAGS=$lt_LTCFLAGS
25714 # A language-specific compiler.
25715 CC=$lt_compiler_GCJ
25717 # Is the compiler the GNU C compiler?
25723 # The linker used to build libraries.
25726 # Whether we need hard or soft links.
25729 # A BSD-compatible nm program.
25732 # A symbol stripping program
25735 # Used to examine libraries when file_magic_cmd begins "file"
25736 MAGIC_CMD=$MAGIC_CMD
25738 # Used on cygwin: DLL creation program.
25741 # Used on cygwin: object dumper.
25744 # Used on cygwin: assembler.
25747 # The name of the directory that contains temporary libtool files.
25750 # How to create reloadable object files.
25751 reload_flag=$lt_reload_flag
25752 reload_cmds=$lt_reload_cmds
25754 # How to pass a linker flag through the compiler.
25755 wl=$lt_lt_prog_compiler_wl_GCJ
25757 # Object file suffix (normally "o").
25758 objext="$ac_objext"
25760 # Old archive suffix (normally "a").
25763 # Shared library suffix (normally ".so").
25764 shrext_cmds='$shrext_cmds'
25766 # Executable file suffix (normally "").
25769 # Additional compiler flags for building library objects.
25770 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25773 # What is the maximum length of a command?
25774 max_cmd_len=$lt_cv_sys_max_cmd_len
25776 # Does compiler simultaneously support -c and -o options?
25777 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25779 # Must we lock files when doing compilation?
25780 need_locks=$lt_need_locks
25782 # Do we need the lib prefix for modules?
25783 need_lib_prefix=$need_lib_prefix
25785 # Do we need a version for libraries?
25786 need_version=$need_version
25788 # Whether dlopen is supported.
25789 dlopen_support=$enable_dlopen
25791 # Whether dlopen of programs is supported.
25792 dlopen_self=$enable_dlopen_self
25794 # Whether dlopen of statically linked programs is supported.
25795 dlopen_self_static=$enable_dlopen_self_static
25797 # Compiler flag to prevent dynamic linking.
25798 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25800 # Compiler flag to turn off builtin functions.
25801 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25803 # Compiler flag to allow reflexive dlopens.
25804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25806 # Compiler flag to generate shared objects directly from archives.
25807 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25809 # Compiler flag to generate thread-safe objects.
25810 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25812 # Library versioning type.
25813 version_type=$version_type
25815 # Format of library name prefix.
25816 libname_spec=$lt_libname_spec
25818 # List of archive names. First name is the real one, the rest are links.
25819 # The last name is the one that the linker finds with -lNAME.
25820 library_names_spec=$lt_library_names_spec
25822 # The coded name of the library, if different from the real name.
25823 soname_spec=$lt_soname_spec
25825 # Commands used to build and install an old-style archive.
25827 old_archive_cmds=$lt_old_archive_cmds_GCJ
25828 old_postinstall_cmds=$lt_old_postinstall_cmds
25829 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25831 # Create an old-style archive from a shared archive.
25832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25834 # Create a temporary old-style archive to link instead of a shared archive.
25835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25837 # Commands used to build and install a shared archive.
25838 archive_cmds=$lt_archive_cmds_GCJ
25839 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25840 postinstall_cmds=$lt_postinstall_cmds
25841 postuninstall_cmds=$lt_postuninstall_cmds
25843 # Commands used to build a loadable module (assumed same as above if empty)
25844 module_cmds=$lt_module_cmds_GCJ
25845 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25847 # Commands to strip libraries.
25848 old_striplib=$lt_old_striplib
25849 striplib=$lt_striplib
25851 # Dependencies to place before the objects being linked to create a
25853 predep_objects=$lt_predep_objects_GCJ
25855 # Dependencies to place after the objects being linked to create a
25857 postdep_objects=$lt_postdep_objects_GCJ
25859 # Dependencies to place before the objects being linked to create a
25861 predeps=$lt_predeps_GCJ
25863 # Dependencies to place after the objects being linked to create a
25865 postdeps=$lt_postdeps_GCJ
25867 # The library search path used internally by the compiler when linking
25868 # a shared library.
25869 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25871 # Method to check whether dependent libraries are shared objects.
25872 deplibs_check_method=$lt_deplibs_check_method
25874 # Command to use when deplibs_check_method == file_magic.
25875 file_magic_cmd=$lt_file_magic_cmd
25877 # Flag that allows shared libraries with undefined symbols to be built.
25878 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25880 # Flag that forces no undefined symbols.
25881 no_undefined_flag=$lt_no_undefined_flag_GCJ
25883 # Commands used to finish a libtool library installation in a directory.
25884 finish_cmds=$lt_finish_cmds
25886 # Same as above, but a single script fragment to be evaled but not shown.
25887 finish_eval=$lt_finish_eval
25889 # Take the output of nm and produce a listing of raw symbols and C names.
25890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25892 # Transform the output of nm in a proper C declaration
25893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25895 # Transform the output of nm in a C name address pair
25896 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25898 # This is the shared library runtime path variable.
25899 runpath_var=$runpath_var
25901 # This is the shared library path variable.
25902 shlibpath_var=$shlibpath_var
25904 # Is shlibpath searched before the hard-coded library search path?
25905 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25907 # How to hardcode a shared library path into an executable.
25908 hardcode_action=$hardcode_action_GCJ
25910 # Whether we should hardcode library paths into libraries.
25911 hardcode_into_libs=$hardcode_into_libs
25913 # Flag to hardcode \$libdir into a binary during linking.
25914 # This must work even if \$libdir does not exist.
25915 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25917 # If ld is used when linking, flag to hardcode \$libdir into
25918 # a binary during linking. This must work even if \$libdir does
25920 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25922 # Whether we need a single -rpath flag with a separated argument.
25923 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25925 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25926 # resulting binary.
25927 hardcode_direct=$hardcode_direct_GCJ
25929 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25930 # resulting binary.
25931 hardcode_minus_L=$hardcode_minus_L_GCJ
25933 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25934 # the resulting binary.
25935 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25937 # Set to yes if building a shared library automatically hardcodes DIR into the library
25938 # and all subsequent libraries and executables linked against it.
25939 hardcode_automatic=$hardcode_automatic_GCJ
25941 # Variables whose values should be saved in libtool wrapper scripts and
25942 # restored at relink time.
25943 variables_saved_for_relink="$variables_saved_for_relink"
25945 # Whether libtool must link a program against all its dependency libraries.
25946 link_all_deplibs=$link_all_deplibs_GCJ
25948 # Compile-time system search path for libraries
25949 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25951 # Run-time system search path for libraries
25952 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25954 # Fix the shell variable \$srcfile for the compiler.
25955 fix_srcfile_path="$fix_srcfile_path_GCJ"
25957 # Set to yes if exported symbols are required.
25958 always_export_symbols=$always_export_symbols_GCJ
25960 # The commands to list exported symbols.
25961 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25963 # The commands to extract the exported symbol list from a shared archive.
25964 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25966 # Symbols that should not be listed in the preloaded symbols.
25967 exclude_expsyms=$lt_exclude_expsyms_GCJ
25969 # Symbols that must always be exported.
25970 include_expsyms=$lt_include_expsyms_GCJ
25972 # ### END LIBTOOL TAG CONFIG: $tagname
25978 # If there is no Makefile yet, we rely on a make rule to execute
25979 # `config.status --recheck' to rerun these tests and create the
25980 # libtool script then.
25981 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25982 if test -f "$ltmain_in"; then
25983 test -f Makefile && make "$ltmain"
25989 ac_cpp='$CPP $CPPFLAGS'
25990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26003 ac_cpp='$CPP $CPPFLAGS'
26004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26009 # Source file extension for RC test sources.
26012 # Object file extension for compiled RC test sources.
26016 # Code to be used in simple compile tests
26017 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26019 # Code to be used in simple link tests
26020 lt_simple_link_test_code="$lt_simple_compile_test_code"
26022 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26024 # If no C compiler was specified, use CC.
26027 # If no C compiler flags were specified, use CFLAGS.
26028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26030 # Allow CC to be a program name with arguments.
26034 # save warnings/boilerplate of simple test code
26035 ac_outfile=conftest.$ac_objext
26036 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26038 _lt_compiler_boilerplate=`cat conftest.err`
26041 ac_outfile=conftest.$ac_objext
26042 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26044 _lt_linker_boilerplate=`cat conftest.err`
26048 # Allow CC to be a program name with arguments.
26053 for cc_temp in $compiler""; do
26055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26063 lt_cv_prog_compiler_c_o_RC=yes
26065 # The else clause should only fire when bootstrapping the
26066 # libtool distribution, otherwise you forgot to ship ltmain.sh
26067 # with your package, and you will get complaints that there are
26068 # no rules to generate ltmain.sh.
26069 if test -f "$ltmain"; then
26070 # See if we are running on zsh, and set the options which allow our commands through
26071 # without removal of \ escapes.
26072 if test -n "${ZSH_VERSION+set}" ; then
26073 setopt NO_GLOB_SUBST
26075 # Now quote all the things that may contain metacharacters while being
26076 # careful not to overquote the AC_SUBSTed values. We take copies of the
26077 # variables and quote the copies for generation of the libtool script.
26078 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26080 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26081 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26082 deplibs_check_method reload_flag reload_cmds need_locks \
26083 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26084 lt_cv_sys_global_symbol_to_c_name_address \
26085 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26086 old_postinstall_cmds old_postuninstall_cmds \
26090 lt_prog_compiler_wl_RC \
26091 lt_prog_compiler_pic_RC \
26092 lt_prog_compiler_static_RC \
26093 lt_prog_compiler_no_builtin_flag_RC \
26094 export_dynamic_flag_spec_RC \
26095 thread_safe_flag_spec_RC \
26096 whole_archive_flag_spec_RC \
26097 enable_shared_with_static_runtimes_RC \
26098 old_archive_cmds_RC \
26099 old_archive_from_new_cmds_RC \
26100 predep_objects_RC \
26101 postdep_objects_RC \
26104 compiler_lib_search_path_RC \
26106 archive_expsym_cmds_RC \
26107 postinstall_cmds_RC \
26108 postuninstall_cmds_RC \
26109 old_archive_from_expsyms_cmds_RC \
26110 allow_undefined_flag_RC \
26111 no_undefined_flag_RC \
26112 export_symbols_cmds_RC \
26113 hardcode_libdir_flag_spec_RC \
26114 hardcode_libdir_flag_spec_ld_RC \
26115 hardcode_libdir_separator_RC \
26116 hardcode_automatic_RC \
26118 module_expsym_cmds_RC \
26119 lt_cv_prog_compiler_c_o_RC \
26120 exclude_expsyms_RC \
26121 include_expsyms_RC; do
26124 old_archive_cmds_RC | \
26125 old_archive_from_new_cmds_RC | \
26126 archive_cmds_RC | \
26127 archive_expsym_cmds_RC | \
26129 module_expsym_cmds_RC | \
26130 old_archive_from_expsyms_cmds_RC | \
26131 export_symbols_cmds_RC | \
26132 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26133 postinstall_cmds | postuninstall_cmds | \
26134 old_postinstall_cmds | old_postuninstall_cmds | \
26135 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26136 # Double-quote double-evaled strings.
26137 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26146 *'\$0 --fallback-echo"')
26147 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26153 cat <<__EOF__ >> "$cfgfile"
26154 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26158 # Shell to use when invoking shell scripts.
26161 # Whether or not to build shared libraries.
26162 build_libtool_libs=$enable_shared
26164 # Whether or not to build static libraries.
26165 build_old_libs=$enable_static
26167 # Whether or not to add -lc for building shared libraries.
26168 build_libtool_need_lc=$archive_cmds_need_lc_RC
26170 # Whether or not to disallow shared libs when runtime libs are static
26171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26173 # Whether or not to optimize for fast installation.
26174 fast_install=$enable_fast_install
26177 host_alias=$host_alias
26181 # The build system.
26182 build_alias=$build_alias
26186 # An echo program that does not interpret backslashes.
26191 AR_FLAGS=$lt_AR_FLAGS
26196 # LTCC compiler flags.
26197 LTCFLAGS=$lt_LTCFLAGS
26199 # A language-specific compiler.
26202 # Is the compiler the GNU C compiler?
26208 # The linker used to build libraries.
26211 # Whether we need hard or soft links.
26214 # A BSD-compatible nm program.
26217 # A symbol stripping program
26220 # Used to examine libraries when file_magic_cmd begins "file"
26221 MAGIC_CMD=$MAGIC_CMD
26223 # Used on cygwin: DLL creation program.
26226 # Used on cygwin: object dumper.
26229 # Used on cygwin: assembler.
26232 # The name of the directory that contains temporary libtool files.
26235 # How to create reloadable object files.
26236 reload_flag=$lt_reload_flag
26237 reload_cmds=$lt_reload_cmds
26239 # How to pass a linker flag through the compiler.
26240 wl=$lt_lt_prog_compiler_wl_RC
26242 # Object file suffix (normally "o").
26243 objext="$ac_objext"
26245 # Old archive suffix (normally "a").
26248 # Shared library suffix (normally ".so").
26249 shrext_cmds='$shrext_cmds'
26251 # Executable file suffix (normally "").
26254 # Additional compiler flags for building library objects.
26255 pic_flag=$lt_lt_prog_compiler_pic_RC
26258 # What is the maximum length of a command?
26259 max_cmd_len=$lt_cv_sys_max_cmd_len
26261 # Does compiler simultaneously support -c and -o options?
26262 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26264 # Must we lock files when doing compilation?
26265 need_locks=$lt_need_locks
26267 # Do we need the lib prefix for modules?
26268 need_lib_prefix=$need_lib_prefix
26270 # Do we need a version for libraries?
26271 need_version=$need_version
26273 # Whether dlopen is supported.
26274 dlopen_support=$enable_dlopen
26276 # Whether dlopen of programs is supported.
26277 dlopen_self=$enable_dlopen_self
26279 # Whether dlopen of statically linked programs is supported.
26280 dlopen_self_static=$enable_dlopen_self_static
26282 # Compiler flag to prevent dynamic linking.
26283 link_static_flag=$lt_lt_prog_compiler_static_RC
26285 # Compiler flag to turn off builtin functions.
26286 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26288 # Compiler flag to allow reflexive dlopens.
26289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26291 # Compiler flag to generate shared objects directly from archives.
26292 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26294 # Compiler flag to generate thread-safe objects.
26295 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26297 # Library versioning type.
26298 version_type=$version_type
26300 # Format of library name prefix.
26301 libname_spec=$lt_libname_spec
26303 # List of archive names. First name is the real one, the rest are links.
26304 # The last name is the one that the linker finds with -lNAME.
26305 library_names_spec=$lt_library_names_spec
26307 # The coded name of the library, if different from the real name.
26308 soname_spec=$lt_soname_spec
26310 # Commands used to build and install an old-style archive.
26312 old_archive_cmds=$lt_old_archive_cmds_RC
26313 old_postinstall_cmds=$lt_old_postinstall_cmds
26314 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26316 # Create an old-style archive from a shared archive.
26317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26319 # Create a temporary old-style archive to link instead of a shared archive.
26320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26322 # Commands used to build and install a shared archive.
26323 archive_cmds=$lt_archive_cmds_RC
26324 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26325 postinstall_cmds=$lt_postinstall_cmds
26326 postuninstall_cmds=$lt_postuninstall_cmds
26328 # Commands used to build a loadable module (assumed same as above if empty)
26329 module_cmds=$lt_module_cmds_RC
26330 module_expsym_cmds=$lt_module_expsym_cmds_RC
26332 # Commands to strip libraries.
26333 old_striplib=$lt_old_striplib
26334 striplib=$lt_striplib
26336 # Dependencies to place before the objects being linked to create a
26338 predep_objects=$lt_predep_objects_RC
26340 # Dependencies to place after the objects being linked to create a
26342 postdep_objects=$lt_postdep_objects_RC
26344 # Dependencies to place before the objects being linked to create a
26346 predeps=$lt_predeps_RC
26348 # Dependencies to place after the objects being linked to create a
26350 postdeps=$lt_postdeps_RC
26352 # The library search path used internally by the compiler when linking
26353 # a shared library.
26354 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26356 # Method to check whether dependent libraries are shared objects.
26357 deplibs_check_method=$lt_deplibs_check_method
26359 # Command to use when deplibs_check_method == file_magic.
26360 file_magic_cmd=$lt_file_magic_cmd
26362 # Flag that allows shared libraries with undefined symbols to be built.
26363 allow_undefined_flag=$lt_allow_undefined_flag_RC
26365 # Flag that forces no undefined symbols.
26366 no_undefined_flag=$lt_no_undefined_flag_RC
26368 # Commands used to finish a libtool library installation in a directory.
26369 finish_cmds=$lt_finish_cmds
26371 # Same as above, but a single script fragment to be evaled but not shown.
26372 finish_eval=$lt_finish_eval
26374 # Take the output of nm and produce a listing of raw symbols and C names.
26375 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26377 # Transform the output of nm in a proper C declaration
26378 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26380 # Transform the output of nm in a C name address pair
26381 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26383 # This is the shared library runtime path variable.
26384 runpath_var=$runpath_var
26386 # This is the shared library path variable.
26387 shlibpath_var=$shlibpath_var
26389 # Is shlibpath searched before the hard-coded library search path?
26390 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26392 # How to hardcode a shared library path into an executable.
26393 hardcode_action=$hardcode_action_RC
26395 # Whether we should hardcode library paths into libraries.
26396 hardcode_into_libs=$hardcode_into_libs
26398 # Flag to hardcode \$libdir into a binary during linking.
26399 # This must work even if \$libdir does not exist.
26400 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26402 # If ld is used when linking, flag to hardcode \$libdir into
26403 # a binary during linking. This must work even if \$libdir does
26405 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26407 # Whether we need a single -rpath flag with a separated argument.
26408 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26410 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26411 # resulting binary.
26412 hardcode_direct=$hardcode_direct_RC
26414 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26415 # resulting binary.
26416 hardcode_minus_L=$hardcode_minus_L_RC
26418 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26419 # the resulting binary.
26420 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26422 # Set to yes if building a shared library automatically hardcodes DIR into the library
26423 # and all subsequent libraries and executables linked against it.
26424 hardcode_automatic=$hardcode_automatic_RC
26426 # Variables whose values should be saved in libtool wrapper scripts and
26427 # restored at relink time.
26428 variables_saved_for_relink="$variables_saved_for_relink"
26430 # Whether libtool must link a program against all its dependency libraries.
26431 link_all_deplibs=$link_all_deplibs_RC
26433 # Compile-time system search path for libraries
26434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26436 # Run-time system search path for libraries
26437 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26439 # Fix the shell variable \$srcfile for the compiler.
26440 fix_srcfile_path="$fix_srcfile_path_RC"
26442 # Set to yes if exported symbols are required.
26443 always_export_symbols=$always_export_symbols_RC
26445 # The commands to list exported symbols.
26446 export_symbols_cmds=$lt_export_symbols_cmds_RC
26448 # The commands to extract the exported symbol list from a shared archive.
26449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26451 # Symbols that should not be listed in the preloaded symbols.
26452 exclude_expsyms=$lt_exclude_expsyms_RC
26454 # Symbols that must always be exported.
26455 include_expsyms=$lt_include_expsyms_RC
26457 # ### END LIBTOOL TAG CONFIG: $tagname
26463 # If there is no Makefile yet, we rely on a make rule to execute
26464 # `config.status --recheck' to rerun these tests and create the
26465 # libtool script then.
26466 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26467 if test -f "$ltmain_in"; then
26468 test -f Makefile && make "$ltmain"
26474 ac_cpp='$CPP $CPPFLAGS'
26475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26484 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26485 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26486 { (exit 1); exit 1; }; }
26490 # Append the new tag name to the list of available tags.
26491 if test -n "$tagname" ; then
26492 available_tags="$available_tags $tagname"
26498 # Now substitute the updated list of available tags.
26499 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26500 mv "${ofile}T" "$ofile"
26504 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26505 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26506 { (exit 1); exit 1; }; }
26512 # This can be used to rebuild libtool when needed
26513 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26515 # Always use our own libtool.
26516 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26518 # Prevent multiple expansion
26540 if test "$lt_cv_dlopen_self" = "yes" ; then
26542 cat >>confdefs.h <<\_ACEOF
26543 #define CAN_DLOPEN_SELF 1
26548 etags_version=`$ETAGS --version 2>&1`
26549 case "$etags_version" in
26550 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26551 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26552 *) ETAGSFLAGS="" ;;
26554 ETAGSFLAGS=$ETAGSFLAGS
26557 if test "$WITH_LLVMGCCDIR" = "default" ; then
26558 LLVMGCC="llvm-gcc${EXEEXT}"
26559 LLVMGXX="llvm-g++${EXEEXT}"
26560 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26561 set dummy $LLVMGCC; ac_word=$2
26562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26564 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26565 echo $ECHO_N "(cached) $ECHO_C" >&6
26569 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26573 for as_dir in $PATH
26576 test -z "$as_dir" && as_dir=.
26577 for ac_exec_ext in '' $ac_executable_extensions; do
26578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26579 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26590 LLVMGCC=$ac_cv_path_LLVMGCC
26591 if test -n "$LLVMGCC"; then
26592 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26593 echo "${ECHO_T}$LLVMGCC" >&6; }
26595 { echo "$as_me:$LINENO: result: no" >&5
26596 echo "${ECHO_T}no" >&6; }
26600 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26601 set dummy $LLVMGXX; ac_word=$2
26602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26604 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26605 echo $ECHO_N "(cached) $ECHO_C" >&6
26609 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26613 for as_dir in $PATH
26616 test -z "$as_dir" && as_dir=.
26617 for ac_exec_ext in '' $ac_executable_extensions; do
26618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26619 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26630 LLVMGXX=$ac_cv_path_LLVMGXX
26631 if test -n "$LLVMGXX"; then
26632 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26633 echo "${ECHO_T}$LLVMGXX" >&6; }
26635 { echo "$as_me:$LINENO: result: no" >&5
26636 echo "${ECHO_T}no" >&6; }
26641 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26642 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26649 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26650 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26663 if test "$GCC" != "yes" && test "$ICC" != "yes"
26665 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26666 echo "$as_me: error: gcc|icc required but not found" >&2;}
26667 { (exit 1); exit 1; }; }
26670 if test "$GXX" != "yes" && test "$IXX" != "yes"
26672 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26673 echo "$as_me: error: g++|icc required but not found" >&2;}
26674 { (exit 1); exit 1; }; }
26677 if test "$GCC" = "yes"
26679 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26680 if test "$gccmajor" -lt "3"
26682 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26683 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26684 { (exit 1); exit 1; }; }
26688 if test -z "$llvm_cv_gnu_make_command"
26690 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26691 echo "$as_me: error: GNU Make required but not found" >&2;}
26692 { (exit 1); exit 1; }; }
26695 { echo "$as_me:$LINENO: result: ok" >&5
26696 echo "${ECHO_T}ok" >&6; }
26700 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26701 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26702 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26705 ac_check_lib_save_LIBS=$LIBS
26707 cat >conftest.$ac_ext <<_ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h. */
26714 /* Override any GCC internal prototype to avoid an error.
26715 Use char because int might match the return type of a GCC
26716 builtin and then its argument prototype would still apply. */
26724 return elf_begin ();
26729 rm -f conftest.$ac_objext conftest$ac_exeext
26730 if { (ac_try="$ac_link"
26731 case "(($ac_try" in
26732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733 *) ac_try_echo=$ac_try;;
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736 (eval "$ac_link") 2>conftest.er1
26738 grep -v '^ *+' conftest.er1 >conftest.err
26740 cat conftest.err >&5
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); } &&
26743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26744 { (case "(($ac_try" in
26745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746 *) ac_try_echo=$ac_try;;
26748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749 (eval "$ac_try") 2>&5
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; } &&
26753 { ac_try='test -s conftest$ac_exeext'
26754 { (case "(($ac_try" in
26755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756 *) ac_try_echo=$ac_try;;
26758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26759 (eval "$ac_try") 2>&5
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; }; then
26763 ac_cv_lib_elf_elf_begin=yes
26765 echo "$as_me: failed program was:" >&5
26766 sed 's/^/| /' conftest.$ac_ext >&5
26768 ac_cv_lib_elf_elf_begin=no
26771 rm -f core conftest.err conftest.$ac_objext \
26772 conftest$ac_exeext conftest.$ac_ext
26773 LIBS=$ac_check_lib_save_LIBS
26775 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26776 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26777 if test $ac_cv_lib_elf_elf_begin = yes; then
26778 cat >>confdefs.h <<_ACEOF
26779 #define HAVE_LIBELF 1
26787 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26788 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26789 if test "${ac_cv_lib_m_sin+set}" = set; then
26790 echo $ECHO_N "(cached) $ECHO_C" >&6
26792 ac_check_lib_save_LIBS=$LIBS
26794 cat >conftest.$ac_ext <<_ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h. */
26801 /* Override any GCC internal prototype to avoid an error.
26802 Use char because int might match the return type of a GCC
26803 builtin and then its argument prototype would still apply. */
26816 rm -f conftest.$ac_objext conftest$ac_exeext
26817 if { (ac_try="$ac_link"
26818 case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_link") 2>conftest.er1
26825 grep -v '^ *+' conftest.er1 >conftest.err
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } &&
26830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26831 { (case "(($ac_try" in
26832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833 *) ac_try_echo=$ac_try;;
26835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26836 (eval "$ac_try") 2>&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; } &&
26840 { ac_try='test -s conftest$ac_exeext'
26841 { (case "(($ac_try" in
26842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26843 *) ac_try_echo=$ac_try;;
26845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26846 (eval "$ac_try") 2>&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); }; }; then
26850 ac_cv_lib_m_sin=yes
26852 echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26858 rm -f core conftest.err conftest.$ac_objext \
26859 conftest$ac_exeext conftest.$ac_ext
26860 LIBS=$ac_check_lib_save_LIBS
26862 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26863 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26864 if test $ac_cv_lib_m_sin = yes; then
26865 cat >>confdefs.h <<_ACEOF
26866 #define HAVE_LIBM 1
26873 if test "$llvm_cv_os_type" == "MingW" ; then
26875 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26876 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26877 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26880 ac_check_lib_save_LIBS=$LIBS
26881 LIBS="-limagehlp $LIBS"
26882 cat >conftest.$ac_ext <<_ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h. */
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902 *) ac_try_echo=$ac_try;;
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905 (eval "$ac_link") 2>conftest.er1
26907 grep -v '^ *+' conftest.er1 >conftest.err
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
26912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26913 { (case "(($ac_try" in
26914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915 *) ac_try_echo=$ac_try;;
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918 (eval "$ac_try") 2>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; } &&
26922 { ac_try='test -s conftest$ac_exeext'
26923 { (case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_try") 2>&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; }; then
26932 ac_cv_lib_imagehlp_main=yes
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26937 ac_cv_lib_imagehlp_main=no
26940 rm -f core conftest.err conftest.$ac_objext \
26941 conftest$ac_exeext conftest.$ac_ext
26942 LIBS=$ac_check_lib_save_LIBS
26944 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26945 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26946 if test $ac_cv_lib_imagehlp_main = yes; then
26947 cat >>confdefs.h <<_ACEOF
26948 #define HAVE_LIBIMAGEHLP 1
26951 LIBS="-limagehlp $LIBS"
26956 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26957 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26958 if test "${ac_cv_lib_psapi_main+set}" = set; then
26959 echo $ECHO_N "(cached) $ECHO_C" >&6
26961 ac_check_lib_save_LIBS=$LIBS
26962 LIBS="-lpsapi $LIBS"
26963 cat >conftest.$ac_ext <<_ACEOF
26966 cat confdefs.h >>conftest.$ac_ext
26967 cat >>conftest.$ac_ext <<_ACEOF
26968 /* end confdefs.h. */
26979 rm -f conftest.$ac_objext conftest$ac_exeext
26980 if { (ac_try="$ac_link"
26981 case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986 (eval "$ac_link") 2>conftest.er1
26988 grep -v '^ *+' conftest.er1 >conftest.err
26990 cat conftest.err >&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); } &&
26993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26994 { (case "(($ac_try" in
26995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996 *) ac_try_echo=$ac_try;;
26998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26999 (eval "$ac_try") 2>&5
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; } &&
27003 { ac_try='test -s conftest$ac_exeext'
27004 { (case "(($ac_try" in
27005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27006 *) ac_try_echo=$ac_try;;
27008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27009 (eval "$ac_try") 2>&5
27011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); }; }; then
27013 ac_cv_lib_psapi_main=yes
27015 echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27018 ac_cv_lib_psapi_main=no
27021 rm -f core conftest.err conftest.$ac_objext \
27022 conftest$ac_exeext conftest.$ac_ext
27023 LIBS=$ac_check_lib_save_LIBS
27025 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27026 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27027 if test $ac_cv_lib_psapi_main = yes; then
27028 cat >>confdefs.h <<_ACEOF
27029 #define HAVE_LIBPSAPI 1
27032 LIBS="-lpsapi $LIBS"
27038 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27039 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27040 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27041 echo $ECHO_N "(cached) $ECHO_C" >&6
27043 ac_func_search_save_LIBS=$LIBS
27044 cat >conftest.$ac_ext <<_ACEOF
27047 cat confdefs.h >>conftest.$ac_ext
27048 cat >>conftest.$ac_ext <<_ACEOF
27049 /* end confdefs.h. */
27051 /* Override any GCC internal prototype to avoid an error.
27052 Use char because int might match the return type of a GCC
27053 builtin and then its argument prototype would still apply. */
27061 return lt_dlopen ();
27066 for ac_lib in '' ltdl; do
27067 if test -z "$ac_lib"; then
27068 ac_res="none required"
27071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27073 rm -f conftest.$ac_objext conftest$ac_exeext
27074 if { (ac_try="$ac_link"
27075 case "(($ac_try" in
27076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 *) ac_try_echo=$ac_try;;
27079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080 (eval "$ac_link") 2>conftest.er1
27082 grep -v '^ *+' conftest.er1 >conftest.err
27084 cat conftest.err >&5
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); } &&
27087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27088 { (case "(($ac_try" in
27089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27090 *) ac_try_echo=$ac_try;;
27092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27093 (eval "$ac_try") 2>&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; } &&
27097 { ac_try='test -s conftest$ac_exeext'
27098 { (case "(($ac_try" in
27099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27100 *) ac_try_echo=$ac_try;;
27102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27103 (eval "$ac_try") 2>&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; }; then
27107 ac_cv_search_lt_dlopen=$ac_res
27109 echo "$as_me: failed program was:" >&5
27110 sed 's/^/| /' conftest.$ac_ext >&5
27115 rm -f core conftest.err conftest.$ac_objext \
27117 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27121 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27124 ac_cv_search_lt_dlopen=no
27126 rm conftest.$ac_ext
27127 LIBS=$ac_func_search_save_LIBS
27129 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27130 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27131 ac_res=$ac_cv_search_lt_dlopen
27132 if test "$ac_res" != no; then
27133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27135 cat >>confdefs.h <<\_ACEOF
27136 #define HAVE_LT_DLOPEN 1
27140 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27141 not be available" >&5
27142 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27143 not be available" >&2;}
27147 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27148 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27149 if test "${ac_cv_search_dlopen+set}" = set; then
27150 echo $ECHO_N "(cached) $ECHO_C" >&6
27152 ac_func_search_save_LIBS=$LIBS
27153 cat >conftest.$ac_ext <<_ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27160 /* Override any GCC internal prototype to avoid an error.
27161 Use char because int might match the return type of a GCC
27162 builtin and then its argument prototype would still apply. */
27175 for ac_lib in '' dl; do
27176 if test -z "$ac_lib"; then
27177 ac_res="none required"
27180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27182 rm -f conftest.$ac_objext conftest$ac_exeext
27183 if { (ac_try="$ac_link"
27184 case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189 (eval "$ac_link") 2>conftest.er1
27191 grep -v '^ *+' conftest.er1 >conftest.err
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); } &&
27196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27197 { (case "(($ac_try" in
27198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199 *) ac_try_echo=$ac_try;;
27201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202 (eval "$ac_try") 2>&5
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; } &&
27206 { ac_try='test -s conftest$ac_exeext'
27207 { (case "(($ac_try" in
27208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209 *) ac_try_echo=$ac_try;;
27211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27212 (eval "$ac_try") 2>&5
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); }; }; then
27216 ac_cv_search_dlopen=$ac_res
27218 echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27224 rm -f core conftest.err conftest.$ac_objext \
27226 if test "${ac_cv_search_dlopen+set}" = set; then
27230 if test "${ac_cv_search_dlopen+set}" = set; then
27233 ac_cv_search_dlopen=no
27235 rm conftest.$ac_ext
27236 LIBS=$ac_func_search_save_LIBS
27238 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27239 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27240 ac_res=$ac_cv_search_dlopen
27241 if test "$ac_res" != no; then
27242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27244 cat >>confdefs.h <<\_ACEOF
27245 #define HAVE_DLOPEN 1
27249 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27250 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27254 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27255 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27256 if test "${ac_cv_search_mallinfo+set}" = set; then
27257 echo $ECHO_N "(cached) $ECHO_C" >&6
27259 ac_func_search_save_LIBS=$LIBS
27260 cat >conftest.$ac_ext <<_ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h. */
27267 /* Override any GCC internal prototype to avoid an error.
27268 Use char because int might match the return type of a GCC
27269 builtin and then its argument prototype would still apply. */
27277 return mallinfo ();
27282 for ac_lib in '' malloc; do
27283 if test -z "$ac_lib"; then
27284 ac_res="none required"
27287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27289 rm -f conftest.$ac_objext conftest$ac_exeext
27290 if { (ac_try="$ac_link"
27291 case "(($ac_try" in
27292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27293 *) ac_try_echo=$ac_try;;
27295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27296 (eval "$ac_link") 2>conftest.er1
27298 grep -v '^ *+' conftest.er1 >conftest.err
27300 cat conftest.err >&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } &&
27303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27304 { (case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_try") 2>&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; } &&
27313 { ac_try='test -s conftest$ac_exeext'
27314 { (case "(($ac_try" in
27315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316 *) ac_try_echo=$ac_try;;
27318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319 (eval "$ac_try") 2>&5
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; }; then
27323 ac_cv_search_mallinfo=$ac_res
27325 echo "$as_me: failed program was:" >&5
27326 sed 's/^/| /' conftest.$ac_ext >&5
27331 rm -f core conftest.err conftest.$ac_objext \
27333 if test "${ac_cv_search_mallinfo+set}" = set; then
27337 if test "${ac_cv_search_mallinfo+set}" = set; then
27340 ac_cv_search_mallinfo=no
27342 rm conftest.$ac_ext
27343 LIBS=$ac_func_search_save_LIBS
27345 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27346 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27347 ac_res=$ac_cv_search_mallinfo
27348 if test "$ac_res" != no; then
27349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27351 cat >>confdefs.h <<\_ACEOF
27352 #define HAVE_MALLINFO 1
27358 if test "$ENABLE_THREADS" -eq 1 ; then
27360 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27361 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27362 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27363 echo $ECHO_N "(cached) $ECHO_C" >&6
27365 ac_check_lib_save_LIBS=$LIBS
27366 LIBS="-lpthread $LIBS"
27367 cat >conftest.$ac_ext <<_ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h. */
27374 /* Override any GCC internal prototype to avoid an error.
27375 Use char because int might match the return type of a GCC
27376 builtin and then its argument prototype would still apply. */
27380 char pthread_mutex_init ();
27384 return pthread_mutex_init ();
27389 rm -f conftest.$ac_objext conftest$ac_exeext
27390 if { (ac_try="$ac_link"
27391 case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_link") 2>conftest.er1
27398 grep -v '^ *+' conftest.er1 >conftest.err
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } &&
27403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27404 { (case "(($ac_try" in
27405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27406 *) ac_try_echo=$ac_try;;
27408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27409 (eval "$ac_try") 2>&5
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; } &&
27413 { ac_try='test -s conftest$ac_exeext'
27414 { (case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_try") 2>&5
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; }; then
27423 ac_cv_lib_pthread_pthread_mutex_init=yes
27425 echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27428 ac_cv_lib_pthread_pthread_mutex_init=no
27431 rm -f core conftest.err conftest.$ac_objext \
27432 conftest$ac_exeext conftest.$ac_ext
27433 LIBS=$ac_check_lib_save_LIBS
27435 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27436 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27437 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27438 cat >>confdefs.h <<_ACEOF
27439 #define HAVE_LIBPTHREAD 1
27442 LIBS="-lpthread $LIBS"
27446 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27447 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27448 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27449 echo $ECHO_N "(cached) $ECHO_C" >&6
27451 ac_func_search_save_LIBS=$LIBS
27452 cat >conftest.$ac_ext <<_ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h. */
27459 /* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
27465 char pthread_mutex_lock ();
27469 return pthread_mutex_lock ();
27474 for ac_lib in '' pthread; do
27475 if test -z "$ac_lib"; then
27476 ac_res="none required"
27479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27481 rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (ac_try="$ac_link"
27483 case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488 (eval "$ac_link") 2>conftest.er1
27490 grep -v '^ *+' conftest.er1 >conftest.err
27492 cat conftest.err >&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } &&
27495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; } &&
27505 { ac_try='test -s conftest$ac_exeext'
27506 { (case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_try") 2>&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); }; }; then
27515 ac_cv_search_pthread_mutex_lock=$ac_res
27517 echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27523 rm -f core conftest.err conftest.$ac_objext \
27525 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27529 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27532 ac_cv_search_pthread_mutex_lock=no
27534 rm conftest.$ac_ext
27535 LIBS=$ac_func_search_save_LIBS
27537 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27538 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27539 ac_res=$ac_cv_search_pthread_mutex_lock
27540 if test "$ac_res" != no; then
27541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_PTHREAD_MUTEX_LOCK 1
27557 ac_header_dirent=no
27558 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27559 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27560 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27561 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27563 echo $ECHO_N "(cached) $ECHO_C" >&6
27565 cat >conftest.$ac_ext <<_ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h. */
27571 #include <sys/types.h>
27583 rm -f conftest.$ac_objext
27584 if { (ac_try="$ac_compile"
27585 case "(($ac_try" in
27586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587 *) ac_try_echo=$ac_try;;
27589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590 (eval "$ac_compile") 2>conftest.er1
27592 grep -v '^ *+' conftest.er1 >conftest.err
27594 cat conftest.err >&5
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); } &&
27597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27598 { (case "(($ac_try" in
27599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27600 *) ac_try_echo=$ac_try;;
27602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603 (eval "$ac_try") 2>&5
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); }; } &&
27607 { ac_try='test -s conftest.$ac_objext'
27608 { (case "(($ac_try" in
27609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610 *) ac_try_echo=$ac_try;;
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613 (eval "$ac_try") 2>&5
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); }; }; then
27617 eval "$as_ac_Header=yes"
27619 echo "$as_me: failed program was:" >&5
27620 sed 's/^/| /' conftest.$ac_ext >&5
27622 eval "$as_ac_Header=no"
27625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27627 ac_res=`eval echo '${'$as_ac_Header'}'`
27628 { echo "$as_me:$LINENO: result: $ac_res" >&5
27629 echo "${ECHO_T}$ac_res" >&6; }
27630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27631 cat >>confdefs.h <<_ACEOF
27632 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27635 ac_header_dirent=$ac_hdr; break
27639 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27640 if test $ac_header_dirent = dirent.h; then
27641 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27642 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27643 if test "${ac_cv_search_opendir+set}" = set; then
27644 echo $ECHO_N "(cached) $ECHO_C" >&6
27646 ac_func_search_save_LIBS=$LIBS
27647 cat >conftest.$ac_ext <<_ACEOF
27650 cat confdefs.h >>conftest.$ac_ext
27651 cat >>conftest.$ac_ext <<_ACEOF
27652 /* end confdefs.h. */
27654 /* Override any GCC internal prototype to avoid an error.
27655 Use char because int might match the return type of a GCC
27656 builtin and then its argument prototype would still apply. */
27669 for ac_lib in '' dir; do
27670 if test -z "$ac_lib"; then
27671 ac_res="none required"
27674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27676 rm -f conftest.$ac_objext conftest$ac_exeext
27677 if { (ac_try="$ac_link"
27678 case "(($ac_try" in
27679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680 *) ac_try_echo=$ac_try;;
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683 (eval "$ac_link") 2>conftest.er1
27685 grep -v '^ *+' conftest.er1 >conftest.err
27687 cat conftest.err >&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
27690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27691 { (case "(($ac_try" in
27692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693 *) ac_try_echo=$ac_try;;
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696 (eval "$ac_try") 2>&5
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest$ac_exeext'
27701 { (case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_try") 2>&5
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); }; }; then
27710 ac_cv_search_opendir=$ac_res
27712 echo "$as_me: failed program was:" >&5
27713 sed 's/^/| /' conftest.$ac_ext >&5
27718 rm -f core conftest.err conftest.$ac_objext \
27720 if test "${ac_cv_search_opendir+set}" = set; then
27724 if test "${ac_cv_search_opendir+set}" = set; then
27727 ac_cv_search_opendir=no
27729 rm conftest.$ac_ext
27730 LIBS=$ac_func_search_save_LIBS
27732 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27733 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27734 ac_res=$ac_cv_search_opendir
27735 if test "$ac_res" != no; then
27736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27741 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27742 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27743 if test "${ac_cv_search_opendir+set}" = set; then
27744 echo $ECHO_N "(cached) $ECHO_C" >&6
27746 ac_func_search_save_LIBS=$LIBS
27747 cat >conftest.$ac_ext <<_ACEOF
27750 cat confdefs.h >>conftest.$ac_ext
27751 cat >>conftest.$ac_ext <<_ACEOF
27752 /* end confdefs.h. */
27754 /* Override any GCC internal prototype to avoid an error.
27755 Use char because int might match the return type of a GCC
27756 builtin and then its argument prototype would still apply. */
27769 for ac_lib in '' x; do
27770 if test -z "$ac_lib"; then
27771 ac_res="none required"
27774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27776 rm -f conftest.$ac_objext conftest$ac_exeext
27777 if { (ac_try="$ac_link"
27778 case "(($ac_try" in
27779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_link") 2>conftest.er1
27785 grep -v '^ *+' conftest.er1 >conftest.err
27787 cat conftest.err >&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); } &&
27790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27791 { (case "(($ac_try" in
27792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27793 *) ac_try_echo=$ac_try;;
27795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27796 (eval "$ac_try") 2>&5
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; } &&
27800 { ac_try='test -s conftest$ac_exeext'
27801 { (case "(($ac_try" in
27802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27803 *) ac_try_echo=$ac_try;;
27805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27806 (eval "$ac_try") 2>&5
27808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); }; }; then
27810 ac_cv_search_opendir=$ac_res
27812 echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27818 rm -f core conftest.err conftest.$ac_objext \
27820 if test "${ac_cv_search_opendir+set}" = set; then
27824 if test "${ac_cv_search_opendir+set}" = set; then
27827 ac_cv_search_opendir=no
27829 rm conftest.$ac_ext
27830 LIBS=$ac_func_search_save_LIBS
27832 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27833 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27834 ac_res=$ac_cv_search_opendir
27835 if test "$ac_res" != no; then
27836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27842 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27843 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27844 if test "${ac_cv_header_mmap_anon+set}" = set; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27848 ac_cpp='$CPP $CPPFLAGS'
27849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27853 cat >conftest.$ac_ext <<_ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h. */
27859 #include <sys/mman.h>
27860 #include <unistd.h>
27865 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27870 rm -f conftest.$ac_objext
27871 if { (ac_try="$ac_compile"
27872 case "(($ac_try" in
27873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874 *) ac_try_echo=$ac_try;;
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877 (eval "$ac_compile") 2>conftest.er1
27879 grep -v '^ *+' conftest.er1 >conftest.err
27881 cat conftest.err >&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } &&
27884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27885 { (case "(($ac_try" in
27886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27887 *) ac_try_echo=$ac_try;;
27889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890 (eval "$ac_try") 2>&5
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; } &&
27894 { ac_try='test -s conftest.$ac_objext'
27895 { (case "(($ac_try" in
27896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27897 *) ac_try_echo=$ac_try;;
27899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900 (eval "$ac_try") 2>&5
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); }; }; then
27904 ac_cv_header_mmap_anon=yes
27906 echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27909 ac_cv_header_mmap_anon=no
27912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27914 ac_cpp='$CPP $CPPFLAGS'
27915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27921 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27922 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27923 if test "$ac_cv_header_mmap_anon" = yes; then
27925 cat >>confdefs.h <<\_ACEOF
27926 #define HAVE_MMAP_ANONYMOUS 1
27931 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27932 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27933 if test "${ac_cv_header_stat_broken+set}" = set; then
27934 echo $ECHO_N "(cached) $ECHO_C" >&6
27936 cat >conftest.$ac_ext <<_ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h. */
27942 #include <sys/types.h>
27943 #include <sys/stat.h>
27945 #if defined S_ISBLK && defined S_IFDIR
27946 # if S_ISBLK (S_IFDIR)
27951 #if defined S_ISBLK && defined S_IFCHR
27952 # if S_ISBLK (S_IFCHR)
27957 #if defined S_ISLNK && defined S_IFREG
27958 # if S_ISLNK (S_IFREG)
27963 #if defined S_ISSOCK && defined S_IFREG
27964 # if S_ISSOCK (S_IFREG)
27970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27971 $EGREP "You lose" >/dev/null 2>&1; then
27972 ac_cv_header_stat_broken=yes
27974 ac_cv_header_stat_broken=no
27979 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27980 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27981 if test $ac_cv_header_stat_broken = yes; then
27983 cat >>confdefs.h <<\_ACEOF
27984 #define STAT_MACROS_BROKEN 1
27989 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27990 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27991 if test "${ac_cv_header_stdc+set}" = set; then
27992 echo $ECHO_N "(cached) $ECHO_C" >&6
27994 cat >conftest.$ac_ext <<_ACEOF
27997 cat confdefs.h >>conftest.$ac_ext
27998 cat >>conftest.$ac_ext <<_ACEOF
27999 /* end confdefs.h. */
28000 #include <stdlib.h>
28001 #include <stdarg.h>
28002 #include <string.h>
28013 rm -f conftest.$ac_objext
28014 if { (ac_try="$ac_compile"
28015 case "(($ac_try" in
28016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017 *) ac_try_echo=$ac_try;;
28019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020 (eval "$ac_compile") 2>conftest.er1
28022 grep -v '^ *+' conftest.er1 >conftest.err
28024 cat conftest.err >&5
28025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026 (exit $ac_status); } &&
28027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28028 { (case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_try") 2>&5
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; } &&
28037 { ac_try='test -s conftest.$ac_objext'
28038 { (case "(($ac_try" in
28039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28040 *) ac_try_echo=$ac_try;;
28042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28043 (eval "$ac_try") 2>&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); }; }; then
28047 ac_cv_header_stdc=yes
28049 echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28052 ac_cv_header_stdc=no
28055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28057 if test $ac_cv_header_stdc = yes; then
28058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28059 cat >conftest.$ac_ext <<_ACEOF
28062 cat confdefs.h >>conftest.$ac_ext
28063 cat >>conftest.$ac_ext <<_ACEOF
28064 /* end confdefs.h. */
28065 #include <string.h>
28068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28069 $EGREP "memchr" >/dev/null 2>&1; then
28072 ac_cv_header_stdc=no
28078 if test $ac_cv_header_stdc = yes; then
28079 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28080 cat >conftest.$ac_ext <<_ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h. */
28086 #include <stdlib.h>
28089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28090 $EGREP "free" >/dev/null 2>&1; then
28093 ac_cv_header_stdc=no
28099 if test $ac_cv_header_stdc = yes; then
28100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28101 if test "$cross_compiling" = yes; then
28104 cat >conftest.$ac_ext <<_ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28111 #include <stdlib.h>
28112 #if ((' ' & 0x0FF) == 0x020)
28113 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28114 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28116 # define ISLOWER(c) \
28117 (('a' <= (c) && (c) <= 'i') \
28118 || ('j' <= (c) && (c) <= 'r') \
28119 || ('s' <= (c) && (c) <= 'z'))
28120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28128 for (i = 0; i < 256; i++)
28129 if (XOR (islower (i), ISLOWER (i))
28130 || toupper (i) != TOUPPER (i))
28135 rm -f conftest$ac_exeext
28136 if { (ac_try="$ac_link"
28137 case "(($ac_try" in
28138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_link") 2>&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28146 { (case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_try") 2>&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; }; then
28157 echo "$as_me: program exited with status $ac_status" >&5
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28161 ( exit $ac_status )
28162 ac_cv_header_stdc=no
28164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28170 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28171 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28172 if test $ac_cv_header_stdc = yes; then
28174 cat >>confdefs.h <<\_ACEOF
28175 #define STDC_HEADERS 1
28180 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28181 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28182 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28183 echo $ECHO_N "(cached) $ECHO_C" >&6
28185 cat >conftest.$ac_ext <<_ACEOF
28188 cat confdefs.h >>conftest.$ac_ext
28189 cat >>conftest.$ac_ext <<_ACEOF
28190 /* end confdefs.h. */
28191 #include <sys/types.h>
28192 #include <sys/wait.h>
28193 #ifndef WEXITSTATUS
28194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28210 rm -f conftest.$ac_objext
28211 if { (ac_try="$ac_compile"
28212 case "(($ac_try" in
28213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_compile") 2>conftest.er1
28219 grep -v '^ *+' conftest.er1 >conftest.err
28221 cat conftest.err >&5
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); } &&
28224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28225 { (case "(($ac_try" in
28226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227 *) ac_try_echo=$ac_try;;
28229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28230 (eval "$ac_try") 2>&5
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; } &&
28234 { ac_try='test -s conftest.$ac_objext'
28235 { (case "(($ac_try" in
28236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237 *) ac_try_echo=$ac_try;;
28239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28240 (eval "$ac_try") 2>&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); }; }; then
28244 ac_cv_header_sys_wait_h=yes
28246 echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28249 ac_cv_header_sys_wait_h=no
28252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28254 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28255 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28256 if test $ac_cv_header_sys_wait_h = yes; then
28258 cat >>confdefs.h <<\_ACEOF
28259 #define HAVE_SYS_WAIT_H 1
28264 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28265 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28266 if test "${ac_cv_header_time+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28269 cat >conftest.$ac_ext <<_ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h. */
28275 #include <sys/types.h>
28276 #include <sys/time.h>
28282 if ((struct tm *) 0)
28288 rm -f conftest.$ac_objext
28289 if { (ac_try="$ac_compile"
28290 case "(($ac_try" in
28291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292 *) ac_try_echo=$ac_try;;
28294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295 (eval "$ac_compile") 2>conftest.er1
28297 grep -v '^ *+' conftest.er1 >conftest.err
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } &&
28302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28303 { (case "(($ac_try" in
28304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305 *) ac_try_echo=$ac_try;;
28307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28308 (eval "$ac_try") 2>&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); }; } &&
28312 { ac_try='test -s conftest.$ac_objext'
28313 { (case "(($ac_try" in
28314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315 *) ac_try_echo=$ac_try;;
28317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318 (eval "$ac_try") 2>&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; }; then
28322 ac_cv_header_time=yes
28324 echo "$as_me: failed program was:" >&5
28325 sed 's/^/| /' conftest.$ac_ext >&5
28327 ac_cv_header_time=no
28330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28332 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28333 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28334 if test $ac_cv_header_time = yes; then
28336 cat >>confdefs.h <<\_ACEOF
28337 #define TIME_WITH_SYS_TIME 1
28349 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28356 echo $ECHO_N "(cached) $ECHO_C" >&6
28358 ac_res=`eval echo '${'$as_ac_Header'}'`
28359 { echo "$as_me:$LINENO: result: $ac_res" >&5
28360 echo "${ECHO_T}$ac_res" >&6; }
28362 # Is the header compilable?
28363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28365 cat >conftest.$ac_ext <<_ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h. */
28371 $ac_includes_default
28372 #include <$ac_header>
28374 rm -f conftest.$ac_objext
28375 if { (ac_try="$ac_compile"
28376 case "(($ac_try" in
28377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28378 *) ac_try_echo=$ac_try;;
28380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28381 (eval "$ac_compile") 2>conftest.er1
28383 grep -v '^ *+' conftest.er1 >conftest.err
28385 cat conftest.err >&5
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
28388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28389 { (case "(($ac_try" in
28390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28391 *) ac_try_echo=$ac_try;;
28393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28394 (eval "$ac_try") 2>&5
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); }; } &&
28398 { ac_try='test -s conftest.$ac_objext'
28399 { (case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_try") 2>&5
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; }; then
28408 ac_header_compiler=yes
28410 echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28413 ac_header_compiler=no
28416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28418 echo "${ECHO_T}$ac_header_compiler" >&6; }
28420 # Is the header present?
28421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28423 cat >conftest.$ac_ext <<_ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28429 #include <$ac_header>
28431 if { (ac_try="$ac_cpp conftest.$ac_ext"
28432 case "(($ac_try" in
28433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434 *) ac_try_echo=$ac_try;;
28436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28439 grep -v '^ *+' conftest.er1 >conftest.err
28441 cat conftest.err >&5
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); } >/dev/null; then
28444 if test -s conftest.err; then
28445 ac_cpp_err=$ac_c_preproc_warn_flag
28446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28453 if test -z "$ac_cpp_err"; then
28454 ac_header_preproc=yes
28456 echo "$as_me: failed program was:" >&5
28457 sed 's/^/| /' conftest.$ac_ext >&5
28459 ac_header_preproc=no
28462 rm -f conftest.err conftest.$ac_ext
28463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28464 echo "${ECHO_T}$ac_header_preproc" >&6; }
28466 # So? What about this header?
28467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28473 ac_header_preproc=yes
28476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28489 ## ----------------------------------- ##
28490 ## Report this to llvmbugs@cs.uiuc.edu ##
28491 ## ----------------------------------- ##
28493 ) | sed "s/^/$as_me: WARNING: /" >&2
28496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28501 eval "$as_ac_Header=\$ac_header_preproc"
28503 ac_res=`eval echo '${'$as_ac_Header'}'`
28504 { echo "$as_me:$LINENO: result: $ac_res" >&5
28505 echo "${ECHO_T}$ac_res" >&6; }
28508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28509 cat >>confdefs.h <<_ACEOF
28510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28523 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28530 echo $ECHO_N "(cached) $ECHO_C" >&6
28532 ac_res=`eval echo '${'$as_ac_Header'}'`
28533 { echo "$as_me:$LINENO: result: $ac_res" >&5
28534 echo "${ECHO_T}$ac_res" >&6; }
28536 # Is the header compilable?
28537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28539 cat >conftest.$ac_ext <<_ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h. */
28545 $ac_includes_default
28546 #include <$ac_header>
28548 rm -f conftest.$ac_objext
28549 if { (ac_try="$ac_compile"
28550 case "(($ac_try" in
28551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552 *) ac_try_echo=$ac_try;;
28554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555 (eval "$ac_compile") 2>conftest.er1
28557 grep -v '^ *+' conftest.er1 >conftest.err
28559 cat conftest.err >&5
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } &&
28562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28563 { (case "(($ac_try" in
28564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565 *) ac_try_echo=$ac_try;;
28567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28568 (eval "$ac_try") 2>&5
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; } &&
28572 { ac_try='test -s conftest.$ac_objext'
28573 { (case "(($ac_try" in
28574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578 (eval "$ac_try") 2>&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
28582 ac_header_compiler=yes
28584 echo "$as_me: failed program was:" >&5
28585 sed 's/^/| /' conftest.$ac_ext >&5
28587 ac_header_compiler=no
28590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28592 echo "${ECHO_T}$ac_header_compiler" >&6; }
28594 # Is the header present?
28595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28597 cat >conftest.$ac_ext <<_ACEOF
28600 cat confdefs.h >>conftest.$ac_ext
28601 cat >>conftest.$ac_ext <<_ACEOF
28602 /* end confdefs.h. */
28603 #include <$ac_header>
28605 if { (ac_try="$ac_cpp conftest.$ac_ext"
28606 case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28613 grep -v '^ *+' conftest.er1 >conftest.err
28615 cat conftest.err >&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } >/dev/null; then
28618 if test -s conftest.err; then
28619 ac_cpp_err=$ac_c_preproc_warn_flag
28620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28627 if test -z "$ac_cpp_err"; then
28628 ac_header_preproc=yes
28630 echo "$as_me: failed program was:" >&5
28631 sed 's/^/| /' conftest.$ac_ext >&5
28633 ac_header_preproc=no
28636 rm -f conftest.err conftest.$ac_ext
28637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28638 echo "${ECHO_T}$ac_header_preproc" >&6; }
28640 # So? What about this header?
28641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28647 ac_header_preproc=yes
28650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28663 ## ----------------------------------- ##
28664 ## Report this to llvmbugs@cs.uiuc.edu ##
28665 ## ----------------------------------- ##
28667 ) | sed "s/^/$as_me: WARNING: /" >&2
28670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28673 echo $ECHO_N "(cached) $ECHO_C" >&6
28675 eval "$as_ac_Header=\$ac_header_preproc"
28677 ac_res=`eval echo '${'$as_ac_Header'}'`
28678 { echo "$as_me:$LINENO: result: $ac_res" >&5
28679 echo "${ECHO_T}$ac_res" >&6; }
28682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28683 cat >>confdefs.h <<_ACEOF
28684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28696 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28705 ac_res=`eval echo '${'$as_ac_Header'}'`
28706 { echo "$as_me:$LINENO: result: $ac_res" >&5
28707 echo "${ECHO_T}$ac_res" >&6; }
28709 # Is the header compilable?
28710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28712 cat >conftest.$ac_ext <<_ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h. */
28718 $ac_includes_default
28719 #include <$ac_header>
28721 rm -f conftest.$ac_objext
28722 if { (ac_try="$ac_compile"
28723 case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728 (eval "$ac_compile") 2>conftest.er1
28730 grep -v '^ *+' conftest.er1 >conftest.err
28732 cat conftest.err >&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } &&
28735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28736 { (case "(($ac_try" in
28737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28738 *) ac_try_echo=$ac_try;;
28740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28741 (eval "$ac_try") 2>&5
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); }; } &&
28745 { ac_try='test -s conftest.$ac_objext'
28746 { (case "(($ac_try" in
28747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748 *) ac_try_echo=$ac_try;;
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751 (eval "$ac_try") 2>&5
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; }; then
28755 ac_header_compiler=yes
28757 echo "$as_me: failed program was:" >&5
28758 sed 's/^/| /' conftest.$ac_ext >&5
28760 ac_header_compiler=no
28763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28765 echo "${ECHO_T}$ac_header_compiler" >&6; }
28767 # Is the header present?
28768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28770 cat >conftest.$ac_ext <<_ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h. */
28776 #include <$ac_header>
28778 if { (ac_try="$ac_cpp conftest.$ac_ext"
28779 case "(($ac_try" in
28780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28786 grep -v '^ *+' conftest.er1 >conftest.err
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } >/dev/null; then
28791 if test -s conftest.err; then
28792 ac_cpp_err=$ac_c_preproc_warn_flag
28793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28800 if test -z "$ac_cpp_err"; then
28801 ac_header_preproc=yes
28803 echo "$as_me: failed program was:" >&5
28804 sed 's/^/| /' conftest.$ac_ext >&5
28806 ac_header_preproc=no
28809 rm -f conftest.err conftest.$ac_ext
28810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28811 echo "${ECHO_T}$ac_header_preproc" >&6; }
28813 # So? What about this header?
28814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28820 ac_header_preproc=yes
28823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28836 ## ----------------------------------- ##
28837 ## Report this to llvmbugs@cs.uiuc.edu ##
28838 ## ----------------------------------- ##
28840 ) | sed "s/^/$as_me: WARNING: /" >&2
28843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28846 echo $ECHO_N "(cached) $ECHO_C" >&6
28848 eval "$as_ac_Header=\$ac_header_preproc"
28850 ac_res=`eval echo '${'$as_ac_Header'}'`
28851 { echo "$as_me:$LINENO: result: $ac_res" >&5
28852 echo "${ECHO_T}$ac_res" >&6; }
28855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28856 cat >>confdefs.h <<_ACEOF
28857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28867 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
28877 { echo "$as_me:$LINENO: result: $ac_res" >&5
28878 echo "${ECHO_T}$ac_res" >&6; }
28880 # Is the header compilable?
28881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28883 cat >conftest.$ac_ext <<_ACEOF
28886 cat confdefs.h >>conftest.$ac_ext
28887 cat >>conftest.$ac_ext <<_ACEOF
28888 /* end confdefs.h. */
28889 $ac_includes_default
28890 #include <$ac_header>
28892 rm -f conftest.$ac_objext
28893 if { (ac_try="$ac_compile"
28894 case "(($ac_try" in
28895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896 *) ac_try_echo=$ac_try;;
28898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899 (eval "$ac_compile") 2>conftest.er1
28901 grep -v '^ *+' conftest.er1 >conftest.err
28903 cat conftest.err >&5
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); } &&
28906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28907 { (case "(($ac_try" in
28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909 *) ac_try_echo=$ac_try;;
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912 (eval "$ac_try") 2>&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; } &&
28916 { ac_try='test -s conftest.$ac_objext'
28917 { (case "(($ac_try" in
28918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919 *) ac_try_echo=$ac_try;;
28921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28922 (eval "$ac_try") 2>&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; }; then
28926 ac_header_compiler=yes
28928 echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28931 ac_header_compiler=no
28934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28936 echo "${ECHO_T}$ac_header_compiler" >&6; }
28938 # Is the header present?
28939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28941 cat >conftest.$ac_ext <<_ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h. */
28947 #include <$ac_header>
28949 if { (ac_try="$ac_cpp conftest.$ac_ext"
28950 case "(($ac_try" in
28951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952 *) ac_try_echo=$ac_try;;
28954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28957 grep -v '^ *+' conftest.er1 >conftest.err
28959 cat conftest.err >&5
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); } >/dev/null; then
28962 if test -s conftest.err; then
28963 ac_cpp_err=$ac_c_preproc_warn_flag
28964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28971 if test -z "$ac_cpp_err"; then
28972 ac_header_preproc=yes
28974 echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977 ac_header_preproc=no
28980 rm -f conftest.err conftest.$ac_ext
28981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28982 echo "${ECHO_T}$ac_header_preproc" >&6; }
28984 # So? What about this header?
28985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28991 ac_header_preproc=yes
28994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29007 ## ----------------------------------- ##
29008 ## Report this to llvmbugs@cs.uiuc.edu ##
29009 ## ----------------------------------- ##
29011 ) | sed "s/^/$as_me: WARNING: /" >&2
29014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29017 echo $ECHO_N "(cached) $ECHO_C" >&6
29019 eval "$as_ac_Header=\$ac_header_preproc"
29021 ac_res=`eval echo '${'$as_ac_Header'}'`
29022 { echo "$as_me:$LINENO: result: $ac_res" >&5
29023 echo "${ECHO_T}$ac_res" >&6; }
29026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29027 cat >>confdefs.h <<_ACEOF
29028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29035 if test "$ENABLE_THREADS" -eq 1 ; then
29037 for ac_header in pthread.h
29039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29044 echo $ECHO_N "(cached) $ECHO_C" >&6
29046 ac_res=`eval echo '${'$as_ac_Header'}'`
29047 { echo "$as_me:$LINENO: result: $ac_res" >&5
29048 echo "${ECHO_T}$ac_res" >&6; }
29050 # Is the header compilable?
29051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29053 cat >conftest.$ac_ext <<_ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h. */
29059 $ac_includes_default
29060 #include <$ac_header>
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066 *) ac_try_echo=$ac_try;;
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069 (eval "$ac_compile") 2>conftest.er1
29071 grep -v '^ *+' conftest.er1 >conftest.err
29073 cat conftest.err >&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); } &&
29076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29077 { (case "(($ac_try" in
29078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079 *) ac_try_echo=$ac_try;;
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082 (eval "$ac_try") 2>&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); }; } &&
29086 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); }; }; then
29096 ac_header_compiler=yes
29098 echo "$as_me: failed program was:" >&5
29099 sed 's/^/| /' conftest.$ac_ext >&5
29101 ac_header_compiler=no
29104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29106 echo "${ECHO_T}$ac_header_compiler" >&6; }
29108 # Is the header present?
29109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29111 cat >conftest.$ac_ext <<_ACEOF
29114 cat confdefs.h >>conftest.$ac_ext
29115 cat >>conftest.$ac_ext <<_ACEOF
29116 /* end confdefs.h. */
29117 #include <$ac_header>
29119 if { (ac_try="$ac_cpp conftest.$ac_ext"
29120 case "(($ac_try" in
29121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122 *) ac_try_echo=$ac_try;;
29124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29127 grep -v '^ *+' conftest.er1 >conftest.err
29129 cat conftest.err >&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } >/dev/null; then
29132 if test -s conftest.err; then
29133 ac_cpp_err=$ac_c_preproc_warn_flag
29134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29141 if test -z "$ac_cpp_err"; then
29142 ac_header_preproc=yes
29144 echo "$as_me: failed program was:" >&5
29145 sed 's/^/| /' conftest.$ac_ext >&5
29147 ac_header_preproc=no
29150 rm -f conftest.err conftest.$ac_ext
29151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29152 echo "${ECHO_T}$ac_header_preproc" >&6; }
29154 # So? What about this header?
29155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29161 ac_header_preproc=yes
29164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29177 ## ----------------------------------- ##
29178 ## Report this to llvmbugs@cs.uiuc.edu ##
29179 ## ----------------------------------- ##
29181 ) | sed "s/^/$as_me: WARNING: /" >&2
29184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29187 echo $ECHO_N "(cached) $ECHO_C" >&6
29189 eval "$as_ac_Header=\$ac_header_preproc"
29191 ac_res=`eval echo '${'$as_ac_Header'}'`
29192 { echo "$as_me:$LINENO: result: $ac_res" >&5
29193 echo "${ECHO_T}$ac_res" >&6; }
29196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29197 cat >>confdefs.h <<_ACEOF
29198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29209 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29210 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29211 if test "${ac_cv_huge_val_sanity+set}" = set; then
29212 echo $ECHO_N "(cached) $ECHO_C" >&6
29216 ac_cpp='$CXXCPP $CPPFLAGS'
29217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29222 if test "$cross_compiling" = yes; then
29223 ac_cv_huge_val_sanity=yes
29225 cat >conftest.$ac_ext <<_ACEOF
29228 cat confdefs.h >>conftest.$ac_ext
29229 cat >>conftest.$ac_ext <<_ACEOF
29230 /* end confdefs.h. */
29235 double x = HUGE_VAL; return x != x;
29240 rm -f conftest$ac_exeext
29241 if { (ac_try="$ac_link"
29242 case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_link") 2>&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29251 { (case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_try") 2>&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; }; then
29260 ac_cv_huge_val_sanity=yes
29262 echo "$as_me: program exited with status $ac_status" >&5
29263 echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29266 ( exit $ac_status )
29267 ac_cv_huge_val_sanity=no
29269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29274 ac_cpp='$CPP $CPPFLAGS'
29275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29281 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29282 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29283 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29286 { echo "$as_me:$LINENO: checking for pid_t" >&5
29287 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29288 if test "${ac_cv_type_pid_t+set}" = set; then
29289 echo $ECHO_N "(cached) $ECHO_C" >&6
29291 cat >conftest.$ac_ext <<_ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h. */
29297 $ac_includes_default
29298 typedef pid_t ac__type_new_;
29302 if ((ac__type_new_ *) 0)
29304 if (sizeof (ac__type_new_))
29310 rm -f conftest.$ac_objext
29311 if { (ac_try="$ac_compile"
29312 case "(($ac_try" in
29313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314 *) ac_try_echo=$ac_try;;
29316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317 (eval "$ac_compile") 2>conftest.er1
29319 grep -v '^ *+' conftest.er1 >conftest.err
29321 cat conftest.err >&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } &&
29324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29325 { (case "(($ac_try" in
29326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327 *) ac_try_echo=$ac_try;;
29329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330 (eval "$ac_try") 2>&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; } &&
29334 { ac_try='test -s conftest.$ac_objext'
29335 { (case "(($ac_try" in
29336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337 *) ac_try_echo=$ac_try;;
29339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340 (eval "$ac_try") 2>&5
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); }; }; then
29344 ac_cv_type_pid_t=yes
29346 echo "$as_me: failed program was:" >&5
29347 sed 's/^/| /' conftest.$ac_ext >&5
29349 ac_cv_type_pid_t=no
29352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29354 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29355 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29356 if test $ac_cv_type_pid_t = yes; then
29360 cat >>confdefs.h <<_ACEOF
29366 { echo "$as_me:$LINENO: checking for size_t" >&5
29367 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29368 if test "${ac_cv_type_size_t+set}" = set; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29371 cat >conftest.$ac_ext <<_ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29377 $ac_includes_default
29378 typedef size_t ac__type_new_;
29382 if ((ac__type_new_ *) 0)
29384 if (sizeof (ac__type_new_))
29390 rm -f conftest.$ac_objext
29391 if { (ac_try="$ac_compile"
29392 case "(($ac_try" in
29393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394 *) ac_try_echo=$ac_try;;
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397 (eval "$ac_compile") 2>conftest.er1
29399 grep -v '^ *+' conftest.er1 >conftest.err
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
29404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29405 { (case "(($ac_try" in
29406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407 *) ac_try_echo=$ac_try;;
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410 (eval "$ac_try") 2>&5
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; } &&
29414 { ac_try='test -s conftest.$ac_objext'
29415 { (case "(($ac_try" in
29416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417 *) ac_try_echo=$ac_try;;
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420 (eval "$ac_try") 2>&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
29424 ac_cv_type_size_t=yes
29426 echo "$as_me: failed program was:" >&5
29427 sed 's/^/| /' conftest.$ac_ext >&5
29429 ac_cv_type_size_t=no
29432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29434 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29435 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29436 if test $ac_cv_type_size_t = yes; then
29440 cat >>confdefs.h <<_ACEOF
29441 #define size_t unsigned int
29446 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29447 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29448 if test "${ac_cv_type_signal+set}" = set; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29451 cat >conftest.$ac_ext <<_ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h. */
29457 #include <sys/types.h>
29458 #include <signal.h>
29463 return *(signal (0, 0)) (0) == 1;
29468 rm -f conftest.$ac_objext
29469 if { (ac_try="$ac_compile"
29470 case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_compile") 2>conftest.er1
29477 grep -v '^ *+' conftest.er1 >conftest.err
29479 cat conftest.err >&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); } &&
29482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29483 { (case "(($ac_try" in
29484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485 *) ac_try_echo=$ac_try;;
29487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488 (eval "$ac_try") 2>&5
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); }; } &&
29492 { ac_try='test -s conftest.$ac_objext'
29493 { (case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_try") 2>&5
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; }; then
29502 ac_cv_type_signal=int
29504 echo "$as_me: failed program was:" >&5
29505 sed 's/^/| /' conftest.$ac_ext >&5
29507 ac_cv_type_signal=void
29510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29512 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29513 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29515 cat >>confdefs.h <<_ACEOF
29516 #define RETSIGTYPE $ac_cv_type_signal
29520 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29521 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29522 if test "${ac_cv_struct_tm+set}" = set; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29525 cat >conftest.$ac_ext <<_ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h. */
29531 #include <sys/types.h>
29537 struct tm *tp; tp->tm_sec;
29542 rm -f conftest.$ac_objext
29543 if { (ac_try="$ac_compile"
29544 case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549 (eval "$ac_compile") 2>conftest.er1
29551 grep -v '^ *+' conftest.er1 >conftest.err
29553 cat conftest.err >&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
29556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29557 { (case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_try") 2>&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; } &&
29566 { ac_try='test -s conftest.$ac_objext'
29567 { (case "(($ac_try" in
29568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569 *) ac_try_echo=$ac_try;;
29571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572 (eval "$ac_try") 2>&5
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; }; then
29576 ac_cv_struct_tm=time.h
29578 echo "$as_me: failed program was:" >&5
29579 sed 's/^/| /' conftest.$ac_ext >&5
29581 ac_cv_struct_tm=sys/time.h
29584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29586 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29587 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29588 if test $ac_cv_struct_tm = sys/time.h; then
29590 cat >>confdefs.h <<\_ACEOF
29591 #define TM_IN_SYS_TIME 1
29596 { echo "$as_me:$LINENO: checking for int64_t" >&5
29597 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29598 if test "${ac_cv_type_int64_t+set}" = set; then
29599 echo $ECHO_N "(cached) $ECHO_C" >&6
29601 cat >conftest.$ac_ext <<_ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h. */
29607 $ac_includes_default
29608 typedef int64_t ac__type_new_;
29612 if ((ac__type_new_ *) 0)
29614 if (sizeof (ac__type_new_))
29620 rm -f conftest.$ac_objext
29621 if { (ac_try="$ac_compile"
29622 case "(($ac_try" in
29623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624 *) ac_try_echo=$ac_try;;
29626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627 (eval "$ac_compile") 2>conftest.er1
29629 grep -v '^ *+' conftest.er1 >conftest.err
29631 cat conftest.err >&5
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
29634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29635 { (case "(($ac_try" in
29636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637 *) ac_try_echo=$ac_try;;
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640 (eval "$ac_try") 2>&5
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; } &&
29644 { ac_try='test -s conftest.$ac_objext'
29645 { (case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_try") 2>&5
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; }; then
29654 ac_cv_type_int64_t=yes
29656 echo "$as_me: failed program was:" >&5
29657 sed 's/^/| /' conftest.$ac_ext >&5
29659 ac_cv_type_int64_t=no
29662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29664 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29665 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29666 if test $ac_cv_type_int64_t = yes; then
29668 cat >>confdefs.h <<_ACEOF
29669 #define HAVE_INT64_T 1
29674 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29675 echo "$as_me: error: Type int64_t required but not found" >&2;}
29676 { (exit 1); exit 1; }; }
29679 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29680 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29681 if test "${ac_cv_type_uint64_t+set}" = set; then
29682 echo $ECHO_N "(cached) $ECHO_C" >&6
29684 cat >conftest.$ac_ext <<_ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h. */
29690 $ac_includes_default
29691 typedef uint64_t ac__type_new_;
29695 if ((ac__type_new_ *) 0)
29697 if (sizeof (ac__type_new_))
29703 rm -f conftest.$ac_objext
29704 if { (ac_try="$ac_compile"
29705 case "(($ac_try" in
29706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707 *) ac_try_echo=$ac_try;;
29709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710 (eval "$ac_compile") 2>conftest.er1
29712 grep -v '^ *+' conftest.er1 >conftest.err
29714 cat conftest.err >&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } &&
29717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29718 { (case "(($ac_try" in
29719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720 *) ac_try_echo=$ac_try;;
29722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723 (eval "$ac_try") 2>&5
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); }; } &&
29727 { ac_try='test -s conftest.$ac_objext'
29728 { (case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_try") 2>&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); }; }; then
29737 ac_cv_type_uint64_t=yes
29739 echo "$as_me: failed program was:" >&5
29740 sed 's/^/| /' conftest.$ac_ext >&5
29742 ac_cv_type_uint64_t=no
29745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29747 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29748 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29749 if test $ac_cv_type_uint64_t = yes; then
29751 cat >>confdefs.h <<_ACEOF
29752 #define HAVE_UINT64_T 1
29757 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29758 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29759 if test "${ac_cv_type_u_int64_t+set}" = set; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29762 cat >conftest.$ac_ext <<_ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h. */
29768 $ac_includes_default
29769 typedef u_int64_t ac__type_new_;
29773 if ((ac__type_new_ *) 0)
29775 if (sizeof (ac__type_new_))
29781 rm -f conftest.$ac_objext
29782 if { (ac_try="$ac_compile"
29783 case "(($ac_try" in
29784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29785 *) ac_try_echo=$ac_try;;
29787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29788 (eval "$ac_compile") 2>conftest.er1
29790 grep -v '^ *+' conftest.er1 >conftest.err
29792 cat conftest.err >&5
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); } &&
29795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29796 { (case "(($ac_try" in
29797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798 *) ac_try_echo=$ac_try;;
29800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29801 (eval "$ac_try") 2>&5
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); }; } &&
29805 { ac_try='test -s conftest.$ac_objext'
29806 { (case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_try") 2>&5
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; }; then
29815 ac_cv_type_u_int64_t=yes
29817 echo "$as_me: failed program was:" >&5
29818 sed 's/^/| /' conftest.$ac_ext >&5
29820 ac_cv_type_u_int64_t=no
29823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29825 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29826 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29827 if test $ac_cv_type_u_int64_t = yes; then
29829 cat >>confdefs.h <<_ACEOF
29830 #define HAVE_U_INT64_T 1
29835 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29836 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29837 { (exit 1); exit 1; }; }
29851 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29857 echo $ECHO_N "(cached) $ECHO_C" >&6
29859 cat >conftest.$ac_ext <<_ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h. */
29865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29867 #define $ac_func innocuous_$ac_func
29869 /* System header to define __stub macros and hopefully few prototypes,
29870 which can conflict with char $ac_func (); below.
29871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29872 <limits.h> exists even on freestanding compilers. */
29875 # include <limits.h>
29877 # include <assert.h>
29882 /* Override any GCC internal prototype to avoid an error.
29883 Use char because int might match the return type of a GCC
29884 builtin and then its argument prototype would still apply. */
29889 /* The GNU C library defines this for functions which it implements
29890 to always fail with ENOSYS. Some functions are actually named
29891 something starting with __ and the normal name is an alias. */
29892 #if defined __stub_$ac_func || defined __stub___$ac_func
29899 return $ac_func ();
29904 rm -f conftest.$ac_objext conftest$ac_exeext
29905 if { (ac_try="$ac_link"
29906 case "(($ac_try" in
29907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908 *) ac_try_echo=$ac_try;;
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911 (eval "$ac_link") 2>conftest.er1
29913 grep -v '^ *+' conftest.er1 >conftest.err
29915 cat conftest.err >&5
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); } &&
29918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29919 { (case "(($ac_try" in
29920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921 *) ac_try_echo=$ac_try;;
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924 (eval "$ac_try") 2>&5
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; } &&
29928 { ac_try='test -s conftest$ac_exeext'
29929 { (case "(($ac_try" in
29930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29931 *) ac_try_echo=$ac_try;;
29933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29934 (eval "$ac_try") 2>&5
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; }; then
29938 eval "$as_ac_var=yes"
29940 echo "$as_me: failed program was:" >&5
29941 sed 's/^/| /' conftest.$ac_ext >&5
29943 eval "$as_ac_var=no"
29946 rm -f core conftest.err conftest.$ac_objext \
29947 conftest$ac_exeext conftest.$ac_ext
29949 ac_res=`eval echo '${'$as_ac_var'}'`
29950 { echo "$as_me:$LINENO: result: $ac_res" >&5
29951 echo "${ECHO_T}$ac_res" >&6; }
29952 if test `eval echo '${'$as_ac_var'}'` = yes; then
29953 cat >>confdefs.h <<_ACEOF
29954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29966 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29972 echo $ECHO_N "(cached) $ECHO_C" >&6
29974 cat >conftest.$ac_ext <<_ACEOF
29977 cat confdefs.h >>conftest.$ac_ext
29978 cat >>conftest.$ac_ext <<_ACEOF
29979 /* end confdefs.h. */
29980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29982 #define $ac_func innocuous_$ac_func
29984 /* System header to define __stub macros and hopefully few prototypes,
29985 which can conflict with char $ac_func (); below.
29986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29987 <limits.h> exists even on freestanding compilers. */
29990 # include <limits.h>
29992 # include <assert.h>
29997 /* Override any GCC internal prototype to avoid an error.
29998 Use char because int might match the return type of a GCC
29999 builtin and then its argument prototype would still apply. */
30004 /* The GNU C library defines this for functions which it implements
30005 to always fail with ENOSYS. Some functions are actually named
30006 something starting with __ and the normal name is an alias. */
30007 #if defined __stub_$ac_func || defined __stub___$ac_func
30014 return $ac_func ();
30019 rm -f conftest.$ac_objext conftest$ac_exeext
30020 if { (ac_try="$ac_link"
30021 case "(($ac_try" in
30022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023 *) ac_try_echo=$ac_try;;
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026 (eval "$ac_link") 2>conftest.er1
30028 grep -v '^ *+' conftest.er1 >conftest.err
30030 cat conftest.err >&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } &&
30033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30034 { (case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_try") 2>&5
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); }; } &&
30043 { ac_try='test -s conftest$ac_exeext'
30044 { (case "(($ac_try" in
30045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_try") 2>&5
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); }; }; then
30053 eval "$as_ac_var=yes"
30055 echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30058 eval "$as_ac_var=no"
30061 rm -f core conftest.err conftest.$ac_objext \
30062 conftest$ac_exeext conftest.$ac_ext
30064 ac_res=`eval echo '${'$as_ac_var'}'`
30065 { echo "$as_me:$LINENO: result: $ac_res" >&5
30066 echo "${ECHO_T}$ac_res" >&6; }
30067 if test `eval echo '${'$as_ac_var'}'` = yes; then
30068 cat >>confdefs.h <<_ACEOF
30069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30082 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30088 echo $ECHO_N "(cached) $ECHO_C" >&6
30090 cat >conftest.$ac_ext <<_ACEOF
30093 cat confdefs.h >>conftest.$ac_ext
30094 cat >>conftest.$ac_ext <<_ACEOF
30095 /* end confdefs.h. */
30096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30098 #define $ac_func innocuous_$ac_func
30100 /* System header to define __stub macros and hopefully few prototypes,
30101 which can conflict with char $ac_func (); below.
30102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30103 <limits.h> exists even on freestanding compilers. */
30106 # include <limits.h>
30108 # include <assert.h>
30113 /* Override any GCC internal prototype to avoid an error.
30114 Use char because int might match the return type of a GCC
30115 builtin and then its argument prototype would still apply. */
30120 /* The GNU C library defines this for functions which it implements
30121 to always fail with ENOSYS. Some functions are actually named
30122 something starting with __ and the normal name is an alias. */
30123 #if defined __stub_$ac_func || defined __stub___$ac_func
30130 return $ac_func ();
30135 rm -f conftest.$ac_objext conftest$ac_exeext
30136 if { (ac_try="$ac_link"
30137 case "(($ac_try" in
30138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139 *) ac_try_echo=$ac_try;;
30141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142 (eval "$ac_link") 2>conftest.er1
30144 grep -v '^ *+' conftest.er1 >conftest.err
30146 cat conftest.err >&5
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); } &&
30149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30150 { (case "(($ac_try" in
30151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152 *) ac_try_echo=$ac_try;;
30154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155 (eval "$ac_try") 2>&5
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); }; } &&
30159 { ac_try='test -s conftest$ac_exeext'
30160 { (case "(($ac_try" in
30161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30162 *) ac_try_echo=$ac_try;;
30164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30165 (eval "$ac_try") 2>&5
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); }; }; then
30169 eval "$as_ac_var=yes"
30171 echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30174 eval "$as_ac_var=no"
30177 rm -f core conftest.err conftest.$ac_objext \
30178 conftest$ac_exeext conftest.$ac_ext
30180 ac_res=`eval echo '${'$as_ac_var'}'`
30181 { echo "$as_me:$LINENO: result: $ac_res" >&5
30182 echo "${ECHO_T}$ac_res" >&6; }
30183 if test `eval echo '${'$as_ac_var'}'` = yes; then
30184 cat >>confdefs.h <<_ACEOF
30185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30195 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30201 echo $ECHO_N "(cached) $ECHO_C" >&6
30203 cat >conftest.$ac_ext <<_ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30211 #define $ac_func innocuous_$ac_func
30213 /* System header to define __stub macros and hopefully few prototypes,
30214 which can conflict with char $ac_func (); below.
30215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216 <limits.h> exists even on freestanding compilers. */
30219 # include <limits.h>
30221 # include <assert.h>
30226 /* Override any GCC internal prototype to avoid an error.
30227 Use char because int might match the return type of a GCC
30228 builtin and then its argument prototype would still apply. */
30233 /* The GNU C library defines this for functions which it implements
30234 to always fail with ENOSYS. Some functions are actually named
30235 something starting with __ and the normal name is an alias. */
30236 #if defined __stub_$ac_func || defined __stub___$ac_func
30243 return $ac_func ();
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (ac_try="$ac_link"
30250 case "(($ac_try" in
30251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252 *) ac_try_echo=$ac_try;;
30254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30255 (eval "$ac_link") 2>conftest.er1
30257 grep -v '^ *+' conftest.er1 >conftest.err
30259 cat conftest.err >&5
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); } &&
30262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30263 { (case "(($ac_try" in
30264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265 *) ac_try_echo=$ac_try;;
30267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268 (eval "$ac_try") 2>&5
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; } &&
30272 { ac_try='test -s conftest$ac_exeext'
30273 { (case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_try") 2>&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; }; then
30282 eval "$as_ac_var=yes"
30284 echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30287 eval "$as_ac_var=no"
30290 rm -f core conftest.err conftest.$ac_objext \
30291 conftest$ac_exeext conftest.$ac_ext
30293 ac_res=`eval echo '${'$as_ac_var'}'`
30294 { echo "$as_me:$LINENO: result: $ac_res" >&5
30295 echo "${ECHO_T}$ac_res" >&6; }
30296 if test `eval echo '${'$as_ac_var'}'` = yes; then
30297 cat >>confdefs.h <<_ACEOF
30298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30310 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30316 echo $ECHO_N "(cached) $ECHO_C" >&6
30318 cat >conftest.$ac_ext <<_ACEOF
30321 cat confdefs.h >>conftest.$ac_ext
30322 cat >>conftest.$ac_ext <<_ACEOF
30323 /* end confdefs.h. */
30324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30326 #define $ac_func innocuous_$ac_func
30328 /* System header to define __stub macros and hopefully few prototypes,
30329 which can conflict with char $ac_func (); below.
30330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30331 <limits.h> exists even on freestanding compilers. */
30334 # include <limits.h>
30336 # include <assert.h>
30341 /* Override any GCC internal prototype to avoid an error.
30342 Use char because int might match the return type of a GCC
30343 builtin and then its argument prototype would still apply. */
30348 /* The GNU C library defines this for functions which it implements
30349 to always fail with ENOSYS. Some functions are actually named
30350 something starting with __ and the normal name is an alias. */
30351 #if defined __stub_$ac_func || defined __stub___$ac_func
30358 return $ac_func ();
30363 rm -f conftest.$ac_objext conftest$ac_exeext
30364 if { (ac_try="$ac_link"
30365 case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370 (eval "$ac_link") 2>conftest.er1
30372 grep -v '^ *+' conftest.er1 >conftest.err
30374 cat conftest.err >&5
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); } &&
30377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30378 { (case "(($ac_try" in
30379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380 *) ac_try_echo=$ac_try;;
30382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383 (eval "$ac_try") 2>&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; } &&
30387 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); }; }; then
30397 eval "$as_ac_var=yes"
30399 echo "$as_me: failed program was:" >&5
30400 sed 's/^/| /' conftest.$ac_ext >&5
30402 eval "$as_ac_var=no"
30405 rm -f core conftest.err conftest.$ac_objext \
30406 conftest$ac_exeext conftest.$ac_ext
30408 ac_res=`eval echo '${'$as_ac_var'}'`
30409 { echo "$as_me:$LINENO: result: $ac_res" >&5
30410 echo "${ECHO_T}$ac_res" >&6; }
30411 if test `eval echo '${'$as_ac_var'}'` = yes; then
30412 cat >>confdefs.h <<_ACEOF
30413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30419 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30420 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30421 if test "${llvm_cv_c_printf_a+set}" = set; then
30422 echo $ECHO_N "(cached) $ECHO_C" >&6
30425 ac_cpp='$CPP $CPPFLAGS'
30426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30430 if test "$cross_compiling" = yes; then
30431 llvmac_cv_c_printf_a=no
30433 cat >conftest.$ac_ext <<_ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h. */
30442 #include <stdlib.h>
30448 volatile double A, B;
30452 sprintf(Buffer, "%a", A);
30456 if (A != 0x1.999999999999ap-4)
30463 rm -f conftest$ac_exeext
30464 if { (ac_try="$ac_link"
30465 case "(($ac_try" in
30466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467 *) ac_try_echo=$ac_try;;
30469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30470 (eval "$ac_link") 2>&5
30472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30474 { (case "(($ac_try" in
30475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_try") 2>&5
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; }; then
30483 llvm_cv_c_printf_a=yes
30485 echo "$as_me: program exited with status $ac_status" >&5
30486 echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30489 ( exit $ac_status )
30490 llvmac_cv_c_printf_a=no
30492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30497 ac_cpp='$CPP $CPPFLAGS'
30498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30503 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30504 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30505 if test "$llvm_cv_c_printf_a" = "yes"; then
30507 cat >>confdefs.h <<\_ACEOF
30508 #define HAVE_PRINTF_A 1
30513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30514 # for constant arguments. Useless!
30515 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30516 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30517 if test "${ac_cv_working_alloca_h+set}" = set; then
30518 echo $ECHO_N "(cached) $ECHO_C" >&6
30520 cat >conftest.$ac_ext <<_ACEOF
30523 cat confdefs.h >>conftest.$ac_ext
30524 cat >>conftest.$ac_ext <<_ACEOF
30525 /* end confdefs.h. */
30526 #include <alloca.h>
30530 char *p = (char *) alloca (2 * sizeof (int));
30536 rm -f conftest.$ac_objext conftest$ac_exeext
30537 if { (ac_try="$ac_link"
30538 case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543 (eval "$ac_link") 2>conftest.er1
30545 grep -v '^ *+' conftest.er1 >conftest.err
30547 cat conftest.err >&5
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); } &&
30550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30551 { (case "(($ac_try" in
30552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30553 *) ac_try_echo=$ac_try;;
30555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30556 (eval "$ac_try") 2>&5
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; } &&
30560 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
30568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569 (exit $ac_status); }; }; then
30570 ac_cv_working_alloca_h=yes
30572 echo "$as_me: failed program was:" >&5
30573 sed 's/^/| /' conftest.$ac_ext >&5
30575 ac_cv_working_alloca_h=no
30578 rm -f core conftest.err conftest.$ac_objext \
30579 conftest$ac_exeext conftest.$ac_ext
30581 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30582 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30583 if test $ac_cv_working_alloca_h = yes; then
30585 cat >>confdefs.h <<\_ACEOF
30586 #define HAVE_ALLOCA_H 1
30591 { echo "$as_me:$LINENO: checking for alloca" >&5
30592 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30593 if test "${ac_cv_func_alloca_works+set}" = set; then
30594 echo $ECHO_N "(cached) $ECHO_C" >&6
30596 cat >conftest.$ac_ext <<_ACEOF
30599 cat confdefs.h >>conftest.$ac_ext
30600 cat >>conftest.$ac_ext <<_ACEOF
30601 /* end confdefs.h. */
30603 # define alloca __builtin_alloca
30606 # include <malloc.h>
30607 # define alloca _alloca
30610 # include <alloca.h>
30615 # ifndef alloca /* predefined by HP cc +Olibcalls */
30626 char *p = (char *) alloca (1);
30632 rm -f conftest.$ac_objext conftest$ac_exeext
30633 if { (ac_try="$ac_link"
30634 case "(($ac_try" in
30635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30636 *) ac_try_echo=$ac_try;;
30638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30639 (eval "$ac_link") 2>conftest.er1
30641 grep -v '^ *+' conftest.er1 >conftest.err
30643 cat conftest.err >&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } &&
30646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30647 { (case "(($ac_try" in
30648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649 *) ac_try_echo=$ac_try;;
30651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652 (eval "$ac_try") 2>&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; } &&
30656 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 ac_cv_func_alloca_works=yes
30668 echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30671 ac_cv_func_alloca_works=no
30674 rm -f core conftest.err conftest.$ac_objext \
30675 conftest$ac_exeext conftest.$ac_ext
30677 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30678 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30680 if test $ac_cv_func_alloca_works = yes; then
30682 cat >>confdefs.h <<\_ACEOF
30683 #define HAVE_ALLOCA 1
30687 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30688 # that cause trouble. Some versions do not even contain alloca or
30689 # contain a buggy version. If you still want to use their alloca,
30690 # use ar to extract alloca.o from them instead of compiling alloca.c.
30692 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30694 cat >>confdefs.h <<\_ACEOF
30699 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30700 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30701 if test "${ac_cv_os_cray+set}" = set; then
30702 echo $ECHO_N "(cached) $ECHO_C" >&6
30704 cat >conftest.$ac_ext <<_ACEOF
30707 cat confdefs.h >>conftest.$ac_ext
30708 cat >>conftest.$ac_ext <<_ACEOF
30709 /* end confdefs.h. */
30710 #if defined CRAY && ! defined CRAY2
30717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30718 $EGREP "webecray" >/dev/null 2>&1; then
30726 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30727 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30728 if test $ac_cv_os_cray = yes; then
30729 for ac_func in _getb67 GETB67 getb67; do
30730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30734 echo $ECHO_N "(cached) $ECHO_C" >&6
30736 cat >conftest.$ac_ext <<_ACEOF
30739 cat confdefs.h >>conftest.$ac_ext
30740 cat >>conftest.$ac_ext <<_ACEOF
30741 /* end confdefs.h. */
30742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30744 #define $ac_func innocuous_$ac_func
30746 /* System header to define __stub macros and hopefully few prototypes,
30747 which can conflict with char $ac_func (); below.
30748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30749 <limits.h> exists even on freestanding compilers. */
30752 # include <limits.h>
30754 # include <assert.h>
30759 /* Override any GCC internal prototype to avoid an error.
30760 Use char because int might match the return type of a GCC
30761 builtin and then its argument prototype would still apply. */
30766 /* The GNU C library defines this for functions which it implements
30767 to always fail with ENOSYS. Some functions are actually named
30768 something starting with __ and the normal name is an alias. */
30769 #if defined __stub_$ac_func || defined __stub___$ac_func
30776 return $ac_func ();
30781 rm -f conftest.$ac_objext conftest$ac_exeext
30782 if { (ac_try="$ac_link"
30783 case "(($ac_try" in
30784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30785 *) ac_try_echo=$ac_try;;
30787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30788 (eval "$ac_link") 2>conftest.er1
30790 grep -v '^ *+' conftest.er1 >conftest.err
30792 cat conftest.err >&5
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); } &&
30795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30796 { (case "(($ac_try" in
30797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798 *) ac_try_echo=$ac_try;;
30800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30801 (eval "$ac_try") 2>&5
30803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); }; } &&
30805 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); }; }; then
30815 eval "$as_ac_var=yes"
30817 echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.$ac_ext >&5
30820 eval "$as_ac_var=no"
30823 rm -f core conftest.err conftest.$ac_objext \
30824 conftest$ac_exeext conftest.$ac_ext
30826 ac_res=`eval echo '${'$as_ac_var'}'`
30827 { echo "$as_me:$LINENO: result: $ac_res" >&5
30828 echo "${ECHO_T}$ac_res" >&6; }
30829 if test `eval echo '${'$as_ac_var'}'` = yes; then
30831 cat >>confdefs.h <<_ACEOF
30832 #define CRAY_STACKSEG_END $ac_func
30841 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30842 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30843 if test "${ac_cv_c_stack_direction+set}" = set; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30846 if test "$cross_compiling" = yes; then
30847 ac_cv_c_stack_direction=0
30849 cat >conftest.$ac_ext <<_ACEOF
30852 cat confdefs.h >>conftest.$ac_ext
30853 cat >>conftest.$ac_ext <<_ACEOF
30854 /* end confdefs.h. */
30855 $ac_includes_default
30857 find_stack_direction ()
30859 static char *addr = 0;
30864 return find_stack_direction ();
30867 return (&dummy > addr) ? 1 : -1;
30873 return find_stack_direction () < 0;
30876 rm -f conftest$ac_exeext
30877 if { (ac_try="$ac_link"
30878 case "(($ac_try" in
30879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880 *) ac_try_echo=$ac_try;;
30882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883 (eval "$ac_link") 2>&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30887 { (case "(($ac_try" in
30888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30889 *) ac_try_echo=$ac_try;;
30891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30892 (eval "$ac_try") 2>&5
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; }; then
30896 ac_cv_c_stack_direction=1
30898 echo "$as_me: program exited with status $ac_status" >&5
30899 echo "$as_me: failed program was:" >&5
30900 sed 's/^/| /' conftest.$ac_ext >&5
30902 ( exit $ac_status )
30903 ac_cv_c_stack_direction=-1
30905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30910 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30911 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30913 cat >>confdefs.h <<_ACEOF
30914 #define STACK_DIRECTION $ac_cv_c_stack_direction
30921 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30922 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30923 if test "${ac_cv_func_rand48+set}" = set; then
30924 echo $ECHO_N "(cached) $ECHO_C" >&6
30927 ac_cpp='$CXXCPP $CPPFLAGS'
30928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30932 cat >conftest.$ac_ext <<_ACEOF
30935 cat confdefs.h >>conftest.$ac_ext
30936 cat >>conftest.$ac_ext <<_ACEOF
30937 /* end confdefs.h. */
30938 #include <stdlib.h>
30942 srand48(0);lrand48();drand48();
30947 rm -f conftest.$ac_objext
30948 if { (ac_try="$ac_compile"
30949 case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954 (eval "$ac_compile") 2>conftest.er1
30956 grep -v '^ *+' conftest.er1 >conftest.err
30958 cat conftest.err >&5
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); } &&
30961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30962 { (case "(($ac_try" in
30963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30964 *) ac_try_echo=$ac_try;;
30966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30967 (eval "$ac_try") 2>&5
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); }; } &&
30971 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; }; then
30981 ac_cv_func_rand48=yes
30983 echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30986 ac_cv_func_rand48=no
30989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30991 ac_cpp='$CPP $CPPFLAGS'
30992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30997 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30998 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31000 if test "$ac_cv_func_rand48" = "yes" ; then
31002 cat >>confdefs.h <<\_ACEOF
31003 #define HAVE_RAND48 1
31009 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31010 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31011 if test "${ac_cv_cxx_namespaces+set}" = set; then
31012 echo $ECHO_N "(cached) $ECHO_C" >&6
31015 ac_cpp='$CXXCPP $CPPFLAGS'
31016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31020 cat >conftest.$ac_ext <<_ACEOF
31023 cat confdefs.h >>conftest.$ac_ext
31024 cat >>conftest.$ac_ext <<_ACEOF
31025 /* end confdefs.h. */
31026 namespace Outer { namespace Inner { int i = 0; }}
31030 using namespace Outer::Inner; return i;
31035 rm -f conftest.$ac_objext
31036 if { (ac_try="$ac_compile"
31037 case "(($ac_try" in
31038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039 *) ac_try_echo=$ac_try;;
31041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31042 (eval "$ac_compile") 2>conftest.er1
31044 grep -v '^ *+' conftest.er1 >conftest.err
31046 cat conftest.err >&5
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); } &&
31049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31050 { (case "(($ac_try" in
31051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052 *) ac_try_echo=$ac_try;;
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_try") 2>&5
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; } &&
31059 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); }; }; then
31069 ac_cv_cxx_namespaces=yes
31071 echo "$as_me: failed program was:" >&5
31072 sed 's/^/| /' conftest.$ac_ext >&5
31074 ac_cv_cxx_namespaces=no
31077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31079 ac_cpp='$CPP $CPPFLAGS'
31080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31086 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31087 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31088 if test "$ac_cv_cxx_namespaces" = yes; then
31090 cat >>confdefs.h <<\_ACEOF
31091 #define HAVE_NAMESPACES
31096 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31097 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31098 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31099 echo $ECHO_N "(cached) $ECHO_C" >&6
31103 ac_cpp='$CXXCPP $CPPFLAGS'
31104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31108 cat >conftest.$ac_ext <<_ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h. */
31114 #include <ext/hash_map>
31115 #ifdef HAVE_NAMESPACES
31116 using namespace std;
31121 hash_map<int, int> t;
31126 rm -f conftest.$ac_objext
31127 if { (ac_try="$ac_compile"
31128 case "(($ac_try" in
31129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130 *) ac_try_echo=$ac_try;;
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133 (eval "$ac_compile") 2>conftest.er1
31135 grep -v '^ *+' conftest.er1 >conftest.err
31137 cat conftest.err >&5
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } &&
31140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31141 { (case "(($ac_try" in
31142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143 *) ac_try_echo=$ac_try;;
31145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31146 (eval "$ac_try") 2>&5
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; } &&
31150 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; }; then
31160 ac_cv_cxx_have_std_ext_hash_map=yes
31162 echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31165 ac_cv_cxx_have_std_ext_hash_map=no
31168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31170 ac_cpp='$CPP $CPPFLAGS'
31171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31176 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31177 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31178 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31181 cat >>confdefs.h <<\_ACEOF
31182 #define HAVE_STD_EXT_HASH_MAP 1
31187 cat >>confdefs.h <<\_ACEOF
31188 #define HAVE_STD_EXT_HASH_MAP 0
31193 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31194 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31195 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31196 echo $ECHO_N "(cached) $ECHO_C" >&6
31200 ac_cpp='$CXXCPP $CPPFLAGS'
31201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31205 cat >conftest.$ac_ext <<_ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h. */
31211 #include <ext/hash_map>
31212 #ifdef HAVE_NAMESPACES
31213 using namespace __gnu_cxx;
31218 hash_map<int,int> t;
31223 rm -f conftest.$ac_objext
31224 if { (ac_try="$ac_compile"
31225 case "(($ac_try" in
31226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31227 *) ac_try_echo=$ac_try;;
31229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230 (eval "$ac_compile") 2>conftest.er1
31232 grep -v '^ *+' conftest.er1 >conftest.err
31234 cat conftest.err >&5
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } &&
31237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31238 { (case "(($ac_try" in
31239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240 *) ac_try_echo=$ac_try;;
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243 (eval "$ac_try") 2>&5
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); }; } &&
31247 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256 (exit $ac_status); }; }; then
31257 ac_cv_cxx_have_gnu_ext_hash_map=yes
31259 echo "$as_me: failed program was:" >&5
31260 sed 's/^/| /' conftest.$ac_ext >&5
31262 ac_cv_cxx_have_gnu_ext_hash_map=no
31265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31267 ac_cpp='$CPP $CPPFLAGS'
31268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31273 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31274 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31275 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31278 cat >>confdefs.h <<\_ACEOF
31279 #define HAVE_GNU_EXT_HASH_MAP 1
31284 cat >>confdefs.h <<\_ACEOF
31285 #define HAVE_GNU_EXT_HASH_MAP 0
31290 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31291 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31292 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31293 echo $ECHO_N "(cached) $ECHO_C" >&6
31297 ac_cpp='$CXXCPP $CPPFLAGS'
31298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31302 cat >conftest.$ac_ext <<_ACEOF
31305 cat confdefs.h >>conftest.$ac_ext
31306 cat >>conftest.$ac_ext <<_ACEOF
31307 /* end confdefs.h. */
31308 #include <hash_map>
31312 hash_map<int,int> t;
31317 rm -f conftest.$ac_objext
31318 if { (ac_try="$ac_compile"
31319 case "(($ac_try" in
31320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31321 *) ac_try_echo=$ac_try;;
31323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31324 (eval "$ac_compile") 2>conftest.er1
31326 grep -v '^ *+' conftest.er1 >conftest.err
31328 cat conftest.err >&5
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } &&
31331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31332 { (case "(($ac_try" in
31333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31334 *) ac_try_echo=$ac_try;;
31336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31337 (eval "$ac_try") 2>&5
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); }; } &&
31341 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350 (exit $ac_status); }; }; then
31351 ac_cv_cxx_have_global_hash_map=yes
31353 echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.$ac_ext >&5
31356 ac_cv_cxx_have_global_hash_map=no
31359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31361 ac_cpp='$CPP $CPPFLAGS'
31362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31367 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31368 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31369 if test "$ac_cv_cxx_have_global_hash_map" = yes
31372 cat >>confdefs.h <<\_ACEOF
31373 #define HAVE_GLOBAL_HASH_MAP 1
31378 cat >>confdefs.h <<\_ACEOF
31379 #define HAVE_GLOBAL_HASH_MAP 0
31384 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31385 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31386 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31387 echo $ECHO_N "(cached) $ECHO_C" >&6
31391 ac_cpp='$CXXCPP $CPPFLAGS'
31392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31396 cat >conftest.$ac_ext <<_ACEOF
31399 cat confdefs.h >>conftest.$ac_ext
31400 cat >>conftest.$ac_ext <<_ACEOF
31401 /* end confdefs.h. */
31402 #include <ext/hash_set>
31403 #ifdef HAVE_NAMESPACES
31404 using namespace std;
31414 rm -f conftest.$ac_objext
31415 if { (ac_try="$ac_compile"
31416 case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_compile") 2>conftest.er1
31423 grep -v '^ *+' conftest.er1 >conftest.err
31425 cat conftest.err >&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
31428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31429 { (case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_try") 2>&5
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } &&
31438 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); }; }; then
31448 ac_cv_cxx_have_std_ext_hash_set=yes
31450 echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31453 ac_cv_cxx_have_std_ext_hash_set=no
31456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31458 ac_cpp='$CPP $CPPFLAGS'
31459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31464 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31465 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31466 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31469 cat >>confdefs.h <<\_ACEOF
31470 #define HAVE_STD_EXT_HASH_SET 1
31475 cat >>confdefs.h <<\_ACEOF
31476 #define HAVE_STD_EXT_HASH_SET 0
31481 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31482 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31483 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31488 ac_cpp='$CXXCPP $CPPFLAGS'
31489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31493 cat >conftest.$ac_ext <<_ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 #include <ext/hash_set>
31500 #ifdef HAVE_NAMESPACES
31501 using namespace __gnu_cxx;
31511 rm -f conftest.$ac_objext
31512 if { (ac_try="$ac_compile"
31513 case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_compile") 2>conftest.er1
31520 grep -v '^ *+' conftest.er1 >conftest.err
31522 cat conftest.err >&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
31525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 ac_cv_cxx_have_gnu_ext_hash_set=yes
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31550 ac_cv_cxx_have_gnu_ext_hash_set=no
31553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31555 ac_cpp='$CPP $CPPFLAGS'
31556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31561 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31562 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31563 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31566 cat >>confdefs.h <<\_ACEOF
31567 #define HAVE_GNU_EXT_HASH_SET 1
31572 cat >>confdefs.h <<\_ACEOF
31573 #define HAVE_GNU_EXT_HASH_SET 0
31578 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31579 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31580 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31585 ac_cpp='$CXXCPP $CPPFLAGS'
31586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31590 cat >conftest.$ac_ext <<_ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h. */
31596 #include <hash_set>
31600 hash_set<int> t; return 0;
31605 rm -f conftest.$ac_objext
31606 if { (ac_try="$ac_compile"
31607 case "(($ac_try" in
31608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609 *) ac_try_echo=$ac_try;;
31611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612 (eval "$ac_compile") 2>conftest.er1
31614 grep -v '^ *+' conftest.er1 >conftest.err
31616 cat conftest.err >&5
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
31619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31620 { (case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_try") 2>&5
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); }; } &&
31629 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
31639 ac_cv_cxx_have_global_hash_set=yes
31641 echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31644 ac_cv_cxx_have_global_hash_set=no
31647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31649 ac_cpp='$CPP $CPPFLAGS'
31650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31655 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31656 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31657 if test "$ac_cv_cxx_have_global_hash_set" = yes
31660 cat >>confdefs.h <<\_ACEOF
31661 #define HAVE_GLOBAL_HASH_SET 1
31666 cat >>confdefs.h <<\_ACEOF
31667 #define HAVE_GLOBAL_HASH_SET 0
31672 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31673 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31674 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31675 echo $ECHO_N "(cached) $ECHO_C" >&6
31679 ac_cpp='$CXXCPP $CPPFLAGS'
31680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31684 cat >conftest.$ac_ext <<_ACEOF
31687 cat confdefs.h >>conftest.$ac_ext
31688 cat >>conftest.$ac_ext <<_ACEOF
31689 /* end confdefs.h. */
31690 #include <iterator>
31691 #ifdef HAVE_NAMESPACES
31692 using namespace std;
31697 iterator<int,int,int> t; return 0;
31702 rm -f conftest.$ac_objext
31703 if { (ac_try="$ac_compile"
31704 case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709 (eval "$ac_compile") 2>conftest.er1
31711 grep -v '^ *+' conftest.er1 >conftest.err
31713 cat conftest.err >&5
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); } &&
31716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31717 { (case "(($ac_try" in
31718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719 *) ac_try_echo=$ac_try;;
31721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722 (eval "$ac_try") 2>&5
31724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725 (exit $ac_status); }; } &&
31726 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; }; then
31736 ac_cv_cxx_have_std_iterator=yes
31738 echo "$as_me: failed program was:" >&5
31739 sed 's/^/| /' conftest.$ac_ext >&5
31741 ac_cv_cxx_have_std_iterator=no
31744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31746 ac_cpp='$CPP $CPPFLAGS'
31747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31753 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31754 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31755 if test "$ac_cv_cxx_have_std_iterator" = yes
31758 cat >>confdefs.h <<\_ACEOF
31759 #define HAVE_STD_ITERATOR 1
31764 cat >>confdefs.h <<\_ACEOF
31765 #define HAVE_STD_ITERATOR 0
31770 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31771 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31772 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31773 echo $ECHO_N "(cached) $ECHO_C" >&6
31777 ac_cpp='$CXXCPP $CPPFLAGS'
31778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31782 cat >conftest.$ac_ext <<_ACEOF
31785 cat confdefs.h >>conftest.$ac_ext
31786 cat >>conftest.$ac_ext <<_ACEOF
31787 /* end confdefs.h. */
31788 #include <iterator>
31789 #ifdef HAVE_NAMESPACES
31790 using namespace std;
31795 bidirectional_iterator<int,int> t; return 0;
31800 rm -f conftest.$ac_objext
31801 if { (ac_try="$ac_compile"
31802 case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_compile") 2>conftest.er1
31809 grep -v '^ *+' conftest.er1 >conftest.err
31811 cat conftest.err >&5
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); } &&
31814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31815 { (case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820 (eval "$ac_try") 2>&5
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; } &&
31824 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
31834 ac_cv_cxx_have_bi_iterator=yes
31836 echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31839 ac_cv_cxx_have_bi_iterator=no
31842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31844 ac_cpp='$CPP $CPPFLAGS'
31845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31851 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31852 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31853 if test "$ac_cv_cxx_have_bi_iterator" = yes
31856 cat >>confdefs.h <<\_ACEOF
31857 #define HAVE_BI_ITERATOR 1
31862 cat >>confdefs.h <<\_ACEOF
31863 #define HAVE_BI_ITERATOR 0
31868 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31869 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31870 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31871 echo $ECHO_N "(cached) $ECHO_C" >&6
31875 ac_cpp='$CXXCPP $CPPFLAGS'
31876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31880 cat >conftest.$ac_ext <<_ACEOF
31883 cat confdefs.h >>conftest.$ac_ext
31884 cat >>conftest.$ac_ext <<_ACEOF
31885 /* end confdefs.h. */
31886 #include <iterator>
31887 #ifdef HAVE_NAMESPACES
31888 using namespace std;
31893 forward_iterator<int,int> t; return 0;
31898 rm -f conftest.$ac_objext
31899 if { (ac_try="$ac_compile"
31900 case "(($ac_try" in
31901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31902 *) ac_try_echo=$ac_try;;
31904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31905 (eval "$ac_compile") 2>conftest.er1
31907 grep -v '^ *+' conftest.er1 >conftest.err
31909 cat conftest.err >&5
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); } &&
31912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31913 { (case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_try") 2>&5
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); }; } &&
31922 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); }; }; then
31932 ac_cv_cxx_have_fwd_iterator=yes
31934 echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31937 ac_cv_cxx_have_fwd_iterator=no
31940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31942 ac_cpp='$CPP $CPPFLAGS'
31943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31949 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31950 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31951 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31954 cat >>confdefs.h <<\_ACEOF
31955 #define HAVE_FWD_ITERATOR 1
31960 cat >>confdefs.h <<\_ACEOF
31961 #define HAVE_FWD_ITERATOR 0
31967 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31968 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31969 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31970 echo $ECHO_N "(cached) $ECHO_C" >&6
31973 ac_cpp='$CXXCPP $CPPFLAGS'
31974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31978 cat >conftest.$ac_ext <<_ACEOF
31981 cat confdefs.h >>conftest.$ac_ext
31982 cat >>conftest.$ac_ext <<_ACEOF
31983 /* end confdefs.h. */
31993 rm -f conftest.$ac_objext
31994 if { (ac_try="$ac_compile"
31995 case "(($ac_try" in
31996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31997 *) ac_try_echo=$ac_try;;
31999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32000 (eval "$ac_compile") 2>conftest.er1
32002 grep -v '^ *+' conftest.er1 >conftest.err
32004 cat conftest.err >&5
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); } &&
32007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32008 { (case "(($ac_try" in
32009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32010 *) ac_try_echo=$ac_try;;
32012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32013 (eval "$ac_try") 2>&5
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; } &&
32017 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); }; }; then
32027 ac_cv_func_isnan_in_math_h=yes
32029 echo "$as_me: failed program was:" >&5
32030 sed 's/^/| /' conftest.$ac_ext >&5
32032 ac_cv_func_isnan_in_math_h=no
32035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32037 ac_cpp='$CPP $CPPFLAGS'
32038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32043 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32044 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32047 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32049 cat >>confdefs.h <<\_ACEOF
32050 #define HAVE_ISNAN_IN_MATH_H 1
32055 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32056 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32057 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32058 echo $ECHO_N "(cached) $ECHO_C" >&6
32061 ac_cpp='$CXXCPP $CPPFLAGS'
32062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32066 cat >conftest.$ac_ext <<_ACEOF
32069 cat confdefs.h >>conftest.$ac_ext
32070 cat >>conftest.$ac_ext <<_ACEOF
32071 /* end confdefs.h. */
32081 rm -f conftest.$ac_objext
32082 if { (ac_try="$ac_compile"
32083 case "(($ac_try" in
32084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085 *) ac_try_echo=$ac_try;;
32087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088 (eval "$ac_compile") 2>conftest.er1
32090 grep -v '^ *+' conftest.er1 >conftest.err
32092 cat conftest.err >&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } &&
32095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32096 { (case "(($ac_try" in
32097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32098 *) ac_try_echo=$ac_try;;
32100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32101 (eval "$ac_try") 2>&5
32103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104 (exit $ac_status); }; } &&
32105 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; }; then
32115 ac_cv_func_isnan_in_cmath=yes
32117 echo "$as_me: failed program was:" >&5
32118 sed 's/^/| /' conftest.$ac_ext >&5
32120 ac_cv_func_isnan_in_cmath=no
32123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32125 ac_cpp='$CPP $CPPFLAGS'
32126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32131 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32132 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32134 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32136 cat >>confdefs.h <<\_ACEOF
32137 #define HAVE_ISNAN_IN_CMATH 1
32142 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32143 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32144 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32145 echo $ECHO_N "(cached) $ECHO_C" >&6
32148 ac_cpp='$CXXCPP $CPPFLAGS'
32149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32153 cat >conftest.$ac_ext <<_ACEOF
32156 cat confdefs.h >>conftest.$ac_ext
32157 cat >>conftest.$ac_ext <<_ACEOF
32158 /* end confdefs.h. */
32163 float f; std::isnan(f);
32168 rm -f conftest.$ac_objext
32169 if { (ac_try="$ac_compile"
32170 case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_compile") 2>conftest.er1
32177 grep -v '^ *+' conftest.er1 >conftest.err
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } &&
32182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32183 { (case "(($ac_try" in
32184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185 *) ac_try_echo=$ac_try;;
32187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188 (eval "$ac_try") 2>&5
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; } &&
32192 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); }; }; then
32202 ac_cv_func_std_isnan_in_cmath=yes
32204 echo "$as_me: failed program was:" >&5
32205 sed 's/^/| /' conftest.$ac_ext >&5
32207 ac_cv_func_std_isnan_in_cmath=no
32210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32212 ac_cpp='$CPP $CPPFLAGS'
32213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32218 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32219 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32221 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32223 cat >>confdefs.h <<\_ACEOF
32224 #define HAVE_STD_ISNAN_IN_CMATH 1
32230 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32231 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32232 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32233 echo $ECHO_N "(cached) $ECHO_C" >&6
32236 ac_cpp='$CXXCPP $CPPFLAGS'
32237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32241 cat >conftest.$ac_ext <<_ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h. */
32256 rm -f conftest.$ac_objext
32257 if { (ac_try="$ac_compile"
32258 case "(($ac_try" in
32259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32260 *) ac_try_echo=$ac_try;;
32262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32263 (eval "$ac_compile") 2>conftest.er1
32265 grep -v '^ *+' conftest.er1 >conftest.err
32267 cat conftest.err >&5
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); } &&
32270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32271 { (case "(($ac_try" in
32272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32273 *) ac_try_echo=$ac_try;;
32275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32276 (eval "$ac_try") 2>&5
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); }; } &&
32280 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); }; }; then
32290 ac_cv_func_isinf_in_math_h=yes
32292 echo "$as_me: failed program was:" >&5
32293 sed 's/^/| /' conftest.$ac_ext >&5
32295 ac_cv_func_isinf_in_math_h=no
32298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32300 ac_cpp='$CPP $CPPFLAGS'
32301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32306 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32307 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32309 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32311 cat >>confdefs.h <<\_ACEOF
32312 #define HAVE_ISINF_IN_MATH_H 1
32317 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32318 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32319 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32323 ac_cpp='$CXXCPP $CPPFLAGS'
32324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32328 cat >conftest.$ac_ext <<_ACEOF
32331 cat confdefs.h >>conftest.$ac_ext
32332 cat >>conftest.$ac_ext <<_ACEOF
32333 /* end confdefs.h. */
32343 rm -f conftest.$ac_objext
32344 if { (ac_try="$ac_compile"
32345 case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_compile") 2>conftest.er1
32352 grep -v '^ *+' conftest.er1 >conftest.err
32354 cat conftest.err >&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } &&
32357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32358 { (case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_try") 2>&5
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; }; then
32377 ac_cv_func_isinf_in_cmath=yes
32379 echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32382 ac_cv_func_isinf_in_cmath=no
32385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32387 ac_cpp='$CPP $CPPFLAGS'
32388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32393 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32394 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32396 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32398 cat >>confdefs.h <<\_ACEOF
32399 #define HAVE_ISINF_IN_CMATH 1
32404 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32405 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32406 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32410 ac_cpp='$CXXCPP $CPPFLAGS'
32411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32415 cat >conftest.$ac_ext <<_ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32425 float f; std::isinf(f)}
32430 rm -f conftest.$ac_objext
32431 if { (ac_try="$ac_compile"
32432 case "(($ac_try" in
32433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_compile") 2>conftest.er1
32439 grep -v '^ *+' conftest.er1 >conftest.err
32441 cat conftest.err >&5
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); } &&
32444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32445 { (case "(($ac_try" in
32446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447 *) ac_try_echo=$ac_try;;
32449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_try") 2>&5
32452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453 (exit $ac_status); }; } &&
32454 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; }; then
32464 ac_cv_func_std_isinf_in_cmath=yes
32466 echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32469 ac_cv_func_std_isinf_in_cmath=no
32472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32474 ac_cpp='$CPP $CPPFLAGS'
32475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32480 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32481 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32483 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32485 cat >>confdefs.h <<\_ACEOF
32486 #define HAVE_STD_ISINF_IN_CMATH 1
32491 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32492 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32493 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32494 echo $ECHO_N "(cached) $ECHO_C" >&6
32497 ac_cpp='$CXXCPP $CPPFLAGS'
32498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32502 cat >conftest.$ac_ext <<_ACEOF
32505 cat confdefs.h >>conftest.$ac_ext
32506 cat >>conftest.$ac_ext <<_ACEOF
32507 /* end confdefs.h. */
32508 #include <ieeefp.h>
32512 float f; finite(f);
32517 rm -f conftest.$ac_objext
32518 if { (ac_try="$ac_compile"
32519 case "(($ac_try" in
32520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521 *) ac_try_echo=$ac_try;;
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524 (eval "$ac_compile") 2>conftest.er1
32526 grep -v '^ *+' conftest.er1 >conftest.err
32528 cat conftest.err >&5
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); } &&
32531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32532 { (case "(($ac_try" in
32533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534 *) ac_try_echo=$ac_try;;
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537 (eval "$ac_try") 2>&5
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; } &&
32541 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); }; }; then
32551 ac_cv_func_finite_in_ieeefp_h=yes
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32556 ac_cv_func_finite_in_ieeefp_h=no
32559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32561 ac_cpp='$CPP $CPPFLAGS'
32562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32567 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32568 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32570 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32572 cat >>confdefs.h <<\_ACEOF
32573 #define HAVE_FINITE_IN_IEEEFP_H 1
32582 for ac_header in stdlib.h unistd.h
32584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32589 echo $ECHO_N "(cached) $ECHO_C" >&6
32591 ac_res=`eval echo '${'$as_ac_Header'}'`
32592 { echo "$as_me:$LINENO: result: $ac_res" >&5
32593 echo "${ECHO_T}$ac_res" >&6; }
32595 # Is the header compilable?
32596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32598 cat >conftest.$ac_ext <<_ACEOF
32601 cat confdefs.h >>conftest.$ac_ext
32602 cat >>conftest.$ac_ext <<_ACEOF
32603 /* end confdefs.h. */
32604 $ac_includes_default
32605 #include <$ac_header>
32607 rm -f conftest.$ac_objext
32608 if { (ac_try="$ac_compile"
32609 case "(($ac_try" in
32610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611 *) ac_try_echo=$ac_try;;
32613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32614 (eval "$ac_compile") 2>conftest.er1
32616 grep -v '^ *+' conftest.er1 >conftest.err
32618 cat conftest.err >&5
32619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); } &&
32621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32622 { (case "(($ac_try" in
32623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32624 *) ac_try_echo=$ac_try;;
32626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32627 (eval "$ac_try") 2>&5
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); }; } &&
32631 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); }; }; then
32641 ac_header_compiler=yes
32643 echo "$as_me: failed program was:" >&5
32644 sed 's/^/| /' conftest.$ac_ext >&5
32646 ac_header_compiler=no
32649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32651 echo "${ECHO_T}$ac_header_compiler" >&6; }
32653 # Is the header present?
32654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32656 cat >conftest.$ac_ext <<_ACEOF
32659 cat confdefs.h >>conftest.$ac_ext
32660 cat >>conftest.$ac_ext <<_ACEOF
32661 /* end confdefs.h. */
32662 #include <$ac_header>
32664 if { (ac_try="$ac_cpp conftest.$ac_ext"
32665 case "(($ac_try" in
32666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32667 *) ac_try_echo=$ac_try;;
32669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32672 grep -v '^ *+' conftest.er1 >conftest.err
32674 cat conftest.err >&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); } >/dev/null; then
32677 if test -s conftest.err; then
32678 ac_cpp_err=$ac_c_preproc_warn_flag
32679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32686 if test -z "$ac_cpp_err"; then
32687 ac_header_preproc=yes
32689 echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32692 ac_header_preproc=no
32695 rm -f conftest.err conftest.$ac_ext
32696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32697 echo "${ECHO_T}$ac_header_preproc" >&6; }
32699 # So? What about this header?
32700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32706 ac_header_preproc=yes
32709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32722 ## ----------------------------------- ##
32723 ## Report this to llvmbugs@cs.uiuc.edu ##
32724 ## ----------------------------------- ##
32726 ) | sed "s/^/$as_me: WARNING: /" >&2
32729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32732 echo $ECHO_N "(cached) $ECHO_C" >&6
32734 eval "$as_ac_Header=\$ac_header_preproc"
32736 ac_res=`eval echo '${'$as_ac_Header'}'`
32737 { echo "$as_me:$LINENO: result: $ac_res" >&5
32738 echo "${ECHO_T}$ac_res" >&6; }
32741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32742 cat >>confdefs.h <<_ACEOF
32743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32751 for ac_func in getpagesize
32753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32757 echo $ECHO_N "(cached) $ECHO_C" >&6
32759 cat >conftest.$ac_ext <<_ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h. */
32765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32767 #define $ac_func innocuous_$ac_func
32769 /* System header to define __stub macros and hopefully few prototypes,
32770 which can conflict with char $ac_func (); below.
32771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32772 <limits.h> exists even on freestanding compilers. */
32775 # include <limits.h>
32777 # include <assert.h>
32782 /* Override any GCC internal prototype to avoid an error.
32783 Use char because int might match the return type of a GCC
32784 builtin and then its argument prototype would still apply. */
32789 /* The GNU C library defines this for functions which it implements
32790 to always fail with ENOSYS. Some functions are actually named
32791 something starting with __ and the normal name is an alias. */
32792 #if defined __stub_$ac_func || defined __stub___$ac_func
32799 return $ac_func ();
32804 rm -f conftest.$ac_objext conftest$ac_exeext
32805 if { (ac_try="$ac_link"
32806 case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_link") 2>conftest.er1
32813 grep -v '^ *+' conftest.er1 >conftest.err
32815 cat conftest.err >&5
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); } &&
32818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32819 { (case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_try") 2>&5
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
32838 eval "$as_ac_var=yes"
32840 echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32843 eval "$as_ac_var=no"
32846 rm -f core conftest.err conftest.$ac_objext \
32847 conftest$ac_exeext conftest.$ac_ext
32849 ac_res=`eval echo '${'$as_ac_var'}'`
32850 { echo "$as_me:$LINENO: result: $ac_res" >&5
32851 echo "${ECHO_T}$ac_res" >&6; }
32852 if test `eval echo '${'$as_ac_var'}'` = yes; then
32853 cat >>confdefs.h <<_ACEOF
32854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32860 { echo "$as_me:$LINENO: checking for working mmap" >&5
32861 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32862 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32863 echo $ECHO_N "(cached) $ECHO_C" >&6
32865 if test "$cross_compiling" = yes; then
32866 ac_cv_func_mmap_fixed_mapped=no
32868 cat >conftest.$ac_ext <<_ACEOF
32871 cat confdefs.h >>conftest.$ac_ext
32872 cat >>conftest.$ac_ext <<_ACEOF
32873 /* end confdefs.h. */
32874 $ac_includes_default
32875 /* malloc might have been renamed as rpl_malloc. */
32878 /* Thanks to Mike Haertel and Jim Avera for this test.
32879 Here is a matrix of mmap possibilities:
32880 mmap private not fixed
32881 mmap private fixed at somewhere currently unmapped
32882 mmap private fixed at somewhere already mapped
32883 mmap shared not fixed
32884 mmap shared fixed at somewhere currently unmapped
32885 mmap shared fixed at somewhere already mapped
32886 For private mappings, we should verify that changes cannot be read()
32887 back from the file, nor mmap's back from the file at a different
32888 address. (There have been systems where private was not correctly
32889 implemented like the infamous i386 svr4.0, and systems where the
32890 VM page cache was not coherent with the file system buffer cache
32891 like early versions of FreeBSD and possibly contemporary NetBSD.)
32892 For shared mappings, we should conversely verify that changes get
32893 propagated back to all the places they're supposed to be.
32895 Grep wants private fixed already mapped.
32896 The main things grep needs to know about mmap are:
32897 * does it exist and is it safe to write into the mmap'd area
32898 * how to use it (BSD variants) */
32901 #include <sys/mman.h>
32903 #if !STDC_HEADERS && !HAVE_STDLIB_H
32907 /* This mess was copied from the GNU getpagesize.h. */
32908 #if !HAVE_GETPAGESIZE
32909 /* Assume that all systems that can run configure have sys/param.h. */
32910 # if !HAVE_SYS_PARAM_H
32911 # define HAVE_SYS_PARAM_H 1
32914 # ifdef _SC_PAGESIZE
32915 # define getpagesize() sysconf(_SC_PAGESIZE)
32916 # else /* no _SC_PAGESIZE */
32917 # if HAVE_SYS_PARAM_H
32918 # include <sys/param.h>
32919 # ifdef EXEC_PAGESIZE
32920 # define getpagesize() EXEC_PAGESIZE
32921 # else /* no EXEC_PAGESIZE */
32923 # define getpagesize() NBPG * CLSIZE
32926 # endif /* no CLSIZE */
32927 # else /* no NBPG */
32929 # define getpagesize() NBPC
32930 # else /* no NBPC */
32932 # define getpagesize() PAGESIZE
32933 # endif /* PAGESIZE */
32934 # endif /* no NBPC */
32935 # endif /* no NBPG */
32936 # endif /* no EXEC_PAGESIZE */
32937 # else /* no HAVE_SYS_PARAM_H */
32938 # define getpagesize() 8192 /* punt totally */
32939 # endif /* no HAVE_SYS_PARAM_H */
32940 # endif /* no _SC_PAGESIZE */
32942 #endif /* no HAVE_GETPAGESIZE */
32947 char *data, *data2, *data3;
32951 pagesize = getpagesize ();
32953 /* First, make a file with some known garbage in it. */
32954 data = (char *) malloc (pagesize);
32957 for (i = 0; i < pagesize; ++i)
32958 *(data + i) = rand ();
32960 fd = creat ("conftest.mmap", 0600);
32963 if (write (fd, data, pagesize) != pagesize)
32967 /* Next, try to mmap the file at a fixed address which already has
32968 something else allocated at it. If we can, also make sure that
32969 we see the same garbage. */
32970 fd = open ("conftest.mmap", O_RDWR);
32973 data2 = (char *) malloc (2 * pagesize);
32976 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32977 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32978 MAP_PRIVATE | MAP_FIXED, fd, 0L))
32980 for (i = 0; i < pagesize; ++i)
32981 if (*(data + i) != *(data2 + i))
32984 /* Finally, make sure that changes to the mapped area do not
32985 percolate back to the file as seen by read(). (This is a bug on
32986 some variants of i386 svr4.0.) */
32987 for (i = 0; i < pagesize; ++i)
32988 *(data2 + i) = *(data2 + i) + 1;
32989 data3 = (char *) malloc (pagesize);
32992 if (read (fd, data3, pagesize) != pagesize)
32994 for (i = 0; i < pagesize; ++i)
32995 if (*(data + i) != *(data3 + i))
33001 rm -f conftest$ac_exeext
33002 if { (ac_try="$ac_link"
33003 case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_link") 2>&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33012 { (case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_try") 2>&5
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
33021 ac_cv_func_mmap_fixed_mapped=yes
33023 echo "$as_me: program exited with status $ac_status" >&5
33024 echo "$as_me: failed program was:" >&5
33025 sed 's/^/| /' conftest.$ac_ext >&5
33027 ( exit $ac_status )
33028 ac_cv_func_mmap_fixed_mapped=no
33030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33035 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33036 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33037 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33039 cat >>confdefs.h <<\_ACEOF
33040 #define HAVE_MMAP 1
33044 rm -f conftest.mmap
33046 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33047 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33048 if test "${ac_cv_func_mmap_file+set}" = set; then
33049 echo $ECHO_N "(cached) $ECHO_C" >&6
33052 ac_cpp='$CPP $CPPFLAGS'
33053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33057 if test "$cross_compiling" = yes; then
33058 ac_cv_func_mmap_file=no
33060 cat >conftest.$ac_ext <<_ACEOF
33064 cat confdefs.h >>conftest.$ac_ext
33065 cat >>conftest.$ac_ext <<_ACEOF
33066 /* end confdefs.h. */
33068 #include <sys/types.h>
33069 #include <sys/mman.h>
33077 fd = creat ("foo",0777);
33078 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33080 return (fd != (int) MAP_FAILED);
33085 rm -f conftest$ac_exeext
33086 if { (ac_try="$ac_link"
33087 case "(($ac_try" in
33088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089 *) ac_try_echo=$ac_try;;
33091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092 (eval "$ac_link") 2>&5
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33096 { (case "(($ac_try" in
33097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33098 *) ac_try_echo=$ac_try;;
33100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33101 (eval "$ac_try") 2>&5
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; }; then
33105 ac_cv_func_mmap_file=yes
33107 echo "$as_me: program exited with status $ac_status" >&5
33108 echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33111 ( exit $ac_status )
33112 ac_cv_func_mmap_file=no
33114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33119 ac_cpp='$CPP $CPPFLAGS'
33120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33126 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33127 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33128 if test "$ac_cv_func_mmap_file" = yes; then
33130 cat >>confdefs.h <<\_ACEOF
33131 #define HAVE_MMAP_FILE
33138 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33139 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33140 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33141 echo $ECHO_N "(cached) $ECHO_C" >&6
33143 if test "$llvm_cv_os_type" = "Interix" ; then
33144 ac_cv_need_dev_zero_for_mmap=yes
33146 ac_cv_need_dev_zero_for_mmap=no
33150 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33151 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33152 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33154 cat >>confdefs.h <<\_ACEOF
33155 #define NEED_DEV_ZERO_FOR_MMAP 1
33159 { echo "$as_me:$LINENO: checking for mprotect" >&5
33160 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33161 if test "${ac_cv_func_mprotect+set}" = set; then
33162 echo $ECHO_N "(cached) $ECHO_C" >&6
33164 cat >conftest.$ac_ext <<_ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h. */
33170 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33172 #define mprotect innocuous_mprotect
33174 /* System header to define __stub macros and hopefully few prototypes,
33175 which can conflict with char mprotect (); below.
33176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33177 <limits.h> exists even on freestanding compilers. */
33180 # include <limits.h>
33182 # include <assert.h>
33187 /* Override any GCC internal prototype to avoid an error.
33188 Use char because int might match the return type of a GCC
33189 builtin and then its argument prototype would still apply. */
33194 /* The GNU C library defines this for functions which it implements
33195 to always fail with ENOSYS. Some functions are actually named
33196 something starting with __ and the normal name is an alias. */
33197 #if defined __stub_mprotect || defined __stub___mprotect
33204 return mprotect ();
33209 rm -f conftest.$ac_objext conftest$ac_exeext
33210 if { (ac_try="$ac_link"
33211 case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_link") 2>conftest.er1
33218 grep -v '^ *+' conftest.er1 >conftest.err
33220 cat conftest.err >&5
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); } &&
33223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33224 { (case "(($ac_try" in
33225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226 *) ac_try_echo=$ac_try;;
33228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229 (eval "$ac_try") 2>&5
33231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232 (exit $ac_status); }; } &&
33233 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; }; then
33243 ac_cv_func_mprotect=yes
33245 echo "$as_me: failed program was:" >&5
33246 sed 's/^/| /' conftest.$ac_ext >&5
33248 ac_cv_func_mprotect=no
33251 rm -f core conftest.err conftest.$ac_objext \
33252 conftest$ac_exeext conftest.$ac_ext
33254 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33255 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33256 if test $ac_cv_func_mprotect = yes; then
33259 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33260 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33261 { (exit 1); exit 1; }; }
33265 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33267 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33268 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33270 if test "$ac_cv_func_mmap_file" = "no"
33272 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33273 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33277 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33278 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33279 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33280 echo $ECHO_N "(cached) $ECHO_C" >&6
33282 llvm_cv_llvmgcc_sanity="no"
33283 if test -x "$LLVMGCC" ; then
33284 cp /dev/null conftest.c
33285 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33286 if test $? -eq 0 ; then
33287 llvm_cv_llvmgcc_sanity="yes"
33292 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33293 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33295 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33296 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33297 LLVMCC1=$llvmcc1path
33299 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33300 LLVMCC1PLUS=$llvmcc1pluspath
33302 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33303 LLVMGCCDIR=$llvmgccdir
33305 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33306 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33307 LLVMGCC_VERSION=$llvmgccversion
33309 LLVMGCC_MAJVERS=$llvmgccmajvers
33313 SHLIBEXT=$libltdl_cv_shlibext
33316 # Translate the various configuration directories and other basic
33317 # information into substitutions that will end up in Makefile.config.in
33318 # that these configured values can be used by the makefiles
33319 if test "${prefix}" == "NONE" ; then
33320 prefix="/usr/local"
33322 eval LLVM_PREFIX="${prefix}";
33323 eval LLVM_BINDIR="${prefix}/bin";
33324 eval LLVM_LIBDIR="${prefix}/lib";
33325 eval LLVM_DATADIR="${prefix}/share/llvm";
33326 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33327 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33328 eval LLVM_INCLUDEDIR="${prefix}/include";
33329 eval LLVM_INFODIR="${prefix}/info";
33330 eval LLVM_MANDIR="${prefix}/man";
33331 LLVM_CONFIGTIME=`date`
33343 # Place the various directores into the config.h file as #defines so that we
33344 # can know about the installation paths within LLVM.
33346 cat >>confdefs.h <<_ACEOF
33347 #define LLVM_PREFIX "$LLVM_PREFIX"
33351 cat >>confdefs.h <<_ACEOF
33352 #define LLVM_BINDIR "$LLVM_BINDIR"
33356 cat >>confdefs.h <<_ACEOF
33357 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33361 cat >>confdefs.h <<_ACEOF
33362 #define LLVM_DATADIR "$LLVM_DATADIR"
33366 cat >>confdefs.h <<_ACEOF
33367 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33371 cat >>confdefs.h <<_ACEOF
33372 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33376 cat >>confdefs.h <<_ACEOF
33377 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33381 cat >>confdefs.h <<_ACEOF
33382 #define LLVM_INFODIR "$LLVM_INFODIR"
33386 cat >>confdefs.h <<_ACEOF
33387 #define LLVM_MANDIR "$LLVM_MANDIR"
33391 cat >>confdefs.h <<_ACEOF
33392 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33397 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33399 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33401 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33403 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33405 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33408 ac_config_files="$ac_config_files Makefile.config"
33411 ac_config_files="$ac_config_files llvm.spec"
33414 ac_config_files="$ac_config_files docs/doxygen.cfg"
33417 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33420 ac_config_commands="$ac_config_commands setup"
33422 ac_config_commands="$ac_config_commands Makefile"
33425 ac_config_commands="$ac_config_commands Makefile.common"
33428 ac_config_commands="$ac_config_commands examples/Makefile"
33431 ac_config_commands="$ac_config_commands lib/Makefile"
33434 ac_config_commands="$ac_config_commands runtime/Makefile"
33437 ac_config_commands="$ac_config_commands test/Makefile"
33440 ac_config_commands="$ac_config_commands test/Makefile.tests"
33443 ac_config_commands="$ac_config_commands tools/Makefile"
33446 ac_config_commands="$ac_config_commands utils/Makefile"
33449 ac_config_commands="$ac_config_commands projects/Makefile"
33453 cat >confcache <<\_ACEOF
33454 # This file is a shell script that caches the results of configure
33455 # tests run on this system so they can be shared between configure
33456 # scripts and configure runs, see configure's option --config-cache.
33457 # It is not useful on other systems. If it contains results you don't
33458 # want to keep, you may remove or edit it.
33460 # config.status only pays attention to the cache file if you give it
33461 # the --recheck option to rerun configure.
33463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33465 # following values.
33469 # The following way of writing the cache mishandles newlines in values,
33470 # but we know of no workaround that is simple, portable, and efficient.
33471 # So, we kill variables containing newlines.
33472 # Ultrix sh set writes to stderr and can't be redirected directly,
33473 # and sets the high bit in the cache file unless we assign to the vars.
33475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33476 eval ac_val=\$$ac_var
33480 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33484 _ | IFS | as_nl) ;; #(
33485 *) $as_unset $ac_var ;;
33491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33492 *${as_nl}ac_space=\ *)
33493 # `set' does not quote correctly, so add quotes (double-quote
33494 # substitution turns \\\\ into \\, and sed turns \\ into \).
33497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33500 # `set' quotes correctly as required by POSIX, so do not add quotes.
33501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33515 if test -w "$cache_file"; then
33516 test "x$cache_file" != "x/dev/null" &&
33517 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33518 echo "$as_me: updating cache $cache_file" >&6;}
33519 cat confcache >$cache_file
33521 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33522 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33527 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33528 # Let make expand exec_prefix.
33529 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33531 DEFS=-DHAVE_CONFIG_H
33535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33536 # 1. Remove the extension, and $U if already installed.
33537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33538 ac_i=`echo "$ac_i" | sed "$ac_script"`
33539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33540 # will be set to the directory where LIBOBJS objects are built.
33541 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33542 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33544 LIBOBJS=$ac_libobjs
33546 LTLIBOBJS=$ac_ltlibobjs
33549 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33550 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33551 Usually this means the macro was only invoked conditionally." >&5
33552 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33553 Usually this means the macro was only invoked conditionally." >&2;}
33554 { (exit 1); exit 1; }; }
33556 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33557 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33558 Usually this means the macro was only invoked conditionally." >&5
33559 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33560 Usually this means the macro was only invoked conditionally." >&2;}
33561 { (exit 1); exit 1; }; }
33564 : ${CONFIG_STATUS=./config.status}
33565 ac_clean_files_save=$ac_clean_files
33566 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33567 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33568 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33569 cat >$CONFIG_STATUS <<_ACEOF
33571 # Generated by $as_me.
33572 # Run this file to recreate the current configuration.
33573 # Compiler output produced by configure, useful for debugging
33574 # configure, is in config.log if it exists.
33577 ac_cs_recheck=false
33579 SHELL=\${CONFIG_SHELL-$SHELL}
33582 cat >>$CONFIG_STATUS <<\_ACEOF
33583 ## --------------------- ##
33584 ## M4sh Initialization. ##
33585 ## --------------------- ##
33587 # Be Bourne compatible
33588 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33591 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33592 # is contrary to our usage. Disable this feature.
33593 alias -g '${1+"$@"}'='"$@"'
33594 setopt NO_GLOB_SUBST
33596 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33598 BIN_SH=xpg4; export BIN_SH # for Tru64
33599 DUALCASE=1; export DUALCASE # for MKS sh
33603 # Avoid depending upon Character Ranges.
33604 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33605 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33606 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33607 as_cr_digits='0123456789'
33608 as_cr_alnum=$as_cr_Letters$as_cr_digits
33610 # The user is always right.
33611 if test "${PATH_SEPARATOR+set}" != set; then
33612 echo "#! /bin/sh" >conf$$.sh
33613 echo "exit 0" >>conf$$.sh
33615 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33623 # Support unset when possible.
33624 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33632 # We need space, tab and new line, in precisely that order. Quoting is
33633 # there to prevent editors from complaining about space-tab.
33634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33635 # splitting by setting IFS to empty value.)
33640 # Find who we are. Look in the path if we contain no directory separator.
33642 *[\\/]* ) as_myself=$0 ;;
33643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33644 for as_dir in $PATH
33647 test -z "$as_dir" && as_dir=.
33648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33654 # We did not find ourselves, most probably we were run as `sh COMMAND'
33655 # in which case we are not to be found in the path.
33656 if test "x$as_myself" = x; then
33659 if test ! -f "$as_myself"; then
33660 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33661 { (exit 1); exit 1; }
33664 # Work around bugs in pre-3.0 UWIN ksh.
33665 for as_var in ENV MAIL MAILPATH
33666 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33674 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33675 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33676 LC_TELEPHONE LC_TIME
33678 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33679 eval $as_var=C; export $as_var
33681 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33685 # Required to use basename.
33686 if expr a : '\(a\)' >/dev/null 2>&1 &&
33687 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33693 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33694 as_basename=basename
33700 # Name of the executable.
33701 as_me=`$as_basename -- "$0" ||
33702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33703 X"$0" : 'X\(//\)$' \| \
33704 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33706 sed '/^.*\/\([^/][^/]*\)\/*$/{
33725 as_lineno_1=$LINENO
33726 as_lineno_2=$LINENO
33727 test "x$as_lineno_1" != "x$as_lineno_2" &&
33728 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33730 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33731 # uniformly replaced by the line number. The first 'sed' inserts a
33732 # line-number line after each line using $LINENO; the second 'sed'
33733 # does the real work. The second script uses 'N' to pair each
33734 # line-number line with the line containing $LINENO, and appends
33735 # trailing '-' during substitution so that $LINENO is not a special
33736 # case at line end.
33737 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33738 # scripts with optimization help from Paolo Bonzini. Blame Lee
33739 # E. McMahon (1931-1989) for sed's syntax. :-)
33751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33754 ' >$as_me.lineno &&
33755 chmod +x "$as_me.lineno" ||
33756 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33757 { (exit 1); exit 1; }; }
33759 # Don't try to exec as it changes $[0], causing all sort of problems
33760 # (the dirname of $[0] is not the place where we might find the
33761 # original and so on. Autoconf is especially sensitive to this).
33762 . "./$as_me.lineno"
33763 # Exit status is that of the last command.
33768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33774 ECHO_C= ECHO_N= ECHO_T=
33775 case `echo -n x` in
33777 case `echo 'x\c'` in
33778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33785 if expr a : '\(a\)' >/dev/null 2>&1 &&
33786 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33792 rm -f conf$$ conf$$.exe conf$$.file
33793 if test -d conf$$.dir; then
33794 rm -f conf$$.dir/conf$$.file
33800 if ln -s conf$$.file conf$$ 2>/dev/null; then
33802 # ... but there are two gotchas:
33803 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33804 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33805 # In both cases, we have to default to `cp -p'.
33806 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33808 elif ln conf$$.file conf$$ 2>/dev/null; then
33813 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33814 rmdir conf$$.dir 2>/dev/null
33816 if mkdir -p . 2>/dev/null; then
33819 test -d ./-p && rmdir ./-p
33823 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33824 # systems may use methods other than mode bits to determine executability.
33825 cat >conf$$.file <<_ASEOF
33829 chmod +x conf$$.file
33830 if test -x conf$$.file >/dev/null 2>&1; then
33831 as_executable_p="test -x"
33837 # Sed expression to map a string onto a valid CPP name.
33838 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33840 # Sed expression to map a string onto a valid variable name.
33841 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33846 # Save the log message, to keep $[0] and so on meaningful, and to
33847 # report actual input values of CONFIG_FILES etc. instead of their
33848 # values after options handling.
33850 This file was extended by llvm $as_me 1.9cvs, which was
33851 generated by GNU Autoconf 2.60. Invocation command line was
33853 CONFIG_FILES = $CONFIG_FILES
33854 CONFIG_HEADERS = $CONFIG_HEADERS
33855 CONFIG_LINKS = $CONFIG_LINKS
33856 CONFIG_COMMANDS = $CONFIG_COMMANDS
33859 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33864 cat >>$CONFIG_STATUS <<_ACEOF
33865 # Files that config.status was made for.
33866 config_files="$ac_config_files"
33867 config_headers="$ac_config_headers"
33868 config_commands="$ac_config_commands"
33872 cat >>$CONFIG_STATUS <<\_ACEOF
33874 \`$as_me' instantiates files from templates according to the
33875 current configuration.
33877 Usage: $0 [OPTIONS] [FILE]...
33879 -h, --help print this help, then exit
33880 -V, --version print version number, then exit
33881 -q, --quiet do not print progress messages
33882 -d, --debug don't remove temporary files
33883 --recheck update $as_me by reconfiguring in the same conditions
33884 --file=FILE[:TEMPLATE]
33885 instantiate the configuration file FILE
33886 --header=FILE[:TEMPLATE]
33887 instantiate the configuration header FILE
33889 Configuration files:
33892 Configuration headers:
33895 Configuration commands:
33898 Report bugs to <bug-autoconf@gnu.org>."
33901 cat >>$CONFIG_STATUS <<_ACEOF
33903 llvm config.status 1.9cvs
33904 configured by $0, generated by GNU Autoconf 2.60,
33905 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33907 Copyright (C) 2006 Free Software Foundation, Inc.
33908 This config.status script is free software; the Free Software Foundation
33909 gives unlimited permission to copy, distribute and modify it."
33916 cat >>$CONFIG_STATUS <<\_ACEOF
33917 # If no file are specified by the user, then we need to provide default
33918 # value. By we need to know if files were specified by the user.
33924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33925 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33936 # Handling of the options.
33937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33939 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33940 echo "$ac_cs_version"; exit ;;
33941 --debug | --debu | --deb | --de | --d | -d )
33943 --file | --fil | --fi | --f )
33945 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33946 ac_need_defaults=false;;
33947 --header | --heade | --head | --hea )
33949 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33950 ac_need_defaults=false;;
33952 # Conflict between --help and --header
33953 { echo "$as_me: error: ambiguous option: $1
33954 Try \`$0 --help' for more information." >&2
33955 { (exit 1); exit 1; }; };;
33956 --help | --hel | -h )
33957 echo "$ac_cs_usage"; exit ;;
33958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33959 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33962 # This is an error.
33963 -*) { echo "$as_me: error: unrecognized option: $1
33964 Try \`$0 --help' for more information." >&2
33965 { (exit 1); exit 1; }; } ;;
33967 *) ac_config_targets="$ac_config_targets $1"
33968 ac_need_defaults=false ;;
33974 ac_configure_extra_args=
33976 if $ac_cs_silent; then
33978 ac_configure_extra_args="$ac_configure_extra_args --silent"
33982 cat >>$CONFIG_STATUS <<_ACEOF
33983 if \$ac_cs_recheck; then
33984 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33985 CONFIG_SHELL=$SHELL
33986 export CONFIG_SHELL
33987 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33991 cat >>$CONFIG_STATUS <<\_ACEOF
33995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33996 ## Running $as_me. ##
34002 cat >>$CONFIG_STATUS <<_ACEOF
34006 llvm_src="${srcdir}"
34010 cat >>$CONFIG_STATUS <<\_ACEOF
34012 # Handling of arguments.
34013 for ac_config_target in $ac_config_targets
34015 case $ac_config_target in
34016 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34017 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34018 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34019 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34020 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34021 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34022 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34023 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34024 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34025 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34026 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34027 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34028 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34029 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34030 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34031 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34032 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34033 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34034 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34035 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34037 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34038 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34039 { (exit 1); exit 1; }; };;
34044 # If the user did not use the arguments to specify the items to instantiate,
34045 # then the envvar interface is used. Set only those that are not.
34046 # We use the long form for the default assignment because of an extremely
34047 # bizarre bug on SunOS 4.1.3.
34048 if $ac_need_defaults; then
34049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34054 # Have a temporary directory for convenience. Make it in the build tree
34055 # simply because there is no reason against having it here, and in addition,
34056 # creating and moving files from /tmp can sometimes cause problems.
34057 # Hook for its removal unless debugging.
34058 # Note that there is a small window in which the directory will not be cleaned:
34059 # after its creation but before its name has been assigned to `$tmp'.
34063 trap 'exit_status=$?
34064 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34066 trap '{ (exit 1); exit 1; }' 1 2 13 15
34068 # Create a (secure) tmp directory for tmp files.
34071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34072 test -n "$tmp" && test -d "$tmp"
34075 tmp=./conf$$-$RANDOM
34076 (umask 077 && mkdir "$tmp")
34079 echo "$me: cannot create a temporary directory in ." >&2
34080 { (exit 1); exit 1; }
34084 # Set up the sed scripts for CONFIG_FILES section.
34087 # No need to generate the scripts if there are no CONFIG_FILES.
34088 # This happens for instance when ./config.status config.h
34089 if test -n "$CONFIG_FILES"; then
34096 for ac_last_try in false false false false false :; do
34097 cat >conf$$subs.sed <<_ACEOF
34098 SHELL!$SHELL$ac_delim
34099 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34100 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34101 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34102 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34103 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34104 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34105 exec_prefix!$exec_prefix$ac_delim
34106 prefix!$prefix$ac_delim
34107 program_transform_name!$program_transform_name$ac_delim
34108 bindir!$bindir$ac_delim
34109 sbindir!$sbindir$ac_delim
34110 libexecdir!$libexecdir$ac_delim
34111 datarootdir!$datarootdir$ac_delim
34112 datadir!$datadir$ac_delim
34113 sysconfdir!$sysconfdir$ac_delim
34114 sharedstatedir!$sharedstatedir$ac_delim
34115 localstatedir!$localstatedir$ac_delim
34116 includedir!$includedir$ac_delim
34117 oldincludedir!$oldincludedir$ac_delim
34118 docdir!$docdir$ac_delim
34119 infodir!$infodir$ac_delim
34120 htmldir!$htmldir$ac_delim
34121 dvidir!$dvidir$ac_delim
34122 pdfdir!$pdfdir$ac_delim
34123 psdir!$psdir$ac_delim
34124 libdir!$libdir$ac_delim
34125 localedir!$localedir$ac_delim
34126 mandir!$mandir$ac_delim
34127 DEFS!$DEFS$ac_delim
34128 ECHO_C!$ECHO_C$ac_delim
34129 ECHO_N!$ECHO_N$ac_delim
34130 ECHO_T!$ECHO_T$ac_delim
34131 LIBS!$LIBS$ac_delim
34132 build_alias!$build_alias$ac_delim
34133 host_alias!$host_alias$ac_delim
34134 target_alias!$target_alias$ac_delim
34135 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34136 subdirs!$subdirs$ac_delim
34137 build!$build$ac_delim
34138 build_cpu!$build_cpu$ac_delim
34139 build_vendor!$build_vendor$ac_delim
34140 build_os!$build_os$ac_delim
34141 host!$host$ac_delim
34142 host_cpu!$host_cpu$ac_delim
34143 host_vendor!$host_vendor$ac_delim
34144 host_os!$host_os$ac_delim
34145 target!$target$ac_delim
34146 target_cpu!$target_cpu$ac_delim
34147 target_vendor!$target_vendor$ac_delim
34148 target_os!$target_os$ac_delim
34150 LINKALL!$LINKALL$ac_delim
34151 NOLINKALL!$NOLINKALL$ac_delim
34152 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34153 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34154 ARCH!$ARCH$ac_delim
34155 ENDIAN!$ENDIAN$ac_delim
34157 CFLAGS!$CFLAGS$ac_delim
34158 LDFLAGS!$LDFLAGS$ac_delim
34159 CPPFLAGS!$CPPFLAGS$ac_delim
34160 ac_ct_CC!$ac_ct_CC$ac_delim
34161 EXEEXT!$EXEEXT$ac_delim
34162 OBJEXT!$OBJEXT$ac_delim
34164 GREP!$GREP$ac_delim
34165 EGREP!$EGREP$ac_delim
34166 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34167 BUILD_CC!$BUILD_CC$ac_delim
34168 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34169 CVSBUILD!$CVSBUILD$ac_delim
34170 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34171 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34172 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34174 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34175 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34176 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34177 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34178 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34179 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34181 CXXFLAGS!$CXXFLAGS$ac_delim
34182 ac_ct_CXX!$ac_ct_CXX$ac_delim
34184 LEXLIB!$LEXLIB$ac_delim
34185 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34186 FLEX!$FLEX$ac_delim
34187 YACC!$YACC$ac_delim
34188 YFLAGS!$YFLAGS$ac_delim
34189 BISON!$BISON$ac_delim
34191 ifGNUmake!$ifGNUmake$ac_delim
34192 LN_S!$LN_S$ac_delim
34197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34199 elif $ac_last_try; then
34200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34201 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34202 { (exit 1); exit 1; }; }
34204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34208 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34209 if test -n "$ac_eof"; then
34210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34211 ac_eof=`expr $ac_eof + 1`
34214 cat >>$CONFIG_STATUS <<_ACEOF
34215 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34219 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34220 s/^/s,@/; s/!/@,|#_!!_#|/
34223 s/'"$ac_delim"'$/,g/; t
34225 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34226 ' >>$CONFIG_STATUS <conf$$subs.sed
34227 rm -f conf$$subs.sed
34228 cat >>$CONFIG_STATUS <<_ACEOF
34234 for ac_last_try in false false false false false :; do
34235 cat >conf$$subs.sed <<_ACEOF
34236 DATE!$DATE$ac_delim
34237 FIND!$FIND$ac_delim
34238 MKDIR!$MKDIR$ac_delim
34240 RANLIB!$RANLIB$ac_delim
34244 BINPWD!$BINPWD$ac_delim
34245 GRAPHVIZ!$GRAPHVIZ$ac_delim
34248 DOTTY!$DOTTY$ac_delim
34249 PERL!$PERL$ac_delim
34250 HAVE_PERL!$HAVE_PERL$ac_delim
34251 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34252 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34253 INSTALL_DATA!$INSTALL_DATA$ac_delim
34254 BZIP2!$BZIP2$ac_delim
34255 DOXYGEN!$DOXYGEN$ac_delim
34256 GROFF!$GROFF$ac_delim
34257 GZIP!$GZIP$ac_delim
34258 POD2HTML!$POD2HTML$ac_delim
34259 POD2MAN!$POD2MAN$ac_delim
34260 RUNTEST!$RUNTEST$ac_delim
34261 TCLSH!$TCLSH$ac_delim
34263 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34264 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34265 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34266 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34267 LIBADD_DL!$LIBADD_DL$ac_delim
34268 ECHO!$ECHO$ac_delim
34270 STRIP!$STRIP$ac_delim
34271 CXXCPP!$CXXCPP$ac_delim
34273 FFLAGS!$FFLAGS$ac_delim
34274 ac_ct_F77!$ac_ct_F77$ac_delim
34275 LIBTOOL!$LIBTOOL$ac_delim
34276 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34277 LLVMGCC!$LLVMGCC$ac_delim
34278 LLVMGXX!$LLVMGXX$ac_delim
34279 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34280 ALLOCA!$ALLOCA$ac_delim
34281 MMAP_FILE!$MMAP_FILE$ac_delim
34282 LLVMCC1!$LLVMCC1$ac_delim
34283 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34284 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34285 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34286 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34287 SHLIBEXT!$SHLIBEXT$ac_delim
34288 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34289 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34290 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34291 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34292 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34293 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34294 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34295 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34296 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34297 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34298 LIBOBJS!$LIBOBJS$ac_delim
34299 LTLIBOBJS!$LTLIBOBJS$ac_delim
34302 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
34304 elif $ac_last_try; then
34305 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34306 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34307 { (exit 1); exit 1; }; }
34309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34313 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34314 if test -n "$ac_eof"; then
34315 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34316 ac_eof=`expr $ac_eof + 1`
34319 cat >>$CONFIG_STATUS <<_ACEOF
34320 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34325 s/^/s,@/; s/!/@,|#_!!_#|/
34328 s/'"$ac_delim"'$/,g/; t
34330 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34331 ' >>$CONFIG_STATUS <conf$$subs.sed
34332 rm -f conf$$subs.sed
34333 cat >>$CONFIG_STATUS <<_ACEOF
34340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34342 # trailing colons and then remove the whole line if VPATH becomes empty
34343 # (actually we leave an empty line to preserve line numbers).
34344 if test "x$srcdir" = x.; then
34345 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34346 s/:*\$(srcdir):*/:/
34347 s/:*\${srcdir}:*/:/
34349 s/^\([^=]*=[ ]*\):*/\1/
34355 cat >>$CONFIG_STATUS <<\_ACEOF
34356 fi # test -n "$CONFIG_FILES"
34359 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34362 :[FHLC]) ac_mode=$ac_tag; continue;;
34364 case $ac_mode$ac_tag in
34366 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34367 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34368 { (exit 1); exit 1; }; };;
34369 :[FH]-) ac_tag=-:-;;
34370 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34387 -) ac_f="$tmp/stdin";;
34388 *) # Look for the file first in the build tree, then in the source tree
34389 # (if the path is not absolute). The absolute path cannot be DOS-style,
34390 # because $ac_f cannot contain `:'.
34394 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34396 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34397 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34398 { (exit 1); exit 1; }; };;
34400 ac_file_inputs="$ac_file_inputs $ac_f"
34403 # Let's still pretend it is `configure' which instantiates (i.e., don't
34404 # use $as_me), people would be surprised to read:
34405 # /* config.h. Generated by config.status. */
34406 configure_input="Generated from "`IFS=:
34407 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34408 if test x"$ac_file" != x-; then
34409 configure_input="$ac_file. $configure_input"
34410 { echo "$as_me:$LINENO: creating $ac_file" >&5
34411 echo "$as_me: creating $ac_file" >&6;}
34415 *:-:* | *:-) cat >"$tmp/stdin";;
34420 ac_dir=`$as_dirname -- "$ac_file" ||
34421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34422 X"$ac_file" : 'X\(//\)[^/]' \| \
34423 X"$ac_file" : 'X\(//\)$' \| \
34424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34430 /^X\(\/\/\)[^/].*/{
34445 -*) as_dir=./$as_dir;;
34447 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34451 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34452 *) as_qdir=$as_dir;;
34454 as_dirs="'$as_qdir' $as_dirs"
34455 as_dir=`$as_dirname -- "$as_dir" ||
34456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34457 X"$as_dir" : 'X\(//\)[^/]' \| \
34458 X"$as_dir" : 'X\(//\)$' \| \
34459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34465 /^X\(\/\/\)[^/].*/{
34478 test -d "$as_dir" && break
34480 test -z "$as_dirs" || eval "mkdir $as_dirs"
34481 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34482 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34483 { (exit 1); exit 1; }; }; }
34487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34490 # A ".." for each directory in $ac_dir_suffix.
34491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34492 case $ac_top_builddir_sub in
34493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34497 ac_abs_top_builddir=$ac_pwd
34498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34499 # for backward compatibility:
34500 ac_top_builddir=$ac_top_build_prefix
34503 .) # We are building in place.
34505 ac_top_srcdir=$ac_top_builddir_sub
34506 ac_abs_top_srcdir=$ac_pwd ;;
34507 [\\/]* | ?:[\\/]* ) # Absolute name.
34508 ac_srcdir=$srcdir$ac_dir_suffix;
34509 ac_top_srcdir=$srcdir
34510 ac_abs_top_srcdir=$srcdir ;;
34511 *) # Relative name.
34512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34513 ac_top_srcdir=$ac_top_build_prefix$srcdir
34514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34531 cat >>$CONFIG_STATUS <<\_ACEOF
34532 # If the template does not know about datarootdir, expand it.
34533 # FIXME: This hack should be removed a few years after 2.60.
34534 ac_datarootdir_hack=; ac_datarootdir_seen=
34536 case `sed -n '/datarootdir/ {
34545 ' $ac_file_inputs` in
34546 *datarootdir*) ac_datarootdir_seen=yes;;
34547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34548 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34549 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34551 cat >>$CONFIG_STATUS <<_ACEOF
34552 ac_datarootdir_hack='
34553 s&@datadir@&$datadir&g
34554 s&@docdir@&$docdir&g
34555 s&@infodir@&$infodir&g
34556 s&@localedir@&$localedir&g
34557 s&@mandir@&$mandir&g
34558 s&\\\${datarootdir}&$datarootdir&g' ;;
34562 # Neutralize VPATH when `$srcdir' = `.'.
34563 # Shell code in configure.ac might set extrasub.
34564 # FIXME: do we really want to maintain this feature?
34565 cat >>$CONFIG_STATUS <<_ACEOF
34569 cat >>$CONFIG_STATUS <<\_ACEOF
34571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34572 s&@configure_input@&$configure_input&;t t
34573 s&@top_builddir@&$ac_top_builddir_sub&;t t
34574 s&@srcdir@&$ac_srcdir&;t t
34575 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34576 s&@top_srcdir@&$ac_top_srcdir&;t t
34577 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34578 s&@builddir@&$ac_builddir&;t t
34579 s&@abs_builddir@&$ac_abs_builddir&;t t
34580 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34581 s&@INSTALL@&$ac_INSTALL&;t t
34582 $ac_datarootdir_hack
34583 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34586 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34588 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34589 which seems to be undefined. Please make sure it is defined." >&5
34590 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34591 which seems to be undefined. Please make sure it is defined." >&2;}
34595 -) cat "$tmp/out"; rm -f "$tmp/out";;
34596 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34605 # Transform confdefs.h into a sed script `conftest.defines', that
34606 # substitutes the proper values into config.h.in to produce config.h.
34607 rm -f conftest.defines conftest.tail
34608 # First, append a space to every undef/define line, to ease matching.
34609 echo 's/$/ /' >conftest.defines
34610 # Then, protect against being on the right side of a sed subst, or in
34611 # an unquoted here document, in config.status. If some macros were
34612 # called several times there might be several #defines for the same
34613 # symbol, which is useless. But do not sort them, since the last
34614 # AC_DEFINE must be honored.
34615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34616 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34617 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34618 # PARAMS is the parameter list in the macro definition--in most cases, it's
34619 # just an empty string.
34620 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34621 ac_dB='\\)[ (].*,\\1define\\2'
34629 s/^[ ]*#[ ]*define[ ][ ]*//
34634 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34635 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34636 ' >>conftest.defines
34638 # Remove the space that was appended to ease matching.
34639 # Then replace #undef with comments. This is necessary, for
34640 # example, in the case of _POSIX_SOURCE, which is predefined and required
34641 # on some systems where configure will not decide to define it.
34642 # (The regexp can be short, since the line contains either #define or #undef.)
34644 s,^[ #]*u.*,/* & */,' >>conftest.defines
34646 # Break up conftest.defines:
34647 ac_max_sed_lines=50
34649 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34650 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34651 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34653 ac_in='$ac_file_inputs'
34654 ac_out='"$tmp/out1"'
34655 ac_nxt='"$tmp/out2"'
34659 # Write a here document:
34660 cat >>$CONFIG_STATUS <<_ACEOF
34661 # First, check the format of the line:
34662 cat >"\$tmp/defines.sed" <<\\CEOF
34663 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34664 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34668 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34670 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34671 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34672 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34673 grep . conftest.tail >/dev/null || break
34674 rm -f conftest.defines
34675 mv conftest.tail conftest.defines
34677 rm -f conftest.defines conftest.tail
34679 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34680 cat >>$CONFIG_STATUS <<\_ACEOF
34681 if test x"$ac_file" != x-; then
34682 echo "/* $configure_input */" >"$tmp/config.h"
34683 cat "$ac_result" >>"$tmp/config.h"
34684 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34685 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34686 echo "$as_me: $ac_file is unchanged" >&6;}
34689 mv "$tmp/config.h" $ac_file
34692 echo "/* $configure_input */"
34698 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34699 echo "$as_me: executing $ac_file commands" >&6;}
34704 case $ac_file$ac_mode in
34705 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34706 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34707 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34708 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34709 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34710 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34711 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34712 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34713 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34714 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34715 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34716 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34717 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34718 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34719 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34720 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34721 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34722 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34723 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34724 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34730 { (exit 0); exit 0; }
34732 chmod +x $CONFIG_STATUS
34733 ac_clean_files=$ac_clean_files_save
34736 # configure is writing to config.log, and then calls config.status.
34737 # config.status does its own redirection, appending to config.log.
34738 # Unfortunately, on DOS this fails, as config.log is still kept open
34739 # by configure, so config.status won't be able to write to it; its
34740 # output is simply discarded. So we exec the FD to /dev/null,
34741 # effectively closing config.log, so it can be properly (re)opened and
34742 # appended to by config.status. When coming back to configure, we
34743 # need to make the FD available again.
34744 if test "$no_create" != yes; then
34746 ac_config_status_args=
34747 test "$silent" = yes &&
34748 ac_config_status_args="$ac_config_status_args --quiet"
34750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34753 # would make configure fail if this is the last instruction.
34754 $ac_cs_success || { (exit 1); exit 1; }
34758 # CONFIG_SUBDIRS section.
34760 if test "$no_recursion" != yes; then
34762 # Remove --cache-file and --srcdir arguments so they do not pile up.
34763 ac_sub_configure_args=
34765 eval "set x $ac_configure_args"
34769 if test -n "$ac_prev"; then
34774 -cache-file | --cache-file | --cache-fil | --cache-fi \
34775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34776 ac_prev=cache_file ;;
34777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34781 --config-cache | -C)
34783 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34785 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34787 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34789 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34793 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34795 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34799 # Always prepend --prefix to ensure using the same prefix
34800 # in subdir configurations.
34801 ac_arg="--prefix=$prefix"
34803 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34805 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34808 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34810 # Do not complain, so a configure script can configure whichever
34811 # parts of a large source tree are present.
34812 test -d "$srcdir/$ac_dir" || continue
34814 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34815 echo "$as_me:$LINENO: $ac_msg" >&5
34819 -*) as_dir=./$as_dir;;
34821 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34825 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34826 *) as_qdir=$as_dir;;
34828 as_dirs="'$as_qdir' $as_dirs"
34829 as_dir=`$as_dirname -- "$as_dir" ||
34830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34831 X"$as_dir" : 'X\(//\)[^/]' \| \
34832 X"$as_dir" : 'X\(//\)$' \| \
34833 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34839 /^X\(\/\/\)[^/].*/{
34852 test -d "$as_dir" && break
34854 test -z "$as_dirs" || eval "mkdir $as_dirs"
34855 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34856 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34857 { (exit 1); exit 1; }; }; }
34861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34864 # A ".." for each directory in $ac_dir_suffix.
34865 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34866 case $ac_top_builddir_sub in
34867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34871 ac_abs_top_builddir=$ac_pwd
34872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34873 # for backward compatibility:
34874 ac_top_builddir=$ac_top_build_prefix
34877 .) # We are building in place.
34879 ac_top_srcdir=$ac_top_builddir_sub
34880 ac_abs_top_srcdir=$ac_pwd ;;
34881 [\\/]* | ?:[\\/]* ) # Absolute name.
34882 ac_srcdir=$srcdir$ac_dir_suffix;
34883 ac_top_srcdir=$srcdir
34884 ac_abs_top_srcdir=$srcdir ;;
34885 *) # Relative name.
34886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34887 ac_top_srcdir=$ac_top_build_prefix$srcdir
34888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34895 # Check for guested configure; otherwise get Cygnus style configure.
34896 if test -f "$ac_srcdir/configure.gnu"; then
34897 ac_sub_configure=$ac_srcdir/configure.gnu
34898 elif test -f "$ac_srcdir/configure"; then
34899 ac_sub_configure=$ac_srcdir/configure
34900 elif test -f "$ac_srcdir/configure.in"; then
34901 # This should be Cygnus configure.
34902 ac_sub_configure=$ac_aux_dir/configure
34904 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34905 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34909 # The recursion is here.
34910 if test -n "$ac_sub_configure"; then
34911 # Make the cache file name correct relative to the subdirectory.
34912 case $cache_file in
34913 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34914 *) # Relative name.
34915 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34918 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34919 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34920 # The eval makes quoting arguments work.
34921 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34922 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34923 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34924 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34925 { (exit 1); exit 1; }; }
34933 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
34934 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34935 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
34936 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&5
34937 echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&2;}
34938 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34939 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34940 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34941 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34942 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34943 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}