2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.0cvs'
719 PACKAGE_STRING='llvm 2.0cvs'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
885 CONVENIENCE_LTDL_TRUE
886 CONVENIENCE_LTDL_FALSE
922 ac_precious_vars='build_alias
938 ac_subdirs_all='projects/sample
946 projects/llvm-poolalloc
947 projects/llvm-kernel'
949 # Initialize some variables set by options.
951 ac_init_version=false
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name=s,x,x,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986 infodir='${datarootdir}/info'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1037 -datadir | --datadir | --datadi | --datad)
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1049 -disable-* | --disable-*)
1050 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1053 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1056 eval enable_$ac_feature=no ;;
1058 -docdir | --docdir | --docdi | --doc | --do)
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
1068 -enable-* | --enable-*)
1069 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1075 eval enable_$ac_feature=\$ac_optarg ;;
1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079 | --exec | --exe | --ex)
1080 ac_prev=exec_prefix ;;
1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083 | --exec=* | --exe=* | --ex=*)
1084 exec_prefix=$ac_optarg ;;
1086 -gas | --gas | --ga | --g)
1087 # Obsolete; use --with-gas.
1090 -help | --help | --hel | --he | -h)
1091 ac_init_help=long ;;
1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093 ac_init_help=recursive ;;
1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095 ac_init_help=short ;;
1097 -host | --host | --hos | --ho)
1098 ac_prev=host_alias ;;
1099 -host=* | --host=* | --hos=* | --ho=*)
1100 host_alias=$ac_optarg ;;
1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106 htmldir=$ac_optarg ;;
1108 -includedir | --includedir | --includedi | --included | --include \
1109 | --includ | --inclu | --incl | --inc)
1110 ac_prev=includedir ;;
1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112 | --includ=* | --inclu=* | --incl=* | --inc=*)
1113 includedir=$ac_optarg ;;
1115 -infodir | --infodir | --infodi | --infod | --info | --inf)
1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1118 infodir=$ac_optarg ;;
1120 -libdir | --libdir | --libdi | --libd)
1122 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1123 libdir=$ac_optarg ;;
1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126 | --libexe | --libex | --libe)
1127 ac_prev=libexecdir ;;
1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129 | --libexe=* | --libex=* | --libe=*)
1130 libexecdir=$ac_optarg ;;
1132 -localedir | --localedir | --localedi | --localed | --locale)
1133 ac_prev=localedir ;;
1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135 localedir=$ac_optarg ;;
1137 -localstatedir | --localstatedir | --localstatedi | --localstated \
1138 | --localstate | --localstat | --localsta | --localst | --locals)
1139 ac_prev=localstatedir ;;
1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1142 localstatedir=$ac_optarg ;;
1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1147 mandir=$ac_optarg ;;
1149 -nfp | --nfp | --nf)
1150 # Obsolete; use --without-fp.
1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1154 | --no-cr | --no-c | -n)
1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163 | --oldin | --oldi | --old | --ol | --o)
1164 ac_prev=oldincludedir ;;
1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1168 oldincludedir=$ac_optarg ;;
1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1173 prefix=$ac_optarg ;;
1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176 | --program-pre | --program-pr | --program-p)
1177 ac_prev=program_prefix ;;
1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1180 program_prefix=$ac_optarg ;;
1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183 | --program-suf | --program-su | --program-s)
1184 ac_prev=program_suffix ;;
1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1187 program_suffix=$ac_optarg ;;
1189 -program-transform-name | --program-transform-name \
1190 | --program-transform-nam | --program-transform-na \
1191 | --program-transform-n | --program-transform- \
1192 | --program-transform | --program-transfor \
1193 | --program-transfo | --program-transf \
1194 | --program-trans | --program-tran \
1195 | --progr-tra | --program-tr | --program-t)
1196 ac_prev=program_transform_name ;;
1197 -program-transform-name=* | --program-transform-name=* \
1198 | --program-transform-nam=* | --program-transform-na=* \
1199 | --program-transform-n=* | --program-transform-=* \
1200 | --program-transform=* | --program-transfor=* \
1201 | --program-transfo=* | --program-transf=* \
1202 | --program-trans=* | --program-tran=* \
1203 | --progr-tra=* | --program-tr=* | --program-t=*)
1204 program_transform_name=$ac_optarg ;;
1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209 pdfdir=$ac_optarg ;;
1211 -psdir | --psdir | --psdi | --psd | --ps)
1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224 sbindir=$ac_optarg ;;
1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228 | --sharedst | --shareds | --shared | --share | --shar \
1230 ac_prev=sharedstatedir ;;
1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235 sharedstatedir=$ac_optarg ;;
1237 -site | --site | --sit)
1239 -site=* | --site=* | --sit=*)
1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1245 srcdir=$ac_optarg ;;
1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248 | --syscon | --sysco | --sysc | --sys | --sy)
1249 ac_prev=sysconfdir ;;
1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1252 sysconfdir=$ac_optarg ;;
1254 -target | --target | --targe | --targ | --tar | --ta | --t)
1255 ac_prev=target_alias ;;
1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1257 target_alias=$ac_optarg ;;
1259 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262 -version | --version | --versio | --versi | --vers | -V)
1263 ac_init_version=: ;;
1266 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1269 { echo "$as_me: error: invalid package name: $ac_package" >&2
1270 { (exit 1); exit 1; }; }
1271 ac_package=`echo $ac_package| sed 's/-/_/g'`
1272 eval with_$ac_package=\$ac_optarg ;;
1274 -without-* | --without-*)
1275 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid package name: $ac_package" >&2
1279 { (exit 1); exit 1; }; }
1280 ac_package=`echo $ac_package | sed 's/-/_/g'`
1281 eval with_$ac_package=no ;;
1284 # Obsolete; use --with-x.
1287 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288 | --x-incl | --x-inc | --x-in | --x-i)
1289 ac_prev=x_includes ;;
1290 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292 x_includes=$ac_optarg ;;
1294 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296 ac_prev=x_libraries ;;
1297 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299 x_libraries=$ac_optarg ;;
1301 -*) { echo "$as_me: error: unrecognized option: $ac_option
1302 Try \`$0 --help' for more information." >&2
1303 { (exit 1); exit 1; }; }
1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1310 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1311 { (exit 1); exit 1; }; }
1312 eval $ac_envvar=\$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1326 if test -n "$ac_prev"; then
1327 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328 { echo "$as_me: error: missing argument to $ac_option" >&2
1329 { (exit 1); exit 1; }; }
1332 # Be sure to have absolute directory names.
1333 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir
1338 eval ac_val=\$$ac_var
1340 [\\/$]* | ?:[\\/]* ) continue;;
1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1344 { (exit 1); exit 1; }; }
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1352 target=$target_alias
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1359 If a cross compiler is detected then cross compile mode will be used." >&2
1360 elif test "x$build_alias" != "x$host_alias"; then
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368 test "$silent" = yes && exec 6>/dev/null
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374 { echo "$as_me: error: Working directory cannot be determined" >&2
1375 { (exit 1); exit 1; }; }
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 { echo "$as_me: error: pwd does not report name of working directory" >&2
1378 { (exit 1); exit 1; }; }
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$0" ||
1386 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$0" : 'X\(//\)[^/]' \| \
1388 X"$0" : 'X\(//\)$' \| \
1389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1413 ac_srcdir_defaulted=no
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1418 { (exit 1); exit 1; }; }
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1423 { (exit 1); exit 1; }; }
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 for ac_var in $ac_precious_vars; do
1436 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_env_${ac_var}_value=\$${ac_var}
1438 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 # Report the --help message.
1445 if test "$ac_init_help" = "long"; then
1446 # Omit some internal or obsolete options to make the list less imposing.
1447 # This message is too long to be a string in the A/UX 3.1 sh.
1449 \`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1451 Usage: $0 [OPTION]... [VAR=VALUE]...
1453 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454 VAR=VALUE. See below for descriptions of some of the useful variables.
1456 Defaults for the options are specified in brackets.
1459 -h, --help display this help and exit
1460 --help=short display options specific to this package
1461 --help=recursive display the short help of all the included packages
1462 -V, --version display version information and exit
1463 -q, --quiet, --silent do not print \`checking...' messages
1464 --cache-file=FILE cache test results in FILE [disabled]
1465 -C, --config-cache alias for \`--cache-file=config.cache'
1466 -n, --no-create do not create output files
1467 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469 Installation directories:
1470 --prefix=PREFIX install architecture-independent files in PREFIX
1471 [$ac_default_prefix]
1472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1475 By default, \`make install' will install all the files in
1476 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1477 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1478 for instance \`--prefix=\$HOME'.
1480 For better control, use the options below.
1482 Fine tuning of the installation directories:
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
1486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --libdir=DIR object code libraries [EPREFIX/lib]
1490 --includedir=DIR C header files [PREFIX/include]
1491 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1492 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1493 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1494 --infodir=DIR info documentation [DATAROOTDIR/info]
1495 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1496 --mandir=DIR man documentation [DATAROOTDIR/man]
1497 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1498 --htmldir=DIR html documentation [DOCDIR]
1499 --dvidir=DIR dvi documentation [DOCDIR]
1500 --pdfdir=DIR pdf documentation [DOCDIR]
1501 --psdir=DIR ps documentation [DOCDIR]
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 --target=TARGET configure for building compilers for TARGET [HOST]
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1524 --enable-debug-runtime
1525 --enable-jit Enable Just In Time Compiling (default is YES)
1526 --enable-doxygen Build doxygen documentation (default is NO)
1527 --enable-threads Use threads if available (default is YES)
1528 --enable-targets Build specific host targets:
1529 all,host-only,{target-name} (default=all)
1530 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1532 --enable-ltdl-install install libltdl
1533 --enable-shared[=PKGS] build shared libraries
1534 [default=enable_shared_default]
1535 --enable-static[=PKGS] build static libraries
1536 [default=enable_static_default]
1537 --enable-fast-install[=PKGS]
1538 optimize for fast installation
1539 [default=enable_Fast_install_default]
1540 --disable-libtool-lock avoid locking (might break parallel builds)
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1545 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1547 --with-extra-options Specify addtional options to compile LLVM with
1548 --with-tclinclude directory where tcl headers are
1549 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1550 --with-pic try to use only PIC/non-PIC objects [default=use
1552 --with-tags[=TAGS] include additional configurations [automatic]
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1562 CXX C++ compiler command
1563 CXXFLAGS C++ compiler flags
1564 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1565 the first program found out of: `bison -y', `byacc', `yacc'.
1566 YFLAGS The list of arguments that will be passed by default to $YACC.
1567 This script will default YFLAGS to the empty string to avoid a
1568 default value of `-d' given by some make applications.
1569 CXXCPP C++ preprocessor
1570 F77 Fortran 77 compiler command
1571 FFLAGS Fortran 77 compiler flags
1573 Use these variables to override the choices made by `configure' or to help
1574 it to find libraries and programs with nonstandard names/locations.
1576 Report bugs to <llvmbugs@cs.uiuc.edu>.
1581 if test "$ac_init_help" = "recursive"; then
1582 # If there are subdirs, report their specific --help.
1583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584 test -d "$ac_dir" || continue
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1604 .) # We are building in place.
1606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
1609 ac_srcdir=$srcdir$ac_dir_suffix;
1610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1628 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1637 llvm configure 2.0cvs
1638 generated by GNU Autoconf 2.60
1640 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1641 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1645 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1653 It was created by llvm $as_me 2.0cvs, which was
1654 generated by GNU Autoconf 2.60. Invocation command line was
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1675 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1676 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1679 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1680 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1681 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 test -z "$as_dir" && as_dir=.
1690 echo "PATH: $as_dir"
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_must_keep_next=false
1720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722 | -silent | --silent | --silen | --sile | --sil)
1725 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731 if test $ac_must_keep_next = true; then
1732 ac_must_keep_next=false # Got value, back to normal.
1735 *=* | --config-cache | -C | -disable-* | --disable-* \
1736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738 | -with-* | --with-* | -without-* | --without-* | --x)
1739 case "$ac_configure_args0 " in
1740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 -* ) ac_must_keep_next=true ;;
1746 ac_configure_args="$ac_configure_args '$ac_arg'"
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log. We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760 # Save into config.log some information that might help in debugging.
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1770 # The following way of writing the cache mishandles newlines in values,
1772 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773 eval ac_val=\$$ac_var
1777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781 _ | IFS | as_nl) ;; #(
1782 *) $as_unset $ac_var ;;
1787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788 *${as_nl}ac_space=\ *)
1790 "s/'\''/'\''\\\\'\'''\''/g;
1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1807 for ac_var in $ac_subst_vars
1809 eval ac_val=\$$ac_var
1811 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 echo "$ac_var='\''$ac_val'\''"
1817 if test -n "$ac_subst_files"; then
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1824 for ac_var in $ac_subst_files
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 echo "$ac_var='\''$ac_val'\''"
1835 if test -s confdefs.h; then
1845 test "$ac_signal" != 0 &&
1846 echo "$as_me: caught signal $ac_signal"
1847 echo "$as_me: exit $exit_status"
1849 rm -f core *.core core.conftest.* &&
1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853 for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1861 # Predefined preprocessor variables.
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1895 set x "$ac_default_prefix/share/config.site" \
1896 "$ac_default_prefix/etc/config.site"
1901 if test -r "$ac_site_file"; then
1902 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1909 if test -r "$cache_file"; then
1910 # Some versions of bash will fail to source /dev/null (special
1911 # files actually), so we avoid doing that.
1912 if test -f "$cache_file"; then
1913 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917 *) . "./$cache_file";;
1921 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1926 # Check that the precious variables saved in the cache have kept the same
1928 ac_cache_corrupted=false
1929 for ac_var in $ac_precious_vars; do
1930 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931 eval ac_new_set=\$ac_env_${ac_var}_set
1932 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933 eval ac_new_val=\$ac_env_${ac_var}_value
1934 case $ac_old_set,$ac_new_set in
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1940 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1945 if test "x$ac_old_val" != "x$ac_new_val"; then
1946 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1947 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1948 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1949 echo "$as_me: former value: $ac_old_val" >&2;}
1950 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1951 echo "$as_me: current value: $ac_new_val" >&2;}
1952 ac_cache_corrupted=:
1955 # Pass precious variables to config.status.
1956 if test "$ac_new_set" = set; then
1958 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 *) ac_arg=$ac_var=$ac_new_val ;;
1961 case " $ac_configure_args " in
1962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1963 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967 if $ac_cache_corrupted; then
1968 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1969 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1970 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1971 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1972 { (exit 1); exit 1; }; }
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2016 for ac_dir in autoconf "$srcdir"/autoconf; do
2017 if test -f "$ac_dir/install-sh"; then
2019 ac_install_sh="$ac_aux_dir/install-sh -c"
2021 elif test -f "$ac_dir/install.sh"; then
2023 ac_install_sh="$ac_aux_dir/install.sh -c"
2025 elif test -f "$ac_dir/shtool"; then
2027 ac_install_sh="$ac_aux_dir/shtool install -c"
2031 if test -z "$ac_aux_dir"; then
2032 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2033 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2034 { (exit 1); exit 1; }; }
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2047 if test ${srcdir} != "." ; then
2048 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2049 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2050 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2051 { (exit 1); exit 1; }; }
2055 for i in `ls ${srcdir}/projects`
2057 if test -d ${srcdir}/projects/${i} ; then
2060 "sample") subdirs="$subdirs projects/sample"
2062 "Stacker") subdirs="$subdirs projects/Stacker"
2064 "privbracket") subdirs="$subdirs projects/privbracket"
2066 "llvm-test") subdirs="$subdirs projects/llvm-test"
2068 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
2070 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
2072 "llvm-java") subdirs="$subdirs projects/llvm-java"
2074 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
2076 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2078 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
2081 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2082 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2089 # Make sure we can run config.sub.
2090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2091 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: checking build system type" >&5
2096 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2097 if test "${ac_cv_build+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_build_alias=$build_alias
2101 test "x$ac_build_alias" = x &&
2102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2103 test "x$ac_build_alias" = x &&
2104 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106 { (exit 1); exit 1; }; }
2107 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114 echo "${ECHO_T}$ac_cv_build" >&6; }
2115 case $ac_cv_build in
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118 echo "$as_me: error: invalid value of canonical build" >&2;}
2119 { (exit 1); exit 1; }; };;
2122 ac_save_IFS=$IFS; IFS='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2135 { echo "$as_me:$LINENO: checking host system type" >&5
2136 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_host+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test "x$host_alias" = x; then
2141 ac_cv_host=$ac_cv_build
2143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151 echo "${ECHO_T}$ac_cv_host" >&6; }
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155 echo "$as_me: error: invalid value of canonical host" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS=$IFS; IFS='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2172 { echo "$as_me:$LINENO: checking target system type" >&5
2173 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_target+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test "x$target_alias" = x; then
2178 ac_cv_target=$ac_cv_host
2180 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2187 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2188 echo "${ECHO_T}$ac_cv_target" >&6; }
2189 case $ac_cv_target in
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2192 echo "$as_me: error: invalid value of canonical target" >&2;}
2193 { (exit 1); exit 1; }; };;
2195 target=$ac_cv_target
2196 ac_save_IFS=$IFS; IFS='-'
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2206 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2209 # The aliases save the names the user supplied, while $host etc.
2210 # will get canonicalized.
2211 test -n "$target_alias" &&
2212 test "$program_prefix$program_suffix$program_transform_name" = \
2214 program_prefix=${target_alias}-
2216 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2217 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2218 if test "${llvm_cv_os_type+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225 llvm_cv_os_type="AIX"
2226 llvm_cv_platform_type="Unix" ;;
2228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230 llvm_cv_os_type="IRIX"
2231 llvm_cv_platform_type="Unix" ;;
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="Cygwin"
2236 llvm_cv_platform_type="Unix" ;;
2238 llvm_cv_link_all_option="-Wl,-all_load"
2239 llvm_cv_link_all_option="-Wl,-noall_load"
2240 llvm_cv_os_type="Darwin"
2241 llvm_cv_platform_type="Unix" ;;
2243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245 llvm_cv_os_type="FreeBSD"
2246 llvm_cv_platform_type="Unix" ;;
2248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250 llvm_cv_os_type="OpenBSD"
2251 llvm_cv_platform_type="Unix" ;;
2253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255 llvm_cv_os_type="HP-UX"
2256 llvm_cv_platform_type="Unix" ;;
2258 llvm_cv_link_all_option="-Wl,--whole-archive"
2259 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2260 llvm_cv_os_type="Interix"
2261 llvm_cv_platform_type="Unix" ;;
2263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265 llvm_cv_os_type="Linux"
2266 llvm_cv_platform_type="Unix" ;;
2268 llvm_cv_link_all_option="-Wl,-z,allextract"
2269 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2270 llvm_cv_os_type="SunOS"
2271 llvm_cv_platform_type="Unix" ;;
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="Win32"
2276 llvm_cv_platform_type="Win32" ;;
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="MingW"
2281 llvm_cv_platform_type="Win32" ;;
2283 llvm_cv_link_all_option=""
2284 llvm_cv_no_link_all_option=""
2285 llvm_cv_os_type="Unknown"
2286 llvm_cv_platform_type="Unknown" ;;
2289 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2290 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2292 if test "$llvm_cv_os_type" = "Unknown" ; then
2293 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2294 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2295 { (exit 1); exit 1; }; }
2301 LINKALL=$llvm_cv_link_all_option
2303 NOLINKALL=$llvm_cv_no_link_all_option
2306 case $llvm_cv_platform_type in
2309 cat >>confdefs.h <<\_ACEOF
2310 #define LLVM_ON_UNIX 1
2320 cat >>confdefs.h <<\_ACEOF
2321 #define LLVM_ON_WIN32 1
2331 { echo "$as_me:$LINENO: checking target architecture" >&5
2332 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2333 if test "${llvm_cv_target_arch+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 i?86-*) llvm_cv_target_arch="x86" ;;
2338 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2339 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2340 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2341 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2342 ia64-*) llvm_cv_target_arch="IA64" ;;
2343 *) llvm_cv_target_arch="Unknown" ;;
2346 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2347 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2349 if test "$llvm_cv_target_arch" = "Unknown" ; then
2350 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2351 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2354 ARCH=$llvm_cv_target_arch
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 if test -n "$CC"; then
2392 { echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6; }
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2401 if test -z "$ac_cv_prog_CC"; then
2403 # Extract the first word of "gcc", so it can be a program name with args.
2404 set dummy gcc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$ac_ct_CC"; then
2411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_ac_ct_CC="gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433 echo "${ECHO_T}$ac_ct_CC" >&6; }
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2439 if test "x$ac_ct_CC" = x; then
2442 case $cross_compiling:$ac_tool_warned in
2444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&5
2447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet. If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2450 ac_tool_warned=yes ;;
2458 if test -z "$CC"; then
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}cc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_CC="${ac_tool_prefix}cc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test -n "$CC"; then
2489 { echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6; }
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2499 if test -z "$CC"; then
2500 # Extract the first word of "cc", so it can be a program name with args.
2501 set dummy cc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2519 ac_prog_rejected=yes
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 if test $ac_prog_rejected = yes; then
2531 # We found a bogon in the path, so make sure we never use it.
2532 set dummy $ac_cv_prog_CC
2534 if test $# != 0; then
2535 # We chose a different compiler from the bogus one.
2536 # However, it has the same basename, so the bogon will be chosen
2537 # first if we set CC to just the basename; use the full file name.
2539 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2545 if test -n "$CC"; then
2546 { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2549 { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2555 if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
2557 for ac_prog in cl.exe
2559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 if test -n "$CC"; then
2588 { echo "$as_me:$LINENO: result: $CC" >&5
2589 echo "${ECHO_T}$CC" >&6; }
2591 { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2596 test -n "$CC" && break
2599 if test -z "$CC"; then
2601 for ac_prog in cl.exe
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 if test -n "$ac_ct_CC"; then
2611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_ac_ct_CC="$ac_prog"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2633 echo "${ECHO_T}$ac_ct_CC" >&6; }
2635 { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2640 test -n "$ac_ct_CC" && break
2643 if test "x$ac_ct_CC" = x; then
2646 case $cross_compiling:$ac_tool_warned in
2648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&5
2651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2654 ac_tool_warned=yes ;;
2663 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2669 # Provide some information about the compiler.
2670 echo "$as_me:$LINENO: checking for C compiler version" >&5
2671 ac_compiler=`set X $ac_compile; echo $2`
2672 { (ac_try="$ac_compiler --version >&5"
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler --version >&5") 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (ac_try="$ac_compiler -v >&5"
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compiler -v >&5") 2>&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2692 { (ac_try="$ac_compiler -V >&5"
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compiler -V >&5") 2>&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }
2703 cat >conftest.$ac_ext <<_ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2718 ac_clean_files_save=$ac_clean_files
2719 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2720 # Try to create an executable without -o first, disregard a.out.
2721 # It will help us diagnose broken compilers, and finding out an intuition
2723 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2725 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2727 # List of possible output files, starting from the most likely.
2728 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2729 # only as a last resort. b.out is created by i960 compilers.
2730 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2732 # The IRIX 6 linker writes into existing files which may not be
2733 # executable, retaining their permissions. Remove them first so a
2734 # subsequent execution test works.
2736 for ac_file in $ac_files
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2745 if { (ac_try="$ac_link_default"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_link_default") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; then
2755 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2756 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2757 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2758 # so that the user can short-circuit this test for compilers unknown to
2760 for ac_file in $ac_files
2762 test -f "$ac_file" || continue
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2767 # We found the default executable, but exeext='' is most
2771 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2773 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 # We set ac_cv_exeext here because the later test for it is not
2776 # safe: cross compilers may not add the suffix if given an `-o'
2777 # argument, so we may need to know it at that point already.
2778 # Even if this section looks crufty: it has the advantage of
2785 test "$ac_cv_exeext" = no && ac_cv_exeext=
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: C compiler cannot create executables
2794 See \`config.log' for more details." >&2;}
2795 { (exit 77); exit 77; }; }
2798 ac_exeext=$ac_cv_exeext
2799 { echo "$as_me:$LINENO: result: $ac_file" >&5
2800 echo "${ECHO_T}$ac_file" >&6; }
2802 # Check that the compiler produces executables we can run. If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2805 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2806 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2807 # If not cross compiling, check that we can run a simple program.
2808 if test "$cross_compiling" != yes; then
2809 if { ac_try='./$ac_file'
2810 { (case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_try") 2>&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2821 if test "$cross_compiling" = maybe; then
2824 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: cannot run C compiled programs.
2828 If you meant to cross compile, use \`--host'.
2829 See \`config.log' for more details." >&2;}
2830 { (exit 1); exit 1; }; }
2834 { echo "$as_me:$LINENO: result: yes" >&5
2835 echo "${ECHO_T}yes" >&6; }
2837 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2838 ac_clean_files=$ac_clean_files_save
2839 # Check that the compiler produces executables we can run. If not, either
2840 # the compiler is broken, or we cross compile.
2841 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2842 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2843 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2844 echo "${ECHO_T}$cross_compiling" >&6; }
2846 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2847 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2848 if { (ac_try="$ac_link"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_link") 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; then
2858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2860 # work properly (i.e., refer to `conftest.exe'), while it won't with
2862 for ac_file in conftest.exe conftest conftest.*; do
2863 test -f "$ac_file" || continue
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2879 rm -f conftest$ac_cv_exeext
2880 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2881 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2883 rm -f conftest.$ac_ext
2884 EXEEXT=$ac_cv_exeext
2886 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2887 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2888 if test "${ac_cv_objext+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 cat >conftest.$ac_ext <<_ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2906 rm -f conftest.o conftest.obj
2907 if { (ac_try="$ac_compile"
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_compile") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
2917 for ac_file in conftest.o conftest.obj conftest.*; do
2918 test -f "$ac_file" || continue;
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2921 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&2;}
2933 { (exit 1); exit 1; }; }
2936 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2938 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2939 echo "${ECHO_T}$ac_cv_objext" >&6; }
2940 OBJEXT=$ac_cv_objext
2942 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2943 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2944 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 cat >conftest.$ac_ext <<_ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2965 rm -f conftest.$ac_objext
2966 if { (ac_try="$ac_compile"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compile") 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2980 { (case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_try") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest.$ac_objext'
2990 { (case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_try") 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3011 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3012 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3013 GCC=`test $ac_compiler_gnu = yes && echo yes`
3014 ac_test_CFLAGS=${CFLAGS+set}
3015 ac_save_CFLAGS=$CFLAGS
3016 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3018 if test "${ac_cv_prog_cc_g+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 ac_save_c_werror_flag=$ac_c_werror_flag
3022 ac_c_werror_flag=yes
3025 cat >conftest.$ac_ext <<_ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3049 grep -v '^ *+' conftest.er1 >conftest.err
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_try") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 ac_c_werror_flag=$ac_save_c_werror_flag
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
3160 grep -v '^ *+' conftest.er1 >conftest.err
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_try") 2>&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_c_werror_flag=$ac_save_c_werror_flag
3202 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3203 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3204 if test "$ac_test_CFLAGS" = set; then
3205 CFLAGS=$ac_save_CFLAGS
3206 elif test $ac_cv_prog_cc_g = yes; then
3207 if test "$GCC" = yes; then
3213 if test "$GCC" = yes; then
3219 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3220 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3221 if test "${ac_cv_prog_cc_c89+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 ac_cv_prog_cc_c89=no
3226 cat >conftest.$ac_ext <<_ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3234 #include <sys/types.h>
3235 #include <sys/stat.h>
3236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3237 struct buf { int x; };
3238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239 static char *e (p, i)
3245 static char *f (char * (*g) (char **, int), char **p, ...)
3250 s = g (p, va_arg (v,int));
3255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3256 function prototypes and stuff, but not '\xHH' hex character constants.
3257 These don't provoke an error unfortunately, instead are silently treated
3258 as 'x'. The following induces an error, until -std is added to get
3259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3260 array size at least. It's necessary to write '\x00'==0 to get something
3261 that's true only with -std. */
3262 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3264 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3265 inside strings and character constants. */
3267 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3269 int test (int i, double x);
3270 struct s1 {int (*f) (int a);};
3271 struct s2 {int (*f) (double a);};
3272 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3278 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3286 CC="$ac_save_CC $ac_arg"
3287 rm -f conftest.$ac_objext
3288 if { (ac_try="$ac_compile"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compile") 2>conftest.er1
3296 grep -v '^ *+' conftest.er1 >conftest.err
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
3301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3302 { (case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_try") 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; } &&
3311 { ac_try='test -s conftest.$ac_objext'
3312 { (case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_try") 2>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 ac_cv_prog_cc_c89=$ac_arg
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3329 rm -f core conftest.err conftest.$ac_objext
3330 test "x$ac_cv_prog_cc_c89" != "xno" && break
3332 rm -f conftest.$ac_ext
3337 case "x$ac_cv_prog_cc_c89" in
3339 { echo "$as_me:$LINENO: result: none needed" >&5
3340 echo "${ECHO_T}none needed" >&6; } ;;
3342 { echo "$as_me:$LINENO: result: unsupported" >&5
3343 echo "${ECHO_T}unsupported" >&6; } ;;
3345 CC="$CC $ac_cv_prog_cc_c89"
3346 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359 ac_cpp='$CPP $CPPFLAGS'
3360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3364 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3365 # On Suns, sometimes $CPP names a directory.
3366 if test -n "$CPP" && test -d "$CPP"; then
3369 if test -z "$CPP"; then
3370 if test "${ac_cv_prog_CPP+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 # Double quotes because CPP needs to be expanded
3374 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377 for ac_c_preproc_warn_flag in '' yes
3379 # Use a header file that comes with gcc, so configuring glibc
3380 # with a fresh cross-compiler works.
3381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382 # <limits.h> exists even on freestanding compilers.
3383 # On the NeXT, cc -E runs the code through the compiler's parser,
3384 # not just through cpp. "Syntax error" is here to catch this case.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3392 # include <limits.h>
3394 # include <assert.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 if test -z "$ac_cpp_err"; then
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 # Broken: fails on valid input.
3430 rm -f conftest.err conftest.$ac_ext
3432 # OK, works on sane cases. Now check whether nonexistent headers
3433 # can be detected and how.
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #include <ac_nonexistent.h>
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null; then
3455 if test -s conftest.err; then
3456 ac_cpp_err=$ac_c_preproc_warn_flag
3457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464 if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # Passes both tests.
3476 rm -f conftest.err conftest.$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3493 { echo "$as_me:$LINENO: result: $CPP" >&5
3494 echo "${ECHO_T}$CPP" >&6; }
3496 for ac_c_preproc_warn_flag in '' yes
3498 # Use a header file that comes with gcc, so configuring glibc
3499 # with a fresh cross-compiler works.
3500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501 # <limits.h> exists even on freestanding compilers.
3502 # On the NeXT, cc -E runs the code through the compiler's parser,
3503 # not just through cpp. "Syntax error" is here to catch this case.
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3511 # include <limits.h>
3513 # include <assert.h>
3517 if { (ac_try="$ac_cpp conftest.$ac_ext"
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } >/dev/null; then
3530 if test -s conftest.err; then
3531 ac_cpp_err=$ac_c_preproc_warn_flag
3532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3539 if test -z "$ac_cpp_err"; then
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 # Broken: fails on valid input.
3549 rm -f conftest.err conftest.$ac_ext
3551 # OK, works on sane cases. Now check whether nonexistent headers
3552 # can be detected and how.
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <ac_nonexistent.h>
3561 if { (ac_try="$ac_cpp conftest.$ac_ext"
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3569 grep -v '^ *+' conftest.er1 >conftest.err
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } >/dev/null; then
3574 if test -s conftest.err; then
3575 ac_cpp_err=$ac_c_preproc_warn_flag
3576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3583 if test -z "$ac_cpp_err"; then
3584 # Broken: success on invalid input.
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Passes both tests.
3595 rm -f conftest.err conftest.$ac_ext
3598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599 rm -f conftest.err conftest.$ac_ext
3600 if $ac_preproc_ok; then
3603 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3604 See \`config.log' for more details." >&5
3605 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3618 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3619 if test "${ac_cv_path_GREP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 # Extract the first word of "grep ggrep" to use in msg output
3623 if test -z "$GREP"; then
3624 set dummy grep ggrep; ac_prog_name=$2
3625 if test "${ac_cv_path_GREP+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 ac_path_GREP_found=false
3629 # Loop through the user's path and test for each of PROGNAME-LIST
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3634 test -z "$as_dir" && as_dir=.
3635 for ac_prog in grep ggrep; do
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3638 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3639 # Check for GNU ac_path_GREP and select it if it is found.
3640 # Check for GNU $ac_path_GREP
3641 case `"$ac_path_GREP" --version 2>&1` in
3643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3646 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3649 cat "conftest.in" "conftest.in" >"conftest.tmp"
3650 mv "conftest.tmp" "conftest.in"
3651 cp "conftest.in" "conftest.nl"
3652 echo 'GREP' >> "conftest.nl"
3653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3655 ac_count=`expr $ac_count + 1`
3656 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3657 # Best one so far, save it but keep looking for a better one
3658 ac_cv_path_GREP="$ac_path_GREP"
3659 ac_path_GREP_max=$ac_count
3661 # 10*(2^10) chars as input seems more than enough
3662 test $ac_count -gt 10 && break
3664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668 $ac_path_GREP_found && break 3
3678 GREP="$ac_cv_path_GREP"
3679 if test -z "$GREP"; then
3680 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3681 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3682 { (exit 1); exit 1; }; }
3686 ac_cv_path_GREP=$GREP
3691 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3692 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3693 GREP="$ac_cv_path_GREP"
3696 { echo "$as_me:$LINENO: checking for egrep" >&5
3697 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3698 if test "${ac_cv_path_EGREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3702 then ac_cv_path_EGREP="$GREP -E"
3704 # Extract the first word of "egrep" to use in msg output
3705 if test -z "$EGREP"; then
3706 set dummy egrep; ac_prog_name=$2
3707 if test "${ac_cv_path_EGREP+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 ac_path_EGREP_found=false
3711 # Loop through the user's path and test for each of PROGNAME-LIST
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3716 test -z "$as_dir" && as_dir=.
3717 for ac_prog in egrep; do
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3720 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3721 # Check for GNU ac_path_EGREP and select it if it is found.
3722 # Check for GNU $ac_path_EGREP
3723 case `"$ac_path_EGREP" --version 2>&1` in
3725 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3728 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3731 cat "conftest.in" "conftest.in" >"conftest.tmp"
3732 mv "conftest.tmp" "conftest.in"
3733 cp "conftest.in" "conftest.nl"
3734 echo 'EGREP' >> "conftest.nl"
3735 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3737 ac_count=`expr $ac_count + 1`
3738 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3739 # Best one so far, save it but keep looking for a better one
3740 ac_cv_path_EGREP="$ac_path_EGREP"
3741 ac_path_EGREP_max=$ac_count
3743 # 10*(2^10) chars as input seems more than enough
3744 test $ac_count -gt 10 && break
3746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750 $ac_path_EGREP_found && break 3
3760 EGREP="$ac_cv_path_EGREP"
3761 if test -z "$EGREP"; then
3762 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3763 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3764 { (exit 1); exit 1; }; }
3768 ac_cv_path_EGREP=$EGREP
3774 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3775 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3776 EGREP="$ac_cv_path_EGREP"
3779 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3780 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3781 if test "${ac_cv_header_stdc+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 cat >conftest.$ac_ext <<_ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3803 rm -f conftest.$ac_objext
3804 if { (ac_try="$ac_compile"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_compile") 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3818 { (case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_try") 2>&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; } &&
3827 { ac_try='test -s conftest.$ac_objext'
3828 { (case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_try") 2>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
3837 ac_cv_header_stdc=yes
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 ac_cv_header_stdc=no
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 if test $ac_cv_header_stdc = yes; then
3848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859 $EGREP "memchr" >/dev/null 2>&1; then
3862 ac_cv_header_stdc=no
3868 if test $ac_cv_header_stdc = yes; then
3869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 $EGREP "free" >/dev/null 2>&1; then
3883 ac_cv_header_stdc=no
3889 if test $ac_cv_header_stdc = yes; then
3890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3891 if test "$cross_compiling" = yes; then
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3902 #if ((' ' & 0x0FF) == 0x020)
3903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3906 # define ISLOWER(c) \
3907 (('a' <= (c) && (c) <= 'i') \
3908 || ('j' <= (c) && (c) <= 'r') \
3909 || ('s' <= (c) && (c) <= 'z'))
3910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3918 for (i = 0; i < 256; i++)
3919 if (XOR (islower (i), ISLOWER (i))
3920 || toupper (i) != TOUPPER (i))
3925 rm -f conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_link") 2>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3936 { (case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_try") 2>&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3947 echo "$as_me: program exited with status $ac_status" >&5
3948 echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3952 ac_cv_header_stdc=no
3954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3960 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3961 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3962 if test $ac_cv_header_stdc = yes; then
3964 cat >>confdefs.h <<\_ACEOF
3965 #define STDC_HEADERS 1
3970 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3980 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3981 inttypes.h stdint.h unistd.h
3983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 cat >conftest.$ac_ext <<_ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 $ac_includes_default
3997 #include <$ac_header>
3999 rm -f conftest.$ac_objext
4000 if { (ac_try="$ac_compile"
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_compile") 2>conftest.er1
4008 grep -v '^ *+' conftest.er1 >conftest.err
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4014 { (case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_try") 2>&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; } &&
4023 { ac_try='test -s conftest.$ac_objext'
4024 { (case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_try") 2>&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 eval "$as_ac_Header=yes"
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 eval "$as_ac_Header=no"
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 ac_res=`eval echo '${'$as_ac_Header'}'`
4044 { echo "$as_me:$LINENO: result: $ac_res" >&5
4045 echo "${ECHO_T}$ac_res" >&6; }
4046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4047 cat >>confdefs.h <<_ACEOF
4048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4056 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4057 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4058 if test "${ac_cv_c_bigendian+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 # See if sys/param.h defines the BYTE_ORDER macro.
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 #include <sys/types.h>
4069 #include <sys/param.h>
4074 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4091 grep -v '^ *+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest.$ac_objext'
4107 { (case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_try") 2>&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; }; then
4116 # It does; now see whether it defined to BIG_ENDIAN or not.
4117 cat >conftest.$ac_ext <<_ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 #include <sys/types.h>
4124 #include <sys/param.h>
4129 #if BYTE_ORDER != BIG_ENDIAN
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_compile") 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4152 { (case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_try") 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_try") 2>&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 ac_cv_c_bigendian=yes
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 ac_cv_c_bigendian=no
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 # It does not; compile a test program.
4185 if test "$cross_compiling" = yes; then
4186 # try to guess the endianness by grepping values into an object file
4187 ac_cv_c_bigendian=unknown
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4195 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4196 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4197 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4198 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4199 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4203 _ascii (); _ebcdic ();
4208 rm -f conftest.$ac_objext
4209 if { (ac_try="$ac_compile"
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_compile") 2>conftest.er1
4217 grep -v '^ *+' conftest.er1 >conftest.err
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4223 { (case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_try") 2>&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_try") 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4243 ac_cv_c_bigendian=yes
4245 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4246 if test "$ac_cv_c_bigendian" = unknown; then
4247 ac_cv_c_bigendian=no
4249 # finding both strings is unlikely to happen, but who knows?
4250 ac_cv_c_bigendian=unknown
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 cat >conftest.$ac_ext <<_ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4268 $ac_includes_default
4273 /* Are we little or big endian? From Harbison&Steele. */
4277 char c[sizeof (long int)];
4280 return u.c[sizeof (long int) - 1] == 1;
4286 rm -f conftest$ac_exeext
4287 if { (ac_try="$ac_link"
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_link") 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4297 { (case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_try") 2>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_c_bigendian=no
4308 echo "$as_me: program exited with status $ac_status" >&5
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4313 ac_cv_c_bigendian=yes
4315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4324 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4325 case $ac_cv_c_bigendian in
4333 { { echo "$as_me:$LINENO: error: unknown endianness
4334 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4335 echo "$as_me: error: unknown endianness
4336 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4337 { (exit 1); exit 1; }; } ;;
4341 if test "$cross_compiling" = yes; then
4342 LLVM_CROSS_COMPILING=1
4345 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4346 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4347 if test "${ac_cv_build_exeext+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4351 ac_cv_build_exeext=.exe
4353 ac_build_prefix=${build_alias}-
4355 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4356 set dummy ${ac_build_prefix}gcc; ac_word=$2
4357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4359 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 if test -n "$BUILD_CC"; then
4363 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 BUILD_CC=$ac_cv_prog_BUILD_CC
4383 if test -n "$BUILD_CC"; then
4384 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4385 echo "${ECHO_T}$BUILD_CC" >&6; }
4387 { echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6; }
4392 if test -z "$BUILD_CC"; then
4393 # Extract the first word of "gcc", so it can be a program name with args.
4394 set dummy gcc; ac_word=$2
4395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4397 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test -n "$BUILD_CC"; then
4401 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_BUILD_CC="gcc"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 BUILD_CC=$ac_cv_prog_BUILD_CC
4421 if test -n "$BUILD_CC"; then
4422 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4423 echo "${ECHO_T}$BUILD_CC" >&6; }
4425 { echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6; }
4430 if test -z "$BUILD_CC"; then
4431 # Extract the first word of "cc", so it can be a program name with args.
4432 set dummy cc; ac_word=$2
4433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4435 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 if test -n "$BUILD_CC"; then
4439 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4450 ac_prog_rejected=yes
4453 ac_cv_prog_BUILD_CC="cc"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 if test $ac_prog_rejected = yes; then
4462 # We found a bogon in the path, so make sure we never use it.
4463 set dummy $ac_cv_prog_BUILD_CC
4465 if test $# != 0; then
4466 # We chose a different compiler from the bogus one.
4467 # However, it has the same basename, so the bogon will be chosen
4468 # first if we set BUILD_CC to just the basename; use the full file name.
4470 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4475 BUILD_CC=$ac_cv_prog_BUILD_CC
4476 if test -n "$BUILD_CC"; then
4477 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4478 echo "${ECHO_T}$BUILD_CC" >&6; }
4480 { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4487 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4488 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4489 { (exit 1); exit 1; }; }
4490 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4492 echo 'int main () { return 0; }' > conftest.$ac_ext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4495 (eval $ac_build_link) 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; then
4499 for file in conftest.*; do
4501 *.c | *.o | *.obj) ;;
4502 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4506 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4507 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4508 { (exit 1); exit 1; }; }
4511 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4516 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4517 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4518 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4519 ac_build_exeext=$BUILD_EXEEXT
4522 LLVM_CROSS_COMPILING=0
4526 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4537 # Check whether --enable-optimized was given.
4538 if test "${enable_optimized+set}" = set; then
4539 enableval=$enable_optimized;
4544 if test ${enableval} = "no" ; then
4548 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4552 # Check whether --enable-assertions was given.
4553 if test "${enable_assertions+set}" = set; then
4554 enableval=$enable_assertions;
4559 if test ${enableval} = "yes" ; then
4563 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4567 # Check whether --enable-debug-runtime was given.
4568 if test "${enable_debug_runtime+set}" = set; then
4569 enableval=$enable_debug_runtime;
4574 if test ${enableval} = "no" ; then
4578 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4582 # Check whether --enable-jit was given.
4583 if test "${enable_jit+set}" = set; then
4584 enableval=$enable_jit;
4589 if test ${enableval} = "no"
4594 case "$llvm_cv_target_arch" in
4595 x86) TARGET_HAS_JIT=1
4597 Sparc) TARGET_HAS_JIT=1
4599 PowerPC) TARGET_HAS_JIT=1
4601 x86_64) TARGET_HAS_JIT=0
4603 Alpha) TARGET_HAS_JIT=1
4605 IA64) TARGET_HAS_JIT=0
4612 # Check whether --enable-doxygen was given.
4613 if test "${enable_doxygen+set}" = set; then
4614 enableval=$enable_doxygen;
4619 case "$enableval" in
4620 yes) ENABLE_DOXYGEN=1
4622 no) ENABLE_DOXYGEN=0
4624 default) ENABLE_DOXYGEN=0
4626 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4627 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4631 # Check whether --enable-threads was given.
4632 if test "${enable_threads+set}" = set; then
4633 enableval=$enable_threads;
4638 case "$enableval" in
4639 yes) ENABLE_THREADS=1
4641 no) ENABLE_THREADS=0
4643 default) ENABLE_THREADS=1
4645 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4646 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4647 { (exit 1); exit 1; }; } ;;
4650 cat >>confdefs.h <<_ACEOF
4651 #define ENABLE_THREADS $ENABLE_THREADS
4656 # Check whether --enable-targets was given.
4657 if test "${enable_targets+set}" = set; then
4658 enableval=$enable_targets;
4663 case "$enableval" in
4664 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4666 case "$llvm_cv_target_arch" in
4667 x86) TARGETS_TO_BUILD="X86" ;;
4668 x86_64) TARGETS_TO_BUILD="X86" ;;
4669 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4670 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4671 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4672 IA64) TARGETS_TO_BUILD="IA64" ;;
4673 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4674 echo "$as_me: error: Can not set target to build" >&2;}
4675 { (exit 1); exit 1; }; } ;;
4678 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4680 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4681 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4682 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4683 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4684 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4685 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4686 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4687 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4688 { (exit 1); exit 1; }; } ;;
4693 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4694 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4697 # Check whether --enable-cbe-printf-a was given.
4698 if test "${enable_cbe_printf_a+set}" = set; then
4699 enableval=$enable_cbe_printf_a;
4704 case "$enableval" in
4705 yes) ENABLE_CBE_PRINTF_A=1
4707 no) ENABLE_CBE_PRINTF_A=0
4709 default) ENABLE_CBE_PRINTF_A=1
4711 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4712 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4713 { (exit 1); exit 1; }; } ;;
4716 cat >>confdefs.h <<_ACEOF
4717 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4722 # Check whether --with-llvmgccdir was given.
4723 if test "${with_llvmgccdir+set}" = set; then
4724 withval=$with_llvmgccdir;
4730 default) WITH_LLVMGCCDIR=default ;;
4731 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4732 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4733 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4734 { (exit 1); exit 1; }; } ;;
4738 # Check whether --with-extra-options was given.
4739 if test "${with_extra_options+set}" = set; then
4740 withval=$with_extra_options;
4746 default) EXTRA_OPTIONS= ;;
4747 *) EXTRA_OPTIONS=$withval ;;
4749 EXTRA_OPTIONS=$EXTRA_OPTIONS
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4759 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4760 # On Suns, sometimes $CPP names a directory.
4761 if test -n "$CPP" && test -d "$CPP"; then
4764 if test -z "$CPP"; then
4765 if test "${ac_cv_prog_CPP+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 # Double quotes because CPP needs to be expanded
4769 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4772 for ac_c_preproc_warn_flag in '' yes
4774 # Use a header file that comes with gcc, so configuring glibc
4775 # with a fresh cross-compiler works.
4776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4777 # <limits.h> exists even on freestanding compilers.
4778 # On the NeXT, cc -E runs the code through the compiler's parser,
4779 # not just through cpp. "Syntax error" is here to catch this case.
4780 cat >conftest.$ac_ext <<_ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4787 # include <limits.h>
4789 # include <assert.h>
4793 if { (ac_try="$ac_cpp conftest.$ac_ext"
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4801 grep -v '^ *+' conftest.er1 >conftest.err
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } >/dev/null; then
4806 if test -s conftest.err; then
4807 ac_cpp_err=$ac_c_preproc_warn_flag
4808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4815 if test -z "$ac_cpp_err"; then
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 # Broken: fails on valid input.
4825 rm -f conftest.err conftest.$ac_ext
4827 # OK, works on sane cases. Now check whether nonexistent headers
4828 # can be detected and how.
4829 cat >conftest.$ac_ext <<_ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 #include <ac_nonexistent.h>
4837 if { (ac_try="$ac_cpp conftest.$ac_ext"
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null; then
4850 if test -s conftest.err; then
4851 ac_cpp_err=$ac_c_preproc_warn_flag
4852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4859 if test -z "$ac_cpp_err"; then
4860 # Broken: success on invalid input.
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 # Passes both tests.
4871 rm -f conftest.err conftest.$ac_ext
4874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875 rm -f conftest.err conftest.$ac_ext
4876 if $ac_preproc_ok; then
4888 { echo "$as_me:$LINENO: result: $CPP" >&5
4889 echo "${ECHO_T}$CPP" >&6; }
4891 for ac_c_preproc_warn_flag in '' yes
4893 # Use a header file that comes with gcc, so configuring glibc
4894 # with a fresh cross-compiler works.
4895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4896 # <limits.h> exists even on freestanding compilers.
4897 # On the NeXT, cc -E runs the code through the compiler's parser,
4898 # not just through cpp. "Syntax error" is here to catch this case.
4899 cat >conftest.$ac_ext <<_ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4906 # include <limits.h>
4908 # include <assert.h>
4912 if { (ac_try="$ac_cpp conftest.$ac_ext"
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4920 grep -v '^ *+' conftest.er1 >conftest.err
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } >/dev/null; then
4925 if test -s conftest.err; then
4926 ac_cpp_err=$ac_c_preproc_warn_flag
4927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4934 if test -z "$ac_cpp_err"; then
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 # Broken: fails on valid input.
4944 rm -f conftest.err conftest.$ac_ext
4946 # OK, works on sane cases. Now check whether nonexistent headers
4947 # can be detected and how.
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 #include <ac_nonexistent.h>
4956 if { (ac_try="$ac_cpp conftest.$ac_ext"
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } >/dev/null; then
4969 if test -s conftest.err; then
4970 ac_cpp_err=$ac_c_preproc_warn_flag
4971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4978 if test -z "$ac_cpp_err"; then
4979 # Broken: success on invalid input.
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 # Passes both tests.
4990 rm -f conftest.err conftest.$ac_ext
4993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4994 rm -f conftest.err conftest.$ac_ext
4995 if $ac_preproc_ok; then
4998 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&5
5000 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5001 See \`config.log' for more details." >&2;}
5002 { (exit 1); exit 1; }; }
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016 if test -n "$ac_tool_prefix"; then
5019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5023 if test "${ac_cv_prog_CC+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 if test -n "$CC"; then
5027 ac_cv_prog_CC="$CC" # Let the user override the test.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 if test -n "$CC"; then
5048 { echo "$as_me:$LINENO: result: $CC" >&5
5049 echo "${ECHO_T}$CC" >&6; }
5051 { echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6; }
5056 test -n "$CC" && break
5059 if test -z "$CC"; then
5063 # Extract the first word of "$ac_prog", so it can be a program name with args.
5064 set dummy $ac_prog; ac_word=$2
5065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 if test -n "$ac_ct_CC"; then
5071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_prog_ac_ct_CC="$ac_prog"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5091 if test -n "$ac_ct_CC"; then
5092 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5093 echo "${ECHO_T}$ac_ct_CC" >&6; }
5095 { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5100 test -n "$ac_ct_CC" && break
5103 if test "x$ac_ct_CC" = x; then
5106 case $cross_compiling:$ac_tool_warned in
5108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet. If you think this
5110 configuration is useful to you, please write to autoconf@gnu.org." >&5
5111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5112 whose name does not start with the host triplet. If you think this
5113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5114 ac_tool_warned=yes ;;
5121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: no acceptable C compiler found in \$PATH
5124 See \`config.log' for more details." >&2;}
5125 { (exit 1); exit 1; }; }
5127 # Provide some information about the compiler.
5128 echo "$as_me:$LINENO: checking for C compiler version" >&5
5129 ac_compiler=`set X $ac_compile; echo $2`
5130 { (ac_try="$ac_compiler --version >&5"
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_compiler --version >&5") 2>&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }
5140 { (ac_try="$ac_compiler -v >&5"
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_compiler -v >&5") 2>&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }
5150 { (ac_try="$ac_compiler -V >&5"
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_compiler -V >&5") 2>&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }
5161 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 cat >conftest.$ac_ext <<_ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compile") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5199 { (case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_try") 2>&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try='test -s conftest.$ac_objext'
5209 { (case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_try") 2>&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5230 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5231 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5232 GCC=`test $ac_compiler_gnu = yes && echo yes`
5233 ac_test_CFLAGS=${CFLAGS+set}
5234 ac_save_CFLAGS=$CFLAGS
5235 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5236 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5237 if test "${ac_cv_prog_cc_g+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 ac_save_c_werror_flag=$ac_c_werror_flag
5241 ac_c_werror_flag=yes
5244 cat >conftest.$ac_ext <<_ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5259 rm -f conftest.$ac_objext
5260 if { (ac_try="$ac_compile"
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_compile") 2>conftest.er1
5268 grep -v '^ *+' conftest.er1 >conftest.err
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5274 { (case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_try") 2>&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_try") 2>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5299 cat >conftest.$ac_ext <<_ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5314 rm -f conftest.$ac_objext
5315 if { (ac_try="$ac_compile"
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_compile") 2>conftest.er1
5323 grep -v '^ *+' conftest.er1 >conftest.err
5325 cat conftest.err >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } &&
5328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5329 { (case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_try") 2>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_try") 2>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 ac_c_werror_flag=$ac_save_c_werror_flag
5355 cat >conftest.$ac_ext <<_ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5370 rm -f conftest.$ac_objext
5371 if { (ac_try="$ac_compile"
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compile") 2>conftest.er1
5379 grep -v '^ *+' conftest.er1 >conftest.err
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5385 { (case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_try") 2>&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest.$ac_objext'
5395 { (case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_try") 2>&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 ac_c_werror_flag=$ac_save_c_werror_flag
5421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5422 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5423 if test "$ac_test_CFLAGS" = set; then
5424 CFLAGS=$ac_save_CFLAGS
5425 elif test $ac_cv_prog_cc_g = yes; then
5426 if test "$GCC" = yes; then
5432 if test "$GCC" = yes; then
5438 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5439 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5440 if test "${ac_cv_prog_cc_c89+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 ac_cv_prog_cc_c89=no
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5453 #include <sys/types.h>
5454 #include <sys/stat.h>
5455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5456 struct buf { int x; };
5457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5458 static char *e (p, i)
5464 static char *f (char * (*g) (char **, int), char **p, ...)
5469 s = g (p, va_arg (v,int));
5474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5475 function prototypes and stuff, but not '\xHH' hex character constants.
5476 These don't provoke an error unfortunately, instead are silently treated
5477 as 'x'. The following induces an error, until -std is added to get
5478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5479 array size at least. It's necessary to write '\x00'==0 to get something
5480 that's true only with -std. */
5481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5483 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5484 inside strings and character constants. */
5486 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5488 int test (int i, double x);
5489 struct s1 {int (*f) (int a);};
5490 struct s2 {int (*f) (double a);};
5491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5502 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5503 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5505 CC="$ac_save_CC $ac_arg"
5506 rm -f conftest.$ac_objext
5507 if { (ac_try="$ac_compile"
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compile") 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5521 { (case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_try") 2>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try='test -s conftest.$ac_objext'
5531 { (case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_try") 2>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_cv_prog_cc_c89=$ac_arg
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5548 rm -f core conftest.err conftest.$ac_objext
5549 test "x$ac_cv_prog_cc_c89" != "xno" && break
5551 rm -f conftest.$ac_ext
5556 case "x$ac_cv_prog_cc_c89" in
5558 { echo "$as_me:$LINENO: result: none needed" >&5
5559 echo "${ECHO_T}none needed" >&6; } ;;
5561 { echo "$as_me:$LINENO: result: unsupported" >&5
5562 echo "${ECHO_T}unsupported" >&6; } ;;
5564 CC="$CC $ac_cv_prog_cc_c89"
5565 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5566 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5571 ac_cpp='$CPP $CPPFLAGS'
5572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5577 ac_cpp='$CXXCPP $CPPFLAGS'
5578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5581 if test -z "$CXX"; then
5582 if test -n "$CCC"; then
5585 if test -n "$ac_tool_prefix"; then
5588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5592 if test "${ac_cv_prog_CXX+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 if test -n "$CXX"; then
5596 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 if test -n "$CXX"; then
5617 { echo "$as_me:$LINENO: result: $CXX" >&5
5618 echo "${ECHO_T}$CXX" >&6; }
5620 { echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6; }
5625 test -n "$CXX" && break
5628 if test -z "$CXX"; then
5632 # Extract the first word of "$ac_prog", so it can be a program name with args.
5633 set dummy $ac_prog; ac_word=$2
5634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5636 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 if test -n "$ac_ct_CXX"; then
5640 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_ac_ct_CXX="$ac_prog"
5650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5660 if test -n "$ac_ct_CXX"; then
5661 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5662 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5664 { echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6; }
5669 test -n "$ac_ct_CXX" && break
5672 if test "x$ac_ct_CXX" = x; then
5675 case $cross_compiling:$ac_tool_warned in
5677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5678 whose name does not start with the host triplet. If you think this
5679 configuration is useful to you, please write to autoconf@gnu.org." >&5
5680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5681 whose name does not start with the host triplet. If you think this
5682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5683 ac_tool_warned=yes ;;
5691 # Provide some information about the compiler.
5692 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5693 ac_compiler=`set X $ac_compile; echo $2`
5694 { (ac_try="$ac_compiler --version >&5"
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_compiler --version >&5") 2>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }
5704 { (ac_try="$ac_compiler -v >&5"
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_compiler -v >&5") 2>&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }
5714 { (ac_try="$ac_compiler -V >&5"
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compiler -V >&5") 2>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }
5725 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5726 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5727 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5763 { (case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_try") 2>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try='test -s conftest.$ac_objext'
5773 { (case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_try") 2>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5794 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5795 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5796 GXX=`test $ac_compiler_gnu = yes && echo yes`
5797 ac_test_CXXFLAGS=${CXXFLAGS+set}
5798 ac_save_CXXFLAGS=$CXXFLAGS
5799 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5800 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5801 if test "${ac_cv_prog_cxx_g+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5805 ac_cxx_werror_flag=yes
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_cv_prog_cxx_g=yes
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5863 cat >conftest.$ac_ext <<_ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_compile") 2>conftest.er1
5887 grep -v '^ *+' conftest.er1 >conftest.err
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_try") 2>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; }; then
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5934 rm -f conftest.$ac_objext
5935 if { (ac_try="$ac_compile"
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5943 grep -v '^ *+' conftest.er1 >conftest.err
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest.$ac_objext'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_prog_cxx_g=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5985 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5986 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5987 if test "$ac_test_CXXFLAGS" = set; then
5988 CXXFLAGS=$ac_save_CXXFLAGS
5989 elif test $ac_cv_prog_cxx_g = yes; then
5990 if test "$GXX" = yes; then
5996 if test "$GXX" = yes; then
6003 ac_cpp='$CPP $CPPFLAGS'
6004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008 { echo "$as_me:$LINENO: checking " >&5
6009 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6010 if test "${ac_cv_has_flex+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 for ac_prog in flex lex
6015 # Extract the first word of "$ac_prog", so it can be a program name with args.
6016 set dummy $ac_prog; ac_word=$2
6017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6019 if test "${ac_cv_prog_LEX+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 if test -n "$LEX"; then
6023 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_LEX="$ac_prog"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 if test -n "$LEX"; then
6044 { echo "$as_me:$LINENO: result: $LEX" >&5
6045 echo "${ECHO_T}$LEX" >&6; }
6047 { echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6; }
6052 test -n "$LEX" && break
6054 test -n "$LEX" || LEX=":"
6056 if test -z "$LEXLIB"
6058 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6059 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6060 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 ac_check_lib_save_LIBS=$LIBS
6065 cat >conftest.$ac_ext <<_ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6072 /* Override any GCC internal prototype to avoid an error.
6073 Use char because int might match the return type of a GCC
6074 builtin and then its argument prototype would still apply. */
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (ac_try="$ac_link"
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_link") 2>conftest.er1
6096 grep -v '^ *+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6102 { (case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_try") 2>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; } &&
6111 { ac_try='test -s conftest$ac_exeext'
6112 { (case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_try") 2>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6121 ac_cv_lib_fl_yywrap=yes
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6126 ac_cv_lib_fl_yywrap=no
6129 rm -f core conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
6131 LIBS=$ac_check_lib_save_LIBS
6133 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6134 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6135 if test $ac_cv_lib_fl_yywrap = yes; then
6138 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6139 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6140 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 ac_check_lib_save_LIBS=$LIBS
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6152 /* Override any GCC internal prototype to avoid an error.
6153 Use char because int might match the return type of a GCC
6154 builtin and then its argument prototype would still apply. */
6167 rm -f conftest.$ac_objext conftest$ac_exeext
6168 if { (ac_try="$ac_link"
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_link") 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6182 { (case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_try") 2>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest$ac_exeext'
6192 { (case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_try") 2>&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_lib_l_yywrap=yes
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 ac_cv_lib_l_yywrap=no
6209 rm -f core conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
6211 LIBS=$ac_check_lib_save_LIBS
6213 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6214 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6215 if test $ac_cv_lib_l_yywrap = yes; then
6223 if test "x$LEX" != "x:"; then
6224 { echo "$as_me:$LINENO: checking lex output file root" >&5
6225 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_lex_root+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 # The minimal lex program is just a single line: %%. But some broken lexes
6230 # (Solaris, I think it was) want two %% lines, so accommodate them.
6231 cat >conftest.l <<_ACEOF
6235 { (ac_try="$LEX conftest.l"
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$LEX conftest.l") 2>&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }
6245 if test -f lex.yy.c; then
6246 ac_cv_prog_lex_root=lex.yy
6247 elif test -f lexyy.c; then
6248 ac_cv_prog_lex_root=lexyy
6250 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6251 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6252 { (exit 1); exit 1; }; }
6255 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6256 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6258 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6260 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6261 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6262 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 # POSIX says lex can declare yytext either as a pointer or an array; the
6266 # default is implementation-dependent. Figure out which it is, since
6267 # not all implementations provide the %pointer and %array declarations.
6268 ac_cv_prog_lex_yytext_pointer=no
6269 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6271 LIBS="$LIBS $LEXLIB"
6272 cat >conftest.$ac_ext <<_ACEOF
6273 `cat $LEX_OUTPUT_ROOT.c`
6275 rm -f conftest.$ac_objext conftest$ac_exeext
6276 if { (ac_try="$ac_link"
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_link") 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6290 { (case "(($ac_try" in
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295 (eval "$ac_try") 2>&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; } &&
6299 { ac_try='test -s conftest$ac_exeext'
6300 { (case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_try") 2>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 ac_cv_prog_lex_yytext_pointer=yes
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6317 rm -f core conftest.err conftest.$ac_objext \
6318 conftest$ac_exeext conftest.$ac_ext
6320 rm -f "${LEX_OUTPUT_ROOT}.c"
6323 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6324 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6325 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6327 cat >>confdefs.h <<\_ACEOF
6328 #define YYTEXT_POINTER 1
6336 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6337 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6338 if test "$LEX" != "flex"; then
6339 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6340 echo "$as_me: error: flex not found but required" >&2;}
6341 { (exit 1); exit 1; }; }
6347 { echo "$as_me:$LINENO: checking " >&5
6348 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6349 if test "${llvm_cv_has_bison+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 for ac_prog in 'bison -y' byacc
6354 # Extract the first word of "$ac_prog", so it can be a program name with args.
6355 set dummy $ac_prog; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_prog_YACC+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 if test -n "$YACC"; then
6362 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_YACC="$ac_prog"
6372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 YACC=$ac_cv_prog_YACC
6382 if test -n "$YACC"; then
6383 { echo "$as_me:$LINENO: result: $YACC" >&5
6384 echo "${ECHO_T}$YACC" >&6; }
6386 { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6391 test -n "$YACC" && break
6393 test -n "$YACC" || YACC="yacc"
6396 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6397 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6398 if test "$YACC" != "bison -y"; then
6400 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6401 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6407 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6408 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6409 if test "${lt_cv_path_NM+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 if test -n "$NM"; then
6413 # Let the user override the test.
6416 lt_nm_to_check="${ac_tool_prefix}nm"
6417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6418 lt_nm_to_check="$lt_nm_to_check nm"
6420 for lt_tmp_nm in $lt_nm_to_check; do
6421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6424 test -z "$ac_dir" && ac_dir=.
6425 tmp_nm="$ac_dir/$lt_tmp_nm"
6426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6427 # Check to see if the nm accepts a BSD-compat flag.
6428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6429 # nm: unknown option "B" ignored
6430 # Tru64's nm complains that /dev/null is an invalid object file
6431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6432 */dev/null* | *'Invalid file or object type'*)
6433 lt_cv_path_NM="$tmp_nm -B"
6437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6439 lt_cv_path_NM="$tmp_nm -p"
6443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6444 continue # so that we can try to find one that supports BSD flags
6453 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6456 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6457 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6462 { echo "$as_me:$LINENO: checking for GNU make" >&5
6463 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6464 if test "${llvm_cv_gnu_make_command+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 llvm_cv_gnu_make_command=''
6468 for a in "$MAKE" make gmake gnumake ; do
6469 if test -z "$a" ; then continue ; fi ;
6470 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6472 llvm_cv_gnu_make_command=$a ;
6477 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6478 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6479 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6483 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6484 echo "${ECHO_T}\"Not found\"" >&6; };
6488 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6489 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6491 if test "$LN_S" = "ln -s"; then
6492 { echo "$as_me:$LINENO: result: yes" >&5
6493 echo "${ECHO_T}yes" >&6; }
6495 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6496 echo "${ECHO_T}no, using $LN_S" >&6; }
6499 # Extract the first word of "cmp", so it can be a program name with args.
6500 set dummy cmp; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_CMP+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6531 if test -n "$CMP"; then
6532 { echo "$as_me:$LINENO: result: $CMP" >&5
6533 echo "${ECHO_T}$CMP" >&6; }
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6540 # Extract the first word of "cp", so it can be a program name with args.
6541 set dummy cp; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_path_CP+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6572 if test -n "$CP"; then
6573 { echo "$as_me:$LINENO: result: $CP" >&5
6574 echo "${ECHO_T}$CP" >&6; }
6576 { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6581 # Extract the first word of "date", so it can be a program name with args.
6582 set dummy date; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_DATE+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6612 DATE=$ac_cv_path_DATE
6613 if test -n "$DATE"; then
6614 { echo "$as_me:$LINENO: result: $DATE" >&5
6615 echo "${ECHO_T}$DATE" >&6; }
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6622 # Extract the first word of "find", so it can be a program name with args.
6623 set dummy find; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_FIND+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6653 FIND=$ac_cv_path_FIND
6654 if test -n "$FIND"; then
6655 { echo "$as_me:$LINENO: result: $FIND" >&5
6656 echo "${ECHO_T}$FIND" >&6; }
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6663 # Extract the first word of "grep", so it can be a program name with args.
6664 set dummy grep; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_GREP+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6694 GREP=$ac_cv_path_GREP
6695 if test -n "$GREP"; then
6696 { echo "$as_me:$LINENO: result: $GREP" >&5
6697 echo "${ECHO_T}$GREP" >&6; }
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6704 # Extract the first word of "mkdir", so it can be a program name with args.
6705 set dummy mkdir; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_MKDIR+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6735 MKDIR=$ac_cv_path_MKDIR
6736 if test -n "$MKDIR"; then
6737 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6738 echo "${ECHO_T}$MKDIR" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6745 # Extract the first word of "mv", so it can be a program name with args.
6746 set dummy mv; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_path_MV+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6777 if test -n "$MV"; then
6778 { echo "$as_me:$LINENO: result: $MV" >&5
6779 echo "${ECHO_T}$MV" >&6; }
6781 { echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6; }
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_prog_RANLIB+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 if test -n "$RANLIB"; then
6795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 RANLIB=$ac_cv_prog_RANLIB
6815 if test -n "$RANLIB"; then
6816 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6817 echo "${ECHO_T}$RANLIB" >&6; }
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6825 if test -z "$ac_cv_prog_RANLIB"; then
6826 ac_ct_RANLIB=$RANLIB
6827 # Extract the first word of "ranlib", so it can be a program name with args.
6828 set dummy ranlib; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 if test -n "$ac_ct_RANLIB"; then
6835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_ac_ct_RANLIB="ranlib"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6855 if test -n "$ac_ct_RANLIB"; then
6856 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6857 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6863 if test "x$ac_ct_RANLIB" = x; then
6866 case $cross_compiling:$ac_tool_warned in
6868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6869 whose name does not start with the host triplet. If you think this
6870 configuration is useful to you, please write to autoconf@gnu.org." >&5
6871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6872 whose name does not start with the host triplet. If you think this
6873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6874 ac_tool_warned=yes ;;
6876 RANLIB=$ac_ct_RANLIB
6879 RANLIB="$ac_cv_prog_RANLIB"
6882 # Extract the first word of "rm", so it can be a program name with args.
6883 set dummy rm; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_RM+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6914 if test -n "$RM"; then
6915 { echo "$as_me:$LINENO: result: $RM" >&5
6916 echo "${ECHO_T}$RM" >&6; }
6918 { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6923 # Extract the first word of "sed", so it can be a program name with args.
6924 set dummy sed; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_SED+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6955 if test -n "$SED"; then
6956 { echo "$as_me:$LINENO: result: $SED" >&5
6957 echo "${ECHO_T}$SED" >&6; }
6959 { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6964 # Extract the first word of "tar", so it can be a program name with args.
6965 set dummy tar; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_TAR+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6996 if test -n "$TAR"; then
6997 { echo "$as_me:$LINENO: result: $TAR" >&5
6998 echo "${ECHO_T}$TAR" >&6; }
7000 { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7005 # Extract the first word of "pwd", so it can be a program name with args.
7006 set dummy pwd; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_path_BINPWD+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7036 BINPWD=$ac_cv_path_BINPWD
7037 if test -n "$BINPWD"; then
7038 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7039 echo "${ECHO_T}$BINPWD" >&6; }
7041 { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7047 # Extract the first word of "Graphviz", so it can be a program name with args.
7048 set dummy Graphviz; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7078 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7079 if test -n "$GRAPHVIZ"; then
7080 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7081 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7083 { echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6; }
7088 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7090 cat >>confdefs.h <<\_ACEOF
7091 #define HAVE_GRAPHVIZ 1
7094 if test "$llvm_cv_os_type" == "MingW" ; then
7095 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7098 cat >>confdefs.h <<_ACEOF
7099 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7103 # Extract the first word of "dot", so it can be a program name with args.
7104 set dummy dot; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_DOT+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7135 if test -n "$DOT"; then
7136 { echo "$as_me:$LINENO: result: $DOT" >&5
7137 echo "${ECHO_T}$DOT" >&6; }
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7144 if test "$DOT" != "echo dot" ; then
7146 cat >>confdefs.h <<\_ACEOF
7150 if test "$llvm_cv_os_type" == "MingW" ; then
7151 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7154 cat >>confdefs.h <<_ACEOF
7155 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7159 for ac_prog in gv gsview32
7161 # Extract the first word of "$ac_prog", so it can be a program name with args.
7162 set dummy $ac_prog; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_GV+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 if test -n "$GV"; then
7193 { echo "$as_me:$LINENO: result: $GV" >&5
7194 echo "${ECHO_T}$GV" >&6; }
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7201 test -n "$GV" && break
7203 test -n "$GV" || GV="echo gv"
7205 if test "$GV" != "echo gv" ; then
7207 cat >>confdefs.h <<\_ACEOF
7211 if test "$llvm_cv_os_type" == "MingW" ; then
7212 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7215 cat >>confdefs.h <<_ACEOF
7216 #define LLVM_PATH_GV "$GV${EXEEXT}"
7220 # Extract the first word of "dotty", so it can be a program name with args.
7221 set dummy dotty; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_DOTTY+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7251 DOTTY=$ac_cv_path_DOTTY
7252 if test -n "$DOTTY"; then
7253 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7254 echo "${ECHO_T}$DOTTY" >&6; }
7256 { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7261 if test "$DOTTY" != "echo dotty" ; then
7263 cat >>confdefs.h <<\_ACEOF
7264 #define HAVE_DOTTY 1
7267 if test "$llvm_cv_os_type" == "MingW" ; then
7268 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7271 cat >>confdefs.h <<_ACEOF
7272 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7278 # Extract the first word of "perl", so it can be a program name with args.
7279 set dummy perl; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_PERL+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7309 PERL=$ac_cv_path_PERL
7310 if test -n "$PERL"; then
7311 { echo "$as_me:$LINENO: result: $PERL" >&5
7312 echo "${ECHO_T}$PERL" >&6; }
7314 { echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6; }
7319 if test "$PERL" != "none"; then
7320 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7321 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7322 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7323 { echo "$as_me:$LINENO: result: yes" >&5
7324 echo "${ECHO_T}yes" >&6; }
7327 { echo "$as_me:$LINENO: result: not found" >&5
7328 echo "${ECHO_T}not found" >&6; }
7333 if test x"$PERL" = xnone; then
7341 # Find a good install program. We prefer a C program (faster),
7342 # so one script is as good as another. But avoid the broken or
7343 # incompatible versions:
7344 # SysV /etc/install, /usr/sbin/install
7345 # SunOS /usr/etc/install
7346 # IRIX /sbin/install
7348 # AmigaOS /C/install, which installs bootblocks on floppy discs
7349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7352 # OS/2's system install, which has a completely different semantic
7353 # ./install, which can be erroneously created by make from ./install.sh.
7354 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7356 if test -z "$INSTALL"; then
7357 if test "${ac_cv_path_install+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 # Account for people who put trailing slashes in PATH elements.
7367 ./ | .// | /cC/* | \
7368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7369 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7372 # OSF1 and SCO ODT 3.0 have their own names for install.
7373 # Don't use installbsd from OSF since it installs stuff as root
7375 for ac_prog in ginstall scoinst install; do
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7378 if test $ac_prog = install &&
7379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7380 # AIX install. It has an incompatible calling convention.
7382 elif test $ac_prog = install &&
7383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7384 # program-specific install script used by HP pwplus--don't use.
7387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7400 if test "${ac_cv_path_install+set}" = set; then
7401 INSTALL=$ac_cv_path_install
7403 # As a last resort, use the slow shell script. Don't cache a
7404 # value for INSTALL within a source directory, because that will
7405 # break other packages using the cache if that directory is
7406 # removed, or if the value is a relative name.
7407 INSTALL=$ac_install_sh
7410 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7411 echo "${ECHO_T}$INSTALL" >&6; }
7413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7414 # It thinks the first close brace ends the variable substitution.
7415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7422 # Extract the first word of "bzip2", so it can be a program name with args.
7423 set dummy bzip2; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_BZIP2+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7453 BZIP2=$ac_cv_path_BZIP2
7454 if test -n "$BZIP2"; then
7455 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7456 echo "${ECHO_T}$BZIP2" >&6; }
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7463 # Extract the first word of "doxygen", so it can be a program name with args.
7464 set dummy doxygen; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7494 DOXYGEN=$ac_cv_path_DOXYGEN
7495 if test -n "$DOXYGEN"; then
7496 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7497 echo "${ECHO_T}$DOXYGEN" >&6; }
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 # Extract the first word of "groff", so it can be a program name with args.
7505 set dummy groff; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_GROFF+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7535 GROFF=$ac_cv_path_GROFF
7536 if test -n "$GROFF"; then
7537 { echo "$as_me:$LINENO: result: $GROFF" >&5
7538 echo "${ECHO_T}$GROFF" >&6; }
7540 { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7545 # Extract the first word of "gzip", so it can be a program name with args.
7546 set dummy gzip; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_path_GZIP+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7576 GZIP=$ac_cv_path_GZIP
7577 if test -n "$GZIP"; then
7578 { echo "$as_me:$LINENO: result: $GZIP" >&5
7579 echo "${ECHO_T}$GZIP" >&6; }
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7586 # Extract the first word of "pod2html", so it can be a program name with args.
7587 set dummy pod2html; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_POD2HTML+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7617 POD2HTML=$ac_cv_path_POD2HTML
7618 if test -n "$POD2HTML"; then
7619 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7620 echo "${ECHO_T}$POD2HTML" >&6; }
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7627 # Extract the first word of "pod2man", so it can be a program name with args.
7628 set dummy pod2man; ac_word=$2
7629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631 if test "${ac_cv_path_POD2MAN+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7658 POD2MAN=$ac_cv_path_POD2MAN
7659 if test -n "$POD2MAN"; then
7660 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7661 echo "${ECHO_T}$POD2MAN" >&6; }
7663 { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7668 # Extract the first word of "runtest", so it can be a program name with args.
7669 set dummy runtest; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_RUNTEST+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7699 RUNTEST=$ac_cv_path_RUNTEST
7700 if test -n "$RUNTEST"; then
7701 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7702 echo "${ECHO_T}$RUNTEST" >&6; }
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7711 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7712 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7714 # Check whether --with-tclinclude was given.
7715 if test "${with_tclinclude+set}" = set; then
7716 withval=$with_tclinclude; with_tclinclude=${withval}
7721 if test "${ac_cv_path_tclsh+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 if test x"${with_tclinclude}" != x ; then
7726 if test -f ${with_tclinclude}/tclsh ; then
7727 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7728 elif test -f ${with_tclinclude}/src/tclsh ; then
7729 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7731 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7732 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7733 { (exit 1); exit 1; }; }
7737 if test x"${ac_cv_path_tclsh}" = x ; then
7738 { echo "$as_me:$LINENO: result: none" >&5
7739 echo "${ECHO_T}none" >&6; }
7740 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
7742 # Extract the first word of "$ac_prog", so it can be a program name with args.
7743 set dummy $ac_prog; ac_word=$2
7744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_TCLSH+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 TCLSH=$ac_cv_path_TCLSH
7773 if test -n "$TCLSH"; then
7774 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7775 echo "${ECHO_T}$TCLSH" >&6; }
7777 { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7782 test -n "$TCLSH" && break
7785 if test x"${TCLSH}" = x ; then
7786 ac_cv_path_tclsh='';
7788 ac_cv_path_tclsh="${TCLSH}";
7791 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7792 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7793 TCLSH="${ac_cv_path_tclsh}"
7799 # Extract the first word of "zip", so it can be a program name with args.
7800 set dummy zip; ac_word=$2
7801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7803 if test "${ac_cv_path_ZIP+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7818 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7831 if test -n "$ZIP"; then
7832 { echo "$as_me:$LINENO: result: $ZIP" >&5
7833 echo "${ECHO_T}$ZIP" >&6; }
7835 { echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6; }
7841 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7842 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7843 if test "${llvm_cv_link_use_r+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 ac_cpp='$CPP $CPPFLAGS'
7848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7853 CFLAGS="$CFLAGS -Wl,-R."
7854 cat >conftest.$ac_ext <<_ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7864 int main() { return 0; }
7869 rm -f conftest.$ac_objext conftest$ac_exeext
7870 if { (ac_try="$ac_link"
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_link") 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7884 { (case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_try") 2>&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest$ac_exeext'
7894 { (case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_try") 2>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 llvm_cv_link_use_r=yes
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 llvm_cv_link_use_r=no
7911 rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
7915 ac_cpp='$CPP $CPPFLAGS'
7916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7922 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7923 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7924 if test "$llvm_cv_link_use_r" = yes ; then
7926 cat >>confdefs.h <<\_ACEOF
7927 #define HAVE_LINK_R 1
7935 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7936 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7937 if test "${ac_cv_c_const+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7950 /* FIXME: Include the comments suggested by Paul. */
7952 /* Ultrix mips cc rejects this. */
7953 typedef int charset[2];
7955 /* SunOS 4.1.1 cc rejects this. */
7956 char const *const *ccp;
7958 /* NEC SVR4.0.2 mips cc rejects this. */
7959 struct point {int x, y;};
7960 static struct point const zero = {0,0};
7961 /* AIX XL C 1.02.0.0 rejects this.
7962 It does not let you subtract one const X* pointer from another in
7963 an arm of an if-expression whose if-part is not a constant
7965 const char *g = "string";
7966 ccp = &g + (g ? g-g : 0);
7967 /* HPUX 7.0 cc rejects these. */
7970 ccp = (char const *const *) p;
7971 { /* SCO 3.2v4 cc rejects this. */
7973 char const *s = 0 ? (char *) 0 : (char const *) 0;
7978 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7980 const int *foo = &x[0];
7983 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7984 typedef const int *iptr;
7988 { /* AIX XL C 1.02.0.0 rejects this saying
7989 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7990 struct s { int j; const int *ap[3]; };
7991 struct s *b; b->j = 5;
7993 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7997 return !x[0] && !zero.x;
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8013 grep -v '^ *+' conftest.er1 >conftest.err
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8019 { (case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_try") 2>&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; } &&
8028 { ac_try='test -s conftest.$ac_objext'
8029 { (case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_try") 2>&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8049 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8050 if test $ac_cv_c_const = no; then
8052 cat >>confdefs.h <<\_ACEOF
8064 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8065 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8066 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8067 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 cat >conftest.$ac_ext <<_ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <sys/types.h>
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_compile") 2>conftest.er1
8098 grep -v '^ *+' conftest.er1 >conftest.err
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8104 { (case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_try") 2>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try='test -s conftest.$ac_objext'
8114 { (case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_try") 2>&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 eval "$as_ac_Header=yes"
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 eval "$as_ac_Header=no"
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 ac_res=`eval echo '${'$as_ac_Header'}'`
8134 { echo "$as_me:$LINENO: result: $ac_res" >&5
8135 echo "${ECHO_T}$ac_res" >&6; }
8136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8137 cat >>confdefs.h <<_ACEOF
8138 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8141 ac_header_dirent=$ac_hdr; break
8145 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8146 if test $ac_header_dirent = dirent.h; then
8147 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8148 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8149 if test "${ac_cv_search_opendir+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 ac_func_search_save_LIBS=$LIBS
8153 cat >conftest.$ac_ext <<_ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8160 /* Override any GCC internal prototype to avoid an error.
8161 Use char because int might match the return type of a GCC
8162 builtin and then its argument prototype would still apply. */
8175 for ac_lib in '' dir; do
8176 if test -z "$ac_lib"; then
8177 ac_res="none required"
8180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (ac_try="$ac_link"
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_link") 2>conftest.er1
8191 grep -v '^ *+' conftest.er1 >conftest.err
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
8196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8197 { (case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_try") 2>&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; } &&
8206 { ac_try='test -s conftest$ac_exeext'
8207 { (case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_try") 2>&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8216 ac_cv_search_opendir=$ac_res
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8224 rm -f core conftest.err conftest.$ac_objext \
8226 if test "${ac_cv_search_opendir+set}" = set; then
8230 if test "${ac_cv_search_opendir+set}" = set; then
8233 ac_cv_search_opendir=no
8236 LIBS=$ac_func_search_save_LIBS
8238 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8239 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8240 ac_res=$ac_cv_search_opendir
8241 if test "$ac_res" != no; then
8242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8247 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8248 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8249 if test "${ac_cv_search_opendir+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 ac_func_search_save_LIBS=$LIBS
8253 cat >conftest.$ac_ext <<_ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8260 /* Override any GCC internal prototype to avoid an error.
8261 Use char because int might match the return type of a GCC
8262 builtin and then its argument prototype would still apply. */
8275 for ac_lib in '' x; do
8276 if test -z "$ac_lib"; then
8277 ac_res="none required"
8280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (ac_try="$ac_link"
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289 (eval "$ac_link") 2>conftest.er1
8291 grep -v '^ *+' conftest.er1 >conftest.err
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8297 { (case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_try") 2>&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; } &&
8306 { ac_try='test -s conftest$ac_exeext'
8307 { (case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_try") 2>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_cv_search_opendir=$ac_res
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8324 rm -f core conftest.err conftest.$ac_objext \
8326 if test "${ac_cv_search_opendir+set}" = set; then
8330 if test "${ac_cv_search_opendir+set}" = set; then
8333 ac_cv_search_opendir=no
8336 LIBS=$ac_func_search_save_LIBS
8338 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8339 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8340 ac_res=$ac_cv_search_opendir
8341 if test "$ac_res" != no; then
8342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8349 for ac_header in dlfcn.h
8351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_res=`eval echo '${'$as_ac_Header'}'`
8359 { echo "$as_me:$LINENO: result: $ac_res" >&5
8360 echo "${ECHO_T}$ac_res" >&6; }
8362 # Is the header compilable?
8363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #include <$ac_header>
8374 rm -f conftest.$ac_objext
8375 if { (ac_try="$ac_compile"
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8383 grep -v '^ *+' conftest.er1 >conftest.err
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
8388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8389 { (case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_try") 2>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest.$ac_objext'
8399 { (case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_try") 2>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_header_compiler=yes
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_header_compiler=no
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8418 echo "${ECHO_T}$ac_header_compiler" >&6; }
8420 # Is the header present?
8421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 #include <$ac_header>
8431 if { (ac_try="$ac_cpp conftest.$ac_ext"
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8439 grep -v '^ *+' conftest.er1 >conftest.err
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } >/dev/null; then
8444 if test -s conftest.err; then
8445 ac_cpp_err=$ac_c_preproc_warn_flag
8446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8453 if test -z "$ac_cpp_err"; then
8454 ac_header_preproc=yes
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 ac_header_preproc=no
8462 rm -f conftest.err conftest.$ac_ext
8463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8464 echo "${ECHO_T}$ac_header_preproc" >&6; }
8466 # So? What about this header?
8467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8473 ac_header_preproc=yes
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8489 ## ----------------------------------- ##
8490 ## Report this to llvmbugs@cs.uiuc.edu ##
8491 ## ----------------------------------- ##
8493 ) | sed "s/^/$as_me: WARNING: /" >&2
8496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 eval "$as_ac_Header=\$ac_header_preproc"
8503 ac_res=`eval echo '${'$as_ac_Header'}'`
8504 { echo "$as_me:$LINENO: result: $ac_res" >&5
8505 echo "${ECHO_T}$ac_res" >&6; }
8508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8509 cat >>confdefs.h <<_ACEOF
8510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8517 # Check whether --enable-ltdl-install was given.
8518 if test "${enable_ltdl_install+set}" = set; then
8519 enableval=$enable_ltdl_install;
8525 if test x"${enable_ltdl_install-no}" != xno; then
8527 INSTALL_LTDL_FALSE='#'
8529 INSTALL_LTDL_TRUE='#'
8535 if test x"${enable_ltdl_convenience-no}" != xno; then
8536 CONVENIENCE_LTDL_TRUE=
8537 CONVENIENCE_LTDL_FALSE='#'
8539 CONVENIENCE_LTDL_TRUE='#'
8540 CONVENIENCE_LTDL_FALSE=
8544 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8547 libname_spec='lib$name'
8555 shlibpath_overrides_runpath=unknown
8557 dynamic_linker="$host_os ld.so"
8558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8559 if test "$GCC" = yes; then
8560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8561 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8562 # if the path contains ";" then we assume it to be the separator
8563 # otherwise default to the standard path separator (i.e. ":") - it is
8564 # assumed that no part of a normal pathname contains ";" but that should
8565 # okay in the real world where ";" in dirpaths is itself problematic.
8566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8573 need_lib_prefix=unknown
8574 hardcode_into_libs=no
8576 # when you set need_version to no, make sure it does not cause -set_version
8577 # flags to be left without arguments
8578 need_version=unknown
8583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8584 shlibpath_var=LIBPATH
8586 # AIX 3 has no versioning support, so we append a major version to the name.
8587 soname_spec='${libname}${release}${shared_ext}$major'
8594 hardcode_into_libs=yes
8595 if test "$host_cpu" = ia64; then
8596 # AIX 5 supports IA64
8597 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8598 shlibpath_var=LD_LIBRARY_PATH
8600 # With GCC up to 2.95.x, collect2 would create an import file
8601 # for dependence libraries. The import file would start with
8602 # the line `#! .'. This would cause the generated library to
8603 # depend on `.', always an invalid library. This was fixed in
8604 # development snapshots of GCC prior to 3.0.
8606 aix4 | aix4.[01] | aix4.[01].*)
8607 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8609 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8616 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8617 # soname into executable. Probably we can add versioning support to
8618 # collect2, so additional links can be useful in future.
8619 if test "$aix_use_runtimelinking" = yes; then
8620 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8621 # instead of lib<name>.a to let people know that these are not
8622 # typical AIX shared libraries.
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8625 # We preserve .a as extension for shared libraries through AIX4.2
8626 # and later when we are not doing run time linking.
8627 library_names_spec='${libname}${release}.a $libname.a'
8628 soname_spec='${libname}${release}${shared_ext}$major'
8630 shlibpath_var=LIBPATH
8635 library_names_spec='$libname.ixlibrary $libname.a'
8636 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8637 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'
8641 library_names_spec='${libname}${shared_ext}'
8642 dynamic_linker="$host_os ld.so"
8643 shlibpath_var=LIBRARY_PATH
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650 soname_spec='${libname}${release}${shared_ext}$major'
8651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8652 shlibpath_var=LD_LIBRARY_PATH
8653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8655 # the default ld.so.conf also contains /usr/contrib/lib and
8656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8657 # libtool to hard-code these into programs
8660 cygwin* | mingw* | pw32*)
8661 version_type=windows
8666 case $GCC,$host_os in
8667 yes,cygwin* | yes,mingw* | yes,pw32*)
8668 library_names_spec='$libname.dll.a'
8669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8670 postinstall_cmds='base_file=`basename \${file}`~
8671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8672 dldir=$destdir/`dirname \$dlpath`~
8673 test -d \$dldir || mkdir -p \$dldir~
8674 $install_prog $dir/$dlname \$dldir/$dlname~
8675 chmod a+x \$dldir/$dlname'
8676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8677 dlpath=$dir/\$dldll~
8679 shlibpath_overrides_runpath=yes
8683 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8684 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8685 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8688 # MinGW DLLs use traditional 'lib' prefix
8689 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8690 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8691 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8692 # It is most probably a Windows format PATH printed by
8693 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8694 # path with ; separators, and with drive letters. We can handle the
8695 # drive letters (cygwin fileutils understands them), so leave them,
8696 # especially as we might pass files found there to a mingw objdump,
8697 # which wouldn't understand a cygwinified path. Ahh.
8698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8704 # pw32 DLLs use 'pw' prefix rather than 'lib'
8705 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8711 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8714 dynamic_linker='Win32 ld.exe'
8715 # FIXME: first we should search . and the directory the executable is in
8719 darwin* | rhapsody*)
8720 dynamic_linker="$host_os dyld"
8724 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8725 soname_spec='${libname}${release}${major}$shared_ext'
8726 shlibpath_overrides_runpath=yes
8727 shlibpath_var=DYLD_LIBRARY_PATH
8728 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8729 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8730 if test "$GCC" = yes; then
8731 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"`
8733 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 shlibpath_var=LD_LIBRARY_PATH
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=no
8759 hardcode_into_libs=yes
8760 dynamic_linker='GNU ld.so'
8763 freebsd* | dragonfly*)
8764 # DragonFly does not have aout. When/if they implement a new
8765 # versioning mechanism, adjust this.
8766 if test -x /usr/bin/objformat; then
8767 objformat=`/usr/bin/objformat`
8770 freebsd[123]*) objformat=aout ;;
8774 version_type=freebsd-$objformat
8775 case $version_type in
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8786 shlibpath_var=LD_LIBRARY_PATH
8789 shlibpath_overrides_runpath=yes
8791 freebsd3.[01]* | freebsdelf3.[01]*)
8792 shlibpath_overrides_runpath=yes
8793 hardcode_into_libs=yes
8795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8797 shlibpath_overrides_runpath=no
8798 hardcode_into_libs=yes
8800 freebsd*) # from 4.6 on
8801 shlibpath_overrides_runpath=yes
8802 hardcode_into_libs=yes
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 hardcode_into_libs=yes
8817 hpux9* | hpux10* | hpux11*)
8818 # Give a soname corresponding to the major version so that dld.sl refuses to
8819 # link against other versions.
8826 hardcode_into_libs=yes
8827 dynamic_linker="$host_os dld.so"
8828 shlibpath_var=LD_LIBRARY_PATH
8829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 if test "X$HPUX_IA64_MODE" = X32; then
8833 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8835 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8841 hardcode_into_libs=yes
8842 dynamic_linker="$host_os dld.sl"
8843 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8852 dynamic_linker="$host_os dld.sl"
8853 shlibpath_var=SHLIB_PATH
8854 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8859 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8860 postinstall_cmds='chmod 555 $lib'
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8868 soname_spec='${libname}${release}${shared_ext}$major'
8869 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8870 shlibpath_var=LD_LIBRARY_PATH
8871 shlibpath_overrides_runpath=no
8872 hardcode_into_libs=yes
8875 irix5* | irix6* | nonstopux*)
8877 nonstopux*) version_type=nonstopux ;;
8879 if test "$lt_cv_prog_gnu_ld" = yes; then
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8890 irix5* | nonstopux*)
8894 case $LD in # libtool.m4 will add one of these switches to LD
8895 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8896 libsuff= shlibsuff= libmagic=32-bit;;
8897 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8898 libsuff=32 shlibsuff=N32 libmagic=N32;;
8899 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8900 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8901 *) libsuff= shlibsuff= libmagic=never-match;;
8905 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8906 shlibpath_overrides_runpath=no
8907 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8908 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8909 hardcode_into_libs=yes
8912 # No shared lib support for Linux oldld, aout, or coff.
8913 linux*oldld* | linux*aout* | linux*coff*)
8917 # This must be Linux ELF.
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=no
8927 # This implies no fast_install, which is unacceptable.
8928 # Some rework will be needed to allow for fast_install
8929 # before this can be enabled.
8930 hardcode_into_libs=yes
8932 # Append ld.so.conf contents to the search path
8933 if test -f /etc/ld.so.conf; then
8934 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' ' '`
8935 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8938 # We used to test for /lib/ld.so.1 and disable shared libraries on
8939 # powerpc, because MkLinux only supported shared libraries with the
8940 # GNU dynamic linker. Since this was broken with cross compilers,
8941 # most powerpc-linux boxes support dynamic linking these days and
8942 # people can always --disable-shared, the test was removed, and we
8943 # assume the GNU/Linux dynamic linker is in use.
8944 dynamic_linker='GNU/Linux ld.so'
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 dynamic_linker='GNU ld.so'
8963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8966 dynamic_linker='NetBSD (a.out) ld.so'
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 dynamic_linker='NetBSD ld.elf_so'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=yes
8974 hardcode_into_libs=yes
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=yes
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes
8996 sys_lib_dlsearch_path_spec="/usr/lib"
8998 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9000 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9001 *) need_version=no ;;
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9008 openbsd2.[89] | openbsd2.[89].*)
9009 shlibpath_overrides_runpath=no
9012 shlibpath_overrides_runpath=yes
9016 shlibpath_overrides_runpath=yes
9021 libname_spec='$name'
9024 library_names_spec='$libname${shared_ext} $libname.a'
9025 dynamic_linker='OS/2 ld.exe'
9026 shlibpath_var=LIBPATH
9029 osf3* | osf4* | osf5*)
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9037 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 shlibpath_overrides_runpath=yes
9048 hardcode_into_libs=yes
9049 # ldd complains unless libraries are executable
9050 postinstall_cmds='chmod +x $lib'
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9059 if test "$with_gnu_ld" = yes; then
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 case $host_vendor in
9072 shlibpath_overrides_runpath=no
9074 export_dynamic_flag_spec='${wl}-Blargedynsym'
9075 runpath_var=LD_RUN_PATH
9083 shlibpath_overrides_runpath=no
9084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9090 if test -d /usr/nec ;then
9092 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9093 soname_spec='$libname${shared_ext}.$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9099 version_type=freebsd-elf
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 hardcode_into_libs=yes
9106 if test "$with_gnu_ld" = yes; then
9107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9108 shlibpath_overrides_runpath=no
9110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9111 shlibpath_overrides_runpath=yes
9114 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9118 sys_lib_dlsearch_path_spec='/usr/lib'
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 shlibpath_var=LD_LIBRARY_PATH
9132 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9133 echo "${ECHO_T}$dynamic_linker" >&6; }
9134 test "$dynamic_linker" = no && can_build_shared=no
9136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9137 if test "$GCC" = yes; then
9138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9142 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9143 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9144 if test "${libltdl_cv_shlibext+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 eval libltdl_cv_shlibext=$shrext_cmds
9152 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9153 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9154 if test -n "$libltdl_cv_shlibext"; then
9156 cat >>confdefs.h <<_ACEOF
9157 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9163 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9164 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9165 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 libltdl_cv_shlibpath_var="$shlibpath_var"
9170 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9171 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9172 if test -n "$libltdl_cv_shlibpath_var"; then
9174 cat >>confdefs.h <<_ACEOF
9175 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9181 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9182 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9183 if test "${libltdl_cv_sys_search_path+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9188 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9189 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9190 if test -n "$libltdl_cv_sys_search_path"; then
9192 for dir in $libltdl_cv_sys_search_path; do
9193 if test -z "$sys_search_path"; then
9194 sys_search_path="$dir"
9196 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9200 cat >>confdefs.h <<_ACEOF
9201 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9206 { echo "$as_me:$LINENO: checking for objdir" >&5
9207 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9208 if test "${libltdl_cv_objdir+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 libltdl_cv_objdir="$objdir"
9212 if test -n "$objdir"; then
9215 rm -f .libs 2>/dev/null
9216 mkdir .libs 2>/dev/null
9217 if test -d .libs; then
9218 libltdl_cv_objdir=.libs
9220 # MS-DOS does not allow filenames that begin with a dot.
9221 libltdl_cv_objdir=_libs
9223 rmdir .libs 2>/dev/null
9227 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9228 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9230 cat >>confdefs.h <<_ACEOF
9231 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9239 # Check for command to grab the raw symbol name followed by C symbol from nm.
9240 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9241 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9242 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 # These are sane defaults that work on at least a few old systems.
9247 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9249 # Character class describing NM global symbol codes.
9250 symcode='[BCDEGRST]'
9252 # Regexp to match symbols that can be accessed directly from C.
9253 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9255 # Transform an extracted symbol line into a proper C declaration
9256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9258 # Transform an extracted symbol line into symbol name and symbol address
9259 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'"
9261 # Define system-specific variables.
9266 cygwin* | mingw* | pw32*)
9267 symcode='[ABCDGISTW]'
9269 hpux*) # Its linker distinguishes data from code symbols
9270 if test "$host_cpu" = ia64; then
9271 symcode='[ABCDEGRST]'
9273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9274 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'"
9277 if test "$host_cpu" = ia64; then
9278 symcode='[ABCDGIRSTW]'
9279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9280 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'"
9284 symcode='[BCDEGRST]'
9287 symcode='[BCDEGQRST]'
9298 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9306 # Handle CRLF in mingw tool chain
9310 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9314 # If we're using GNU nm, then use its standard symbol codes.
9315 case `$NM -V 2>&1` in
9316 *GNU* | *'with BFD'*)
9317 symcode='[ABCDGIRSTW]' ;;
9320 # Try without a prefix undercore, then with it.
9321 for ac_symprfx in "" "_"; do
9323 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9324 symxfrm="\\1 $ac_symprfx\\2 \\2"
9326 # Write the raw and C identifiers.
9327 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9329 # Check to see that the pipe works correctly.
9333 cat > conftest.$ac_ext <<EOF
9338 void nm_test_func(){}
9342 int main(){nm_test_var='a';nm_test_func();return(0);}
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346 (eval $ac_compile) 2>&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; then
9350 # Now try to grab the symbols.
9352 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9353 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } && test -s "$nlist"; then
9357 # Try sorting and uniquifying the output.
9358 if sort "$nlist" | uniq > "$nlist"T; then
9359 mv -f "$nlist"T "$nlist"
9364 # Make sure that we snagged all the symbols we need.
9365 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9366 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9367 cat <<EOF > conftest.$ac_ext
9373 # Now generate the symbol file.
9374 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9376 cat <<EOF >> conftest.$ac_ext
9377 #if defined (__STDC__) && __STDC__
9378 # define lt_ptr_t void *
9380 # define lt_ptr_t char *
9384 /* The mapping between symbol names and symbols. */
9389 lt_preloaded_symbols[] =
9392 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9393 cat <<\EOF >> conftest.$ac_ext
9401 # Now try linking the two files.
9402 mv conftest.$ac_objext conftstm.$ac_objext
9403 lt_save_LIBS="$LIBS"
9404 lt_save_CFLAGS="$CFLAGS"
9405 LIBS="conftstm.$ac_objext"
9406 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9414 LIBS="$lt_save_LIBS"
9415 CFLAGS="$lt_save_CFLAGS"
9417 echo "cannot find nm_test_func in $nlist" >&5
9420 echo "cannot find nm_test_var in $nlist" >&5
9423 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9426 echo "$progname: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9429 rm -f conftest* conftst*
9431 # Do not use the global_symbol_pipe unless it works.
9432 if test "$pipe_works" = yes; then
9435 lt_cv_sys_global_symbol_pipe=
9441 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9442 lt_cv_sys_global_symbol_to_cdecl=
9444 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9445 { echo "$as_me:$LINENO: result: failed" >&5
9446 echo "${ECHO_T}failed" >&6; }
9448 { echo "$as_me:$LINENO: result: ok" >&5
9449 echo "${ECHO_T}ok" >&6; }
9453 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9454 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9455 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9459 libltdl_cv_preloaded_symbols=yes
9461 libltdl_cv_preloaded_symbols=no
9465 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9466 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9467 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9469 cat >>confdefs.h <<\_ACEOF
9470 #define HAVE_PRELOADED_SYMBOLS 1
9478 ac_cpp='$CPP $CPPFLAGS'
9479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9484 { echo "$as_me:$LINENO: checking for shl_load" >&5
9485 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9486 if test "${ac_cv_func_shl_load+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 cat >conftest.$ac_ext <<_ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9495 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497 #define shl_load innocuous_shl_load
9499 /* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char shl_load (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9505 # include <limits.h>
9507 # include <assert.h>
9512 /* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9519 /* The GNU C library defines this for functions which it implements
9520 to always fail with ENOSYS. Some functions are actually named
9521 something starting with __ and the normal name is an alias. */
9522 #if defined __stub_shl_load || defined __stub___shl_load
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (ac_try="$ac_link"
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_link") 2>conftest.er1
9543 grep -v '^ *+' conftest.er1 >conftest.err
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9549 { (case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_try") 2>&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_try") 2>&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_func_shl_load=yes
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9573 ac_cv_func_shl_load=no
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9579 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9580 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9581 if test $ac_cv_func_shl_load = yes; then
9583 cat >>confdefs.h <<\_ACEOF
9584 #define HAVE_SHL_LOAD 1
9588 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9589 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9590 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 ac_check_lib_save_LIBS=$LIBS
9595 cat >conftest.$ac_ext <<_ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9617 rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (ac_try="$ac_link"
9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_link") 2>conftest.er1
9626 grep -v '^ *+' conftest.er1 >conftest.err
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9632 { (case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_try") 2>&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest$ac_exeext'
9642 { (case "(($ac_try" in
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647 (eval "$ac_try") 2>&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_lib_dld_shl_load=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_cv_lib_dld_shl_load=no
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 LIBS=$ac_check_lib_save_LIBS
9663 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9664 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9665 if test $ac_cv_lib_dld_shl_load = yes; then
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_SHL_LOAD 1
9671 LIBADD_DL="$LIBADD_DL -ldld"
9673 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 ac_check_lib_save_LIBS=$LIBS
9680 cat >conftest.$ac_ext <<_ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>conftest.er1
9711 grep -v '^ *+' conftest.er1 >conftest.err
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_try") 2>&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736 ac_cv_lib_dl_dlopen=yes
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_cv_lib_dl_dlopen=no
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_check_lib_save_LIBS
9748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9749 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9750 if test $ac_cv_lib_dl_dlopen = yes; then
9752 cat >>confdefs.h <<\_ACEOF
9753 #define HAVE_LIBDL 1
9756 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9758 cat >conftest.$ac_ext <<_ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_link") 2>conftest.er1
9785 grep -v '^ *+' conftest.er1 >conftest.err
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9791 { (case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_try") 2>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_try") 2>&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9811 cat >>confdefs.h <<\_ACEOF
9812 #define HAVE_LIBDL 1
9814 libltdl_cv_func_dlopen="yes"
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9820 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9821 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 ac_check_lib_save_LIBS=$LIBS
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_link") 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9863 { (case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_try") 2>&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; } &&
9872 { ac_try='test -s conftest$ac_exeext'
9873 { (case "(($ac_try" in
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878 (eval "$ac_try") 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_cv_lib_svld_dlopen=yes
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9887 ac_cv_lib_svld_dlopen=no
9890 rm -f core conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9892 LIBS=$ac_check_lib_save_LIBS
9894 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9895 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9896 if test $ac_cv_lib_svld_dlopen = yes; then
9898 cat >>confdefs.h <<\_ACEOF
9899 #define HAVE_LIBDL 1
9902 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9904 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9905 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9906 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 ac_check_lib_save_LIBS=$LIBS
9911 cat >conftest.$ac_ext <<_ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9918 /* Override any GCC internal prototype to avoid an error.
9919 Use char because int might match the return type of a GCC
9920 builtin and then its argument prototype would still apply. */
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (ac_try="$ac_link"
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_link") 2>conftest.er1
9942 grep -v '^ *+' conftest.er1 >conftest.err
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9948 { (case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_try") 2>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; } &&
9957 { ac_try='test -s conftest$ac_exeext'
9958 { (case "(($ac_try" in
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_try") 2>&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_lib_dld_dld_link=yes
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 ac_cv_lib_dld_dld_link=no
9975 rm -f core conftest.err conftest.$ac_objext \
9976 conftest$ac_exeext conftest.$ac_ext
9977 LIBS=$ac_check_lib_save_LIBS
9979 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9980 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9981 if test $ac_cv_lib_dld_dld_link = yes; then
9983 cat >>confdefs.h <<\_ACEOF
9987 LIBADD_DL="$LIBADD_DL -ldld"
9989 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9990 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9991 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10002 #define _dyld_func_lookup innocuous__dyld_func_lookup
10004 /* System header to define __stub macros and hopefully few prototypes,
10005 which can conflict with char _dyld_func_lookup (); below.
10006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007 <limits.h> exists even on freestanding compilers. */
10010 # include <limits.h>
10012 # include <assert.h>
10015 #undef _dyld_func_lookup
10017 /* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
10023 char _dyld_func_lookup ();
10024 /* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10034 return _dyld_func_lookup ();
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10048 grep -v '^ *+' conftest.er1 >conftest.err
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_func__dyld_func_lookup=yes
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cv_func__dyld_func_lookup=no
10081 rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10084 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10085 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10086 if test $ac_cv_func__dyld_func_lookup = yes; then
10088 cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_DYLD 1
10103 rm -f core conftest.err conftest.$ac_objext \
10104 conftest$ac_exeext conftest.$ac_ext
10115 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10117 lt_save_LIBS="$LIBS"
10118 LIBS="$LIBS $LIBADD_DL"
10120 for ac_func in dlerror
10122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 cat >conftest.$ac_ext <<_ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10136 #define $ac_func innocuous_$ac_func
10138 /* System header to define __stub macros and hopefully few prototypes,
10139 which can conflict with char $ac_func (); below.
10140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10141 <limits.h> exists even on freestanding compilers. */
10144 # include <limits.h>
10146 # include <assert.h>
10151 /* Override any GCC internal prototype to avoid an error.
10152 Use char because int might match the return type of a GCC
10153 builtin and then its argument prototype would still apply. */
10158 /* The GNU C library defines this for functions which it implements
10159 to always fail with ENOSYS. Some functions are actually named
10160 something starting with __ and the normal name is an alias. */
10161 #if defined __stub_$ac_func || defined __stub___$ac_func
10168 return $ac_func ();
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (ac_try="$ac_link"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_link") 2>conftest.er1
10182 grep -v '^ *+' conftest.er1 >conftest.err
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
10187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10188 { (case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_try") 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; } &&
10197 { ac_try='test -s conftest$ac_exeext'
10198 { (case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_try") 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 eval "$as_ac_var=yes"
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 eval "$as_ac_var=no"
10215 rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10218 ac_res=`eval echo '${'$as_ac_var'}'`
10219 { echo "$as_me:$LINENO: result: $ac_res" >&5
10220 echo "${ECHO_T}$ac_res" >&6; }
10221 if test `eval echo '${'$as_ac_var'}'` = yes; then
10222 cat >>confdefs.h <<_ACEOF
10223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10229 LIBS="$lt_save_LIBS"
10232 ac_cpp='$CPP $CPPFLAGS'
10233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10239 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10240 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10241 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 ac_cv_sys_symbol_underscore=no
10245 cat > conftest.$ac_ext <<EOF
10246 void nm_test_func(){}
10247 int main(){nm_test_func;return 0;}
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; then
10254 # Now try to grab the symbols.
10255 ac_nlist=conftest.nm
10256 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10257 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && test -s "$ac_nlist"; then
10261 # See whether the symbols have a leading underscore.
10262 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10263 ac_cv_sys_symbol_underscore=yes
10265 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10268 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10272 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10275 echo "configure: failed program was:" >&5
10281 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10282 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10285 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10286 if test x"$libltdl_cv_func_dlopen" = xyes ||
10287 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10288 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10289 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10290 if test "${libltdl_cv_need_uscore+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 libltdl_cv_need_uscore=unknown
10295 LIBS="$LIBS $LIBADD_DL"
10296 if test "$cross_compiling" = yes; then :
10297 libltdl_cv_need_uscore=cross
10299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10300 lt_status=$lt_dlunknown
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10302 "configure"
10303 #include "confdefs.h"
10312 # define LT_DLGLOBAL RTLD_GLOBAL
10315 # define LT_DLGLOBAL DL_GLOBAL
10317 # define LT_DLGLOBAL 0
10321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10322 find out it does not work in some platform. */
10323 #ifndef LT_DLLAZY_OR_NOW
10325 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10328 # define LT_DLLAZY_OR_NOW DL_LAZY
10331 # define LT_DLLAZY_OR_NOW RTLD_NOW
10334 # define LT_DLLAZY_OR_NOW DL_NOW
10336 # define LT_DLLAZY_OR_NOW 0
10344 extern "C" void exit (int);
10347 void fnord() { int i=42;}
10350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351 int status = $lt_dlunknown;
10355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10357 /* dlclose (self); */
10365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10366 (eval $ac_link) 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10370 (./conftest; exit; ) >&5 2>/dev/null
10372 case x$lt_status in
10373 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10374 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10375 x$lt_dlunknown|x*) ;;
10378 # compilation failed
10387 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10388 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10392 if test x"$libltdl_cv_need_uscore" = xyes; then
10394 cat >>confdefs.h <<\_ACEOF
10395 #define NEED_USCORE 1
10401 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10402 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10403 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 # PORTME does your system automatically load deplibs for dlopen?
10407 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10408 # For now, we just catch OSes we know something about -- in the
10409 # future, we'll try test this programmatically.
10410 libltdl_cv_sys_dlopen_deplibs=unknown
10412 aix3*|aix4.1.*|aix4.2.*)
10413 # Unknown whether this is true for these versions of AIX, but
10414 # we want this `case' here to explicitly catch those versions.
10415 libltdl_cv_sys_dlopen_deplibs=unknown
10418 libltdl_cv_sys_dlopen_deplibs=yes
10421 # Assuming the user has installed a libdl from somewhere, this is true
10422 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10423 libltdl_cv_sys_dlopen_deplibs=yes
10425 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10426 # GNU and its variants, using gnu ld.so (Glibc)
10427 libltdl_cv_sys_dlopen_deplibs=yes
10430 libltdl_cv_sys_dlopen_deplibs=yes
10433 libltdl_cv_sys_dlopen_deplibs=yes
10435 irix[12345]*|irix6.[01]*)
10436 # Catch all versions of IRIX before 6.2, and indicate that we don't
10437 # know how it worked for any of those versions.
10438 libltdl_cv_sys_dlopen_deplibs=unknown
10441 # The case above catches anything before 6.2, and it's known that
10442 # at 6.2 and later dlopen does load deplibs.
10443 libltdl_cv_sys_dlopen_deplibs=yes
10446 libltdl_cv_sys_dlopen_deplibs=yes
10449 libltdl_cv_sys_dlopen_deplibs=yes
10452 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10453 # it did *not* use an RPATH in a shared library to find objects the
10454 # library depends on, so we explictly say `no'.
10455 libltdl_cv_sys_dlopen_deplibs=no
10457 osf5.0|osf5.0a|osf5.1)
10458 # dlopen *does* load deplibs and with the right loader patch applied
10459 # it even uses RPATH in a shared library to search for shared objects
10460 # that the library depends on, but there's no easy way to know if that
10461 # patch is installed. Since this is the case, all we can really
10462 # say is unknown -- it depends on the patch being installed. If
10463 # it is, this changes to `yes'. Without it, it would be `no'.
10464 libltdl_cv_sys_dlopen_deplibs=unknown
10467 # the two cases above should catch all versions of osf <= 5.1. Read
10468 # the comments above for what we know about them.
10469 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10470 # is used to find them so we can finally say `yes'.
10471 libltdl_cv_sys_dlopen_deplibs=yes
10474 libltdl_cv_sys_dlopen_deplibs=yes
10476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10477 libltdl_cv_sys_dlopen_deplibs=yes
10482 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10483 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10484 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10486 cat >>confdefs.h <<\_ACEOF
10487 #define LTDL_DLOPEN_DEPLIBS 1
10493 for ac_header in argz.h
10495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 ac_res=`eval echo '${'$as_ac_Header'}'`
10503 { echo "$as_me:$LINENO: result: $ac_res" >&5
10504 echo "${ECHO_T}$ac_res" >&6; }
10506 # Is the header compilable?
10507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 $ac_includes_default
10516 #include <$ac_header>
10518 rm -f conftest.$ac_objext
10519 if { (ac_try="$ac_compile"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_compile") 2>conftest.er1
10527 grep -v '^ *+' conftest.er1 >conftest.err
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
10532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10533 { (case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_try") 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_try") 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 ac_header_compiler=yes
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ac_header_compiler=no
10560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10562 echo "${ECHO_T}$ac_header_compiler" >&6; }
10564 # Is the header present?
10565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10567 cat >conftest.$ac_ext <<_ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 #include <$ac_header>
10575 if { (ac_try="$ac_cpp conftest.$ac_ext"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } >/dev/null; then
10588 if test -s conftest.err; then
10589 ac_cpp_err=$ac_c_preproc_warn_flag
10590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10597 if test -z "$ac_cpp_err"; then
10598 ac_header_preproc=yes
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 ac_header_preproc=no
10606 rm -f conftest.err conftest.$ac_ext
10607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10608 echo "${ECHO_T}$ac_header_preproc" >&6; }
10610 # So? What about this header?
10611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10617 ac_header_preproc=yes
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10633 ## ----------------------------------- ##
10634 ## Report this to llvmbugs@cs.uiuc.edu ##
10635 ## ----------------------------------- ##
10637 ) | sed "s/^/$as_me: WARNING: /" >&2
10640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 eval "$as_ac_Header=\$ac_header_preproc"
10647 ac_res=`eval echo '${'$as_ac_Header'}'`
10648 { echo "$as_me:$LINENO: result: $ac_res" >&5
10649 echo "${ECHO_T}$ac_res" >&6; }
10652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10653 cat >>confdefs.h <<_ACEOF
10654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10662 { echo "$as_me:$LINENO: checking for error_t" >&5
10663 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10664 if test "${ac_cv_type_error_t+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 cat >conftest.$ac_ext <<_ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10677 typedef error_t ac__type_new_;
10681 if ((ac__type_new_ *) 0)
10683 if (sizeof (ac__type_new_))
10689 rm -f conftest.$ac_objext
10690 if { (ac_try="$ac_compile"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_compile") 2>conftest.er1
10698 grep -v '^ *+' conftest.er1 >conftest.err
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_try") 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest.$ac_objext'
10714 { (case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_try") 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10723 ac_cv_type_error_t=yes
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 ac_cv_type_error_t=no
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10734 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10735 if test $ac_cv_type_error_t = yes; then
10737 cat >>confdefs.h <<_ACEOF
10738 #define HAVE_ERROR_T 1
10744 cat >>confdefs.h <<\_ACEOF
10745 #define error_t int
10756 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10772 #define $ac_func innocuous_$ac_func
10774 /* System header to define __stub macros and hopefully few prototypes,
10775 which can conflict with char $ac_func (); below.
10776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10777 <limits.h> exists even on freestanding compilers. */
10780 # include <limits.h>
10782 # include <assert.h>
10787 /* Override any GCC internal prototype to avoid an error.
10788 Use char because int might match the return type of a GCC
10789 builtin and then its argument prototype would still apply. */
10794 /* The GNU C library defines this for functions which it implements
10795 to always fail with ENOSYS. Some functions are actually named
10796 something starting with __ and the normal name is an alias. */
10797 #if defined __stub_$ac_func || defined __stub___$ac_func
10804 return $ac_func ();
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
10818 grep -v '^ *+' conftest.er1 >conftest.err
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try='test -s conftest$ac_exeext'
10834 { (case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_try") 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 eval "$as_ac_var=yes"
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 eval "$as_ac_var=no"
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10854 ac_res=`eval echo '${'$as_ac_var'}'`
10855 { echo "$as_me:$LINENO: result: $ac_res" >&5
10856 echo "${ECHO_T}$ac_res" >&6; }
10857 if test `eval echo '${'$as_ac_var'}'` = yes; then
10858 cat >>confdefs.h <<_ACEOF
10859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10892 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 ac_res=`eval echo '${'$as_ac_Header'}'`
10903 { echo "$as_me:$LINENO: result: $ac_res" >&5
10904 echo "${ECHO_T}$ac_res" >&6; }
10906 # Is the header compilable?
10907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10909 cat >conftest.$ac_ext <<_ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 $ac_includes_default
10916 #include <$ac_header>
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest.$ac_objext'
10943 { (case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_try") 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_header_compiler=yes
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 ac_header_compiler=no
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10962 echo "${ECHO_T}$ac_header_compiler" >&6; }
10964 # Is the header present?
10965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10967 cat >conftest.$ac_ext <<_ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973 #include <$ac_header>
10975 if { (ac_try="$ac_cpp conftest.$ac_ext"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10983 grep -v '^ *+' conftest.er1 >conftest.err
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } >/dev/null; then
10988 if test -s conftest.err; then
10989 ac_cpp_err=$ac_c_preproc_warn_flag
10990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10997 if test -z "$ac_cpp_err"; then
10998 ac_header_preproc=yes
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ac_header_preproc=no
11006 rm -f conftest.err conftest.$ac_ext
11007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11008 echo "${ECHO_T}$ac_header_preproc" >&6; }
11010 # So? What about this header?
11011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11017 ac_header_preproc=yes
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11033 ## ----------------------------------- ##
11034 ## Report this to llvmbugs@cs.uiuc.edu ##
11035 ## ----------------------------------- ##
11037 ) | sed "s/^/$as_me: WARNING: /" >&2
11040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 eval "$as_ac_Header=\$ac_header_preproc"
11047 ac_res=`eval echo '${'$as_ac_Header'}'`
11048 { echo "$as_me:$LINENO: result: $ac_res" >&5
11049 echo "${ECHO_T}$ac_res" >&6; }
11052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11053 cat >>confdefs.h <<_ACEOF
11054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11065 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 ac_res=`eval echo '${'$as_ac_Header'}'`
11075 { echo "$as_me:$LINENO: result: $ac_res" >&5
11076 echo "${ECHO_T}$ac_res" >&6; }
11078 # Is the header compilable?
11079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11081 cat >conftest.$ac_ext <<_ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 $ac_includes_default
11088 #include <$ac_header>
11090 rm -f conftest.$ac_objext
11091 if { (ac_try="$ac_compile"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_compile") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1 >conftest.err
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest.$ac_objext'
11115 { (case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_try") 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_header_compiler=yes
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 ac_header_compiler=no
11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11134 echo "${ECHO_T}$ac_header_compiler" >&6; }
11136 # Is the header present?
11137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11139 cat >conftest.$ac_ext <<_ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 #include <$ac_header>
11147 if { (ac_try="$ac_cpp conftest.$ac_ext"
11148 case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } >/dev/null; then
11160 if test -s conftest.err; then
11161 ac_cpp_err=$ac_c_preproc_warn_flag
11162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11169 if test -z "$ac_cpp_err"; then
11170 ac_header_preproc=yes
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 ac_header_preproc=no
11178 rm -f conftest.err conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11180 echo "${ECHO_T}$ac_header_preproc" >&6; }
11182 # So? What about this header?
11183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11189 ac_header_preproc=yes
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11205 ## ----------------------------------- ##
11206 ## Report this to llvmbugs@cs.uiuc.edu ##
11207 ## ----------------------------------- ##
11209 ) | sed "s/^/$as_me: WARNING: /" >&2
11212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 eval "$as_ac_Header=\$ac_header_preproc"
11219 ac_res=`eval echo '${'$as_ac_Header'}'`
11220 { echo "$as_me:$LINENO: result: $ac_res" >&5
11221 echo "${ECHO_T}$ac_res" >&6; }
11224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11225 cat >>confdefs.h <<_ACEOF
11226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11235 for ac_header in string.h strings.h
11237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 ac_res=`eval echo '${'$as_ac_Header'}'`
11245 { echo "$as_me:$LINENO: result: $ac_res" >&5
11246 echo "${ECHO_T}$ac_res" >&6; }
11248 # Is the header compilable?
11249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11251 cat >conftest.$ac_ext <<_ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 $ac_includes_default
11258 #include <$ac_header>
11260 rm -f conftest.$ac_objext
11261 if { (ac_try="$ac_compile"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_compile") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
11285 { (case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_try") 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_header_compiler=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ac_header_compiler=no
11302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11304 echo "${ECHO_T}$ac_header_compiler" >&6; }
11306 # Is the header present?
11307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <$ac_header>
11317 if { (ac_try="$ac_cpp conftest.$ac_ext"
11318 case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11325 grep -v '^ *+' conftest.er1 >conftest.err
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } >/dev/null; then
11330 if test -s conftest.err; then
11331 ac_cpp_err=$ac_c_preproc_warn_flag
11332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11339 if test -z "$ac_cpp_err"; then
11340 ac_header_preproc=yes
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_header_preproc=no
11348 rm -f conftest.err conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350 echo "${ECHO_T}$ac_header_preproc" >&6; }
11352 # So? What about this header?
11353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359 ac_header_preproc=yes
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11375 ## ----------------------------------- ##
11376 ## Report this to llvmbugs@cs.uiuc.edu ##
11377 ## ----------------------------------- ##
11379 ) | sed "s/^/$as_me: WARNING: /" >&2
11382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 eval "$as_ac_Header=\$ac_header_preproc"
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11406 for ac_func in strchr index
11408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 cat >conftest.$ac_ext <<_ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11422 #define $ac_func innocuous_$ac_func
11424 /* System header to define __stub macros and hopefully few prototypes,
11425 which can conflict with char $ac_func (); below.
11426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11427 <limits.h> exists even on freestanding compilers. */
11430 # include <limits.h>
11432 # include <assert.h>
11437 /* Override any GCC internal prototype to avoid an error.
11438 Use char because int might match the return type of a GCC
11439 builtin and then its argument prototype would still apply. */
11444 /* The GNU C library defines this for functions which it implements
11445 to always fail with ENOSYS. Some functions are actually named
11446 something starting with __ and the normal name is an alias. */
11447 #if defined __stub_$ac_func || defined __stub___$ac_func
11454 return $ac_func ();
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (ac_try="$ac_link"
11461 case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_link") 2>conftest.er1
11468 grep -v '^ *+' conftest.er1 >conftest.err
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
11473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11474 { (case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_try") 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; } &&
11483 { ac_try='test -s conftest$ac_exeext'
11484 { (case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_try") 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 eval "$as_ac_var=yes"
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11498 eval "$as_ac_var=no"
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11504 ac_res=`eval echo '${'$as_ac_var'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11507 if test `eval echo '${'$as_ac_var'}'` = yes; then
11508 cat >>confdefs.h <<_ACEOF
11509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11517 for ac_func in strrchr rindex
11519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 cat >conftest.$ac_ext <<_ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11533 #define $ac_func innocuous_$ac_func
11535 /* System header to define __stub macros and hopefully few prototypes,
11536 which can conflict with char $ac_func (); below.
11537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11538 <limits.h> exists even on freestanding compilers. */
11541 # include <limits.h>
11543 # include <assert.h>
11548 /* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11555 /* The GNU C library defines this for functions which it implements
11556 to always fail with ENOSYS. Some functions are actually named
11557 something starting with __ and the normal name is an alias. */
11558 #if defined __stub_$ac_func || defined __stub___$ac_func
11565 return $ac_func ();
11570 rm -f conftest.$ac_objext conftest$ac_exeext
11571 if { (ac_try="$ac_link"
11572 case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_link") 2>conftest.er1
11579 grep -v '^ *+' conftest.er1 >conftest.err
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest$ac_exeext'
11595 { (case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_try") 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 eval "$as_ac_var=yes"
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 eval "$as_ac_var=no"
11612 rm -f core conftest.err conftest.$ac_objext \
11613 conftest$ac_exeext conftest.$ac_ext
11615 ac_res=`eval echo '${'$as_ac_var'}'`
11616 { echo "$as_me:$LINENO: result: $ac_res" >&5
11617 echo "${ECHO_T}$ac_res" >&6; }
11618 if test `eval echo '${'$as_ac_var'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11628 for ac_func in memcpy bcopy
11630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 cat >conftest.$ac_ext <<_ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11644 #define $ac_func innocuous_$ac_func
11646 /* System header to define __stub macros and hopefully few prototypes,
11647 which can conflict with char $ac_func (); below.
11648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 <limits.h> exists even on freestanding compilers. */
11652 # include <limits.h>
11654 # include <assert.h>
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11666 /* The GNU C library defines this for functions which it implements
11667 to always fail with ENOSYS. Some functions are actually named
11668 something starting with __ and the normal name is an alias. */
11669 #if defined __stub_$ac_func || defined __stub___$ac_func
11676 return $ac_func ();
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_link") 2>conftest.er1
11690 grep -v '^ *+' conftest.er1 >conftest.err
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696 { (case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_try") 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_try") 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 eval "$as_ac_var=yes"
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 eval "$as_ac_var=no"
11723 rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11726 ac_res=`eval echo '${'$as_ac_var'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11729 if test `eval echo '${'$as_ac_var'}'` = yes; then
11730 cat >>confdefs.h <<_ACEOF
11731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11739 for ac_func in memmove strcmp
11741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 cat >conftest.$ac_ext <<_ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11755 #define $ac_func innocuous_$ac_func
11757 /* System header to define __stub macros and hopefully few prototypes,
11758 which can conflict with char $ac_func (); below.
11759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11760 <limits.h> exists even on freestanding compilers. */
11763 # include <limits.h>
11765 # include <assert.h>
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11777 /* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
11780 #if defined __stub_$ac_func || defined __stub___$ac_func
11787 return $ac_func ();
11792 rm -f conftest.$ac_objext conftest$ac_exeext
11793 if { (ac_try="$ac_link"
11794 case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_link") 2>conftest.er1
11801 grep -v '^ *+' conftest.er1 >conftest.err
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; } &&
11816 { ac_try='test -s conftest$ac_exeext'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 eval "$as_ac_var=yes"
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11831 eval "$as_ac_var=no"
11834 rm -f core conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11837 ac_res=`eval echo '${'$as_ac_var'}'`
11838 { echo "$as_me:$LINENO: result: $ac_res" >&5
11839 echo "${ECHO_T}$ac_res" >&6; }
11840 if test `eval echo '${'$as_ac_var'}'` = yes; then
11841 cat >>confdefs.h <<_ACEOF
11842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11851 for ac_func in closedir opendir readdir
11853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867 #define $ac_func innocuous_$ac_func
11869 /* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11875 # include <limits.h>
11877 # include <assert.h>
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11889 /* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892 #if defined __stub_$ac_func || defined __stub___$ac_func
11899 return $ac_func ();
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (ac_try="$ac_link"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_link") 2>conftest.er1
11913 grep -v '^ *+' conftest.er1 >conftest.err
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_try") 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 eval "$as_ac_var=yes"
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 eval "$as_ac_var=no"
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11949 ac_res=`eval echo '${'$as_ac_var'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951 echo "${ECHO_T}$ac_res" >&6; }
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11961 # Check whether --enable-shared was given.
11962 if test "${enable_shared+set}" = set; then
11963 enableval=$enable_shared; p=${PACKAGE-default}
11965 yes) enable_shared=yes ;;
11966 no) enable_shared=no ;;
11969 # Look at the argument we got. We use all the common list separators.
11970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11971 for pkg in $enableval; do
11973 if test "X$pkg" = "X$p"; then
11985 # Check whether --enable-static was given.
11986 if test "${enable_static+set}" = set; then
11987 enableval=$enable_static; p=${PACKAGE-default}
11989 yes) enable_static=yes ;;
11990 no) enable_static=no ;;
11993 # Look at the argument we got. We use all the common list separators.
11994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11995 for pkg in $enableval; do
11997 if test "X$pkg" = "X$p"; then
12009 # Check whether --enable-fast-install was given.
12010 if test "${enable_fast_install+set}" = set; then
12011 enableval=$enable_fast_install; p=${PACKAGE-default}
12013 yes) enable_fast_install=yes ;;
12014 no) enable_fast_install=no ;;
12016 enable_fast_install=no
12017 # Look at the argument we got. We use all the common list separators.
12018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12019 for pkg in $enableval; do
12021 if test "X$pkg" = "X$p"; then
12022 enable_fast_install=yes
12029 enable_fast_install=yes
12033 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12034 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12035 if test "${lt_cv_path_SED+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 # Loop through the user's path and test for sed and gsed.
12039 # Then use that list of sed's as ones to test for truncation.
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12044 test -z "$as_dir" && as_dir=.
12045 for lt_ac_prog in sed gsed; do
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12048 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12055 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12056 # along with /bin/sed that truncates output.
12057 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12058 test ! -f $lt_ac_sed && continue
12059 cat /dev/null > conftest.in
12061 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12062 # Check for GNU sed and select it if it is found.
12063 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12064 lt_cv_path_SED=$lt_ac_sed
12068 cat conftest.in conftest.in >conftest.tmp
12069 mv conftest.tmp conftest.in
12070 cp conftest.in conftest.nl
12072 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12073 cmp -s conftest.out conftest.nl || break
12074 # 10000 chars as input seems more than enough
12075 test $lt_ac_count -gt 10 && break
12076 lt_ac_count=`expr $lt_ac_count + 1`
12077 if test $lt_ac_count -gt $lt_ac_max; then
12078 lt_ac_max=$lt_ac_count
12079 lt_cv_path_SED=$lt_ac_sed
12086 SED=$lt_cv_path_SED
12087 { echo "$as_me:$LINENO: result: $SED" >&5
12088 echo "${ECHO_T}$SED" >&6; }
12091 # Check whether --with-gnu-ld was given.
12092 if test "${with_gnu_ld+set}" = set; then
12093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12099 if test "$GCC" = yes; then
12100 # Check if gcc -print-prog-name=ld gives a path.
12101 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12102 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12105 # gcc leaves a trailing carriage return which upsets mingw
12106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12111 # Accept absolute paths.
12113 re_direlt='/[^/][^/]*/\.\./'
12114 # Canonicalize the pathname of ld
12115 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12117 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12119 test -z "$LD" && LD="$ac_prog"
12122 # If it fails, then pretend we aren't using GCC.
12126 # If it is relative, then search for the first ld in PATH.
12127 with_gnu_ld=unknown
12130 elif test "$with_gnu_ld" = yes; then
12131 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12132 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12134 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12135 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12137 if test "${lt_cv_path_LD+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 if test -z "$LD"; then
12141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12142 for ac_dir in $PATH; do
12144 test -z "$ac_dir" && ac_dir=.
12145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12146 lt_cv_path_LD="$ac_dir/$ac_prog"
12147 # Check to see if the program is GNU ld. I'd rather use --version,
12148 # but apparently some variants of GNU ld only accept -v.
12149 # Break only if it was the GNU/non-GNU ld that we prefer.
12150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12151 *GNU* | *'with BFD'*)
12152 test "$with_gnu_ld" != no && break
12155 test "$with_gnu_ld" != yes && break
12162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12166 LD="$lt_cv_path_LD"
12167 if test -n "$LD"; then
12168 { echo "$as_me:$LINENO: result: $LD" >&5
12169 echo "${ECHO_T}$LD" >&6; }
12171 { echo "$as_me:$LINENO: result: no" >&5
12172 echo "${ECHO_T}no" >&6; }
12174 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12175 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12176 { (exit 1); exit 1; }; }
12177 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12178 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12179 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12183 case `$LD -v 2>&1 </dev/null` in
12184 *GNU* | *'with BFD'*)
12185 lt_cv_prog_gnu_ld=yes
12188 lt_cv_prog_gnu_ld=no
12192 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12193 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12194 with_gnu_ld=$lt_cv_prog_gnu_ld
12197 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12198 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12199 if test "${lt_cv_ld_reload_flag+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12202 lt_cv_ld_reload_flag='-r'
12204 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12205 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12206 reload_flag=$lt_cv_ld_reload_flag
12207 case $reload_flag in
12209 *) reload_flag=" $reload_flag" ;;
12211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12214 if test "$GCC" = yes; then
12215 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12222 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12223 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12224 if test "${lt_cv_deplibs_check_method+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 lt_cv_file_magic_cmd='$MAGIC_CMD'
12228 lt_cv_file_magic_test_file=
12229 lt_cv_deplibs_check_method='unknown'
12230 # Need to set the preceding variable on all platforms that support
12231 # interlibrary dependencies.
12232 # 'none' -- dependencies not supported.
12233 # `unknown' -- same as none, but documents that we really don't know.
12234 # 'pass_all' -- all dependencies passed with no checks.
12235 # 'test_compile' -- check by making test program.
12236 # 'file_magic [[regex]]' -- check by looking for files in library path
12237 # which responds to the $file_magic_cmd with a given extended regex.
12238 # If you have `file' or equivalent on your system and you're not sure
12239 # whether `pass_all' will *always* work, you probably want this one.
12243 lt_cv_deplibs_check_method=pass_all
12247 lt_cv_deplibs_check_method=pass_all
12251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12252 lt_cv_file_magic_cmd='/usr/bin/file -L'
12253 lt_cv_file_magic_test_file=/shlib/libc.so
12257 # func_win32_libid is a shell function defined in ltmain.sh
12258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12259 lt_cv_file_magic_cmd='func_win32_libid'
12263 # Base MSYS/MinGW do not provide the 'file' command needed by
12264 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12265 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12266 lt_cv_file_magic_cmd='$OBJDUMP -f'
12269 darwin* | rhapsody*)
12270 lt_cv_deplibs_check_method=pass_all
12273 freebsd* | kfreebsd*-gnu | dragonfly*)
12274 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12277 # Not sure whether the presence of OpenBSD here was a mistake.
12278 # Let's accept both of them until this is cleared up.
12279 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12280 lt_cv_file_magic_cmd=/usr/bin/file
12281 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12285 lt_cv_deplibs_check_method=pass_all
12290 lt_cv_deplibs_check_method=pass_all
12293 hpux10.20* | hpux11*)
12294 lt_cv_file_magic_cmd=/usr/bin/file
12297 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12298 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12301 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]'
12302 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12305 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12306 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12312 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12316 irix5* | irix6* | nonstopux*)
12318 *-32|*"-32 ") libmagic=32-bit;;
12319 *-n32|*"-n32 ") libmagic=N32;;
12320 *-64|*"-64 ") libmagic=64-bit;;
12321 *) libmagic=never-match;;
12323 lt_cv_deplibs_check_method=pass_all
12326 # This must be Linux ELF.
12328 lt_cv_deplibs_check_method=pass_all
12332 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12341 lt_cv_file_magic_cmd=/usr/bin/file
12342 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12346 lt_cv_deplibs_check_method=unknown
12350 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12357 osf3* | osf4* | osf5*)
12358 lt_cv_deplibs_check_method=pass_all
12362 lt_cv_deplibs_check_method=pass_all
12366 case $host_vendor in
12368 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]'
12369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12372 lt_cv_deplibs_check_method=pass_all
12375 lt_cv_file_magic_cmd='/bin/file'
12376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12379 lt_cv_file_magic_cmd='/bin/file'
12380 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12381 lt_cv_file_magic_test_file=/lib/libc.so
12384 lt_cv_deplibs_check_method=pass_all
12387 lt_cv_deplibs_check_method=pass_all
12392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12393 lt_cv_deplibs_check_method=pass_all
12398 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12399 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12400 file_magic_cmd=$lt_cv_file_magic_cmd
12401 deplibs_check_method=$lt_cv_deplibs_check_method
12402 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12406 # If no C compiler was specified, use CC.
12409 # If no C compiler flags were specified, use CFLAGS.
12410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12412 # Allow CC to be a program name with arguments.
12415 # Check whether --enable-libtool-lock was given.
12416 if test "${enable_libtool_lock+set}" = set; then
12417 enableval=$enable_libtool_lock;
12420 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12422 # Some flags need to be propagated to the compiler or linker for good
12426 # Find out which ABI we are using.
12427 echo 'int i;' > conftest.$ac_ext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429 (eval $ac_compile) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; then
12433 case `/usr/bin/file conftest.$ac_objext` in
12435 HPUX_IA64_MODE="32"
12438 HPUX_IA64_MODE="64"
12445 # Find out which ABI we are using.
12446 echo '#line 12446 "configure"' > conftest.$ac_ext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12448 (eval $ac_compile) 2>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; then
12452 if test "$lt_cv_prog_gnu_ld" = yes; then
12453 case `/usr/bin/file conftest.$ac_objext` in
12455 LD="${LD-ld} -melf32bsmip"
12458 LD="${LD-ld} -melf32bmipn32"
12461 LD="${LD-ld} -melf64bmip"
12465 case `/usr/bin/file conftest.$ac_objext` in
12481 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12482 # Find out which ABI we are using.
12483 echo 'int i;' > conftest.$ac_ext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; then
12489 case `/usr/bin/file conftest.o` in
12493 LD="${LD-ld} -m elf_i386"
12495 ppc64-*linux*|powerpc64-*linux*)
12496 LD="${LD-ld} -m elf32ppclinux"
12499 LD="${LD-ld} -m elf_s390"
12502 LD="${LD-ld} -m elf32_sparc"
12509 LD="${LD-ld} -m elf_x86_64"
12511 ppc*-*linux*|powerpc*-*linux*)
12512 LD="${LD-ld} -m elf64ppc"
12515 LD="${LD-ld} -m elf64_s390"
12518 LD="${LD-ld} -m elf64_sparc"
12528 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12529 SAVE_CFLAGS="$CFLAGS"
12530 CFLAGS="$CFLAGS -belf"
12531 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12532 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12533 if test "${lt_cv_cc_needs_belf+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 ac_cpp='$CPP $CPPFLAGS'
12538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12542 cat >conftest.$ac_ext <<_ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (ac_try="$ac_link"
12559 case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_link") 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12572 { (case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_try") 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest$ac_exeext'
12582 { (case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_try") 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 lt_cv_cc_needs_belf=yes
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12596 lt_cv_cc_needs_belf=no
12599 rm -f core conftest.err conftest.$ac_objext \
12600 conftest$ac_exeext conftest.$ac_ext
12602 ac_cpp='$CPP $CPPFLAGS'
12603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12608 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12609 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12610 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12611 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12612 CFLAGS="$SAVE_CFLAGS"
12616 # Find out which ABI we are using.
12617 echo 'int i;' > conftest.$ac_ext
12618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12619 (eval $ac_compile) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; then
12623 case `/usr/bin/file conftest.o` in
12625 case $lt_cv_prog_gnu_ld in
12626 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12627 *) LD="${LD-ld} -64" ;;
12638 need_locks="$enable_libtool_lock"
12643 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12644 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12645 (test "X$CXX" != "Xg++"))) ; then
12647 ac_cpp='$CXXCPP $CPPFLAGS'
12648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12651 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12652 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12653 if test -z "$CXXCPP"; then
12654 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 # Double quotes because CXXCPP needs to be expanded
12658 for CXXCPP in "$CXX -E" "/lib/cpp"
12660 ac_preproc_ok=false
12661 for ac_cxx_preproc_warn_flag in '' yes
12663 # Use a header file that comes with gcc, so configuring glibc
12664 # with a fresh cross-compiler works.
12665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12666 # <limits.h> exists even on freestanding compilers.
12667 # On the NeXT, cc -E runs the code through the compiler's parser,
12668 # not just through cpp. "Syntax error" is here to catch this case.
12669 cat >conftest.$ac_ext <<_ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 # include <limits.h>
12678 # include <assert.h>
12682 if { (ac_try="$ac_cpp conftest.$ac_ext"
12683 case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12690 grep -v '^ *+' conftest.er1 >conftest.err
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } >/dev/null; then
12695 if test -s conftest.err; then
12696 ac_cpp_err=$ac_cxx_preproc_warn_flag
12697 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12704 if test -z "$ac_cpp_err"; then
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12710 # Broken: fails on valid input.
12714 rm -f conftest.err conftest.$ac_ext
12716 # OK, works on sane cases. Now check whether nonexistent headers
12717 # can be detected and how.
12718 cat >conftest.$ac_ext <<_ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 #include <ac_nonexistent.h>
12726 if { (ac_try="$ac_cpp conftest.$ac_ext"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12734 grep -v '^ *+' conftest.er1 >conftest.err
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } >/dev/null; then
12739 if test -s conftest.err; then
12740 ac_cpp_err=$ac_cxx_preproc_warn_flag
12741 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12748 if test -z "$ac_cpp_err"; then
12749 # Broken: success on invalid input.
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 # Passes both tests.
12760 rm -f conftest.err conftest.$ac_ext
12763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12764 rm -f conftest.err conftest.$ac_ext
12765 if $ac_preproc_ok; then
12770 ac_cv_prog_CXXCPP=$CXXCPP
12773 CXXCPP=$ac_cv_prog_CXXCPP
12775 ac_cv_prog_CXXCPP=$CXXCPP
12777 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12778 echo "${ECHO_T}$CXXCPP" >&6; }
12779 ac_preproc_ok=false
12780 for ac_cxx_preproc_warn_flag in '' yes
12782 # Use a header file that comes with gcc, so configuring glibc
12783 # with a fresh cross-compiler works.
12784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12785 # <limits.h> exists even on freestanding compilers.
12786 # On the NeXT, cc -E runs the code through the compiler's parser,
12787 # not just through cpp. "Syntax error" is here to catch this case.
12788 cat >conftest.$ac_ext <<_ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12795 # include <limits.h>
12797 # include <assert.h>
12801 if { (ac_try="$ac_cpp conftest.$ac_ext"
12802 case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12809 grep -v '^ *+' conftest.er1 >conftest.err
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } >/dev/null; then
12814 if test -s conftest.err; then
12815 ac_cpp_err=$ac_cxx_preproc_warn_flag
12816 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12823 if test -z "$ac_cpp_err"; then
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12829 # Broken: fails on valid input.
12833 rm -f conftest.err conftest.$ac_ext
12835 # OK, works on sane cases. Now check whether nonexistent headers
12836 # can be detected and how.
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 #include <ac_nonexistent.h>
12845 if { (ac_try="$ac_cpp conftest.$ac_ext"
12846 case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12853 grep -v '^ *+' conftest.er1 >conftest.err
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } >/dev/null; then
12858 if test -s conftest.err; then
12859 ac_cpp_err=$ac_cxx_preproc_warn_flag
12860 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12867 if test -z "$ac_cpp_err"; then
12868 # Broken: success on invalid input.
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12874 # Passes both tests.
12879 rm -f conftest.err conftest.$ac_ext
12882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12883 rm -f conftest.err conftest.$ac_ext
12884 if $ac_preproc_ok; then
12887 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12888 See \`config.log' for more details." >&5
12889 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12890 See \`config.log' for more details." >&2;}
12891 { (exit 1); exit 1; }; }
12895 ac_cpp='$CXXCPP $CPPFLAGS'
12896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12904 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12905 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12906 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12907 if test -n "$ac_tool_prefix"; then
12908 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
12910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12914 if test "${ac_cv_prog_F77+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 if test -n "$F77"; then
12918 ac_cv_prog_F77="$F77" # Let the user override the test.
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $PATH
12924 test -z "$as_dir" && as_dir=.
12925 for ac_exec_ext in '' $ac_executable_extensions; do
12926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12927 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 F77=$ac_cv_prog_F77
12938 if test -n "$F77"; then
12939 { echo "$as_me:$LINENO: result: $F77" >&5
12940 echo "${ECHO_T}$F77" >&6; }
12942 { echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6; }
12947 test -n "$F77" && break
12950 if test -z "$F77"; then
12952 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
12954 # Extract the first word of "$ac_prog", so it can be a program name with args.
12955 set dummy $ac_prog; ac_word=$2
12956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12958 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 if test -n "$ac_ct_F77"; then
12962 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12971 ac_cv_prog_ac_ct_F77="$ac_prog"
12972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12981 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12982 if test -n "$ac_ct_F77"; then
12983 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12984 echo "${ECHO_T}$ac_ct_F77" >&6; }
12986 { echo "$as_me:$LINENO: result: no" >&5
12987 echo "${ECHO_T}no" >&6; }
12991 test -n "$ac_ct_F77" && break
12994 if test "x$ac_ct_F77" = x; then
12997 case $cross_compiling:$ac_tool_warned in
12999 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13000 whose name does not start with the host triplet. If you think this
13001 configuration is useful to you, please write to autoconf@gnu.org." >&5
13002 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13003 whose name does not start with the host triplet. If you think this
13004 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13005 ac_tool_warned=yes ;;
13012 # Provide some information about the compiler.
13013 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13014 ac_compiler=`set X $ac_compile; echo $2`
13015 { (ac_try="$ac_compiler --version >&5"
13016 case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_compiler --version >&5") 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }
13025 { (ac_try="$ac_compiler -v >&5"
13026 case "(($ac_try" in
13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031 (eval "$ac_compiler -v >&5") 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }
13035 { (ac_try="$ac_compiler -V >&5"
13036 case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_compiler -V >&5") 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }
13047 # If we don't use `.F' as extension, the preprocessor is not run on the
13048 # input file. (Note that this only needs to work for GNU compilers.)
13049 ac_save_ext=$ac_ext
13051 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13052 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13053 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 cat >conftest.$ac_ext <<_ACEOF
13064 rm -f conftest.$ac_objext
13065 if { (ac_try="$ac_compile"
13066 case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_compile") 2>conftest.er1
13073 grep -v '^ *+' conftest.er1 >conftest.err
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13079 { (case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; } &&
13088 { ac_try='test -s conftest.$ac_objext'
13089 { (case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_try") 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_compiler_gnu=yes
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13107 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13110 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13111 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13112 ac_ext=$ac_save_ext
13113 ac_test_FFLAGS=${FFLAGS+set}
13114 ac_save_FFLAGS=$FFLAGS
13116 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13117 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13118 if test "${ac_cv_prog_f77_g+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 cat >conftest.$ac_ext <<_ACEOF
13127 rm -f conftest.$ac_objext
13128 if { (ac_try="$ac_compile"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_compile") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest.$ac_objext'
13152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_prog_f77_g=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_cv_prog_f77_g=no
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13172 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13173 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13174 if test "$ac_test_FFLAGS" = set; then
13175 FFLAGS=$ac_save_FFLAGS
13176 elif test $ac_cv_prog_f77_g = yes; then
13177 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13183 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13190 G77=`test $ac_compiler_gnu = yes && echo yes`
13192 ac_cpp='$CPP $CPPFLAGS'
13193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13199 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13201 # find the maximum length of command line arguments
13202 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13203 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13204 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 # On DJGPP, this test can blow up pretty badly due to problems in libc
13213 # (any single argument exceeding 2000 bytes causes a buffer overrun
13214 # during glob expansion). Even if it were fixed, the result of this
13215 # check would be larger than it should be.
13216 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13220 # Under GNU Hurd, this test is not required because there is
13221 # no limit to the length of command line arguments.
13222 # Libtool will interpret -1 as no limit whatsoever
13223 lt_cv_sys_max_cmd_len=-1;
13227 # On Win9x/ME, this test blows up -- it succeeds, but takes
13228 # about 5 minutes as the teststring grows exponentially.
13229 # Worse, since 9x/ME are not pre-emptively multitasking,
13230 # you end up with a "frozen" computer, even though with patience
13231 # the test eventually succeeds (with a max line length of 256k).
13232 # Instead, let's just punt: use the minimum linelength reported by
13233 # all of the supported platforms: 8192 (on NT/2K/XP).
13234 lt_cv_sys_max_cmd_len=8192;
13238 # On AmigaOS with pdksh, this test takes hours, literally.
13239 # So we just punt and use a minimum line length of 8192.
13240 lt_cv_sys_max_cmd_len=8192;
13243 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13244 # This has been around since 386BSD, at least. Likely further.
13245 if test -x /sbin/sysctl; then
13246 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13247 elif test -x /usr/sbin/sysctl; then
13248 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13250 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13252 # And add a safety zone
13253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13258 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13259 lt_cv_sys_max_cmd_len=196608
13263 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13264 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13265 # nice to cause kernel panics so lets avoid the loop below.
13266 # First set a reasonable default.
13267 lt_cv_sys_max_cmd_len=16384
13269 if test -x /sbin/sysconfig; then
13270 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13271 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13276 lt_cv_sys_max_cmd_len=102400
13278 sysv5* | sco5v6* | sysv4.2uw2*)
13279 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13280 if test -n "$kargmax"; then
13281 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13283 lt_cv_sys_max_cmd_len=32768
13287 # If test is not a shell built-in, we'll probably end up computing a
13288 # maximum length that is only half of the actual maximum length, but
13290 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13291 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13292 = "XX$teststring") >/dev/null 2>&1 &&
13293 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13294 lt_cv_sys_max_cmd_len=$new_result &&
13295 test $i != 17 # 1/2 MB should be enough
13298 teststring=$teststring$teststring
13301 # Add a significant safety factor because C++ compilers can tack on massive
13302 # amounts of additional arguments before passing them to the linker.
13303 # It appears as though 1/2 is a usable value.
13304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13310 if test -n $lt_cv_sys_max_cmd_len ; then
13311 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13312 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13314 { echo "$as_me:$LINENO: result: none" >&5
13315 echo "${ECHO_T}none" >&6; }
13321 # Check for command to grab the raw symbol name followed by C symbol from nm.
13322 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13323 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13324 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 # These are sane defaults that work on at least a few old systems.
13329 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13331 # Character class describing NM global symbol codes.
13332 symcode='[BCDEGRST]'
13334 # Regexp to match symbols that can be accessed directly from C.
13335 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13337 # Transform an extracted symbol line into a proper C declaration
13338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13340 # Transform an extracted symbol line into symbol name and symbol address
13341 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'"
13343 # Define system-specific variables.
13348 cygwin* | mingw* | pw32*)
13349 symcode='[ABCDGISTW]'
13351 hpux*) # Its linker distinguishes data from code symbols
13352 if test "$host_cpu" = ia64; then
13353 symcode='[ABCDEGRST]'
13355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13356 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'"
13359 if test "$host_cpu" = ia64; then
13360 symcode='[ABCDGIRSTW]'
13361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13362 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'"
13365 irix* | nonstopux*)
13366 symcode='[BCDEGRST]'
13369 symcode='[BCDEGQRST]'
13380 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13388 # Handle CRLF in mingw tool chain
13392 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13396 # If we're using GNU nm, then use its standard symbol codes.
13397 case `$NM -V 2>&1` in
13398 *GNU* | *'with BFD'*)
13399 symcode='[ABCDGIRSTW]' ;;
13402 # Try without a prefix undercore, then with it.
13403 for ac_symprfx in "" "_"; do
13405 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13406 symxfrm="\\1 $ac_symprfx\\2 \\2"
13408 # Write the raw and C identifiers.
13409 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13411 # Check to see that the pipe works correctly.
13415 cat > conftest.$ac_ext <<EOF
13420 void nm_test_func(){}
13424 int main(){nm_test_var='a';nm_test_func();return(0);}
13427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428 (eval $ac_compile) 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; then
13432 # Now try to grab the symbols.
13434 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13435 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } && test -s "$nlist"; then
13439 # Try sorting and uniquifying the output.
13440 if sort "$nlist" | uniq > "$nlist"T; then
13441 mv -f "$nlist"T "$nlist"
13446 # Make sure that we snagged all the symbols we need.
13447 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13448 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13449 cat <<EOF > conftest.$ac_ext
13455 # Now generate the symbol file.
13456 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13458 cat <<EOF >> conftest.$ac_ext
13459 #if defined (__STDC__) && __STDC__
13460 # define lt_ptr_t void *
13462 # define lt_ptr_t char *
13466 /* The mapping between symbol names and symbols. */
13471 lt_preloaded_symbols[] =
13474 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13475 cat <<\EOF >> conftest.$ac_ext
13483 # Now try linking the two files.
13484 mv conftest.$ac_objext conftstm.$ac_objext
13485 lt_save_LIBS="$LIBS"
13486 lt_save_CFLAGS="$CFLAGS"
13487 LIBS="conftstm.$ac_objext"
13488 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13490 (eval $ac_link) 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13496 LIBS="$lt_save_LIBS"
13497 CFLAGS="$lt_save_CFLAGS"
13499 echo "cannot find nm_test_func in $nlist" >&5
13502 echo "cannot find nm_test_var in $nlist" >&5
13505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13508 echo "$progname: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13511 rm -f conftest* conftst*
13513 # Do not use the global_symbol_pipe unless it works.
13514 if test "$pipe_works" = yes; then
13517 lt_cv_sys_global_symbol_pipe=
13523 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13524 lt_cv_sys_global_symbol_to_cdecl=
13526 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13527 { echo "$as_me:$LINENO: result: failed" >&5
13528 echo "${ECHO_T}failed" >&6; }
13530 { echo "$as_me:$LINENO: result: ok" >&5
13531 echo "${ECHO_T}ok" >&6; }
13534 { echo "$as_me:$LINENO: checking for objdir" >&5
13535 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13536 if test "${lt_cv_objdir+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 rm -f .libs 2>/dev/null
13540 mkdir .libs 2>/dev/null
13541 if test -d .libs; then
13544 # MS-DOS does not allow filenames that begin with a dot.
13547 rmdir .libs 2>/dev/null
13549 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13550 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13551 objdir=$lt_cv_objdir
13559 # AIX sometimes has problems with the GCC collect2 program. For some
13560 # reason, if we set the COLLECT_NAMES environment variable, the problems
13561 # vanish in a puff of smoke.
13562 if test "X${COLLECT_NAMES+set}" != Xset; then
13564 export COLLECT_NAMES
13569 # Sed substitution that helps us do robust quoting. It backslashifies
13570 # metacharacters that are still active within double-quoted strings.
13571 Xsed='sed -e 1s/^X//'
13572 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13574 # Same as above, but do not quote variable references.
13575 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13577 # Sed substitution to delay expansion of an escaped shell variable in a
13578 # double_quote_subst'ed string.
13579 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13581 # Sed substitution to avoid accidental globbing in evaled expressions
13582 no_glob_subst='s/\*/\\\*/g'
13587 # Global variables:
13588 default_ofile=mklib
13589 can_build_shared=yes
13591 # All known linkers require a `.a' archive for static linking (except MSVC,
13592 # which needs '.lib').
13594 ltmain="$ac_aux_dir/ltmain.sh"
13595 ofile="$default_ofile"
13596 with_gnu_ld="$lt_cv_prog_gnu_ld"
13598 if test -n "$ac_tool_prefix"; then
13599 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13600 set dummy ${ac_tool_prefix}ar; ac_word=$2
13601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13603 if test "${ac_cv_prog_AR+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 if test -n "$AR"; then
13607 ac_cv_prog_AR="$AR" # Let the user override the test.
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13616 ac_cv_prog_AR="${ac_tool_prefix}ar"
13617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13627 if test -n "$AR"; then
13628 { echo "$as_me:$LINENO: result: $AR" >&5
13629 echo "${ECHO_T}$AR" >&6; }
13631 { echo "$as_me:$LINENO: result: no" >&5
13632 echo "${ECHO_T}no" >&6; }
13637 if test -z "$ac_cv_prog_AR"; then
13639 # Extract the first word of "ar", so it can be a program name with args.
13640 set dummy ar; ac_word=$2
13641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13643 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 if test -n "$ac_ct_AR"; then
13647 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650 for as_dir in $PATH
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
13655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13656 ac_cv_prog_ac_ct_AR="ar"
13657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13666 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13667 if test -n "$ac_ct_AR"; then
13668 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13669 echo "${ECHO_T}$ac_ct_AR" >&6; }
13671 { echo "$as_me:$LINENO: result: no" >&5
13672 echo "${ECHO_T}no" >&6; }
13675 if test "x$ac_ct_AR" = x; then
13678 case $cross_compiling:$ac_tool_warned in
13680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13681 whose name does not start with the host triplet. If you think this
13682 configuration is useful to you, please write to autoconf@gnu.org." >&5
13683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13684 whose name does not start with the host triplet. If you think this
13685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13686 ac_tool_warned=yes ;;
13691 AR="$ac_cv_prog_AR"
13694 if test -n "$ac_tool_prefix"; then
13695 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13696 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13699 if test "${ac_cv_prog_RANLIB+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 if test -n "$RANLIB"; then
13703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13712 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13722 RANLIB=$ac_cv_prog_RANLIB
13723 if test -n "$RANLIB"; then
13724 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13725 echo "${ECHO_T}$RANLIB" >&6; }
13727 { echo "$as_me:$LINENO: result: no" >&5
13728 echo "${ECHO_T}no" >&6; }
13733 if test -z "$ac_cv_prog_RANLIB"; then
13734 ac_ct_RANLIB=$RANLIB
13735 # Extract the first word of "ranlib", so it can be a program name with args.
13736 set dummy ranlib; ac_word=$2
13737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13739 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 if test -n "$ac_ct_RANLIB"; then
13743 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13752 ac_cv_prog_ac_ct_RANLIB="ranlib"
13753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13763 if test -n "$ac_ct_RANLIB"; then
13764 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13765 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13767 { echo "$as_me:$LINENO: result: no" >&5
13768 echo "${ECHO_T}no" >&6; }
13771 if test "x$ac_ct_RANLIB" = x; then
13774 case $cross_compiling:$ac_tool_warned in
13776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13777 whose name does not start with the host triplet. If you think this
13778 configuration is useful to you, please write to autoconf@gnu.org." >&5
13779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13780 whose name does not start with the host triplet. If you think this
13781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13782 ac_tool_warned=yes ;;
13784 RANLIB=$ac_ct_RANLIB
13787 RANLIB="$ac_cv_prog_RANLIB"
13790 if test -n "$ac_tool_prefix"; then
13791 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13792 set dummy ${ac_tool_prefix}strip; ac_word=$2
13793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13795 if test "${ac_cv_prog_STRIP+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 if test -n "$STRIP"; then
13799 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
13807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13808 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 STRIP=$ac_cv_prog_STRIP
13819 if test -n "$STRIP"; then
13820 { echo "$as_me:$LINENO: result: $STRIP" >&5
13821 echo "${ECHO_T}$STRIP" >&6; }
13823 { echo "$as_me:$LINENO: result: no" >&5
13824 echo "${ECHO_T}no" >&6; }
13829 if test -z "$ac_cv_prog_STRIP"; then
13831 # Extract the first word of "strip", so it can be a program name with args.
13832 set dummy strip; ac_word=$2
13833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13835 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 if test -n "$ac_ct_STRIP"; then
13839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842 for as_dir in $PATH
13845 test -z "$as_dir" && as_dir=.
13846 for ac_exec_ext in '' $ac_executable_extensions; do
13847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13848 ac_cv_prog_ac_ct_STRIP="strip"
13849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13859 if test -n "$ac_ct_STRIP"; then
13860 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13861 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13863 { echo "$as_me:$LINENO: result: no" >&5
13864 echo "${ECHO_T}no" >&6; }
13867 if test "x$ac_ct_STRIP" = x; then
13870 case $cross_compiling:$ac_tool_warned in
13872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13873 whose name does not start with the host triplet. If you think this
13874 configuration is useful to you, please write to autoconf@gnu.org." >&5
13875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13876 whose name does not start with the host triplet. If you think this
13877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13878 ac_tool_warned=yes ;;
13883 STRIP="$ac_cv_prog_STRIP"
13888 old_CFLAGS="$CFLAGS"
13890 # Set sane defaults for various variables
13891 test -z "$AR" && AR=ar
13892 test -z "$AR_FLAGS" && AR_FLAGS=cru
13893 test -z "$AS" && AS=as
13894 test -z "$CC" && CC=cc
13895 test -z "$LTCC" && LTCC=$CC
13896 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13897 test -z "$DLLTOOL" && DLLTOOL=dlltool
13898 test -z "$LD" && LD=ld
13899 test -z "$LN_S" && LN_S="ln -s"
13900 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13901 test -z "$NM" && NM=nm
13902 test -z "$SED" && SED=sed
13903 test -z "$OBJDUMP" && OBJDUMP=objdump
13904 test -z "$RANLIB" && RANLIB=:
13905 test -z "$STRIP" && STRIP=:
13906 test -z "$ac_objext" && ac_objext=o
13908 # Determine commands to create old-style static archives.
13909 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13910 old_postinstall_cmds='chmod 644 $oldlib'
13911 old_postuninstall_cmds=
13913 if test -n "$RANLIB"; then
13916 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13919 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13922 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13925 for cc_temp in $compiler""; do
13927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13933 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13936 # Only perform the check for file, if the check method requires it
13937 case $deplibs_check_method in
13939 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13940 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13941 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13942 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13950 lt_save_MAGIC_CMD="$MAGIC_CMD"
13951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13952 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13953 for ac_dir in $ac_dummy; do
13955 test -z "$ac_dir" && ac_dir=.
13956 if test -f $ac_dir/${ac_tool_prefix}file; then
13957 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13958 if test -n "$file_magic_test_file"; then
13959 case $deplibs_check_method in
13961 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13963 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13964 $EGREP "$file_magic_regex" > /dev/null; then
13969 *** Warning: the command libtool uses to detect shared libraries,
13970 *** $file_magic_cmd, produces output that libtool cannot recognize.
13971 *** The result is that libtool may fail to recognize shared libraries
13972 *** as such. This will affect the creation of libtool libraries that
13973 *** depend on shared libraries, but programs linked with such libtool
13974 *** libraries will work regardless of this problem. Nevertheless, you
13975 *** may want to report the problem to your system manager and/or to
13976 *** bug-libtool@gnu.org
13986 MAGIC_CMD="$lt_save_MAGIC_CMD"
13991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13992 if test -n "$MAGIC_CMD"; then
13993 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13994 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13996 { echo "$as_me:$LINENO: result: no" >&5
13997 echo "${ECHO_T}no" >&6; }
14000 if test -z "$lt_cv_path_MAGIC_CMD"; then
14001 if test -n "$ac_tool_prefix"; then
14002 { echo "$as_me:$LINENO: checking for file" >&5
14003 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14004 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14012 lt_save_MAGIC_CMD="$MAGIC_CMD"
14013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14014 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14015 for ac_dir in $ac_dummy; do
14017 test -z "$ac_dir" && ac_dir=.
14018 if test -f $ac_dir/file; then
14019 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14020 if test -n "$file_magic_test_file"; then
14021 case $deplibs_check_method in
14023 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14025 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14026 $EGREP "$file_magic_regex" > /dev/null; then
14031 *** Warning: the command libtool uses to detect shared libraries,
14032 *** $file_magic_cmd, produces output that libtool cannot recognize.
14033 *** The result is that libtool may fail to recognize shared libraries
14034 *** as such. This will affect the creation of libtool libraries that
14035 *** depend on shared libraries, but programs linked with such libtool
14036 *** libraries will work regardless of this problem. Nevertheless, you
14037 *** may want to report the problem to your system manager and/or to
14038 *** bug-libtool@gnu.org
14048 MAGIC_CMD="$lt_save_MAGIC_CMD"
14053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14054 if test -n "$MAGIC_CMD"; then
14055 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14056 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14058 { echo "$as_me:$LINENO: result: no" >&5
14059 echo "${ECHO_T}no" >&6; }
14072 enable_win32_dll=no
14074 # Check whether --enable-libtool-lock was given.
14075 if test "${enable_libtool_lock+set}" = set; then
14076 enableval=$enable_libtool_lock;
14079 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14082 # Check whether --with-pic was given.
14083 if test "${with_pic+set}" = set; then
14084 withval=$with_pic; pic_mode="$withval"
14089 test -z "$pic_mode" && pic_mode=default
14091 # Use C for the default configuration in the libtool script
14095 ac_cpp='$CPP $CPPFLAGS'
14096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14101 # Source file extension for C test sources.
14104 # Object file extension for compiled C test sources.
14108 # Code to be used in simple compile tests
14109 lt_simple_compile_test_code="int some_variable = 0;\n"
14111 # Code to be used in simple link tests
14112 lt_simple_link_test_code='int main(){return(0);}\n'
14115 # If no C compiler was specified, use CC.
14118 # If no C compiler flags were specified, use CFLAGS.
14119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14121 # Allow CC to be a program name with arguments.
14125 # save warnings/boilerplate of simple test code
14126 ac_outfile=conftest.$ac_objext
14127 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14129 _lt_compiler_boilerplate=`cat conftest.err`
14132 ac_outfile=conftest.$ac_objext
14133 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14135 _lt_linker_boilerplate=`cat conftest.err`
14140 lt_prog_compiler_no_builtin_flag=
14142 if test "$GCC" = yes; then
14143 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14146 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14147 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14148 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 lt_cv_prog_compiler_rtti_exceptions=no
14152 ac_outfile=conftest.$ac_objext
14153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14154 lt_compiler_flag="-fno-rtti -fno-exceptions"
14155 # Insert the option either (1) after the last *FLAGS variable, or
14156 # (2) before a word containing "conftest.", or (3) at the end.
14157 # Note that $ac_compile itself does not contain backslashes and begins
14158 # with a dollar sign (not a hyphen), so the echo should work correctly.
14159 # The option is referenced via a variable to avoid confusing sed.
14160 lt_compile=`echo "$ac_compile" | $SED \
14161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14163 -e 's:$: $lt_compiler_flag:'`
14164 (eval echo "\"\$as_me:14164: $lt_compile\"" >&5)
14165 (eval "$lt_compile" 2>conftest.err)
14167 cat conftest.err >&5
14168 echo "$as_me:14168: \$? = $ac_status" >&5
14169 if (exit $ac_status) && test -s "$ac_outfile"; then
14170 # The compiler can only warn and ignore the option if not recognized
14171 # So say no if there are warnings other than the usual output.
14172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14175 lt_cv_prog_compiler_rtti_exceptions=yes
14181 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14182 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14185 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14192 lt_prog_compiler_wl=
14193 lt_prog_compiler_pic=
14194 lt_prog_compiler_static=
14196 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14199 if test "$GCC" = yes; then
14200 lt_prog_compiler_wl='-Wl,'
14201 lt_prog_compiler_static='-static'
14205 # All AIX code is PIC.
14206 if test "$host_cpu" = ia64; then
14207 # AIX 5 now supports IA64 processor
14208 lt_prog_compiler_static='-Bstatic'
14213 # FIXME: we need at least 68020 code to build shared libraries, but
14214 # adding the `-m68020' flag to GCC prevents building anything better,
14216 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14220 # PIC is the default for these OSes.
14223 mingw* | pw32* | os2*)
14224 # This hack is so that the source file can tell whether it is being
14225 # built for inclusion in a dll (and should export symbols for example).
14226 lt_prog_compiler_pic='-DDLL_EXPORT'
14229 darwin* | rhapsody*)
14230 # PIC is the default on this platform
14231 # Common symbols not allowed in MH_DYLIB files
14232 lt_prog_compiler_pic='-fno-common'
14236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14237 # Instead, we relocate shared libraries at runtime.
14241 # Just because we use GCC doesn't mean we suddenly get shared libraries
14242 # on systems that don't support them.
14243 lt_prog_compiler_can_build_shared=no
14248 if test -d /usr/nec; then
14249 lt_prog_compiler_pic=-Kconform_pic
14254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14255 # not for PA HP-UX.
14261 lt_prog_compiler_pic='-fPIC'
14267 lt_prog_compiler_pic='-fPIC'
14271 # PORTME Check for flag to pass linker flags through the system compiler.
14274 lt_prog_compiler_wl='-Wl,'
14275 if test "$host_cpu" = ia64; then
14276 # AIX 5 now supports IA64 processor
14277 lt_prog_compiler_static='-Bstatic'
14279 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14283 # PIC is the default on this platform
14284 # Common symbols not allowed in MH_DYLIB files
14285 case $cc_basename in
14287 lt_prog_compiler_pic='-qnocommon'
14288 lt_prog_compiler_wl='-Wl,'
14293 mingw* | pw32* | os2*)
14294 # This hack is so that the source file can tell whether it is being
14295 # built for inclusion in a dll (and should export symbols for example).
14296 lt_prog_compiler_pic='-DDLL_EXPORT'
14299 hpux9* | hpux10* | hpux11*)
14300 lt_prog_compiler_wl='-Wl,'
14301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14302 # not for PA HP-UX.
14308 lt_prog_compiler_pic='+Z'
14311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14312 lt_prog_compiler_static='${wl}-a ${wl}archive'
14315 irix5* | irix6* | nonstopux*)
14316 lt_prog_compiler_wl='-Wl,'
14317 # PIC (with -KPIC) is the default.
14318 lt_prog_compiler_static='-non_shared'
14322 lt_prog_compiler_pic='-KPIC'
14323 lt_prog_compiler_static='-Bstatic'
14327 case $cc_basename in
14329 lt_prog_compiler_wl='-Wl,'
14330 lt_prog_compiler_pic='-KPIC'
14331 lt_prog_compiler_static='-static'
14333 pgcc* | pgf77* | pgf90* | pgf95*)
14334 # Portland Group compilers (*not* the Pentium gcc compiler,
14335 # which looks to be a dead project)
14336 lt_prog_compiler_wl='-Wl,'
14337 lt_prog_compiler_pic='-fpic'
14338 lt_prog_compiler_static='-Bstatic'
14341 lt_prog_compiler_wl='-Wl,'
14342 # All Alpha code is PIC.
14343 lt_prog_compiler_static='-non_shared'
14348 osf3* | osf4* | osf5*)
14349 lt_prog_compiler_wl='-Wl,'
14350 # All OSF/1 code is PIC.
14351 lt_prog_compiler_static='-non_shared'
14355 lt_prog_compiler_pic='-KPIC'
14356 lt_prog_compiler_static='-Bstatic'
14357 case $cc_basename in
14358 f77* | f90* | f95*)
14359 lt_prog_compiler_wl='-Qoption ld ';;
14361 lt_prog_compiler_wl='-Wl,';;
14366 lt_prog_compiler_wl='-Qoption ld '
14367 lt_prog_compiler_pic='-PIC'
14368 lt_prog_compiler_static='-Bstatic'
14371 sysv4 | sysv4.2uw2* | sysv4.3*)
14372 lt_prog_compiler_wl='-Wl,'
14373 lt_prog_compiler_pic='-KPIC'
14374 lt_prog_compiler_static='-Bstatic'
14378 if test -d /usr/nec ;then
14379 lt_prog_compiler_pic='-Kconform_pic'
14380 lt_prog_compiler_static='-Bstatic'
14384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14385 lt_prog_compiler_wl='-Wl,'
14386 lt_prog_compiler_pic='-KPIC'
14387 lt_prog_compiler_static='-Bstatic'
14391 lt_prog_compiler_wl='-Wl,'
14392 lt_prog_compiler_can_build_shared=no
14396 lt_prog_compiler_pic='-pic'
14397 lt_prog_compiler_static='-Bstatic'
14401 lt_prog_compiler_can_build_shared=no
14406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14407 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14410 # Check to make sure the PIC flag actually works.
14412 if test -n "$lt_prog_compiler_pic"; then
14414 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14416 if test "${lt_prog_compiler_pic_works+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 lt_prog_compiler_pic_works=no
14420 ac_outfile=conftest.$ac_objext
14421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14422 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14423 # Insert the option either (1) after the last *FLAGS variable, or
14424 # (2) before a word containing "conftest.", or (3) at the end.
14425 # Note that $ac_compile itself does not contain backslashes and begins
14426 # with a dollar sign (not a hyphen), so the echo should work correctly.
14427 # The option is referenced via a variable to avoid confusing sed.
14428 lt_compile=`echo "$ac_compile" | $SED \
14429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14431 -e 's:$: $lt_compiler_flag:'`
14432 (eval echo "\"\$as_me:14432: $lt_compile\"" >&5)
14433 (eval "$lt_compile" 2>conftest.err)
14435 cat conftest.err >&5
14436 echo "$as_me:14436: \$? = $ac_status" >&5
14437 if (exit $ac_status) && test -s "$ac_outfile"; then
14438 # The compiler can only warn and ignore the option if not recognized
14439 # So say no if there are warnings other than the usual output.
14440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14443 lt_prog_compiler_pic_works=yes
14449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14450 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14452 if test x"$lt_prog_compiler_pic_works" = xyes; then
14453 case $lt_prog_compiler_pic in
14455 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14458 lt_prog_compiler_pic=
14459 lt_prog_compiler_can_build_shared=no
14464 # For platforms which do not support PIC, -DPIC is meaningless:
14466 lt_prog_compiler_pic=
14469 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14474 # Check to make sure the static flag actually works.
14476 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14477 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14478 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14479 if test "${lt_prog_compiler_static_works+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 lt_prog_compiler_static_works=no
14483 save_LDFLAGS="$LDFLAGS"
14484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14485 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14487 # The linker can only warn and ignore the option if not recognized
14488 # So say no if there are warnings
14489 if test -s conftest.err; then
14490 # Append any errors to the config.log.
14491 cat conftest.err 1>&5
14492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14494 if diff conftest.exp conftest.er2 >/dev/null; then
14495 lt_prog_compiler_static_works=yes
14498 lt_prog_compiler_static_works=yes
14502 LDFLAGS="$save_LDFLAGS"
14505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14506 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14508 if test x"$lt_prog_compiler_static_works" = xyes; then
14511 lt_prog_compiler_static=
14515 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14517 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 lt_cv_prog_compiler_c_o=no
14521 $rm -r conftest 2>/dev/null
14525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14527 lt_compiler_flag="-o out/conftest2.$ac_objext"
14528 # Insert the option either (1) after the last *FLAGS variable, or
14529 # (2) before a word containing "conftest.", or (3) at the end.
14530 # Note that $ac_compile itself does not contain backslashes and begins
14531 # with a dollar sign (not a hyphen), so the echo should work correctly.
14532 lt_compile=`echo "$ac_compile" | $SED \
14533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14535 -e 's:$: $lt_compiler_flag:'`
14536 (eval echo "\"\$as_me:14536: $lt_compile\"" >&5)
14537 (eval "$lt_compile" 2>out/conftest.err)
14539 cat out/conftest.err >&5
14540 echo "$as_me:14540: \$? = $ac_status" >&5
14541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14543 # The compiler can only warn and ignore the option if not recognized
14544 # So say no if there are warnings
14545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14548 lt_cv_prog_compiler_c_o=yes
14553 # SGI C++ compiler will create directory out/ii_files/ for
14554 # template instantiation
14555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14556 $rm out/* && rmdir out
14562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14566 hard_links="nottested"
14567 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14568 # do not overwrite the value of need_locks provided by the user
14569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14575 ln conftest.a conftest.b 2>&5 || hard_links=no
14576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14577 { echo "$as_me:$LINENO: result: $hard_links" >&5
14578 echo "${ECHO_T}$hard_links" >&6; }
14579 if test "$hard_links" = no; then
14580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14588 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14592 allow_undefined_flag=
14593 enable_shared_with_static_runtimes=no
14595 archive_expsym_cmds=
14596 old_archive_From_new_cmds=
14597 old_archive_from_expsyms_cmds=
14598 export_dynamic_flag_spec=
14599 whole_archive_flag_spec=
14600 thread_safe_flag_spec=
14601 hardcode_libdir_flag_spec=
14602 hardcode_libdir_flag_spec_ld=
14603 hardcode_libdir_separator=
14605 hardcode_minus_L=no
14606 hardcode_shlibpath_var=unsupported
14607 link_all_deplibs=unknown
14608 hardcode_automatic=no
14610 module_expsym_cmds=
14611 always_export_symbols=no
14612 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14613 # include_expsyms should be a list of space-separated symbols to be *always*
14614 # included in the symbol list
14616 # exclude_expsyms can be an extended regexp of symbols to exclude
14617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14619 # as well as any symbol that contains `d'.
14620 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14622 # platforms (ab)use it in PIC code, but their linkers get confused if
14623 # the symbol is explicitly referenced. Since portable code cannot
14624 # rely on this symbol name, it's probably fine to never include it in
14625 # preloaded symbol tables.
14626 extract_expsyms_cmds=
14627 # Just being paranoid about ensuring that cc_basename is set.
14628 for cc_temp in $compiler""; do
14630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14639 cygwin* | mingw* | pw32*)
14640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14641 # When not using gcc, we currently assume that we are using
14642 # Microsoft Visual C++.
14643 if test "$GCC" != yes; then
14648 # we just hope/assume this is gcc and not c89 (= MSVC++)
14657 if test "$with_gnu_ld" = yes; then
14658 # If archive_cmds runs LD, not CC, wlarc should be empty
14661 # Set some defaults for GNU ld with shared library support. These
14662 # are reset later if shared libraries are not supported. Putting them
14663 # here allows them to be overridden if necessary.
14664 runpath_var=LD_RUN_PATH
14665 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14666 export_dynamic_flag_spec='${wl}--export-dynamic'
14667 # ancient GNU ld didn't support --whole-archive et. al.
14668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14669 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14671 whole_archive_flag_spec=
14673 supports_anon_versioning=no
14674 case `$LD -v 2>/dev/null` in
14675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14678 *\ 2.11.*) ;; # other 2.11 versions
14679 *) supports_anon_versioning=yes ;;
14682 # See if GNU ld supports shared libraries.
14684 aix3* | aix4* | aix5*)
14685 # On AIX/PPC, the GNU linker is very broken
14686 if test "$host_cpu" != ia64; then
14690 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14691 *** to be unable to reliably create shared libraries on AIX.
14692 *** Therefore, libtool is disabling shared libraries support. If you
14693 *** really care for shared libraries, you may want to modify your PATH
14694 *** so that a non-GNU linker is found, and then restart.
14701 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)'
14702 hardcode_libdir_flag_spec='-L$libdir'
14703 hardcode_minus_L=yes
14705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14706 # that the semantics of dynamic libraries on AmigaOS, at least up
14707 # to version 4, is to share data among multiple programs linked
14708 # with the same dynamic library. Since this doesn't match the
14709 # behavior of shared libraries on other platforms, we can't use
14715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14716 allow_undefined_flag=unsupported
14717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14718 # support --undefined. This deserves some investigation. FIXME
14719 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14725 cygwin* | mingw* | pw32*)
14726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14727 # as there is no search path for DLLs.
14728 hardcode_libdir_flag_spec='-L$libdir'
14729 allow_undefined_flag=unsupported
14730 always_export_symbols=no
14731 enable_shared_with_static_runtimes=yes
14732 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14736 # If the export-symbols file already is a .def file (1st line
14737 # is EXPORTS), use it as is; otherwise, prepend...
14738 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14739 cp $export_symbols $output_objdir/$soname.def;
14741 echo EXPORTS > $output_objdir/$soname.def;
14742 cat $export_symbols >> $output_objdir/$soname.def;
14744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14752 hardcode_shlibpath_var=no
14753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14754 export_dynamic_flag_spec='${wl}-E'
14755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14756 # Instead, shared libraries are loaded at an image base (0x10000000 by
14757 # default) and relocated if they conflict, which is a slow very memory
14758 # consuming and fragmenting process. To avoid this, we pick a random,
14759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14761 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14762 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'
14766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14768 case $cc_basename,$host_cpu in
14769 pgcc*) # Portland Group C compiler
14770 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'
14771 tmp_addflag=' $pic_flag'
14773 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14774 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'
14775 tmp_addflag=' $pic_flag -Mnomain' ;;
14776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14777 tmp_addflag=' -i_dynamic' ;;
14778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14779 tmp_addflag=' -i_dynamic -nofor_main' ;;
14780 ifc* | ifort*) # Intel Fortran compiler
14781 tmp_addflag=' -nofor_main' ;;
14783 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14785 if test $supports_anon_versioning = yes; then
14786 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14788 $echo "local: *; };" >> $output_objdir/$libname.ver~
14789 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14798 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14807 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14811 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14812 *** create shared libraries on Solaris systems. Therefore, libtool
14813 *** is disabling shared libraries support. We urge you to upgrade GNU
14814 *** binutils to release 2.9.1 or newer. Another option is to modify
14815 *** your PATH or compiler configuration so that the native linker is
14816 *** used, and then restart.
14819 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14828 case `$LD -v 2>&1` in
14829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14833 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14834 *** reliably create shared libraries on SCO systems. Therefore, libtool
14835 *** is disabling shared libraries support. We urge you to upgrade GNU
14836 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14837 *** your PATH or compiler configuration so that the native linker is
14838 *** used, and then restart.
14843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14844 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14855 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14857 hardcode_direct=yes
14858 hardcode_shlibpath_var=no
14862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14871 if test "$ld_shlibs" = no; then
14873 hardcode_libdir_flag_spec=
14874 export_dynamic_flag_spec=
14875 whole_archive_flag_spec=
14878 # PORTME fill in a description of your system's linker (not GNU ld)
14881 allow_undefined_flag=unsupported
14882 always_export_symbols=yes
14883 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'
14884 # Note: this linker hardcodes the directories in LIBPATH if there
14885 # are no directories specified by -L.
14886 hardcode_minus_L=yes
14887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14888 # Neither direct hardcoding nor static linking is supported with a
14890 hardcode_direct=unsupported
14895 if test "$host_cpu" = ia64; then
14896 # On IA64, the linker does run time linking by default, so we don't
14897 # have to do anything special.
14898 aix_use_runtimelinking=no
14899 exp_sym_flag='-Bexport'
14902 # If we're using GNU nm, then we don't want the "-C" option.
14903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14904 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14905 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'
14907 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'
14909 aix_use_runtimelinking=no
14911 # Test if we are trying to use run time linking or normal
14912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14913 # need to do runtime linking.
14914 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14915 for ld_flag in $LDFLAGS; do
14916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14917 aix_use_runtimelinking=yes
14924 exp_sym_flag='-bexport'
14925 no_entry_flag='-bnoentry'
14928 # When large executables or shared objects are built, AIX ld can
14929 # have problems creating the table of contents. If linking a library
14930 # or program results in "error TOC overflow" add -mminimal-toc to
14931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14935 hardcode_direct=yes
14936 hardcode_libdir_separator=':'
14937 link_all_deplibs=yes
14939 if test "$GCC" = yes; then
14940 case $host_os in aix4.[012]|aix4.[012].*)
14941 # We only want to do this on AIX 4.2 and lower, the check
14942 # below for broken collect2 doesn't work under 4.3+
14943 collect2name=`${CC} -print-prog-name=collect2`
14944 if test -f "$collect2name" && \
14945 strings "$collect2name" | grep resolve_lib_name >/dev/null
14947 # We have reworked collect2
14948 hardcode_direct=yes
14950 # We have old collect2
14951 hardcode_direct=unsupported
14952 # It fails to find uninstalled libraries when the uninstalled
14953 # path is not listed in the libpath. Setting hardcode_minus_L
14954 # to unsupported forces relinking
14955 hardcode_minus_L=yes
14956 hardcode_libdir_flag_spec='-L$libdir'
14957 hardcode_libdir_separator=
14961 shared_flag='-shared'
14962 if test "$aix_use_runtimelinking" = yes; then
14963 shared_flag="$shared_flag "'${wl}-G'
14967 if test "$host_cpu" = ia64; then
14968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14969 # chokes on -Wl,-G. The following line is correct:
14972 if test "$aix_use_runtimelinking" = yes; then
14973 shared_flag='${wl}-G'
14975 shared_flag='${wl}-bM:SRE'
14980 # It seems that -bexpall does not export symbols beginning with
14981 # underscore (_), so it is better to generate a list of symbols to export.
14982 always_export_symbols=yes
14983 if test "$aix_use_runtimelinking" = yes; then
14984 # Warning - without using the other runtime loading flags (-brtl),
14985 # -berok will link without error, but may produce a broken library.
14986 allow_undefined_flag='-berok'
14987 # Determine the default libpath from the value encoded in an empty executable.
14988 cat >conftest.$ac_ext <<_ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (ac_try="$ac_link"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_link") 2>conftest.er1
15012 grep -v '^ *+' conftest.er1 >conftest.err
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest$ac_exeext'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15040 # Check for a 64-bit object if we didn't find anything.
15041 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; }
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15050 rm -f core conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15054 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15055 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"
15057 if test "$host_cpu" = ia64; then
15058 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15059 allow_undefined_flag="-z nodefs"
15060 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"
15062 # Determine the default libpath from the value encoded in an empty executable.
15063 cat >conftest.$ac_ext <<_ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h. */
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (ac_try="$ac_link"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_link") 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest$ac_exeext'
15103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15115 # Check for a 64-bit object if we didn't find anything.
15116 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; }
15119 echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15125 rm -f core conftest.err conftest.$ac_objext \
15126 conftest$ac_exeext conftest.$ac_ext
15127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15129 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15130 # Warning - without using the other run time loading flags,
15131 # -berok will link without error, but may produce a broken library.
15132 no_undefined_flag=' ${wl}-bernotok'
15133 allow_undefined_flag=' ${wl}-berok'
15134 # Exported symbols can be pulled into shared objects from archives
15135 whole_archive_flag_spec='$convenience'
15136 archive_cmds_need_lc=yes
15137 # This is similar to how AIX traditionally builds its shared libraries.
15138 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'
15144 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)'
15145 hardcode_libdir_flag_spec='-L$libdir'
15146 hardcode_minus_L=yes
15147 # see comment about different semantics on the GNU ld section
15152 export_dynamic_flag_spec=-rdynamic
15155 cygwin* | mingw* | pw32*)
15156 # When not using gcc, we currently assume that we are using
15157 # Microsoft Visual C++.
15158 # hardcode_libdir_flag_spec is actually meaningless, as there is
15159 # no search path for DLLs.
15160 hardcode_libdir_flag_spec=' '
15161 allow_undefined_flag=unsupported
15162 # Tell ltmain to make .lib files, not .a files.
15164 # Tell ltmain to make .dll files, not .so files.
15166 # FIXME: Setting linknames here is a bad hack.
15167 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15168 # The linker will automatically build a .lib file if we build a DLL.
15169 old_archive_From_new_cmds='true'
15170 # FIXME: Should let the user specify the lib program.
15171 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15172 fix_srcfile_path='`cygpath -w "$srcfile"`'
15173 enable_shared_with_static_runtimes=yes
15176 darwin* | rhapsody*)
15178 rhapsody* | darwin1.[012])
15179 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15182 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15183 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15185 case ${MACOSX_DEPLOYMENT_TARGET} in
15187 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15190 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15196 archive_cmds_need_lc=no
15198 hardcode_automatic=yes
15199 hardcode_shlibpath_var=unsupported
15200 whole_archive_flag_spec=''
15201 link_all_deplibs=yes
15202 if test "$GCC" = yes ; then
15203 output_verbose_link_cmd='echo'
15204 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15205 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15206 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15207 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}'
15208 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}'
15210 case $cc_basename in
15212 output_verbose_link_cmd='echo'
15213 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15214 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15215 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15216 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}'
15217 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}'
15227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15228 hardcode_libdir_flag_spec='-L$libdir'
15229 hardcode_shlibpath_var=no
15236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15237 # support. Future versions do this automatically, but an explicit c++rt0.o
15238 # does not break anything, and helps significantly (at the cost of a little
15241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15242 hardcode_libdir_flag_spec='-R$libdir'
15243 hardcode_direct=yes
15244 hardcode_shlibpath_var=no
15247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15250 hardcode_direct=yes
15251 hardcode_minus_L=yes
15252 hardcode_shlibpath_var=no
15255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15256 freebsd* | kfreebsd*-gnu | dragonfly*)
15257 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15258 hardcode_libdir_flag_spec='-R$libdir'
15259 hardcode_direct=yes
15260 hardcode_shlibpath_var=no
15264 if test "$GCC" = yes; then
15265 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'
15267 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'
15269 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15270 hardcode_libdir_separator=:
15271 hardcode_direct=yes
15273 # hardcode_minus_L: Not really in the search PATH,
15274 # but as the default location of the library.
15275 hardcode_minus_L=yes
15276 export_dynamic_flag_spec='${wl}-E'
15280 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15283 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15285 if test "$with_gnu_ld" = no; then
15286 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15287 hardcode_libdir_separator=:
15289 hardcode_direct=yes
15290 export_dynamic_flag_spec='${wl}-E'
15292 # hardcode_minus_L: Not really in the search PATH,
15293 # but as the default location of the library.
15294 hardcode_minus_L=yes
15299 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15302 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15305 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15308 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15314 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15320 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15324 if test "$with_gnu_ld" = no; then
15325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15326 hardcode_libdir_separator=:
15330 hardcode_libdir_flag_spec_ld='+b $libdir'
15332 hardcode_shlibpath_var=no
15335 hardcode_direct=yes
15336 export_dynamic_flag_spec='${wl}-E'
15338 # hardcode_minus_L: Not really in the search PATH,
15339 # but as the default location of the library.
15340 hardcode_minus_L=yes
15346 irix5* | irix6* | nonstopux*)
15347 if test "$GCC" = yes; then
15348 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'
15350 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'
15351 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15354 hardcode_libdir_separator=:
15355 link_all_deplibs=yes
15359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15362 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15364 hardcode_libdir_flag_spec='-R$libdir'
15365 hardcode_direct=yes
15366 hardcode_shlibpath_var=no
15370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15371 hardcode_direct=yes
15372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15373 hardcode_libdir_separator=:
15374 hardcode_shlibpath_var=no
15378 hardcode_direct=yes
15379 hardcode_shlibpath_var=no
15380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15382 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15384 export_dynamic_flag_spec='${wl}-E'
15387 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15389 hardcode_libdir_flag_spec='-R$libdir'
15392 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15393 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15400 hardcode_libdir_flag_spec='-L$libdir'
15401 hardcode_minus_L=yes
15402 allow_undefined_flag=unsupported
15403 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'
15404 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15408 if test "$GCC" = yes; then
15409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15410 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'
15412 allow_undefined_flag=' -expect_unresolved \*'
15413 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'
15415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15416 hardcode_libdir_separator=:
15419 osf4* | osf5*) # as osf3* with the addition of -msym flag
15420 if test "$GCC" = yes; then
15421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15422 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'
15423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15425 allow_undefined_flag=' -expect_unresolved \*'
15426 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'
15427 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15428 $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'
15430 # Both c and cxx compiler support -rpath directly
15431 hardcode_libdir_flag_spec='-rpath $libdir'
15433 hardcode_libdir_separator=:
15437 no_undefined_flag=' -z text'
15438 if test "$GCC" = yes; then
15440 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15441 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15442 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15449 hardcode_libdir_flag_spec='-R$libdir'
15450 hardcode_shlibpath_var=no
15452 solaris2.[0-5] | solaris2.[0-5].*) ;;
15454 # The compiler driver will combine linker options so we
15455 # cannot just pass the convience library names through
15456 # without $wl, iff we do not link with $LD.
15457 # Luckily, gcc supports the same syntax we need for Sun Studio.
15458 # Supported since Solaris 2.6 (maybe 2.5.1?)
15461 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15463 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' ;;
15466 link_all_deplibs=yes
15470 if test "x$host_vendor" = xsequent; then
15471 # Use $CC to link under sequent, because it throws in some extra .o
15472 # files that make .init and .fini sections work.
15473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15477 hardcode_libdir_flag_spec='-L$libdir'
15478 hardcode_direct=yes
15479 hardcode_minus_L=yes
15480 hardcode_shlibpath_var=no
15484 case $host_vendor in
15486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15487 hardcode_direct=yes # is this really true???
15490 ## LD is ld it makes a PLAMLIB
15491 ## CC just makes a GrossModule.
15492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15493 reload_cmds='$CC -r -o $output$reload_objs'
15497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15501 runpath_var='LD_RUN_PATH'
15502 hardcode_shlibpath_var=no
15506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507 hardcode_shlibpath_var=no
15508 export_dynamic_flag_spec='-Bexport'
15512 if test -d /usr/nec; then
15513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15514 hardcode_shlibpath_var=no
15515 runpath_var=LD_RUN_PATH
15516 hardcode_runpath_var=yes
15521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15522 no_undefined_flag='${wl}-z,text'
15523 archive_cmds_need_lc=no
15524 hardcode_shlibpath_var=no
15525 runpath_var='LD_RUN_PATH'
15527 if test "$GCC" = yes; then
15528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15536 sysv5* | sco3.2v5* | sco5v6*)
15537 # Note: We can NOT use -z defs as we might desire, because we do not
15538 # link with -lc, and that would cause any symbols used from libc to
15539 # always be unresolved, which means just about no library would
15540 # ever link correctly. If we're not using GNU ld we use -z text
15541 # though, which does catch some bad symbols but isn't as heavy-handed
15543 no_undefined_flag='${wl}-z,text'
15544 allow_undefined_flag='${wl}-z,nodefs'
15545 archive_cmds_need_lc=no
15546 hardcode_shlibpath_var=no
15547 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15548 hardcode_libdir_separator=':'
15549 link_all_deplibs=yes
15550 export_dynamic_flag_spec='${wl}-Bexport'
15551 runpath_var='LD_RUN_PATH'
15553 if test "$GCC" = yes; then
15554 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15557 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 hardcode_libdir_flag_spec='-L$libdir'
15565 hardcode_shlibpath_var=no
15574 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15575 echo "${ECHO_T}$ld_shlibs" >&6; }
15576 test "$ld_shlibs" = no && can_build_shared=no
15579 # Do we need to explicitly link libc?
15581 case "x$archive_cmds_need_lc" in
15583 # Assume -lc should be added
15584 archive_cmds_need_lc=yes
15586 if test "$enable_shared" = yes && test "$GCC" = yes; then
15587 case $archive_cmds in
15589 # FIXME: we may have to deal with multi-command sequences.
15592 # Test whether the compiler implicitly links with -lc since on some
15593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15594 # to ld, don't add -lc before -lgcc.
15595 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15601 (eval $ac_compile) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } 2>conftest.err; then
15607 libobjs=conftest.$ac_objext
15609 wl=$lt_prog_compiler_wl
15610 pic_flag=$lt_prog_compiler_pic
15616 lt_save_allow_undefined_flag=$allow_undefined_flag
15617 allow_undefined_flag=
15618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15619 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }
15624 archive_cmds_need_lc=no
15626 archive_cmds_need_lc=yes
15628 allow_undefined_flag=$lt_save_allow_undefined_flag
15630 cat conftest.err 1>&5
15633 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15634 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15641 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15642 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15643 library_names_spec=
15644 libname_spec='lib$name'
15648 postuninstall_cmds=
15652 shlibpath_overrides_runpath=unknown
15654 dynamic_linker="$host_os ld.so"
15655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15656 if test "$GCC" = yes; then
15657 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15658 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15659 # if the path contains ";" then we assume it to be the separator
15660 # otherwise default to the standard path separator (i.e. ":") - it is
15661 # assumed that no part of a normal pathname contains ";" but that should
15662 # okay in the real world where ";" in dirpaths is itself problematic.
15663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15670 need_lib_prefix=unknown
15671 hardcode_into_libs=no
15673 # when you set need_version to no, make sure it does not cause -set_version
15674 # flags to be left without arguments
15675 need_version=unknown
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15681 shlibpath_var=LIBPATH
15683 # AIX 3 has no versioning support, so we append a major version to the name.
15684 soname_spec='${libname}${release}${shared_ext}$major'
15691 hardcode_into_libs=yes
15692 if test "$host_cpu" = ia64; then
15693 # AIX 5 supports IA64
15694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15695 shlibpath_var=LD_LIBRARY_PATH
15697 # With GCC up to 2.95.x, collect2 would create an import file
15698 # for dependence libraries. The import file would start with
15699 # the line `#! .'. This would cause the generated library to
15700 # depend on `.', always an invalid library. This was fixed in
15701 # development snapshots of GCC prior to 3.0.
15703 aix4 | aix4.[01] | aix4.[01].*)
15704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15706 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15709 can_build_shared=no
15713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15714 # soname into executable. Probably we can add versioning support to
15715 # collect2, so additional links can be useful in future.
15716 if test "$aix_use_runtimelinking" = yes; then
15717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15718 # instead of lib<name>.a to let people know that these are not
15719 # typical AIX shared libraries.
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 # We preserve .a as extension for shared libraries through AIX4.2
15723 # and later when we are not doing run time linking.
15724 library_names_spec='${libname}${release}.a $libname.a'
15725 soname_spec='${libname}${release}${shared_ext}$major'
15727 shlibpath_var=LIBPATH
15732 library_names_spec='$libname.ixlibrary $libname.a'
15733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15734 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'
15738 library_names_spec='${libname}${shared_ext}'
15739 dynamic_linker="$host_os ld.so"
15740 shlibpath_var=LIBRARY_PATH
15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747 soname_spec='${libname}${release}${shared_ext}$major'
15748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15749 shlibpath_var=LD_LIBRARY_PATH
15750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15752 # the default ld.so.conf also contains /usr/contrib/lib and
15753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15754 # libtool to hard-code these into programs
15757 cygwin* | mingw* | pw32*)
15758 version_type=windows
15763 case $GCC,$host_os in
15764 yes,cygwin* | yes,mingw* | yes,pw32*)
15765 library_names_spec='$libname.dll.a'
15766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15767 postinstall_cmds='base_file=`basename \${file}`~
15768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15769 dldir=$destdir/`dirname \$dlpath`~
15770 test -d \$dldir || mkdir -p \$dldir~
15771 $install_prog $dir/$dlname \$dldir/$dlname~
15772 chmod a+x \$dldir/$dlname'
15773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15774 dlpath=$dir/\$dldll~
15776 shlibpath_overrides_runpath=yes
15780 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15781 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15782 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15785 # MinGW DLLs use traditional 'lib' prefix
15786 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15788 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15789 # It is most probably a Windows format PATH printed by
15790 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15791 # path with ; separators, and with drive letters. We can handle the
15792 # drive letters (cygwin fileutils understands them), so leave them,
15793 # especially as we might pass files found there to a mingw objdump,
15794 # which wouldn't understand a cygwinified path. Ahh.
15795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15801 # pw32 DLLs use 'pw' prefix rather than 'lib'
15802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15811 dynamic_linker='Win32 ld.exe'
15812 # FIXME: first we should search . and the directory the executable is in
15816 darwin* | rhapsody*)
15817 dynamic_linker="$host_os dyld"
15818 version_type=darwin
15821 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15822 soname_spec='${libname}${release}${major}$shared_ext'
15823 shlibpath_overrides_runpath=yes
15824 shlibpath_var=DYLD_LIBRARY_PATH
15825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15826 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15827 if test "$GCC" = yes; then
15828 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"`
15830 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15840 soname_spec='${libname}${release}${shared_ext}$major'
15841 shlibpath_var=LD_LIBRARY_PATH
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15853 soname_spec='${libname}${release}${shared_ext}$major'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 shlibpath_overrides_runpath=no
15856 hardcode_into_libs=yes
15857 dynamic_linker='GNU ld.so'
15860 freebsd* | dragonfly*)
15861 # DragonFly does not have aout. When/if they implement a new
15862 # versioning mechanism, adjust this.
15863 if test -x /usr/bin/objformat; then
15864 objformat=`/usr/bin/objformat`
15867 freebsd[123]*) objformat=aout ;;
15868 *) objformat=elf ;;
15871 version_type=freebsd-$objformat
15872 case $version_type in
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15883 shlibpath_var=LD_LIBRARY_PATH
15886 shlibpath_overrides_runpath=yes
15888 freebsd3.[01]* | freebsdelf3.[01]*)
15889 shlibpath_overrides_runpath=yes
15890 hardcode_into_libs=yes
15892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15894 shlibpath_overrides_runpath=no
15895 hardcode_into_libs=yes
15897 freebsd*) # from 4.6 on
15898 shlibpath_overrides_runpath=yes
15899 hardcode_into_libs=yes
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
15910 shlibpath_var=LD_LIBRARY_PATH
15911 hardcode_into_libs=yes
15914 hpux9* | hpux10* | hpux11*)
15915 # Give a soname corresponding to the major version so that dld.sl refuses to
15916 # link against other versions.
15923 hardcode_into_libs=yes
15924 dynamic_linker="$host_os dld.so"
15925 shlibpath_var=LD_LIBRARY_PATH
15926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 if test "X$HPUX_IA64_MODE" = X32; then
15930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15938 hardcode_into_libs=yes
15939 dynamic_linker="$host_os dld.sl"
15940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15943 soname_spec='${libname}${release}${shared_ext}$major'
15944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15949 dynamic_linker="$host_os dld.sl"
15950 shlibpath_var=SHLIB_PATH
15951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15953 soname_spec='${libname}${release}${shared_ext}$major'
15956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15957 postinstall_cmds='chmod 555 $lib'
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=no
15969 hardcode_into_libs=yes
15972 irix5* | irix6* | nonstopux*)
15974 nonstopux*) version_type=nonstopux ;;
15976 if test "$lt_cv_prog_gnu_ld" = yes; then
15984 soname_spec='${libname}${release}${shared_ext}$major'
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15987 irix5* | nonstopux*)
15988 libsuff= shlibsuff=
15991 case $LD in # libtool.m4 will add one of these switches to LD
15992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15993 libsuff= shlibsuff= libmagic=32-bit;;
15994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15995 libsuff=32 shlibsuff=N32 libmagic=N32;;
15996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15998 *) libsuff= shlibsuff= libmagic=never-match;;
16002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16003 shlibpath_overrides_runpath=no
16004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16006 hardcode_into_libs=yes
16009 # No shared lib support for Linux oldld, aout, or coff.
16010 linux*oldld* | linux*aout* | linux*coff*)
16014 # This must be Linux ELF.
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020 soname_spec='${libname}${release}${shared_ext}$major'
16021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16022 shlibpath_var=LD_LIBRARY_PATH
16023 shlibpath_overrides_runpath=no
16024 # This implies no fast_install, which is unacceptable.
16025 # Some rework will be needed to allow for fast_install
16026 # before this can be enabled.
16027 hardcode_into_libs=yes
16029 # Append ld.so.conf contents to the search path
16030 if test -f /etc/ld.so.conf; then
16031 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' ' '`
16032 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16035 # We used to test for /lib/ld.so.1 and disable shared libraries on
16036 # powerpc, because MkLinux only supported shared libraries with the
16037 # GNU dynamic linker. Since this was broken with cross compilers,
16038 # most powerpc-linux boxes support dynamic linking these days and
16039 # people can always --disable-shared, the test was removed, and we
16040 # assume the GNU/Linux dynamic linker is in use.
16041 dynamic_linker='GNU/Linux ld.so'
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=no
16052 hardcode_into_libs=yes
16053 dynamic_linker='GNU ld.so'
16060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16063 dynamic_linker='NetBSD (a.out) ld.so'
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16066 soname_spec='${libname}${release}${shared_ext}$major'
16067 dynamic_linker='NetBSD ld.elf_so'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 shlibpath_overrides_runpath=yes
16071 hardcode_into_libs=yes
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=yes
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath=yes
16093 sys_lib_dlsearch_path_spec="/usr/lib"
16095 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16097 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16098 *) need_version=no ;;
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16105 openbsd2.[89] | openbsd2.[89].*)
16106 shlibpath_overrides_runpath=no
16109 shlibpath_overrides_runpath=yes
16113 shlibpath_overrides_runpath=yes
16118 libname_spec='$name'
16121 library_names_spec='$libname${shared_ext} $libname.a'
16122 dynamic_linker='OS/2 ld.exe'
16123 shlibpath_var=LIBPATH
16126 osf3* | osf4* | osf5*)
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142 soname_spec='${libname}${release}${shared_ext}$major'
16143 shlibpath_var=LD_LIBRARY_PATH
16144 shlibpath_overrides_runpath=yes
16145 hardcode_into_libs=yes
16146 # ldd complains unless libraries are executable
16147 postinstall_cmds='chmod +x $lib'
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16154 shlibpath_var=LD_LIBRARY_PATH
16155 shlibpath_overrides_runpath=yes
16156 if test "$with_gnu_ld" = yes; then
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165 soname_spec='${libname}${release}${shared_ext}$major'
16166 shlibpath_var=LD_LIBRARY_PATH
16167 case $host_vendor in
16169 shlibpath_overrides_runpath=no
16171 export_dynamic_flag_spec='${wl}-Blargedynsym'
16172 runpath_var=LD_RUN_PATH
16180 shlibpath_overrides_runpath=no
16181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16187 if test -d /usr/nec ;then
16189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16190 soname_spec='$libname${shared_ext}.$major'
16191 shlibpath_var=LD_LIBRARY_PATH
16195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16196 version_type=freebsd-elf
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 hardcode_into_libs=yes
16203 if test "$with_gnu_ld" = yes; then
16204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16205 shlibpath_overrides_runpath=no
16207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16208 shlibpath_overrides_runpath=yes
16211 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16215 sys_lib_dlsearch_path_spec='/usr/lib'
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 shlibpath_var=LD_LIBRARY_PATH
16229 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16230 echo "${ECHO_T}$dynamic_linker" >&6; }
16231 test "$dynamic_linker" = no && can_build_shared=no
16233 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16234 if test "$GCC" = yes; then
16235 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16238 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16239 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16241 if test -n "$hardcode_libdir_flag_spec" || \
16242 test -n "$runpath_var" || \
16243 test "X$hardcode_automatic" = "Xyes" ; then
16245 # We can hardcode non-existant directories.
16246 if test "$hardcode_direct" != no &&
16247 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16248 # have to relink, otherwise we might link with an installed library
16249 # when we should be linking with a yet-to-be-installed one
16250 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16251 test "$hardcode_minus_L" != no; then
16252 # Linking always hardcodes the temporary library directory.
16253 hardcode_action=relink
16255 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16256 hardcode_action=immediate
16259 # We cannot hardcode anything, or else we can only hardcode existing
16261 hardcode_action=unsupported
16263 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16264 echo "${ECHO_T}$hardcode_action" >&6; }
16266 if test "$hardcode_action" = relink; then
16267 # Fast installation is not supported
16268 enable_fast_install=no
16269 elif test "$shlibpath_overrides_runpath" = yes ||
16270 test "$enable_shared" = no; then
16271 # Fast installation is not necessary
16272 enable_fast_install=needless
16277 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16278 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16279 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16280 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16281 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16282 { echo "$as_me:$LINENO: result: yes" >&5
16283 echo "${ECHO_T}yes" >&6; }
16285 # FIXME - insert some real tests, host_os isn't really good enough
16288 if test -n "$STRIP" ; then
16289 striplib="$STRIP -x"
16290 { echo "$as_me:$LINENO: result: yes" >&5
16291 echo "${ECHO_T}yes" >&6; }
16293 { echo "$as_me:$LINENO: result: no" >&5
16294 echo "${ECHO_T}no" >&6; }
16298 { echo "$as_me:$LINENO: result: no" >&5
16299 echo "${ECHO_T}no" >&6; }
16304 if test "x$enable_dlopen" != xyes; then
16305 enable_dlopen=unknown
16306 enable_dlopen_self=unknown
16307 enable_dlopen_self_static=unknown
16314 lt_cv_dlopen="load_add_on"
16316 lt_cv_dlopen_self=yes
16320 lt_cv_dlopen="LoadLibrary"
16325 lt_cv_dlopen="dlopen"
16330 # if libdl is installed we need to link against it
16331 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16332 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16333 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 ac_check_lib_save_LIBS=$LIBS
16338 cat >conftest.$ac_ext <<_ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16345 /* Override any GCC internal prototype to avoid an error.
16346 Use char because int might match the return type of a GCC
16347 builtin and then its argument prototype would still apply. */
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (ac_try="$ac_link"
16362 case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_link") 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
16374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16375 { (case "(($ac_try" in
16376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377 *) ac_try_echo=$ac_try;;
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380 (eval "$ac_try") 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; } &&
16384 { ac_try='test -s conftest$ac_exeext'
16385 { (case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_try") 2>&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; }; then
16394 ac_cv_lib_dl_dlopen=yes
16396 echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16399 ac_cv_lib_dl_dlopen=no
16402 rm -f core conftest.err conftest.$ac_objext \
16403 conftest$ac_exeext conftest.$ac_ext
16404 LIBS=$ac_check_lib_save_LIBS
16406 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16408 if test $ac_cv_lib_dl_dlopen = yes; then
16409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16412 lt_cv_dlopen="dyld"
16414 lt_cv_dlopen_self=yes
16421 { echo "$as_me:$LINENO: checking for shl_load" >&5
16422 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16423 if test "${ac_cv_func_shl_load+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16434 #define shl_load innocuous_shl_load
16436 /* System header to define __stub macros and hopefully few prototypes,
16437 which can conflict with char shl_load (); below.
16438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16439 <limits.h> exists even on freestanding compilers. */
16442 # include <limits.h>
16444 # include <assert.h>
16449 /* Override any GCC internal prototype to avoid an error.
16450 Use char because int might match the return type of a GCC
16451 builtin and then its argument prototype would still apply. */
16456 /* The GNU C library defines this for functions which it implements
16457 to always fail with ENOSYS. Some functions are actually named
16458 something starting with __ and the normal name is an alias. */
16459 #if defined __stub_shl_load || defined __stub___shl_load
16466 return shl_load ();
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (ac_try="$ac_link"
16473 case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_link") 2>conftest.er1
16480 grep -v '^ *+' conftest.er1 >conftest.err
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
16485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16486 { (case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_try") 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest$ac_exeext'
16496 { (case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_try") 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 ac_cv_func_shl_load=yes
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 ac_cv_func_shl_load=no
16513 rm -f core conftest.err conftest.$ac_objext \
16514 conftest$ac_exeext conftest.$ac_ext
16516 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16517 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16518 if test $ac_cv_func_shl_load = yes; then
16519 lt_cv_dlopen="shl_load"
16521 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16522 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16523 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 ac_check_lib_save_LIBS=$LIBS
16528 cat >conftest.$ac_ext <<_ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16535 /* Override any GCC internal prototype to avoid an error.
16536 Use char because int might match the return type of a GCC
16537 builtin and then its argument prototype would still apply. */
16545 return shl_load ();
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (ac_try="$ac_link"
16552 case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_link") 2>conftest.er1
16559 grep -v '^ *+' conftest.er1 >conftest.err
16561 cat conftest.err >&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
16564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16565 { (case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_try") 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest$ac_exeext'
16575 { (case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580 (eval "$ac_try") 2>&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 ac_cv_lib_dld_shl_load=yes
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 ac_cv_lib_dld_shl_load=no
16592 rm -f core conftest.err conftest.$ac_objext \
16593 conftest$ac_exeext conftest.$ac_ext
16594 LIBS=$ac_check_lib_save_LIBS
16596 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16597 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16598 if test $ac_cv_lib_dld_shl_load = yes; then
16599 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16601 { echo "$as_me:$LINENO: checking for dlopen" >&5
16602 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16603 if test "${ac_cv_func_dlopen+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 cat >conftest.$ac_ext <<_ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16612 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16614 #define dlopen innocuous_dlopen
16616 /* System header to define __stub macros and hopefully few prototypes,
16617 which can conflict with char dlopen (); below.
16618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16619 <limits.h> exists even on freestanding compilers. */
16622 # include <limits.h>
16624 # include <assert.h>
16629 /* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
16636 /* The GNU C library defines this for functions which it implements
16637 to always fail with ENOSYS. Some functions are actually named
16638 something starting with __ and the normal name is an alias. */
16639 #if defined __stub_dlopen || defined __stub___dlopen
16651 rm -f conftest.$ac_objext conftest$ac_exeext
16652 if { (ac_try="$ac_link"
16653 case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_link") 2>conftest.er1
16660 grep -v '^ *+' conftest.er1 >conftest.err
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16666 { (case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_try") 2>&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } &&
16675 { ac_try='test -s conftest$ac_exeext'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_func_dlopen=yes
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 ac_cv_func_dlopen=no
16693 rm -f core conftest.err conftest.$ac_objext \
16694 conftest$ac_exeext conftest.$ac_ext
16696 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16697 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16698 if test $ac_cv_func_dlopen = yes; then
16699 lt_cv_dlopen="dlopen"
16701 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16702 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16703 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16706 ac_check_lib_save_LIBS=$LIBS
16708 cat >conftest.$ac_ext <<_ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16715 /* Override any GCC internal prototype to avoid an error.
16716 Use char because int might match the return type of a GCC
16717 builtin and then its argument prototype would still apply. */
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (ac_try="$ac_link"
16732 case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_link") 2>conftest.er1
16739 grep -v '^ *+' conftest.er1 >conftest.err
16741 cat conftest.err >&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
16744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16745 { (case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_try") 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; } &&
16754 { ac_try='test -s conftest$ac_exeext'
16755 { (case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_try") 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_lib_dl_dlopen=yes
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 ac_cv_lib_dl_dlopen=no
16772 rm -f core conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16774 LIBS=$ac_check_lib_save_LIBS
16776 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16778 if test $ac_cv_lib_dl_dlopen = yes; then
16779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16781 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16782 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16783 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 ac_check_lib_save_LIBS=$LIBS
16787 LIBS="-lsvld $LIBS"
16788 cat >conftest.$ac_ext <<_ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16795 /* Override any GCC internal prototype to avoid an error.
16796 Use char because int might match the return type of a GCC
16797 builtin and then its argument prototype would still apply. */
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; } &&
16834 { ac_try='test -s conftest$ac_exeext'
16835 { (case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_try") 2>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_cv_lib_svld_dlopen=yes
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16849 ac_cv_lib_svld_dlopen=no
16852 rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16854 LIBS=$ac_check_lib_save_LIBS
16856 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16857 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16858 if test $ac_cv_lib_svld_dlopen = yes; then
16859 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16861 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16862 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16863 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 ac_check_lib_save_LIBS=$LIBS
16868 cat >conftest.$ac_ext <<_ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h. */
16875 /* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
16885 return dld_link ();
16890 rm -f conftest.$ac_objext conftest$ac_exeext
16891 if { (ac_try="$ac_link"
16892 case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_link") 2>conftest.er1
16899 grep -v '^ *+' conftest.er1 >conftest.err
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_lib_dld_dld_link=yes
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 ac_cv_lib_dld_dld_link=no
16932 rm -f core conftest.err conftest.$ac_objext \
16933 conftest$ac_exeext conftest.$ac_ext
16934 LIBS=$ac_check_lib_save_LIBS
16936 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16937 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16938 if test $ac_cv_lib_dld_dld_link = yes; then
16939 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16960 if test "x$lt_cv_dlopen" != xno; then
16966 case $lt_cv_dlopen in
16968 save_CPPFLAGS="$CPPFLAGS"
16969 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16971 save_LDFLAGS="$LDFLAGS"
16972 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16975 LIBS="$lt_cv_dlopen_libs $LIBS"
16977 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16978 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16979 if test "${lt_cv_dlopen_self+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 if test "$cross_compiling" = yes; then :
16983 lt_cv_dlopen_self=cross
16985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16986 lt_status=$lt_dlunknown
16987 cat > conftest.$ac_ext <<EOF
16988 #line 16988 "configure"
16989 #include "confdefs.h"
16998 # define LT_DLGLOBAL RTLD_GLOBAL
17001 # define LT_DLGLOBAL DL_GLOBAL
17003 # define LT_DLGLOBAL 0
17007 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17008 find out it does not work in some platform. */
17009 #ifndef LT_DLLAZY_OR_NOW
17011 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17014 # define LT_DLLAZY_OR_NOW DL_LAZY
17017 # define LT_DLLAZY_OR_NOW RTLD_NOW
17020 # define LT_DLLAZY_OR_NOW DL_NOW
17022 # define LT_DLLAZY_OR_NOW 0
17030 extern "C" void exit (int);
17033 void fnord() { int i=42;}
17036 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17037 int status = $lt_dlunknown;
17041 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17042 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17043 /* dlclose (self); */
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17056 (./conftest; exit; ) >&5 2>/dev/null
17058 case x$lt_status in
17059 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17060 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17061 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17064 # compilation failed
17065 lt_cv_dlopen_self=no
17072 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17073 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17075 if test "x$lt_cv_dlopen_self" = xyes; then
17076 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17077 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17078 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17079 if test "${lt_cv_dlopen_self_static+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 if test "$cross_compiling" = yes; then :
17083 lt_cv_dlopen_self_static=cross
17085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17086 lt_status=$lt_dlunknown
17087 cat > conftest.$ac_ext <<EOF
17088 #line 17088 "configure"
17089 #include "confdefs.h"
17098 # define LT_DLGLOBAL RTLD_GLOBAL
17101 # define LT_DLGLOBAL DL_GLOBAL
17103 # define LT_DLGLOBAL 0
17107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17108 find out it does not work in some platform. */
17109 #ifndef LT_DLLAZY_OR_NOW
17111 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17114 # define LT_DLLAZY_OR_NOW DL_LAZY
17117 # define LT_DLLAZY_OR_NOW RTLD_NOW
17120 # define LT_DLLAZY_OR_NOW DL_NOW
17122 # define LT_DLLAZY_OR_NOW 0
17130 extern "C" void exit (int);
17133 void fnord() { int i=42;}
17136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17137 int status = $lt_dlunknown;
17141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17143 /* dlclose (self); */
17151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17152 (eval $ac_link) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17156 (./conftest; exit; ) >&5 2>/dev/null
17158 case x$lt_status in
17159 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17160 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17161 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17164 # compilation failed
17165 lt_cv_dlopen_self_static=no
17172 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17173 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17176 CPPFLAGS="$save_CPPFLAGS"
17177 LDFLAGS="$save_LDFLAGS"
17182 case $lt_cv_dlopen_self in
17183 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17184 *) enable_dlopen_self=unknown ;;
17187 case $lt_cv_dlopen_self_static in
17188 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17189 *) enable_dlopen_self_static=unknown ;;
17194 # Report which library types will actually be built
17195 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17196 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17197 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17198 echo "${ECHO_T}$can_build_shared" >&6; }
17200 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17201 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17202 test "$can_build_shared" = "no" && enable_shared=no
17204 # On AIX, shared libraries and static libraries use the same namespace, and
17205 # are all built from PIC.
17208 test "$enable_shared" = yes && enable_static=no
17209 if test -n "$RANLIB"; then
17210 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17211 postinstall_cmds='$RANLIB $lib'
17216 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17217 test "$enable_shared" = yes && enable_static=no
17221 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17222 echo "${ECHO_T}$enable_shared" >&6; }
17224 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17225 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17226 # Make sure either enable_shared or enable_static is yes.
17227 test "$enable_shared" = yes || enable_static=yes
17228 { echo "$as_me:$LINENO: result: $enable_static" >&5
17229 echo "${ECHO_T}$enable_static" >&6; }
17231 # The else clause should only fire when bootstrapping the
17232 # libtool distribution, otherwise you forgot to ship ltmain.sh
17233 # with your package, and you will get complaints that there are
17234 # no rules to generate ltmain.sh.
17235 if test -f "$ltmain"; then
17236 # See if we are running on zsh, and set the options which allow our commands through
17237 # without removal of \ escapes.
17238 if test -n "${ZSH_VERSION+set}" ; then
17239 setopt NO_GLOB_SUBST
17241 # Now quote all the things that may contain metacharacters while being
17242 # careful not to overquote the AC_SUBSTed values. We take copies of the
17243 # variables and quote the copies for generation of the libtool script.
17244 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17246 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17247 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17248 deplibs_check_method reload_flag reload_cmds need_locks \
17249 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17250 lt_cv_sys_global_symbol_to_c_name_address \
17251 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17252 old_postinstall_cmds old_postuninstall_cmds \
17256 lt_prog_compiler_wl \
17257 lt_prog_compiler_pic \
17258 lt_prog_compiler_static \
17259 lt_prog_compiler_no_builtin_flag \
17260 export_dynamic_flag_spec \
17261 thread_safe_flag_spec \
17262 whole_archive_flag_spec \
17263 enable_shared_with_static_runtimes \
17265 old_archive_from_new_cmds \
17270 compiler_lib_search_path \
17272 archive_expsym_cmds \
17274 postuninstall_cmds \
17275 old_archive_from_expsyms_cmds \
17276 allow_undefined_flag \
17277 no_undefined_flag \
17278 export_symbols_cmds \
17279 hardcode_libdir_flag_spec \
17280 hardcode_libdir_flag_spec_ld \
17281 hardcode_libdir_separator \
17282 hardcode_automatic \
17284 module_expsym_cmds \
17285 lt_cv_prog_compiler_c_o \
17287 include_expsyms; do
17290 old_archive_cmds | \
17291 old_archive_from_new_cmds | \
17293 archive_expsym_cmds | \
17295 module_expsym_cmds | \
17296 old_archive_from_expsyms_cmds | \
17297 export_symbols_cmds | \
17298 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17299 postinstall_cmds | postuninstall_cmds | \
17300 old_postinstall_cmds | old_postuninstall_cmds | \
17301 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17302 # Double-quote double-evaled strings.
17303 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17306 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17312 *'\$0 --fallback-echo"')
17313 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17317 cfgfile="${ofile}T"
17318 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17320 { echo "$as_me:$LINENO: creating $ofile" >&5
17321 echo "$as_me: creating $ofile" >&6;}
17323 cat <<__EOF__ >> "$cfgfile"
17326 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17327 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17328 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17330 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17331 # Free Software Foundation, Inc.
17333 # This file is part of GNU Libtool:
17334 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17336 # This program is free software; you can redistribute it and/or modify
17337 # it under the terms of the GNU General Public License as published by
17338 # the Free Software Foundation; either version 2 of the License, or
17339 # (at your option) any later version.
17341 # This program is distributed in the hope that it will be useful, but
17342 # WITHOUT ANY WARRANTY; without even the implied warranty of
17343 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17344 # General Public License for more details.
17346 # You should have received a copy of the GNU General Public License
17347 # along with this program; if not, write to the Free Software
17348 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17350 # As a special exception to the GNU General Public License, if you
17351 # distribute this file as part of a program that contains a
17352 # configuration script generated by Autoconf, you may include it under
17353 # the same distribution terms that you use for the rest of that program.
17355 # A sed program that does not truncate output.
17358 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17359 Xsed="$SED -e 1s/^X//"
17361 # The HP-UX ksh and POSIX shell print the target directory to stdout
17362 # if CDPATH is set.
17363 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17365 # The names of the tagged configurations supported by this script.
17368 # ### BEGIN LIBTOOL CONFIG
17370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17372 # Shell to use when invoking shell scripts.
17375 # Whether or not to build shared libraries.
17376 build_libtool_libs=$enable_shared
17378 # Whether or not to build static libraries.
17379 build_old_libs=$enable_static
17381 # Whether or not to add -lc for building shared libraries.
17382 build_libtool_need_lc=$archive_cmds_need_lc
17384 # Whether or not to disallow shared libs when runtime libs are static
17385 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17387 # Whether or not to optimize for fast installation.
17388 fast_install=$enable_fast_install
17391 host_alias=$host_alias
17395 # The build system.
17396 build_alias=$build_alias
17400 # An echo program that does not interpret backslashes.
17405 AR_FLAGS=$lt_AR_FLAGS
17410 # LTCC compiler flags.
17411 LTCFLAGS=$lt_LTCFLAGS
17413 # A language-specific compiler.
17416 # Is the compiler the GNU C compiler?
17422 # The linker used to build libraries.
17425 # Whether we need hard or soft links.
17428 # A BSD-compatible nm program.
17431 # A symbol stripping program
17434 # Used to examine libraries when file_magic_cmd begins "file"
17435 MAGIC_CMD=$MAGIC_CMD
17437 # Used on cygwin: DLL creation program.
17440 # Used on cygwin: object dumper.
17443 # Used on cygwin: assembler.
17446 # The name of the directory that contains temporary libtool files.
17449 # How to create reloadable object files.
17450 reload_flag=$lt_reload_flag
17451 reload_cmds=$lt_reload_cmds
17453 # How to pass a linker flag through the compiler.
17454 wl=$lt_lt_prog_compiler_wl
17456 # Object file suffix (normally "o").
17457 objext="$ac_objext"
17459 # Old archive suffix (normally "a").
17462 # Shared library suffix (normally ".so").
17463 shrext_cmds='$shrext_cmds'
17465 # Executable file suffix (normally "").
17468 # Additional compiler flags for building library objects.
17469 pic_flag=$lt_lt_prog_compiler_pic
17472 # What is the maximum length of a command?
17473 max_cmd_len=$lt_cv_sys_max_cmd_len
17475 # Does compiler simultaneously support -c and -o options?
17476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17478 # Must we lock files when doing compilation?
17479 need_locks=$lt_need_locks
17481 # Do we need the lib prefix for modules?
17482 need_lib_prefix=$need_lib_prefix
17484 # Do we need a version for libraries?
17485 need_version=$need_version
17487 # Whether dlopen is supported.
17488 dlopen_support=$enable_dlopen
17490 # Whether dlopen of programs is supported.
17491 dlopen_self=$enable_dlopen_self
17493 # Whether dlopen of statically linked programs is supported.
17494 dlopen_self_static=$enable_dlopen_self_static
17496 # Compiler flag to prevent dynamic linking.
17497 link_static_flag=$lt_lt_prog_compiler_static
17499 # Compiler flag to turn off builtin functions.
17500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17502 # Compiler flag to allow reflexive dlopens.
17503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17505 # Compiler flag to generate shared objects directly from archives.
17506 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17508 # Compiler flag to generate thread-safe objects.
17509 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17511 # Library versioning type.
17512 version_type=$version_type
17514 # Format of library name prefix.
17515 libname_spec=$lt_libname_spec
17517 # List of archive names. First name is the real one, the rest are links.
17518 # The last name is the one that the linker finds with -lNAME.
17519 library_names_spec=$lt_library_names_spec
17521 # The coded name of the library, if different from the real name.
17522 soname_spec=$lt_soname_spec
17524 # Commands used to build and install an old-style archive.
17526 old_archive_cmds=$lt_old_archive_cmds
17527 old_postinstall_cmds=$lt_old_postinstall_cmds
17528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17530 # Create an old-style archive from a shared archive.
17531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17533 # Create a temporary old-style archive to link instead of a shared archive.
17534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17536 # Commands used to build and install a shared archive.
17537 archive_cmds=$lt_archive_cmds
17538 archive_expsym_cmds=$lt_archive_expsym_cmds
17539 postinstall_cmds=$lt_postinstall_cmds
17540 postuninstall_cmds=$lt_postuninstall_cmds
17542 # Commands used to build a loadable module (assumed same as above if empty)
17543 module_cmds=$lt_module_cmds
17544 module_expsym_cmds=$lt_module_expsym_cmds
17546 # Commands to strip libraries.
17547 old_striplib=$lt_old_striplib
17548 striplib=$lt_striplib
17550 # Dependencies to place before the objects being linked to create a
17552 predep_objects=$lt_predep_objects
17554 # Dependencies to place after the objects being linked to create a
17556 postdep_objects=$lt_postdep_objects
17558 # Dependencies to place before the objects being linked to create a
17560 predeps=$lt_predeps
17562 # Dependencies to place after the objects being linked to create a
17564 postdeps=$lt_postdeps
17566 # The library search path used internally by the compiler when linking
17567 # a shared library.
17568 compiler_lib_search_path=$lt_compiler_lib_search_path
17570 # Method to check whether dependent libraries are shared objects.
17571 deplibs_check_method=$lt_deplibs_check_method
17573 # Command to use when deplibs_check_method == file_magic.
17574 file_magic_cmd=$lt_file_magic_cmd
17576 # Flag that allows shared libraries with undefined symbols to be built.
17577 allow_undefined_flag=$lt_allow_undefined_flag
17579 # Flag that forces no undefined symbols.
17580 no_undefined_flag=$lt_no_undefined_flag
17582 # Commands used to finish a libtool library installation in a directory.
17583 finish_cmds=$lt_finish_cmds
17585 # Same as above, but a single script fragment to be evaled but not shown.
17586 finish_eval=$lt_finish_eval
17588 # Take the output of nm and produce a listing of raw symbols and C names.
17589 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17591 # Transform the output of nm in a proper C declaration
17592 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17594 # Transform the output of nm in a C name address pair
17595 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17597 # This is the shared library runtime path variable.
17598 runpath_var=$runpath_var
17600 # This is the shared library path variable.
17601 shlibpath_var=$shlibpath_var
17603 # Is shlibpath searched before the hard-coded library search path?
17604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17606 # How to hardcode a shared library path into an executable.
17607 hardcode_action=$hardcode_action
17609 # Whether we should hardcode library paths into libraries.
17610 hardcode_into_libs=$hardcode_into_libs
17612 # Flag to hardcode \$libdir into a binary during linking.
17613 # This must work even if \$libdir does not exist.
17614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17616 # If ld is used when linking, flag to hardcode \$libdir into
17617 # a binary during linking. This must work even if \$libdir does
17619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17621 # Whether we need a single -rpath flag with a separated argument.
17622 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17624 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17625 # resulting binary.
17626 hardcode_direct=$hardcode_direct
17628 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17629 # resulting binary.
17630 hardcode_minus_L=$hardcode_minus_L
17632 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17633 # the resulting binary.
17634 hardcode_shlibpath_var=$hardcode_shlibpath_var
17636 # Set to yes if building a shared library automatically hardcodes DIR into the library
17637 # and all subsequent libraries and executables linked against it.
17638 hardcode_automatic=$hardcode_automatic
17640 # Variables whose values should be saved in libtool wrapper scripts and
17641 # restored at relink time.
17642 variables_saved_for_relink="$variables_saved_for_relink"
17644 # Whether libtool must link a program against all its dependency libraries.
17645 link_all_deplibs=$link_all_deplibs
17647 # Compile-time system search path for libraries
17648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17650 # Run-time system search path for libraries
17651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17653 # Fix the shell variable \$srcfile for the compiler.
17654 fix_srcfile_path="$fix_srcfile_path"
17656 # Set to yes if exported symbols are required.
17657 always_export_symbols=$always_export_symbols
17659 # The commands to list exported symbols.
17660 export_symbols_cmds=$lt_export_symbols_cmds
17662 # The commands to extract the exported symbol list from a shared archive.
17663 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17665 # Symbols that should not be listed in the preloaded symbols.
17666 exclude_expsyms=$lt_exclude_expsyms
17668 # Symbols that must always be exported.
17669 include_expsyms=$lt_include_expsyms
17671 # ### END LIBTOOL CONFIG
17678 cat <<\EOF >> "$cfgfile"
17680 # AIX sometimes has problems with the GCC collect2 program. For some
17681 # reason, if we set the COLLECT_NAMES environment variable, the problems
17682 # vanish in a puff of smoke.
17683 if test "X${COLLECT_NAMES+set}" != Xset; then
17685 export COLLECT_NAMES
17691 # We use sed instead of cat because bash on DJGPP gets confused if
17692 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17693 # text mode, it properly converts lines to CR/LF. This bash problem
17694 # is reportedly fixed, but why not run on old versions too?
17695 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17697 mv -f "$cfgfile" "$ofile" || \
17698 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17702 # If there is no Makefile yet, we rely on a make rule to execute
17703 # `config.status --recheck' to rerun these tests and create the
17704 # libtool script then.
17705 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17706 if test -f "$ltmain_in"; then
17707 test -f Makefile && make "$ltmain"
17713 ac_cpp='$CPP $CPPFLAGS'
17714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17721 # Check whether --with-tags was given.
17722 if test "${with_tags+set}" = set; then
17723 withval=$with_tags; tagnames="$withval"
17727 if test -f "$ltmain" && test -n "$tagnames"; then
17728 if test ! -f "${ofile}"; then
17729 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17730 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17733 if test -z "$LTCC"; then
17734 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17735 if test -z "$LTCC"; then
17736 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17737 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17740 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17743 if test -z "$LTCFLAGS"; then
17744 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17747 # Extract list of available tagged configurations in $ofile.
17748 # Note that this assumes the entire list is on one line.
17749 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17751 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17752 for tagname in $tagnames; do
17754 # Check whether tagname contains only valid characters
17755 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17757 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17758 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17759 { (exit 1); exit 1; }; }
17763 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17765 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17766 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17767 { (exit 1); exit 1; }; }
17770 # Update the list of available tags.
17771 if test -n "$tagname"; then
17772 echo appending configuration tag \"$tagname\" to $ofile
17776 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17777 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17778 (test "X$CXX" != "Xg++"))) ; then
17780 ac_cpp='$CXXCPP $CPPFLAGS'
17781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17788 archive_cmds_need_lc_CXX=no
17789 allow_undefined_flag_CXX=
17790 always_export_symbols_CXX=no
17791 archive_expsym_cmds_CXX=
17792 export_dynamic_flag_spec_CXX=
17793 hardcode_direct_CXX=no
17794 hardcode_libdir_flag_spec_CXX=
17795 hardcode_libdir_flag_spec_ld_CXX=
17796 hardcode_libdir_separator_CXX=
17797 hardcode_minus_L_CXX=no
17798 hardcode_shlibpath_var_CXX=unsupported
17799 hardcode_automatic_CXX=no
17801 module_expsym_cmds_CXX=
17802 link_all_deplibs_CXX=unknown
17803 old_archive_cmds_CXX=$old_archive_cmds
17804 no_undefined_flag_CXX=
17805 whole_archive_flag_spec_CXX=
17806 enable_shared_with_static_runtimes_CXX=no
17808 # Dependencies to place before and after the object being linked:
17809 predep_objects_CXX=
17810 postdep_objects_CXX=
17813 compiler_lib_search_path_CXX=
17815 # Source file extension for C++ test sources.
17818 # Object file extension for compiled C++ test sources.
17822 # Code to be used in simple compile tests
17823 lt_simple_compile_test_code="int some_variable = 0;\n"
17825 # Code to be used in simple link tests
17826 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17828 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17830 # If no C compiler was specified, use CC.
17833 # If no C compiler flags were specified, use CFLAGS.
17834 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17836 # Allow CC to be a program name with arguments.
17840 # save warnings/boilerplate of simple test code
17841 ac_outfile=conftest.$ac_objext
17842 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17844 _lt_compiler_boilerplate=`cat conftest.err`
17847 ac_outfile=conftest.$ac_objext
17848 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17850 _lt_linker_boilerplate=`cat conftest.err`
17854 # Allow CC to be a program name with arguments.
17859 lt_save_with_gnu_ld=$with_gnu_ld
17860 lt_save_path_LD=$lt_cv_path_LD
17861 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17862 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17864 $as_unset lt_cv_prog_gnu_ld
17866 if test -n "${lt_cv_path_LDCXX+set}"; then
17867 lt_cv_path_LD=$lt_cv_path_LDCXX
17869 $as_unset lt_cv_path_LD
17871 test -z "${LDCXX+set}" || LD=$LDCXX
17875 for cc_temp in $compiler""; do
17877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17886 # We don't want -fno-exception wen compiling C++ code, so set the
17887 # no_builtin_flag separately
17888 if test "$GXX" = yes; then
17889 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17891 lt_prog_compiler_no_builtin_flag_CXX=
17894 if test "$GXX" = yes; then
17895 # Set up default GNU C++ configuration
17898 # Check whether --with-gnu-ld was given.
17899 if test "${with_gnu_ld+set}" = set; then
17900 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17906 if test "$GCC" = yes; then
17907 # Check if gcc -print-prog-name=ld gives a path.
17908 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17909 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17912 # gcc leaves a trailing carriage return which upsets mingw
17913 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17915 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17918 # Accept absolute paths.
17920 re_direlt='/[^/][^/]*/\.\./'
17921 # Canonicalize the pathname of ld
17922 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17923 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17924 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17926 test -z "$LD" && LD="$ac_prog"
17929 # If it fails, then pretend we aren't using GCC.
17933 # If it is relative, then search for the first ld in PATH.
17934 with_gnu_ld=unknown
17937 elif test "$with_gnu_ld" = yes; then
17938 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17939 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17941 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17942 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17944 if test "${lt_cv_path_LD+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17947 if test -z "$LD"; then
17948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17949 for ac_dir in $PATH; do
17951 test -z "$ac_dir" && ac_dir=.
17952 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17953 lt_cv_path_LD="$ac_dir/$ac_prog"
17954 # Check to see if the program is GNU ld. I'd rather use --version,
17955 # but apparently some variants of GNU ld only accept -v.
17956 # Break only if it was the GNU/non-GNU ld that we prefer.
17957 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17958 *GNU* | *'with BFD'*)
17959 test "$with_gnu_ld" != no && break
17962 test "$with_gnu_ld" != yes && break
17969 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17973 LD="$lt_cv_path_LD"
17974 if test -n "$LD"; then
17975 { echo "$as_me:$LINENO: result: $LD" >&5
17976 echo "${ECHO_T}$LD" >&6; }
17978 { echo "$as_me:$LINENO: result: no" >&5
17979 echo "${ECHO_T}no" >&6; }
17981 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17982 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17983 { (exit 1); exit 1; }; }
17984 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17985 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17986 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17990 case `$LD -v 2>&1 </dev/null` in
17991 *GNU* | *'with BFD'*)
17992 lt_cv_prog_gnu_ld=yes
17995 lt_cv_prog_gnu_ld=no
17999 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18000 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18001 with_gnu_ld=$lt_cv_prog_gnu_ld
18005 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18006 # archiving commands below assume that GNU ld is being used.
18007 if test "$with_gnu_ld" = yes; then
18008 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009 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'
18011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18014 # If archive_cmds runs LD, not CC, wlarc should be empty
18015 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18016 # investigate it a little bit more. (MM)
18019 # ancient GNU ld didn't support --whole-archive et. al.
18020 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18021 grep 'no-whole-archive' > /dev/null; then
18022 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18024 whole_archive_flag_spec_CXX=
18030 # A generic and very simple default shared library creation
18031 # command for GNU C++ for the case where it uses the native
18032 # linker, instead of GNU ld. If possible, this setting should
18033 # overridden to take advantage of the native linker features on
18034 # the platform it is being used on.
18035 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18038 # Commands to make compiler produce verbose output that lists
18039 # what "hidden" libraries, object files and flags are used when
18040 # linking a shared library.
18041 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18049 # PORTME: fill in a description of your system's C++ link characteristics
18050 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18051 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18055 # FIXME: insert proper C++ library support
18059 if test "$host_cpu" = ia64; then
18060 # On IA64, the linker does run time linking by default, so we don't
18061 # have to do anything special.
18062 aix_use_runtimelinking=no
18063 exp_sym_flag='-Bexport'
18066 aix_use_runtimelinking=no
18068 # Test if we are trying to use run time linking or normal
18069 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18070 # need to do runtime linking.
18071 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18072 for ld_flag in $LDFLAGS; do
18075 aix_use_runtimelinking=yes
18083 exp_sym_flag='-bexport'
18084 no_entry_flag='-bnoentry'
18087 # When large executables or shared objects are built, AIX ld can
18088 # have problems creating the table of contents. If linking a library
18089 # or program results in "error TOC overflow" add -mminimal-toc to
18090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18093 archive_cmds_CXX=''
18094 hardcode_direct_CXX=yes
18095 hardcode_libdir_separator_CXX=':'
18096 link_all_deplibs_CXX=yes
18098 if test "$GXX" = yes; then
18099 case $host_os in aix4.[012]|aix4.[012].*)
18100 # We only want to do this on AIX 4.2 and lower, the check
18101 # below for broken collect2 doesn't work under 4.3+
18102 collect2name=`${CC} -print-prog-name=collect2`
18103 if test -f "$collect2name" && \
18104 strings "$collect2name" | grep resolve_lib_name >/dev/null
18106 # We have reworked collect2
18107 hardcode_direct_CXX=yes
18109 # We have old collect2
18110 hardcode_direct_CXX=unsupported
18111 # It fails to find uninstalled libraries when the uninstalled
18112 # path is not listed in the libpath. Setting hardcode_minus_L
18113 # to unsupported forces relinking
18114 hardcode_minus_L_CXX=yes
18115 hardcode_libdir_flag_spec_CXX='-L$libdir'
18116 hardcode_libdir_separator_CXX=
18120 shared_flag='-shared'
18121 if test "$aix_use_runtimelinking" = yes; then
18122 shared_flag="$shared_flag "'${wl}-G'
18126 if test "$host_cpu" = ia64; then
18127 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18128 # chokes on -Wl,-G. The following line is correct:
18131 if test "$aix_use_runtimelinking" = yes; then
18132 shared_flag='${wl}-G'
18134 shared_flag='${wl}-bM:SRE'
18139 # It seems that -bexpall does not export symbols beginning with
18140 # underscore (_), so it is better to generate a list of symbols to export.
18141 always_export_symbols_CXX=yes
18142 if test "$aix_use_runtimelinking" = yes; then
18143 # Warning - without using the other runtime loading flags (-brtl),
18144 # -berok will link without error, but may produce a broken library.
18145 allow_undefined_flag_CXX='-berok'
18146 # Determine the default libpath from the value encoded in an empty executable.
18147 cat >conftest.$ac_ext <<_ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18162 rm -f conftest.$ac_objext conftest$ac_exeext
18163 if { (ac_try="$ac_link"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_link") 2>conftest.er1
18171 grep -v '^ *+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
18176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest$ac_exeext'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18199 # Check for a 64-bit object if we didn't find anything.
18200 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; }
18203 echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18209 rm -f core conftest.err conftest.$ac_objext \
18210 conftest$ac_exeext conftest.$ac_ext
18211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18213 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18215 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"
18217 if test "$host_cpu" = ia64; then
18218 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18219 allow_undefined_flag_CXX="-z nodefs"
18220 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"
18222 # Determine the default libpath from the value encoded in an empty executable.
18223 cat >conftest.$ac_ext <<_ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18247 grep -v '^ *+' conftest.er1 >conftest.err
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
18263 { (case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_try") 2>&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18275 # Check for a 64-bit object if we didn't find anything.
18276 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; }
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18285 rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
18287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18289 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18290 # Warning - without using the other run time loading flags,
18291 # -berok will link without error, but may produce a broken library.
18292 no_undefined_flag_CXX=' ${wl}-bernotok'
18293 allow_undefined_flag_CXX=' ${wl}-berok'
18294 # Exported symbols can be pulled into shared objects from archives
18295 whole_archive_flag_spec_CXX='$convenience'
18296 archive_cmds_need_lc_CXX=yes
18297 # This is similar to how AIX traditionally builds its shared libraries.
18298 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'
18304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18305 allow_undefined_flag_CXX=unsupported
18306 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18307 # support --undefined. This deserves some investigation. FIXME
18308 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18315 case $cc_basename in
18317 # FIXME: insert proper C++ library support
18323 cygwin* | mingw* | pw32*)
18324 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18325 # as there is no search path for DLLs.
18326 hardcode_libdir_flag_spec_CXX='-L$libdir'
18327 allow_undefined_flag_CXX=unsupported
18328 always_export_symbols_CXX=no
18329 enable_shared_with_static_runtimes_CXX=yes
18331 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18332 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'
18333 # If the export-symbols file already is a .def file (1st line
18334 # is EXPORTS), use it as is; otherwise, prepend...
18335 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18336 cp $export_symbols $output_objdir/$soname.def;
18338 echo EXPORTS > $output_objdir/$soname.def;
18339 cat $export_symbols >> $output_objdir/$soname.def;
18341 $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'
18346 darwin* | rhapsody*)
18348 rhapsody* | darwin1.[012])
18349 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18352 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18353 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18355 case ${MACOSX_DEPLOYMENT_TARGET} in
18357 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18360 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18366 archive_cmds_need_lc_CXX=no
18367 hardcode_direct_CXX=no
18368 hardcode_automatic_CXX=yes
18369 hardcode_shlibpath_var_CXX=unsupported
18370 whole_archive_flag_spec_CXX=''
18371 link_all_deplibs_CXX=yes
18373 if test "$GXX" = yes ; then
18374 lt_int_apple_cc_single_mod=no
18375 output_verbose_link_cmd='echo'
18376 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18377 lt_int_apple_cc_single_mod=yes
18379 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18380 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18382 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'
18384 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18385 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18386 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18387 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}'
18389 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}'
18391 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}'
18393 case $cc_basename in
18395 output_verbose_link_cmd='echo'
18396 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'
18397 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18398 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18399 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}'
18400 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}'
18410 case $cc_basename in
18412 # FIXME: insert proper C++ library support
18416 # Green Hills C++ Compiler
18417 # FIXME: insert proper C++ library support
18421 # FIXME: insert proper C++ library support
18427 # C++ shared libraries reported to be fairly broken before switch to ELF
18431 archive_cmds_need_lc_CXX=no
18433 freebsd* | kfreebsd*-gnu | dragonfly*)
18434 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18442 hardcode_libdir_separator_CXX=:
18443 export_dynamic_flag_spec_CXX='${wl}-E'
18444 hardcode_direct_CXX=yes
18445 hardcode_minus_L_CXX=yes # Not in the search PATH,
18446 # but as the default
18447 # location of the library.
18449 case $cc_basename in
18451 # FIXME: insert proper C++ library support
18455 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'
18456 # Commands to make compiler produce verbose output that lists
18457 # what "hidden" libraries, object files and flags are used when
18458 # linking a shared library.
18460 # There doesn't appear to be a way to prevent this compiler from
18461 # explicitly linking system object files so we need to strip them
18462 # from the output so that they don't get included in the library
18464 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'
18467 if test "$GXX" = yes; then
18468 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'
18470 # FIXME: insert proper C++ library support
18477 if test $with_gnu_ld = no; then
18478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18479 hardcode_libdir_separator_CXX=:
18483 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18486 export_dynamic_flag_spec_CXX='${wl}-E'
18492 hardcode_direct_CXX=no
18493 hardcode_shlibpath_var_CXX=no
18496 hardcode_direct_CXX=yes
18497 hardcode_minus_L_CXX=yes # Not in the search PATH,
18498 # but as the default
18499 # location of the library.
18503 case $cc_basename in
18505 # FIXME: insert proper C++ library support
18511 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18520 # Commands to make compiler produce verbose output that lists
18521 # what "hidden" libraries, object files and flags are used when
18522 # linking a shared library.
18524 # There doesn't appear to be a way to prevent this compiler from
18525 # explicitly linking system object files so we need to strip them
18526 # from the output so that they don't get included in the library
18528 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'
18531 if test "$GXX" = yes; then
18532 if test $with_gnu_ld = no; then
18535 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18538 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18541 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'
18546 # FIXME: insert proper C++ library support
18553 hardcode_direct_CXX=no
18554 hardcode_shlibpath_var_CXX=no
18555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18556 export_dynamic_flag_spec_CXX='${wl}-E'
18557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18558 # Instead, shared libraries are loaded at an image base (0x10000000 by
18559 # default) and relocated if they conflict, which is a slow very memory
18560 # consuming and fragmenting process. To avoid this, we pick a random,
18561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18563 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'
18564 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'
18567 case $cc_basename in
18570 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'
18572 # Archives containing C++ object files must be created using
18573 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18574 # necessary to make sure instantiated templates are included
18576 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18579 if test "$GXX" = yes; then
18580 if test "$with_gnu_ld" = no; then
18581 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'
18583 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'
18586 link_all_deplibs_CXX=yes
18589 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18590 hardcode_libdir_separator_CXX=:
18593 case $cc_basename in
18595 # Kuck and Associates, Inc. (KAI) C++ Compiler
18597 # KCC will only create a shared library if the output file
18598 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18599 # to its proper name (with version) after linking.
18600 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'
18601 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'
18602 # Commands to make compiler produce verbose output that lists
18603 # what "hidden" libraries, object files and flags are used when
18604 # linking a shared library.
18606 # There doesn't appear to be a way to prevent this compiler from
18607 # explicitly linking system object files so we need to strip them
18608 # from the output so that they don't get included in the library
18610 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'
18612 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18613 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18615 # Archives containing C++ object files must be created using
18616 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18617 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18622 # version 8.0 and above of icpc choke on multiply defined symbols
18623 # if we add $predep_objects and $postdep_objects, however 7.1 and
18624 # earlier do not add the objects themselves.
18625 case `$CC -V 2>&1` in
18627 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18628 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'
18630 *) # Version 8.0 or newer
18633 ia64*) tmp_idyn=' -i_dynamic';;
18635 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18636 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'
18639 archive_cmds_need_lc_CXX=no
18640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18642 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18645 # Portland Group C++ compiler
18646 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18647 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'
18649 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18651 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'
18655 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18656 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'
18658 runpath_var=LD_RUN_PATH
18659 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18660 hardcode_libdir_separator_CXX=:
18662 # Commands to make compiler produce verbose output that lists
18663 # what "hidden" libraries, object files and flags are used when
18664 # linking a shared library.
18666 # There doesn't appear to be a way to prevent this compiler from
18667 # explicitly linking system object files so we need to strip them
18668 # from the output so that they don't get included in the library
18670 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'
18675 # FIXME: insert proper C++ library support
18679 # FIXME: insert proper C++ library support
18683 case $cc_basename in
18685 # FIXME: insert proper C++ library support
18689 # FIXME: insert proper C++ library support
18695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18696 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18698 hardcode_libdir_flag_spec_CXX='-R$libdir'
18699 hardcode_direct_CXX=yes
18700 hardcode_shlibpath_var_CXX=no
18702 # Workaround some broken pre-1.5 toolchains
18703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18706 # C++ shared libraries are fairly broken
18710 hardcode_direct_CXX=yes
18711 hardcode_shlibpath_var_CXX=no
18712 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18715 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18716 export_dynamic_flag_spec_CXX='${wl}-E'
18717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18719 output_verbose_link_cmd='echo'
18722 case $cc_basename in
18724 # Kuck and Associates, Inc. (KAI) C++ Compiler
18726 # KCC will only create a shared library if the output file
18727 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18728 # to its proper name (with version) after linking.
18729 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'
18731 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18732 hardcode_libdir_separator_CXX=:
18734 # Archives containing C++ object files must be created using
18735 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18736 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18740 # Rational C++ 2.4.1
18741 # FIXME: insert proper C++ library support
18745 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18746 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'
18748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18749 hardcode_libdir_separator_CXX=:
18751 # Commands to make compiler produce verbose output that lists
18752 # what "hidden" libraries, object files and flags are used when
18753 # linking a shared library.
18755 # There doesn't appear to be a way to prevent this compiler from
18756 # explicitly linking system object files so we need to strip them
18757 # from the output so that they don't get included in the library
18759 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'
18762 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18763 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18764 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'
18766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18767 hardcode_libdir_separator_CXX=:
18769 # Commands to make compiler produce verbose output that lists
18770 # what "hidden" libraries, object files and flags are used when
18771 # linking a shared library.
18772 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18775 # FIXME: insert proper C++ library support
18782 case $cc_basename in
18784 # Kuck and Associates, Inc. (KAI) C++ Compiler
18786 # KCC will only create a shared library if the output file
18787 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18788 # to its proper name (with version) after linking.
18789 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'
18791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18792 hardcode_libdir_separator_CXX=:
18794 # Archives containing C++ object files must be created using
18795 # the KAI C++ compiler.
18796 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18799 # Rational C++ 2.4.1
18800 # FIXME: insert proper C++ library support
18804 allow_undefined_flag_CXX=' -expect_unresolved \*'
18805 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'
18806 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18807 echo "-hidden">> $lib.exp~
18808 $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~
18811 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18812 hardcode_libdir_separator_CXX=:
18814 # Commands to make compiler produce verbose output that lists
18815 # what "hidden" libraries, object files and flags are used when
18816 # linking a shared library.
18818 # There doesn't appear to be a way to prevent this compiler from
18819 # explicitly linking system object files so we need to strip them
18820 # from the output so that they don't get included in the library
18822 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'
18825 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18826 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18827 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'
18829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18830 hardcode_libdir_separator_CXX=:
18832 # Commands to make compiler produce verbose output that lists
18833 # what "hidden" libraries, object files and flags are used when
18834 # linking a shared library.
18835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18838 # FIXME: insert proper C++ library support
18845 # FIXME: insert proper C++ library support
18849 case $cc_basename in
18852 # FIXME: insert proper C++ library support
18857 # FIXME: insert proper C++ library support
18861 # FIXME: insert proper C++ library support
18867 case $cc_basename in
18869 # Sun C++ 4.2, 5.x and Centerline C++
18870 archive_cmds_need_lc_CXX=yes
18871 no_undefined_flag_CXX=' -zdefs'
18872 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18873 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18874 $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'
18876 hardcode_libdir_flag_spec_CXX='-R$libdir'
18877 hardcode_shlibpath_var_CXX=no
18879 solaris2.[0-5] | solaris2.[0-5].*) ;;
18881 # The C++ compiler is used as linker so we must use $wl
18882 # flag to pass the commands to the underlying system
18883 # linker. We must also pass each convience library through
18884 # to the system linker between allextract/defaultextract.
18885 # The C++ compiler will combine linker options so we
18886 # cannot just pass the convience library names through
18888 # Supported since Solaris 2.6 (maybe 2.5.1?)
18889 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'
18892 link_all_deplibs_CXX=yes
18894 output_verbose_link_cmd='echo'
18896 # Archives containing C++ object files must be created using
18897 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18898 # necessary to make sure instantiated templates are included
18900 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18903 # Green Hills C++ Compiler
18904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18906 # The C++ compiler must be used to create the archive.
18907 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18910 # GNU C++ compiler with Solaris linker
18911 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18912 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18913 if $CC --version | grep -v '^2\.7' > /dev/null; then
18914 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18915 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18916 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18918 # Commands to make compiler produce verbose output that lists
18919 # what "hidden" libraries, object files and flags are used when
18920 # linking a shared library.
18921 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18923 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18925 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18926 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18927 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18929 # Commands to make compiler produce verbose output that lists
18930 # what "hidden" libraries, object files and flags are used when
18931 # linking a shared library.
18932 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18935 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18940 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18941 no_undefined_flag_CXX='${wl}-z,text'
18942 archive_cmds_need_lc_CXX=no
18943 hardcode_shlibpath_var_CXX=no
18944 runpath_var='LD_RUN_PATH'
18946 case $cc_basename in
18948 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18949 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18952 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18953 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18957 sysv5* | sco3.2v5* | sco5v6*)
18958 # Note: We can NOT use -z defs as we might desire, because we do not
18959 # link with -lc, and that would cause any symbols used from libc to
18960 # always be unresolved, which means just about no library would
18961 # ever link correctly. If we're not using GNU ld we use -z text
18962 # though, which does catch some bad symbols but isn't as heavy-handed
18964 # For security reasons, it is highly recommended that you always
18965 # use absolute paths for naming shared libraries, and exclude the
18966 # DT_RUNPATH tag from executables and libraries. But doing so
18967 # requires that you compile everything twice, which is a pain.
18968 # So that behaviour is only enabled if SCOABSPATH is set to a
18969 # non-empty value in the environment. Most likely only useful for
18970 # creating official distributions of packages.
18971 # This is a hack until libtool officially supports absolute path
18972 # names for shared libraries.
18973 no_undefined_flag_CXX='${wl}-z,text'
18974 allow_undefined_flag_CXX='${wl}-z,nodefs'
18975 archive_cmds_need_lc_CXX=no
18976 hardcode_shlibpath_var_CXX=no
18977 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18978 hardcode_libdir_separator_CXX=':'
18979 link_all_deplibs_CXX=yes
18980 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18981 runpath_var='LD_RUN_PATH'
18983 case $cc_basename in
18985 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18986 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18989 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18990 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18995 case $cc_basename in
18997 # NonStop-UX NCC 3.20
18998 # FIXME: insert proper C++ library support
19002 # FIXME: insert proper C++ library support
19008 # FIXME: insert proper C++ library support
19012 # FIXME: insert proper C++ library support
19016 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19017 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19018 test "$ld_shlibs_CXX" = no && can_build_shared=no
19024 cat > conftest.$ac_ext <<EOF
19028 Foo (void) { a = 0; }
19034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035 (eval $ac_compile) 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; then
19039 # Parse the compiler output and extract the necessary
19040 # objects, libraries and library flags.
19042 # Sentinel used to keep track of whether or not we are before
19043 # the conftest object file.
19044 pre_test_object_deps_done=no
19046 # The `*' in the case matches for architectures that use `case' in
19047 # $output_verbose_cmd can trigger glob expansion during the loop
19048 # eval without this substitution.
19049 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19051 for p in `eval $output_verbose_link_cmd`; do
19055 # Some compilers place space between "-{L,R}" and the path.
19056 # Remove the space.
19057 if test $p = "-L" \
19058 || test $p = "-R"; then
19065 if test "$pre_test_object_deps_done" = no; then
19068 # Internal compiler library paths should come after those
19069 # provided the user. The postdeps already come after the
19070 # user supplied libs so there is no need to process them.
19071 if test -z "$compiler_lib_search_path_CXX"; then
19072 compiler_lib_search_path_CXX="${prev}${p}"
19074 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19077 # The "-l" case would never come before the object being
19078 # linked, so don't bother handling this case.
19081 if test -z "$postdeps_CXX"; then
19082 postdeps_CXX="${prev}${p}"
19084 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19090 # This assumes that the test object file only shows up
19091 # once in the compiler output.
19092 if test "$p" = "conftest.$objext"; then
19093 pre_test_object_deps_done=yes
19097 if test "$pre_test_object_deps_done" = no; then
19098 if test -z "$predep_objects_CXX"; then
19099 predep_objects_CXX="$p"
19101 predep_objects_CXX="$predep_objects_CXX $p"
19104 if test -z "$postdep_objects_CXX"; then
19105 postdep_objects_CXX="$p"
19107 postdep_objects_CXX="$postdep_objects_CXX $p"
19112 *) ;; # Ignore the rest.
19120 echo "libtool.m4: error: problem compiling CXX test program"
19123 $rm -f confest.$objext
19125 # PORTME: override above test on systems where it is broken
19128 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19129 # hack all around it, let's just trust "g++" to DTRT.
19130 predep_objects_CXX=
19131 postdep_objects_CXX=
19136 case $cc_basename in
19138 # Adding this requires a known-good setup of shared libraries for
19139 # Sun compiler versions before 5.6, else PIC objects from an old
19140 # archive will be linked into the output, leading to subtle bugs.
19141 postdeps_CXX='-lCstd -lCrun'
19148 case " $postdeps_CXX " in
19149 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19152 lt_prog_compiler_wl_CXX=
19153 lt_prog_compiler_pic_CXX=
19154 lt_prog_compiler_static_CXX=
19156 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19157 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19159 # C++ specific cases for pic, static, wl, etc.
19160 if test "$GXX" = yes; then
19161 lt_prog_compiler_wl_CXX='-Wl,'
19162 lt_prog_compiler_static_CXX='-static'
19166 # All AIX code is PIC.
19167 if test "$host_cpu" = ia64; then
19168 # AIX 5 now supports IA64 processor
19169 lt_prog_compiler_static_CXX='-Bstatic'
19173 # FIXME: we need at least 68020 code to build shared libraries, but
19174 # adding the `-m68020' flag to GCC prevents building anything better,
19176 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19179 # PIC is the default for these OSes.
19181 mingw* | os2* | pw32*)
19182 # This hack is so that the source file can tell whether it is being
19183 # built for inclusion in a dll (and should export symbols for example).
19184 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19186 darwin* | rhapsody*)
19187 # PIC is the default on this platform
19188 # Common symbols not allowed in MH_DYLIB files
19189 lt_prog_compiler_pic_CXX='-fno-common'
19192 # DJGPP does not support shared libraries at all
19193 lt_prog_compiler_pic_CXX=
19196 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19197 # Instead, we relocate shared libraries at runtime.
19200 if test -d /usr/nec; then
19201 lt_prog_compiler_pic_CXX=-Kconform_pic
19205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19206 # not for PA HP-UX.
19211 lt_prog_compiler_pic_CXX='-fPIC'
19216 lt_prog_compiler_pic_CXX='-fPIC'
19222 # All AIX code is PIC.
19223 if test "$host_cpu" = ia64; then
19224 # AIX 5 now supports IA64 processor
19225 lt_prog_compiler_static_CXX='-Bstatic'
19227 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19231 case $cc_basename in
19233 # Green Hills C++ Compiler
19234 # _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"
19239 # PIC is the default on this platform
19240 # Common symbols not allowed in MH_DYLIB files
19241 case $cc_basename in
19243 lt_prog_compiler_pic_CXX='-qnocommon'
19244 lt_prog_compiler_wl_CXX='-Wl,'
19249 case $cc_basename in
19251 lt_prog_compiler_pic_CXX='-KPIC'
19254 # Green Hills C++ Compiler
19255 lt_prog_compiler_pic_CXX='-pic'
19261 freebsd* | kfreebsd*-gnu | dragonfly*)
19262 # FreeBSD uses GNU C++
19264 hpux9* | hpux10* | hpux11*)
19265 case $cc_basename in
19267 lt_prog_compiler_wl_CXX='-Wl,'
19268 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19269 if test "$host_cpu" != ia64; then
19270 lt_prog_compiler_pic_CXX='+Z'
19274 lt_prog_compiler_wl_CXX='-Wl,'
19275 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19281 lt_prog_compiler_pic_CXX='+Z'
19290 # This is c89, which is MS Visual C++ (no shared libs)
19291 # Anyone wants to do a port?
19293 irix5* | irix6* | nonstopux*)
19294 case $cc_basename in
19296 lt_prog_compiler_wl_CXX='-Wl,'
19297 lt_prog_compiler_static_CXX='-non_shared'
19298 # CC pic flag -KPIC is the default.
19305 case $cc_basename in
19308 lt_prog_compiler_wl_CXX='--backend -Wl,'
19309 lt_prog_compiler_pic_CXX='-fPIC'
19313 lt_prog_compiler_wl_CXX='-Wl,'
19314 lt_prog_compiler_pic_CXX='-KPIC'
19315 lt_prog_compiler_static_CXX='-static'
19318 # Portland Group C++ compiler.
19319 lt_prog_compiler_wl_CXX='-Wl,'
19320 lt_prog_compiler_pic_CXX='-fpic'
19321 lt_prog_compiler_static_CXX='-Bstatic'
19325 # Make sure the PIC flag is empty. It appears that all Alpha
19326 # Linux and Compaq Tru64 Unix objects are PIC.
19327 lt_prog_compiler_pic_CXX=
19328 lt_prog_compiler_static_CXX='-non_shared'
19339 case $cc_basename in
19341 lt_prog_compiler_pic_CXX='-W c,exportall'
19349 osf3* | osf4* | osf5*)
19350 case $cc_basename in
19352 lt_prog_compiler_wl_CXX='--backend -Wl,'
19355 # Rational C++ 2.4.1
19356 lt_prog_compiler_pic_CXX='-pic'
19359 # Digital/Compaq C++
19360 lt_prog_compiler_wl_CXX='-Wl,'
19361 # Make sure the PIC flag is empty. It appears that all Alpha
19362 # Linux and Compaq Tru64 Unix objects are PIC.
19363 lt_prog_compiler_pic_CXX=
19364 lt_prog_compiler_static_CXX='-non_shared'
19373 case $cc_basename in
19375 # Sun C++ 4.2, 5.x and Centerline C++
19376 lt_prog_compiler_pic_CXX='-KPIC'
19377 lt_prog_compiler_static_CXX='-Bstatic'
19378 lt_prog_compiler_wl_CXX='-Qoption ld '
19381 # Green Hills C++ Compiler
19382 lt_prog_compiler_pic_CXX='-PIC'
19389 case $cc_basename in
19392 lt_prog_compiler_pic_CXX='-pic'
19393 lt_prog_compiler_static_CXX='-Bstatic'
19397 lt_prog_compiler_pic_CXX='-pic'
19404 case $cc_basename in
19406 # NonStop-UX NCC 3.20
19407 lt_prog_compiler_pic_CXX='-KPIC'
19413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19414 case $cc_basename in
19416 lt_prog_compiler_wl_CXX='-Wl,'
19417 lt_prog_compiler_pic_CXX='-KPIC'
19418 lt_prog_compiler_static_CXX='-Bstatic'
19425 lt_prog_compiler_can_build_shared_CXX=no
19430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19431 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19434 # Check to make sure the PIC flag actually works.
19436 if test -n "$lt_prog_compiler_pic_CXX"; then
19438 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19440 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 lt_prog_compiler_pic_works_CXX=no
19444 ac_outfile=conftest.$ac_objext
19445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19446 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19447 # Insert the option either (1) after the last *FLAGS variable, or
19448 # (2) before a word containing "conftest.", or (3) at the end.
19449 # Note that $ac_compile itself does not contain backslashes and begins
19450 # with a dollar sign (not a hyphen), so the echo should work correctly.
19451 # The option is referenced via a variable to avoid confusing sed.
19452 lt_compile=`echo "$ac_compile" | $SED \
19453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19455 -e 's:$: $lt_compiler_flag:'`
19456 (eval echo "\"\$as_me:19456: $lt_compile\"" >&5)
19457 (eval "$lt_compile" 2>conftest.err)
19459 cat conftest.err >&5
19460 echo "$as_me:19460: \$? = $ac_status" >&5
19461 if (exit $ac_status) && test -s "$ac_outfile"; then
19462 # The compiler can only warn and ignore the option if not recognized
19463 # So say no if there are warnings other than the usual output.
19464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19467 lt_prog_compiler_pic_works_CXX=yes
19473 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19474 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19476 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19477 case $lt_prog_compiler_pic_CXX in
19479 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19482 lt_prog_compiler_pic_CXX=
19483 lt_prog_compiler_can_build_shared_CXX=no
19488 # For platforms which do not support PIC, -DPIC is meaningless:
19490 lt_prog_compiler_pic_CXX=
19493 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19498 # Check to make sure the static flag actually works.
19500 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19501 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19502 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19503 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19506 lt_prog_compiler_static_works_CXX=no
19507 save_LDFLAGS="$LDFLAGS"
19508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19509 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19511 # The linker can only warn and ignore the option if not recognized
19512 # So say no if there are warnings
19513 if test -s conftest.err; then
19514 # Append any errors to the config.log.
19515 cat conftest.err 1>&5
19516 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19518 if diff conftest.exp conftest.er2 >/dev/null; then
19519 lt_prog_compiler_static_works_CXX=yes
19522 lt_prog_compiler_static_works_CXX=yes
19526 LDFLAGS="$save_LDFLAGS"
19529 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19530 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19532 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19535 lt_prog_compiler_static_CXX=
19539 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19541 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 lt_cv_prog_compiler_c_o_CXX=no
19545 $rm -r conftest 2>/dev/null
19549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19551 lt_compiler_flag="-o out/conftest2.$ac_objext"
19552 # Insert the option either (1) after the last *FLAGS variable, or
19553 # (2) before a word containing "conftest.", or (3) at the end.
19554 # Note that $ac_compile itself does not contain backslashes and begins
19555 # with a dollar sign (not a hyphen), so the echo should work correctly.
19556 lt_compile=`echo "$ac_compile" | $SED \
19557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19559 -e 's:$: $lt_compiler_flag:'`
19560 (eval echo "\"\$as_me:19560: $lt_compile\"" >&5)
19561 (eval "$lt_compile" 2>out/conftest.err)
19563 cat out/conftest.err >&5
19564 echo "$as_me:19564: \$? = $ac_status" >&5
19565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19567 # The compiler can only warn and ignore the option if not recognized
19568 # So say no if there are warnings
19569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19572 lt_cv_prog_compiler_c_o_CXX=yes
19577 # SGI C++ compiler will create directory out/ii_files/ for
19578 # template instantiation
19579 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19580 $rm out/* && rmdir out
19586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19590 hard_links="nottested"
19591 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19592 # do not overwrite the value of need_locks provided by the user
19593 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19599 ln conftest.a conftest.b 2>&5 || hard_links=no
19600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19601 { echo "$as_me:$LINENO: result: $hard_links" >&5
19602 echo "${ECHO_T}$hard_links" >&6; }
19603 if test "$hard_links" = no; then
19604 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19612 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19618 # If we're using GNU nm, then we don't want the "-C" option.
19619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19620 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19621 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'
19623 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'
19627 export_symbols_cmds_CXX="$ltdll_cmds"
19630 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'
19633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19637 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19638 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19639 test "$ld_shlibs_CXX" = no && can_build_shared=no
19642 # Do we need to explicitly link libc?
19644 case "x$archive_cmds_need_lc_CXX" in
19646 # Assume -lc should be added
19647 archive_cmds_need_lc_CXX=yes
19649 if test "$enable_shared" = yes && test "$GCC" = yes; then
19650 case $archive_cmds_CXX in
19652 # FIXME: we may have to deal with multi-command sequences.
19655 # Test whether the compiler implicitly links with -lc since on some
19656 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19657 # to ld, don't add -lc before -lgcc.
19658 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19659 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19664 (eval $ac_compile) 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } 2>conftest.err; then
19670 libobjs=conftest.$ac_objext
19672 wl=$lt_prog_compiler_wl_CXX
19673 pic_flag=$lt_prog_compiler_pic_CXX
19679 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19680 allow_undefined_flag_CXX=
19681 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19682 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }
19687 archive_cmds_need_lc_CXX=no
19689 archive_cmds_need_lc_CXX=yes
19691 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19693 cat conftest.err 1>&5
19696 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19697 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19704 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19705 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19706 library_names_spec=
19707 libname_spec='lib$name'
19711 postuninstall_cmds=
19715 shlibpath_overrides_runpath=unknown
19717 dynamic_linker="$host_os ld.so"
19718 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19719 if test "$GCC" = yes; then
19720 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19721 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19722 # if the path contains ";" then we assume it to be the separator
19723 # otherwise default to the standard path separator (i.e. ":") - it is
19724 # assumed that no part of a normal pathname contains ";" but that should
19725 # okay in the real world where ";" in dirpaths is itself problematic.
19726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19731 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19733 need_lib_prefix=unknown
19734 hardcode_into_libs=no
19736 # when you set need_version to no, make sure it does not cause -set_version
19737 # flags to be left without arguments
19738 need_version=unknown
19743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19744 shlibpath_var=LIBPATH
19746 # AIX 3 has no versioning support, so we append a major version to the name.
19747 soname_spec='${libname}${release}${shared_ext}$major'
19754 hardcode_into_libs=yes
19755 if test "$host_cpu" = ia64; then
19756 # AIX 5 supports IA64
19757 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19758 shlibpath_var=LD_LIBRARY_PATH
19760 # With GCC up to 2.95.x, collect2 would create an import file
19761 # for dependence libraries. The import file would start with
19762 # the line `#! .'. This would cause the generated library to
19763 # depend on `.', always an invalid library. This was fixed in
19764 # development snapshots of GCC prior to 3.0.
19766 aix4 | aix4.[01] | aix4.[01].*)
19767 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19769 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19772 can_build_shared=no
19776 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19777 # soname into executable. Probably we can add versioning support to
19778 # collect2, so additional links can be useful in future.
19779 if test "$aix_use_runtimelinking" = yes; then
19780 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19781 # instead of lib<name>.a to let people know that these are not
19782 # typical AIX shared libraries.
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19785 # We preserve .a as extension for shared libraries through AIX4.2
19786 # and later when we are not doing run time linking.
19787 library_names_spec='${libname}${release}.a $libname.a'
19788 soname_spec='${libname}${release}${shared_ext}$major'
19790 shlibpath_var=LIBPATH
19795 library_names_spec='$libname.ixlibrary $libname.a'
19796 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19797 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'
19801 library_names_spec='${libname}${shared_ext}'
19802 dynamic_linker="$host_os ld.so"
19803 shlibpath_var=LIBRARY_PATH
19809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19810 soname_spec='${libname}${release}${shared_ext}$major'
19811 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19812 shlibpath_var=LD_LIBRARY_PATH
19813 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19814 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19815 # the default ld.so.conf also contains /usr/contrib/lib and
19816 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19817 # libtool to hard-code these into programs
19820 cygwin* | mingw* | pw32*)
19821 version_type=windows
19826 case $GCC,$host_os in
19827 yes,cygwin* | yes,mingw* | yes,pw32*)
19828 library_names_spec='$libname.dll.a'
19829 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19830 postinstall_cmds='base_file=`basename \${file}`~
19831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19832 dldir=$destdir/`dirname \$dlpath`~
19833 test -d \$dldir || mkdir -p \$dldir~
19834 $install_prog $dir/$dlname \$dldir/$dlname~
19835 chmod a+x \$dldir/$dlname'
19836 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19837 dlpath=$dir/\$dldll~
19839 shlibpath_overrides_runpath=yes
19843 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19844 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19845 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19848 # MinGW DLLs use traditional 'lib' prefix
19849 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19850 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19851 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19852 # It is most probably a Windows format PATH printed by
19853 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19854 # path with ; separators, and with drive letters. We can handle the
19855 # drive letters (cygwin fileutils understands them), so leave them,
19856 # especially as we might pass files found there to a mingw objdump,
19857 # which wouldn't understand a cygwinified path. Ahh.
19858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19864 # pw32 DLLs use 'pw' prefix rather than 'lib'
19865 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19871 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19874 dynamic_linker='Win32 ld.exe'
19875 # FIXME: first we should search . and the directory the executable is in
19879 darwin* | rhapsody*)
19880 dynamic_linker="$host_os dyld"
19881 version_type=darwin
19884 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19885 soname_spec='${libname}${release}${major}$shared_ext'
19886 shlibpath_overrides_runpath=yes
19887 shlibpath_var=DYLD_LIBRARY_PATH
19888 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19889 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19890 if test "$GCC" = yes; then
19891 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"`
19893 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19895 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19903 soname_spec='${libname}${release}${shared_ext}$major'
19904 shlibpath_var=LD_LIBRARY_PATH
19915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19916 soname_spec='${libname}${release}${shared_ext}$major'
19917 shlibpath_var=LD_LIBRARY_PATH
19918 shlibpath_overrides_runpath=no
19919 hardcode_into_libs=yes
19920 dynamic_linker='GNU ld.so'
19923 freebsd* | dragonfly*)
19924 # DragonFly does not have aout. When/if they implement a new
19925 # versioning mechanism, adjust this.
19926 if test -x /usr/bin/objformat; then
19927 objformat=`/usr/bin/objformat`
19930 freebsd[123]*) objformat=aout ;;
19931 *) objformat=elf ;;
19934 version_type=freebsd-$objformat
19935 case $version_type in
19937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19946 shlibpath_var=LD_LIBRARY_PATH
19949 shlibpath_overrides_runpath=yes
19951 freebsd3.[01]* | freebsdelf3.[01]*)
19952 shlibpath_overrides_runpath=yes
19953 hardcode_into_libs=yes
19955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19957 shlibpath_overrides_runpath=no
19958 hardcode_into_libs=yes
19960 freebsd*) # from 4.6 on
19961 shlibpath_overrides_runpath=yes
19962 hardcode_into_libs=yes
19971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19972 soname_spec='${libname}${release}${shared_ext}$major'
19973 shlibpath_var=LD_LIBRARY_PATH
19974 hardcode_into_libs=yes
19977 hpux9* | hpux10* | hpux11*)
19978 # Give a soname corresponding to the major version so that dld.sl refuses to
19979 # link against other versions.
19986 hardcode_into_libs=yes
19987 dynamic_linker="$host_os dld.so"
19988 shlibpath_var=LD_LIBRARY_PATH
19989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19991 soname_spec='${libname}${release}${shared_ext}$major'
19992 if test "X$HPUX_IA64_MODE" = X32; then
19993 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20001 hardcode_into_libs=yes
20002 dynamic_linker="$host_os dld.sl"
20003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20006 soname_spec='${libname}${release}${shared_ext}$major'
20007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20012 dynamic_linker="$host_os dld.sl"
20013 shlibpath_var=SHLIB_PATH
20014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20016 soname_spec='${libname}${release}${shared_ext}$major'
20019 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20020 postinstall_cmds='chmod 555 $lib'
20027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20028 soname_spec='${libname}${release}${shared_ext}$major'
20029 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20030 shlibpath_var=LD_LIBRARY_PATH
20031 shlibpath_overrides_runpath=no
20032 hardcode_into_libs=yes
20035 irix5* | irix6* | nonstopux*)
20037 nonstopux*) version_type=nonstopux ;;
20039 if test "$lt_cv_prog_gnu_ld" = yes; then
20047 soname_spec='${libname}${release}${shared_ext}$major'
20048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20050 irix5* | nonstopux*)
20051 libsuff= shlibsuff=
20054 case $LD in # libtool.m4 will add one of these switches to LD
20055 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20056 libsuff= shlibsuff= libmagic=32-bit;;
20057 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20058 libsuff=32 shlibsuff=N32 libmagic=N32;;
20059 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20060 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20061 *) libsuff= shlibsuff= libmagic=never-match;;
20065 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20066 shlibpath_overrides_runpath=no
20067 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20068 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20069 hardcode_into_libs=yes
20072 # No shared lib support for Linux oldld, aout, or coff.
20073 linux*oldld* | linux*aout* | linux*coff*)
20077 # This must be Linux ELF.
20082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20083 soname_spec='${libname}${release}${shared_ext}$major'
20084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20085 shlibpath_var=LD_LIBRARY_PATH
20086 shlibpath_overrides_runpath=no
20087 # This implies no fast_install, which is unacceptable.
20088 # Some rework will be needed to allow for fast_install
20089 # before this can be enabled.
20090 hardcode_into_libs=yes
20092 # Append ld.so.conf contents to the search path
20093 if test -f /etc/ld.so.conf; then
20094 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' ' '`
20095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20098 # We used to test for /lib/ld.so.1 and disable shared libraries on
20099 # powerpc, because MkLinux only supported shared libraries with the
20100 # GNU dynamic linker. Since this was broken with cross compilers,
20101 # most powerpc-linux boxes support dynamic linking these days and
20102 # people can always --disable-shared, the test was removed, and we
20103 # assume the GNU/Linux dynamic linker is in use.
20104 dynamic_linker='GNU/Linux ld.so'
20111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20112 soname_spec='${libname}${release}${shared_ext}$major'
20113 shlibpath_var=LD_LIBRARY_PATH
20114 shlibpath_overrides_runpath=no
20115 hardcode_into_libs=yes
20116 dynamic_linker='GNU ld.so'
20123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20126 dynamic_linker='NetBSD (a.out) ld.so'
20128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20129 soname_spec='${libname}${release}${shared_ext}$major'
20130 dynamic_linker='NetBSD ld.elf_so'
20132 shlibpath_var=LD_LIBRARY_PATH
20133 shlibpath_overrides_runpath=yes
20134 hardcode_into_libs=yes
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140 shlibpath_var=LD_LIBRARY_PATH
20141 shlibpath_overrides_runpath=yes
20148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20149 soname_spec='${libname}${release}${shared_ext}$major'
20150 shlibpath_var=LD_LIBRARY_PATH
20151 shlibpath_overrides_runpath=yes
20156 sys_lib_dlsearch_path_spec="/usr/lib"
20158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20160 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20161 *) need_version=no ;;
20163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20165 shlibpath_var=LD_LIBRARY_PATH
20166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20168 openbsd2.[89] | openbsd2.[89].*)
20169 shlibpath_overrides_runpath=no
20172 shlibpath_overrides_runpath=yes
20176 shlibpath_overrides_runpath=yes
20181 libname_spec='$name'
20184 library_names_spec='$libname${shared_ext} $libname.a'
20185 dynamic_linker='OS/2 ld.exe'
20186 shlibpath_var=LIBPATH
20189 osf3* | osf4* | osf5*)
20193 soname_spec='${libname}${release}${shared_ext}$major'
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 shlibpath_var=LD_LIBRARY_PATH
20196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20197 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205 soname_spec='${libname}${release}${shared_ext}$major'
20206 shlibpath_var=LD_LIBRARY_PATH
20207 shlibpath_overrides_runpath=yes
20208 hardcode_into_libs=yes
20209 # ldd complains unless libraries are executable
20210 postinstall_cmds='chmod +x $lib'
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20217 shlibpath_var=LD_LIBRARY_PATH
20218 shlibpath_overrides_runpath=yes
20219 if test "$with_gnu_ld" = yes; then
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20228 soname_spec='${libname}${release}${shared_ext}$major'
20229 shlibpath_var=LD_LIBRARY_PATH
20230 case $host_vendor in
20232 shlibpath_overrides_runpath=no
20234 export_dynamic_flag_spec='${wl}-Blargedynsym'
20235 runpath_var=LD_RUN_PATH
20243 shlibpath_overrides_runpath=no
20244 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20250 if test -d /usr/nec ;then
20252 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20253 soname_spec='$libname${shared_ext}.$major'
20254 shlibpath_var=LD_LIBRARY_PATH
20258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20259 version_type=freebsd-elf
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 hardcode_into_libs=yes
20266 if test "$with_gnu_ld" = yes; then
20267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20268 shlibpath_overrides_runpath=no
20270 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20271 shlibpath_overrides_runpath=yes
20274 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20278 sys_lib_dlsearch_path_spec='/usr/lib'
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284 soname_spec='${libname}${release}${shared_ext}$major'
20285 shlibpath_var=LD_LIBRARY_PATH
20292 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20293 echo "${ECHO_T}$dynamic_linker" >&6; }
20294 test "$dynamic_linker" = no && can_build_shared=no
20296 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20297 if test "$GCC" = yes; then
20298 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20301 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20302 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20303 hardcode_action_CXX=
20304 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20305 test -n "$runpath_var_CXX" || \
20306 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20308 # We can hardcode non-existant directories.
20309 if test "$hardcode_direct_CXX" != no &&
20310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20311 # have to relink, otherwise we might link with an installed library
20312 # when we should be linking with a yet-to-be-installed one
20313 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20314 test "$hardcode_minus_L_CXX" != no; then
20315 # Linking always hardcodes the temporary library directory.
20316 hardcode_action_CXX=relink
20318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20319 hardcode_action_CXX=immediate
20322 # We cannot hardcode anything, or else we can only hardcode existing
20324 hardcode_action_CXX=unsupported
20326 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20327 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20329 if test "$hardcode_action_CXX" = relink; then
20330 # Fast installation is not supported
20331 enable_fast_install=no
20332 elif test "$shlibpath_overrides_runpath" = yes ||
20333 test "$enable_shared" = no; then
20334 # Fast installation is not necessary
20335 enable_fast_install=needless
20339 # The else clause should only fire when bootstrapping the
20340 # libtool distribution, otherwise you forgot to ship ltmain.sh
20341 # with your package, and you will get complaints that there are
20342 # no rules to generate ltmain.sh.
20343 if test -f "$ltmain"; then
20344 # See if we are running on zsh, and set the options which allow our commands through
20345 # without removal of \ escapes.
20346 if test -n "${ZSH_VERSION+set}" ; then
20347 setopt NO_GLOB_SUBST
20349 # Now quote all the things that may contain metacharacters while being
20350 # careful not to overquote the AC_SUBSTed values. We take copies of the
20351 # variables and quote the copies for generation of the libtool script.
20352 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20354 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20355 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20356 deplibs_check_method reload_flag reload_cmds need_locks \
20357 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20358 lt_cv_sys_global_symbol_to_c_name_address \
20359 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20360 old_postinstall_cmds old_postuninstall_cmds \
20364 lt_prog_compiler_wl_CXX \
20365 lt_prog_compiler_pic_CXX \
20366 lt_prog_compiler_static_CXX \
20367 lt_prog_compiler_no_builtin_flag_CXX \
20368 export_dynamic_flag_spec_CXX \
20369 thread_safe_flag_spec_CXX \
20370 whole_archive_flag_spec_CXX \
20371 enable_shared_with_static_runtimes_CXX \
20372 old_archive_cmds_CXX \
20373 old_archive_from_new_cmds_CXX \
20374 predep_objects_CXX \
20375 postdep_objects_CXX \
20378 compiler_lib_search_path_CXX \
20380 archive_expsym_cmds_CXX \
20381 postinstall_cmds_CXX \
20382 postuninstall_cmds_CXX \
20383 old_archive_from_expsyms_cmds_CXX \
20384 allow_undefined_flag_CXX \
20385 no_undefined_flag_CXX \
20386 export_symbols_cmds_CXX \
20387 hardcode_libdir_flag_spec_CXX \
20388 hardcode_libdir_flag_spec_ld_CXX \
20389 hardcode_libdir_separator_CXX \
20390 hardcode_automatic_CXX \
20392 module_expsym_cmds_CXX \
20393 lt_cv_prog_compiler_c_o_CXX \
20394 exclude_expsyms_CXX \
20395 include_expsyms_CXX; do
20398 old_archive_cmds_CXX | \
20399 old_archive_from_new_cmds_CXX | \
20400 archive_cmds_CXX | \
20401 archive_expsym_cmds_CXX | \
20402 module_cmds_CXX | \
20403 module_expsym_cmds_CXX | \
20404 old_archive_from_expsyms_cmds_CXX | \
20405 export_symbols_cmds_CXX | \
20406 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20407 postinstall_cmds | postuninstall_cmds | \
20408 old_postinstall_cmds | old_postuninstall_cmds | \
20409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20410 # Double-quote double-evaled strings.
20411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20420 *'\$0 --fallback-echo"')
20421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20427 cat <<__EOF__ >> "$cfgfile"
20428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20432 # Shell to use when invoking shell scripts.
20435 # Whether or not to build shared libraries.
20436 build_libtool_libs=$enable_shared
20438 # Whether or not to build static libraries.
20439 build_old_libs=$enable_static
20441 # Whether or not to add -lc for building shared libraries.
20442 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20444 # Whether or not to disallow shared libs when runtime libs are static
20445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20447 # Whether or not to optimize for fast installation.
20448 fast_install=$enable_fast_install
20451 host_alias=$host_alias
20455 # The build system.
20456 build_alias=$build_alias
20460 # An echo program that does not interpret backslashes.
20465 AR_FLAGS=$lt_AR_FLAGS
20470 # LTCC compiler flags.
20471 LTCFLAGS=$lt_LTCFLAGS
20473 # A language-specific compiler.
20474 CC=$lt_compiler_CXX
20476 # Is the compiler the GNU C compiler?
20482 # The linker used to build libraries.
20485 # Whether we need hard or soft links.
20488 # A BSD-compatible nm program.
20491 # A symbol stripping program
20494 # Used to examine libraries when file_magic_cmd begins "file"
20495 MAGIC_CMD=$MAGIC_CMD
20497 # Used on cygwin: DLL creation program.
20500 # Used on cygwin: object dumper.
20503 # Used on cygwin: assembler.
20506 # The name of the directory that contains temporary libtool files.
20509 # How to create reloadable object files.
20510 reload_flag=$lt_reload_flag
20511 reload_cmds=$lt_reload_cmds
20513 # How to pass a linker flag through the compiler.
20514 wl=$lt_lt_prog_compiler_wl_CXX
20516 # Object file suffix (normally "o").
20517 objext="$ac_objext"
20519 # Old archive suffix (normally "a").
20522 # Shared library suffix (normally ".so").
20523 shrext_cmds='$shrext_cmds'
20525 # Executable file suffix (normally "").
20528 # Additional compiler flags for building library objects.
20529 pic_flag=$lt_lt_prog_compiler_pic_CXX
20532 # What is the maximum length of a command?
20533 max_cmd_len=$lt_cv_sys_max_cmd_len
20535 # Does compiler simultaneously support -c and -o options?
20536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20538 # Must we lock files when doing compilation?
20539 need_locks=$lt_need_locks
20541 # Do we need the lib prefix for modules?
20542 need_lib_prefix=$need_lib_prefix
20544 # Do we need a version for libraries?
20545 need_version=$need_version
20547 # Whether dlopen is supported.
20548 dlopen_support=$enable_dlopen
20550 # Whether dlopen of programs is supported.
20551 dlopen_self=$enable_dlopen_self
20553 # Whether dlopen of statically linked programs is supported.
20554 dlopen_self_static=$enable_dlopen_self_static
20556 # Compiler flag to prevent dynamic linking.
20557 link_static_flag=$lt_lt_prog_compiler_static_CXX
20559 # Compiler flag to turn off builtin functions.
20560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20562 # Compiler flag to allow reflexive dlopens.
20563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20565 # Compiler flag to generate shared objects directly from archives.
20566 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20568 # Compiler flag to generate thread-safe objects.
20569 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20571 # Library versioning type.
20572 version_type=$version_type
20574 # Format of library name prefix.
20575 libname_spec=$lt_libname_spec
20577 # List of archive names. First name is the real one, the rest are links.
20578 # The last name is the one that the linker finds with -lNAME.
20579 library_names_spec=$lt_library_names_spec
20581 # The coded name of the library, if different from the real name.
20582 soname_spec=$lt_soname_spec
20584 # Commands used to build and install an old-style archive.
20586 old_archive_cmds=$lt_old_archive_cmds_CXX
20587 old_postinstall_cmds=$lt_old_postinstall_cmds
20588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20590 # Create an old-style archive from a shared archive.
20591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20593 # Create a temporary old-style archive to link instead of a shared archive.
20594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20596 # Commands used to build and install a shared archive.
20597 archive_cmds=$lt_archive_cmds_CXX
20598 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20599 postinstall_cmds=$lt_postinstall_cmds
20600 postuninstall_cmds=$lt_postuninstall_cmds
20602 # Commands used to build a loadable module (assumed same as above if empty)
20603 module_cmds=$lt_module_cmds_CXX
20604 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20606 # Commands to strip libraries.
20607 old_striplib=$lt_old_striplib
20608 striplib=$lt_striplib
20610 # Dependencies to place before the objects being linked to create a
20612 predep_objects=$lt_predep_objects_CXX
20614 # Dependencies to place after the objects being linked to create a
20616 postdep_objects=$lt_postdep_objects_CXX
20618 # Dependencies to place before the objects being linked to create a
20620 predeps=$lt_predeps_CXX
20622 # Dependencies to place after the objects being linked to create a
20624 postdeps=$lt_postdeps_CXX
20626 # The library search path used internally by the compiler when linking
20627 # a shared library.
20628 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20630 # Method to check whether dependent libraries are shared objects.
20631 deplibs_check_method=$lt_deplibs_check_method
20633 # Command to use when deplibs_check_method == file_magic.
20634 file_magic_cmd=$lt_file_magic_cmd
20636 # Flag that allows shared libraries with undefined symbols to be built.
20637 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20639 # Flag that forces no undefined symbols.
20640 no_undefined_flag=$lt_no_undefined_flag_CXX
20642 # Commands used to finish a libtool library installation in a directory.
20643 finish_cmds=$lt_finish_cmds
20645 # Same as above, but a single script fragment to be evaled but not shown.
20646 finish_eval=$lt_finish_eval
20648 # Take the output of nm and produce a listing of raw symbols and C names.
20649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20651 # Transform the output of nm in a proper C declaration
20652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20654 # Transform the output of nm in a C name address pair
20655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20657 # This is the shared library runtime path variable.
20658 runpath_var=$runpath_var
20660 # This is the shared library path variable.
20661 shlibpath_var=$shlibpath_var
20663 # Is shlibpath searched before the hard-coded library search path?
20664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20666 # How to hardcode a shared library path into an executable.
20667 hardcode_action=$hardcode_action_CXX
20669 # Whether we should hardcode library paths into libraries.
20670 hardcode_into_libs=$hardcode_into_libs
20672 # Flag to hardcode \$libdir into a binary during linking.
20673 # This must work even if \$libdir does not exist.
20674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20676 # If ld is used when linking, flag to hardcode \$libdir into
20677 # a binary during linking. This must work even if \$libdir does
20679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20681 # Whether we need a single -rpath flag with a separated argument.
20682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20685 # resulting binary.
20686 hardcode_direct=$hardcode_direct_CXX
20688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20689 # resulting binary.
20690 hardcode_minus_L=$hardcode_minus_L_CXX
20692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20693 # the resulting binary.
20694 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20696 # Set to yes if building a shared library automatically hardcodes DIR into the library
20697 # and all subsequent libraries and executables linked against it.
20698 hardcode_automatic=$hardcode_automatic_CXX
20700 # Variables whose values should be saved in libtool wrapper scripts and
20701 # restored at relink time.
20702 variables_saved_for_relink="$variables_saved_for_relink"
20704 # Whether libtool must link a program against all its dependency libraries.
20705 link_all_deplibs=$link_all_deplibs_CXX
20707 # Compile-time system search path for libraries
20708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20710 # Run-time system search path for libraries
20711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20713 # Fix the shell variable \$srcfile for the compiler.
20714 fix_srcfile_path="$fix_srcfile_path_CXX"
20716 # Set to yes if exported symbols are required.
20717 always_export_symbols=$always_export_symbols_CXX
20719 # The commands to list exported symbols.
20720 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20722 # The commands to extract the exported symbol list from a shared archive.
20723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20725 # Symbols that should not be listed in the preloaded symbols.
20726 exclude_expsyms=$lt_exclude_expsyms_CXX
20728 # Symbols that must always be exported.
20729 include_expsyms=$lt_include_expsyms_CXX
20731 # ### END LIBTOOL TAG CONFIG: $tagname
20737 # If there is no Makefile yet, we rely on a make rule to execute
20738 # `config.status --recheck' to rerun these tests and create the
20739 # libtool script then.
20740 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20741 if test -f "$ltmain_in"; then
20742 test -f Makefile && make "$ltmain"
20748 ac_cpp='$CPP $CPPFLAGS'
20749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20757 with_gnu_ldcxx=$with_gnu_ld
20758 with_gnu_ld=$lt_save_with_gnu_ld
20759 lt_cv_path_LDCXX=$lt_cv_path_LD
20760 lt_cv_path_LD=$lt_save_path_LD
20761 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20762 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20770 if test -n "$F77" && test "X$F77" != "Xno"; then
20773 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20774 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20775 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20778 archive_cmds_need_lc_F77=no
20779 allow_undefined_flag_F77=
20780 always_export_symbols_F77=no
20781 archive_expsym_cmds_F77=
20782 export_dynamic_flag_spec_F77=
20783 hardcode_direct_F77=no
20784 hardcode_libdir_flag_spec_F77=
20785 hardcode_libdir_flag_spec_ld_F77=
20786 hardcode_libdir_separator_F77=
20787 hardcode_minus_L_F77=no
20788 hardcode_automatic_F77=no
20790 module_expsym_cmds_F77=
20791 link_all_deplibs_F77=unknown
20792 old_archive_cmds_F77=$old_archive_cmds
20793 no_undefined_flag_F77=
20794 whole_archive_flag_spec_F77=
20795 enable_shared_with_static_runtimes_F77=no
20797 # Source file extension for f77 test sources.
20800 # Object file extension for compiled f77 test sources.
20804 # Code to be used in simple compile tests
20805 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20807 # Code to be used in simple link tests
20808 lt_simple_link_test_code=" program t\n end\n"
20810 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20812 # If no C compiler was specified, use CC.
20815 # If no C compiler flags were specified, use CFLAGS.
20816 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20818 # Allow CC to be a program name with arguments.
20822 # save warnings/boilerplate of simple test code
20823 ac_outfile=conftest.$ac_objext
20824 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20825 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20826 _lt_compiler_boilerplate=`cat conftest.err`
20829 ac_outfile=conftest.$ac_objext
20830 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20831 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20832 _lt_linker_boilerplate=`cat conftest.err`
20836 # Allow CC to be a program name with arguments.
20841 for cc_temp in $compiler""; do
20843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20849 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20852 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20853 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20854 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20855 echo "${ECHO_T}$can_build_shared" >&6; }
20857 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20858 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20859 test "$can_build_shared" = "no" && enable_shared=no
20861 # On AIX, shared libraries and static libraries use the same namespace, and
20862 # are all built from PIC.
20865 test "$enable_shared" = yes && enable_static=no
20866 if test -n "$RANLIB"; then
20867 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20868 postinstall_cmds='$RANLIB $lib'
20872 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20873 test "$enable_shared" = yes && enable_static=no
20877 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20878 echo "${ECHO_T}$enable_shared" >&6; }
20880 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20881 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20882 # Make sure either enable_shared or enable_static is yes.
20883 test "$enable_shared" = yes || enable_static=yes
20884 { echo "$as_me:$LINENO: result: $enable_static" >&5
20885 echo "${ECHO_T}$enable_static" >&6; }
20890 lt_prog_compiler_wl_F77=
20891 lt_prog_compiler_pic_F77=
20892 lt_prog_compiler_static_F77=
20894 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20895 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20897 if test "$GCC" = yes; then
20898 lt_prog_compiler_wl_F77='-Wl,'
20899 lt_prog_compiler_static_F77='-static'
20903 # All AIX code is PIC.
20904 if test "$host_cpu" = ia64; then
20905 # AIX 5 now supports IA64 processor
20906 lt_prog_compiler_static_F77='-Bstatic'
20911 # FIXME: we need at least 68020 code to build shared libraries, but
20912 # adding the `-m68020' flag to GCC prevents building anything better,
20914 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20917 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20918 # PIC is the default for these OSes.
20921 mingw* | pw32* | os2*)
20922 # This hack is so that the source file can tell whether it is being
20923 # built for inclusion in a dll (and should export symbols for example).
20924 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20927 darwin* | rhapsody*)
20928 # PIC is the default on this platform
20929 # Common symbols not allowed in MH_DYLIB files
20930 lt_prog_compiler_pic_F77='-fno-common'
20934 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20935 # Instead, we relocate shared libraries at runtime.
20939 # Just because we use GCC doesn't mean we suddenly get shared libraries
20940 # on systems that don't support them.
20941 lt_prog_compiler_can_build_shared_F77=no
20946 if test -d /usr/nec; then
20947 lt_prog_compiler_pic_F77=-Kconform_pic
20952 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20953 # not for PA HP-UX.
20959 lt_prog_compiler_pic_F77='-fPIC'
20965 lt_prog_compiler_pic_F77='-fPIC'
20969 # PORTME Check for flag to pass linker flags through the system compiler.
20972 lt_prog_compiler_wl_F77='-Wl,'
20973 if test "$host_cpu" = ia64; then
20974 # AIX 5 now supports IA64 processor
20975 lt_prog_compiler_static_F77='-Bstatic'
20977 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20981 # PIC is the default on this platform
20982 # Common symbols not allowed in MH_DYLIB files
20983 case $cc_basename in
20985 lt_prog_compiler_pic_F77='-qnocommon'
20986 lt_prog_compiler_wl_F77='-Wl,'
20991 mingw* | pw32* | os2*)
20992 # This hack is so that the source file can tell whether it is being
20993 # built for inclusion in a dll (and should export symbols for example).
20994 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20997 hpux9* | hpux10* | hpux11*)
20998 lt_prog_compiler_wl_F77='-Wl,'
20999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21000 # not for PA HP-UX.
21006 lt_prog_compiler_pic_F77='+Z'
21009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21010 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21013 irix5* | irix6* | nonstopux*)
21014 lt_prog_compiler_wl_F77='-Wl,'
21015 # PIC (with -KPIC) is the default.
21016 lt_prog_compiler_static_F77='-non_shared'
21020 lt_prog_compiler_pic_F77='-KPIC'
21021 lt_prog_compiler_static_F77='-Bstatic'
21025 case $cc_basename in
21027 lt_prog_compiler_wl_F77='-Wl,'
21028 lt_prog_compiler_pic_F77='-KPIC'
21029 lt_prog_compiler_static_F77='-static'
21031 pgcc* | pgf77* | pgf90* | pgf95*)
21032 # Portland Group compilers (*not* the Pentium gcc compiler,
21033 # which looks to be a dead project)
21034 lt_prog_compiler_wl_F77='-Wl,'
21035 lt_prog_compiler_pic_F77='-fpic'
21036 lt_prog_compiler_static_F77='-Bstatic'
21039 lt_prog_compiler_wl_F77='-Wl,'
21040 # All Alpha code is PIC.
21041 lt_prog_compiler_static_F77='-non_shared'
21046 osf3* | osf4* | osf5*)
21047 lt_prog_compiler_wl_F77='-Wl,'
21048 # All OSF/1 code is PIC.
21049 lt_prog_compiler_static_F77='-non_shared'
21053 lt_prog_compiler_pic_F77='-KPIC'
21054 lt_prog_compiler_static_F77='-Bstatic'
21055 case $cc_basename in
21056 f77* | f90* | f95*)
21057 lt_prog_compiler_wl_F77='-Qoption ld ';;
21059 lt_prog_compiler_wl_F77='-Wl,';;
21064 lt_prog_compiler_wl_F77='-Qoption ld '
21065 lt_prog_compiler_pic_F77='-PIC'
21066 lt_prog_compiler_static_F77='-Bstatic'
21069 sysv4 | sysv4.2uw2* | sysv4.3*)
21070 lt_prog_compiler_wl_F77='-Wl,'
21071 lt_prog_compiler_pic_F77='-KPIC'
21072 lt_prog_compiler_static_F77='-Bstatic'
21076 if test -d /usr/nec ;then
21077 lt_prog_compiler_pic_F77='-Kconform_pic'
21078 lt_prog_compiler_static_F77='-Bstatic'
21082 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21083 lt_prog_compiler_wl_F77='-Wl,'
21084 lt_prog_compiler_pic_F77='-KPIC'
21085 lt_prog_compiler_static_F77='-Bstatic'
21089 lt_prog_compiler_wl_F77='-Wl,'
21090 lt_prog_compiler_can_build_shared_F77=no
21094 lt_prog_compiler_pic_F77='-pic'
21095 lt_prog_compiler_static_F77='-Bstatic'
21099 lt_prog_compiler_can_build_shared_F77=no
21104 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21105 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21108 # Check to make sure the PIC flag actually works.
21110 if test -n "$lt_prog_compiler_pic_F77"; then
21112 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21113 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21114 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21117 lt_prog_compiler_pic_works_F77=no
21118 ac_outfile=conftest.$ac_objext
21119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21120 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21121 # Insert the option either (1) after the last *FLAGS variable, or
21122 # (2) before a word containing "conftest.", or (3) at the end.
21123 # Note that $ac_compile itself does not contain backslashes and begins
21124 # with a dollar sign (not a hyphen), so the echo should work correctly.
21125 # The option is referenced via a variable to avoid confusing sed.
21126 lt_compile=`echo "$ac_compile" | $SED \
21127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21129 -e 's:$: $lt_compiler_flag:'`
21130 (eval echo "\"\$as_me:21130: $lt_compile\"" >&5)
21131 (eval "$lt_compile" 2>conftest.err)
21133 cat conftest.err >&5
21134 echo "$as_me:21134: \$? = $ac_status" >&5
21135 if (exit $ac_status) && test -s "$ac_outfile"; then
21136 # The compiler can only warn and ignore the option if not recognized
21137 # So say no if there are warnings other than the usual output.
21138 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21141 lt_prog_compiler_pic_works_F77=yes
21147 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21148 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21150 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21151 case $lt_prog_compiler_pic_F77 in
21153 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21156 lt_prog_compiler_pic_F77=
21157 lt_prog_compiler_can_build_shared_F77=no
21162 # For platforms which do not support PIC, -DPIC is meaningless:
21164 lt_prog_compiler_pic_F77=
21167 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21172 # Check to make sure the static flag actually works.
21174 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21175 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21176 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21177 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 lt_prog_compiler_static_works_F77=no
21181 save_LDFLAGS="$LDFLAGS"
21182 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21183 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21184 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21185 # The linker can only warn and ignore the option if not recognized
21186 # So say no if there are warnings
21187 if test -s conftest.err; then
21188 # Append any errors to the config.log.
21189 cat conftest.err 1>&5
21190 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21192 if diff conftest.exp conftest.er2 >/dev/null; then
21193 lt_prog_compiler_static_works_F77=yes
21196 lt_prog_compiler_static_works_F77=yes
21200 LDFLAGS="$save_LDFLAGS"
21203 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21204 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21206 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21209 lt_prog_compiler_static_F77=
21213 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21214 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21215 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 lt_cv_prog_compiler_c_o_F77=no
21219 $rm -r conftest 2>/dev/null
21223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21225 lt_compiler_flag="-o out/conftest2.$ac_objext"
21226 # Insert the option either (1) after the last *FLAGS variable, or
21227 # (2) before a word containing "conftest.", or (3) at the end.
21228 # Note that $ac_compile itself does not contain backslashes and begins
21229 # with a dollar sign (not a hyphen), so the echo should work correctly.
21230 lt_compile=`echo "$ac_compile" | $SED \
21231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21233 -e 's:$: $lt_compiler_flag:'`
21234 (eval echo "\"\$as_me:21234: $lt_compile\"" >&5)
21235 (eval "$lt_compile" 2>out/conftest.err)
21237 cat out/conftest.err >&5
21238 echo "$as_me:21238: \$? = $ac_status" >&5
21239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21241 # The compiler can only warn and ignore the option if not recognized
21242 # So say no if there are warnings
21243 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21246 lt_cv_prog_compiler_c_o_F77=yes
21251 # SGI C++ compiler will create directory out/ii_files/ for
21252 # template instantiation
21253 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21254 $rm out/* && rmdir out
21260 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21261 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21264 hard_links="nottested"
21265 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21266 # do not overwrite the value of need_locks provided by the user
21267 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21268 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21273 ln conftest.a conftest.b 2>&5 || hard_links=no
21274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21275 { echo "$as_me:$LINENO: result: $hard_links" >&5
21276 echo "${ECHO_T}$hard_links" >&6; }
21277 if test "$hard_links" = no; then
21278 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21279 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21286 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21287 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21290 allow_undefined_flag_F77=
21291 enable_shared_with_static_runtimes_F77=no
21293 archive_expsym_cmds_F77=
21294 old_archive_From_new_cmds_F77=
21295 old_archive_from_expsyms_cmds_F77=
21296 export_dynamic_flag_spec_F77=
21297 whole_archive_flag_spec_F77=
21298 thread_safe_flag_spec_F77=
21299 hardcode_libdir_flag_spec_F77=
21300 hardcode_libdir_flag_spec_ld_F77=
21301 hardcode_libdir_separator_F77=
21302 hardcode_direct_F77=no
21303 hardcode_minus_L_F77=no
21304 hardcode_shlibpath_var_F77=unsupported
21305 link_all_deplibs_F77=unknown
21306 hardcode_automatic_F77=no
21308 module_expsym_cmds_F77=
21309 always_export_symbols_F77=no
21310 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21311 # include_expsyms should be a list of space-separated symbols to be *always*
21312 # included in the symbol list
21313 include_expsyms_F77=
21314 # exclude_expsyms can be an extended regexp of symbols to exclude
21315 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21316 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21317 # as well as any symbol that contains `d'.
21318 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21319 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21320 # platforms (ab)use it in PIC code, but their linkers get confused if
21321 # the symbol is explicitly referenced. Since portable code cannot
21322 # rely on this symbol name, it's probably fine to never include it in
21323 # preloaded symbol tables.
21324 extract_expsyms_cmds=
21325 # Just being paranoid about ensuring that cc_basename is set.
21326 for cc_temp in $compiler""; do
21328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21334 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21337 cygwin* | mingw* | pw32*)
21338 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21339 # When not using gcc, we currently assume that we are using
21340 # Microsoft Visual C++.
21341 if test "$GCC" != yes; then
21346 # we just hope/assume this is gcc and not c89 (= MSVC++)
21355 if test "$with_gnu_ld" = yes; then
21356 # If archive_cmds runs LD, not CC, wlarc should be empty
21359 # Set some defaults for GNU ld with shared library support. These
21360 # are reset later if shared libraries are not supported. Putting them
21361 # here allows them to be overridden if necessary.
21362 runpath_var=LD_RUN_PATH
21363 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21364 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21365 # ancient GNU ld didn't support --whole-archive et. al.
21366 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21367 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21369 whole_archive_flag_spec_F77=
21371 supports_anon_versioning=no
21372 case `$LD -v 2>/dev/null` in
21373 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21374 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21375 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21376 *\ 2.11.*) ;; # other 2.11 versions
21377 *) supports_anon_versioning=yes ;;
21380 # See if GNU ld supports shared libraries.
21382 aix3* | aix4* | aix5*)
21383 # On AIX/PPC, the GNU linker is very broken
21384 if test "$host_cpu" != ia64; then
21388 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21389 *** to be unable to reliably create shared libraries on AIX.
21390 *** Therefore, libtool is disabling shared libraries support. If you
21391 *** really care for shared libraries, you may want to modify your PATH
21392 *** so that a non-GNU linker is found, and then restart.
21399 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)'
21400 hardcode_libdir_flag_spec_F77='-L$libdir'
21401 hardcode_minus_L_F77=yes
21403 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21404 # that the semantics of dynamic libraries on AmigaOS, at least up
21405 # to version 4, is to share data among multiple programs linked
21406 # with the same dynamic library. Since this doesn't match the
21407 # behavior of shared libraries on other platforms, we can't use
21413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21414 allow_undefined_flag_F77=unsupported
21415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21416 # support --undefined. This deserves some investigation. FIXME
21417 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21423 cygwin* | mingw* | pw32*)
21424 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21425 # as there is no search path for DLLs.
21426 hardcode_libdir_flag_spec_F77='-L$libdir'
21427 allow_undefined_flag_F77=unsupported
21428 always_export_symbols_F77=no
21429 enable_shared_with_static_runtimes_F77=yes
21430 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21432 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21433 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21434 # If the export-symbols file already is a .def file (1st line
21435 # is EXPORTS), use it as is; otherwise, prepend...
21436 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21437 cp $export_symbols $output_objdir/$soname.def;
21439 echo EXPORTS > $output_objdir/$soname.def;
21440 cat $export_symbols >> $output_objdir/$soname.def;
21442 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21449 hardcode_direct_F77=no
21450 hardcode_shlibpath_var_F77=no
21451 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21452 export_dynamic_flag_spec_F77='${wl}-E'
21453 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21454 # Instead, shared libraries are loaded at an image base (0x10000000 by
21455 # default) and relocated if they conflict, which is a slow very memory
21456 # consuming and fragmenting process. To avoid this, we pick a random,
21457 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21458 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21459 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'
21460 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'
21464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21466 case $cc_basename,$host_cpu in
21467 pgcc*) # Portland Group C compiler
21468 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'
21469 tmp_addflag=' $pic_flag'
21471 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21472 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'
21473 tmp_addflag=' $pic_flag -Mnomain' ;;
21474 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21475 tmp_addflag=' -i_dynamic' ;;
21476 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21477 tmp_addflag=' -i_dynamic -nofor_main' ;;
21478 ifc* | ifort*) # Intel Fortran compiler
21479 tmp_addflag=' -nofor_main' ;;
21481 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21483 if test $supports_anon_versioning = yes; then
21484 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21485 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21486 $echo "local: *; };" >> $output_objdir/$libname.ver~
21487 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21496 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21499 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21500 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21505 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21509 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21510 *** create shared libraries on Solaris systems. Therefore, libtool
21511 *** is disabling shared libraries support. We urge you to upgrade GNU
21512 *** binutils to release 2.9.1 or newer. Another option is to modify
21513 *** your PATH or compiler configuration so that the native linker is
21514 *** used, and then restart.
21517 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21518 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21519 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21526 case `$LD -v 2>&1` in
21527 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21531 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21532 *** reliably create shared libraries on SCO systems. Therefore, libtool
21533 *** is disabling shared libraries support. We urge you to upgrade GNU
21534 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21535 *** your PATH or compiler configuration so that the native linker is
21536 *** used, and then restart.
21541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21542 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21543 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21544 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21553 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21555 hardcode_direct_F77=yes
21556 hardcode_shlibpath_var_F77=no
21560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21561 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21562 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21569 if test "$ld_shlibs_F77" = no; then
21571 hardcode_libdir_flag_spec_F77=
21572 export_dynamic_flag_spec_F77=
21573 whole_archive_flag_spec_F77=
21576 # PORTME fill in a description of your system's linker (not GNU ld)
21579 allow_undefined_flag_F77=unsupported
21580 always_export_symbols_F77=yes
21581 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'
21582 # Note: this linker hardcodes the directories in LIBPATH if there
21583 # are no directories specified by -L.
21584 hardcode_minus_L_F77=yes
21585 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21586 # Neither direct hardcoding nor static linking is supported with a
21588 hardcode_direct_F77=unsupported
21593 if test "$host_cpu" = ia64; then
21594 # On IA64, the linker does run time linking by default, so we don't
21595 # have to do anything special.
21596 aix_use_runtimelinking=no
21597 exp_sym_flag='-Bexport'
21600 # If we're using GNU nm, then we don't want the "-C" option.
21601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21602 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21603 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'
21605 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'
21607 aix_use_runtimelinking=no
21609 # Test if we are trying to use run time linking or normal
21610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21611 # need to do runtime linking.
21612 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21613 for ld_flag in $LDFLAGS; do
21614 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21615 aix_use_runtimelinking=yes
21622 exp_sym_flag='-bexport'
21623 no_entry_flag='-bnoentry'
21626 # When large executables or shared objects are built, AIX ld can
21627 # have problems creating the table of contents. If linking a library
21628 # or program results in "error TOC overflow" add -mminimal-toc to
21629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21632 archive_cmds_F77=''
21633 hardcode_direct_F77=yes
21634 hardcode_libdir_separator_F77=':'
21635 link_all_deplibs_F77=yes
21637 if test "$GCC" = yes; then
21638 case $host_os in aix4.[012]|aix4.[012].*)
21639 # We only want to do this on AIX 4.2 and lower, the check
21640 # below for broken collect2 doesn't work under 4.3+
21641 collect2name=`${CC} -print-prog-name=collect2`
21642 if test -f "$collect2name" && \
21643 strings "$collect2name" | grep resolve_lib_name >/dev/null
21645 # We have reworked collect2
21646 hardcode_direct_F77=yes
21648 # We have old collect2
21649 hardcode_direct_F77=unsupported
21650 # It fails to find uninstalled libraries when the uninstalled
21651 # path is not listed in the libpath. Setting hardcode_minus_L
21652 # to unsupported forces relinking
21653 hardcode_minus_L_F77=yes
21654 hardcode_libdir_flag_spec_F77='-L$libdir'
21655 hardcode_libdir_separator_F77=
21659 shared_flag='-shared'
21660 if test "$aix_use_runtimelinking" = yes; then
21661 shared_flag="$shared_flag "'${wl}-G'
21665 if test "$host_cpu" = ia64; then
21666 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21667 # chokes on -Wl,-G. The following line is correct:
21670 if test "$aix_use_runtimelinking" = yes; then
21671 shared_flag='${wl}-G'
21673 shared_flag='${wl}-bM:SRE'
21678 # It seems that -bexpall does not export symbols beginning with
21679 # underscore (_), so it is better to generate a list of symbols to export.
21680 always_export_symbols_F77=yes
21681 if test "$aix_use_runtimelinking" = yes; then
21682 # Warning - without using the other runtime loading flags (-brtl),
21683 # -berok will link without error, but may produce a broken library.
21684 allow_undefined_flag_F77='-berok'
21685 # Determine the default libpath from the value encoded in an empty executable.
21686 cat >conftest.$ac_ext <<_ACEOF
21691 rm -f conftest.$ac_objext conftest$ac_exeext
21692 if { (ac_try="$ac_link"
21693 case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_link") 2>conftest.er1
21700 grep -v '^ *+' conftest.er1 >conftest.err
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } &&
21705 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21706 { (case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_try") 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try='test -s conftest$ac_exeext'
21716 { (case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721 (eval "$ac_try") 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21728 # Check for a 64-bit object if we didn't find anything.
21729 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; }
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21738 rm -f core conftest.err conftest.$ac_objext \
21739 conftest$ac_exeext conftest.$ac_ext
21740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21742 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21743 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"
21745 if test "$host_cpu" = ia64; then
21746 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21747 allow_undefined_flag_F77="-z nodefs"
21748 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"
21750 # Determine the default libpath from the value encoded in an empty executable.
21751 cat >conftest.$ac_ext <<_ACEOF
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (ac_try="$ac_link"
21758 case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763 (eval "$ac_link") 2>conftest.er1
21765 grep -v '^ *+' conftest.er1 >conftest.err
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
21770 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21771 { (case "(($ac_try" in
21772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773 *) ac_try_echo=$ac_try;;
21775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776 (eval "$ac_try") 2>&5
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; } &&
21780 { ac_try='test -s conftest$ac_exeext'
21781 { (case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_try") 2>&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; }; then
21791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21793 # Check for a 64-bit object if we didn't find anything.
21794 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; }
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21803 rm -f core conftest.err conftest.$ac_objext \
21804 conftest$ac_exeext conftest.$ac_ext
21805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21807 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21808 # Warning - without using the other run time loading flags,
21809 # -berok will link without error, but may produce a broken library.
21810 no_undefined_flag_F77=' ${wl}-bernotok'
21811 allow_undefined_flag_F77=' ${wl}-berok'
21812 # Exported symbols can be pulled into shared objects from archives
21813 whole_archive_flag_spec_F77='$convenience'
21814 archive_cmds_need_lc_F77=yes
21815 # This is similar to how AIX traditionally builds its shared libraries.
21816 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'
21822 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)'
21823 hardcode_libdir_flag_spec_F77='-L$libdir'
21824 hardcode_minus_L_F77=yes
21825 # see comment about different semantics on the GNU ld section
21830 export_dynamic_flag_spec_F77=-rdynamic
21833 cygwin* | mingw* | pw32*)
21834 # When not using gcc, we currently assume that we are using
21835 # Microsoft Visual C++.
21836 # hardcode_libdir_flag_spec is actually meaningless, as there is
21837 # no search path for DLLs.
21838 hardcode_libdir_flag_spec_F77=' '
21839 allow_undefined_flag_F77=unsupported
21840 # Tell ltmain to make .lib files, not .a files.
21842 # Tell ltmain to make .dll files, not .so files.
21844 # FIXME: Setting linknames here is a bad hack.
21845 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21846 # The linker will automatically build a .lib file if we build a DLL.
21847 old_archive_From_new_cmds_F77='true'
21848 # FIXME: Should let the user specify the lib program.
21849 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21850 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21851 enable_shared_with_static_runtimes_F77=yes
21854 darwin* | rhapsody*)
21856 rhapsody* | darwin1.[012])
21857 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21860 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21861 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21863 case ${MACOSX_DEPLOYMENT_TARGET} in
21865 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21868 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21874 archive_cmds_need_lc_F77=no
21875 hardcode_direct_F77=no
21876 hardcode_automatic_F77=yes
21877 hardcode_shlibpath_var_F77=unsupported
21878 whole_archive_flag_spec_F77=''
21879 link_all_deplibs_F77=yes
21880 if test "$GCC" = yes ; then
21881 output_verbose_link_cmd='echo'
21882 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21883 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21884 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21885 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}'
21886 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}'
21888 case $cc_basename in
21890 output_verbose_link_cmd='echo'
21891 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21892 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21893 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21894 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}'
21895 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}'
21905 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21906 hardcode_libdir_flag_spec_F77='-L$libdir'
21907 hardcode_shlibpath_var_F77=no
21914 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21915 # support. Future versions do this automatically, but an explicit c++rt0.o
21916 # does not break anything, and helps significantly (at the cost of a little
21919 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21920 hardcode_libdir_flag_spec_F77='-R$libdir'
21921 hardcode_direct_F77=yes
21922 hardcode_shlibpath_var_F77=no
21925 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21927 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21928 hardcode_direct_F77=yes
21929 hardcode_minus_L_F77=yes
21930 hardcode_shlibpath_var_F77=no
21933 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21934 freebsd* | kfreebsd*-gnu | dragonfly*)
21935 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21936 hardcode_libdir_flag_spec_F77='-R$libdir'
21937 hardcode_direct_F77=yes
21938 hardcode_shlibpath_var_F77=no
21942 if test "$GCC" = yes; then
21943 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'
21945 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'
21947 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21948 hardcode_libdir_separator_F77=:
21949 hardcode_direct_F77=yes
21951 # hardcode_minus_L: Not really in the search PATH,
21952 # but as the default location of the library.
21953 hardcode_minus_L_F77=yes
21954 export_dynamic_flag_spec_F77='${wl}-E'
21958 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21959 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21961 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21963 if test "$with_gnu_ld" = no; then
21964 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21965 hardcode_libdir_separator_F77=:
21967 hardcode_direct_F77=yes
21968 export_dynamic_flag_spec_F77='${wl}-E'
21970 # hardcode_minus_L: Not really in the search PATH,
21971 # but as the default location of the library.
21972 hardcode_minus_L_F77=yes
21977 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21980 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21983 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21986 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21992 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21995 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21998 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22002 if test "$with_gnu_ld" = no; then
22003 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22004 hardcode_libdir_separator_F77=:
22008 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22009 hardcode_direct_F77=no
22010 hardcode_shlibpath_var_F77=no
22013 hardcode_direct_F77=yes
22014 export_dynamic_flag_spec_F77='${wl}-E'
22016 # hardcode_minus_L: Not really in the search PATH,
22017 # but as the default location of the library.
22018 hardcode_minus_L_F77=yes
22024 irix5* | irix6* | nonstopux*)
22025 if test "$GCC" = yes; then
22026 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'
22028 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'
22029 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22031 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22032 hardcode_libdir_separator_F77=:
22033 link_all_deplibs_F77=yes
22037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22038 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22040 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22042 hardcode_libdir_flag_spec_F77='-R$libdir'
22043 hardcode_direct_F77=yes
22044 hardcode_shlibpath_var_F77=no
22048 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22049 hardcode_direct_F77=yes
22050 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22051 hardcode_libdir_separator_F77=:
22052 hardcode_shlibpath_var_F77=no
22056 hardcode_direct_F77=yes
22057 hardcode_shlibpath_var_F77=no
22058 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22059 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22060 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22061 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22062 export_dynamic_flag_spec_F77='${wl}-E'
22065 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22066 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22067 hardcode_libdir_flag_spec_F77='-R$libdir'
22070 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22071 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22078 hardcode_libdir_flag_spec_F77='-L$libdir'
22079 hardcode_minus_L_F77=yes
22080 allow_undefined_flag_F77=unsupported
22081 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'
22082 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22086 if test "$GCC" = yes; then
22087 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22088 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'
22090 allow_undefined_flag_F77=' -expect_unresolved \*'
22091 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'
22093 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22094 hardcode_libdir_separator_F77=:
22097 osf4* | osf5*) # as osf3* with the addition of -msym flag
22098 if test "$GCC" = yes; then
22099 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22100 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'
22101 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22103 allow_undefined_flag_F77=' -expect_unresolved \*'
22104 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'
22105 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~
22106 $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'
22108 # Both c and cxx compiler support -rpath directly
22109 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22111 hardcode_libdir_separator_F77=:
22115 no_undefined_flag_F77=' -z text'
22116 if test "$GCC" = yes; then
22118 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22119 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22120 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22123 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22124 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22125 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22127 hardcode_libdir_flag_spec_F77='-R$libdir'
22128 hardcode_shlibpath_var_F77=no
22130 solaris2.[0-5] | solaris2.[0-5].*) ;;
22132 # The compiler driver will combine linker options so we
22133 # cannot just pass the convience library names through
22134 # without $wl, iff we do not link with $LD.
22135 # Luckily, gcc supports the same syntax we need for Sun Studio.
22136 # Supported since Solaris 2.6 (maybe 2.5.1?)
22139 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22141 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' ;;
22144 link_all_deplibs_F77=yes
22148 if test "x$host_vendor" = xsequent; then
22149 # Use $CC to link under sequent, because it throws in some extra .o
22150 # files that make .init and .fini sections work.
22151 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22153 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22155 hardcode_libdir_flag_spec_F77='-L$libdir'
22156 hardcode_direct_F77=yes
22157 hardcode_minus_L_F77=yes
22158 hardcode_shlibpath_var_F77=no
22162 case $host_vendor in
22164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22165 hardcode_direct_F77=yes # is this really true???
22168 ## LD is ld it makes a PLAMLIB
22169 ## CC just makes a GrossModule.
22170 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22171 reload_cmds_F77='$CC -r -o $output$reload_objs'
22172 hardcode_direct_F77=no
22175 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22176 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22179 runpath_var='LD_RUN_PATH'
22180 hardcode_shlibpath_var_F77=no
22184 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22185 hardcode_shlibpath_var_F77=no
22186 export_dynamic_flag_spec_F77='-Bexport'
22190 if test -d /usr/nec; then
22191 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22192 hardcode_shlibpath_var_F77=no
22193 runpath_var=LD_RUN_PATH
22194 hardcode_runpath_var=yes
22199 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22200 no_undefined_flag_F77='${wl}-z,text'
22201 archive_cmds_need_lc_F77=no
22202 hardcode_shlibpath_var_F77=no
22203 runpath_var='LD_RUN_PATH'
22205 if test "$GCC" = yes; then
22206 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22207 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22209 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22210 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22214 sysv5* | sco3.2v5* | sco5v6*)
22215 # Note: We can NOT use -z defs as we might desire, because we do not
22216 # link with -lc, and that would cause any symbols used from libc to
22217 # always be unresolved, which means just about no library would
22218 # ever link correctly. If we're not using GNU ld we use -z text
22219 # though, which does catch some bad symbols but isn't as heavy-handed
22221 no_undefined_flag_F77='${wl}-z,text'
22222 allow_undefined_flag_F77='${wl}-z,nodefs'
22223 archive_cmds_need_lc_F77=no
22224 hardcode_shlibpath_var_F77=no
22225 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22226 hardcode_libdir_separator_F77=':'
22227 link_all_deplibs_F77=yes
22228 export_dynamic_flag_spec_F77='${wl}-Bexport'
22229 runpath_var='LD_RUN_PATH'
22231 if test "$GCC" = yes; then
22232 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22233 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22235 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22236 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22242 hardcode_libdir_flag_spec_F77='-L$libdir'
22243 hardcode_shlibpath_var_F77=no
22252 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22253 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22254 test "$ld_shlibs_F77" = no && can_build_shared=no
22257 # Do we need to explicitly link libc?
22259 case "x$archive_cmds_need_lc_F77" in
22261 # Assume -lc should be added
22262 archive_cmds_need_lc_F77=yes
22264 if test "$enable_shared" = yes && test "$GCC" = yes; then
22265 case $archive_cmds_F77 in
22267 # FIXME: we may have to deal with multi-command sequences.
22270 # Test whether the compiler implicitly links with -lc since on some
22271 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22272 # to ld, don't add -lc before -lgcc.
22273 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22274 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279 (eval $ac_compile) 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } 2>conftest.err; then
22285 libobjs=conftest.$ac_objext
22287 wl=$lt_prog_compiler_wl_F77
22288 pic_flag=$lt_prog_compiler_pic_F77
22294 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22295 allow_undefined_flag_F77=
22296 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22297 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }
22302 archive_cmds_need_lc_F77=no
22304 archive_cmds_need_lc_F77=yes
22306 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22308 cat conftest.err 1>&5
22311 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22312 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22319 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22320 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22321 library_names_spec=
22322 libname_spec='lib$name'
22326 postuninstall_cmds=
22330 shlibpath_overrides_runpath=unknown
22332 dynamic_linker="$host_os ld.so"
22333 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22334 if test "$GCC" = yes; then
22335 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22336 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22337 # if the path contains ";" then we assume it to be the separator
22338 # otherwise default to the standard path separator (i.e. ":") - it is
22339 # assumed that no part of a normal pathname contains ";" but that should
22340 # okay in the real world where ";" in dirpaths is itself problematic.
22341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22343 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22346 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22348 need_lib_prefix=unknown
22349 hardcode_into_libs=no
22351 # when you set need_version to no, make sure it does not cause -set_version
22352 # flags to be left without arguments
22353 need_version=unknown
22358 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22359 shlibpath_var=LIBPATH
22361 # AIX 3 has no versioning support, so we append a major version to the name.
22362 soname_spec='${libname}${release}${shared_ext}$major'
22369 hardcode_into_libs=yes
22370 if test "$host_cpu" = ia64; then
22371 # AIX 5 supports IA64
22372 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22373 shlibpath_var=LD_LIBRARY_PATH
22375 # With GCC up to 2.95.x, collect2 would create an import file
22376 # for dependence libraries. The import file would start with
22377 # the line `#! .'. This would cause the generated library to
22378 # depend on `.', always an invalid library. This was fixed in
22379 # development snapshots of GCC prior to 3.0.
22381 aix4 | aix4.[01] | aix4.[01].*)
22382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22384 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22387 can_build_shared=no
22391 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22392 # soname into executable. Probably we can add versioning support to
22393 # collect2, so additional links can be useful in future.
22394 if test "$aix_use_runtimelinking" = yes; then
22395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22396 # instead of lib<name>.a to let people know that these are not
22397 # typical AIX shared libraries.
22398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22400 # We preserve .a as extension for shared libraries through AIX4.2
22401 # and later when we are not doing run time linking.
22402 library_names_spec='${libname}${release}.a $libname.a'
22403 soname_spec='${libname}${release}${shared_ext}$major'
22405 shlibpath_var=LIBPATH
22410 library_names_spec='$libname.ixlibrary $libname.a'
22411 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22412 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'
22416 library_names_spec='${libname}${shared_ext}'
22417 dynamic_linker="$host_os ld.so"
22418 shlibpath_var=LIBRARY_PATH
22424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22425 soname_spec='${libname}${release}${shared_ext}$major'
22426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22427 shlibpath_var=LD_LIBRARY_PATH
22428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22430 # the default ld.so.conf also contains /usr/contrib/lib and
22431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22432 # libtool to hard-code these into programs
22435 cygwin* | mingw* | pw32*)
22436 version_type=windows
22441 case $GCC,$host_os in
22442 yes,cygwin* | yes,mingw* | yes,pw32*)
22443 library_names_spec='$libname.dll.a'
22444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22445 postinstall_cmds='base_file=`basename \${file}`~
22446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22447 dldir=$destdir/`dirname \$dlpath`~
22448 test -d \$dldir || mkdir -p \$dldir~
22449 $install_prog $dir/$dlname \$dldir/$dlname~
22450 chmod a+x \$dldir/$dlname'
22451 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22452 dlpath=$dir/\$dldll~
22454 shlibpath_overrides_runpath=yes
22458 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22459 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22460 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22463 # MinGW DLLs use traditional 'lib' prefix
22464 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22465 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22466 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22467 # It is most probably a Windows format PATH printed by
22468 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22469 # path with ; separators, and with drive letters. We can handle the
22470 # drive letters (cygwin fileutils understands them), so leave them,
22471 # especially as we might pass files found there to a mingw objdump,
22472 # which wouldn't understand a cygwinified path. Ahh.
22473 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22475 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22479 # pw32 DLLs use 'pw' prefix rather than 'lib'
22480 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22486 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22489 dynamic_linker='Win32 ld.exe'
22490 # FIXME: first we should search . and the directory the executable is in
22494 darwin* | rhapsody*)
22495 dynamic_linker="$host_os dyld"
22496 version_type=darwin
22499 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22500 soname_spec='${libname}${release}${major}$shared_ext'
22501 shlibpath_overrides_runpath=yes
22502 shlibpath_var=DYLD_LIBRARY_PATH
22503 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22504 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22505 if test "$GCC" = yes; then
22506 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"`
22508 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22518 soname_spec='${libname}${release}${shared_ext}$major'
22519 shlibpath_var=LD_LIBRARY_PATH
22530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22531 soname_spec='${libname}${release}${shared_ext}$major'
22532 shlibpath_var=LD_LIBRARY_PATH
22533 shlibpath_overrides_runpath=no
22534 hardcode_into_libs=yes
22535 dynamic_linker='GNU ld.so'
22538 freebsd* | dragonfly*)
22539 # DragonFly does not have aout. When/if they implement a new
22540 # versioning mechanism, adjust this.
22541 if test -x /usr/bin/objformat; then
22542 objformat=`/usr/bin/objformat`
22545 freebsd[123]*) objformat=aout ;;
22546 *) objformat=elf ;;
22549 version_type=freebsd-$objformat
22550 case $version_type in
22552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22561 shlibpath_var=LD_LIBRARY_PATH
22564 shlibpath_overrides_runpath=yes
22566 freebsd3.[01]* | freebsdelf3.[01]*)
22567 shlibpath_overrides_runpath=yes
22568 hardcode_into_libs=yes
22570 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22571 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22572 shlibpath_overrides_runpath=no
22573 hardcode_into_libs=yes
22575 freebsd*) # from 4.6 on
22576 shlibpath_overrides_runpath=yes
22577 hardcode_into_libs=yes
22586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22587 soname_spec='${libname}${release}${shared_ext}$major'
22588 shlibpath_var=LD_LIBRARY_PATH
22589 hardcode_into_libs=yes
22592 hpux9* | hpux10* | hpux11*)
22593 # Give a soname corresponding to the major version so that dld.sl refuses to
22594 # link against other versions.
22601 hardcode_into_libs=yes
22602 dynamic_linker="$host_os dld.so"
22603 shlibpath_var=LD_LIBRARY_PATH
22604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22606 soname_spec='${libname}${release}${shared_ext}$major'
22607 if test "X$HPUX_IA64_MODE" = X32; then
22608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22616 hardcode_into_libs=yes
22617 dynamic_linker="$host_os dld.sl"
22618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621 soname_spec='${libname}${release}${shared_ext}$major'
22622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22627 dynamic_linker="$host_os dld.sl"
22628 shlibpath_var=SHLIB_PATH
22629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22631 soname_spec='${libname}${release}${shared_ext}$major'
22634 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22635 postinstall_cmds='chmod 555 $lib'
22642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22643 soname_spec='${libname}${release}${shared_ext}$major'
22644 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22645 shlibpath_var=LD_LIBRARY_PATH
22646 shlibpath_overrides_runpath=no
22647 hardcode_into_libs=yes
22650 irix5* | irix6* | nonstopux*)
22652 nonstopux*) version_type=nonstopux ;;
22654 if test "$lt_cv_prog_gnu_ld" = yes; then
22662 soname_spec='${libname}${release}${shared_ext}$major'
22663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22665 irix5* | nonstopux*)
22666 libsuff= shlibsuff=
22669 case $LD in # libtool.m4 will add one of these switches to LD
22670 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22671 libsuff= shlibsuff= libmagic=32-bit;;
22672 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22673 libsuff=32 shlibsuff=N32 libmagic=N32;;
22674 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22675 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22676 *) libsuff= shlibsuff= libmagic=never-match;;
22680 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22681 shlibpath_overrides_runpath=no
22682 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22683 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22684 hardcode_into_libs=yes
22687 # No shared lib support for Linux oldld, aout, or coff.
22688 linux*oldld* | linux*aout* | linux*coff*)
22692 # This must be Linux ELF.
22697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698 soname_spec='${libname}${release}${shared_ext}$major'
22699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22700 shlibpath_var=LD_LIBRARY_PATH
22701 shlibpath_overrides_runpath=no
22702 # This implies no fast_install, which is unacceptable.
22703 # Some rework will be needed to allow for fast_install
22704 # before this can be enabled.
22705 hardcode_into_libs=yes
22707 # Append ld.so.conf contents to the search path
22708 if test -f /etc/ld.so.conf; then
22709 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' ' '`
22710 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22713 # We used to test for /lib/ld.so.1 and disable shared libraries on
22714 # powerpc, because MkLinux only supported shared libraries with the
22715 # GNU dynamic linker. Since this was broken with cross compilers,
22716 # most powerpc-linux boxes support dynamic linking these days and
22717 # people can always --disable-shared, the test was removed, and we
22718 # assume the GNU/Linux dynamic linker is in use.
22719 dynamic_linker='GNU/Linux ld.so'
22726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22727 soname_spec='${libname}${release}${shared_ext}$major'
22728 shlibpath_var=LD_LIBRARY_PATH
22729 shlibpath_overrides_runpath=no
22730 hardcode_into_libs=yes
22731 dynamic_linker='GNU ld.so'
22738 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22741 dynamic_linker='NetBSD (a.out) ld.so'
22743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22744 soname_spec='${libname}${release}${shared_ext}$major'
22745 dynamic_linker='NetBSD ld.elf_so'
22747 shlibpath_var=LD_LIBRARY_PATH
22748 shlibpath_overrides_runpath=yes
22749 hardcode_into_libs=yes
22754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 shlibpath_overrides_runpath=yes
22763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22764 soname_spec='${libname}${release}${shared_ext}$major'
22765 shlibpath_var=LD_LIBRARY_PATH
22766 shlibpath_overrides_runpath=yes
22771 sys_lib_dlsearch_path_spec="/usr/lib"
22773 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22775 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22776 *) need_version=no ;;
22778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22780 shlibpath_var=LD_LIBRARY_PATH
22781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22783 openbsd2.[89] | openbsd2.[89].*)
22784 shlibpath_overrides_runpath=no
22787 shlibpath_overrides_runpath=yes
22791 shlibpath_overrides_runpath=yes
22796 libname_spec='$name'
22799 library_names_spec='$libname${shared_ext} $libname.a'
22800 dynamic_linker='OS/2 ld.exe'
22801 shlibpath_var=LIBPATH
22804 osf3* | osf4* | osf5*)
22808 soname_spec='${libname}${release}${shared_ext}$major'
22809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22810 shlibpath_var=LD_LIBRARY_PATH
22811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22812 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22820 soname_spec='${libname}${release}${shared_ext}$major'
22821 shlibpath_var=LD_LIBRARY_PATH
22822 shlibpath_overrides_runpath=yes
22823 hardcode_into_libs=yes
22824 # ldd complains unless libraries are executable
22825 postinstall_cmds='chmod +x $lib'
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22832 shlibpath_var=LD_LIBRARY_PATH
22833 shlibpath_overrides_runpath=yes
22834 if test "$with_gnu_ld" = yes; then
22842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22843 soname_spec='${libname}${release}${shared_ext}$major'
22844 shlibpath_var=LD_LIBRARY_PATH
22845 case $host_vendor in
22847 shlibpath_overrides_runpath=no
22849 export_dynamic_flag_spec='${wl}-Blargedynsym'
22850 runpath_var=LD_RUN_PATH
22858 shlibpath_overrides_runpath=no
22859 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22865 if test -d /usr/nec ;then
22867 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22868 soname_spec='$libname${shared_ext}.$major'
22869 shlibpath_var=LD_LIBRARY_PATH
22873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22874 version_type=freebsd-elf
22877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22878 soname_spec='${libname}${release}${shared_ext}$major'
22879 shlibpath_var=LD_LIBRARY_PATH
22880 hardcode_into_libs=yes
22881 if test "$with_gnu_ld" = yes; then
22882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22883 shlibpath_overrides_runpath=no
22885 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22886 shlibpath_overrides_runpath=yes
22889 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22893 sys_lib_dlsearch_path_spec='/usr/lib'
22898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22899 soname_spec='${libname}${release}${shared_ext}$major'
22900 shlibpath_var=LD_LIBRARY_PATH
22907 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22908 echo "${ECHO_T}$dynamic_linker" >&6; }
22909 test "$dynamic_linker" = no && can_build_shared=no
22911 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22912 if test "$GCC" = yes; then
22913 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22916 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22917 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22918 hardcode_action_F77=
22919 if test -n "$hardcode_libdir_flag_spec_F77" || \
22920 test -n "$runpath_var_F77" || \
22921 test "X$hardcode_automatic_F77" = "Xyes" ; then
22923 # We can hardcode non-existant directories.
22924 if test "$hardcode_direct_F77" != no &&
22925 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22926 # have to relink, otherwise we might link with an installed library
22927 # when we should be linking with a yet-to-be-installed one
22928 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22929 test "$hardcode_minus_L_F77" != no; then
22930 # Linking always hardcodes the temporary library directory.
22931 hardcode_action_F77=relink
22933 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22934 hardcode_action_F77=immediate
22937 # We cannot hardcode anything, or else we can only hardcode existing
22939 hardcode_action_F77=unsupported
22941 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22942 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22944 if test "$hardcode_action_F77" = relink; then
22945 # Fast installation is not supported
22946 enable_fast_install=no
22947 elif test "$shlibpath_overrides_runpath" = yes ||
22948 test "$enable_shared" = no; then
22949 # Fast installation is not necessary
22950 enable_fast_install=needless
22954 # The else clause should only fire when bootstrapping the
22955 # libtool distribution, otherwise you forgot to ship ltmain.sh
22956 # with your package, and you will get complaints that there are
22957 # no rules to generate ltmain.sh.
22958 if test -f "$ltmain"; then
22959 # See if we are running on zsh, and set the options which allow our commands through
22960 # without removal of \ escapes.
22961 if test -n "${ZSH_VERSION+set}" ; then
22962 setopt NO_GLOB_SUBST
22964 # Now quote all the things that may contain metacharacters while being
22965 # careful not to overquote the AC_SUBSTed values. We take copies of the
22966 # variables and quote the copies for generation of the libtool script.
22967 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22969 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22970 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22971 deplibs_check_method reload_flag reload_cmds need_locks \
22972 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22973 lt_cv_sys_global_symbol_to_c_name_address \
22974 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22975 old_postinstall_cmds old_postuninstall_cmds \
22979 lt_prog_compiler_wl_F77 \
22980 lt_prog_compiler_pic_F77 \
22981 lt_prog_compiler_static_F77 \
22982 lt_prog_compiler_no_builtin_flag_F77 \
22983 export_dynamic_flag_spec_F77 \
22984 thread_safe_flag_spec_F77 \
22985 whole_archive_flag_spec_F77 \
22986 enable_shared_with_static_runtimes_F77 \
22987 old_archive_cmds_F77 \
22988 old_archive_from_new_cmds_F77 \
22989 predep_objects_F77 \
22990 postdep_objects_F77 \
22993 compiler_lib_search_path_F77 \
22995 archive_expsym_cmds_F77 \
22996 postinstall_cmds_F77 \
22997 postuninstall_cmds_F77 \
22998 old_archive_from_expsyms_cmds_F77 \
22999 allow_undefined_flag_F77 \
23000 no_undefined_flag_F77 \
23001 export_symbols_cmds_F77 \
23002 hardcode_libdir_flag_spec_F77 \
23003 hardcode_libdir_flag_spec_ld_F77 \
23004 hardcode_libdir_separator_F77 \
23005 hardcode_automatic_F77 \
23007 module_expsym_cmds_F77 \
23008 lt_cv_prog_compiler_c_o_F77 \
23009 exclude_expsyms_F77 \
23010 include_expsyms_F77; do
23013 old_archive_cmds_F77 | \
23014 old_archive_from_new_cmds_F77 | \
23015 archive_cmds_F77 | \
23016 archive_expsym_cmds_F77 | \
23017 module_cmds_F77 | \
23018 module_expsym_cmds_F77 | \
23019 old_archive_from_expsyms_cmds_F77 | \
23020 export_symbols_cmds_F77 | \
23021 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23022 postinstall_cmds | postuninstall_cmds | \
23023 old_postinstall_cmds | old_postuninstall_cmds | \
23024 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23025 # Double-quote double-evaled strings.
23026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23029 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23035 *'\$0 --fallback-echo"')
23036 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23042 cat <<__EOF__ >> "$cfgfile"
23043 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23045 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23047 # Shell to use when invoking shell scripts.
23050 # Whether or not to build shared libraries.
23051 build_libtool_libs=$enable_shared
23053 # Whether or not to build static libraries.
23054 build_old_libs=$enable_static
23056 # Whether or not to add -lc for building shared libraries.
23057 build_libtool_need_lc=$archive_cmds_need_lc_F77
23059 # Whether or not to disallow shared libs when runtime libs are static
23060 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23062 # Whether or not to optimize for fast installation.
23063 fast_install=$enable_fast_install
23066 host_alias=$host_alias
23070 # The build system.
23071 build_alias=$build_alias
23075 # An echo program that does not interpret backslashes.
23080 AR_FLAGS=$lt_AR_FLAGS
23085 # LTCC compiler flags.
23086 LTCFLAGS=$lt_LTCFLAGS
23088 # A language-specific compiler.
23089 CC=$lt_compiler_F77
23091 # Is the compiler the GNU C compiler?
23097 # The linker used to build libraries.
23100 # Whether we need hard or soft links.
23103 # A BSD-compatible nm program.
23106 # A symbol stripping program
23109 # Used to examine libraries when file_magic_cmd begins "file"
23110 MAGIC_CMD=$MAGIC_CMD
23112 # Used on cygwin: DLL creation program.
23115 # Used on cygwin: object dumper.
23118 # Used on cygwin: assembler.
23121 # The name of the directory that contains temporary libtool files.
23124 # How to create reloadable object files.
23125 reload_flag=$lt_reload_flag
23126 reload_cmds=$lt_reload_cmds
23128 # How to pass a linker flag through the compiler.
23129 wl=$lt_lt_prog_compiler_wl_F77
23131 # Object file suffix (normally "o").
23132 objext="$ac_objext"
23134 # Old archive suffix (normally "a").
23137 # Shared library suffix (normally ".so").
23138 shrext_cmds='$shrext_cmds'
23140 # Executable file suffix (normally "").
23143 # Additional compiler flags for building library objects.
23144 pic_flag=$lt_lt_prog_compiler_pic_F77
23147 # What is the maximum length of a command?
23148 max_cmd_len=$lt_cv_sys_max_cmd_len
23150 # Does compiler simultaneously support -c and -o options?
23151 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23153 # Must we lock files when doing compilation?
23154 need_locks=$lt_need_locks
23156 # Do we need the lib prefix for modules?
23157 need_lib_prefix=$need_lib_prefix
23159 # Do we need a version for libraries?
23160 need_version=$need_version
23162 # Whether dlopen is supported.
23163 dlopen_support=$enable_dlopen
23165 # Whether dlopen of programs is supported.
23166 dlopen_self=$enable_dlopen_self
23168 # Whether dlopen of statically linked programs is supported.
23169 dlopen_self_static=$enable_dlopen_self_static
23171 # Compiler flag to prevent dynamic linking.
23172 link_static_flag=$lt_lt_prog_compiler_static_F77
23174 # Compiler flag to turn off builtin functions.
23175 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23177 # Compiler flag to allow reflexive dlopens.
23178 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23180 # Compiler flag to generate shared objects directly from archives.
23181 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23183 # Compiler flag to generate thread-safe objects.
23184 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23186 # Library versioning type.
23187 version_type=$version_type
23189 # Format of library name prefix.
23190 libname_spec=$lt_libname_spec
23192 # List of archive names. First name is the real one, the rest are links.
23193 # The last name is the one that the linker finds with -lNAME.
23194 library_names_spec=$lt_library_names_spec
23196 # The coded name of the library, if different from the real name.
23197 soname_spec=$lt_soname_spec
23199 # Commands used to build and install an old-style archive.
23201 old_archive_cmds=$lt_old_archive_cmds_F77
23202 old_postinstall_cmds=$lt_old_postinstall_cmds
23203 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23205 # Create an old-style archive from a shared archive.
23206 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23208 # Create a temporary old-style archive to link instead of a shared archive.
23209 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23211 # Commands used to build and install a shared archive.
23212 archive_cmds=$lt_archive_cmds_F77
23213 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23214 postinstall_cmds=$lt_postinstall_cmds
23215 postuninstall_cmds=$lt_postuninstall_cmds
23217 # Commands used to build a loadable module (assumed same as above if empty)
23218 module_cmds=$lt_module_cmds_F77
23219 module_expsym_cmds=$lt_module_expsym_cmds_F77
23221 # Commands to strip libraries.
23222 old_striplib=$lt_old_striplib
23223 striplib=$lt_striplib
23225 # Dependencies to place before the objects being linked to create a
23227 predep_objects=$lt_predep_objects_F77
23229 # Dependencies to place after the objects being linked to create a
23231 postdep_objects=$lt_postdep_objects_F77
23233 # Dependencies to place before the objects being linked to create a
23235 predeps=$lt_predeps_F77
23237 # Dependencies to place after the objects being linked to create a
23239 postdeps=$lt_postdeps_F77
23241 # The library search path used internally by the compiler when linking
23242 # a shared library.
23243 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23245 # Method to check whether dependent libraries are shared objects.
23246 deplibs_check_method=$lt_deplibs_check_method
23248 # Command to use when deplibs_check_method == file_magic.
23249 file_magic_cmd=$lt_file_magic_cmd
23251 # Flag that allows shared libraries with undefined symbols to be built.
23252 allow_undefined_flag=$lt_allow_undefined_flag_F77
23254 # Flag that forces no undefined symbols.
23255 no_undefined_flag=$lt_no_undefined_flag_F77
23257 # Commands used to finish a libtool library installation in a directory.
23258 finish_cmds=$lt_finish_cmds
23260 # Same as above, but a single script fragment to be evaled but not shown.
23261 finish_eval=$lt_finish_eval
23263 # Take the output of nm and produce a listing of raw symbols and C names.
23264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23266 # Transform the output of nm in a proper C declaration
23267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23269 # Transform the output of nm in a C name address pair
23270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23272 # This is the shared library runtime path variable.
23273 runpath_var=$runpath_var
23275 # This is the shared library path variable.
23276 shlibpath_var=$shlibpath_var
23278 # Is shlibpath searched before the hard-coded library search path?
23279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23281 # How to hardcode a shared library path into an executable.
23282 hardcode_action=$hardcode_action_F77
23284 # Whether we should hardcode library paths into libraries.
23285 hardcode_into_libs=$hardcode_into_libs
23287 # Flag to hardcode \$libdir into a binary during linking.
23288 # This must work even if \$libdir does not exist.
23289 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23291 # If ld is used when linking, flag to hardcode \$libdir into
23292 # a binary during linking. This must work even if \$libdir does
23294 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23296 # Whether we need a single -rpath flag with a separated argument.
23297 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23299 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23300 # resulting binary.
23301 hardcode_direct=$hardcode_direct_F77
23303 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23304 # resulting binary.
23305 hardcode_minus_L=$hardcode_minus_L_F77
23307 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23308 # the resulting binary.
23309 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23311 # Set to yes if building a shared library automatically hardcodes DIR into the library
23312 # and all subsequent libraries and executables linked against it.
23313 hardcode_automatic=$hardcode_automatic_F77
23315 # Variables whose values should be saved in libtool wrapper scripts and
23316 # restored at relink time.
23317 variables_saved_for_relink="$variables_saved_for_relink"
23319 # Whether libtool must link a program against all its dependency libraries.
23320 link_all_deplibs=$link_all_deplibs_F77
23322 # Compile-time system search path for libraries
23323 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23325 # Run-time system search path for libraries
23326 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23328 # Fix the shell variable \$srcfile for the compiler.
23329 fix_srcfile_path="$fix_srcfile_path_F77"
23331 # Set to yes if exported symbols are required.
23332 always_export_symbols=$always_export_symbols_F77
23334 # The commands to list exported symbols.
23335 export_symbols_cmds=$lt_export_symbols_cmds_F77
23337 # The commands to extract the exported symbol list from a shared archive.
23338 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23340 # Symbols that should not be listed in the preloaded symbols.
23341 exclude_expsyms=$lt_exclude_expsyms_F77
23343 # Symbols that must always be exported.
23344 include_expsyms=$lt_include_expsyms_F77
23346 # ### END LIBTOOL TAG CONFIG: $tagname
23352 # If there is no Makefile yet, we rely on a make rule to execute
23353 # `config.status --recheck' to rerun these tests and create the
23354 # libtool script then.
23355 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23356 if test -f "$ltmain_in"; then
23357 test -f Makefile && make "$ltmain"
23363 ac_cpp='$CPP $CPPFLAGS'
23364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23376 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23378 ac_cpp='$CPP $CPPFLAGS'
23379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23384 # Source file extension for Java test sources.
23387 # Object file extension for compiled Java test sources.
23391 # Code to be used in simple compile tests
23392 lt_simple_compile_test_code="class foo {}\n"
23394 # Code to be used in simple link tests
23395 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23397 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23399 # If no C compiler was specified, use CC.
23402 # If no C compiler flags were specified, use CFLAGS.
23403 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23405 # Allow CC to be a program name with arguments.
23409 # save warnings/boilerplate of simple test code
23410 ac_outfile=conftest.$ac_objext
23411 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23412 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23413 _lt_compiler_boilerplate=`cat conftest.err`
23416 ac_outfile=conftest.$ac_objext
23417 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23418 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23419 _lt_linker_boilerplate=`cat conftest.err`
23423 # Allow CC to be a program name with arguments.
23428 for cc_temp in $compiler""; do
23430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23436 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23439 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23440 archive_cmds_need_lc_GCJ=no
23442 old_archive_cmds_GCJ=$old_archive_cmds
23445 lt_prog_compiler_no_builtin_flag_GCJ=
23447 if test "$GCC" = yes; then
23448 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23451 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23452 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23453 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23454 echo $ECHO_N "(cached) $ECHO_C" >&6
23456 lt_cv_prog_compiler_rtti_exceptions=no
23457 ac_outfile=conftest.$ac_objext
23458 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23459 lt_compiler_flag="-fno-rtti -fno-exceptions"
23460 # Insert the option either (1) after the last *FLAGS variable, or
23461 # (2) before a word containing "conftest.", or (3) at the end.
23462 # Note that $ac_compile itself does not contain backslashes and begins
23463 # with a dollar sign (not a hyphen), so the echo should work correctly.
23464 # The option is referenced via a variable to avoid confusing sed.
23465 lt_compile=`echo "$ac_compile" | $SED \
23466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23468 -e 's:$: $lt_compiler_flag:'`
23469 (eval echo "\"\$as_me:23469: $lt_compile\"" >&5)
23470 (eval "$lt_compile" 2>conftest.err)
23472 cat conftest.err >&5
23473 echo "$as_me:23473: \$? = $ac_status" >&5
23474 if (exit $ac_status) && test -s "$ac_outfile"; then
23475 # The compiler can only warn and ignore the option if not recognized
23476 # So say no if there are warnings other than the usual output.
23477 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23480 lt_cv_prog_compiler_rtti_exceptions=yes
23486 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23487 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23489 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23490 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23497 lt_prog_compiler_wl_GCJ=
23498 lt_prog_compiler_pic_GCJ=
23499 lt_prog_compiler_static_GCJ=
23501 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23502 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23504 if test "$GCC" = yes; then
23505 lt_prog_compiler_wl_GCJ='-Wl,'
23506 lt_prog_compiler_static_GCJ='-static'
23510 # All AIX code is PIC.
23511 if test "$host_cpu" = ia64; then
23512 # AIX 5 now supports IA64 processor
23513 lt_prog_compiler_static_GCJ='-Bstatic'
23518 # FIXME: we need at least 68020 code to build shared libraries, but
23519 # adding the `-m68020' flag to GCC prevents building anything better,
23521 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23524 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23525 # PIC is the default for these OSes.
23528 mingw* | pw32* | os2*)
23529 # This hack is so that the source file can tell whether it is being
23530 # built for inclusion in a dll (and should export symbols for example).
23531 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23534 darwin* | rhapsody*)
23535 # PIC is the default on this platform
23536 # Common symbols not allowed in MH_DYLIB files
23537 lt_prog_compiler_pic_GCJ='-fno-common'
23541 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23542 # Instead, we relocate shared libraries at runtime.
23546 # Just because we use GCC doesn't mean we suddenly get shared libraries
23547 # on systems that don't support them.
23548 lt_prog_compiler_can_build_shared_GCJ=no
23553 if test -d /usr/nec; then
23554 lt_prog_compiler_pic_GCJ=-Kconform_pic
23559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23560 # not for PA HP-UX.
23566 lt_prog_compiler_pic_GCJ='-fPIC'
23572 lt_prog_compiler_pic_GCJ='-fPIC'
23576 # PORTME Check for flag to pass linker flags through the system compiler.
23579 lt_prog_compiler_wl_GCJ='-Wl,'
23580 if test "$host_cpu" = ia64; then
23581 # AIX 5 now supports IA64 processor
23582 lt_prog_compiler_static_GCJ='-Bstatic'
23584 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23588 # PIC is the default on this platform
23589 # Common symbols not allowed in MH_DYLIB files
23590 case $cc_basename in
23592 lt_prog_compiler_pic_GCJ='-qnocommon'
23593 lt_prog_compiler_wl_GCJ='-Wl,'
23598 mingw* | pw32* | os2*)
23599 # This hack is so that the source file can tell whether it is being
23600 # built for inclusion in a dll (and should export symbols for example).
23601 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23604 hpux9* | hpux10* | hpux11*)
23605 lt_prog_compiler_wl_GCJ='-Wl,'
23606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23607 # not for PA HP-UX.
23613 lt_prog_compiler_pic_GCJ='+Z'
23616 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23617 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23620 irix5* | irix6* | nonstopux*)
23621 lt_prog_compiler_wl_GCJ='-Wl,'
23622 # PIC (with -KPIC) is the default.
23623 lt_prog_compiler_static_GCJ='-non_shared'
23627 lt_prog_compiler_pic_GCJ='-KPIC'
23628 lt_prog_compiler_static_GCJ='-Bstatic'
23632 case $cc_basename in
23634 lt_prog_compiler_wl_GCJ='-Wl,'
23635 lt_prog_compiler_pic_GCJ='-KPIC'
23636 lt_prog_compiler_static_GCJ='-static'
23638 pgcc* | pgf77* | pgf90* | pgf95*)
23639 # Portland Group compilers (*not* the Pentium gcc compiler,
23640 # which looks to be a dead project)
23641 lt_prog_compiler_wl_GCJ='-Wl,'
23642 lt_prog_compiler_pic_GCJ='-fpic'
23643 lt_prog_compiler_static_GCJ='-Bstatic'
23646 lt_prog_compiler_wl_GCJ='-Wl,'
23647 # All Alpha code is PIC.
23648 lt_prog_compiler_static_GCJ='-non_shared'
23653 osf3* | osf4* | osf5*)
23654 lt_prog_compiler_wl_GCJ='-Wl,'
23655 # All OSF/1 code is PIC.
23656 lt_prog_compiler_static_GCJ='-non_shared'
23660 lt_prog_compiler_pic_GCJ='-KPIC'
23661 lt_prog_compiler_static_GCJ='-Bstatic'
23662 case $cc_basename in
23663 f77* | f90* | f95*)
23664 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23666 lt_prog_compiler_wl_GCJ='-Wl,';;
23671 lt_prog_compiler_wl_GCJ='-Qoption ld '
23672 lt_prog_compiler_pic_GCJ='-PIC'
23673 lt_prog_compiler_static_GCJ='-Bstatic'
23676 sysv4 | sysv4.2uw2* | sysv4.3*)
23677 lt_prog_compiler_wl_GCJ='-Wl,'
23678 lt_prog_compiler_pic_GCJ='-KPIC'
23679 lt_prog_compiler_static_GCJ='-Bstatic'
23683 if test -d /usr/nec ;then
23684 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23685 lt_prog_compiler_static_GCJ='-Bstatic'
23689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23690 lt_prog_compiler_wl_GCJ='-Wl,'
23691 lt_prog_compiler_pic_GCJ='-KPIC'
23692 lt_prog_compiler_static_GCJ='-Bstatic'
23696 lt_prog_compiler_wl_GCJ='-Wl,'
23697 lt_prog_compiler_can_build_shared_GCJ=no
23701 lt_prog_compiler_pic_GCJ='-pic'
23702 lt_prog_compiler_static_GCJ='-Bstatic'
23706 lt_prog_compiler_can_build_shared_GCJ=no
23711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23712 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23715 # Check to make sure the PIC flag actually works.
23717 if test -n "$lt_prog_compiler_pic_GCJ"; then
23719 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23721 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23722 echo $ECHO_N "(cached) $ECHO_C" >&6
23724 lt_prog_compiler_pic_works_GCJ=no
23725 ac_outfile=conftest.$ac_objext
23726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23727 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23728 # Insert the option either (1) after the last *FLAGS variable, or
23729 # (2) before a word containing "conftest.", or (3) at the end.
23730 # Note that $ac_compile itself does not contain backslashes and begins
23731 # with a dollar sign (not a hyphen), so the echo should work correctly.
23732 # The option is referenced via a variable to avoid confusing sed.
23733 lt_compile=`echo "$ac_compile" | $SED \
23734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23736 -e 's:$: $lt_compiler_flag:'`
23737 (eval echo "\"\$as_me:23737: $lt_compile\"" >&5)
23738 (eval "$lt_compile" 2>conftest.err)
23740 cat conftest.err >&5
23741 echo "$as_me:23741: \$? = $ac_status" >&5
23742 if (exit $ac_status) && test -s "$ac_outfile"; then
23743 # The compiler can only warn and ignore the option if not recognized
23744 # So say no if there are warnings other than the usual output.
23745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23748 lt_prog_compiler_pic_works_GCJ=yes
23754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23755 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23757 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23758 case $lt_prog_compiler_pic_GCJ in
23760 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23763 lt_prog_compiler_pic_GCJ=
23764 lt_prog_compiler_can_build_shared_GCJ=no
23769 # For platforms which do not support PIC, -DPIC is meaningless:
23771 lt_prog_compiler_pic_GCJ=
23774 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23779 # Check to make sure the static flag actually works.
23781 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23784 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23787 lt_prog_compiler_static_works_GCJ=no
23788 save_LDFLAGS="$LDFLAGS"
23789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23790 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23792 # The linker can only warn and ignore the option if not recognized
23793 # So say no if there are warnings
23794 if test -s conftest.err; then
23795 # Append any errors to the config.log.
23796 cat conftest.err 1>&5
23797 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23799 if diff conftest.exp conftest.er2 >/dev/null; then
23800 lt_prog_compiler_static_works_GCJ=yes
23803 lt_prog_compiler_static_works_GCJ=yes
23807 LDFLAGS="$save_LDFLAGS"
23810 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23811 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23813 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23816 lt_prog_compiler_static_GCJ=
23820 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23822 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23825 lt_cv_prog_compiler_c_o_GCJ=no
23826 $rm -r conftest 2>/dev/null
23830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23832 lt_compiler_flag="-o out/conftest2.$ac_objext"
23833 # Insert the option either (1) after the last *FLAGS variable, or
23834 # (2) before a word containing "conftest.", or (3) at the end.
23835 # Note that $ac_compile itself does not contain backslashes and begins
23836 # with a dollar sign (not a hyphen), so the echo should work correctly.
23837 lt_compile=`echo "$ac_compile" | $SED \
23838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23840 -e 's:$: $lt_compiler_flag:'`
23841 (eval echo "\"\$as_me:23841: $lt_compile\"" >&5)
23842 (eval "$lt_compile" 2>out/conftest.err)
23844 cat out/conftest.err >&5
23845 echo "$as_me:23845: \$? = $ac_status" >&5
23846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23848 # The compiler can only warn and ignore the option if not recognized
23849 # So say no if there are warnings
23850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23853 lt_cv_prog_compiler_c_o_GCJ=yes
23858 # SGI C++ compiler will create directory out/ii_files/ for
23859 # template instantiation
23860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23861 $rm out/* && rmdir out
23867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23871 hard_links="nottested"
23872 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23873 # do not overwrite the value of need_locks provided by the user
23874 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23880 ln conftest.a conftest.b 2>&5 || hard_links=no
23881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23882 { echo "$as_me:$LINENO: result: $hard_links" >&5
23883 echo "${ECHO_T}$hard_links" >&6; }
23884 if test "$hard_links" = no; then
23885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23897 allow_undefined_flag_GCJ=
23898 enable_shared_with_static_runtimes_GCJ=no
23900 archive_expsym_cmds_GCJ=
23901 old_archive_From_new_cmds_GCJ=
23902 old_archive_from_expsyms_cmds_GCJ=
23903 export_dynamic_flag_spec_GCJ=
23904 whole_archive_flag_spec_GCJ=
23905 thread_safe_flag_spec_GCJ=
23906 hardcode_libdir_flag_spec_GCJ=
23907 hardcode_libdir_flag_spec_ld_GCJ=
23908 hardcode_libdir_separator_GCJ=
23909 hardcode_direct_GCJ=no
23910 hardcode_minus_L_GCJ=no
23911 hardcode_shlibpath_var_GCJ=unsupported
23912 link_all_deplibs_GCJ=unknown
23913 hardcode_automatic_GCJ=no
23915 module_expsym_cmds_GCJ=
23916 always_export_symbols_GCJ=no
23917 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23918 # include_expsyms should be a list of space-separated symbols to be *always*
23919 # included in the symbol list
23920 include_expsyms_GCJ=
23921 # exclude_expsyms can be an extended regexp of symbols to exclude
23922 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23923 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23924 # as well as any symbol that contains `d'.
23925 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23927 # platforms (ab)use it in PIC code, but their linkers get confused if
23928 # the symbol is explicitly referenced. Since portable code cannot
23929 # rely on this symbol name, it's probably fine to never include it in
23930 # preloaded symbol tables.
23931 extract_expsyms_cmds=
23932 # Just being paranoid about ensuring that cc_basename is set.
23933 for cc_temp in $compiler""; do
23935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23944 cygwin* | mingw* | pw32*)
23945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23946 # When not using gcc, we currently assume that we are using
23947 # Microsoft Visual C++.
23948 if test "$GCC" != yes; then
23953 # we just hope/assume this is gcc and not c89 (= MSVC++)
23962 if test "$with_gnu_ld" = yes; then
23963 # If archive_cmds runs LD, not CC, wlarc should be empty
23966 # Set some defaults for GNU ld with shared library support. These
23967 # are reset later if shared libraries are not supported. Putting them
23968 # here allows them to be overridden if necessary.
23969 runpath_var=LD_RUN_PATH
23970 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23971 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23972 # ancient GNU ld didn't support --whole-archive et. al.
23973 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23974 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23976 whole_archive_flag_spec_GCJ=
23978 supports_anon_versioning=no
23979 case `$LD -v 2>/dev/null` in
23980 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23983 *\ 2.11.*) ;; # other 2.11 versions
23984 *) supports_anon_versioning=yes ;;
23987 # See if GNU ld supports shared libraries.
23989 aix3* | aix4* | aix5*)
23990 # On AIX/PPC, the GNU linker is very broken
23991 if test "$host_cpu" != ia64; then
23995 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23996 *** to be unable to reliably create shared libraries on AIX.
23997 *** Therefore, libtool is disabling shared libraries support. If you
23998 *** really care for shared libraries, you may want to modify your PATH
23999 *** so that a non-GNU linker is found, and then restart.
24006 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)'
24007 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24008 hardcode_minus_L_GCJ=yes
24010 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24011 # that the semantics of dynamic libraries on AmigaOS, at least up
24012 # to version 4, is to share data among multiple programs linked
24013 # with the same dynamic library. Since this doesn't match the
24014 # behavior of shared libraries on other platforms, we can't use
24020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24021 allow_undefined_flag_GCJ=unsupported
24022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24023 # support --undefined. This deserves some investigation. FIXME
24024 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24030 cygwin* | mingw* | pw32*)
24031 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24032 # as there is no search path for DLLs.
24033 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24034 allow_undefined_flag_GCJ=unsupported
24035 always_export_symbols_GCJ=no
24036 enable_shared_with_static_runtimes_GCJ=yes
24037 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24039 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24040 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24041 # If the export-symbols file already is a .def file (1st line
24042 # is EXPORTS), use it as is; otherwise, prepend...
24043 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24044 cp $export_symbols $output_objdir/$soname.def;
24046 echo EXPORTS > $output_objdir/$soname.def;
24047 cat $export_symbols >> $output_objdir/$soname.def;
24049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24056 hardcode_direct_GCJ=no
24057 hardcode_shlibpath_var_GCJ=no
24058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24059 export_dynamic_flag_spec_GCJ='${wl}-E'
24060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24061 # Instead, shared libraries are loaded at an image base (0x10000000 by
24062 # default) and relocated if they conflict, which is a slow very memory
24063 # consuming and fragmenting process. To avoid this, we pick a random,
24064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24065 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24066 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'
24067 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'
24071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24073 case $cc_basename,$host_cpu in
24074 pgcc*) # Portland Group C compiler
24075 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'
24076 tmp_addflag=' $pic_flag'
24078 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24079 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'
24080 tmp_addflag=' $pic_flag -Mnomain' ;;
24081 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24082 tmp_addflag=' -i_dynamic' ;;
24083 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24084 tmp_addflag=' -i_dynamic -nofor_main' ;;
24085 ifc* | ifort*) # Intel Fortran compiler
24086 tmp_addflag=' -nofor_main' ;;
24088 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24090 if test $supports_anon_versioning = yes; then
24091 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24093 $echo "local: *; };" >> $output_objdir/$libname.ver~
24094 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24103 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24106 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24107 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24112 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24117 *** create shared libraries on Solaris systems. Therefore, libtool
24118 *** is disabling shared libraries support. We urge you to upgrade GNU
24119 *** binutils to release 2.9.1 or newer. Another option is to modify
24120 *** your PATH or compiler configuration so that the native linker is
24121 *** used, and then restart.
24124 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24125 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24126 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24133 case `$LD -v 2>&1` in
24134 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24138 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24139 *** reliably create shared libraries on SCO systems. Therefore, libtool
24140 *** is disabling shared libraries support. We urge you to upgrade GNU
24141 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24142 *** your PATH or compiler configuration so that the native linker is
24143 *** used, and then restart.
24148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24149 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24150 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24151 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24160 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24162 hardcode_direct_GCJ=yes
24163 hardcode_shlibpath_var_GCJ=no
24167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24168 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24169 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24176 if test "$ld_shlibs_GCJ" = no; then
24178 hardcode_libdir_flag_spec_GCJ=
24179 export_dynamic_flag_spec_GCJ=
24180 whole_archive_flag_spec_GCJ=
24183 # PORTME fill in a description of your system's linker (not GNU ld)
24186 allow_undefined_flag_GCJ=unsupported
24187 always_export_symbols_GCJ=yes
24188 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'
24189 # Note: this linker hardcodes the directories in LIBPATH if there
24190 # are no directories specified by -L.
24191 hardcode_minus_L_GCJ=yes
24192 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24193 # Neither direct hardcoding nor static linking is supported with a
24195 hardcode_direct_GCJ=unsupported
24200 if test "$host_cpu" = ia64; then
24201 # On IA64, the linker does run time linking by default, so we don't
24202 # have to do anything special.
24203 aix_use_runtimelinking=no
24204 exp_sym_flag='-Bexport'
24207 # If we're using GNU nm, then we don't want the "-C" option.
24208 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24209 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24210 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'
24212 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'
24214 aix_use_runtimelinking=no
24216 # Test if we are trying to use run time linking or normal
24217 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24218 # need to do runtime linking.
24219 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24220 for ld_flag in $LDFLAGS; do
24221 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24222 aix_use_runtimelinking=yes
24229 exp_sym_flag='-bexport'
24230 no_entry_flag='-bnoentry'
24233 # When large executables or shared objects are built, AIX ld can
24234 # have problems creating the table of contents. If linking a library
24235 # or program results in "error TOC overflow" add -mminimal-toc to
24236 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24237 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24239 archive_cmds_GCJ=''
24240 hardcode_direct_GCJ=yes
24241 hardcode_libdir_separator_GCJ=':'
24242 link_all_deplibs_GCJ=yes
24244 if test "$GCC" = yes; then
24245 case $host_os in aix4.[012]|aix4.[012].*)
24246 # We only want to do this on AIX 4.2 and lower, the check
24247 # below for broken collect2 doesn't work under 4.3+
24248 collect2name=`${CC} -print-prog-name=collect2`
24249 if test -f "$collect2name" && \
24250 strings "$collect2name" | grep resolve_lib_name >/dev/null
24252 # We have reworked collect2
24253 hardcode_direct_GCJ=yes
24255 # We have old collect2
24256 hardcode_direct_GCJ=unsupported
24257 # It fails to find uninstalled libraries when the uninstalled
24258 # path is not listed in the libpath. Setting hardcode_minus_L
24259 # to unsupported forces relinking
24260 hardcode_minus_L_GCJ=yes
24261 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24262 hardcode_libdir_separator_GCJ=
24266 shared_flag='-shared'
24267 if test "$aix_use_runtimelinking" = yes; then
24268 shared_flag="$shared_flag "'${wl}-G'
24272 if test "$host_cpu" = ia64; then
24273 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24274 # chokes on -Wl,-G. The following line is correct:
24277 if test "$aix_use_runtimelinking" = yes; then
24278 shared_flag='${wl}-G'
24280 shared_flag='${wl}-bM:SRE'
24285 # It seems that -bexpall does not export symbols beginning with
24286 # underscore (_), so it is better to generate a list of symbols to export.
24287 always_export_symbols_GCJ=yes
24288 if test "$aix_use_runtimelinking" = yes; then
24289 # Warning - without using the other runtime loading flags (-brtl),
24290 # -berok will link without error, but may produce a broken library.
24291 allow_undefined_flag_GCJ='-berok'
24292 # Determine the default libpath from the value encoded in an empty executable.
24293 cat >conftest.$ac_ext <<_ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h. */
24308 rm -f conftest.$ac_objext conftest$ac_exeext
24309 if { (ac_try="$ac_link"
24310 case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315 (eval "$ac_link") 2>conftest.er1
24317 grep -v '^ *+' conftest.er1 >conftest.err
24319 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } &&
24322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24323 { (case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24328 (eval "$ac_try") 2>&5
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); }; } &&
24332 { ac_try='test -s conftest$ac_exeext'
24333 { (case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338 (eval "$ac_try") 2>&5
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); }; }; then
24343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24345 # Check for a 64-bit object if we didn't find anything.
24346 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; }
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24355 rm -f core conftest.err conftest.$ac_objext \
24356 conftest$ac_exeext conftest.$ac_ext
24357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24359 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24360 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"
24362 if test "$host_cpu" = ia64; then
24363 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24364 allow_undefined_flag_GCJ="-z nodefs"
24365 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"
24367 # Determine the default libpath from the value encoded in an empty executable.
24368 cat >conftest.$ac_ext <<_ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h. */
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_link") 2>conftest.er1
24392 grep -v '^ *+' conftest.er1 >conftest.err
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } &&
24397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24398 { (case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_try") 2>&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; } &&
24407 { ac_try='test -s conftest$ac_exeext'
24408 { (case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_try") 2>&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; }; then
24418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24420 # Check for a 64-bit object if we didn't find anything.
24421 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; }
24424 echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24430 rm -f core conftest.err conftest.$ac_objext \
24431 conftest$ac_exeext conftest.$ac_ext
24432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24434 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24435 # Warning - without using the other run time loading flags,
24436 # -berok will link without error, but may produce a broken library.
24437 no_undefined_flag_GCJ=' ${wl}-bernotok'
24438 allow_undefined_flag_GCJ=' ${wl}-berok'
24439 # Exported symbols can be pulled into shared objects from archives
24440 whole_archive_flag_spec_GCJ='$convenience'
24441 archive_cmds_need_lc_GCJ=yes
24442 # This is similar to how AIX traditionally builds its shared libraries.
24443 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'
24449 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)'
24450 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24451 hardcode_minus_L_GCJ=yes
24452 # see comment about different semantics on the GNU ld section
24457 export_dynamic_flag_spec_GCJ=-rdynamic
24460 cygwin* | mingw* | pw32*)
24461 # When not using gcc, we currently assume that we are using
24462 # Microsoft Visual C++.
24463 # hardcode_libdir_flag_spec is actually meaningless, as there is
24464 # no search path for DLLs.
24465 hardcode_libdir_flag_spec_GCJ=' '
24466 allow_undefined_flag_GCJ=unsupported
24467 # Tell ltmain to make .lib files, not .a files.
24469 # Tell ltmain to make .dll files, not .so files.
24471 # FIXME: Setting linknames here is a bad hack.
24472 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24473 # The linker will automatically build a .lib file if we build a DLL.
24474 old_archive_From_new_cmds_GCJ='true'
24475 # FIXME: Should let the user specify the lib program.
24476 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24477 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24478 enable_shared_with_static_runtimes_GCJ=yes
24481 darwin* | rhapsody*)
24483 rhapsody* | darwin1.[012])
24484 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24487 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24488 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24490 case ${MACOSX_DEPLOYMENT_TARGET} in
24492 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24495 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24501 archive_cmds_need_lc_GCJ=no
24502 hardcode_direct_GCJ=no
24503 hardcode_automatic_GCJ=yes
24504 hardcode_shlibpath_var_GCJ=unsupported
24505 whole_archive_flag_spec_GCJ=''
24506 link_all_deplibs_GCJ=yes
24507 if test "$GCC" = yes ; then
24508 output_verbose_link_cmd='echo'
24509 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24510 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24511 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24512 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}'
24513 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}'
24515 case $cc_basename in
24517 output_verbose_link_cmd='echo'
24518 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24519 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24520 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24521 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}'
24522 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}'
24532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24533 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24534 hardcode_shlibpath_var_GCJ=no
24541 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24542 # support. Future versions do this automatically, but an explicit c++rt0.o
24543 # does not break anything, and helps significantly (at the cost of a little
24546 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24547 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24548 hardcode_direct_GCJ=yes
24549 hardcode_shlibpath_var_GCJ=no
24552 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24554 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24555 hardcode_direct_GCJ=yes
24556 hardcode_minus_L_GCJ=yes
24557 hardcode_shlibpath_var_GCJ=no
24560 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24561 freebsd* | kfreebsd*-gnu | dragonfly*)
24562 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24563 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24564 hardcode_direct_GCJ=yes
24565 hardcode_shlibpath_var_GCJ=no
24569 if test "$GCC" = yes; then
24570 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'
24572 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'
24574 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24575 hardcode_libdir_separator_GCJ=:
24576 hardcode_direct_GCJ=yes
24578 # hardcode_minus_L: Not really in the search PATH,
24579 # but as the default location of the library.
24580 hardcode_minus_L_GCJ=yes
24581 export_dynamic_flag_spec_GCJ='${wl}-E'
24585 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24586 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24588 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24590 if test "$with_gnu_ld" = no; then
24591 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24592 hardcode_libdir_separator_GCJ=:
24594 hardcode_direct_GCJ=yes
24595 export_dynamic_flag_spec_GCJ='${wl}-E'
24597 # hardcode_minus_L: Not really in the search PATH,
24598 # but as the default location of the library.
24599 hardcode_minus_L_GCJ=yes
24604 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24607 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24610 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24613 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24619 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24622 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24625 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24629 if test "$with_gnu_ld" = no; then
24630 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24631 hardcode_libdir_separator_GCJ=:
24635 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24636 hardcode_direct_GCJ=no
24637 hardcode_shlibpath_var_GCJ=no
24640 hardcode_direct_GCJ=yes
24641 export_dynamic_flag_spec_GCJ='${wl}-E'
24643 # hardcode_minus_L: Not really in the search PATH,
24644 # but as the default location of the library.
24645 hardcode_minus_L_GCJ=yes
24651 irix5* | irix6* | nonstopux*)
24652 if test "$GCC" = yes; then
24653 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'
24655 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'
24656 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24658 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24659 hardcode_libdir_separator_GCJ=:
24660 link_all_deplibs_GCJ=yes
24664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24665 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24667 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24669 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24670 hardcode_direct_GCJ=yes
24671 hardcode_shlibpath_var_GCJ=no
24675 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24676 hardcode_direct_GCJ=yes
24677 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24678 hardcode_libdir_separator_GCJ=:
24679 hardcode_shlibpath_var_GCJ=no
24683 hardcode_direct_GCJ=yes
24684 hardcode_shlibpath_var_GCJ=no
24685 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24686 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24687 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24689 export_dynamic_flag_spec_GCJ='${wl}-E'
24692 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24693 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24694 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24697 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24705 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24706 hardcode_minus_L_GCJ=yes
24707 allow_undefined_flag_GCJ=unsupported
24708 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'
24709 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24713 if test "$GCC" = yes; then
24714 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24715 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'
24717 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24718 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'
24720 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24721 hardcode_libdir_separator_GCJ=:
24724 osf4* | osf5*) # as osf3* with the addition of -msym flag
24725 if test "$GCC" = yes; then
24726 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24727 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'
24728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24730 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24731 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'
24732 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~
24733 $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'
24735 # Both c and cxx compiler support -rpath directly
24736 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24738 hardcode_libdir_separator_GCJ=:
24742 no_undefined_flag_GCJ=' -z text'
24743 if test "$GCC" = yes; then
24745 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24746 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24747 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24750 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24751 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24752 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24754 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24755 hardcode_shlibpath_var_GCJ=no
24757 solaris2.[0-5] | solaris2.[0-5].*) ;;
24759 # The compiler driver will combine linker options so we
24760 # cannot just pass the convience library names through
24761 # without $wl, iff we do not link with $LD.
24762 # Luckily, gcc supports the same syntax we need for Sun Studio.
24763 # Supported since Solaris 2.6 (maybe 2.5.1?)
24766 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24768 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' ;;
24771 link_all_deplibs_GCJ=yes
24775 if test "x$host_vendor" = xsequent; then
24776 # Use $CC to link under sequent, because it throws in some extra .o
24777 # files that make .init and .fini sections work.
24778 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24780 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24782 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24783 hardcode_direct_GCJ=yes
24784 hardcode_minus_L_GCJ=yes
24785 hardcode_shlibpath_var_GCJ=no
24789 case $host_vendor in
24791 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24792 hardcode_direct_GCJ=yes # is this really true???
24795 ## LD is ld it makes a PLAMLIB
24796 ## CC just makes a GrossModule.
24797 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24798 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24799 hardcode_direct_GCJ=no
24802 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24803 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24806 runpath_var='LD_RUN_PATH'
24807 hardcode_shlibpath_var_GCJ=no
24811 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24812 hardcode_shlibpath_var_GCJ=no
24813 export_dynamic_flag_spec_GCJ='-Bexport'
24817 if test -d /usr/nec; then
24818 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24819 hardcode_shlibpath_var_GCJ=no
24820 runpath_var=LD_RUN_PATH
24821 hardcode_runpath_var=yes
24826 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24827 no_undefined_flag_GCJ='${wl}-z,text'
24828 archive_cmds_need_lc_GCJ=no
24829 hardcode_shlibpath_var_GCJ=no
24830 runpath_var='LD_RUN_PATH'
24832 if test "$GCC" = yes; then
24833 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24834 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24836 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24837 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24841 sysv5* | sco3.2v5* | sco5v6*)
24842 # Note: We can NOT use -z defs as we might desire, because we do not
24843 # link with -lc, and that would cause any symbols used from libc to
24844 # always be unresolved, which means just about no library would
24845 # ever link correctly. If we're not using GNU ld we use -z text
24846 # though, which does catch some bad symbols but isn't as heavy-handed
24848 no_undefined_flag_GCJ='${wl}-z,text'
24849 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24850 archive_cmds_need_lc_GCJ=no
24851 hardcode_shlibpath_var_GCJ=no
24852 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24853 hardcode_libdir_separator_GCJ=':'
24854 link_all_deplibs_GCJ=yes
24855 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24856 runpath_var='LD_RUN_PATH'
24858 if test "$GCC" = yes; then
24859 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24860 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24862 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24863 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24868 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24870 hardcode_shlibpath_var_GCJ=no
24879 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24880 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24881 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24884 # Do we need to explicitly link libc?
24886 case "x$archive_cmds_need_lc_GCJ" in
24888 # Assume -lc should be added
24889 archive_cmds_need_lc_GCJ=yes
24891 if test "$enable_shared" = yes && test "$GCC" = yes; then
24892 case $archive_cmds_GCJ in
24894 # FIXME: we may have to deal with multi-command sequences.
24897 # Test whether the compiler implicitly links with -lc since on some
24898 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24899 # to ld, don't add -lc before -lgcc.
24900 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24901 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24906 (eval $ac_compile) 2>&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } 2>conftest.err; then
24912 libobjs=conftest.$ac_objext
24914 wl=$lt_prog_compiler_wl_GCJ
24915 pic_flag=$lt_prog_compiler_pic_GCJ
24921 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24922 allow_undefined_flag_GCJ=
24923 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24924 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }
24929 archive_cmds_need_lc_GCJ=no
24931 archive_cmds_need_lc_GCJ=yes
24933 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24935 cat conftest.err 1>&5
24938 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24939 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24946 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24947 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24948 library_names_spec=
24949 libname_spec='lib$name'
24953 postuninstall_cmds=
24957 shlibpath_overrides_runpath=unknown
24959 dynamic_linker="$host_os ld.so"
24960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24961 if test "$GCC" = yes; then
24962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24963 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24964 # if the path contains ";" then we assume it to be the separator
24965 # otherwise default to the standard path separator (i.e. ":") - it is
24966 # assumed that no part of a normal pathname contains ";" but that should
24967 # okay in the real world where ";" in dirpaths is itself problematic.
24968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24975 need_lib_prefix=unknown
24976 hardcode_into_libs=no
24978 # when you set need_version to no, make sure it does not cause -set_version
24979 # flags to be left without arguments
24980 need_version=unknown
24985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24986 shlibpath_var=LIBPATH
24988 # AIX 3 has no versioning support, so we append a major version to the name.
24989 soname_spec='${libname}${release}${shared_ext}$major'
24996 hardcode_into_libs=yes
24997 if test "$host_cpu" = ia64; then
24998 # AIX 5 supports IA64
24999 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25000 shlibpath_var=LD_LIBRARY_PATH
25002 # With GCC up to 2.95.x, collect2 would create an import file
25003 # for dependence libraries. The import file would start with
25004 # the line `#! .'. This would cause the generated library to
25005 # depend on `.', always an invalid library. This was fixed in
25006 # development snapshots of GCC prior to 3.0.
25008 aix4 | aix4.[01] | aix4.[01].*)
25009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25011 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25014 can_build_shared=no
25018 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25019 # soname into executable. Probably we can add versioning support to
25020 # collect2, so additional links can be useful in future.
25021 if test "$aix_use_runtimelinking" = yes; then
25022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25023 # instead of lib<name>.a to let people know that these are not
25024 # typical AIX shared libraries.
25025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25027 # We preserve .a as extension for shared libraries through AIX4.2
25028 # and later when we are not doing run time linking.
25029 library_names_spec='${libname}${release}.a $libname.a'
25030 soname_spec='${libname}${release}${shared_ext}$major'
25032 shlibpath_var=LIBPATH
25037 library_names_spec='$libname.ixlibrary $libname.a'
25038 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25039 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'
25043 library_names_spec='${libname}${shared_ext}'
25044 dynamic_linker="$host_os ld.so"
25045 shlibpath_var=LIBRARY_PATH
25051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25052 soname_spec='${libname}${release}${shared_ext}$major'
25053 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25054 shlibpath_var=LD_LIBRARY_PATH
25055 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25056 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25057 # the default ld.so.conf also contains /usr/contrib/lib and
25058 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25059 # libtool to hard-code these into programs
25062 cygwin* | mingw* | pw32*)
25063 version_type=windows
25068 case $GCC,$host_os in
25069 yes,cygwin* | yes,mingw* | yes,pw32*)
25070 library_names_spec='$libname.dll.a'
25071 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25072 postinstall_cmds='base_file=`basename \${file}`~
25073 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25074 dldir=$destdir/`dirname \$dlpath`~
25075 test -d \$dldir || mkdir -p \$dldir~
25076 $install_prog $dir/$dlname \$dldir/$dlname~
25077 chmod a+x \$dldir/$dlname'
25078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25079 dlpath=$dir/\$dldll~
25081 shlibpath_overrides_runpath=yes
25085 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25086 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25087 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25090 # MinGW DLLs use traditional 'lib' prefix
25091 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25092 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25093 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25094 # It is most probably a Windows format PATH printed by
25095 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25096 # path with ; separators, and with drive letters. We can handle the
25097 # drive letters (cygwin fileutils understands them), so leave them,
25098 # especially as we might pass files found there to a mingw objdump,
25099 # which wouldn't understand a cygwinified path. Ahh.
25100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25106 # pw32 DLLs use 'pw' prefix rather than 'lib'
25107 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25113 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25116 dynamic_linker='Win32 ld.exe'
25117 # FIXME: first we should search . and the directory the executable is in
25121 darwin* | rhapsody*)
25122 dynamic_linker="$host_os dyld"
25123 version_type=darwin
25126 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25127 soname_spec='${libname}${release}${major}$shared_ext'
25128 shlibpath_overrides_runpath=yes
25129 shlibpath_var=DYLD_LIBRARY_PATH
25130 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25131 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25132 if test "$GCC" = yes; then
25133 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"`
25135 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25137 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25145 soname_spec='${libname}${release}${shared_ext}$major'
25146 shlibpath_var=LD_LIBRARY_PATH
25157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25158 soname_spec='${libname}${release}${shared_ext}$major'
25159 shlibpath_var=LD_LIBRARY_PATH
25160 shlibpath_overrides_runpath=no
25161 hardcode_into_libs=yes
25162 dynamic_linker='GNU ld.so'
25165 freebsd* | dragonfly*)
25166 # DragonFly does not have aout. When/if they implement a new
25167 # versioning mechanism, adjust this.
25168 if test -x /usr/bin/objformat; then
25169 objformat=`/usr/bin/objformat`
25172 freebsd[123]*) objformat=aout ;;
25173 *) objformat=elf ;;
25176 version_type=freebsd-$objformat
25177 case $version_type in
25179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25188 shlibpath_var=LD_LIBRARY_PATH
25191 shlibpath_overrides_runpath=yes
25193 freebsd3.[01]* | freebsdelf3.[01]*)
25194 shlibpath_overrides_runpath=yes
25195 hardcode_into_libs=yes
25197 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25198 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25199 shlibpath_overrides_runpath=no
25200 hardcode_into_libs=yes
25202 freebsd*) # from 4.6 on
25203 shlibpath_overrides_runpath=yes
25204 hardcode_into_libs=yes
25213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25214 soname_spec='${libname}${release}${shared_ext}$major'
25215 shlibpath_var=LD_LIBRARY_PATH
25216 hardcode_into_libs=yes
25219 hpux9* | hpux10* | hpux11*)
25220 # Give a soname corresponding to the major version so that dld.sl refuses to
25221 # link against other versions.
25228 hardcode_into_libs=yes
25229 dynamic_linker="$host_os dld.so"
25230 shlibpath_var=LD_LIBRARY_PATH
25231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25233 soname_spec='${libname}${release}${shared_ext}$major'
25234 if test "X$HPUX_IA64_MODE" = X32; then
25235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25243 hardcode_into_libs=yes
25244 dynamic_linker="$host_os dld.sl"
25245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25248 soname_spec='${libname}${release}${shared_ext}$major'
25249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25254 dynamic_linker="$host_os dld.sl"
25255 shlibpath_var=SHLIB_PATH
25256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25258 soname_spec='${libname}${release}${shared_ext}$major'
25261 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25262 postinstall_cmds='chmod 555 $lib'
25269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25270 soname_spec='${libname}${release}${shared_ext}$major'
25271 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25272 shlibpath_var=LD_LIBRARY_PATH
25273 shlibpath_overrides_runpath=no
25274 hardcode_into_libs=yes
25277 irix5* | irix6* | nonstopux*)
25279 nonstopux*) version_type=nonstopux ;;
25281 if test "$lt_cv_prog_gnu_ld" = yes; then
25289 soname_spec='${libname}${release}${shared_ext}$major'
25290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25292 irix5* | nonstopux*)
25293 libsuff= shlibsuff=
25296 case $LD in # libtool.m4 will add one of these switches to LD
25297 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25298 libsuff= shlibsuff= libmagic=32-bit;;
25299 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25300 libsuff=32 shlibsuff=N32 libmagic=N32;;
25301 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25302 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25303 *) libsuff= shlibsuff= libmagic=never-match;;
25307 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25308 shlibpath_overrides_runpath=no
25309 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25310 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25311 hardcode_into_libs=yes
25314 # No shared lib support for Linux oldld, aout, or coff.
25315 linux*oldld* | linux*aout* | linux*coff*)
25319 # This must be Linux ELF.
25324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25325 soname_spec='${libname}${release}${shared_ext}$major'
25326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25327 shlibpath_var=LD_LIBRARY_PATH
25328 shlibpath_overrides_runpath=no
25329 # This implies no fast_install, which is unacceptable.
25330 # Some rework will be needed to allow for fast_install
25331 # before this can be enabled.
25332 hardcode_into_libs=yes
25334 # Append ld.so.conf contents to the search path
25335 if test -f /etc/ld.so.conf; then
25336 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' ' '`
25337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25340 # We used to test for /lib/ld.so.1 and disable shared libraries on
25341 # powerpc, because MkLinux only supported shared libraries with the
25342 # GNU dynamic linker. Since this was broken with cross compilers,
25343 # most powerpc-linux boxes support dynamic linking these days and
25344 # people can always --disable-shared, the test was removed, and we
25345 # assume the GNU/Linux dynamic linker is in use.
25346 dynamic_linker='GNU/Linux ld.so'
25353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25354 soname_spec='${libname}${release}${shared_ext}$major'
25355 shlibpath_var=LD_LIBRARY_PATH
25356 shlibpath_overrides_runpath=no
25357 hardcode_into_libs=yes
25358 dynamic_linker='GNU ld.so'
25365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25368 dynamic_linker='NetBSD (a.out) ld.so'
25370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25371 soname_spec='${libname}${release}${shared_ext}$major'
25372 dynamic_linker='NetBSD ld.elf_so'
25374 shlibpath_var=LD_LIBRARY_PATH
25375 shlibpath_overrides_runpath=yes
25376 hardcode_into_libs=yes
25381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25382 shlibpath_var=LD_LIBRARY_PATH
25383 shlibpath_overrides_runpath=yes
25390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25391 soname_spec='${libname}${release}${shared_ext}$major'
25392 shlibpath_var=LD_LIBRARY_PATH
25393 shlibpath_overrides_runpath=yes
25398 sys_lib_dlsearch_path_spec="/usr/lib"
25400 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25402 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25403 *) need_version=no ;;
25405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25407 shlibpath_var=LD_LIBRARY_PATH
25408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25410 openbsd2.[89] | openbsd2.[89].*)
25411 shlibpath_overrides_runpath=no
25414 shlibpath_overrides_runpath=yes
25418 shlibpath_overrides_runpath=yes
25423 libname_spec='$name'
25426 library_names_spec='$libname${shared_ext} $libname.a'
25427 dynamic_linker='OS/2 ld.exe'
25428 shlibpath_var=LIBPATH
25431 osf3* | osf4* | osf5*)
25435 soname_spec='${libname}${release}${shared_ext}$major'
25436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25437 shlibpath_var=LD_LIBRARY_PATH
25438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25439 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25447 soname_spec='${libname}${release}${shared_ext}$major'
25448 shlibpath_var=LD_LIBRARY_PATH
25449 shlibpath_overrides_runpath=yes
25450 hardcode_into_libs=yes
25451 # ldd complains unless libraries are executable
25452 postinstall_cmds='chmod +x $lib'
25457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25458 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25459 shlibpath_var=LD_LIBRARY_PATH
25460 shlibpath_overrides_runpath=yes
25461 if test "$with_gnu_ld" = yes; then
25469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25470 soname_spec='${libname}${release}${shared_ext}$major'
25471 shlibpath_var=LD_LIBRARY_PATH
25472 case $host_vendor in
25474 shlibpath_overrides_runpath=no
25476 export_dynamic_flag_spec='${wl}-Blargedynsym'
25477 runpath_var=LD_RUN_PATH
25485 shlibpath_overrides_runpath=no
25486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25492 if test -d /usr/nec ;then
25494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25495 soname_spec='$libname${shared_ext}.$major'
25496 shlibpath_var=LD_LIBRARY_PATH
25500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25501 version_type=freebsd-elf
25504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25505 soname_spec='${libname}${release}${shared_ext}$major'
25506 shlibpath_var=LD_LIBRARY_PATH
25507 hardcode_into_libs=yes
25508 if test "$with_gnu_ld" = yes; then
25509 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25510 shlibpath_overrides_runpath=no
25512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25513 shlibpath_overrides_runpath=yes
25516 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25520 sys_lib_dlsearch_path_spec='/usr/lib'
25525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25526 soname_spec='${libname}${release}${shared_ext}$major'
25527 shlibpath_var=LD_LIBRARY_PATH
25534 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25535 echo "${ECHO_T}$dynamic_linker" >&6; }
25536 test "$dynamic_linker" = no && can_build_shared=no
25538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25539 if test "$GCC" = yes; then
25540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25543 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25544 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25545 hardcode_action_GCJ=
25546 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25547 test -n "$runpath_var_GCJ" || \
25548 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25550 # We can hardcode non-existant directories.
25551 if test "$hardcode_direct_GCJ" != no &&
25552 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25553 # have to relink, otherwise we might link with an installed library
25554 # when we should be linking with a yet-to-be-installed one
25555 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25556 test "$hardcode_minus_L_GCJ" != no; then
25557 # Linking always hardcodes the temporary library directory.
25558 hardcode_action_GCJ=relink
25560 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25561 hardcode_action_GCJ=immediate
25564 # We cannot hardcode anything, or else we can only hardcode existing
25566 hardcode_action_GCJ=unsupported
25568 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25569 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25571 if test "$hardcode_action_GCJ" = relink; then
25572 # Fast installation is not supported
25573 enable_fast_install=no
25574 elif test "$shlibpath_overrides_runpath" = yes ||
25575 test "$enable_shared" = no; then
25576 # Fast installation is not necessary
25577 enable_fast_install=needless
25581 # The else clause should only fire when bootstrapping the
25582 # libtool distribution, otherwise you forgot to ship ltmain.sh
25583 # with your package, and you will get complaints that there are
25584 # no rules to generate ltmain.sh.
25585 if test -f "$ltmain"; then
25586 # See if we are running on zsh, and set the options which allow our commands through
25587 # without removal of \ escapes.
25588 if test -n "${ZSH_VERSION+set}" ; then
25589 setopt NO_GLOB_SUBST
25591 # Now quote all the things that may contain metacharacters while being
25592 # careful not to overquote the AC_SUBSTed values. We take copies of the
25593 # variables and quote the copies for generation of the libtool script.
25594 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25596 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25597 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25598 deplibs_check_method reload_flag reload_cmds need_locks \
25599 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25600 lt_cv_sys_global_symbol_to_c_name_address \
25601 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25602 old_postinstall_cmds old_postuninstall_cmds \
25606 lt_prog_compiler_wl_GCJ \
25607 lt_prog_compiler_pic_GCJ \
25608 lt_prog_compiler_static_GCJ \
25609 lt_prog_compiler_no_builtin_flag_GCJ \
25610 export_dynamic_flag_spec_GCJ \
25611 thread_safe_flag_spec_GCJ \
25612 whole_archive_flag_spec_GCJ \
25613 enable_shared_with_static_runtimes_GCJ \
25614 old_archive_cmds_GCJ \
25615 old_archive_from_new_cmds_GCJ \
25616 predep_objects_GCJ \
25617 postdep_objects_GCJ \
25620 compiler_lib_search_path_GCJ \
25622 archive_expsym_cmds_GCJ \
25623 postinstall_cmds_GCJ \
25624 postuninstall_cmds_GCJ \
25625 old_archive_from_expsyms_cmds_GCJ \
25626 allow_undefined_flag_GCJ \
25627 no_undefined_flag_GCJ \
25628 export_symbols_cmds_GCJ \
25629 hardcode_libdir_flag_spec_GCJ \
25630 hardcode_libdir_flag_spec_ld_GCJ \
25631 hardcode_libdir_separator_GCJ \
25632 hardcode_automatic_GCJ \
25634 module_expsym_cmds_GCJ \
25635 lt_cv_prog_compiler_c_o_GCJ \
25636 exclude_expsyms_GCJ \
25637 include_expsyms_GCJ; do
25640 old_archive_cmds_GCJ | \
25641 old_archive_from_new_cmds_GCJ | \
25642 archive_cmds_GCJ | \
25643 archive_expsym_cmds_GCJ | \
25644 module_cmds_GCJ | \
25645 module_expsym_cmds_GCJ | \
25646 old_archive_from_expsyms_cmds_GCJ | \
25647 export_symbols_cmds_GCJ | \
25648 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25649 postinstall_cmds | postuninstall_cmds | \
25650 old_postinstall_cmds | old_postuninstall_cmds | \
25651 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25652 # Double-quote double-evaled strings.
25653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25662 *'\$0 --fallback-echo"')
25663 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25669 cat <<__EOF__ >> "$cfgfile"
25670 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25674 # Shell to use when invoking shell scripts.
25677 # Whether or not to build shared libraries.
25678 build_libtool_libs=$enable_shared
25680 # Whether or not to build static libraries.
25681 build_old_libs=$enable_static
25683 # Whether or not to add -lc for building shared libraries.
25684 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25686 # Whether or not to disallow shared libs when runtime libs are static
25687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25689 # Whether or not to optimize for fast installation.
25690 fast_install=$enable_fast_install
25693 host_alias=$host_alias
25697 # The build system.
25698 build_alias=$build_alias
25702 # An echo program that does not interpret backslashes.
25707 AR_FLAGS=$lt_AR_FLAGS
25712 # LTCC compiler flags.
25713 LTCFLAGS=$lt_LTCFLAGS
25715 # A language-specific compiler.
25716 CC=$lt_compiler_GCJ
25718 # Is the compiler the GNU C compiler?
25724 # The linker used to build libraries.
25727 # Whether we need hard or soft links.
25730 # A BSD-compatible nm program.
25733 # A symbol stripping program
25736 # Used to examine libraries when file_magic_cmd begins "file"
25737 MAGIC_CMD=$MAGIC_CMD
25739 # Used on cygwin: DLL creation program.
25742 # Used on cygwin: object dumper.
25745 # Used on cygwin: assembler.
25748 # The name of the directory that contains temporary libtool files.
25751 # How to create reloadable object files.
25752 reload_flag=$lt_reload_flag
25753 reload_cmds=$lt_reload_cmds
25755 # How to pass a linker flag through the compiler.
25756 wl=$lt_lt_prog_compiler_wl_GCJ
25758 # Object file suffix (normally "o").
25759 objext="$ac_objext"
25761 # Old archive suffix (normally "a").
25764 # Shared library suffix (normally ".so").
25765 shrext_cmds='$shrext_cmds'
25767 # Executable file suffix (normally "").
25770 # Additional compiler flags for building library objects.
25771 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25774 # What is the maximum length of a command?
25775 max_cmd_len=$lt_cv_sys_max_cmd_len
25777 # Does compiler simultaneously support -c and -o options?
25778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25780 # Must we lock files when doing compilation?
25781 need_locks=$lt_need_locks
25783 # Do we need the lib prefix for modules?
25784 need_lib_prefix=$need_lib_prefix
25786 # Do we need a version for libraries?
25787 need_version=$need_version
25789 # Whether dlopen is supported.
25790 dlopen_support=$enable_dlopen
25792 # Whether dlopen of programs is supported.
25793 dlopen_self=$enable_dlopen_self
25795 # Whether dlopen of statically linked programs is supported.
25796 dlopen_self_static=$enable_dlopen_self_static
25798 # Compiler flag to prevent dynamic linking.
25799 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25801 # Compiler flag to turn off builtin functions.
25802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25804 # Compiler flag to allow reflexive dlopens.
25805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25807 # Compiler flag to generate shared objects directly from archives.
25808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25810 # Compiler flag to generate thread-safe objects.
25811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25813 # Library versioning type.
25814 version_type=$version_type
25816 # Format of library name prefix.
25817 libname_spec=$lt_libname_spec
25819 # List of archive names. First name is the real one, the rest are links.
25820 # The last name is the one that the linker finds with -lNAME.
25821 library_names_spec=$lt_library_names_spec
25823 # The coded name of the library, if different from the real name.
25824 soname_spec=$lt_soname_spec
25826 # Commands used to build and install an old-style archive.
25828 old_archive_cmds=$lt_old_archive_cmds_GCJ
25829 old_postinstall_cmds=$lt_old_postinstall_cmds
25830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25832 # Create an old-style archive from a shared archive.
25833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25835 # Create a temporary old-style archive to link instead of a shared archive.
25836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25838 # Commands used to build and install a shared archive.
25839 archive_cmds=$lt_archive_cmds_GCJ
25840 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25841 postinstall_cmds=$lt_postinstall_cmds
25842 postuninstall_cmds=$lt_postuninstall_cmds
25844 # Commands used to build a loadable module (assumed same as above if empty)
25845 module_cmds=$lt_module_cmds_GCJ
25846 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25848 # Commands to strip libraries.
25849 old_striplib=$lt_old_striplib
25850 striplib=$lt_striplib
25852 # Dependencies to place before the objects being linked to create a
25854 predep_objects=$lt_predep_objects_GCJ
25856 # Dependencies to place after the objects being linked to create a
25858 postdep_objects=$lt_postdep_objects_GCJ
25860 # Dependencies to place before the objects being linked to create a
25862 predeps=$lt_predeps_GCJ
25864 # Dependencies to place after the objects being linked to create a
25866 postdeps=$lt_postdeps_GCJ
25868 # The library search path used internally by the compiler when linking
25869 # a shared library.
25870 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25872 # Method to check whether dependent libraries are shared objects.
25873 deplibs_check_method=$lt_deplibs_check_method
25875 # Command to use when deplibs_check_method == file_magic.
25876 file_magic_cmd=$lt_file_magic_cmd
25878 # Flag that allows shared libraries with undefined symbols to be built.
25879 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25881 # Flag that forces no undefined symbols.
25882 no_undefined_flag=$lt_no_undefined_flag_GCJ
25884 # Commands used to finish a libtool library installation in a directory.
25885 finish_cmds=$lt_finish_cmds
25887 # Same as above, but a single script fragment to be evaled but not shown.
25888 finish_eval=$lt_finish_eval
25890 # Take the output of nm and produce a listing of raw symbols and C names.
25891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25893 # Transform the output of nm in a proper C declaration
25894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25896 # Transform the output of nm in a C name address pair
25897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25899 # This is the shared library runtime path variable.
25900 runpath_var=$runpath_var
25902 # This is the shared library path variable.
25903 shlibpath_var=$shlibpath_var
25905 # Is shlibpath searched before the hard-coded library search path?
25906 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25908 # How to hardcode a shared library path into an executable.
25909 hardcode_action=$hardcode_action_GCJ
25911 # Whether we should hardcode library paths into libraries.
25912 hardcode_into_libs=$hardcode_into_libs
25914 # Flag to hardcode \$libdir into a binary during linking.
25915 # This must work even if \$libdir does not exist.
25916 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25918 # If ld is used when linking, flag to hardcode \$libdir into
25919 # a binary during linking. This must work even if \$libdir does
25921 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25923 # Whether we need a single -rpath flag with a separated argument.
25924 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25926 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25927 # resulting binary.
25928 hardcode_direct=$hardcode_direct_GCJ
25930 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25931 # resulting binary.
25932 hardcode_minus_L=$hardcode_minus_L_GCJ
25934 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25935 # the resulting binary.
25936 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25938 # Set to yes if building a shared library automatically hardcodes DIR into the library
25939 # and all subsequent libraries and executables linked against it.
25940 hardcode_automatic=$hardcode_automatic_GCJ
25942 # Variables whose values should be saved in libtool wrapper scripts and
25943 # restored at relink time.
25944 variables_saved_for_relink="$variables_saved_for_relink"
25946 # Whether libtool must link a program against all its dependency libraries.
25947 link_all_deplibs=$link_all_deplibs_GCJ
25949 # Compile-time system search path for libraries
25950 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25952 # Run-time system search path for libraries
25953 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25955 # Fix the shell variable \$srcfile for the compiler.
25956 fix_srcfile_path="$fix_srcfile_path_GCJ"
25958 # Set to yes if exported symbols are required.
25959 always_export_symbols=$always_export_symbols_GCJ
25961 # The commands to list exported symbols.
25962 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25964 # The commands to extract the exported symbol list from a shared archive.
25965 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25967 # Symbols that should not be listed in the preloaded symbols.
25968 exclude_expsyms=$lt_exclude_expsyms_GCJ
25970 # Symbols that must always be exported.
25971 include_expsyms=$lt_include_expsyms_GCJ
25973 # ### END LIBTOOL TAG CONFIG: $tagname
25979 # If there is no Makefile yet, we rely on a make rule to execute
25980 # `config.status --recheck' to rerun these tests and create the
25981 # libtool script then.
25982 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25983 if test -f "$ltmain_in"; then
25984 test -f Makefile && make "$ltmain"
25990 ac_cpp='$CPP $CPPFLAGS'
25991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26004 ac_cpp='$CPP $CPPFLAGS'
26005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26010 # Source file extension for RC test sources.
26013 # Object file extension for compiled RC test sources.
26017 # Code to be used in simple compile tests
26018 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26020 # Code to be used in simple link tests
26021 lt_simple_link_test_code="$lt_simple_compile_test_code"
26023 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26025 # If no C compiler was specified, use CC.
26028 # If no C compiler flags were specified, use CFLAGS.
26029 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26031 # Allow CC to be a program name with arguments.
26035 # save warnings/boilerplate of simple test code
26036 ac_outfile=conftest.$ac_objext
26037 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26038 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26039 _lt_compiler_boilerplate=`cat conftest.err`
26042 ac_outfile=conftest.$ac_objext
26043 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26044 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26045 _lt_linker_boilerplate=`cat conftest.err`
26049 # Allow CC to be a program name with arguments.
26054 for cc_temp in $compiler""; do
26056 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26057 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26062 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26064 lt_cv_prog_compiler_c_o_RC=yes
26066 # The else clause should only fire when bootstrapping the
26067 # libtool distribution, otherwise you forgot to ship ltmain.sh
26068 # with your package, and you will get complaints that there are
26069 # no rules to generate ltmain.sh.
26070 if test -f "$ltmain"; then
26071 # See if we are running on zsh, and set the options which allow our commands through
26072 # without removal of \ escapes.
26073 if test -n "${ZSH_VERSION+set}" ; then
26074 setopt NO_GLOB_SUBST
26076 # Now quote all the things that may contain metacharacters while being
26077 # careful not to overquote the AC_SUBSTed values. We take copies of the
26078 # variables and quote the copies for generation of the libtool script.
26079 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26081 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26082 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26083 deplibs_check_method reload_flag reload_cmds need_locks \
26084 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26085 lt_cv_sys_global_symbol_to_c_name_address \
26086 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26087 old_postinstall_cmds old_postuninstall_cmds \
26091 lt_prog_compiler_wl_RC \
26092 lt_prog_compiler_pic_RC \
26093 lt_prog_compiler_static_RC \
26094 lt_prog_compiler_no_builtin_flag_RC \
26095 export_dynamic_flag_spec_RC \
26096 thread_safe_flag_spec_RC \
26097 whole_archive_flag_spec_RC \
26098 enable_shared_with_static_runtimes_RC \
26099 old_archive_cmds_RC \
26100 old_archive_from_new_cmds_RC \
26101 predep_objects_RC \
26102 postdep_objects_RC \
26105 compiler_lib_search_path_RC \
26107 archive_expsym_cmds_RC \
26108 postinstall_cmds_RC \
26109 postuninstall_cmds_RC \
26110 old_archive_from_expsyms_cmds_RC \
26111 allow_undefined_flag_RC \
26112 no_undefined_flag_RC \
26113 export_symbols_cmds_RC \
26114 hardcode_libdir_flag_spec_RC \
26115 hardcode_libdir_flag_spec_ld_RC \
26116 hardcode_libdir_separator_RC \
26117 hardcode_automatic_RC \
26119 module_expsym_cmds_RC \
26120 lt_cv_prog_compiler_c_o_RC \
26121 exclude_expsyms_RC \
26122 include_expsyms_RC; do
26125 old_archive_cmds_RC | \
26126 old_archive_from_new_cmds_RC | \
26127 archive_cmds_RC | \
26128 archive_expsym_cmds_RC | \
26130 module_expsym_cmds_RC | \
26131 old_archive_from_expsyms_cmds_RC | \
26132 export_symbols_cmds_RC | \
26133 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26134 postinstall_cmds | postuninstall_cmds | \
26135 old_postinstall_cmds | old_postuninstall_cmds | \
26136 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26137 # Double-quote double-evaled strings.
26138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26141 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26147 *'\$0 --fallback-echo"')
26148 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26154 cat <<__EOF__ >> "$cfgfile"
26155 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26157 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26159 # Shell to use when invoking shell scripts.
26162 # Whether or not to build shared libraries.
26163 build_libtool_libs=$enable_shared
26165 # Whether or not to build static libraries.
26166 build_old_libs=$enable_static
26168 # Whether or not to add -lc for building shared libraries.
26169 build_libtool_need_lc=$archive_cmds_need_lc_RC
26171 # Whether or not to disallow shared libs when runtime libs are static
26172 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26174 # Whether or not to optimize for fast installation.
26175 fast_install=$enable_fast_install
26178 host_alias=$host_alias
26182 # The build system.
26183 build_alias=$build_alias
26187 # An echo program that does not interpret backslashes.
26192 AR_FLAGS=$lt_AR_FLAGS
26197 # LTCC compiler flags.
26198 LTCFLAGS=$lt_LTCFLAGS
26200 # A language-specific compiler.
26203 # Is the compiler the GNU C compiler?
26209 # The linker used to build libraries.
26212 # Whether we need hard or soft links.
26215 # A BSD-compatible nm program.
26218 # A symbol stripping program
26221 # Used to examine libraries when file_magic_cmd begins "file"
26222 MAGIC_CMD=$MAGIC_CMD
26224 # Used on cygwin: DLL creation program.
26227 # Used on cygwin: object dumper.
26230 # Used on cygwin: assembler.
26233 # The name of the directory that contains temporary libtool files.
26236 # How to create reloadable object files.
26237 reload_flag=$lt_reload_flag
26238 reload_cmds=$lt_reload_cmds
26240 # How to pass a linker flag through the compiler.
26241 wl=$lt_lt_prog_compiler_wl_RC
26243 # Object file suffix (normally "o").
26244 objext="$ac_objext"
26246 # Old archive suffix (normally "a").
26249 # Shared library suffix (normally ".so").
26250 shrext_cmds='$shrext_cmds'
26252 # Executable file suffix (normally "").
26255 # Additional compiler flags for building library objects.
26256 pic_flag=$lt_lt_prog_compiler_pic_RC
26259 # What is the maximum length of a command?
26260 max_cmd_len=$lt_cv_sys_max_cmd_len
26262 # Does compiler simultaneously support -c and -o options?
26263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26265 # Must we lock files when doing compilation?
26266 need_locks=$lt_need_locks
26268 # Do we need the lib prefix for modules?
26269 need_lib_prefix=$need_lib_prefix
26271 # Do we need a version for libraries?
26272 need_version=$need_version
26274 # Whether dlopen is supported.
26275 dlopen_support=$enable_dlopen
26277 # Whether dlopen of programs is supported.
26278 dlopen_self=$enable_dlopen_self
26280 # Whether dlopen of statically linked programs is supported.
26281 dlopen_self_static=$enable_dlopen_self_static
26283 # Compiler flag to prevent dynamic linking.
26284 link_static_flag=$lt_lt_prog_compiler_static_RC
26286 # Compiler flag to turn off builtin functions.
26287 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26289 # Compiler flag to allow reflexive dlopens.
26290 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26292 # Compiler flag to generate shared objects directly from archives.
26293 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26295 # Compiler flag to generate thread-safe objects.
26296 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26298 # Library versioning type.
26299 version_type=$version_type
26301 # Format of library name prefix.
26302 libname_spec=$lt_libname_spec
26304 # List of archive names. First name is the real one, the rest are links.
26305 # The last name is the one that the linker finds with -lNAME.
26306 library_names_spec=$lt_library_names_spec
26308 # The coded name of the library, if different from the real name.
26309 soname_spec=$lt_soname_spec
26311 # Commands used to build and install an old-style archive.
26313 old_archive_cmds=$lt_old_archive_cmds_RC
26314 old_postinstall_cmds=$lt_old_postinstall_cmds
26315 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26317 # Create an old-style archive from a shared archive.
26318 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26320 # Create a temporary old-style archive to link instead of a shared archive.
26321 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26323 # Commands used to build and install a shared archive.
26324 archive_cmds=$lt_archive_cmds_RC
26325 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26326 postinstall_cmds=$lt_postinstall_cmds
26327 postuninstall_cmds=$lt_postuninstall_cmds
26329 # Commands used to build a loadable module (assumed same as above if empty)
26330 module_cmds=$lt_module_cmds_RC
26331 module_expsym_cmds=$lt_module_expsym_cmds_RC
26333 # Commands to strip libraries.
26334 old_striplib=$lt_old_striplib
26335 striplib=$lt_striplib
26337 # Dependencies to place before the objects being linked to create a
26339 predep_objects=$lt_predep_objects_RC
26341 # Dependencies to place after the objects being linked to create a
26343 postdep_objects=$lt_postdep_objects_RC
26345 # Dependencies to place before the objects being linked to create a
26347 predeps=$lt_predeps_RC
26349 # Dependencies to place after the objects being linked to create a
26351 postdeps=$lt_postdeps_RC
26353 # The library search path used internally by the compiler when linking
26354 # a shared library.
26355 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26357 # Method to check whether dependent libraries are shared objects.
26358 deplibs_check_method=$lt_deplibs_check_method
26360 # Command to use when deplibs_check_method == file_magic.
26361 file_magic_cmd=$lt_file_magic_cmd
26363 # Flag that allows shared libraries with undefined symbols to be built.
26364 allow_undefined_flag=$lt_allow_undefined_flag_RC
26366 # Flag that forces no undefined symbols.
26367 no_undefined_flag=$lt_no_undefined_flag_RC
26369 # Commands used to finish a libtool library installation in a directory.
26370 finish_cmds=$lt_finish_cmds
26372 # Same as above, but a single script fragment to be evaled but not shown.
26373 finish_eval=$lt_finish_eval
26375 # Take the output of nm and produce a listing of raw symbols and C names.
26376 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26378 # Transform the output of nm in a proper C declaration
26379 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26381 # Transform the output of nm in a C name address pair
26382 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26384 # This is the shared library runtime path variable.
26385 runpath_var=$runpath_var
26387 # This is the shared library path variable.
26388 shlibpath_var=$shlibpath_var
26390 # Is shlibpath searched before the hard-coded library search path?
26391 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26393 # How to hardcode a shared library path into an executable.
26394 hardcode_action=$hardcode_action_RC
26396 # Whether we should hardcode library paths into libraries.
26397 hardcode_into_libs=$hardcode_into_libs
26399 # Flag to hardcode \$libdir into a binary during linking.
26400 # This must work even if \$libdir does not exist.
26401 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26403 # If ld is used when linking, flag to hardcode \$libdir into
26404 # a binary during linking. This must work even if \$libdir does
26406 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26408 # Whether we need a single -rpath flag with a separated argument.
26409 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26411 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26412 # resulting binary.
26413 hardcode_direct=$hardcode_direct_RC
26415 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26416 # resulting binary.
26417 hardcode_minus_L=$hardcode_minus_L_RC
26419 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26420 # the resulting binary.
26421 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26423 # Set to yes if building a shared library automatically hardcodes DIR into the library
26424 # and all subsequent libraries and executables linked against it.
26425 hardcode_automatic=$hardcode_automatic_RC
26427 # Variables whose values should be saved in libtool wrapper scripts and
26428 # restored at relink time.
26429 variables_saved_for_relink="$variables_saved_for_relink"
26431 # Whether libtool must link a program against all its dependency libraries.
26432 link_all_deplibs=$link_all_deplibs_RC
26434 # Compile-time system search path for libraries
26435 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26437 # Run-time system search path for libraries
26438 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26440 # Fix the shell variable \$srcfile for the compiler.
26441 fix_srcfile_path="$fix_srcfile_path_RC"
26443 # Set to yes if exported symbols are required.
26444 always_export_symbols=$always_export_symbols_RC
26446 # The commands to list exported symbols.
26447 export_symbols_cmds=$lt_export_symbols_cmds_RC
26449 # The commands to extract the exported symbol list from a shared archive.
26450 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26452 # Symbols that should not be listed in the preloaded symbols.
26453 exclude_expsyms=$lt_exclude_expsyms_RC
26455 # Symbols that must always be exported.
26456 include_expsyms=$lt_include_expsyms_RC
26458 # ### END LIBTOOL TAG CONFIG: $tagname
26464 # If there is no Makefile yet, we rely on a make rule to execute
26465 # `config.status --recheck' to rerun these tests and create the
26466 # libtool script then.
26467 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26468 if test -f "$ltmain_in"; then
26469 test -f Makefile && make "$ltmain"
26475 ac_cpp='$CPP $CPPFLAGS'
26476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26485 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26486 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26487 { (exit 1); exit 1; }; }
26491 # Append the new tag name to the list of available tags.
26492 if test -n "$tagname" ; then
26493 available_tags="$available_tags $tagname"
26499 # Now substitute the updated list of available tags.
26500 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26501 mv "${ofile}T" "$ofile"
26505 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26506 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26507 { (exit 1); exit 1; }; }
26513 # This can be used to rebuild libtool when needed
26514 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26516 # Always use our own libtool.
26517 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26519 # Prevent multiple expansion
26541 if test "$lt_cv_dlopen_self" = "yes" ; then
26543 cat >>confdefs.h <<\_ACEOF
26544 #define CAN_DLOPEN_SELF 1
26549 etags_version=`$ETAGS --version 2>&1`
26550 case "$etags_version" in
26551 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26552 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26553 *) ETAGSFLAGS="" ;;
26555 ETAGSFLAGS=$ETAGSFLAGS
26558 if test "$WITH_LLVMGCCDIR" = "default" ; then
26559 LLVMGCC="llvm-gcc${EXEEXT}"
26560 LLVMGXX="llvm-g++${EXEEXT}"
26561 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26562 set dummy $LLVMGCC; ac_word=$2
26563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26565 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26566 echo $ECHO_N "(cached) $ECHO_C" >&6
26570 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26574 for as_dir in $PATH
26577 test -z "$as_dir" && as_dir=.
26578 for ac_exec_ext in '' $ac_executable_extensions; do
26579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26580 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26591 LLVMGCC=$ac_cv_path_LLVMGCC
26592 if test -n "$LLVMGCC"; then
26593 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26594 echo "${ECHO_T}$LLVMGCC" >&6; }
26596 { echo "$as_me:$LINENO: result: no" >&5
26597 echo "${ECHO_T}no" >&6; }
26601 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26602 set dummy $LLVMGXX; ac_word=$2
26603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26605 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26606 echo $ECHO_N "(cached) $ECHO_C" >&6
26610 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26614 for as_dir in $PATH
26617 test -z "$as_dir" && as_dir=.
26618 for ac_exec_ext in '' $ac_executable_extensions; do
26619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26620 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26631 LLVMGXX=$ac_cv_path_LLVMGXX
26632 if test -n "$LLVMGXX"; then
26633 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26634 echo "${ECHO_T}$LLVMGXX" >&6; }
26636 { echo "$as_me:$LINENO: result: no" >&5
26637 echo "${ECHO_T}no" >&6; }
26642 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26643 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26650 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26651 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26664 if test "$GCC" != "yes" && test "$ICC" != "yes"
26666 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26667 echo "$as_me: error: gcc|icc required but not found" >&2;}
26668 { (exit 1); exit 1; }; }
26671 if test "$GXX" != "yes" && test "$IXX" != "yes"
26673 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26674 echo "$as_me: error: g++|icc required but not found" >&2;}
26675 { (exit 1); exit 1; }; }
26678 if test "$GCC" = "yes"
26680 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26681 if test "$gccmajor" -lt "3"
26683 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26684 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26685 { (exit 1); exit 1; }; }
26689 if test -z "$llvm_cv_gnu_make_command"
26691 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26692 echo "$as_me: error: GNU Make required but not found" >&2;}
26693 { (exit 1); exit 1; }; }
26696 { echo "$as_me:$LINENO: result: ok" >&5
26697 echo "${ECHO_T}ok" >&6; }
26701 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26702 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26703 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26704 echo $ECHO_N "(cached) $ECHO_C" >&6
26706 ac_check_lib_save_LIBS=$LIBS
26708 cat >conftest.$ac_ext <<_ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h. */
26715 /* Override any GCC internal prototype to avoid an error.
26716 Use char because int might match the return type of a GCC
26717 builtin and then its argument prototype would still apply. */
26725 return elf_begin ();
26730 rm -f conftest.$ac_objext conftest$ac_exeext
26731 if { (ac_try="$ac_link"
26732 case "(($ac_try" in
26733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734 *) ac_try_echo=$ac_try;;
26736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26737 (eval "$ac_link") 2>conftest.er1
26739 grep -v '^ *+' conftest.er1 >conftest.err
26741 cat conftest.err >&5
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); } &&
26744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26745 { (case "(($ac_try" in
26746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747 *) ac_try_echo=$ac_try;;
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750 (eval "$ac_try") 2>&5
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; } &&
26754 { ac_try='test -s conftest$ac_exeext'
26755 { (case "(($ac_try" in
26756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757 *) ac_try_echo=$ac_try;;
26759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760 (eval "$ac_try") 2>&5
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); }; }; then
26764 ac_cv_lib_elf_elf_begin=yes
26766 echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26769 ac_cv_lib_elf_elf_begin=no
26772 rm -f core conftest.err conftest.$ac_objext \
26773 conftest$ac_exeext conftest.$ac_ext
26774 LIBS=$ac_check_lib_save_LIBS
26776 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26777 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26778 if test $ac_cv_lib_elf_elf_begin = yes; then
26779 cat >>confdefs.h <<_ACEOF
26780 #define HAVE_LIBELF 1
26788 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26789 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26790 if test "${ac_cv_lib_m_sin+set}" = set; then
26791 echo $ECHO_N "(cached) $ECHO_C" >&6
26793 ac_check_lib_save_LIBS=$LIBS
26795 cat >conftest.$ac_ext <<_ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h. */
26802 /* Override any GCC internal prototype to avoid an error.
26803 Use char because int might match the return type of a GCC
26804 builtin and then its argument prototype would still apply. */
26817 rm -f conftest.$ac_objext conftest$ac_exeext
26818 if { (ac_try="$ac_link"
26819 case "(($ac_try" in
26820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821 *) ac_try_echo=$ac_try;;
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824 (eval "$ac_link") 2>conftest.er1
26826 grep -v '^ *+' conftest.er1 >conftest.err
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
26831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26832 { (case "(($ac_try" in
26833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834 *) ac_try_echo=$ac_try;;
26836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26837 (eval "$ac_try") 2>&5
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); }; } &&
26841 { ac_try='test -s conftest$ac_exeext'
26842 { (case "(($ac_try" in
26843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844 *) ac_try_echo=$ac_try;;
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847 (eval "$ac_try") 2>&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; }; then
26851 ac_cv_lib_m_sin=yes
26853 echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26859 rm -f core conftest.err conftest.$ac_objext \
26860 conftest$ac_exeext conftest.$ac_ext
26861 LIBS=$ac_check_lib_save_LIBS
26863 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26864 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26865 if test $ac_cv_lib_m_sin = yes; then
26866 cat >>confdefs.h <<_ACEOF
26867 #define HAVE_LIBM 1
26874 if test "$llvm_cv_os_type" == "MingW" ; then
26876 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26877 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26878 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26879 echo $ECHO_N "(cached) $ECHO_C" >&6
26881 ac_check_lib_save_LIBS=$LIBS
26882 LIBS="-limagehlp $LIBS"
26883 cat >conftest.$ac_ext <<_ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h. */
26899 rm -f conftest.$ac_objext conftest$ac_exeext
26900 if { (ac_try="$ac_link"
26901 case "(($ac_try" in
26902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26903 *) ac_try_echo=$ac_try;;
26905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26906 (eval "$ac_link") 2>conftest.er1
26908 grep -v '^ *+' conftest.er1 >conftest.err
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
26913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26914 { (case "(($ac_try" in
26915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916 *) ac_try_echo=$ac_try;;
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919 (eval "$ac_try") 2>&5
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); }; } &&
26923 { ac_try='test -s conftest$ac_exeext'
26924 { (case "(($ac_try" in
26925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926 *) ac_try_echo=$ac_try;;
26928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26929 (eval "$ac_try") 2>&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); }; }; then
26933 ac_cv_lib_imagehlp_main=yes
26935 echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.$ac_ext >&5
26938 ac_cv_lib_imagehlp_main=no
26941 rm -f core conftest.err conftest.$ac_objext \
26942 conftest$ac_exeext conftest.$ac_ext
26943 LIBS=$ac_check_lib_save_LIBS
26945 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26946 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26947 if test $ac_cv_lib_imagehlp_main = yes; then
26948 cat >>confdefs.h <<_ACEOF
26949 #define HAVE_LIBIMAGEHLP 1
26952 LIBS="-limagehlp $LIBS"
26957 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26958 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26959 if test "${ac_cv_lib_psapi_main+set}" = set; then
26960 echo $ECHO_N "(cached) $ECHO_C" >&6
26962 ac_check_lib_save_LIBS=$LIBS
26963 LIBS="-lpsapi $LIBS"
26964 cat >conftest.$ac_ext <<_ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h. */
26980 rm -f conftest.$ac_objext conftest$ac_exeext
26981 if { (ac_try="$ac_link"
26982 case "(($ac_try" in
26983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984 *) ac_try_echo=$ac_try;;
26986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987 (eval "$ac_link") 2>conftest.er1
26989 grep -v '^ *+' conftest.er1 >conftest.err
26991 cat conftest.err >&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); } &&
26994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26995 { (case "(($ac_try" in
26996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997 *) ac_try_echo=$ac_try;;
26999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000 (eval "$ac_try") 2>&5
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); }; } &&
27004 { ac_try='test -s conftest$ac_exeext'
27005 { (case "(($ac_try" in
27006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007 *) ac_try_echo=$ac_try;;
27009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27010 (eval "$ac_try") 2>&5
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); }; }; then
27014 ac_cv_lib_psapi_main=yes
27016 echo "$as_me: failed program was:" >&5
27017 sed 's/^/| /' conftest.$ac_ext >&5
27019 ac_cv_lib_psapi_main=no
27022 rm -f core conftest.err conftest.$ac_objext \
27023 conftest$ac_exeext conftest.$ac_ext
27024 LIBS=$ac_check_lib_save_LIBS
27026 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27027 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27028 if test $ac_cv_lib_psapi_main = yes; then
27029 cat >>confdefs.h <<_ACEOF
27030 #define HAVE_LIBPSAPI 1
27033 LIBS="-lpsapi $LIBS"
27039 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27040 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27041 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27042 echo $ECHO_N "(cached) $ECHO_C" >&6
27044 ac_func_search_save_LIBS=$LIBS
27045 cat >conftest.$ac_ext <<_ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h. */
27052 /* Override any GCC internal prototype to avoid an error.
27053 Use char because int might match the return type of a GCC
27054 builtin and then its argument prototype would still apply. */
27062 return lt_dlopen ();
27067 for ac_lib in '' ltdl; do
27068 if test -z "$ac_lib"; then
27069 ac_res="none required"
27072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27074 rm -f conftest.$ac_objext conftest$ac_exeext
27075 if { (ac_try="$ac_link"
27076 case "(($ac_try" in
27077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27078 *) ac_try_echo=$ac_try;;
27080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081 (eval "$ac_link") 2>conftest.er1
27083 grep -v '^ *+' conftest.er1 >conftest.err
27085 cat conftest.err >&5
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } &&
27088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27089 { (case "(($ac_try" in
27090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091 *) ac_try_echo=$ac_try;;
27093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094 (eval "$ac_try") 2>&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; } &&
27098 { ac_try='test -s conftest$ac_exeext'
27099 { (case "(($ac_try" in
27100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27101 *) ac_try_echo=$ac_try;;
27103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27104 (eval "$ac_try") 2>&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; }; then
27108 ac_cv_search_lt_dlopen=$ac_res
27110 echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27116 rm -f core conftest.err conftest.$ac_objext \
27118 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27122 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27125 ac_cv_search_lt_dlopen=no
27127 rm conftest.$ac_ext
27128 LIBS=$ac_func_search_save_LIBS
27130 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27131 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27132 ac_res=$ac_cv_search_lt_dlopen
27133 if test "$ac_res" != no; then
27134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27136 cat >>confdefs.h <<\_ACEOF
27137 #define HAVE_LT_DLOPEN 1
27141 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27142 not be available" >&5
27143 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27144 not be available" >&2;}
27148 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27149 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27150 if test "${ac_cv_search_dlopen+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27153 ac_func_search_save_LIBS=$LIBS
27154 cat >conftest.$ac_ext <<_ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h. */
27161 /* Override any GCC internal prototype to avoid an error.
27162 Use char because int might match the return type of a GCC
27163 builtin and then its argument prototype would still apply. */
27176 for ac_lib in '' dl; do
27177 if test -z "$ac_lib"; then
27178 ac_res="none required"
27181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27183 rm -f conftest.$ac_objext conftest$ac_exeext
27184 if { (ac_try="$ac_link"
27185 case "(($ac_try" in
27186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187 *) ac_try_echo=$ac_try;;
27189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190 (eval "$ac_link") 2>conftest.er1
27192 grep -v '^ *+' conftest.er1 >conftest.err
27194 cat conftest.err >&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } &&
27197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27198 { (case "(($ac_try" in
27199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200 *) ac_try_echo=$ac_try;;
27202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203 (eval "$ac_try") 2>&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; } &&
27207 { ac_try='test -s conftest$ac_exeext'
27208 { (case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213 (eval "$ac_try") 2>&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; }; then
27217 ac_cv_search_dlopen=$ac_res
27219 echo "$as_me: failed program was:" >&5
27220 sed 's/^/| /' conftest.$ac_ext >&5
27225 rm -f core conftest.err conftest.$ac_objext \
27227 if test "${ac_cv_search_dlopen+set}" = set; then
27231 if test "${ac_cv_search_dlopen+set}" = set; then
27234 ac_cv_search_dlopen=no
27236 rm conftest.$ac_ext
27237 LIBS=$ac_func_search_save_LIBS
27239 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27240 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27241 ac_res=$ac_cv_search_dlopen
27242 if test "$ac_res" != no; then
27243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27245 cat >>confdefs.h <<\_ACEOF
27246 #define HAVE_DLOPEN 1
27250 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27251 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27255 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27256 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27257 if test "${ac_cv_search_mallinfo+set}" = set; then
27258 echo $ECHO_N "(cached) $ECHO_C" >&6
27260 ac_func_search_save_LIBS=$LIBS
27261 cat >conftest.$ac_ext <<_ACEOF
27264 cat confdefs.h >>conftest.$ac_ext
27265 cat >>conftest.$ac_ext <<_ACEOF
27266 /* end confdefs.h. */
27268 /* Override any GCC internal prototype to avoid an error.
27269 Use char because int might match the return type of a GCC
27270 builtin and then its argument prototype would still apply. */
27278 return mallinfo ();
27283 for ac_lib in '' malloc; do
27284 if test -z "$ac_lib"; then
27285 ac_res="none required"
27288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27290 rm -f conftest.$ac_objext conftest$ac_exeext
27291 if { (ac_try="$ac_link"
27292 case "(($ac_try" in
27293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294 *) ac_try_echo=$ac_try;;
27296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27297 (eval "$ac_link") 2>conftest.er1
27299 grep -v '^ *+' conftest.er1 >conftest.err
27301 cat conftest.err >&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); } &&
27304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27305 { (case "(($ac_try" in
27306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_try") 2>&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; } &&
27314 { ac_try='test -s conftest$ac_exeext'
27315 { (case "(($ac_try" in
27316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317 *) ac_try_echo=$ac_try;;
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320 (eval "$ac_try") 2>&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; }; then
27324 ac_cv_search_mallinfo=$ac_res
27326 echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27332 rm -f core conftest.err conftest.$ac_objext \
27334 if test "${ac_cv_search_mallinfo+set}" = set; then
27338 if test "${ac_cv_search_mallinfo+set}" = set; then
27341 ac_cv_search_mallinfo=no
27343 rm conftest.$ac_ext
27344 LIBS=$ac_func_search_save_LIBS
27346 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27347 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27348 ac_res=$ac_cv_search_mallinfo
27349 if test "$ac_res" != no; then
27350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27352 cat >>confdefs.h <<\_ACEOF
27353 #define HAVE_MALLINFO 1
27359 if test "$ENABLE_THREADS" -eq 1 ; then
27361 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27362 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27363 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27364 echo $ECHO_N "(cached) $ECHO_C" >&6
27366 ac_check_lib_save_LIBS=$LIBS
27367 LIBS="-lpthread $LIBS"
27368 cat >conftest.$ac_ext <<_ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h. */
27375 /* Override any GCC internal prototype to avoid an error.
27376 Use char because int might match the return type of a GCC
27377 builtin and then its argument prototype would still apply. */
27381 char pthread_mutex_init ();
27385 return pthread_mutex_init ();
27390 rm -f conftest.$ac_objext conftest$ac_exeext
27391 if { (ac_try="$ac_link"
27392 case "(($ac_try" in
27393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397 (eval "$ac_link") 2>conftest.er1
27399 grep -v '^ *+' conftest.er1 >conftest.err
27401 cat conftest.err >&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); } &&
27404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27405 { (case "(($ac_try" in
27406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407 *) ac_try_echo=$ac_try;;
27409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27410 (eval "$ac_try") 2>&5
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; } &&
27414 { ac_try='test -s conftest$ac_exeext'
27415 { (case "(($ac_try" in
27416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417 *) ac_try_echo=$ac_try;;
27419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420 (eval "$ac_try") 2>&5
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); }; }; then
27424 ac_cv_lib_pthread_pthread_mutex_init=yes
27426 echo "$as_me: failed program was:" >&5
27427 sed 's/^/| /' conftest.$ac_ext >&5
27429 ac_cv_lib_pthread_pthread_mutex_init=no
27432 rm -f core conftest.err conftest.$ac_objext \
27433 conftest$ac_exeext conftest.$ac_ext
27434 LIBS=$ac_check_lib_save_LIBS
27436 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27437 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27438 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27439 cat >>confdefs.h <<_ACEOF
27440 #define HAVE_LIBPTHREAD 1
27443 LIBS="-lpthread $LIBS"
27447 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27448 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27449 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27450 echo $ECHO_N "(cached) $ECHO_C" >&6
27452 ac_func_search_save_LIBS=$LIBS
27453 cat >conftest.$ac_ext <<_ACEOF
27456 cat confdefs.h >>conftest.$ac_ext
27457 cat >>conftest.$ac_ext <<_ACEOF
27458 /* end confdefs.h. */
27460 /* Override any GCC internal prototype to avoid an error.
27461 Use char because int might match the return type of a GCC
27462 builtin and then its argument prototype would still apply. */
27466 char pthread_mutex_lock ();
27470 return pthread_mutex_lock ();
27475 for ac_lib in '' pthread; do
27476 if test -z "$ac_lib"; then
27477 ac_res="none required"
27480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27482 rm -f conftest.$ac_objext conftest$ac_exeext
27483 if { (ac_try="$ac_link"
27484 case "(($ac_try" in
27485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27486 *) ac_try_echo=$ac_try;;
27488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27489 (eval "$ac_link") 2>conftest.er1
27491 grep -v '^ *+' conftest.er1 >conftest.err
27493 cat conftest.err >&5
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); } &&
27496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27497 { (case "(($ac_try" in
27498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499 *) ac_try_echo=$ac_try;;
27501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502 (eval "$ac_try") 2>&5
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); }; } &&
27506 { ac_try='test -s conftest$ac_exeext'
27507 { (case "(($ac_try" in
27508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509 *) ac_try_echo=$ac_try;;
27511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27512 (eval "$ac_try") 2>&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); }; }; then
27516 ac_cv_search_pthread_mutex_lock=$ac_res
27518 echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.$ac_ext >&5
27524 rm -f core conftest.err conftest.$ac_objext \
27526 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27530 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27533 ac_cv_search_pthread_mutex_lock=no
27535 rm conftest.$ac_ext
27536 LIBS=$ac_func_search_save_LIBS
27538 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27539 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27540 ac_res=$ac_cv_search_pthread_mutex_lock
27541 if test "$ac_res" != no; then
27542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27544 cat >>confdefs.h <<\_ACEOF
27545 #define HAVE_PTHREAD_MUTEX_LOCK 1
27558 ac_header_dirent=no
27559 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27560 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27561 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27562 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27564 echo $ECHO_N "(cached) $ECHO_C" >&6
27566 cat >conftest.$ac_ext <<_ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h. */
27572 #include <sys/types.h>
27584 rm -f conftest.$ac_objext
27585 if { (ac_try="$ac_compile"
27586 case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591 (eval "$ac_compile") 2>conftest.er1
27593 grep -v '^ *+' conftest.er1 >conftest.err
27595 cat conftest.err >&5
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); } &&
27598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27599 { (case "(($ac_try" in
27600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27601 *) ac_try_echo=$ac_try;;
27603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27604 (eval "$ac_try") 2>&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); }; } &&
27608 { ac_try='test -s conftest.$ac_objext'
27609 { (case "(($ac_try" in
27610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27611 *) ac_try_echo=$ac_try;;
27613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27614 (eval "$ac_try") 2>&5
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; }; then
27618 eval "$as_ac_Header=yes"
27620 echo "$as_me: failed program was:" >&5
27621 sed 's/^/| /' conftest.$ac_ext >&5
27623 eval "$as_ac_Header=no"
27626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27628 ac_res=`eval echo '${'$as_ac_Header'}'`
27629 { echo "$as_me:$LINENO: result: $ac_res" >&5
27630 echo "${ECHO_T}$ac_res" >&6; }
27631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27632 cat >>confdefs.h <<_ACEOF
27633 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27636 ac_header_dirent=$ac_hdr; break
27640 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27641 if test $ac_header_dirent = dirent.h; then
27642 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27643 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27644 if test "${ac_cv_search_opendir+set}" = set; then
27645 echo $ECHO_N "(cached) $ECHO_C" >&6
27647 ac_func_search_save_LIBS=$LIBS
27648 cat >conftest.$ac_ext <<_ACEOF
27651 cat confdefs.h >>conftest.$ac_ext
27652 cat >>conftest.$ac_ext <<_ACEOF
27653 /* end confdefs.h. */
27655 /* Override any GCC internal prototype to avoid an error.
27656 Use char because int might match the return type of a GCC
27657 builtin and then its argument prototype would still apply. */
27670 for ac_lib in '' dir; do
27671 if test -z "$ac_lib"; then
27672 ac_res="none required"
27675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27677 rm -f conftest.$ac_objext conftest$ac_exeext
27678 if { (ac_try="$ac_link"
27679 case "(($ac_try" in
27680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681 *) ac_try_echo=$ac_try;;
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_link") 2>conftest.er1
27686 grep -v '^ *+' conftest.er1 >conftest.err
27688 cat conftest.err >&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); } &&
27691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27692 { (case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_try") 2>&5
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; } &&
27701 { ac_try='test -s conftest$ac_exeext'
27702 { (case "(($ac_try" in
27703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704 *) ac_try_echo=$ac_try;;
27706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707 (eval "$ac_try") 2>&5
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); }; }; then
27711 ac_cv_search_opendir=$ac_res
27713 echo "$as_me: failed program was:" >&5
27714 sed 's/^/| /' conftest.$ac_ext >&5
27719 rm -f core conftest.err conftest.$ac_objext \
27721 if test "${ac_cv_search_opendir+set}" = set; then
27725 if test "${ac_cv_search_opendir+set}" = set; then
27728 ac_cv_search_opendir=no
27730 rm conftest.$ac_ext
27731 LIBS=$ac_func_search_save_LIBS
27733 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27734 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27735 ac_res=$ac_cv_search_opendir
27736 if test "$ac_res" != no; then
27737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27742 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27743 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27744 if test "${ac_cv_search_opendir+set}" = set; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27747 ac_func_search_save_LIBS=$LIBS
27748 cat >conftest.$ac_ext <<_ACEOF
27751 cat confdefs.h >>conftest.$ac_ext
27752 cat >>conftest.$ac_ext <<_ACEOF
27753 /* end confdefs.h. */
27755 /* Override any GCC internal prototype to avoid an error.
27756 Use char because int might match the return type of a GCC
27757 builtin and then its argument prototype would still apply. */
27770 for ac_lib in '' x; do
27771 if test -z "$ac_lib"; then
27772 ac_res="none required"
27775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27777 rm -f conftest.$ac_objext conftest$ac_exeext
27778 if { (ac_try="$ac_link"
27779 case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_link") 2>conftest.er1
27786 grep -v '^ *+' conftest.er1 >conftest.err
27788 cat conftest.err >&5
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); } &&
27791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27792 { (case "(($ac_try" in
27793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794 *) ac_try_echo=$ac_try;;
27796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797 (eval "$ac_try") 2>&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; } &&
27801 { ac_try='test -s conftest$ac_exeext'
27802 { (case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807 (eval "$ac_try") 2>&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; }; then
27811 ac_cv_search_opendir=$ac_res
27813 echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27819 rm -f core conftest.err conftest.$ac_objext \
27821 if test "${ac_cv_search_opendir+set}" = set; then
27825 if test "${ac_cv_search_opendir+set}" = set; then
27828 ac_cv_search_opendir=no
27830 rm conftest.$ac_ext
27831 LIBS=$ac_func_search_save_LIBS
27833 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27834 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27835 ac_res=$ac_cv_search_opendir
27836 if test "$ac_res" != no; then
27837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27843 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27844 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27845 if test "${ac_cv_header_mmap_anon+set}" = set; then
27846 echo $ECHO_N "(cached) $ECHO_C" >&6
27849 ac_cpp='$CPP $CPPFLAGS'
27850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27854 cat >conftest.$ac_ext <<_ACEOF
27857 cat confdefs.h >>conftest.$ac_ext
27858 cat >>conftest.$ac_ext <<_ACEOF
27859 /* end confdefs.h. */
27860 #include <sys/mman.h>
27861 #include <unistd.h>
27866 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27871 rm -f conftest.$ac_objext
27872 if { (ac_try="$ac_compile"
27873 case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_compile") 2>conftest.er1
27880 grep -v '^ *+' conftest.er1 >conftest.err
27882 cat conftest.err >&5
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } &&
27885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27886 { (case "(($ac_try" in
27887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888 *) ac_try_echo=$ac_try;;
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891 (eval "$ac_try") 2>&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; } &&
27895 { ac_try='test -s conftest.$ac_objext'
27896 { (case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901 (eval "$ac_try") 2>&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; }; then
27905 ac_cv_header_mmap_anon=yes
27907 echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27910 ac_cv_header_mmap_anon=no
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27915 ac_cpp='$CPP $CPPFLAGS'
27916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27922 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27923 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27924 if test "$ac_cv_header_mmap_anon" = yes; then
27926 cat >>confdefs.h <<\_ACEOF
27927 #define HAVE_MMAP_ANONYMOUS 1
27932 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27933 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27934 if test "${ac_cv_header_stat_broken+set}" = set; then
27935 echo $ECHO_N "(cached) $ECHO_C" >&6
27937 cat >conftest.$ac_ext <<_ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h. */
27943 #include <sys/types.h>
27944 #include <sys/stat.h>
27946 #if defined S_ISBLK && defined S_IFDIR
27947 # if S_ISBLK (S_IFDIR)
27952 #if defined S_ISBLK && defined S_IFCHR
27953 # if S_ISBLK (S_IFCHR)
27958 #if defined S_ISLNK && defined S_IFREG
27959 # if S_ISLNK (S_IFREG)
27964 #if defined S_ISSOCK && defined S_IFREG
27965 # if S_ISSOCK (S_IFREG)
27971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27972 $EGREP "You lose" >/dev/null 2>&1; then
27973 ac_cv_header_stat_broken=yes
27975 ac_cv_header_stat_broken=no
27980 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27981 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27982 if test $ac_cv_header_stat_broken = yes; then
27984 cat >>confdefs.h <<\_ACEOF
27985 #define STAT_MACROS_BROKEN 1
27990 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27991 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27992 if test "${ac_cv_header_stdc+set}" = set; then
27993 echo $ECHO_N "(cached) $ECHO_C" >&6
27995 cat >conftest.$ac_ext <<_ACEOF
27998 cat confdefs.h >>conftest.$ac_ext
27999 cat >>conftest.$ac_ext <<_ACEOF
28000 /* end confdefs.h. */
28001 #include <stdlib.h>
28002 #include <stdarg.h>
28003 #include <string.h>
28014 rm -f conftest.$ac_objext
28015 if { (ac_try="$ac_compile"
28016 case "(($ac_try" in
28017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28018 *) ac_try_echo=$ac_try;;
28020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28021 (eval "$ac_compile") 2>conftest.er1
28023 grep -v '^ *+' conftest.er1 >conftest.err
28025 cat conftest.err >&5
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); } &&
28028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28029 { (case "(($ac_try" in
28030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28031 *) ac_try_echo=$ac_try;;
28033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28034 (eval "$ac_try") 2>&5
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; } &&
28038 { ac_try='test -s conftest.$ac_objext'
28039 { (case "(($ac_try" in
28040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28041 *) ac_try_echo=$ac_try;;
28043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28044 (eval "$ac_try") 2>&5
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); }; }; then
28048 ac_cv_header_stdc=yes
28050 echo "$as_me: failed program was:" >&5
28051 sed 's/^/| /' conftest.$ac_ext >&5
28053 ac_cv_header_stdc=no
28056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28058 if test $ac_cv_header_stdc = yes; then
28059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28060 cat >conftest.$ac_ext <<_ACEOF
28063 cat confdefs.h >>conftest.$ac_ext
28064 cat >>conftest.$ac_ext <<_ACEOF
28065 /* end confdefs.h. */
28066 #include <string.h>
28069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28070 $EGREP "memchr" >/dev/null 2>&1; then
28073 ac_cv_header_stdc=no
28079 if test $ac_cv_header_stdc = yes; then
28080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28081 cat >conftest.$ac_ext <<_ACEOF
28084 cat confdefs.h >>conftest.$ac_ext
28085 cat >>conftest.$ac_ext <<_ACEOF
28086 /* end confdefs.h. */
28087 #include <stdlib.h>
28090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28091 $EGREP "free" >/dev/null 2>&1; then
28094 ac_cv_header_stdc=no
28100 if test $ac_cv_header_stdc = yes; then
28101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28102 if test "$cross_compiling" = yes; then
28105 cat >conftest.$ac_ext <<_ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28112 #include <stdlib.h>
28113 #if ((' ' & 0x0FF) == 0x020)
28114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28117 # define ISLOWER(c) \
28118 (('a' <= (c) && (c) <= 'i') \
28119 || ('j' <= (c) && (c) <= 'r') \
28120 || ('s' <= (c) && (c) <= 'z'))
28121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28129 for (i = 0; i < 256; i++)
28130 if (XOR (islower (i), ISLOWER (i))
28131 || toupper (i) != TOUPPER (i))
28136 rm -f conftest$ac_exeext
28137 if { (ac_try="$ac_link"
28138 case "(($ac_try" in
28139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140 *) ac_try_echo=$ac_try;;
28142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28143 (eval "$ac_link") 2>&5
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28147 { (case "(($ac_try" in
28148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149 *) ac_try_echo=$ac_try;;
28151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152 (eval "$ac_try") 2>&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28158 echo "$as_me: program exited with status $ac_status" >&5
28159 echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28162 ( exit $ac_status )
28163 ac_cv_header_stdc=no
28165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28171 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28172 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28173 if test $ac_cv_header_stdc = yes; then
28175 cat >>confdefs.h <<\_ACEOF
28176 #define STDC_HEADERS 1
28181 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28182 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28183 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28184 echo $ECHO_N "(cached) $ECHO_C" >&6
28186 cat >conftest.$ac_ext <<_ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h. */
28192 #include <sys/types.h>
28193 #include <sys/wait.h>
28194 #ifndef WEXITSTATUS
28195 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28198 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28206 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28211 rm -f conftest.$ac_objext
28212 if { (ac_try="$ac_compile"
28213 case "(($ac_try" in
28214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215 *) ac_try_echo=$ac_try;;
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218 (eval "$ac_compile") 2>conftest.er1
28220 grep -v '^ *+' conftest.er1 >conftest.err
28222 cat conftest.err >&5
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); } &&
28225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28226 { (case "(($ac_try" in
28227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228 *) ac_try_echo=$ac_try;;
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231 (eval "$ac_try") 2>&5
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; } &&
28235 { ac_try='test -s conftest.$ac_objext'
28236 { (case "(($ac_try" in
28237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238 *) ac_try_echo=$ac_try;;
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241 (eval "$ac_try") 2>&5
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28245 ac_cv_header_sys_wait_h=yes
28247 echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28250 ac_cv_header_sys_wait_h=no
28253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28255 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28256 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28257 if test $ac_cv_header_sys_wait_h = yes; then
28259 cat >>confdefs.h <<\_ACEOF
28260 #define HAVE_SYS_WAIT_H 1
28265 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28266 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28267 if test "${ac_cv_header_time+set}" = set; then
28268 echo $ECHO_N "(cached) $ECHO_C" >&6
28270 cat >conftest.$ac_ext <<_ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h. */
28276 #include <sys/types.h>
28277 #include <sys/time.h>
28283 if ((struct tm *) 0)
28289 rm -f conftest.$ac_objext
28290 if { (ac_try="$ac_compile"
28291 case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_compile") 2>conftest.er1
28298 grep -v '^ *+' conftest.er1 >conftest.err
28300 cat conftest.err >&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } &&
28303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28304 { (case "(($ac_try" in
28305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306 *) ac_try_echo=$ac_try;;
28308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309 (eval "$ac_try") 2>&5
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; } &&
28313 { ac_try='test -s conftest.$ac_objext'
28314 { (case "(($ac_try" in
28315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316 *) ac_try_echo=$ac_try;;
28318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319 (eval "$ac_try") 2>&5
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); }; }; then
28323 ac_cv_header_time=yes
28325 echo "$as_me: failed program was:" >&5
28326 sed 's/^/| /' conftest.$ac_ext >&5
28328 ac_cv_header_time=no
28331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28333 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28334 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28335 if test $ac_cv_header_time = yes; then
28337 cat >>confdefs.h <<\_ACEOF
28338 #define TIME_WITH_SYS_TIME 1
28350 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28357 echo $ECHO_N "(cached) $ECHO_C" >&6
28359 ac_res=`eval echo '${'$as_ac_Header'}'`
28360 { echo "$as_me:$LINENO: result: $ac_res" >&5
28361 echo "${ECHO_T}$ac_res" >&6; }
28363 # Is the header compilable?
28364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28366 cat >conftest.$ac_ext <<_ACEOF
28369 cat confdefs.h >>conftest.$ac_ext
28370 cat >>conftest.$ac_ext <<_ACEOF
28371 /* end confdefs.h. */
28372 $ac_includes_default
28373 #include <$ac_header>
28375 rm -f conftest.$ac_objext
28376 if { (ac_try="$ac_compile"
28377 case "(($ac_try" in
28378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28379 *) ac_try_echo=$ac_try;;
28381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28382 (eval "$ac_compile") 2>conftest.er1
28384 grep -v '^ *+' conftest.er1 >conftest.err
28386 cat conftest.err >&5
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); } &&
28389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28390 { (case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_try") 2>&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; } &&
28399 { ac_try='test -s conftest.$ac_objext'
28400 { (case "(($ac_try" in
28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402 *) ac_try_echo=$ac_try;;
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405 (eval "$ac_try") 2>&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); }; }; then
28409 ac_header_compiler=yes
28411 echo "$as_me: failed program was:" >&5
28412 sed 's/^/| /' conftest.$ac_ext >&5
28414 ac_header_compiler=no
28417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28419 echo "${ECHO_T}$ac_header_compiler" >&6; }
28421 # Is the header present?
28422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28424 cat >conftest.$ac_ext <<_ACEOF
28427 cat confdefs.h >>conftest.$ac_ext
28428 cat >>conftest.$ac_ext <<_ACEOF
28429 /* end confdefs.h. */
28430 #include <$ac_header>
28432 if { (ac_try="$ac_cpp conftest.$ac_ext"
28433 case "(($ac_try" in
28434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28435 *) ac_try_echo=$ac_try;;
28437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28440 grep -v '^ *+' conftest.er1 >conftest.err
28442 cat conftest.err >&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } >/dev/null; then
28445 if test -s conftest.err; then
28446 ac_cpp_err=$ac_c_preproc_warn_flag
28447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28454 if test -z "$ac_cpp_err"; then
28455 ac_header_preproc=yes
28457 echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28460 ac_header_preproc=no
28463 rm -f conftest.err conftest.$ac_ext
28464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28465 echo "${ECHO_T}$ac_header_preproc" >&6; }
28467 # So? What about this header?
28468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28474 ac_header_preproc=yes
28477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28490 ## ----------------------------------- ##
28491 ## Report this to llvmbugs@cs.uiuc.edu ##
28492 ## ----------------------------------- ##
28494 ) | sed "s/^/$as_me: WARNING: /" >&2
28497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28500 echo $ECHO_N "(cached) $ECHO_C" >&6
28502 eval "$as_ac_Header=\$ac_header_preproc"
28504 ac_res=`eval echo '${'$as_ac_Header'}'`
28505 { echo "$as_me:$LINENO: result: $ac_res" >&5
28506 echo "${ECHO_T}$ac_res" >&6; }
28509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28510 cat >>confdefs.h <<_ACEOF
28511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28524 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28531 echo $ECHO_N "(cached) $ECHO_C" >&6
28533 ac_res=`eval echo '${'$as_ac_Header'}'`
28534 { echo "$as_me:$LINENO: result: $ac_res" >&5
28535 echo "${ECHO_T}$ac_res" >&6; }
28537 # Is the header compilable?
28538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28540 cat >conftest.$ac_ext <<_ACEOF
28543 cat confdefs.h >>conftest.$ac_ext
28544 cat >>conftest.$ac_ext <<_ACEOF
28545 /* end confdefs.h. */
28546 $ac_includes_default
28547 #include <$ac_header>
28549 rm -f conftest.$ac_objext
28550 if { (ac_try="$ac_compile"
28551 case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_compile") 2>conftest.er1
28558 grep -v '^ *+' conftest.er1 >conftest.err
28560 cat conftest.err >&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); } &&
28563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28564 { (case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_try") 2>&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; } &&
28573 { ac_try='test -s conftest.$ac_objext'
28574 { (case "(($ac_try" in
28575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576 *) ac_try_echo=$ac_try;;
28578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579 (eval "$ac_try") 2>&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; }; then
28583 ac_header_compiler=yes
28585 echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28588 ac_header_compiler=no
28591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28593 echo "${ECHO_T}$ac_header_compiler" >&6; }
28595 # Is the header present?
28596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28598 cat >conftest.$ac_ext <<_ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h. */
28604 #include <$ac_header>
28606 if { (ac_try="$ac_cpp conftest.$ac_ext"
28607 case "(($ac_try" in
28608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609 *) ac_try_echo=$ac_try;;
28611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28614 grep -v '^ *+' conftest.er1 >conftest.err
28616 cat conftest.err >&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); } >/dev/null; then
28619 if test -s conftest.err; then
28620 ac_cpp_err=$ac_c_preproc_warn_flag
28621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28628 if test -z "$ac_cpp_err"; then
28629 ac_header_preproc=yes
28631 echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28634 ac_header_preproc=no
28637 rm -f conftest.err conftest.$ac_ext
28638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28639 echo "${ECHO_T}$ac_header_preproc" >&6; }
28641 # So? What about this header?
28642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28648 ac_header_preproc=yes
28651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28664 ## ----------------------------------- ##
28665 ## Report this to llvmbugs@cs.uiuc.edu ##
28666 ## ----------------------------------- ##
28668 ) | sed "s/^/$as_me: WARNING: /" >&2
28671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28674 echo $ECHO_N "(cached) $ECHO_C" >&6
28676 eval "$as_ac_Header=\$ac_header_preproc"
28678 ac_res=`eval echo '${'$as_ac_Header'}'`
28679 { echo "$as_me:$LINENO: result: $ac_res" >&5
28680 echo "${ECHO_T}$ac_res" >&6; }
28683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28684 cat >>confdefs.h <<_ACEOF
28685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28697 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28704 echo $ECHO_N "(cached) $ECHO_C" >&6
28706 ac_res=`eval echo '${'$as_ac_Header'}'`
28707 { echo "$as_me:$LINENO: result: $ac_res" >&5
28708 echo "${ECHO_T}$ac_res" >&6; }
28710 # Is the header compilable?
28711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28713 cat >conftest.$ac_ext <<_ACEOF
28716 cat confdefs.h >>conftest.$ac_ext
28717 cat >>conftest.$ac_ext <<_ACEOF
28718 /* end confdefs.h. */
28719 $ac_includes_default
28720 #include <$ac_header>
28722 rm -f conftest.$ac_objext
28723 if { (ac_try="$ac_compile"
28724 case "(($ac_try" in
28725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726 *) ac_try_echo=$ac_try;;
28728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_compile") 2>conftest.er1
28731 grep -v '^ *+' conftest.er1 >conftest.err
28733 cat conftest.err >&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } &&
28736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28737 { (case "(($ac_try" in
28738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742 (eval "$ac_try") 2>&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; } &&
28746 { ac_try='test -s conftest.$ac_objext'
28747 { (case "(($ac_try" in
28748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749 *) ac_try_echo=$ac_try;;
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752 (eval "$ac_try") 2>&5
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; }; then
28756 ac_header_compiler=yes
28758 echo "$as_me: failed program was:" >&5
28759 sed 's/^/| /' conftest.$ac_ext >&5
28761 ac_header_compiler=no
28764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28766 echo "${ECHO_T}$ac_header_compiler" >&6; }
28768 # Is the header present?
28769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28771 cat >conftest.$ac_ext <<_ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h. */
28777 #include <$ac_header>
28779 if { (ac_try="$ac_cpp conftest.$ac_ext"
28780 case "(($ac_try" in
28781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28782 *) ac_try_echo=$ac_try;;
28784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28787 grep -v '^ *+' conftest.er1 >conftest.err
28789 cat conftest.err >&5
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); } >/dev/null; then
28792 if test -s conftest.err; then
28793 ac_cpp_err=$ac_c_preproc_warn_flag
28794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28801 if test -z "$ac_cpp_err"; then
28802 ac_header_preproc=yes
28804 echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28807 ac_header_preproc=no
28810 rm -f conftest.err conftest.$ac_ext
28811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28812 echo "${ECHO_T}$ac_header_preproc" >&6; }
28814 # So? What about this header?
28815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28821 ac_header_preproc=yes
28824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28837 ## ----------------------------------- ##
28838 ## Report this to llvmbugs@cs.uiuc.edu ##
28839 ## ----------------------------------- ##
28841 ) | sed "s/^/$as_me: WARNING: /" >&2
28844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28847 echo $ECHO_N "(cached) $ECHO_C" >&6
28849 eval "$as_ac_Header=\$ac_header_preproc"
28851 ac_res=`eval echo '${'$as_ac_Header'}'`
28852 { echo "$as_me:$LINENO: result: $ac_res" >&5
28853 echo "${ECHO_T}$ac_res" >&6; }
28856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28857 cat >>confdefs.h <<_ACEOF
28858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28868 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28875 echo $ECHO_N "(cached) $ECHO_C" >&6
28877 ac_res=`eval echo '${'$as_ac_Header'}'`
28878 { echo "$as_me:$LINENO: result: $ac_res" >&5
28879 echo "${ECHO_T}$ac_res" >&6; }
28881 # Is the header compilable?
28882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28884 cat >conftest.$ac_ext <<_ACEOF
28887 cat confdefs.h >>conftest.$ac_ext
28888 cat >>conftest.$ac_ext <<_ACEOF
28889 /* end confdefs.h. */
28890 $ac_includes_default
28891 #include <$ac_header>
28893 rm -f conftest.$ac_objext
28894 if { (ac_try="$ac_compile"
28895 case "(($ac_try" in
28896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897 *) ac_try_echo=$ac_try;;
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900 (eval "$ac_compile") 2>conftest.er1
28902 grep -v '^ *+' conftest.er1 >conftest.err
28904 cat conftest.err >&5
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); } &&
28907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28908 { (case "(($ac_try" in
28909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910 *) ac_try_echo=$ac_try;;
28912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913 (eval "$ac_try") 2>&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); }; } &&
28917 { ac_try='test -s conftest.$ac_objext'
28918 { (case "(($ac_try" in
28919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920 *) ac_try_echo=$ac_try;;
28922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923 (eval "$ac_try") 2>&5
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; }; then
28927 ac_header_compiler=yes
28929 echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28932 ac_header_compiler=no
28935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28937 echo "${ECHO_T}$ac_header_compiler" >&6; }
28939 # Is the header present?
28940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28942 cat >conftest.$ac_ext <<_ACEOF
28945 cat confdefs.h >>conftest.$ac_ext
28946 cat >>conftest.$ac_ext <<_ACEOF
28947 /* end confdefs.h. */
28948 #include <$ac_header>
28950 if { (ac_try="$ac_cpp conftest.$ac_ext"
28951 case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28958 grep -v '^ *+' conftest.er1 >conftest.err
28960 cat conftest.err >&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); } >/dev/null; then
28963 if test -s conftest.err; then
28964 ac_cpp_err=$ac_c_preproc_warn_flag
28965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28972 if test -z "$ac_cpp_err"; then
28973 ac_header_preproc=yes
28975 echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28978 ac_header_preproc=no
28981 rm -f conftest.err conftest.$ac_ext
28982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28983 echo "${ECHO_T}$ac_header_preproc" >&6; }
28985 # So? What about this header?
28986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28992 ac_header_preproc=yes
28995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29008 ## ----------------------------------- ##
29009 ## Report this to llvmbugs@cs.uiuc.edu ##
29010 ## ----------------------------------- ##
29012 ) | sed "s/^/$as_me: WARNING: /" >&2
29015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29018 echo $ECHO_N "(cached) $ECHO_C" >&6
29020 eval "$as_ac_Header=\$ac_header_preproc"
29022 ac_res=`eval echo '${'$as_ac_Header'}'`
29023 { echo "$as_me:$LINENO: result: $ac_res" >&5
29024 echo "${ECHO_T}$ac_res" >&6; }
29027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29028 cat >>confdefs.h <<_ACEOF
29029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29036 if test "$ENABLE_THREADS" -eq 1 ; then
29037 if test "${ac_cv_header_pthread_h+set}" = set; then
29038 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29039 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29040 if test "${ac_cv_header_pthread_h+set}" = set; then
29041 echo $ECHO_N "(cached) $ECHO_C" >&6
29043 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29044 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29046 # Is the header compilable?
29047 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29048 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29049 cat >conftest.$ac_ext <<_ACEOF
29052 cat confdefs.h >>conftest.$ac_ext
29053 cat >>conftest.$ac_ext <<_ACEOF
29054 /* end confdefs.h. */
29055 $ac_includes_default
29056 #include <pthread.h>
29058 rm -f conftest.$ac_objext
29059 if { (ac_try="$ac_compile"
29060 case "(($ac_try" in
29061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_compile") 2>conftest.er1
29067 grep -v '^ *+' conftest.er1 >conftest.err
29069 cat conftest.err >&5
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); } &&
29072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29073 { (case "(($ac_try" in
29074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075 *) ac_try_echo=$ac_try;;
29077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078 (eval "$ac_try") 2>&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; } &&
29082 { ac_try='test -s conftest.$ac_objext'
29083 { (case "(($ac_try" in
29084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085 *) ac_try_echo=$ac_try;;
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088 (eval "$ac_try") 2>&5
29090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091 (exit $ac_status); }; }; then
29092 ac_header_compiler=yes
29094 echo "$as_me: failed program was:" >&5
29095 sed 's/^/| /' conftest.$ac_ext >&5
29097 ac_header_compiler=no
29100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29102 echo "${ECHO_T}$ac_header_compiler" >&6; }
29104 # Is the header present?
29105 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29106 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29107 cat >conftest.$ac_ext <<_ACEOF
29110 cat confdefs.h >>conftest.$ac_ext
29111 cat >>conftest.$ac_ext <<_ACEOF
29112 /* end confdefs.h. */
29113 #include <pthread.h>
29115 if { (ac_try="$ac_cpp conftest.$ac_ext"
29116 case "(($ac_try" in
29117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29118 *) ac_try_echo=$ac_try;;
29120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29123 grep -v '^ *+' conftest.er1 >conftest.err
29125 cat conftest.err >&5
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); } >/dev/null; then
29128 if test -s conftest.err; then
29129 ac_cpp_err=$ac_c_preproc_warn_flag
29130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29137 if test -z "$ac_cpp_err"; then
29138 ac_header_preproc=yes
29140 echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29143 ac_header_preproc=no
29146 rm -f conftest.err conftest.$ac_ext
29147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29148 echo "${ECHO_T}$ac_header_preproc" >&6; }
29150 # So? What about this header?
29151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29153 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29154 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29156 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29157 ac_header_preproc=yes
29160 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29161 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29162 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29163 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29164 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29165 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29166 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29167 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29168 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29169 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29170 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29171 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29173 ## ----------------------------------- ##
29174 ## Report this to llvmbugs@cs.uiuc.edu ##
29175 ## ----------------------------------- ##
29177 ) | sed "s/^/$as_me: WARNING: /" >&2
29180 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29181 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29182 if test "${ac_cv_header_pthread_h+set}" = set; then
29183 echo $ECHO_N "(cached) $ECHO_C" >&6
29185 ac_cv_header_pthread_h=$ac_header_preproc
29187 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29188 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29191 if test $ac_cv_header_pthread_h = yes; then
29207 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29208 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29209 if test "${ac_cv_huge_val_sanity+set}" = set; then
29210 echo $ECHO_N "(cached) $ECHO_C" >&6
29214 ac_cpp='$CXXCPP $CPPFLAGS'
29215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29220 if test "$cross_compiling" = yes; then
29221 ac_cv_huge_val_sanity=yes
29223 cat >conftest.$ac_ext <<_ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h. */
29233 double x = HUGE_VAL; return x != x;
29238 rm -f conftest$ac_exeext
29239 if { (ac_try="$ac_link"
29240 case "(($ac_try" in
29241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29242 *) ac_try_echo=$ac_try;;
29244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29245 (eval "$ac_link") 2>&5
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29249 { (case "(($ac_try" in
29250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251 *) ac_try_echo=$ac_try;;
29253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254 (eval "$ac_try") 2>&5
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; }; then
29258 ac_cv_huge_val_sanity=yes
29260 echo "$as_me: program exited with status $ac_status" >&5
29261 echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29264 ( exit $ac_status )
29265 ac_cv_huge_val_sanity=no
29267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29272 ac_cpp='$CPP $CPPFLAGS'
29273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29279 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29280 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29281 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29284 { echo "$as_me:$LINENO: checking for pid_t" >&5
29285 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29286 if test "${ac_cv_type_pid_t+set}" = set; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29289 cat >conftest.$ac_ext <<_ACEOF
29292 cat confdefs.h >>conftest.$ac_ext
29293 cat >>conftest.$ac_ext <<_ACEOF
29294 /* end confdefs.h. */
29295 $ac_includes_default
29296 typedef pid_t ac__type_new_;
29300 if ((ac__type_new_ *) 0)
29302 if (sizeof (ac__type_new_))
29308 rm -f conftest.$ac_objext
29309 if { (ac_try="$ac_compile"
29310 case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_compile") 2>conftest.er1
29317 grep -v '^ *+' conftest.er1 >conftest.err
29319 cat conftest.err >&5
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); } &&
29322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29323 { (case "(($ac_try" in
29324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29325 *) ac_try_echo=$ac_try;;
29327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29328 (eval "$ac_try") 2>&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; } &&
29332 { ac_try='test -s conftest.$ac_objext'
29333 { (case "(($ac_try" in
29334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335 *) ac_try_echo=$ac_try;;
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338 (eval "$ac_try") 2>&5
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; }; then
29342 ac_cv_type_pid_t=yes
29344 echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29347 ac_cv_type_pid_t=no
29350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29352 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29353 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29354 if test $ac_cv_type_pid_t = yes; then
29358 cat >>confdefs.h <<_ACEOF
29364 { echo "$as_me:$LINENO: checking for size_t" >&5
29365 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29366 if test "${ac_cv_type_size_t+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29369 cat >conftest.$ac_ext <<_ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h. */
29375 $ac_includes_default
29376 typedef size_t ac__type_new_;
29380 if ((ac__type_new_ *) 0)
29382 if (sizeof (ac__type_new_))
29388 rm -f conftest.$ac_objext
29389 if { (ac_try="$ac_compile"
29390 case "(($ac_try" in
29391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392 *) ac_try_echo=$ac_try;;
29394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395 (eval "$ac_compile") 2>conftest.er1
29397 grep -v '^ *+' conftest.er1 >conftest.err
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
29402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29403 { (case "(($ac_try" in
29404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405 *) ac_try_echo=$ac_try;;
29407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408 (eval "$ac_try") 2>&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; } &&
29412 { ac_try='test -s conftest.$ac_objext'
29413 { (case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_try") 2>&5
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; }; then
29422 ac_cv_type_size_t=yes
29424 echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29427 ac_cv_type_size_t=no
29430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29433 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29434 if test $ac_cv_type_size_t = yes; then
29438 cat >>confdefs.h <<_ACEOF
29439 #define size_t unsigned int
29444 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29445 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29446 if test "${ac_cv_type_signal+set}" = set; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 cat >conftest.$ac_ext <<_ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h. */
29455 #include <sys/types.h>
29456 #include <signal.h>
29461 return *(signal (0, 0)) (0) == 1;
29466 rm -f conftest.$ac_objext
29467 if { (ac_try="$ac_compile"
29468 case "(($ac_try" in
29469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470 *) ac_try_echo=$ac_try;;
29472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473 (eval "$ac_compile") 2>conftest.er1
29475 grep -v '^ *+' conftest.er1 >conftest.err
29477 cat conftest.err >&5
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
29480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29481 { (case "(($ac_try" in
29482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483 *) ac_try_echo=$ac_try;;
29485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486 (eval "$ac_try") 2>&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); }; } &&
29490 { ac_try='test -s conftest.$ac_objext'
29491 { (case "(($ac_try" in
29492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 *) ac_try_echo=$ac_try;;
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496 (eval "$ac_try") 2>&5
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; }; then
29500 ac_cv_type_signal=int
29502 echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29505 ac_cv_type_signal=void
29508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29510 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29511 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29513 cat >>confdefs.h <<_ACEOF
29514 #define RETSIGTYPE $ac_cv_type_signal
29518 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29519 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29520 if test "${ac_cv_struct_tm+set}" = set; then
29521 echo $ECHO_N "(cached) $ECHO_C" >&6
29523 cat >conftest.$ac_ext <<_ACEOF
29526 cat confdefs.h >>conftest.$ac_ext
29527 cat >>conftest.$ac_ext <<_ACEOF
29528 /* end confdefs.h. */
29529 #include <sys/types.h>
29535 struct tm *tp; tp->tm_sec;
29540 rm -f conftest.$ac_objext
29541 if { (ac_try="$ac_compile"
29542 case "(($ac_try" in
29543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544 *) ac_try_echo=$ac_try;;
29546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29547 (eval "$ac_compile") 2>conftest.er1
29549 grep -v '^ *+' conftest.er1 >conftest.err
29551 cat conftest.err >&5
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } &&
29554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29555 { (case "(($ac_try" in
29556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557 *) ac_try_echo=$ac_try;;
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560 (eval "$ac_try") 2>&5
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); }; } &&
29564 { ac_try='test -s conftest.$ac_objext'
29565 { (case "(($ac_try" in
29566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567 *) ac_try_echo=$ac_try;;
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570 (eval "$ac_try") 2>&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); }; }; then
29574 ac_cv_struct_tm=time.h
29576 echo "$as_me: failed program was:" >&5
29577 sed 's/^/| /' conftest.$ac_ext >&5
29579 ac_cv_struct_tm=sys/time.h
29582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29584 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29585 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29586 if test $ac_cv_struct_tm = sys/time.h; then
29588 cat >>confdefs.h <<\_ACEOF
29589 #define TM_IN_SYS_TIME 1
29594 { echo "$as_me:$LINENO: checking for int64_t" >&5
29595 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29596 if test "${ac_cv_type_int64_t+set}" = set; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29599 cat >conftest.$ac_ext <<_ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h. */
29605 $ac_includes_default
29606 typedef int64_t ac__type_new_;
29610 if ((ac__type_new_ *) 0)
29612 if (sizeof (ac__type_new_))
29618 rm -f conftest.$ac_objext
29619 if { (ac_try="$ac_compile"
29620 case "(($ac_try" in
29621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622 *) ac_try_echo=$ac_try;;
29624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625 (eval "$ac_compile") 2>conftest.er1
29627 grep -v '^ *+' conftest.er1 >conftest.err
29629 cat conftest.err >&5
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); } &&
29632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29633 { (case "(($ac_try" in
29634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29635 *) ac_try_echo=$ac_try;;
29637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29638 (eval "$ac_try") 2>&5
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; } &&
29642 { ac_try='test -s conftest.$ac_objext'
29643 { (case "(($ac_try" in
29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_try") 2>&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); }; }; then
29652 ac_cv_type_int64_t=yes
29654 echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29657 ac_cv_type_int64_t=no
29660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29662 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29663 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29664 if test $ac_cv_type_int64_t = yes; then
29666 cat >>confdefs.h <<_ACEOF
29667 #define HAVE_INT64_T 1
29672 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29673 echo "$as_me: error: Type int64_t required but not found" >&2;}
29674 { (exit 1); exit 1; }; }
29677 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29678 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29679 if test "${ac_cv_type_uint64_t+set}" = set; then
29680 echo $ECHO_N "(cached) $ECHO_C" >&6
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29688 $ac_includes_default
29689 typedef uint64_t ac__type_new_;
29693 if ((ac__type_new_ *) 0)
29695 if (sizeof (ac__type_new_))
29701 rm -f conftest.$ac_objext
29702 if { (ac_try="$ac_compile"
29703 case "(($ac_try" in
29704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29705 *) ac_try_echo=$ac_try;;
29707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29708 (eval "$ac_compile") 2>conftest.er1
29710 grep -v '^ *+' conftest.er1 >conftest.err
29712 cat conftest.err >&5
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); } &&
29715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29716 { (case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_try") 2>&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; } &&
29725 { ac_try='test -s conftest.$ac_objext'
29726 { (case "(($ac_try" in
29727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728 *) ac_try_echo=$ac_try;;
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731 (eval "$ac_try") 2>&5
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); }; }; then
29735 ac_cv_type_uint64_t=yes
29737 echo "$as_me: failed program was:" >&5
29738 sed 's/^/| /' conftest.$ac_ext >&5
29740 ac_cv_type_uint64_t=no
29743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29745 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29746 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29747 if test $ac_cv_type_uint64_t = yes; then
29749 cat >>confdefs.h <<_ACEOF
29750 #define HAVE_UINT64_T 1
29755 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29756 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29757 if test "${ac_cv_type_u_int64_t+set}" = set; then
29758 echo $ECHO_N "(cached) $ECHO_C" >&6
29760 cat >conftest.$ac_ext <<_ACEOF
29763 cat confdefs.h >>conftest.$ac_ext
29764 cat >>conftest.$ac_ext <<_ACEOF
29765 /* end confdefs.h. */
29766 $ac_includes_default
29767 typedef u_int64_t ac__type_new_;
29771 if ((ac__type_new_ *) 0)
29773 if (sizeof (ac__type_new_))
29779 rm -f conftest.$ac_objext
29780 if { (ac_try="$ac_compile"
29781 case "(($ac_try" in
29782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783 *) ac_try_echo=$ac_try;;
29785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786 (eval "$ac_compile") 2>conftest.er1
29788 grep -v '^ *+' conftest.er1 >conftest.err
29790 cat conftest.err >&5
29791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); } &&
29793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29794 { (case "(($ac_try" in
29795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29796 *) ac_try_echo=$ac_try;;
29798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29799 (eval "$ac_try") 2>&5
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); }; } &&
29803 { ac_try='test -s conftest.$ac_objext'
29804 { (case "(($ac_try" in
29805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806 *) ac_try_echo=$ac_try;;
29808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809 (eval "$ac_try") 2>&5
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); }; }; then
29813 ac_cv_type_u_int64_t=yes
29815 echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29818 ac_cv_type_u_int64_t=no
29821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29823 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29824 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29825 if test $ac_cv_type_u_int64_t = yes; then
29827 cat >>confdefs.h <<_ACEOF
29828 #define HAVE_U_INT64_T 1
29833 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29834 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29835 { (exit 1); exit 1; }; }
29849 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29855 echo $ECHO_N "(cached) $ECHO_C" >&6
29857 cat >conftest.$ac_ext <<_ACEOF
29860 cat confdefs.h >>conftest.$ac_ext
29861 cat >>conftest.$ac_ext <<_ACEOF
29862 /* end confdefs.h. */
29863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29865 #define $ac_func innocuous_$ac_func
29867 /* System header to define __stub macros and hopefully few prototypes,
29868 which can conflict with char $ac_func (); below.
29869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29870 <limits.h> exists even on freestanding compilers. */
29873 # include <limits.h>
29875 # include <assert.h>
29880 /* Override any GCC internal prototype to avoid an error.
29881 Use char because int might match the return type of a GCC
29882 builtin and then its argument prototype would still apply. */
29887 /* The GNU C library defines this for functions which it implements
29888 to always fail with ENOSYS. Some functions are actually named
29889 something starting with __ and the normal name is an alias. */
29890 #if defined __stub_$ac_func || defined __stub___$ac_func
29897 return $ac_func ();
29902 rm -f conftest.$ac_objext conftest$ac_exeext
29903 if { (ac_try="$ac_link"
29904 case "(($ac_try" in
29905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29906 *) ac_try_echo=$ac_try;;
29908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29909 (eval "$ac_link") 2>conftest.er1
29911 grep -v '^ *+' conftest.er1 >conftest.err
29913 cat conftest.err >&5
29914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); } &&
29916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29917 { (case "(($ac_try" in
29918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919 *) ac_try_echo=$ac_try;;
29921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29922 (eval "$ac_try") 2>&5
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); }; } &&
29926 { ac_try='test -s conftest$ac_exeext'
29927 { (case "(($ac_try" in
29928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29929 *) ac_try_echo=$ac_try;;
29931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29932 (eval "$ac_try") 2>&5
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); }; }; then
29936 eval "$as_ac_var=yes"
29938 echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29941 eval "$as_ac_var=no"
29944 rm -f core conftest.err conftest.$ac_objext \
29945 conftest$ac_exeext conftest.$ac_ext
29947 ac_res=`eval echo '${'$as_ac_var'}'`
29948 { echo "$as_me:$LINENO: result: $ac_res" >&5
29949 echo "${ECHO_T}$ac_res" >&6; }
29950 if test `eval echo '${'$as_ac_var'}'` = yes; then
29951 cat >>confdefs.h <<_ACEOF
29952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29964 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29970 echo $ECHO_N "(cached) $ECHO_C" >&6
29972 cat >conftest.$ac_ext <<_ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h. */
29978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29980 #define $ac_func innocuous_$ac_func
29982 /* System header to define __stub macros and hopefully few prototypes,
29983 which can conflict with char $ac_func (); below.
29984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29985 <limits.h> exists even on freestanding compilers. */
29988 # include <limits.h>
29990 # include <assert.h>
29995 /* Override any GCC internal prototype to avoid an error.
29996 Use char because int might match the return type of a GCC
29997 builtin and then its argument prototype would still apply. */
30002 /* The GNU C library defines this for functions which it implements
30003 to always fail with ENOSYS. Some functions are actually named
30004 something starting with __ and the normal name is an alias. */
30005 #if defined __stub_$ac_func || defined __stub___$ac_func
30012 return $ac_func ();
30017 rm -f conftest.$ac_objext conftest$ac_exeext
30018 if { (ac_try="$ac_link"
30019 case "(($ac_try" in
30020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021 *) ac_try_echo=$ac_try;;
30023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30024 (eval "$ac_link") 2>conftest.er1
30026 grep -v '^ *+' conftest.er1 >conftest.err
30028 cat conftest.err >&5
30029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); } &&
30031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30032 { (case "(($ac_try" in
30033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034 *) ac_try_echo=$ac_try;;
30036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30037 (eval "$ac_try") 2>&5
30039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040 (exit $ac_status); }; } &&
30041 { ac_try='test -s conftest$ac_exeext'
30042 { (case "(($ac_try" in
30043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30044 *) ac_try_echo=$ac_try;;
30046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30047 (eval "$ac_try") 2>&5
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); }; }; then
30051 eval "$as_ac_var=yes"
30053 echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30056 eval "$as_ac_var=no"
30059 rm -f core conftest.err conftest.$ac_objext \
30060 conftest$ac_exeext conftest.$ac_ext
30062 ac_res=`eval echo '${'$as_ac_var'}'`
30063 { echo "$as_me:$LINENO: result: $ac_res" >&5
30064 echo "${ECHO_T}$ac_res" >&6; }
30065 if test `eval echo '${'$as_ac_var'}'` = yes; then
30066 cat >>confdefs.h <<_ACEOF
30067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30080 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30088 cat >conftest.$ac_ext <<_ACEOF
30091 cat confdefs.h >>conftest.$ac_ext
30092 cat >>conftest.$ac_ext <<_ACEOF
30093 /* end confdefs.h. */
30094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30096 #define $ac_func innocuous_$ac_func
30098 /* System header to define __stub macros and hopefully few prototypes,
30099 which can conflict with char $ac_func (); below.
30100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30101 <limits.h> exists even on freestanding compilers. */
30104 # include <limits.h>
30106 # include <assert.h>
30111 /* Override any GCC internal prototype to avoid an error.
30112 Use char because int might match the return type of a GCC
30113 builtin and then its argument prototype would still apply. */
30118 /* The GNU C library defines this for functions which it implements
30119 to always fail with ENOSYS. Some functions are actually named
30120 something starting with __ and the normal name is an alias. */
30121 #if defined __stub_$ac_func || defined __stub___$ac_func
30128 return $ac_func ();
30133 rm -f conftest.$ac_objext conftest$ac_exeext
30134 if { (ac_try="$ac_link"
30135 case "(($ac_try" in
30136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_link") 2>conftest.er1
30142 grep -v '^ *+' conftest.er1 >conftest.err
30144 cat conftest.err >&5
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } &&
30147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30148 { (case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153 (eval "$ac_try") 2>&5
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); }; } &&
30157 { ac_try='test -s conftest$ac_exeext'
30158 { (case "(($ac_try" in
30159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160 *) ac_try_echo=$ac_try;;
30162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163 (eval "$ac_try") 2>&5
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); }; }; then
30167 eval "$as_ac_var=yes"
30169 echo "$as_me: failed program was:" >&5
30170 sed 's/^/| /' conftest.$ac_ext >&5
30172 eval "$as_ac_var=no"
30175 rm -f core conftest.err conftest.$ac_objext \
30176 conftest$ac_exeext conftest.$ac_ext
30178 ac_res=`eval echo '${'$as_ac_var'}'`
30179 { echo "$as_me:$LINENO: result: $ac_res" >&5
30180 echo "${ECHO_T}$ac_res" >&6; }
30181 if test `eval echo '${'$as_ac_var'}'` = yes; then
30182 cat >>confdefs.h <<_ACEOF
30183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30193 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30199 echo $ECHO_N "(cached) $ECHO_C" >&6
30201 cat >conftest.$ac_ext <<_ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h. */
30207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30209 #define $ac_func innocuous_$ac_func
30211 /* System header to define __stub macros and hopefully few prototypes,
30212 which can conflict with char $ac_func (); below.
30213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30214 <limits.h> exists even on freestanding compilers. */
30217 # include <limits.h>
30219 # include <assert.h>
30224 /* Override any GCC internal prototype to avoid an error.
30225 Use char because int might match the return type of a GCC
30226 builtin and then its argument prototype would still apply. */
30231 /* The GNU C library defines this for functions which it implements
30232 to always fail with ENOSYS. Some functions are actually named
30233 something starting with __ and the normal name is an alias. */
30234 #if defined __stub_$ac_func || defined __stub___$ac_func
30241 return $ac_func ();
30246 rm -f conftest.$ac_objext conftest$ac_exeext
30247 if { (ac_try="$ac_link"
30248 case "(($ac_try" in
30249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250 *) ac_try_echo=$ac_try;;
30252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253 (eval "$ac_link") 2>conftest.er1
30255 grep -v '^ *+' conftest.er1 >conftest.err
30257 cat conftest.err >&5
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); } &&
30260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30261 { (case "(($ac_try" in
30262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263 *) ac_try_echo=$ac_try;;
30265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266 (eval "$ac_try") 2>&5
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; } &&
30270 { ac_try='test -s conftest$ac_exeext'
30271 { (case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_try") 2>&5
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); }; }; then
30280 eval "$as_ac_var=yes"
30282 echo "$as_me: failed program was:" >&5
30283 sed 's/^/| /' conftest.$ac_ext >&5
30285 eval "$as_ac_var=no"
30288 rm -f core conftest.err conftest.$ac_objext \
30289 conftest$ac_exeext conftest.$ac_ext
30291 ac_res=`eval echo '${'$as_ac_var'}'`
30292 { echo "$as_me:$LINENO: result: $ac_res" >&5
30293 echo "${ECHO_T}$ac_res" >&6; }
30294 if test `eval echo '${'$as_ac_var'}'` = yes; then
30295 cat >>confdefs.h <<_ACEOF
30296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30308 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30314 echo $ECHO_N "(cached) $ECHO_C" >&6
30316 cat >conftest.$ac_ext <<_ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h. */
30322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30324 #define $ac_func innocuous_$ac_func
30326 /* System header to define __stub macros and hopefully few prototypes,
30327 which can conflict with char $ac_func (); below.
30328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30329 <limits.h> exists even on freestanding compilers. */
30332 # include <limits.h>
30334 # include <assert.h>
30339 /* Override any GCC internal prototype to avoid an error.
30340 Use char because int might match the return type of a GCC
30341 builtin and then its argument prototype would still apply. */
30346 /* The GNU C library defines this for functions which it implements
30347 to always fail with ENOSYS. Some functions are actually named
30348 something starting with __ and the normal name is an alias. */
30349 #if defined __stub_$ac_func || defined __stub___$ac_func
30356 return $ac_func ();
30361 rm -f conftest.$ac_objext conftest$ac_exeext
30362 if { (ac_try="$ac_link"
30363 case "(($ac_try" in
30364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365 *) ac_try_echo=$ac_try;;
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368 (eval "$ac_link") 2>conftest.er1
30370 grep -v '^ *+' conftest.er1 >conftest.err
30372 cat conftest.err >&5
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); } &&
30375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30376 { (case "(($ac_try" in
30377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30378 *) ac_try_echo=$ac_try;;
30380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30381 (eval "$ac_try") 2>&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; } &&
30385 { ac_try='test -s conftest$ac_exeext'
30386 { (case "(($ac_try" in
30387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388 *) ac_try_echo=$ac_try;;
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391 (eval "$ac_try") 2>&5
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; }; then
30395 eval "$as_ac_var=yes"
30397 echo "$as_me: failed program was:" >&5
30398 sed 's/^/| /' conftest.$ac_ext >&5
30400 eval "$as_ac_var=no"
30403 rm -f core conftest.err conftest.$ac_objext \
30404 conftest$ac_exeext conftest.$ac_ext
30406 ac_res=`eval echo '${'$as_ac_var'}'`
30407 { echo "$as_me:$LINENO: result: $ac_res" >&5
30408 echo "${ECHO_T}$ac_res" >&6; }
30409 if test `eval echo '${'$as_ac_var'}'` = yes; then
30410 cat >>confdefs.h <<_ACEOF
30411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30417 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30418 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30419 if test "${llvm_cv_c_printf_a+set}" = set; then
30420 echo $ECHO_N "(cached) $ECHO_C" >&6
30423 ac_cpp='$CPP $CPPFLAGS'
30424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30428 if test "$cross_compiling" = yes; then
30429 llvmac_cv_c_printf_a=no
30431 cat >conftest.$ac_ext <<_ACEOF
30435 cat confdefs.h >>conftest.$ac_ext
30436 cat >>conftest.$ac_ext <<_ACEOF
30437 /* end confdefs.h. */
30440 #include <stdlib.h>
30446 volatile double A, B;
30450 sprintf(Buffer, "%a", A);
30454 if (A != 0x1.999999999999ap-4)
30461 rm -f conftest$ac_exeext
30462 if { (ac_try="$ac_link"
30463 case "(($ac_try" in
30464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30465 *) ac_try_echo=$ac_try;;
30467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30468 (eval "$ac_link") 2>&5
30470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30472 { (case "(($ac_try" in
30473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30474 *) ac_try_echo=$ac_try;;
30476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30477 (eval "$ac_try") 2>&5
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; }; then
30481 llvm_cv_c_printf_a=yes
30483 echo "$as_me: program exited with status $ac_status" >&5
30484 echo "$as_me: failed program was:" >&5
30485 sed 's/^/| /' conftest.$ac_ext >&5
30487 ( exit $ac_status )
30488 llvmac_cv_c_printf_a=no
30490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30495 ac_cpp='$CPP $CPPFLAGS'
30496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30501 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30502 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30503 if test "$llvm_cv_c_printf_a" = "yes"; then
30505 cat >>confdefs.h <<\_ACEOF
30506 #define HAVE_PRINTF_A 1
30511 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30512 # for constant arguments. Useless!
30513 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30514 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30515 if test "${ac_cv_working_alloca_h+set}" = set; then
30516 echo $ECHO_N "(cached) $ECHO_C" >&6
30518 cat >conftest.$ac_ext <<_ACEOF
30521 cat confdefs.h >>conftest.$ac_ext
30522 cat >>conftest.$ac_ext <<_ACEOF
30523 /* end confdefs.h. */
30524 #include <alloca.h>
30528 char *p = (char *) alloca (2 * sizeof (int));
30534 rm -f conftest.$ac_objext conftest$ac_exeext
30535 if { (ac_try="$ac_link"
30536 case "(($ac_try" in
30537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538 *) ac_try_echo=$ac_try;;
30540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541 (eval "$ac_link") 2>conftest.er1
30543 grep -v '^ *+' conftest.er1 >conftest.err
30545 cat conftest.err >&5
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); } &&
30548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30549 { (case "(($ac_try" in
30550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551 *) ac_try_echo=$ac_try;;
30553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554 (eval "$ac_try") 2>&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); }; } &&
30558 { ac_try='test -s conftest$ac_exeext'
30559 { (case "(($ac_try" in
30560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561 *) ac_try_echo=$ac_try;;
30563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564 (eval "$ac_try") 2>&5
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
30568 ac_cv_working_alloca_h=yes
30570 echo "$as_me: failed program was:" >&5
30571 sed 's/^/| /' conftest.$ac_ext >&5
30573 ac_cv_working_alloca_h=no
30576 rm -f core conftest.err conftest.$ac_objext \
30577 conftest$ac_exeext conftest.$ac_ext
30579 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30580 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30581 if test $ac_cv_working_alloca_h = yes; then
30583 cat >>confdefs.h <<\_ACEOF
30584 #define HAVE_ALLOCA_H 1
30589 { echo "$as_me:$LINENO: checking for alloca" >&5
30590 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30591 if test "${ac_cv_func_alloca_works+set}" = set; then
30592 echo $ECHO_N "(cached) $ECHO_C" >&6
30594 cat >conftest.$ac_ext <<_ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h. */
30601 # define alloca __builtin_alloca
30604 # include <malloc.h>
30605 # define alloca _alloca
30608 # include <alloca.h>
30613 # ifndef alloca /* predefined by HP cc +Olibcalls */
30624 char *p = (char *) alloca (1);
30630 rm -f conftest.$ac_objext conftest$ac_exeext
30631 if { (ac_try="$ac_link"
30632 case "(($ac_try" in
30633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30634 *) ac_try_echo=$ac_try;;
30636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30637 (eval "$ac_link") 2>conftest.er1
30639 grep -v '^ *+' conftest.er1 >conftest.err
30641 cat conftest.err >&5
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); } &&
30644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30645 { (case "(($ac_try" in
30646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30647 *) ac_try_echo=$ac_try;;
30649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30650 (eval "$ac_try") 2>&5
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; } &&
30654 { ac_try='test -s conftest$ac_exeext'
30655 { (case "(($ac_try" in
30656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30657 *) ac_try_echo=$ac_try;;
30659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30660 (eval "$ac_try") 2>&5
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); }; }; then
30664 ac_cv_func_alloca_works=yes
30666 echo "$as_me: failed program was:" >&5
30667 sed 's/^/| /' conftest.$ac_ext >&5
30669 ac_cv_func_alloca_works=no
30672 rm -f core conftest.err conftest.$ac_objext \
30673 conftest$ac_exeext conftest.$ac_ext
30675 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30676 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30678 if test $ac_cv_func_alloca_works = yes; then
30680 cat >>confdefs.h <<\_ACEOF
30681 #define HAVE_ALLOCA 1
30685 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30686 # that cause trouble. Some versions do not even contain alloca or
30687 # contain a buggy version. If you still want to use their alloca,
30688 # use ar to extract alloca.o from them instead of compiling alloca.c.
30690 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30692 cat >>confdefs.h <<\_ACEOF
30697 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30698 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30699 if test "${ac_cv_os_cray+set}" = set; then
30700 echo $ECHO_N "(cached) $ECHO_C" >&6
30702 cat >conftest.$ac_ext <<_ACEOF
30705 cat confdefs.h >>conftest.$ac_ext
30706 cat >>conftest.$ac_ext <<_ACEOF
30707 /* end confdefs.h. */
30708 #if defined CRAY && ! defined CRAY2
30715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30716 $EGREP "webecray" >/dev/null 2>&1; then
30724 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30725 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30726 if test $ac_cv_os_cray = yes; then
30727 for ac_func in _getb67 GETB67 getb67; do
30728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30732 echo $ECHO_N "(cached) $ECHO_C" >&6
30734 cat >conftest.$ac_ext <<_ACEOF
30737 cat confdefs.h >>conftest.$ac_ext
30738 cat >>conftest.$ac_ext <<_ACEOF
30739 /* end confdefs.h. */
30740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30742 #define $ac_func innocuous_$ac_func
30744 /* System header to define __stub macros and hopefully few prototypes,
30745 which can conflict with char $ac_func (); below.
30746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30747 <limits.h> exists even on freestanding compilers. */
30750 # include <limits.h>
30752 # include <assert.h>
30757 /* Override any GCC internal prototype to avoid an error.
30758 Use char because int might match the return type of a GCC
30759 builtin and then its argument prototype would still apply. */
30764 /* The GNU C library defines this for functions which it implements
30765 to always fail with ENOSYS. Some functions are actually named
30766 something starting with __ and the normal name is an alias. */
30767 #if defined __stub_$ac_func || defined __stub___$ac_func
30774 return $ac_func ();
30779 rm -f conftest.$ac_objext conftest$ac_exeext
30780 if { (ac_try="$ac_link"
30781 case "(($ac_try" in
30782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783 *) ac_try_echo=$ac_try;;
30785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30786 (eval "$ac_link") 2>conftest.er1
30788 grep -v '^ *+' conftest.er1 >conftest.err
30790 cat conftest.err >&5
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); } &&
30793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30794 { (case "(($ac_try" in
30795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30796 *) ac_try_echo=$ac_try;;
30798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30799 (eval "$ac_try") 2>&5
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; } &&
30803 { ac_try='test -s conftest$ac_exeext'
30804 { (case "(($ac_try" in
30805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30806 *) ac_try_echo=$ac_try;;
30808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30809 (eval "$ac_try") 2>&5
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); }; }; then
30813 eval "$as_ac_var=yes"
30815 echo "$as_me: failed program was:" >&5
30816 sed 's/^/| /' conftest.$ac_ext >&5
30818 eval "$as_ac_var=no"
30821 rm -f core conftest.err conftest.$ac_objext \
30822 conftest$ac_exeext conftest.$ac_ext
30824 ac_res=`eval echo '${'$as_ac_var'}'`
30825 { echo "$as_me:$LINENO: result: $ac_res" >&5
30826 echo "${ECHO_T}$ac_res" >&6; }
30827 if test `eval echo '${'$as_ac_var'}'` = yes; then
30829 cat >>confdefs.h <<_ACEOF
30830 #define CRAY_STACKSEG_END $ac_func
30839 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30840 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30841 if test "${ac_cv_c_stack_direction+set}" = set; then
30842 echo $ECHO_N "(cached) $ECHO_C" >&6
30844 if test "$cross_compiling" = yes; then
30845 ac_cv_c_stack_direction=0
30847 cat >conftest.$ac_ext <<_ACEOF
30850 cat confdefs.h >>conftest.$ac_ext
30851 cat >>conftest.$ac_ext <<_ACEOF
30852 /* end confdefs.h. */
30853 $ac_includes_default
30855 find_stack_direction ()
30857 static char *addr = 0;
30862 return find_stack_direction ();
30865 return (&dummy > addr) ? 1 : -1;
30871 return find_stack_direction () < 0;
30874 rm -f conftest$ac_exeext
30875 if { (ac_try="$ac_link"
30876 case "(($ac_try" in
30877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30878 *) ac_try_echo=$ac_try;;
30880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30881 (eval "$ac_link") 2>&5
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30885 { (case "(($ac_try" in
30886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887 *) ac_try_echo=$ac_try;;
30889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890 (eval "$ac_try") 2>&5
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; }; then
30894 ac_cv_c_stack_direction=1
30896 echo "$as_me: program exited with status $ac_status" >&5
30897 echo "$as_me: failed program was:" >&5
30898 sed 's/^/| /' conftest.$ac_ext >&5
30900 ( exit $ac_status )
30901 ac_cv_c_stack_direction=-1
30903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30908 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30909 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30911 cat >>confdefs.h <<_ACEOF
30912 #define STACK_DIRECTION $ac_cv_c_stack_direction
30919 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30920 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30921 if test "${ac_cv_func_rand48+set}" = set; then
30922 echo $ECHO_N "(cached) $ECHO_C" >&6
30925 ac_cpp='$CXXCPP $CPPFLAGS'
30926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30930 cat >conftest.$ac_ext <<_ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h. */
30936 #include <stdlib.h>
30940 srand48(0);lrand48();drand48();
30945 rm -f conftest.$ac_objext
30946 if { (ac_try="$ac_compile"
30947 case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_compile") 2>conftest.er1
30954 grep -v '^ *+' conftest.er1 >conftest.err
30956 cat conftest.err >&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } &&
30959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30960 { (case "(($ac_try" in
30961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962 *) ac_try_echo=$ac_try;;
30964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965 (eval "$ac_try") 2>&5
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); }; } &&
30969 { ac_try='test -s conftest.$ac_objext'
30970 { (case "(($ac_try" in
30971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972 *) ac_try_echo=$ac_try;;
30974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30975 (eval "$ac_try") 2>&5
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; }; then
30979 ac_cv_func_rand48=yes
30981 echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30984 ac_cv_func_rand48=no
30987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30989 ac_cpp='$CPP $CPPFLAGS'
30990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30995 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30996 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30998 if test "$ac_cv_func_rand48" = "yes" ; then
31000 cat >>confdefs.h <<\_ACEOF
31001 #define HAVE_RAND48 1
31007 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31008 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31009 if test "${ac_cv_cxx_namespaces+set}" = set; then
31010 echo $ECHO_N "(cached) $ECHO_C" >&6
31013 ac_cpp='$CXXCPP $CPPFLAGS'
31014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31018 cat >conftest.$ac_ext <<_ACEOF
31021 cat confdefs.h >>conftest.$ac_ext
31022 cat >>conftest.$ac_ext <<_ACEOF
31023 /* end confdefs.h. */
31024 namespace Outer { namespace Inner { int i = 0; }}
31028 using namespace Outer::Inner; return i;
31033 rm -f conftest.$ac_objext
31034 if { (ac_try="$ac_compile"
31035 case "(($ac_try" in
31036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037 *) ac_try_echo=$ac_try;;
31039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31040 (eval "$ac_compile") 2>conftest.er1
31042 grep -v '^ *+' conftest.er1 >conftest.err
31044 cat conftest.err >&5
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); } &&
31047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31048 { (case "(($ac_try" in
31049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050 *) ac_try_echo=$ac_try;;
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053 (eval "$ac_try") 2>&5
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); }; } &&
31057 { ac_try='test -s conftest.$ac_objext'
31058 { (case "(($ac_try" in
31059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060 *) ac_try_echo=$ac_try;;
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_try") 2>&5
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); }; }; then
31067 ac_cv_cxx_namespaces=yes
31069 echo "$as_me: failed program was:" >&5
31070 sed 's/^/| /' conftest.$ac_ext >&5
31072 ac_cv_cxx_namespaces=no
31075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31077 ac_cpp='$CPP $CPPFLAGS'
31078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31084 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31085 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31086 if test "$ac_cv_cxx_namespaces" = yes; then
31088 cat >>confdefs.h <<\_ACEOF
31089 #define HAVE_NAMESPACES
31094 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31095 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31096 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31097 echo $ECHO_N "(cached) $ECHO_C" >&6
31101 ac_cpp='$CXXCPP $CPPFLAGS'
31102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31106 cat >conftest.$ac_ext <<_ACEOF
31109 cat confdefs.h >>conftest.$ac_ext
31110 cat >>conftest.$ac_ext <<_ACEOF
31111 /* end confdefs.h. */
31112 #include <ext/hash_map>
31113 #ifdef HAVE_NAMESPACES
31114 using namespace std;
31119 hash_map<int, int> t;
31124 rm -f conftest.$ac_objext
31125 if { (ac_try="$ac_compile"
31126 case "(($ac_try" in
31127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31128 *) ac_try_echo=$ac_try;;
31130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31131 (eval "$ac_compile") 2>conftest.er1
31133 grep -v '^ *+' conftest.er1 >conftest.err
31135 cat conftest.err >&5
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); } &&
31138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31139 { (case "(($ac_try" in
31140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141 *) ac_try_echo=$ac_try;;
31143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144 (eval "$ac_try") 2>&5
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); }; } &&
31148 { ac_try='test -s conftest.$ac_objext'
31149 { (case "(($ac_try" in
31150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151 *) ac_try_echo=$ac_try;;
31153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154 (eval "$ac_try") 2>&5
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; }; then
31158 ac_cv_cxx_have_std_ext_hash_map=yes
31160 echo "$as_me: failed program was:" >&5
31161 sed 's/^/| /' conftest.$ac_ext >&5
31163 ac_cv_cxx_have_std_ext_hash_map=no
31166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31168 ac_cpp='$CPP $CPPFLAGS'
31169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31174 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31175 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31176 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31179 cat >>confdefs.h <<\_ACEOF
31180 #define HAVE_STD_EXT_HASH_MAP 1
31185 cat >>confdefs.h <<\_ACEOF
31186 #define HAVE_STD_EXT_HASH_MAP 0
31191 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31192 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31193 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31194 echo $ECHO_N "(cached) $ECHO_C" >&6
31198 ac_cpp='$CXXCPP $CPPFLAGS'
31199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31203 cat >conftest.$ac_ext <<_ACEOF
31206 cat confdefs.h >>conftest.$ac_ext
31207 cat >>conftest.$ac_ext <<_ACEOF
31208 /* end confdefs.h. */
31209 #include <ext/hash_map>
31210 #ifdef HAVE_NAMESPACES
31211 using namespace __gnu_cxx;
31216 hash_map<int,int> t;
31221 rm -f conftest.$ac_objext
31222 if { (ac_try="$ac_compile"
31223 case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_compile") 2>conftest.er1
31230 grep -v '^ *+' conftest.er1 >conftest.err
31232 cat conftest.err >&5
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); } &&
31235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31236 { (case "(($ac_try" in
31237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31238 *) ac_try_echo=$ac_try;;
31240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31241 (eval "$ac_try") 2>&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; } &&
31245 { ac_try='test -s conftest.$ac_objext'
31246 { (case "(($ac_try" in
31247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31248 *) ac_try_echo=$ac_try;;
31250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31251 (eval "$ac_try") 2>&5
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); }; }; then
31255 ac_cv_cxx_have_gnu_ext_hash_map=yes
31257 echo "$as_me: failed program was:" >&5
31258 sed 's/^/| /' conftest.$ac_ext >&5
31260 ac_cv_cxx_have_gnu_ext_hash_map=no
31263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31265 ac_cpp='$CPP $CPPFLAGS'
31266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31271 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31272 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31273 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31276 cat >>confdefs.h <<\_ACEOF
31277 #define HAVE_GNU_EXT_HASH_MAP 1
31282 cat >>confdefs.h <<\_ACEOF
31283 #define HAVE_GNU_EXT_HASH_MAP 0
31288 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31289 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31290 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31291 echo $ECHO_N "(cached) $ECHO_C" >&6
31295 ac_cpp='$CXXCPP $CPPFLAGS'
31296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31300 cat >conftest.$ac_ext <<_ACEOF
31303 cat confdefs.h >>conftest.$ac_ext
31304 cat >>conftest.$ac_ext <<_ACEOF
31305 /* end confdefs.h. */
31306 #include <hash_map>
31310 hash_map<int,int> t;
31315 rm -f conftest.$ac_objext
31316 if { (ac_try="$ac_compile"
31317 case "(($ac_try" in
31318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319 *) ac_try_echo=$ac_try;;
31321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322 (eval "$ac_compile") 2>conftest.er1
31324 grep -v '^ *+' conftest.er1 >conftest.err
31326 cat conftest.err >&5
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); } &&
31329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31330 { (case "(($ac_try" in
31331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332 *) ac_try_echo=$ac_try;;
31334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335 (eval "$ac_try") 2>&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; } &&
31339 { ac_try='test -s conftest.$ac_objext'
31340 { (case "(($ac_try" in
31341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342 *) ac_try_echo=$ac_try;;
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345 (eval "$ac_try") 2>&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); }; }; then
31349 ac_cv_cxx_have_global_hash_map=yes
31351 echo "$as_me: failed program was:" >&5
31352 sed 's/^/| /' conftest.$ac_ext >&5
31354 ac_cv_cxx_have_global_hash_map=no
31357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31359 ac_cpp='$CPP $CPPFLAGS'
31360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31365 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31366 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31367 if test "$ac_cv_cxx_have_global_hash_map" = yes
31370 cat >>confdefs.h <<\_ACEOF
31371 #define HAVE_GLOBAL_HASH_MAP 1
31376 cat >>confdefs.h <<\_ACEOF
31377 #define HAVE_GLOBAL_HASH_MAP 0
31382 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31383 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31384 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31385 echo $ECHO_N "(cached) $ECHO_C" >&6
31389 ac_cpp='$CXXCPP $CPPFLAGS'
31390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31394 cat >conftest.$ac_ext <<_ACEOF
31397 cat confdefs.h >>conftest.$ac_ext
31398 cat >>conftest.$ac_ext <<_ACEOF
31399 /* end confdefs.h. */
31400 #include <ext/hash_set>
31401 #ifdef HAVE_NAMESPACES
31402 using namespace std;
31412 rm -f conftest.$ac_objext
31413 if { (ac_try="$ac_compile"
31414 case "(($ac_try" in
31415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31416 *) ac_try_echo=$ac_try;;
31418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31419 (eval "$ac_compile") 2>conftest.er1
31421 grep -v '^ *+' conftest.er1 >conftest.err
31423 cat conftest.err >&5
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); } &&
31426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31427 { (case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_try") 2>&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; } &&
31436 { ac_try='test -s conftest.$ac_objext'
31437 { (case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_try") 2>&5
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; }; then
31446 ac_cv_cxx_have_std_ext_hash_set=yes
31448 echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31451 ac_cv_cxx_have_std_ext_hash_set=no
31454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31456 ac_cpp='$CPP $CPPFLAGS'
31457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31462 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31463 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31464 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31467 cat >>confdefs.h <<\_ACEOF
31468 #define HAVE_STD_EXT_HASH_SET 1
31473 cat >>confdefs.h <<\_ACEOF
31474 #define HAVE_STD_EXT_HASH_SET 0
31479 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31480 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31481 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31482 echo $ECHO_N "(cached) $ECHO_C" >&6
31486 ac_cpp='$CXXCPP $CPPFLAGS'
31487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31491 cat >conftest.$ac_ext <<_ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h. */
31497 #include <ext/hash_set>
31498 #ifdef HAVE_NAMESPACES
31499 using namespace __gnu_cxx;
31509 rm -f conftest.$ac_objext
31510 if { (ac_try="$ac_compile"
31511 case "(($ac_try" in
31512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513 *) ac_try_echo=$ac_try;;
31515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516 (eval "$ac_compile") 2>conftest.er1
31518 grep -v '^ *+' conftest.er1 >conftest.err
31520 cat conftest.err >&5
31521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31522 (exit $ac_status); } &&
31523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31524 { (case "(($ac_try" in
31525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31526 *) ac_try_echo=$ac_try;;
31528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31529 (eval "$ac_try") 2>&5
31531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532 (exit $ac_status); }; } &&
31533 { ac_try='test -s conftest.$ac_objext'
31534 { (case "(($ac_try" in
31535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31536 *) ac_try_echo=$ac_try;;
31538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31539 (eval "$ac_try") 2>&5
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); }; }; then
31543 ac_cv_cxx_have_gnu_ext_hash_set=yes
31545 echo "$as_me: failed program was:" >&5
31546 sed 's/^/| /' conftest.$ac_ext >&5
31548 ac_cv_cxx_have_gnu_ext_hash_set=no
31551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31553 ac_cpp='$CPP $CPPFLAGS'
31554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31559 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31560 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31561 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31564 cat >>confdefs.h <<\_ACEOF
31565 #define HAVE_GNU_EXT_HASH_SET 1
31570 cat >>confdefs.h <<\_ACEOF
31571 #define HAVE_GNU_EXT_HASH_SET 0
31576 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31577 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31578 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31579 echo $ECHO_N "(cached) $ECHO_C" >&6
31583 ac_cpp='$CXXCPP $CPPFLAGS'
31584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31588 cat >conftest.$ac_ext <<_ACEOF
31591 cat confdefs.h >>conftest.$ac_ext
31592 cat >>conftest.$ac_ext <<_ACEOF
31593 /* end confdefs.h. */
31594 #include <hash_set>
31598 hash_set<int> t; return 0;
31603 rm -f conftest.$ac_objext
31604 if { (ac_try="$ac_compile"
31605 case "(($ac_try" in
31606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607 *) ac_try_echo=$ac_try;;
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610 (eval "$ac_compile") 2>conftest.er1
31612 grep -v '^ *+' conftest.er1 >conftest.err
31614 cat conftest.err >&5
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); } &&
31617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31618 { (case "(($ac_try" in
31619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620 *) ac_try_echo=$ac_try;;
31622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623 (eval "$ac_try") 2>&5
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; } &&
31627 { ac_try='test -s conftest.$ac_objext'
31628 { (case "(($ac_try" in
31629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31630 *) ac_try_echo=$ac_try;;
31632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31633 (eval "$ac_try") 2>&5
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); }; }; then
31637 ac_cv_cxx_have_global_hash_set=yes
31639 echo "$as_me: failed program was:" >&5
31640 sed 's/^/| /' conftest.$ac_ext >&5
31642 ac_cv_cxx_have_global_hash_set=no
31645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31647 ac_cpp='$CPP $CPPFLAGS'
31648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31653 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31654 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31655 if test "$ac_cv_cxx_have_global_hash_set" = yes
31658 cat >>confdefs.h <<\_ACEOF
31659 #define HAVE_GLOBAL_HASH_SET 1
31664 cat >>confdefs.h <<\_ACEOF
31665 #define HAVE_GLOBAL_HASH_SET 0
31670 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31671 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31672 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31673 echo $ECHO_N "(cached) $ECHO_C" >&6
31677 ac_cpp='$CXXCPP $CPPFLAGS'
31678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31682 cat >conftest.$ac_ext <<_ACEOF
31685 cat confdefs.h >>conftest.$ac_ext
31686 cat >>conftest.$ac_ext <<_ACEOF
31687 /* end confdefs.h. */
31688 #include <iterator>
31689 #ifdef HAVE_NAMESPACES
31690 using namespace std;
31695 iterator<int,int,int> t; return 0;
31700 rm -f conftest.$ac_objext
31701 if { (ac_try="$ac_compile"
31702 case "(($ac_try" in
31703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704 *) ac_try_echo=$ac_try;;
31706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707 (eval "$ac_compile") 2>conftest.er1
31709 grep -v '^ *+' conftest.er1 >conftest.err
31711 cat conftest.err >&5
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713 (exit $ac_status); } &&
31714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31715 { (case "(($ac_try" in
31716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717 *) ac_try_echo=$ac_try;;
31719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720 (eval "$ac_try") 2>&5
31722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); }; } &&
31724 { ac_try='test -s conftest.$ac_objext'
31725 { (case "(($ac_try" in
31726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31727 *) ac_try_echo=$ac_try;;
31729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31730 (eval "$ac_try") 2>&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); }; }; then
31734 ac_cv_cxx_have_std_iterator=yes
31736 echo "$as_me: failed program was:" >&5
31737 sed 's/^/| /' conftest.$ac_ext >&5
31739 ac_cv_cxx_have_std_iterator=no
31742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31744 ac_cpp='$CPP $CPPFLAGS'
31745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31751 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31752 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31753 if test "$ac_cv_cxx_have_std_iterator" = yes
31756 cat >>confdefs.h <<\_ACEOF
31757 #define HAVE_STD_ITERATOR 1
31762 cat >>confdefs.h <<\_ACEOF
31763 #define HAVE_STD_ITERATOR 0
31768 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31769 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31770 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31771 echo $ECHO_N "(cached) $ECHO_C" >&6
31775 ac_cpp='$CXXCPP $CPPFLAGS'
31776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31780 cat >conftest.$ac_ext <<_ACEOF
31783 cat confdefs.h >>conftest.$ac_ext
31784 cat >>conftest.$ac_ext <<_ACEOF
31785 /* end confdefs.h. */
31786 #include <iterator>
31787 #ifdef HAVE_NAMESPACES
31788 using namespace std;
31793 bidirectional_iterator<int,int> t; return 0;
31798 rm -f conftest.$ac_objext
31799 if { (ac_try="$ac_compile"
31800 case "(($ac_try" in
31801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31802 *) ac_try_echo=$ac_try;;
31804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31805 (eval "$ac_compile") 2>conftest.er1
31807 grep -v '^ *+' conftest.er1 >conftest.err
31809 cat conftest.err >&5
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); } &&
31812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31813 { (case "(($ac_try" in
31814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31815 *) ac_try_echo=$ac_try;;
31817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31818 (eval "$ac_try") 2>&5
31820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 (exit $ac_status); }; } &&
31822 { ac_try='test -s conftest.$ac_objext'
31823 { (case "(($ac_try" in
31824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825 *) ac_try_echo=$ac_try;;
31827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828 (eval "$ac_try") 2>&5
31830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); }; }; then
31832 ac_cv_cxx_have_bi_iterator=yes
31834 echo "$as_me: failed program was:" >&5
31835 sed 's/^/| /' conftest.$ac_ext >&5
31837 ac_cv_cxx_have_bi_iterator=no
31840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31842 ac_cpp='$CPP $CPPFLAGS'
31843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31849 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31850 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31851 if test "$ac_cv_cxx_have_bi_iterator" = yes
31854 cat >>confdefs.h <<\_ACEOF
31855 #define HAVE_BI_ITERATOR 1
31860 cat >>confdefs.h <<\_ACEOF
31861 #define HAVE_BI_ITERATOR 0
31866 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31867 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31868 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31869 echo $ECHO_N "(cached) $ECHO_C" >&6
31873 ac_cpp='$CXXCPP $CPPFLAGS'
31874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31878 cat >conftest.$ac_ext <<_ACEOF
31881 cat confdefs.h >>conftest.$ac_ext
31882 cat >>conftest.$ac_ext <<_ACEOF
31883 /* end confdefs.h. */
31884 #include <iterator>
31885 #ifdef HAVE_NAMESPACES
31886 using namespace std;
31891 forward_iterator<int,int> t; return 0;
31896 rm -f conftest.$ac_objext
31897 if { (ac_try="$ac_compile"
31898 case "(($ac_try" in
31899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900 *) ac_try_echo=$ac_try;;
31902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903 (eval "$ac_compile") 2>conftest.er1
31905 grep -v '^ *+' conftest.er1 >conftest.err
31907 cat conftest.err >&5
31908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909 (exit $ac_status); } &&
31910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31911 { (case "(($ac_try" in
31912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31913 *) ac_try_echo=$ac_try;;
31915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31916 (eval "$ac_try") 2>&5
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); }; } &&
31920 { ac_try='test -s conftest.$ac_objext'
31921 { (case "(($ac_try" in
31922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31923 *) ac_try_echo=$ac_try;;
31925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31926 (eval "$ac_try") 2>&5
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); }; }; then
31930 ac_cv_cxx_have_fwd_iterator=yes
31932 echo "$as_me: failed program was:" >&5
31933 sed 's/^/| /' conftest.$ac_ext >&5
31935 ac_cv_cxx_have_fwd_iterator=no
31938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31940 ac_cpp='$CPP $CPPFLAGS'
31941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31947 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31948 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31949 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31952 cat >>confdefs.h <<\_ACEOF
31953 #define HAVE_FWD_ITERATOR 1
31958 cat >>confdefs.h <<\_ACEOF
31959 #define HAVE_FWD_ITERATOR 0
31965 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31966 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31967 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31968 echo $ECHO_N "(cached) $ECHO_C" >&6
31971 ac_cpp='$CXXCPP $CPPFLAGS'
31972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31976 cat >conftest.$ac_ext <<_ACEOF
31979 cat confdefs.h >>conftest.$ac_ext
31980 cat >>conftest.$ac_ext <<_ACEOF
31981 /* end confdefs.h. */
31991 rm -f conftest.$ac_objext
31992 if { (ac_try="$ac_compile"
31993 case "(($ac_try" in
31994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995 *) ac_try_echo=$ac_try;;
31997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998 (eval "$ac_compile") 2>conftest.er1
32000 grep -v '^ *+' conftest.er1 >conftest.err
32002 cat conftest.err >&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); } &&
32005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32006 { (case "(($ac_try" in
32007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008 *) ac_try_echo=$ac_try;;
32010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011 (eval "$ac_try") 2>&5
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); }; } &&
32015 { ac_try='test -s conftest.$ac_objext'
32016 { (case "(($ac_try" in
32017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32018 *) ac_try_echo=$ac_try;;
32020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32021 (eval "$ac_try") 2>&5
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); }; }; then
32025 ac_cv_func_isnan_in_math_h=yes
32027 echo "$as_me: failed program was:" >&5
32028 sed 's/^/| /' conftest.$ac_ext >&5
32030 ac_cv_func_isnan_in_math_h=no
32033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32035 ac_cpp='$CPP $CPPFLAGS'
32036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32041 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32042 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32045 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32047 cat >>confdefs.h <<\_ACEOF
32048 #define HAVE_ISNAN_IN_MATH_H 1
32053 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32054 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32055 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32056 echo $ECHO_N "(cached) $ECHO_C" >&6
32059 ac_cpp='$CXXCPP $CPPFLAGS'
32060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32064 cat >conftest.$ac_ext <<_ACEOF
32067 cat confdefs.h >>conftest.$ac_ext
32068 cat >>conftest.$ac_ext <<_ACEOF
32069 /* end confdefs.h. */
32079 rm -f conftest.$ac_objext
32080 if { (ac_try="$ac_compile"
32081 case "(($ac_try" in
32082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32083 *) ac_try_echo=$ac_try;;
32085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32086 (eval "$ac_compile") 2>conftest.er1
32088 grep -v '^ *+' conftest.er1 >conftest.err
32090 cat conftest.err >&5
32091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092 (exit $ac_status); } &&
32093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32094 { (case "(($ac_try" in
32095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32096 *) ac_try_echo=$ac_try;;
32098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32099 (eval "$ac_try") 2>&5
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); }; } &&
32103 { ac_try='test -s conftest.$ac_objext'
32104 { (case "(($ac_try" in
32105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32106 *) ac_try_echo=$ac_try;;
32108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32109 (eval "$ac_try") 2>&5
32111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 (exit $ac_status); }; }; then
32113 ac_cv_func_isnan_in_cmath=yes
32115 echo "$as_me: failed program was:" >&5
32116 sed 's/^/| /' conftest.$ac_ext >&5
32118 ac_cv_func_isnan_in_cmath=no
32121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32123 ac_cpp='$CPP $CPPFLAGS'
32124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32129 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32130 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32132 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32134 cat >>confdefs.h <<\_ACEOF
32135 #define HAVE_ISNAN_IN_CMATH 1
32140 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32141 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32142 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32143 echo $ECHO_N "(cached) $ECHO_C" >&6
32146 ac_cpp='$CXXCPP $CPPFLAGS'
32147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32151 cat >conftest.$ac_ext <<_ACEOF
32154 cat confdefs.h >>conftest.$ac_ext
32155 cat >>conftest.$ac_ext <<_ACEOF
32156 /* end confdefs.h. */
32161 float f; std::isnan(f);
32166 rm -f conftest.$ac_objext
32167 if { (ac_try="$ac_compile"
32168 case "(($ac_try" in
32169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32170 *) ac_try_echo=$ac_try;;
32172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32173 (eval "$ac_compile") 2>conftest.er1
32175 grep -v '^ *+' conftest.er1 >conftest.err
32177 cat conftest.err >&5
32178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179 (exit $ac_status); } &&
32180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32181 { (case "(($ac_try" in
32182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32183 *) ac_try_echo=$ac_try;;
32185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32186 (eval "$ac_try") 2>&5
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); }; } &&
32190 { ac_try='test -s conftest.$ac_objext'
32191 { (case "(($ac_try" in
32192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32193 *) ac_try_echo=$ac_try;;
32195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32196 (eval "$ac_try") 2>&5
32198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199 (exit $ac_status); }; }; then
32200 ac_cv_func_std_isnan_in_cmath=yes
32202 echo "$as_me: failed program was:" >&5
32203 sed 's/^/| /' conftest.$ac_ext >&5
32205 ac_cv_func_std_isnan_in_cmath=no
32208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32210 ac_cpp='$CPP $CPPFLAGS'
32211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32216 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32217 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32219 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32221 cat >>confdefs.h <<\_ACEOF
32222 #define HAVE_STD_ISNAN_IN_CMATH 1
32228 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32229 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32230 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32234 ac_cpp='$CXXCPP $CPPFLAGS'
32235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32239 cat >conftest.$ac_ext <<_ACEOF
32242 cat confdefs.h >>conftest.$ac_ext
32243 cat >>conftest.$ac_ext <<_ACEOF
32244 /* end confdefs.h. */
32254 rm -f conftest.$ac_objext
32255 if { (ac_try="$ac_compile"
32256 case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_compile") 2>conftest.er1
32263 grep -v '^ *+' conftest.er1 >conftest.err
32265 cat conftest.err >&5
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); } &&
32268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32269 { (case "(($ac_try" in
32270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32271 *) ac_try_echo=$ac_try;;
32273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32274 (eval "$ac_try") 2>&5
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); }; } &&
32278 { ac_try='test -s conftest.$ac_objext'
32279 { (case "(($ac_try" in
32280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32281 *) ac_try_echo=$ac_try;;
32283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32284 (eval "$ac_try") 2>&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; }; then
32288 ac_cv_func_isinf_in_math_h=yes
32290 echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32293 ac_cv_func_isinf_in_math_h=no
32296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32298 ac_cpp='$CPP $CPPFLAGS'
32299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32304 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32305 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32307 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32309 cat >>confdefs.h <<\_ACEOF
32310 #define HAVE_ISINF_IN_MATH_H 1
32315 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32316 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32317 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32318 echo $ECHO_N "(cached) $ECHO_C" >&6
32321 ac_cpp='$CXXCPP $CPPFLAGS'
32322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32326 cat >conftest.$ac_ext <<_ACEOF
32329 cat confdefs.h >>conftest.$ac_ext
32330 cat >>conftest.$ac_ext <<_ACEOF
32331 /* end confdefs.h. */
32341 rm -f conftest.$ac_objext
32342 if { (ac_try="$ac_compile"
32343 case "(($ac_try" in
32344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345 *) ac_try_echo=$ac_try;;
32347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348 (eval "$ac_compile") 2>conftest.er1
32350 grep -v '^ *+' conftest.er1 >conftest.err
32352 cat conftest.err >&5
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); } &&
32355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32356 { (case "(($ac_try" in
32357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358 *) ac_try_echo=$ac_try;;
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361 (eval "$ac_try") 2>&5
32363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364 (exit $ac_status); }; } &&
32365 { ac_try='test -s conftest.$ac_objext'
32366 { (case "(($ac_try" in
32367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368 *) ac_try_echo=$ac_try;;
32370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371 (eval "$ac_try") 2>&5
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); }; }; then
32375 ac_cv_func_isinf_in_cmath=yes
32377 echo "$as_me: failed program was:" >&5
32378 sed 's/^/| /' conftest.$ac_ext >&5
32380 ac_cv_func_isinf_in_cmath=no
32383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32385 ac_cpp='$CPP $CPPFLAGS'
32386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32391 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32392 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32394 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32396 cat >>confdefs.h <<\_ACEOF
32397 #define HAVE_ISINF_IN_CMATH 1
32402 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32403 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32404 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32405 echo $ECHO_N "(cached) $ECHO_C" >&6
32408 ac_cpp='$CXXCPP $CPPFLAGS'
32409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32413 cat >conftest.$ac_ext <<_ACEOF
32416 cat confdefs.h >>conftest.$ac_ext
32417 cat >>conftest.$ac_ext <<_ACEOF
32418 /* end confdefs.h. */
32423 float f; std::isinf(f)}
32428 rm -f conftest.$ac_objext
32429 if { (ac_try="$ac_compile"
32430 case "(($ac_try" in
32431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32432 *) ac_try_echo=$ac_try;;
32434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32435 (eval "$ac_compile") 2>conftest.er1
32437 grep -v '^ *+' conftest.er1 >conftest.err
32439 cat conftest.err >&5
32440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441 (exit $ac_status); } &&
32442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32443 { (case "(($ac_try" in
32444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32445 *) ac_try_echo=$ac_try;;
32447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32448 (eval "$ac_try") 2>&5
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); }; } &&
32452 { ac_try='test -s conftest.$ac_objext'
32453 { (case "(($ac_try" in
32454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458 (eval "$ac_try") 2>&5
32460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461 (exit $ac_status); }; }; then
32462 ac_cv_func_std_isinf_in_cmath=yes
32464 echo "$as_me: failed program was:" >&5
32465 sed 's/^/| /' conftest.$ac_ext >&5
32467 ac_cv_func_std_isinf_in_cmath=no
32470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32472 ac_cpp='$CPP $CPPFLAGS'
32473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32478 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32479 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32481 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32483 cat >>confdefs.h <<\_ACEOF
32484 #define HAVE_STD_ISINF_IN_CMATH 1
32489 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32490 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32491 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32492 echo $ECHO_N "(cached) $ECHO_C" >&6
32495 ac_cpp='$CXXCPP $CPPFLAGS'
32496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32500 cat >conftest.$ac_ext <<_ACEOF
32503 cat confdefs.h >>conftest.$ac_ext
32504 cat >>conftest.$ac_ext <<_ACEOF
32505 /* end confdefs.h. */
32506 #include <ieeefp.h>
32510 float f; finite(f);
32515 rm -f conftest.$ac_objext
32516 if { (ac_try="$ac_compile"
32517 case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_compile") 2>conftest.er1
32524 grep -v '^ *+' conftest.er1 >conftest.err
32526 cat conftest.err >&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); } &&
32529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32530 { (case "(($ac_try" in
32531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532 *) ac_try_echo=$ac_try;;
32534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535 (eval "$ac_try") 2>&5
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); }; } &&
32539 { ac_try='test -s conftest.$ac_objext'
32540 { (case "(($ac_try" in
32541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542 *) ac_try_echo=$ac_try;;
32544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545 (eval "$ac_try") 2>&5
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; }; then
32549 ac_cv_func_finite_in_ieeefp_h=yes
32551 echo "$as_me: failed program was:" >&5
32552 sed 's/^/| /' conftest.$ac_ext >&5
32554 ac_cv_func_finite_in_ieeefp_h=no
32557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32559 ac_cpp='$CPP $CPPFLAGS'
32560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32565 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32566 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32568 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32570 cat >>confdefs.h <<\_ACEOF
32571 #define HAVE_FINITE_IN_IEEEFP_H 1
32580 for ac_header in stdlib.h unistd.h
32582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32587 echo $ECHO_N "(cached) $ECHO_C" >&6
32589 ac_res=`eval echo '${'$as_ac_Header'}'`
32590 { echo "$as_me:$LINENO: result: $ac_res" >&5
32591 echo "${ECHO_T}$ac_res" >&6; }
32593 # Is the header compilable?
32594 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32596 cat >conftest.$ac_ext <<_ACEOF
32599 cat confdefs.h >>conftest.$ac_ext
32600 cat >>conftest.$ac_ext <<_ACEOF
32601 /* end confdefs.h. */
32602 $ac_includes_default
32603 #include <$ac_header>
32605 rm -f conftest.$ac_objext
32606 if { (ac_try="$ac_compile"
32607 case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_compile") 2>conftest.er1
32614 grep -v '^ *+' conftest.er1 >conftest.err
32616 cat conftest.err >&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); } &&
32619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32620 { (case "(($ac_try" in
32621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32622 *) ac_try_echo=$ac_try;;
32624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32625 (eval "$ac_try") 2>&5
32627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); }; } &&
32629 { ac_try='test -s conftest.$ac_objext'
32630 { (case "(($ac_try" in
32631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632 *) ac_try_echo=$ac_try;;
32634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635 (eval "$ac_try") 2>&5
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); }; }; then
32639 ac_header_compiler=yes
32641 echo "$as_me: failed program was:" >&5
32642 sed 's/^/| /' conftest.$ac_ext >&5
32644 ac_header_compiler=no
32647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32649 echo "${ECHO_T}$ac_header_compiler" >&6; }
32651 # Is the header present?
32652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32654 cat >conftest.$ac_ext <<_ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32660 #include <$ac_header>
32662 if { (ac_try="$ac_cpp conftest.$ac_ext"
32663 case "(($ac_try" in
32664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32665 *) ac_try_echo=$ac_try;;
32667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32670 grep -v '^ *+' conftest.er1 >conftest.err
32672 cat conftest.err >&5
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); } >/dev/null; then
32675 if test -s conftest.err; then
32676 ac_cpp_err=$ac_c_preproc_warn_flag
32677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32684 if test -z "$ac_cpp_err"; then
32685 ac_header_preproc=yes
32687 echo "$as_me: failed program was:" >&5
32688 sed 's/^/| /' conftest.$ac_ext >&5
32690 ac_header_preproc=no
32693 rm -f conftest.err conftest.$ac_ext
32694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32695 echo "${ECHO_T}$ac_header_preproc" >&6; }
32697 # So? What about this header?
32698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32704 ac_header_preproc=yes
32707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32720 ## ----------------------------------- ##
32721 ## Report this to llvmbugs@cs.uiuc.edu ##
32722 ## ----------------------------------- ##
32724 ) | sed "s/^/$as_me: WARNING: /" >&2
32727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32730 echo $ECHO_N "(cached) $ECHO_C" >&6
32732 eval "$as_ac_Header=\$ac_header_preproc"
32734 ac_res=`eval echo '${'$as_ac_Header'}'`
32735 { echo "$as_me:$LINENO: result: $ac_res" >&5
32736 echo "${ECHO_T}$ac_res" >&6; }
32739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32740 cat >>confdefs.h <<_ACEOF
32741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32749 for ac_func in getpagesize
32751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32757 cat >conftest.$ac_ext <<_ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h. */
32763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32765 #define $ac_func innocuous_$ac_func
32767 /* System header to define __stub macros and hopefully few prototypes,
32768 which can conflict with char $ac_func (); below.
32769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32770 <limits.h> exists even on freestanding compilers. */
32773 # include <limits.h>
32775 # include <assert.h>
32780 /* Override any GCC internal prototype to avoid an error.
32781 Use char because int might match the return type of a GCC
32782 builtin and then its argument prototype would still apply. */
32787 /* The GNU C library defines this for functions which it implements
32788 to always fail with ENOSYS. Some functions are actually named
32789 something starting with __ and the normal name is an alias. */
32790 #if defined __stub_$ac_func || defined __stub___$ac_func
32797 return $ac_func ();
32802 rm -f conftest.$ac_objext conftest$ac_exeext
32803 if { (ac_try="$ac_link"
32804 case "(($ac_try" in
32805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806 *) ac_try_echo=$ac_try;;
32808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809 (eval "$ac_link") 2>conftest.er1
32811 grep -v '^ *+' conftest.er1 >conftest.err
32813 cat conftest.err >&5
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); } &&
32816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32817 { (case "(($ac_try" in
32818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819 *) ac_try_echo=$ac_try;;
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822 (eval "$ac_try") 2>&5
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; } &&
32826 { ac_try='test -s conftest$ac_exeext'
32827 { (case "(($ac_try" in
32828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32829 *) ac_try_echo=$ac_try;;
32831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32832 (eval "$ac_try") 2>&5
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); }; }; then
32836 eval "$as_ac_var=yes"
32838 echo "$as_me: failed program was:" >&5
32839 sed 's/^/| /' conftest.$ac_ext >&5
32841 eval "$as_ac_var=no"
32844 rm -f core conftest.err conftest.$ac_objext \
32845 conftest$ac_exeext conftest.$ac_ext
32847 ac_res=`eval echo '${'$as_ac_var'}'`
32848 { echo "$as_me:$LINENO: result: $ac_res" >&5
32849 echo "${ECHO_T}$ac_res" >&6; }
32850 if test `eval echo '${'$as_ac_var'}'` = yes; then
32851 cat >>confdefs.h <<_ACEOF
32852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32858 { echo "$as_me:$LINENO: checking for working mmap" >&5
32859 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32860 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32861 echo $ECHO_N "(cached) $ECHO_C" >&6
32863 if test "$cross_compiling" = yes; then
32864 ac_cv_func_mmap_fixed_mapped=no
32866 cat >conftest.$ac_ext <<_ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h. */
32872 $ac_includes_default
32873 /* malloc might have been renamed as rpl_malloc. */
32876 /* Thanks to Mike Haertel and Jim Avera for this test.
32877 Here is a matrix of mmap possibilities:
32878 mmap private not fixed
32879 mmap private fixed at somewhere currently unmapped
32880 mmap private fixed at somewhere already mapped
32881 mmap shared not fixed
32882 mmap shared fixed at somewhere currently unmapped
32883 mmap shared fixed at somewhere already mapped
32884 For private mappings, we should verify that changes cannot be read()
32885 back from the file, nor mmap's back from the file at a different
32886 address. (There have been systems where private was not correctly
32887 implemented like the infamous i386 svr4.0, and systems where the
32888 VM page cache was not coherent with the file system buffer cache
32889 like early versions of FreeBSD and possibly contemporary NetBSD.)
32890 For shared mappings, we should conversely verify that changes get
32891 propagated back to all the places they're supposed to be.
32893 Grep wants private fixed already mapped.
32894 The main things grep needs to know about mmap are:
32895 * does it exist and is it safe to write into the mmap'd area
32896 * how to use it (BSD variants) */
32899 #include <sys/mman.h>
32901 #if !STDC_HEADERS && !HAVE_STDLIB_H
32905 /* This mess was copied from the GNU getpagesize.h. */
32906 #if !HAVE_GETPAGESIZE
32907 /* Assume that all systems that can run configure have sys/param.h. */
32908 # if !HAVE_SYS_PARAM_H
32909 # define HAVE_SYS_PARAM_H 1
32912 # ifdef _SC_PAGESIZE
32913 # define getpagesize() sysconf(_SC_PAGESIZE)
32914 # else /* no _SC_PAGESIZE */
32915 # if HAVE_SYS_PARAM_H
32916 # include <sys/param.h>
32917 # ifdef EXEC_PAGESIZE
32918 # define getpagesize() EXEC_PAGESIZE
32919 # else /* no EXEC_PAGESIZE */
32921 # define getpagesize() NBPG * CLSIZE
32924 # endif /* no CLSIZE */
32925 # else /* no NBPG */
32927 # define getpagesize() NBPC
32928 # else /* no NBPC */
32930 # define getpagesize() PAGESIZE
32931 # endif /* PAGESIZE */
32932 # endif /* no NBPC */
32933 # endif /* no NBPG */
32934 # endif /* no EXEC_PAGESIZE */
32935 # else /* no HAVE_SYS_PARAM_H */
32936 # define getpagesize() 8192 /* punt totally */
32937 # endif /* no HAVE_SYS_PARAM_H */
32938 # endif /* no _SC_PAGESIZE */
32940 #endif /* no HAVE_GETPAGESIZE */
32945 char *data, *data2, *data3;
32949 pagesize = getpagesize ();
32951 /* First, make a file with some known garbage in it. */
32952 data = (char *) malloc (pagesize);
32955 for (i = 0; i < pagesize; ++i)
32956 *(data + i) = rand ();
32958 fd = creat ("conftest.mmap", 0600);
32961 if (write (fd, data, pagesize) != pagesize)
32965 /* Next, try to mmap the file at a fixed address which already has
32966 something else allocated at it. If we can, also make sure that
32967 we see the same garbage. */
32968 fd = open ("conftest.mmap", O_RDWR);
32971 data2 = (char *) malloc (2 * pagesize);
32974 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32975 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32976 MAP_PRIVATE | MAP_FIXED, fd, 0L))
32978 for (i = 0; i < pagesize; ++i)
32979 if (*(data + i) != *(data2 + i))
32982 /* Finally, make sure that changes to the mapped area do not
32983 percolate back to the file as seen by read(). (This is a bug on
32984 some variants of i386 svr4.0.) */
32985 for (i = 0; i < pagesize; ++i)
32986 *(data2 + i) = *(data2 + i) + 1;
32987 data3 = (char *) malloc (pagesize);
32990 if (read (fd, data3, pagesize) != pagesize)
32992 for (i = 0; i < pagesize; ++i)
32993 if (*(data + i) != *(data3 + i))
32999 rm -f conftest$ac_exeext
33000 if { (ac_try="$ac_link"
33001 case "(($ac_try" in
33002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33003 *) ac_try_echo=$ac_try;;
33005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33006 (eval "$ac_link") 2>&5
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33010 { (case "(($ac_try" in
33011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33012 *) ac_try_echo=$ac_try;;
33014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33015 (eval "$ac_try") 2>&5
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); }; }; then
33019 ac_cv_func_mmap_fixed_mapped=yes
33021 echo "$as_me: program exited with status $ac_status" >&5
33022 echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33025 ( exit $ac_status )
33026 ac_cv_func_mmap_fixed_mapped=no
33028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33033 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33034 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33035 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33037 cat >>confdefs.h <<\_ACEOF
33038 #define HAVE_MMAP 1
33042 rm -f conftest.mmap
33044 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33045 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33046 if test "${ac_cv_func_mmap_file+set}" = set; then
33047 echo $ECHO_N "(cached) $ECHO_C" >&6
33050 ac_cpp='$CPP $CPPFLAGS'
33051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33055 if test "$cross_compiling" = yes; then
33056 ac_cv_func_mmap_file=no
33058 cat >conftest.$ac_ext <<_ACEOF
33062 cat confdefs.h >>conftest.$ac_ext
33063 cat >>conftest.$ac_ext <<_ACEOF
33064 /* end confdefs.h. */
33066 #include <sys/types.h>
33067 #include <sys/mman.h>
33075 fd = creat ("foo",0777);
33076 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33078 return (fd != (int) MAP_FAILED);
33083 rm -f conftest$ac_exeext
33084 if { (ac_try="$ac_link"
33085 case "(($ac_try" in
33086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33087 *) ac_try_echo=$ac_try;;
33089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33090 (eval "$ac_link") 2>&5
33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33094 { (case "(($ac_try" in
33095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33096 *) ac_try_echo=$ac_try;;
33098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33099 (eval "$ac_try") 2>&5
33101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102 (exit $ac_status); }; }; then
33103 ac_cv_func_mmap_file=yes
33105 echo "$as_me: program exited with status $ac_status" >&5
33106 echo "$as_me: failed program was:" >&5
33107 sed 's/^/| /' conftest.$ac_ext >&5
33109 ( exit $ac_status )
33110 ac_cv_func_mmap_file=no
33112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33117 ac_cpp='$CPP $CPPFLAGS'
33118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33124 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33125 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33126 if test "$ac_cv_func_mmap_file" = yes; then
33128 cat >>confdefs.h <<\_ACEOF
33129 #define HAVE_MMAP_FILE
33136 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33137 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33138 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33139 echo $ECHO_N "(cached) $ECHO_C" >&6
33141 if test "$llvm_cv_os_type" = "Interix" ; then
33142 ac_cv_need_dev_zero_for_mmap=yes
33144 ac_cv_need_dev_zero_for_mmap=no
33148 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33149 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33150 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33152 cat >>confdefs.h <<\_ACEOF
33153 #define NEED_DEV_ZERO_FOR_MMAP 1
33157 { echo "$as_me:$LINENO: checking for mprotect" >&5
33158 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33159 if test "${ac_cv_func_mprotect+set}" = set; then
33160 echo $ECHO_N "(cached) $ECHO_C" >&6
33162 cat >conftest.$ac_ext <<_ACEOF
33165 cat confdefs.h >>conftest.$ac_ext
33166 cat >>conftest.$ac_ext <<_ACEOF
33167 /* end confdefs.h. */
33168 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33170 #define mprotect innocuous_mprotect
33172 /* System header to define __stub macros and hopefully few prototypes,
33173 which can conflict with char mprotect (); below.
33174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33175 <limits.h> exists even on freestanding compilers. */
33178 # include <limits.h>
33180 # include <assert.h>
33185 /* Override any GCC internal prototype to avoid an error.
33186 Use char because int might match the return type of a GCC
33187 builtin and then its argument prototype would still apply. */
33192 /* The GNU C library defines this for functions which it implements
33193 to always fail with ENOSYS. Some functions are actually named
33194 something starting with __ and the normal name is an alias. */
33195 #if defined __stub_mprotect || defined __stub___mprotect
33202 return mprotect ();
33207 rm -f conftest.$ac_objext conftest$ac_exeext
33208 if { (ac_try="$ac_link"
33209 case "(($ac_try" in
33210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33211 *) ac_try_echo=$ac_try;;
33213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33214 (eval "$ac_link") 2>conftest.er1
33216 grep -v '^ *+' conftest.er1 >conftest.err
33218 cat conftest.err >&5
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); } &&
33221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33222 { (case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_try") 2>&5
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); }; } &&
33231 { ac_try='test -s conftest$ac_exeext'
33232 { (case "(($ac_try" in
33233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234 *) ac_try_echo=$ac_try;;
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237 (eval "$ac_try") 2>&5
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); }; }; then
33241 ac_cv_func_mprotect=yes
33243 echo "$as_me: failed program was:" >&5
33244 sed 's/^/| /' conftest.$ac_ext >&5
33246 ac_cv_func_mprotect=no
33249 rm -f core conftest.err conftest.$ac_objext \
33250 conftest$ac_exeext conftest.$ac_ext
33252 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33253 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33254 if test $ac_cv_func_mprotect = yes; then
33257 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33258 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33259 { (exit 1); exit 1; }; }
33263 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33265 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33266 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33268 if test "$ac_cv_func_mmap_file" = "no"
33270 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33271 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33275 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33276 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33277 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33278 echo $ECHO_N "(cached) $ECHO_C" >&6
33280 llvm_cv_llvmgcc_sanity="no"
33281 if test -x "$LLVMGCC" ; then
33282 cp /dev/null conftest.c
33283 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33284 if test $? -eq 0 ; then
33285 llvm_cv_llvmgcc_sanity="yes"
33290 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33291 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33293 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33294 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33295 LLVMCC1=$llvmcc1path
33297 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33298 LLVMCC1PLUS=$llvmcc1pluspath
33300 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33301 LLVMGCCDIR=$llvmgccdir
33303 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33304 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33305 LLVMGCC_VERSION=$llvmgccversion
33307 LLVMGCC_MAJVERS=$llvmgccmajvers
33311 SHLIBEXT=$libltdl_cv_shlibext
33314 # Translate the various configuration directories and other basic
33315 # information into substitutions that will end up in Makefile.config.in
33316 # that these configured values can be used by the makefiles
33317 if test "${prefix}" == "NONE" ; then
33318 prefix="/usr/local"
33320 eval LLVM_PREFIX="${prefix}";
33321 eval LLVM_BINDIR="${prefix}/bin";
33322 eval LLVM_LIBDIR="${prefix}/lib";
33323 eval LLVM_DATADIR="${prefix}/share/llvm";
33324 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33325 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33326 eval LLVM_INCLUDEDIR="${prefix}/include";
33327 eval LLVM_INFODIR="${prefix}/info";
33328 eval LLVM_MANDIR="${prefix}/man";
33329 LLVM_CONFIGTIME=`date`
33341 # Place the various directores into the config.h file as #defines so that we
33342 # can know about the installation paths within LLVM.
33344 cat >>confdefs.h <<_ACEOF
33345 #define LLVM_PREFIX "$LLVM_PREFIX"
33349 cat >>confdefs.h <<_ACEOF
33350 #define LLVM_BINDIR "$LLVM_BINDIR"
33354 cat >>confdefs.h <<_ACEOF
33355 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33359 cat >>confdefs.h <<_ACEOF
33360 #define LLVM_DATADIR "$LLVM_DATADIR"
33364 cat >>confdefs.h <<_ACEOF
33365 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33369 cat >>confdefs.h <<_ACEOF
33370 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33374 cat >>confdefs.h <<_ACEOF
33375 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33379 cat >>confdefs.h <<_ACEOF
33380 #define LLVM_INFODIR "$LLVM_INFODIR"
33384 cat >>confdefs.h <<_ACEOF
33385 #define LLVM_MANDIR "$LLVM_MANDIR"
33389 cat >>confdefs.h <<_ACEOF
33390 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33395 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33397 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33399 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33401 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33403 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33406 ac_config_files="$ac_config_files Makefile.config"
33409 ac_config_files="$ac_config_files llvm.spec"
33412 ac_config_files="$ac_config_files docs/doxygen.cfg"
33415 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33418 ac_config_commands="$ac_config_commands setup"
33420 ac_config_commands="$ac_config_commands Makefile"
33423 ac_config_commands="$ac_config_commands Makefile.common"
33426 ac_config_commands="$ac_config_commands examples/Makefile"
33429 ac_config_commands="$ac_config_commands lib/Makefile"
33432 ac_config_commands="$ac_config_commands runtime/Makefile"
33435 ac_config_commands="$ac_config_commands test/Makefile"
33438 ac_config_commands="$ac_config_commands test/Makefile.tests"
33441 ac_config_commands="$ac_config_commands tools/Makefile"
33444 ac_config_commands="$ac_config_commands utils/Makefile"
33447 ac_config_commands="$ac_config_commands projects/Makefile"
33451 cat >confcache <<\_ACEOF
33452 # This file is a shell script that caches the results of configure
33453 # tests run on this system so they can be shared between configure
33454 # scripts and configure runs, see configure's option --config-cache.
33455 # It is not useful on other systems. If it contains results you don't
33456 # want to keep, you may remove or edit it.
33458 # config.status only pays attention to the cache file if you give it
33459 # the --recheck option to rerun configure.
33461 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33462 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33463 # following values.
33467 # The following way of writing the cache mishandles newlines in values,
33468 # but we know of no workaround that is simple, portable, and efficient.
33469 # So, we kill variables containing newlines.
33470 # Ultrix sh set writes to stderr and can't be redirected directly,
33471 # and sets the high bit in the cache file unless we assign to the vars.
33473 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33474 eval ac_val=\$$ac_var
33478 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33479 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33482 _ | IFS | as_nl) ;; #(
33483 *) $as_unset $ac_var ;;
33489 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33490 *${as_nl}ac_space=\ *)
33491 # `set' does not quote correctly, so add quotes (double-quote
33492 # substitution turns \\\\ into \\, and sed turns \\ into \).
33495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33498 # `set' quotes correctly as required by POSIX, so do not add quotes.
33499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33508 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33510 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33512 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33513 if test -w "$cache_file"; then
33514 test "x$cache_file" != "x/dev/null" &&
33515 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33516 echo "$as_me: updating cache $cache_file" >&6;}
33517 cat confcache >$cache_file
33519 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33520 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33525 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33526 # Let make expand exec_prefix.
33527 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33529 DEFS=-DHAVE_CONFIG_H
33533 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33534 # 1. Remove the extension, and $U if already installed.
33535 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33536 ac_i=`echo "$ac_i" | sed "$ac_script"`
33537 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33538 # will be set to the directory where LIBOBJS objects are built.
33539 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33540 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33542 LIBOBJS=$ac_libobjs
33544 LTLIBOBJS=$ac_ltlibobjs
33547 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33548 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33549 Usually this means the macro was only invoked conditionally." >&5
33550 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33551 Usually this means the macro was only invoked conditionally." >&2;}
33552 { (exit 1); exit 1; }; }
33554 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33555 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33556 Usually this means the macro was only invoked conditionally." >&5
33557 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33558 Usually this means the macro was only invoked conditionally." >&2;}
33559 { (exit 1); exit 1; }; }
33562 : ${CONFIG_STATUS=./config.status}
33563 ac_clean_files_save=$ac_clean_files
33564 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33565 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33566 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33567 cat >$CONFIG_STATUS <<_ACEOF
33569 # Generated by $as_me.
33570 # Run this file to recreate the current configuration.
33571 # Compiler output produced by configure, useful for debugging
33572 # configure, is in config.log if it exists.
33575 ac_cs_recheck=false
33577 SHELL=\${CONFIG_SHELL-$SHELL}
33580 cat >>$CONFIG_STATUS <<\_ACEOF
33581 ## --------------------- ##
33582 ## M4sh Initialization. ##
33583 ## --------------------- ##
33585 # Be Bourne compatible
33586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33589 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33590 # is contrary to our usage. Disable this feature.
33591 alias -g '${1+"$@"}'='"$@"'
33592 setopt NO_GLOB_SUBST
33594 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33596 BIN_SH=xpg4; export BIN_SH # for Tru64
33597 DUALCASE=1; export DUALCASE # for MKS sh
33601 # Avoid depending upon Character Ranges.
33602 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33603 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33604 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33605 as_cr_digits='0123456789'
33606 as_cr_alnum=$as_cr_Letters$as_cr_digits
33608 # The user is always right.
33609 if test "${PATH_SEPARATOR+set}" != set; then
33610 echo "#! /bin/sh" >conf$$.sh
33611 echo "exit 0" >>conf$$.sh
33613 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33621 # Support unset when possible.
33622 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33630 # We need space, tab and new line, in precisely that order. Quoting is
33631 # there to prevent editors from complaining about space-tab.
33632 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33633 # splitting by setting IFS to empty value.)
33638 # Find who we are. Look in the path if we contain no directory separator.
33640 *[\\/]* ) as_myself=$0 ;;
33641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33642 for as_dir in $PATH
33645 test -z "$as_dir" && as_dir=.
33646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33652 # We did not find ourselves, most probably we were run as `sh COMMAND'
33653 # in which case we are not to be found in the path.
33654 if test "x$as_myself" = x; then
33657 if test ! -f "$as_myself"; then
33658 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33659 { (exit 1); exit 1; }
33662 # Work around bugs in pre-3.0 UWIN ksh.
33663 for as_var in ENV MAIL MAILPATH
33664 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33672 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33673 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33674 LC_TELEPHONE LC_TIME
33676 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33677 eval $as_var=C; export $as_var
33679 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33683 # Required to use basename.
33684 if expr a : '\(a\)' >/dev/null 2>&1 &&
33685 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33691 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33692 as_basename=basename
33698 # Name of the executable.
33699 as_me=`$as_basename -- "$0" ||
33700 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33701 X"$0" : 'X\(//\)$' \| \
33702 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33704 sed '/^.*\/\([^/][^/]*\)\/*$/{
33723 as_lineno_1=$LINENO
33724 as_lineno_2=$LINENO
33725 test "x$as_lineno_1" != "x$as_lineno_2" &&
33726 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33728 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33729 # uniformly replaced by the line number. The first 'sed' inserts a
33730 # line-number line after each line using $LINENO; the second 'sed'
33731 # does the real work. The second script uses 'N' to pair each
33732 # line-number line with the line containing $LINENO, and appends
33733 # trailing '-' during substitution so that $LINENO is not a special
33734 # case at line end.
33735 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33736 # scripts with optimization help from Paolo Bonzini. Blame Lee
33737 # E. McMahon (1931-1989) for sed's syntax. :-)
33749 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33752 ' >$as_me.lineno &&
33753 chmod +x "$as_me.lineno" ||
33754 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33755 { (exit 1); exit 1; }; }
33757 # Don't try to exec as it changes $[0], causing all sort of problems
33758 # (the dirname of $[0] is not the place where we might find the
33759 # original and so on. Autoconf is especially sensitive to this).
33760 . "./$as_me.lineno"
33761 # Exit status is that of the last command.
33766 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33772 ECHO_C= ECHO_N= ECHO_T=
33773 case `echo -n x` in
33775 case `echo 'x\c'` in
33776 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33783 if expr a : '\(a\)' >/dev/null 2>&1 &&
33784 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33790 rm -f conf$$ conf$$.exe conf$$.file
33791 if test -d conf$$.dir; then
33792 rm -f conf$$.dir/conf$$.file
33798 if ln -s conf$$.file conf$$ 2>/dev/null; then
33800 # ... but there are two gotchas:
33801 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33802 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33803 # In both cases, we have to default to `cp -p'.
33804 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33806 elif ln conf$$.file conf$$ 2>/dev/null; then
33811 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33812 rmdir conf$$.dir 2>/dev/null
33814 if mkdir -p . 2>/dev/null; then
33817 test -d ./-p && rmdir ./-p
33821 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33822 # systems may use methods other than mode bits to determine executability.
33823 cat >conf$$.file <<_ASEOF
33827 chmod +x conf$$.file
33828 if test -x conf$$.file >/dev/null 2>&1; then
33829 as_executable_p="test -x"
33835 # Sed expression to map a string onto a valid CPP name.
33836 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33838 # Sed expression to map a string onto a valid variable name.
33839 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33844 # Save the log message, to keep $[0] and so on meaningful, and to
33845 # report actual input values of CONFIG_FILES etc. instead of their
33846 # values after options handling.
33848 This file was extended by llvm $as_me 2.0cvs, which was
33849 generated by GNU Autoconf 2.60. Invocation command line was
33851 CONFIG_FILES = $CONFIG_FILES
33852 CONFIG_HEADERS = $CONFIG_HEADERS
33853 CONFIG_LINKS = $CONFIG_LINKS
33854 CONFIG_COMMANDS = $CONFIG_COMMANDS
33857 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33862 cat >>$CONFIG_STATUS <<_ACEOF
33863 # Files that config.status was made for.
33864 config_files="$ac_config_files"
33865 config_headers="$ac_config_headers"
33866 config_commands="$ac_config_commands"
33870 cat >>$CONFIG_STATUS <<\_ACEOF
33872 \`$as_me' instantiates files from templates according to the
33873 current configuration.
33875 Usage: $0 [OPTIONS] [FILE]...
33877 -h, --help print this help, then exit
33878 -V, --version print version number, then exit
33879 -q, --quiet do not print progress messages
33880 -d, --debug don't remove temporary files
33881 --recheck update $as_me by reconfiguring in the same conditions
33882 --file=FILE[:TEMPLATE]
33883 instantiate the configuration file FILE
33884 --header=FILE[:TEMPLATE]
33885 instantiate the configuration header FILE
33887 Configuration files:
33890 Configuration headers:
33893 Configuration commands:
33896 Report bugs to <bug-autoconf@gnu.org>."
33899 cat >>$CONFIG_STATUS <<_ACEOF
33901 llvm config.status 2.0cvs
33902 configured by $0, generated by GNU Autoconf 2.60,
33903 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33905 Copyright (C) 2006 Free Software Foundation, Inc.
33906 This config.status script is free software; the Free Software Foundation
33907 gives unlimited permission to copy, distribute and modify it."
33914 cat >>$CONFIG_STATUS <<\_ACEOF
33915 # If no file are specified by the user, then we need to provide default
33916 # value. By we need to know if files were specified by the user.
33922 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33923 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33934 # Handling of the options.
33935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33937 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33938 echo "$ac_cs_version"; exit ;;
33939 --debug | --debu | --deb | --de | --d | -d )
33941 --file | --fil | --fi | --f )
33943 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33944 ac_need_defaults=false;;
33945 --header | --heade | --head | --hea )
33947 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33948 ac_need_defaults=false;;
33950 # Conflict between --help and --header
33951 { echo "$as_me: error: ambiguous option: $1
33952 Try \`$0 --help' for more information." >&2
33953 { (exit 1); exit 1; }; };;
33954 --help | --hel | -h )
33955 echo "$ac_cs_usage"; exit ;;
33956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33957 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33960 # This is an error.
33961 -*) { echo "$as_me: error: unrecognized option: $1
33962 Try \`$0 --help' for more information." >&2
33963 { (exit 1); exit 1; }; } ;;
33965 *) ac_config_targets="$ac_config_targets $1"
33966 ac_need_defaults=false ;;
33972 ac_configure_extra_args=
33974 if $ac_cs_silent; then
33976 ac_configure_extra_args="$ac_configure_extra_args --silent"
33980 cat >>$CONFIG_STATUS <<_ACEOF
33981 if \$ac_cs_recheck; then
33982 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33983 CONFIG_SHELL=$SHELL
33984 export CONFIG_SHELL
33985 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33989 cat >>$CONFIG_STATUS <<\_ACEOF
33993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33994 ## Running $as_me. ##
34000 cat >>$CONFIG_STATUS <<_ACEOF
34004 llvm_src="${srcdir}"
34008 cat >>$CONFIG_STATUS <<\_ACEOF
34010 # Handling of arguments.
34011 for ac_config_target in $ac_config_targets
34013 case $ac_config_target in
34014 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34015 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34016 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34017 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34018 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34019 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34020 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34021 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34022 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34023 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34024 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34025 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34026 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34027 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34028 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34029 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34030 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34031 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34032 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34033 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34035 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34037 { (exit 1); exit 1; }; };;
34042 # If the user did not use the arguments to specify the items to instantiate,
34043 # then the envvar interface is used. Set only those that are not.
34044 # We use the long form for the default assignment because of an extremely
34045 # bizarre bug on SunOS 4.1.3.
34046 if $ac_need_defaults; then
34047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34052 # Have a temporary directory for convenience. Make it in the build tree
34053 # simply because there is no reason against having it here, and in addition,
34054 # creating and moving files from /tmp can sometimes cause problems.
34055 # Hook for its removal unless debugging.
34056 # Note that there is a small window in which the directory will not be cleaned:
34057 # after its creation but before its name has been assigned to `$tmp'.
34061 trap 'exit_status=$?
34062 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34064 trap '{ (exit 1); exit 1; }' 1 2 13 15
34066 # Create a (secure) tmp directory for tmp files.
34069 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34070 test -n "$tmp" && test -d "$tmp"
34073 tmp=./conf$$-$RANDOM
34074 (umask 077 && mkdir "$tmp")
34077 echo "$me: cannot create a temporary directory in ." >&2
34078 { (exit 1); exit 1; }
34082 # Set up the sed scripts for CONFIG_FILES section.
34085 # No need to generate the scripts if there are no CONFIG_FILES.
34086 # This happens for instance when ./config.status config.h
34087 if test -n "$CONFIG_FILES"; then
34094 for ac_last_try in false false false false false :; do
34095 cat >conf$$subs.sed <<_ACEOF
34096 SHELL!$SHELL$ac_delim
34097 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34098 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34099 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34100 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34101 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34102 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34103 exec_prefix!$exec_prefix$ac_delim
34104 prefix!$prefix$ac_delim
34105 program_transform_name!$program_transform_name$ac_delim
34106 bindir!$bindir$ac_delim
34107 sbindir!$sbindir$ac_delim
34108 libexecdir!$libexecdir$ac_delim
34109 datarootdir!$datarootdir$ac_delim
34110 datadir!$datadir$ac_delim
34111 sysconfdir!$sysconfdir$ac_delim
34112 sharedstatedir!$sharedstatedir$ac_delim
34113 localstatedir!$localstatedir$ac_delim
34114 includedir!$includedir$ac_delim
34115 oldincludedir!$oldincludedir$ac_delim
34116 docdir!$docdir$ac_delim
34117 infodir!$infodir$ac_delim
34118 htmldir!$htmldir$ac_delim
34119 dvidir!$dvidir$ac_delim
34120 pdfdir!$pdfdir$ac_delim
34121 psdir!$psdir$ac_delim
34122 libdir!$libdir$ac_delim
34123 localedir!$localedir$ac_delim
34124 mandir!$mandir$ac_delim
34125 DEFS!$DEFS$ac_delim
34126 ECHO_C!$ECHO_C$ac_delim
34127 ECHO_N!$ECHO_N$ac_delim
34128 ECHO_T!$ECHO_T$ac_delim
34129 LIBS!$LIBS$ac_delim
34130 build_alias!$build_alias$ac_delim
34131 host_alias!$host_alias$ac_delim
34132 target_alias!$target_alias$ac_delim
34133 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34134 subdirs!$subdirs$ac_delim
34135 build!$build$ac_delim
34136 build_cpu!$build_cpu$ac_delim
34137 build_vendor!$build_vendor$ac_delim
34138 build_os!$build_os$ac_delim
34139 host!$host$ac_delim
34140 host_cpu!$host_cpu$ac_delim
34141 host_vendor!$host_vendor$ac_delim
34142 host_os!$host_os$ac_delim
34143 target!$target$ac_delim
34144 target_cpu!$target_cpu$ac_delim
34145 target_vendor!$target_vendor$ac_delim
34146 target_os!$target_os$ac_delim
34148 LINKALL!$LINKALL$ac_delim
34149 NOLINKALL!$NOLINKALL$ac_delim
34150 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34151 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34152 ARCH!$ARCH$ac_delim
34153 ENDIAN!$ENDIAN$ac_delim
34155 CFLAGS!$CFLAGS$ac_delim
34156 LDFLAGS!$LDFLAGS$ac_delim
34157 CPPFLAGS!$CPPFLAGS$ac_delim
34158 ac_ct_CC!$ac_ct_CC$ac_delim
34159 EXEEXT!$EXEEXT$ac_delim
34160 OBJEXT!$OBJEXT$ac_delim
34162 GREP!$GREP$ac_delim
34163 EGREP!$EGREP$ac_delim
34164 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34165 BUILD_CC!$BUILD_CC$ac_delim
34166 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34167 CVSBUILD!$CVSBUILD$ac_delim
34168 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34169 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34170 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34172 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34173 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34174 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34175 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34176 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34177 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34179 CXXFLAGS!$CXXFLAGS$ac_delim
34180 ac_ct_CXX!$ac_ct_CXX$ac_delim
34182 LEXLIB!$LEXLIB$ac_delim
34183 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34184 FLEX!$FLEX$ac_delim
34185 YACC!$YACC$ac_delim
34186 YFLAGS!$YFLAGS$ac_delim
34187 BISON!$BISON$ac_delim
34189 ifGNUmake!$ifGNUmake$ac_delim
34190 LN_S!$LN_S$ac_delim
34195 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34197 elif $ac_last_try; then
34198 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34199 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34200 { (exit 1); exit 1; }; }
34202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34206 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34207 if test -n "$ac_eof"; then
34208 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34209 ac_eof=`expr $ac_eof + 1`
34212 cat >>$CONFIG_STATUS <<_ACEOF
34213 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34217 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34218 s/^/s,@/; s/!/@,|#_!!_#|/
34221 s/'"$ac_delim"'$/,g/; t
34223 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34224 ' >>$CONFIG_STATUS <conf$$subs.sed
34225 rm -f conf$$subs.sed
34226 cat >>$CONFIG_STATUS <<_ACEOF
34232 for ac_last_try in false false false false false :; do
34233 cat >conf$$subs.sed <<_ACEOF
34234 DATE!$DATE$ac_delim
34235 FIND!$FIND$ac_delim
34236 MKDIR!$MKDIR$ac_delim
34238 RANLIB!$RANLIB$ac_delim
34242 BINPWD!$BINPWD$ac_delim
34243 GRAPHVIZ!$GRAPHVIZ$ac_delim
34246 DOTTY!$DOTTY$ac_delim
34247 PERL!$PERL$ac_delim
34248 HAVE_PERL!$HAVE_PERL$ac_delim
34249 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34250 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34251 INSTALL_DATA!$INSTALL_DATA$ac_delim
34252 BZIP2!$BZIP2$ac_delim
34253 DOXYGEN!$DOXYGEN$ac_delim
34254 GROFF!$GROFF$ac_delim
34255 GZIP!$GZIP$ac_delim
34256 POD2HTML!$POD2HTML$ac_delim
34257 POD2MAN!$POD2MAN$ac_delim
34258 RUNTEST!$RUNTEST$ac_delim
34259 TCLSH!$TCLSH$ac_delim
34261 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34262 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34263 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34264 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34265 LIBADD_DL!$LIBADD_DL$ac_delim
34266 ECHO!$ECHO$ac_delim
34268 STRIP!$STRIP$ac_delim
34269 CXXCPP!$CXXCPP$ac_delim
34271 FFLAGS!$FFLAGS$ac_delim
34272 ac_ct_F77!$ac_ct_F77$ac_delim
34273 LIBTOOL!$LIBTOOL$ac_delim
34274 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34275 LLVMGCC!$LLVMGCC$ac_delim
34276 LLVMGXX!$LLVMGXX$ac_delim
34277 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34278 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34279 ALLOCA!$ALLOCA$ac_delim
34280 MMAP_FILE!$MMAP_FILE$ac_delim
34281 LLVMCC1!$LLVMCC1$ac_delim
34282 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34283 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34284 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34285 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34286 SHLIBEXT!$SHLIBEXT$ac_delim
34287 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34288 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34289 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34290 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34291 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34292 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34293 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34294 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34295 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34296 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34297 LIBOBJS!$LIBOBJS$ac_delim
34298 LTLIBOBJS!$LTLIBOBJS$ac_delim
34301 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
34303 elif $ac_last_try; then
34304 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34305 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34306 { (exit 1); exit 1; }; }
34308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34312 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34313 if test -n "$ac_eof"; then
34314 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34315 ac_eof=`expr $ac_eof + 1`
34318 cat >>$CONFIG_STATUS <<_ACEOF
34319 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34323 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34324 s/^/s,@/; s/!/@,|#_!!_#|/
34327 s/'"$ac_delim"'$/,g/; t
34329 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34330 ' >>$CONFIG_STATUS <conf$$subs.sed
34331 rm -f conf$$subs.sed
34332 cat >>$CONFIG_STATUS <<_ACEOF
34339 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34340 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34341 # trailing colons and then remove the whole line if VPATH becomes empty
34342 # (actually we leave an empty line to preserve line numbers).
34343 if test "x$srcdir" = x.; then
34344 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34345 s/:*\$(srcdir):*/:/
34346 s/:*\${srcdir}:*/:/
34348 s/^\([^=]*=[ ]*\):*/\1/
34354 cat >>$CONFIG_STATUS <<\_ACEOF
34355 fi # test -n "$CONFIG_FILES"
34358 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34361 :[FHLC]) ac_mode=$ac_tag; continue;;
34363 case $ac_mode$ac_tag in
34365 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34366 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34367 { (exit 1); exit 1; }; };;
34368 :[FH]-) ac_tag=-:-;;
34369 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34386 -) ac_f="$tmp/stdin";;
34387 *) # Look for the file first in the build tree, then in the source tree
34388 # (if the path is not absolute). The absolute path cannot be DOS-style,
34389 # because $ac_f cannot contain `:'.
34393 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34395 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34396 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34397 { (exit 1); exit 1; }; };;
34399 ac_file_inputs="$ac_file_inputs $ac_f"
34402 # Let's still pretend it is `configure' which instantiates (i.e., don't
34403 # use $as_me), people would be surprised to read:
34404 # /* config.h. Generated by config.status. */
34405 configure_input="Generated from "`IFS=:
34406 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34407 if test x"$ac_file" != x-; then
34408 configure_input="$ac_file. $configure_input"
34409 { echo "$as_me:$LINENO: creating $ac_file" >&5
34410 echo "$as_me: creating $ac_file" >&6;}
34414 *:-:* | *:-) cat >"$tmp/stdin";;
34419 ac_dir=`$as_dirname -- "$ac_file" ||
34420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34421 X"$ac_file" : 'X\(//\)[^/]' \| \
34422 X"$ac_file" : 'X\(//\)$' \| \
34423 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34429 /^X\(\/\/\)[^/].*/{
34444 -*) as_dir=./$as_dir;;
34446 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34450 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34451 *) as_qdir=$as_dir;;
34453 as_dirs="'$as_qdir' $as_dirs"
34454 as_dir=`$as_dirname -- "$as_dir" ||
34455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34456 X"$as_dir" : 'X\(//\)[^/]' \| \
34457 X"$as_dir" : 'X\(//\)$' \| \
34458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34464 /^X\(\/\/\)[^/].*/{
34477 test -d "$as_dir" && break
34479 test -z "$as_dirs" || eval "mkdir $as_dirs"
34480 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34481 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34482 { (exit 1); exit 1; }; }; }
34486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34489 # A ".." for each directory in $ac_dir_suffix.
34490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34491 case $ac_top_builddir_sub in
34492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34496 ac_abs_top_builddir=$ac_pwd
34497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34498 # for backward compatibility:
34499 ac_top_builddir=$ac_top_build_prefix
34502 .) # We are building in place.
34504 ac_top_srcdir=$ac_top_builddir_sub
34505 ac_abs_top_srcdir=$ac_pwd ;;
34506 [\\/]* | ?:[\\/]* ) # Absolute name.
34507 ac_srcdir=$srcdir$ac_dir_suffix;
34508 ac_top_srcdir=$srcdir
34509 ac_abs_top_srcdir=$srcdir ;;
34510 *) # Relative name.
34511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34512 ac_top_srcdir=$ac_top_build_prefix$srcdir
34513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34525 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34526 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34530 cat >>$CONFIG_STATUS <<\_ACEOF
34531 # If the template does not know about datarootdir, expand it.
34532 # FIXME: This hack should be removed a few years after 2.60.
34533 ac_datarootdir_hack=; ac_datarootdir_seen=
34535 case `sed -n '/datarootdir/ {
34544 ' $ac_file_inputs` in
34545 *datarootdir*) ac_datarootdir_seen=yes;;
34546 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34547 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34548 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34550 cat >>$CONFIG_STATUS <<_ACEOF
34551 ac_datarootdir_hack='
34552 s&@datadir@&$datadir&g
34553 s&@docdir@&$docdir&g
34554 s&@infodir@&$infodir&g
34555 s&@localedir@&$localedir&g
34556 s&@mandir@&$mandir&g
34557 s&\\\${datarootdir}&$datarootdir&g' ;;
34561 # Neutralize VPATH when `$srcdir' = `.'.
34562 # Shell code in configure.ac might set extrasub.
34563 # FIXME: do we really want to maintain this feature?
34564 cat >>$CONFIG_STATUS <<_ACEOF
34568 cat >>$CONFIG_STATUS <<\_ACEOF
34570 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34571 s&@configure_input@&$configure_input&;t t
34572 s&@top_builddir@&$ac_top_builddir_sub&;t t
34573 s&@srcdir@&$ac_srcdir&;t t
34574 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34575 s&@top_srcdir@&$ac_top_srcdir&;t t
34576 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34577 s&@builddir@&$ac_builddir&;t t
34578 s&@abs_builddir@&$ac_abs_builddir&;t t
34579 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34580 s&@INSTALL@&$ac_INSTALL&;t t
34581 $ac_datarootdir_hack
34582 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34585 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34587 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34588 which seems to be undefined. Please make sure it is defined." >&5
34589 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34590 which seems to be undefined. Please make sure it is defined." >&2;}
34594 -) cat "$tmp/out"; rm -f "$tmp/out";;
34595 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34604 # Transform confdefs.h into a sed script `conftest.defines', that
34605 # substitutes the proper values into config.h.in to produce config.h.
34606 rm -f conftest.defines conftest.tail
34607 # First, append a space to every undef/define line, to ease matching.
34608 echo 's/$/ /' >conftest.defines
34609 # Then, protect against being on the right side of a sed subst, or in
34610 # an unquoted here document, in config.status. If some macros were
34611 # called several times there might be several #defines for the same
34612 # symbol, which is useless. But do not sort them, since the last
34613 # AC_DEFINE must be honored.
34614 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34615 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34616 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34617 # PARAMS is the parameter list in the macro definition--in most cases, it's
34618 # just an empty string.
34619 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34620 ac_dB='\\)[ (].*,\\1define\\2'
34628 s/^[ ]*#[ ]*define[ ][ ]*//
34633 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34634 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34635 ' >>conftest.defines
34637 # Remove the space that was appended to ease matching.
34638 # Then replace #undef with comments. This is necessary, for
34639 # example, in the case of _POSIX_SOURCE, which is predefined and required
34640 # on some systems where configure will not decide to define it.
34641 # (The regexp can be short, since the line contains either #define or #undef.)
34643 s,^[ #]*u.*,/* & */,' >>conftest.defines
34645 # Break up conftest.defines:
34646 ac_max_sed_lines=50
34648 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34649 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34650 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34652 ac_in='$ac_file_inputs'
34653 ac_out='"$tmp/out1"'
34654 ac_nxt='"$tmp/out2"'
34658 # Write a here document:
34659 cat >>$CONFIG_STATUS <<_ACEOF
34660 # First, check the format of the line:
34661 cat >"\$tmp/defines.sed" <<\\CEOF
34662 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34663 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34667 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34669 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34670 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34671 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34672 grep . conftest.tail >/dev/null || break
34673 rm -f conftest.defines
34674 mv conftest.tail conftest.defines
34676 rm -f conftest.defines conftest.tail
34678 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34679 cat >>$CONFIG_STATUS <<\_ACEOF
34680 if test x"$ac_file" != x-; then
34681 echo "/* $configure_input */" >"$tmp/config.h"
34682 cat "$ac_result" >>"$tmp/config.h"
34683 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34684 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34685 echo "$as_me: $ac_file is unchanged" >&6;}
34688 mv "$tmp/config.h" $ac_file
34691 echo "/* $configure_input */"
34697 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34698 echo "$as_me: executing $ac_file commands" >&6;}
34703 case $ac_file$ac_mode in
34704 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34705 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34706 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34707 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34708 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34709 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34710 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34711 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34712 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34713 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34714 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34715 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34716 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34717 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34718 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34719 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34720 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34721 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34722 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34723 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34729 { (exit 0); exit 0; }
34731 chmod +x $CONFIG_STATUS
34732 ac_clean_files=$ac_clean_files_save
34735 # configure is writing to config.log, and then calls config.status.
34736 # config.status does its own redirection, appending to config.log.
34737 # Unfortunately, on DOS this fails, as config.log is still kept open
34738 # by configure, so config.status won't be able to write to it; its
34739 # output is simply discarded. So we exec the FD to /dev/null,
34740 # effectively closing config.log, so it can be properly (re)opened and
34741 # appended to by config.status. When coming back to configure, we
34742 # need to make the FD available again.
34743 if test "$no_create" != yes; then
34745 ac_config_status_args=
34746 test "$silent" = yes &&
34747 ac_config_status_args="$ac_config_status_args --quiet"
34749 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34751 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34752 # would make configure fail if this is the last instruction.
34753 $ac_cs_success || { (exit 1); exit 1; }
34757 # CONFIG_SUBDIRS section.
34759 if test "$no_recursion" != yes; then
34761 # Remove --cache-file and --srcdir arguments so they do not pile up.
34762 ac_sub_configure_args=
34764 eval "set x $ac_configure_args"
34768 if test -n "$ac_prev"; then
34773 -cache-file | --cache-file | --cache-fil | --cache-fi \
34774 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34775 ac_prev=cache_file ;;
34776 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34777 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34780 --config-cache | -C)
34782 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34784 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34786 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34788 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34792 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34794 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34798 # Always prepend --prefix to ensure using the same prefix
34799 # in subdir configurations.
34800 ac_arg="--prefix=$prefix"
34802 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34804 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34807 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34809 # Do not complain, so a configure script can configure whichever
34810 # parts of a large source tree are present.
34811 test -d "$srcdir/$ac_dir" || continue
34813 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34814 echo "$as_me:$LINENO: $ac_msg" >&5
34818 -*) as_dir=./$as_dir;;
34820 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34824 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34825 *) as_qdir=$as_dir;;
34827 as_dirs="'$as_qdir' $as_dirs"
34828 as_dir=`$as_dirname -- "$as_dir" ||
34829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34830 X"$as_dir" : 'X\(//\)[^/]' \| \
34831 X"$as_dir" : 'X\(//\)$' \| \
34832 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34838 /^X\(\/\/\)[^/].*/{
34851 test -d "$as_dir" && break
34853 test -z "$as_dirs" || eval "mkdir $as_dirs"
34854 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34855 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34856 { (exit 1); exit 1; }; }; }
34860 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34862 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34863 # A ".." for each directory in $ac_dir_suffix.
34864 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34865 case $ac_top_builddir_sub in
34866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34870 ac_abs_top_builddir=$ac_pwd
34871 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34872 # for backward compatibility:
34873 ac_top_builddir=$ac_top_build_prefix
34876 .) # We are building in place.
34878 ac_top_srcdir=$ac_top_builddir_sub
34879 ac_abs_top_srcdir=$ac_pwd ;;
34880 [\\/]* | ?:[\\/]* ) # Absolute name.
34881 ac_srcdir=$srcdir$ac_dir_suffix;
34882 ac_top_srcdir=$srcdir
34883 ac_abs_top_srcdir=$srcdir ;;
34884 *) # Relative name.
34885 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34886 ac_top_srcdir=$ac_top_build_prefix$srcdir
34887 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34889 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34894 # Check for guested configure; otherwise get Cygnus style configure.
34895 if test -f "$ac_srcdir/configure.gnu"; then
34896 ac_sub_configure=$ac_srcdir/configure.gnu
34897 elif test -f "$ac_srcdir/configure"; then
34898 ac_sub_configure=$ac_srcdir/configure
34899 elif test -f "$ac_srcdir/configure.in"; then
34900 # This should be Cygnus configure.
34901 ac_sub_configure=$ac_aux_dir/configure
34903 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34904 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34908 # The recursion is here.
34909 if test -n "$ac_sub_configure"; then
34910 # Make the cache file name correct relative to the subdirectory.
34911 case $cache_file in
34912 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34913 *) # Relative name.
34914 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34917 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34918 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34919 # The eval makes quoting arguments work.
34920 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34921 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34922 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34923 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34924 { (exit 1); exit 1; }; }
34932 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
34933 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34934 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
34935 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&5
34936 echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&2;}
34937 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34938 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34939 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34940 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34941 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34942 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}